Skip to content

Evidence-backed use cases, prompts, integrations, evaluations, and safety notes for OpenAI GPT-6 Astra.

feat: OpenSpaces with TipTap editor, MuAPI text & image generation, and live canvas

jaiprasad043d90cd330e41
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e81126e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,39 @@
+# Environment variables and secrets
+.env
+.env*
+*.env
+!.env.example
+
+# Node dependencies and build
+node_modules/
+.next/
+out/
+build/
+dist/
+.pnp
+.pnp.js
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+.pnpm-debug.log*
+
+# Python caches and virtual environments
+__pycache__/
+*.py[cod]
+*$py.class
+*.so
+.Python
+env/
+venv/
+.venv/
+ENV/
+.pytest_cache/
+.coverage
+
+# OS and IDE files
+.DS_Store
+Thumbs.db
+.vscode/
+.idea/
+*.swp
+*.swo
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..032e135
--- /dev/null
+++ b/README.md
@@ -0,0 +1,153 @@
+# 🌌 OpenSpaces
+
+> An open-source, self-hostable **ChatGPT Spaces** alternative built with Next.js (App Router, JavaScript), Tailwind CSS v4, FastAPI, Supabase PostgreSQL, and native **MuAPI** model intelligence.
+
+OpenSpaces bridges the gap between static documents and collaborative intelligence. It provides persistent shared workspaces where human teams, living editable **Pages (Canvas)**, autonomous **Dot Agents**, and inline **AI Generators** collaborate in real-time.
+
+---
+
+## 🌟 Key Features
+
+### 1. ✍️ OpenDots Living Document Canvas (TipTap)
+- **Rich Document Editor**: Powered by TipTap, supporting standard Markdown, multi-level headings, tables, task lists, blockquotes, and custom code blocks.
+- **Slash Commands Menu (`/`)**: Compact, keyboard-first menu to insert blocks, lists, formatting, and AI generators on the fly.
+- **Insert Menu Toolbar**: Dropdown in the format toolbar to easily add tables, task lists, code blocks, dividers, and AI nodes.
+- **Seamless Markdown Round-Tripping**: Synchronized with `@tiptap/markdown` for source editing and persistent storage.
+
+### 2. πŸ€– Inline AI Writing Assistant
+- **Context-Aware In-Place Generation**: Triggered via `/` -> **✨ AI Assistant (Context Prompt)**.
+- **Surrounding Context Injection**: Gathers full-document metadata, title, and immediate before-and-after paragraph context to ensure perfect stylistic and structural continuity.
+- **In-Place Shimmering Skeleton Loader**: Displays a shimmering progress skeleton directly at the cursor insertion point while generating.
+- **Seamless Inline Replacement**: Replaces only that exact position with formatted Markdown without disturbing surrounding content.
+
+### 3. πŸ–ΌοΈ AI Image Generation (`gpt-image-2-text-to-image`)
+- **Native MuAPI Image Generation**: Triggered via `/` -> **πŸ–ΌοΈ Generate Image** or the `+ Insert` dropdown.
+- **Aspect Ratio Control**: Select from `1:1` (Square), `16:9` (Widescreen), or `4:3` (Editorial).
+- **✨ Use Page Content (Smart Prompting)**: Automatically analyzes surrounding section context and calls MuAPI's text model to suggest an optimal, vivid image prompt.
+- **Style Quick Chips**: One-click prompt modifiers (*Concept illustration*, *Architecture / Tech*, *Minimalist banner*).
+- **Unbounded Polling**: Polling loop without premature timeouts that monitors task progress until completed or failed, then automatically embeds the high-resolution image into the document with responsive styling.
+
+### 4. 🧠 Exclusively Powered by MuAPI Models
+- **Text & Chat Intelligence**: Fast, high-capacity completions powered by `mimo-v2-6-flash-abliterated` and `glm-5-3-flash-abliterated`.
+- **Image Generation**: Powered by `gpt-image-2-text-to-image`.
+- **Zero Gemini Footprint**: Completely migrated away from Gemini models and endpoints.
+- **Secure Architecture**: API keys reside strictly on the backend (`server/.env`) and are never exposed to client bundles or browser network tabs.
+
+### 5. πŸ‘₯ Persistent Team Spaces & Autonomous Dot Agents
+- **Multi-Workspace Organization**: Organize projects, research, and roadmaps in dedicated team spaces.
+- **Autonomous Dot Agents**: Specialized workers (*Synthesizer Dot*, *Copywriter Dot*, *Architect Dot*) to execute multi-step space directives.
+- **Discussion Threads**: Multi-turn chat with direct `@Dot` mentions and living page links.
+- **Meeting Audio Notes**: Audio recorder and transcript synthesizer that extracts action items directly into new living pages.
+- **Supabase PostgreSQL Persistence**: Fully relational data model (`open_spaces`, `open_pages`, `open_agents`, `open_messages`, `open_meetings`) with automated migrations and seeding.
+
+---
+
+## πŸ—οΈ Architecture
+
+```
+open-spaces/
+β”œβ”€β”€ client/ # Frontend (Next.js 16, App Router, JavaScript, Tailwind CSS v4)
+β”‚ β”œβ”€β”€ src/
+β”‚ β”‚ β”œβ”€β”€ app/
+β”‚ β”‚ β”‚ β”œβ”€β”€ layout.js # Root layout, theme provider, and font definitions
+β”‚ β”‚ β”‚ β”œβ”€β”€ page.js # Core application dashboard & state orchestration
+β”‚ β”‚ β”‚ └── globals.css # Design tokens, typography & markdown body styling
+β”‚ β”‚ └── components/
+β”‚ β”‚ β”œβ”€β”€ CanvasPage.js # Living canvas page with source mode and auto-save
+β”‚ β”‚ β”œβ”€β”€ OpenSpacesApp.js # Primary router, space switcher, and layout manager
+β”‚ β”‚ β”œβ”€β”€ Sidebar.js # Spaces navigation, search, and DB health indicator
+β”‚ β”‚ β”œβ”€β”€ SpaceChat.js # Space chat with agent mentions & living page citations
+β”‚ β”‚ └── editor/ # TipTap Rich Document Editor
+β”‚ β”‚ β”œβ”€β”€ RichEditor.js # TipTap editor with toolbar and slash command trigger
+β”‚ β”‚ β”œβ”€β”€ AiPromptView.js # Inline AI text generation node with local shimmering loader
+β”‚ β”‚ β”œβ”€β”€ AiImageView.js # Inline image generation node with aspect ratios & prompt helper
+β”‚ β”‚ β”œβ”€β”€ slash-commands.js # Slash command definitions and fuzzy search
+β”‚ β”‚ β”œβ”€β”€ markdown.js # TipTap extension registry & MarkdownManager
+β”‚ β”‚ └── editor.css # Editor toolbar, menus, popups, and image styles
+β”‚ └── package.json
+β”‚
+└── server/ # Backend (FastAPI, SQLAlchemy, Supabase PostgreSQL, MuAPI Gateway)
+ β”œβ”€β”€ app/
+ β”‚ β”œβ”€β”€ main.py # FastAPI app setup, CORS, and WebSocket router
+ β”‚ β”œβ”€β”€ core/config.py # Configuration and MuAPI environment variables
+ β”‚ β”œβ”€β”€ db/
+ β”‚ β”‚ β”œβ”€β”€ session.py # SQLAlchemy engine with SSL pooling for Supabase
+ β”‚ β”‚ └── models.py # Database schema definitions
+ β”‚ β”œβ”€β”€ models/schemas.py # Pydantic request/response schemas
+ β”‚ └── api/routers/
+ β”‚ β”œβ”€β”€ chat.py # Chat completions router powered by MuAPI text models
+ β”‚ β”œβ”€β”€ images.py # gpt-image-2 generation & prompt suggestion via MuAPI
+ β”‚ β”œβ”€β”€ spaces.py # Spaces CRUD & chat endpoints
+ β”‚ β”œβ”€β”€ pages.py # Living pages CRUD endpoints
+ β”‚ β”œβ”€β”€ agents.py # Dot agent execution endpoints
+ β”‚ └── meetings.py # Meeting audio notes & intelligence
+ β”œβ”€β”€ run.py # Server runner on port 8000
+ β”œβ”€β”€ requirements.txt
+ └── .env # Server environment variables & MuAPI key
+```
+
+---
+
+## βš™οΈ Configuration (`server/.env`)
+
+Configure your environment variables in `server/.env`:
+
+```env
+PORT=8000
+HOST=0.0.0.0
+CORS_ORIGINS=http://localhost:3000,http://127.0.0.1:3000
+
+# Supabase PostgreSQL Configuration
+DATABASE_URL=postgresql://postgres.xxx:[email protected]:6543/postgres
+DIRECT_URL=postgresql://postgres.xxx:[email protected]:6543/postgres
+
+# MuAPI Configuration
+DEFAULT_MODEL=mimo-v2-6-flash-abliterated
+MUAPI_API_KEY=your_muapi_api_key_here
+```
+
+---
+
+## πŸš€ Running the Project
+
+### 1. Start Backend (Port 8000)
+
+```powershell
+cd server
+python run.py
+```
+- API live at: `http://localhost:8000`
+- Interactive Swagger documentation: `http://localhost:8000/docs`
+
+### 2. Start Frontend (Port 3000)
+
+```powershell
+cd client
+npm run dev
+```
+- Frontend live at: `http://localhost:3000`
+
+---
+
+## πŸ§ͺ Testing MuAPI Endpoints
+
+### Test Text / Chat Completions
+```powershell
+Invoke-RestMethod -Uri "http://localhost:8000/api/chat" -Method POST `
+ -ContentType "application/json" `
+ -Body '{"prompt": "Summarize vector search in 2 sentences"}'
+```
+
+### Test Context-Aware Image Prompt Suggestion
+```powershell
+Invoke-RestMethod -Uri "http://localhost:8000/api/images/suggest-prompt" -Method POST `
+ -ContentType "application/json" `
+ -Body '{"context": "Deep learning transformer attention mechanisms", "title": "AI Architectures"}'
+```
+
+### Test Image Generation (Polls MuAPI until Completed)
+```powershell
+Invoke-RestMethod -Uri "http://localhost:8000/api/images/generate" -Method POST `
+ -ContentType "application/json" `
+ -Body '{"prompt": "A modern glass architecture building at dusk, 8k", "aspect_ratio": "16:9"}'
+```
diff --git a/THEME_PLAN.md b/THEME_PLAN.md
new file mode 100644
index 0000000..b4de0da
--- /dev/null
+++ b/THEME_PLAN.md
@@ -0,0 +1,39 @@
+# 🎨 OpenSpaces Theme System: Light & Dark Mode Design Plan
+
+## 1. Objective & Philosophy
+To deliver an authentic, distraction-free collaborative experience modeled on OpenAI's ChatGPT Spaces and Canvas. The theme system dynamically adapts between a deep obsidian dark mode and a crisp, readable paper-white light mode using `next-themes` with zero layout shift or hydration flicker.
+
+---
+
+## 2. Core Color Palette & Token Hierarchy
+
+| Token Name | CSS Variable | Light Mode Value | Dark Mode Value | Usage Context |
+| :--- | :--- | :--- | :--- | :--- |
+| **Canvas Background** | `--bg-canvas` | `#fbfbfa` / `#f4f4f5` | `#141416` | Main working area, Page canvas |
+| **Sidebar Background**| `--bg-sidebar` | `#f7f7f8` | `#18181b` | Navigation, spaces list |
+| **Surface / Card** | `--bg-card` | `#ffffff` | `#1e1e24` | Modals, cards, editor toolbar |
+| **Elevated Hover** | `--bg-hover` | `#f0f0f2` | `#27272a` | Hover states, selected tabs |
+| **Border Primary** | `--border-primary` | `#e4e4e7` (Zinc 200) | `#2e2e34` (Zinc 800) | Structural dividers, tab borders |
+| **Border Subtle** | `--border-subtle` | `#f4f4f5` (Zinc 100) | `#232328` (Zinc 850) | Inset cards, subtle separators |
+| **Text Primary** | `--text-primary` | `#18181b` (Zinc 900) | `#f4f4f5` (Zinc 100) | Main headings, page content |
+| **Text Secondary** | `--text-secondary` | `#52525b` (Zinc 600) | `#a1a1aa` (Zinc 400) | Subtitles, descriptions, captions |
+| **Text Muted** | `--text-muted` | `#71717a` (Zinc 500) | `#71717a` (Zinc 500) | Timestamps, counters, icons |
+| **Accent Primary** | `--accent-indigo` | `#4f46e5` (Indigo 600) | `#6366f1` (Indigo 500) | Buttons, active badges, highlights |
+| **Accent Gradient** | `--accent-grad` | `from-indigo-600 to-violet-600` | `from-indigo-500 to-violet-500` | Brand logo, Dot agent avatars |
+| **Agent Bubble** | `--bubble-agent` | `#f4f4f5` | `#202025` | AI/Dot response container |
+| **User Bubble** | `--bubble-user` | `#4f46e5` | `#4f46e5` | User chat bubbles |
+
+---
+
+## 3. Implementation Plan with `next-themes`
+
+1. **Provider Setup**:
+ - `client/src/components/ThemeProvider.js` wrapping root layout with `attribute="class"`, `defaultTheme="system"`, and `enableSystem`.
+2. **HTML Suppression**:
+ - Add `suppressHydrationWarning` to `<html lang="en">` in `src/app/layout.js`.
+3. **Tailwind v4 Configuration**:
+ - Configure `@custom-variant dark (&:where(.dark, .dark *));` in `src/app/globals.css`.
+4. **Theme Toggle Component**:
+ - Create `src/components/ThemeToggle.js` for switching between Light, Dark, and System modes.
+5. **Component Upgrades**:
+ - Upgrade `Sidebar`, `SpaceHeader`, `PagesCanvas`, `SpaceChat`, `DotsManager`, and `MeetingIntelligence` to use seamless responsive dark/light classes.
diff --git a/client/.gitignore b/client/.gitignore
new file mode 100644
index 0000000..5ef6a52
--- /dev/null
+++ b/client/.gitignore
@@ -0,0 +1,41 @@
+# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
+
+# dependencies
+/node_modules
+/.pnp
+.pnp.*
+.yarn/*
+!.yarn/patches
+!.yarn/plugins
+!.yarn/releases
+!.yarn/versions
+
+# testing
+/coverage
+
+# next.js
+/.next/
+/out/
+
+# production
+/build
+
+# misc
+.DS_Store
+*.pem
+
+# debug
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+.pnpm-debug.log*
+
+# env files (can opt-in for committing if needed)
+.env*
+
+# vercel
+.vercel
+
+# typescript
+*.tsbuildinfo
+next-env.d.ts
diff --git a/client/AGENTS.md b/client/AGENTS.md
new file mode 100644
index 0000000..643577d
--- /dev/null
+++ b/client/AGENTS.md
@@ -0,0 +1,9 @@
+<!-- BEGIN:nextjs-agent-rules -->
+
+# This is NOT the Next.js you know
+
+This version has breaking changes β€” APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` (resolved from this file's directory; in monorepos the `next` package may not be visible from the repo root) before writing any code. Heed deprecation notices.
+
+This block is written and re-added by `next dev` β€” verify at `node_modules/next/dist/server/lib/generate-agent-files.js`. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean.
+
+<!-- END:nextjs-agent-rules -->
diff --git a/client/CLAUDE.md b/client/CLAUDE.md
new file mode 100644
index 0000000..43c994c
--- /dev/null
+++ b/client/CLAUDE.md
@@ -0,0 +1 @@
diff --git a/client/README.md b/client/README.md
new file mode 100644
index 0000000..f747e11
--- /dev/null
+++ b/client/README.md
@@ -0,0 +1,27 @@
+# OpenSpaces Client
+
+Modern frontend application for OpenSpaces, built with **Next.js 16 (App Router)**, **Tailwind CSS v4**, and **TipTap**.
+
+## Features Included
+
+- **OpenDots Living Document Editor**: TipTap powered rich document canvas with full Markdown round-tripping.
+- **Slash Commands Menu (`/`)**: Keyboard-first insertion menu for blocks, headings, lists, tables, and AI tools.
+- **Inline AI Writing Assistant (`AiPromptView.js`)**: Context-aware document section writer with in-place shimmering loader.
+- **Inline Image Generation (`AiImageView.js`)**: High-res image generation via MuAPI `gpt-image-2-text-to-image` with aspect ratio options and smart prompt suggestions.
+- **Spaces & Discussion**: Multi-workspace sidebar, discussion threads with agent mentions, and meeting transcription intelligence.
+- **Theme Support**: Seamless Light and Dark mode using `next-themes`.
+
+## Getting Started
+
+```bash
+npm install
+npm run dev
+```
+
+Open [http://localhost:3000](http://localhost:3000) to view the application.
+
+## Build
+
+```bash
+npm run build
+```
diff --git a/client/eslint.config.mjs b/client/eslint.config.mjs
new file mode 100644
index 0000000..05e726d
--- /dev/null
+++ b/client/eslint.config.mjs
@@ -0,0 +1,18 @@
+import { defineConfig, globalIgnores } from "eslint/config";
+import nextVitals from "eslint-config-next/core-web-vitals";
+import nextTs from "eslint-config-next/typescript";
+
+const eslintConfig = defineConfig([
+ ...nextVitals,
+ ...nextTs,
+ // Override default ignores of eslint-config-next.
+ globalIgnores([
+ // Default ignores of eslint-config-next:
+ ".next/**",
+ "out/**",
+ "build/**",
+ "next-env.d.ts",
+ ]),
+]);
+
+export default eslintConfig;
diff --git a/client/jsconfig.json b/client/jsconfig.json
new file mode 100644
index 0000000..abe04df
--- /dev/null
+++ b/client/jsconfig.json
@@ -0,0 +1,8 @@
+{
+ "compilerOptions": {
+ "baseUrl": ".",
+ "paths": {
+ "@/*": ["./src/*"]
+ }
+ }
+}
diff --git a/client/next.config.mjs b/client/next.config.mjs
new file mode 100644
index 0000000..b108e1a
--- /dev/null
+++ b/client/next.config.mjs
@@ -0,0 +1,6 @@
+/** @type {import('next').NextConfig} */
+const nextConfig = {
+ /* config options here */
+};
+
+export default nextConfig;
diff --git a/client/package-lock.json b/client/package-lock.json
new file mode 100644
index 0000000..a0496ab
--- /dev/null
+++ b/client/package-lock.json
@@ -0,0 +1,9148 @@
+{
+ "name": "client",
+ "version": "0.1.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "client",
+ "version": "0.1.0",
+ "dependencies": {
+ "@tiptap/core": "^3.31.4",
+ "@tiptap/extension-image": "^3.31.4",
+ "@tiptap/extension-placeholder": "^3.31.4",
+ "@tiptap/extension-table": "^3.31.4",
+ "@tiptap/extension-task-item": "^3.31.4",
+ "@tiptap/extension-task-list": "^3.31.4",
+ "@tiptap/markdown": "^3.31.4",
+ "@tiptap/pm": "^3.31.4",
+ "@tiptap/react": "^3.31.4",
+ "@tiptap/starter-kit": "^3.31.4",
+ "@tiptap/suggestion": "^3.31.4",
+ "next": "16.3.8",
+ "next-themes": "^0.4.6",
+ "react": "19.2.8",
+ "react-dom": "19.2.8",
+ "react-icons": "^5.7.0",
+ "react-markdown": "^10.1.0",
+ "remark-gfm": "^4.0.1"
+ },
+ "devDependencies": {
+ "@tailwindcss/postcss": "^4",
+ "eslint": "^9",
+ "eslint-config-next": "16.3.8",
+ "tailwindcss": "^4"
+ }
+ },
+ "node_modules/@alloc/quick-lru": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.3.0.tgz",
+ "integrity": "sha512-U4+70Pc5ZS9osnCBCE5Jha/ciHM+Yp+CNMNC/7HvYbNRk1Ldd+f7qO65W5qfhu/TCv+/ozljlXXe9Nj8419DMA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "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.7",
+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.7.tgz",
+ "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.7",
+ "@babel/generator": "^7.29.7",
+ "@babel/helper-compilation-targets": "^7.29.7",
+ "@babel/helper-module-transforms": "^7.29.7",
+ "@babel/helpers": "^7.29.7",
+ "@babel/parser": "^7.29.7",
+ "@babel/template": "^7.29.7",
+ "@babel/traverse": "^7.29.7",
+ "@babel/types": "^7.29.7",
+ "@jridgewell/remapping": "^2.3.5",
+ "convert-source-map": "^2.0.0",
+ "debug": "^4.1.0",
+ "gensync": "^1.0.0-beta.2",
+ "json5": "^2.2.3",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/babel"
+ }
+ },
+ "node_modules/@babel/generator": {
+ "version": "7.29.8",
+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.8.tgz",
+ "integrity": "sha512-gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.29.8",
+ "@babel/types": "^7.29.8",
+ "@jridgewell/gen-mapping": "^0.3.12",
+ "@jridgewell/trace-mapping": "^0.3.28",
+ "jsesc": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-compilation-targets": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz",
+ "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/compat-data": "^7.29.7",
+ "@babel/helper-validator-option": "^7.29.7",
+ "browserslist": "^4.24.0",
+ "lru-cache": "^5.1.1",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-globals": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz",
+ "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-imports": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz",
+ "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/traverse": "^7.29.7",
+ "@babel/types": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-transforms": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz",
+ "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-module-imports": "^7.29.7",
+ "@babel/helper-validator-identifier": "^7.29.7",
+ "@babel/traverse": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/helper-string-parser": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz",
+ "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==",
+ "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.7",
+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.7.tgz",
+ "integrity": "sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/template": "^7.29.7",
+ "@babel/types": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/parser": {
+ "version": "7.29.9",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.9.tgz",
+ "integrity": "sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.29.8"
+ },
+ "bin": {
+ "parser": "bin/babel-parser.js"
+ },
+ "engines": {
+ "node": ">=6.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.8",
+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.8.tgz",
+ "integrity": "sha512-I5z7H3bf/41ktsNVLtpN0wAa336HkqIHQ5BuPLEhTkt1jVSyZpeNKIzTgEWmlxjdg81R0IgUCcaE+Ok3NvrfZg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.7",
+ "@babel/generator": "^7.29.8",
+ "@babel/helper-globals": "^7.29.7",
+ "@babel/parser": "^7.29.8",
+ "@babel/template": "^7.29.7",
+ "@babel/types": "^7.29.8",
+ "debug": "^4.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/types": {
+ "version": "7.29.8",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz",
+ "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-string-parser": "^7.29.7",
+ "@babel/helper-validator-identifier": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@emnapi/core": {
+ "version": "1.10.0",
+ "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.10.0.tgz",
+ "integrity": "sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@emnapi/wasi-threads": "1.2.1",
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@emnapi/runtime": {
+ "version": "1.11.3",
+ "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz",
+ "integrity": "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@emnapi/wasi-threads": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz",
+ "integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@eslint-community/eslint-utils": {
+ "version": "4.10.1",
+ "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.10.1.tgz",
+ "integrity": "sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "eslint-visitor-keys": "^3.4.3"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
+ }
+ },
+ "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": {
+ "version": "3.4.3",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",
+ "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/@eslint-community/regexpp": {
+ "version": "4.12.2",
+ "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz",
+ "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^12.0.0 || ^14.0.0 || >=16.0.0"
+ }
+ },
+ "node_modules/@eslint/config-array": {
+ "version": "0.21.2",
+ "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.2.tgz",
+ "integrity": "sha512-nJl2KGTlrf9GjLimgIru+V/mzgSK0ABCDQRvxw5BjURL7WfH5uoWmizbH7QB6MmnMBd8cIC9uceWnezL1VZWWw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/object-schema": "^2.1.7",
+ "debug": "^4.3.1",
+ "minimatch": "^3.1.5"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/config-helpers": {
+ "version": "0.4.2",
+ "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz",
+ "integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/core": "^0.17.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/core": {
+ "version": "0.17.0",
+ "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz",
+ "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@types/json-schema": "^7.0.15"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/eslintrc": {
+ "version": "3.3.7",
+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.7.tgz",
+ "integrity": "sha512-F42g89Qd5oAWtp0k0nnSrjziAKza7w8SVT4mStc18LZMaRb4J1HQAHLCalEtDCxrTuksx7NU9qsmeLwpOfPqWw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ajv": "^6.14.0",
+ "debug": "^4.3.2",
+ "espree": "^10.0.1",
+ "globals": "^14.0.0",
+ "ignore": "^5.2.0",
+ "import-fresh": "^3.2.1",
+ "js-yaml": "^4.3.2",
+ "minimatch": "^3.1.5",
+ "strip-json-comments": "^3.1.1"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/@eslint/js": {
+ "version": "9.39.5",
+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.5.tgz",
+ "integrity": "sha512-QywQuszQh77pIXCsq998c8hbhSTI/azTty1Z6N53dmAudKHhy573j3yvRLsX2BSp8YpLtoCEG8E9DJe+8zUh4A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://eslint.org/donate"
+ }
+ },
+ "node_modules/@eslint/object-schema": {
+ "version": "2.1.7",
+ "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz",
+ "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/plugin-kit": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz",
+ "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/core": "^0.17.0",
+ "levn": "^0.4.1"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@floating-ui/core": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.8.0.tgz",
+ "integrity": "sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@floating-ui/utils": "^0.2.12"
+ }
+ },
+ "node_modules/@floating-ui/dom": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.8.0.tgz",
+ "integrity": "sha512-yXSrzeHZBTZadLOlfyhCkJHNeLJnHRnRInwdZ40L7ZiaAtrBwoYlsDrX3v5zB1Utk7CLfzcOVnVVWoXEky7Ceg==",
+ "license": "MIT",
+ "dependencies": {
+ "@floating-ui/core": "^1.8.0",
+ "@floating-ui/utils": "^0.2.12"
+ }
+ },
+ "node_modules/@floating-ui/utils": {
+ "version": "0.2.12",
+ "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.12.tgz",
+ "integrity": "sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==",
+ "license": "MIT"
+ },
+ "node_modules/@humanfs/core": {
+ "version": "0.19.2",
+ "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz",
+ "integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@humanfs/types": "^0.15.0"
+ },
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanfs/node": {
+ "version": "0.16.8",
+ "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz",
+ "integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@humanfs/core": "^0.19.2",
+ "@humanfs/types": "^0.15.0",
+ "@humanwhocodes/retry": "^0.4.0"
+ },
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanfs/types": {
+ "version": "0.15.0",
+ "resolved": "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz",
+ "integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanwhocodes/module-importer": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",
+ "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=12.22"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
+ "node_modules/@humanwhocodes/retry": {
+ "version": "0.4.3",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz",
+ "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
+ "node_modules/@img/colour": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz",
+ "integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==",
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@img/sharp-darwin-arm64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.5.tgz",
+ "integrity": "sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-darwin-arm64": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-darwin-x64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.5.tgz",
+ "integrity": "sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-darwin-x64": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-freebsd-wasm32": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.5.tgz",
+ "integrity": "sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw==",
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "dependencies": {
+ "@img/sharp-wasm32": "0.35.5"
+ },
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-darwin-arm64": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.4.tgz",
+ "integrity": "sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-darwin-x64": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.4.tgz",
+ "integrity": "sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-arm": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.4.tgz",
+ "integrity": "sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw==",
+ "cpu": [
+ "arm"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-arm64": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.4.tgz",
+ "integrity": "sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A==",
+ "cpu": [
+ "arm64"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-ppc64": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.4.tgz",
+ "integrity": "sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ==",
+ "cpu": [
+ "ppc64"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-riscv64": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.4.tgz",
+ "integrity": "sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q==",
+ "cpu": [
+ "riscv64"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-s390x": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.4.tgz",
+ "integrity": "sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ==",
+ "cpu": [
+ "s390x"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-x64": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.4.tgz",
+ "integrity": "sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw==",
+ "cpu": [
+ "x64"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linuxmusl-arm64": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.4.tgz",
+ "integrity": "sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA==",
+ "cpu": [
+ "arm64"
+ ],
+ "libc": [
+ "musl"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linuxmusl-x64": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.4.tgz",
+ "integrity": "sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg==",
+ "cpu": [
+ "x64"
+ ],
+ "libc": [
+ "musl"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-linux-arm": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.5.tgz",
+ "integrity": "sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ==",
+ "cpu": [
+ "arm"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linux-arm": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-linux-arm64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.5.tgz",
+ "integrity": "sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linux-arm64": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-linux-ppc64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.5.tgz",
+ "integrity": "sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA==",
+ "cpu": [
+ "ppc64"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linux-ppc64": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-linux-riscv64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.5.tgz",
+ "integrity": "sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ==",
+ "cpu": [
+ "riscv64"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linux-riscv64": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-linux-s390x": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.5.tgz",
+ "integrity": "sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA==",
+ "cpu": [
+ "s390x"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linux-s390x": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-linux-x64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.5.tgz",
+ "integrity": "sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog==",
+ "cpu": [
+ "x64"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linux-x64": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-linuxmusl-arm64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.5.tgz",
+ "integrity": "sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg==",
+ "cpu": [
+ "arm64"
+ ],
+ "libc": [
+ "musl"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linuxmusl-arm64": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-linuxmusl-x64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.5.tgz",
+ "integrity": "sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A==",
+ "cpu": [
+ "x64"
+ ],
+ "libc": [
+ "musl"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linuxmusl-x64": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-wasm32": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.5.tgz",
+ "integrity": "sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==",
+ "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT",
+ "optional": true,
+ "dependencies": {
+ "@emnapi/runtime": "^1.11.3"
+ },
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-webcontainers-wasm32": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.5.tgz",
+ "integrity": "sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA==",
+ "cpu": [
+ "wasm32"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "dependencies": {
+ "@img/sharp-wasm32": "0.35.5"
+ },
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-win32-arm64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.5.tgz",
+ "integrity": "sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "Apache-2.0 AND LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-win32-ia32": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.5.tgz",
+ "integrity": "sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A==",
+ "cpu": [
+ "ia32"
+ ],
+ "license": "Apache-2.0 AND LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": "^20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-win32-x64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.5.tgz",
+ "integrity": "sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "Apache-2.0 AND LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "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.2",
+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=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/@napi-rs/wasm-runtime": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.2.4.tgz",
+ "integrity": "sha512-AJxoUD2/15ESHbvpcyjU274nsAPLuOtPHCk0vKJM5pj//Fg/B1FXNWjPnXTT9PymCYYiHo4zPj0ZomXBKhoy7g==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@tybys/wasm-util": "^0.10.3"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=23.5.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/Brooooooklyn"
+ },
+ "peerDependencies": {
+ "@emnapi/core": "^1.7.1 || ^2.0.0-alpha.4",
+ "@emnapi/runtime": "^1.7.1 || ^2.0.0-alpha.4"
+ }
+ },
+ "node_modules/@next/env": {
+ "version": "16.3.8",
+ "resolved": "https://registry.npmjs.org/@next/env/-/env-16.3.8.tgz",
+ "integrity": "sha512-Al9zqHVV7TJv0eFuOU4U7Lvv74PTih4Ch63sk2xCIpSTkE3udFnaOcnzP2lQVymiL7yS9Cj2iClUXlR3EQ5sEw==",
+ "license": "MIT"
+ },
+ "node_modules/@next/eslint-plugin-next": {
+ "version": "16.3.8",
+ "resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-16.3.8.tgz",
+ "integrity": "sha512-eCR9RcLTZrVS+K3+VOhi0xMdUUGNuriCHHhU1ZoABC/QQ/Gp0OWbLKQxV2/9DkmihYdYRcQWFmZXW8M1AMUXYw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/eslint-utils": "4.9.1",
+ "fast-glob": "3.3.1"
+ }
+ },
+ "node_modules/@next/eslint-plugin-next/node_modules/@eslint-community/eslint-utils": {
+ "version": "4.9.1",
+ "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz",
+ "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "eslint-visitor-keys": "^3.4.3"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
+ }
+ },
+ "node_modules/@next/eslint-plugin-next/node_modules/eslint-visitor-keys": {
+ "version": "3.4.3",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",
+ "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/@next/swc-darwin-arm64": {
+ "version": "16.3.8",
+ "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.3.8.tgz",
+ "integrity": "sha512-2JPRMh2nmQG5CiL7cXGL9AGwnPWJQ//cTtAUCT+w511QHk79SYz3LGv/pc5X643B/WEO0rvu3Yww0hqwt3kgeA==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@next/swc-darwin-x64": {
+ "version": "16.3.8",
+ "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.3.8.tgz",
+ "integrity": "sha512-GZtCCOBKJ4leVIT/Th0llWKhD1ca92lzbQiS5R5ON9QkoiFnilFsebDae1JU2a3HWoKMEmEZWGs1AGLavVM72Q==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@next/swc-linux-arm64-gnu": {
+ "version": "16.3.8",
+ "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.3.8.tgz",
+ "integrity": "sha512-O659ygeQYqneJ1fBKMpFxIFqYkYswu8IAS1OCKK/4f3ZgJJm1dRz4fVJZRi/kLLWjnBKnebOePA4WNv+sV1pVA==",
+ "cpu": [
+ "arm64"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@next/swc-linux-arm64-musl": {
+ "version": "16.3.8",
+ "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.3.8.tgz",
+ "integrity": "sha512-dSjKSyWpzxoO1d3DIZZcP4XJcNaKeLmxQMFOiYl5vuBRMmweIqnAhty8tAmRsvTss779cK1FtYnDMj40e4TQlg==",
+ "cpu": [
+ "arm64"
+ ],
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@next/swc-linux-x64-gnu": {
+ "version": "16.3.8",
+ "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.3.8.tgz",
+ "integrity": "sha512-lbqOuz3RPRcv+o9msNsJw5x4+Y1ZwPTs6vmL6DCf7i0fZfvng/F59wyeDwqHIvV0mK//RBy/jJkZ+nCKsSMXjQ==",
+ "cpu": [
+ "x64"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@next/swc-linux-x64-musl": {
+ "version": "16.3.8",
+ "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.3.8.tgz",
+ "integrity": "sha512-+316WswI8ScVgZeUd+1KGaXkHhaYQzCjvH/05TZSpJ8zBizb1a4G7DtO7F12jcBIqMOtsz9ji1t48fmKtzqsGA==",
+ "cpu": [
+ "x64"
+ ],
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@next/swc-win32-arm64-msvc": {
+ "version": "16.3.8",
+ "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.3.8.tgz",
+ "integrity": "sha512-ji0gd4kMYUxO+1fJBIbiBVRCjzG/lloiyCccnlebvb1ZJ5qXCPZqYg4Jl1DrrixnWNMKylzgpmMWx0yNDYXlzw==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@next/swc-win32-x64-msvc": {
+ "version": "16.3.8",
+ "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.3.8.tgz",
+ "integrity": "sha512-WcTlaKt/TWkh5kUjdJcUmB1XgZ+1c6fz4Y9fDHL73YNSdGaUWjceeWrrlwF0nv19iABYWC4iAq1oX1w4Bn0vfg==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@nodelib/fs.scandir": {
+ "version": "2.1.5",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
+ "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@nodelib/fs.stat": "2.0.5",
+ "run-parallel": "^1.1.9"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@nodelib/fs.stat": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",
+ "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@nodelib/fs.walk": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",
+ "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@nodelib/fs.scandir": "2.1.5",
+ "fastq": "^1.6.0"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@nolyfill/is-core-module": {
+ "version": "1.0.39",
+ "resolved": "https://registry.npmjs.org/@nolyfill/is-core-module/-/is-core-module-1.0.39.tgz",
+ "integrity": "sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12.4.0"
+ }
+ },
+ "node_modules/@rtsao/scc": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@rtsao/scc/-/scc-1.1.0.tgz",
+ "integrity": "sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@swc/helpers": {
+ "version": "0.5.23",
+ "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.23.tgz",
+ "integrity": "sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "^2.8.0"
+ }
+ },
+ "node_modules/@tailwindcss/node": {
+ "version": "4.3.3",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.3.tgz",
+ "integrity": "sha512-/T8IKEsf9VTU6tLjgC7+sv2mOPtQxzE2jMw7u4Tt40Tx+QSZxpzh95/H6cMKoja9XuW7iMdLJYBB0o9G1CaAgg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/remapping": "^2.3.5",
+ "enhanced-resolve": "^5.24.1",
+ "jiti": "^2.7.0",
+ "lightningcss": "1.32.0",
+ "magic-string": "^0.30.21",
+ "source-map-js": "^1.2.1",
+ "tailwindcss": "4.3.3"
+ }
+ },
+ "node_modules/@tailwindcss/oxide": {
+ "version": "4.3.3",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.3.tgz",
+ "integrity": "sha512-krXjAikiaFSPaK/FkAQT5UTx3VormQaiZ5hBFlJZ9UFQGB/rwg1MZIhHAG9smMQRTdyJxP6Qt5MwMtdyU5FWrA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 20"
+ },
+ "optionalDependencies": {
+ "@tailwindcss/oxide-android-arm64": "4.3.3",
+ "@tailwindcss/oxide-darwin-arm64": "4.3.3",
+ "@tailwindcss/oxide-darwin-x64": "4.3.3",
+ "@tailwindcss/oxide-freebsd-x64": "4.3.3",
+ "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.3",
+ "@tailwindcss/oxide-linux-arm64-gnu": "4.3.3",
+ "@tailwindcss/oxide-linux-arm64-musl": "4.3.3",
+ "@tailwindcss/oxide-linux-x64-gnu": "4.3.3",
+ "@tailwindcss/oxide-linux-x64-musl": "4.3.3",
+ "@tailwindcss/oxide-wasm32-wasi": "4.3.3",
+ "@tailwindcss/oxide-win32-arm64-msvc": "4.3.3",
+ "@tailwindcss/oxide-win32-x64-msvc": "4.3.3"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-android-arm64": {
+ "version": "4.3.3",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.3.tgz",
+ "integrity": "sha512-Y85A2gmPSkl5Ve5qR86GL4HT509cFqQh1aes9p3sSkyTPwt0Pppf3GkwGe4JPACcRYjgJIEhQgM6dBClnr0NYw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-darwin-arm64": {
+ "version": "4.3.3",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.3.tgz",
+ "integrity": "sha512-BiaWatpBcERQFDlOjRDpIVXuFK5PJez5SA4JMg6VYZdBYU+qKfV/vqjcIs+IYmtitf1xYQZTwXvU/8y4lfZUGw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-darwin-x64": {
+ "version": "4.3.3",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.3.tgz",
+ "integrity": "sha512-fAeUqfV5ndhxRwai8cXGzdLvul9utWOmeTkv69unv4ZXixjn61Z+p9lCWdwOwA3TYboG3BwdVuN/RDjhBRl0mw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-freebsd-x64": {
+ "version": "4.3.3",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.3.tgz",
+ "integrity": "sha512-iyf5bV6+wnAlflVeEy7R25dupxTNECZN5QMI0qNT6eT+EgaGdZcKhGkr5SdoaWiLJ3spLqIY9VCeSGrwmtg4kw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": {
+ "version": "4.3.3",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.3.tgz",
+ "integrity": "sha512-aAYUprJAJQWWbRrPvtjdroZ56Md+JM8pMiopS6xGEwDfLhqj+2ver2p4nU4Mb3CRqcMmNBjo8KkUgcxhkzVQGQ==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-linux-arm64-gnu": {
+ "version": "4.3.3",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.3.tgz",
+ "integrity": "sha512-nDxldcEENOxZRzC2uu9jrutZdAAQtb+8WWDCSnWL1zvBk1+FN+x6MtDViPB5AJMfttVCUhehGWus3XBPgatM/w==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-linux-arm64-musl": {
+ "version": "4.3.3",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.3.tgz",
+ "integrity": "sha512-Md44bD6veX/PC5iyF8cDVnw4HBIANZepRZZ7a8DQOvkfo5WUBwcp6iAuCUz23u+4SUkhJlD3eL7hNdW8ezd/kA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-linux-x64-gnu": {
+ "version": "4.3.3",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.3.tgz",
+ "integrity": "sha512-tx7us1muwOKAKWao2v/GaafFeQboE6aj88vC6ziN2NCGcRm8gWUhwjzg+YdVB1e4boAtdtma4L43onunI6NS4w==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-linux-x64-musl": {
+ "version": "4.3.3",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.3.tgz",
+ "integrity": "sha512-SJxX60smvHgasZoBy11dX6YRjXJFovwWBoedhbQPOBzgFWBHGB+TVPWB9BxzR7TTxU8FQZAI2AyiNCMzFm8Img==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-wasm32-wasi": {
+ "version": "4.3.3",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.3.tgz",
+ "integrity": "sha512-jx1+rPhY/5Ympkktd656HBWEBLxP7dH06losBLjjf5vgCODXvi9KhtftWcMIwTFIDqBr7cRnQkdLnAG+IOlGvQ==",
+ "bundleDependencies": [
+ "@napi-rs/wasm-runtime",
+ "@emnapi/core",
+ "@emnapi/runtime",
+ "@tybys/wasm-util",
+ "@emnapi/wasi-threads",
+ "tslib"
+ ],
+ "cpu": [
+ "wasm32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@emnapi/core": "^1.11.1",
+ "@emnapi/runtime": "^1.11.1",
+ "@emnapi/wasi-threads": "^1.2.2",
+ "@napi-rs/wasm-runtime": "^1.1.4",
+ "@tybys/wasm-util": "^0.10.2",
+ "tslib": "^2.8.1"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-win32-arm64-msvc": {
+ "version": "4.3.3",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.3.tgz",
+ "integrity": "sha512-3rc292Ca2ceK6Ulcc/bAVnTs/3nDtoPhyEKlgPv+yQJQi/JS/AMJlqzxvlDacL1nekbrcf6bTqp/jV4qgnPxNQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-win32-x64-msvc": {
+ "version": "4.3.3",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.3.tgz",
+ "integrity": "sha512-yJ0pwIVc/nYeGoV02WtsN8KYyLQv7kyI2wDnkezyJlGGjkd4QLwDGAwl47YpPJeuI0M0ObaXGSPjvWDPeTPggw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/postcss": {
+ "version": "4.3.3",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/postcss/-/postcss-4.3.3.tgz",
+ "integrity": "sha512-JTSZZGQi1AyKirbLN3azmjVzef92tcX7h+iSqPdaeStyFpGpDlKvvpxeOE8njhbUanbRwr3z8DyzhICWnMtQeg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@alloc/quick-lru": "^5.2.0",
+ "@tailwindcss/node": "4.3.3",
+ "@tailwindcss/oxide": "4.3.3",
+ "postcss": "^8.5.16",
+ "tailwindcss": "4.3.3"
+ }
+ },
+ "node_modules/@tiptap/core": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/core/-/core-3.31.4.tgz",
+ "integrity": "sha512-cIVUQYBycighzsk6GbmCef8ZiEDVxoT5EuAe4xg2q9dNkDqCXVqI4YGr9aavCQEiAS4uHiRwqvcsPqJHipFDfg==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/pm": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/extension-blockquote": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-blockquote/-/extension-blockquote-3.31.4.tgz",
+ "integrity": "sha512-FHnbvCIW0eDKgUUFjmvEB0ax9YUBW7/Unm+38qpuQROvU872yRqhnDtycKT9IKk46jNdjM4A4fAGUbge10CrAA==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/core": "3.31.4",
+ "@tiptap/pm": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/extension-bold": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-bold/-/extension-bold-3.31.4.tgz",
+ "integrity": "sha512-QX1xoXvO0gz6uVsoLegumqQ4MJXL7lcUDQZ4J7la7LBqiIh4efrCmp2EXbhpr37M/YQL7w8q3g7H/VovSh7xIg==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/core": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/extension-bubble-menu": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-bubble-menu/-/extension-bubble-menu-3.31.4.tgz",
+ "integrity": "sha512-Ml/yswuys+3QkOMajfXyAGlUKCxEbT3dMyF8vHwQ5mDk9MDm+dqp10It5CrDBkUT/KkVTa6AJI3kb0TXZJZiAA==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@floating-ui/dom": "^1.0.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/core": "3.31.4",
+ "@tiptap/pm": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/extension-bullet-list": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-bullet-list/-/extension-bullet-list-3.31.4.tgz",
+ "integrity": "sha512-gHn1RDR4olCnmKpH+G9x+f8R+iKPNVdLlvbFkIpR/stjabZi7fB4Rr5GiHWsulbtxAjdQrNjnVeNdGM4rBxApw==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/extension-list": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/extension-code": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-code/-/extension-code-3.31.4.tgz",
+ "integrity": "sha512-pzi8GNDs5J1DEoO1HNYiJ5WZpgOZzlc/2VIa77mMpEuD4hZxuK0BQzlF/O6Ps/O5P1lGJT4xS0Yowpzb9mD9RA==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/core": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/extension-code-block": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-code-block/-/extension-code-block-3.31.4.tgz",
+ "integrity": "sha512-su/B/cfQ1HpiHl6JfJ6wa+RVEptiYsV4dCntE8XQNj2dUcII4y6w6PQbbswOoDrU79uXHsAvpy44215rghG4LA==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/core": "3.31.4",
+ "@tiptap/pm": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/extension-document": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-document/-/extension-document-3.31.4.tgz",
+ "integrity": "sha512-vT20u62RWR+BLIyNJ54e24MPUY4zm8VF7tcgJnxQXi7BgVJWcNMtMWWDIkPJ4JNXwfoIznKh3jzYsaYmbCJgQQ==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/core": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/extension-dropcursor": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-dropcursor/-/extension-dropcursor-3.31.4.tgz",
+ "integrity": "sha512-5TbCPCC4RL+QT1NYHjXCYDBHBtVqYOFvFEnk3v98lvXCM2PNL13ofXUfJPuykAVy1OdTAx4DlZOQAD9WKy/IdQ==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/extensions": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/extension-floating-menu": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-floating-menu/-/extension-floating-menu-3.31.4.tgz",
+ "integrity": "sha512-pKzulkDmolpVt7IP9FSPsC5pKbXQ5pyeqkaAYr8cyOVW+KUObpPRIzAuXvEso8PCjWgwJ1f2qyishOEMw8MbfQ==",
+ "license": "MIT",
+ "optional": true,
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@floating-ui/dom": "^1.0.0",
+ "@tiptap/core": "3.31.4",
+ "@tiptap/pm": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/extension-gapcursor": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-gapcursor/-/extension-gapcursor-3.31.4.tgz",
+ "integrity": "sha512-hBogUAepQH6IQUhaePhPWzQ1Oeu+yqlJVMKO06Eue5m36uRy1PZZAQ780pCGT0SC4R5MH2td1N8EUQ7bupQdDA==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/extensions": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/extension-hard-break": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-hard-break/-/extension-hard-break-3.31.4.tgz",
+ "integrity": "sha512-oLNajLyUvRMg1qtzFgKGduygTlpaHFB9PU+M+pUWdA4sa1bRnxS2Y++Ao4lHYopJ7nxatLndrYoCIHkotqkPDQ==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/core": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/extension-heading": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-heading/-/extension-heading-3.31.4.tgz",
+ "integrity": "sha512-KqlSeLathpdxCc3kVHBCA/RkHvb+V7u5vgiSEu1Cv3L70r7F19COMGODav/k1AGYBgEXKL6lM9cy8cloE5/28g==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/core": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/extension-horizontal-rule": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-horizontal-rule/-/extension-horizontal-rule-3.31.4.tgz",
+ "integrity": "sha512-ws0Kh8kfHL7ESILSXj0HJAXs8G10ewlW1sedXKm8dm0op9L8il+xl8bEJVoqG/jMf77900Fc2CaQldcCGRpF1g==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/core": "3.31.4",
+ "@tiptap/pm": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/extension-image": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-image/-/extension-image-3.31.4.tgz",
+ "integrity": "sha512-vtD+rK73abJnPRKOjU37sQTCa5Auyg451yhqZD/3lZKiFJDBHAZKI7lQARkXBQYK289hBhK6yMIwofoqCBvi3g==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/core": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/extension-italic": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-italic/-/extension-italic-3.31.4.tgz",
+ "integrity": "sha512-pftTQBPYZocNDAj/u6OyDIp7YxmN0+N895cQPogJQ6qMHdLiRhzgawiEewJkniyN1w8k3Wx/Etp8pTKrxaOOBQ==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/core": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/extension-link": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-link/-/extension-link-3.31.4.tgz",
+ "integrity": "sha512-LLxW3qfeL9gvDdMPVdxYFYZ0zZSjsoIDhOqjJ5U2UfaK3U2iwkKTBgV2qT+FWf3uUHmBRjBZ08q3dRPmWBAD5g==",
+ "license": "MIT",
+ "dependencies": {
+ "linkifyjs": "^4.3.3"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/core": "3.31.4",
+ "@tiptap/pm": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/extension-list": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-list/-/extension-list-3.31.4.tgz",
+ "integrity": "sha512-Wd4YRYxOdf+TtF33/QsRo1RK1CecVxjYGjUBIKNGHAywfh8tghgV4YOUCiV1iJqYt2IBs+RWlIqTmdIPzBrd4A==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/core": "3.31.4",
+ "@tiptap/pm": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/extension-list-item": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-list-item/-/extension-list-item-3.31.4.tgz",
+ "integrity": "sha512-ao8XAPvhOrtGFILs+fKtOM91omDSpUC8X19m44gbaq5xJDVpIMZ0rP+NAVUS72G7LskhcHa0bu/Pm022bUVjVw==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/extension-list": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/extension-list-keymap": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-list-keymap/-/extension-list-keymap-3.31.4.tgz",
+ "integrity": "sha512-etdkl/YnYfwtALDxecJ+4WYgJAez1fn1vzzZqJklZBpgqiZtny3NxpvWS7/JhsltNG84Wo/oovpfJgVmzhddrw==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/extension-list": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/extension-ordered-list": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-ordered-list/-/extension-ordered-list-3.31.4.tgz",
+ "integrity": "sha512-UNWyF+Dhm08znszIMnT8Y2kJ1lvtiCvUGs1aG7m9cPHxDa7VycWnOqdtXWkc+6xRLNiC0zgWCFWgLLHduV8pRQ==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/extension-list": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/extension-paragraph": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-paragraph/-/extension-paragraph-3.31.4.tgz",
+ "integrity": "sha512-WZlBgw+XVKXerRlmEsoQ7x1PwSU+dh3X+b70+ViZsLebdfsmmYBIaNDrvIGwG9UQr5eLnddJnZplMSTI2YKs+g==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/core": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/extension-placeholder": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-placeholder/-/extension-placeholder-3.31.4.tgz",
+ "integrity": "sha512-3SoJopaOzaA9IZHSk9ZXHiO6ib8ErPh7ssRh3bIaxfD+BqRyXcm4hV4yfFXTqrDCnl5FE+DbBRGmeVAVkDko3g==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/extensions": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/extension-strike": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-strike/-/extension-strike-3.31.4.tgz",
+ "integrity": "sha512-4MBr63TJIMqxCjE+gAPdlY1IdELgvbAP516K3Ntn/BkcpEbEoPMEYVz+XTxULyHQEuARDO6jsXPPxRXpA74jaw==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/core": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/extension-table": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-table/-/extension-table-3.31.4.tgz",
+ "integrity": "sha512-ai7DLwg/xmhlUas3LgWaPQdPlZ8StliY6Dn+iUH6eyZ/TQqRDY/oeIsKWaHpXq22T5M5dMlZPTg172ZdtwKswQ==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/core": "3.31.4",
+ "@tiptap/pm": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/extension-task-item": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-task-item/-/extension-task-item-3.31.4.tgz",
+ "integrity": "sha512-pRe8jtsu5PQ6gNiZkYOKmNQi4SLHWW0dxXGqOG87GHmdvsko9V1JzS9dYEPGUFyjHyRg1DfrsmlMee24bggMoA==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/extension-list": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/extension-task-list": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-task-list/-/extension-task-list-3.31.4.tgz",
+ "integrity": "sha512-c4jTxIGvJzmtsk1V1EBjqEuDk+rY+b9bQq5fup+BXW/W3u5ELM8DUuTlfRpBzGis3RD0096oNBfqv7XdG5Yvjg==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/extension-list": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/extension-text": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-text/-/extension-text-3.31.4.tgz",
+ "integrity": "sha512-WL2ZRpFksgQcXJN05/UQH09YCH9LlhdLrSEcviASvEH/aAfsKiJlDrouN8PET+YAWK/F5xFc5/Q1z0xj+I23jw==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/core": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/extension-underline": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-underline/-/extension-underline-3.31.4.tgz",
+ "integrity": "sha512-0iFGPIqmqGkCrOFh1OPo7Dzv5s86dVN3bZaugsz0jK04otkb8bn04ZDKP2/6Wq+lcK0M9DfJ0QqfW5hC2nBZxQ==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/core": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/extensions": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/extensions/-/extensions-3.31.4.tgz",
+ "integrity": "sha512-nIupIne/sHpV2Kw1M4MOmr4+G454KI8BXM5+LWKOU2EpzfALZWVSy7koF9lVRna4Zp5Gv8hfg5Z8kvmrYQvhkw==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/core": "3.31.4",
+ "@tiptap/pm": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/markdown": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/markdown/-/markdown-3.31.4.tgz",
+ "integrity": "sha512-lmR9V1/eQ41BaR2zBgYG/+Liy7K7Ch17ZNxVy8dpUVlNpWxxoHUMXNsCg2uEyXP3NLpZaKiY0+drSu9oK1DbSA==",
+ "license": "MIT",
+ "dependencies": {
+ "marked": "^17.0.1"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@tiptap/core": "3.31.4",
+ "@tiptap/pm": "3.31.4"
+ }
+ },
+ "node_modules/@tiptap/pm": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/pm/-/pm-3.31.4.tgz",
+ "integrity": "sha512-x7dwth79cQp4QGae66/RJqMDJQv0+n7b7dD7cyFQBWqzPFLJxN/4paHY4qbWedZjNLhRyIOAD9a5q4AYM1zmPA==",
+ "license": "MIT",
+ "dependencies": {
+ "prosemirror-changeset": "^2.4.1",
+ "prosemirror-commands": "^1.7.1",
+ "prosemirror-dropcursor": "^1.8.2",
+ "prosemirror-gapcursor": "^1.4.1",
+ "prosemirror-history": "^1.5.0",
+ "prosemirror-inputrules": "^1.5.1",
+ "prosemirror-keymap": "^1.2.3",
+ "prosemirror-model": "^1.25.11",
+ "prosemirror-schema-list": "^1.5.1",
+ "prosemirror-state": "^1.4.4",
+ "prosemirror-tables": "^1.8.5",
+ "prosemirror-transform": "^1.12.0",
+ "prosemirror-view": "^1.42.3"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ }
+ },
+ "node_modules/@tiptap/react": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/react/-/react-3.31.4.tgz",
+ "integrity": "sha512-mBvvXgdPhMinT1NPfwHvFK1dFdMXHVWMSeNn0IPj7/zV0XBmOnASkEOwoIvl8NluKYEtpZBE1yA+6pN2enLa5g==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/use-sync-external-store": "^0.0.6",
+ "fast-equals": "^5.3.3",
+ "use-sync-external-store": "^1.4.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "optionalDependencies": {
+ "@tiptap/extension-bubble-menu": "3.31.4",
+ "@tiptap/extension-floating-menu": "3.31.4"
+ },
+ "peerDependencies": {
+ "@tiptap/core": "3.31.4",
+ "@tiptap/pm": "3.31.4",
+ "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
+ "@types/react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
+ "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@tiptap/starter-kit": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/starter-kit/-/starter-kit-3.31.4.tgz",
+ "integrity": "sha512-u7HIJ9vK6kFe4S4J2CIcDLrhRZzoTMSyU0XxjQ6lUNF7pWW3rMi//pvi8RcsZmxGjyb8CpXAqYgNl7f9WyaUeA==",
+ "license": "MIT",
+ "dependencies": {
+ "@tiptap/core": "3.31.4",
+ "@tiptap/extension-blockquote": "3.31.4",
+ "@tiptap/extension-bold": "3.31.4",
+ "@tiptap/extension-bullet-list": "3.31.4",
+ "@tiptap/extension-code": "3.31.4",
+ "@tiptap/extension-code-block": "3.31.4",
+ "@tiptap/extension-document": "3.31.4",
+ "@tiptap/extension-dropcursor": "3.31.4",
+ "@tiptap/extension-gapcursor": "3.31.4",
+ "@tiptap/extension-hard-break": "3.31.4",
+ "@tiptap/extension-heading": "3.31.4",
+ "@tiptap/extension-horizontal-rule": "3.31.4",
+ "@tiptap/extension-italic": "3.31.4",
+ "@tiptap/extension-link": "3.31.4",
+ "@tiptap/extension-list": "3.31.4",
+ "@tiptap/extension-list-item": "3.31.4",
+ "@tiptap/extension-list-keymap": "3.31.4",
+ "@tiptap/extension-ordered-list": "3.31.4",
+ "@tiptap/extension-paragraph": "3.31.4",
+ "@tiptap/extension-strike": "3.31.4",
+ "@tiptap/extension-text": "3.31.4",
+ "@tiptap/extension-underline": "3.31.4",
+ "@tiptap/extensions": "3.31.4",
+ "@tiptap/pm": "3.31.4"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ }
+ },
+ "node_modules/@tiptap/suggestion": {
+ "version": "3.31.4",
+ "resolved": "https://registry.npmjs.org/@tiptap/suggestion/-/suggestion-3.31.4.tgz",
+ "integrity": "sha512-J9WWMQDAzZOlF9VSdLohpxgrwlB1NscqvNhOPoS3WjwrzQqLj+FAvcchfJQcnybF5mYOtftFZexpOzOt1MqjUA==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/ueberdosis"
+ },
+ "peerDependencies": {
+ "@floating-ui/dom": "^1.0.0",
+ "@tiptap/core": "3.31.4",
+ "@tiptap/pm": "3.31.4"
+ }
+ },
+ "node_modules/@tybys/wasm-util": {
+ "version": "0.10.4",
+ "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.4.tgz",
+ "integrity": "sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@types/debug": {
+ "version": "4.1.13",
+ "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.13.tgz",
+ "integrity": "sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/ms": "*"
+ }
+ },
+ "node_modules/@types/estree": {
+ "version": "1.0.9",
+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz",
+ "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==",
+ "license": "MIT"
+ },
+ "node_modules/@types/estree-jsx": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/@types/estree-jsx/-/estree-jsx-1.0.5.tgz",
+ "integrity": "sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree": "*"
+ }
+ },
+ "node_modules/@types/hast": {
+ "version": "3.0.5",
+ "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.5.tgz",
+ "integrity": "sha512-rp/ezSWaD1m44dPKICGhiskI13nVr7qTloFwDa/IYkhhf5nzwP+zIQcIJh3WIFSBOy/H1PzB40jPjMDksN4F+g==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "*"
+ }
+ },
+ "node_modules/@types/json-schema": {
+ "version": "7.0.15",
+ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",
+ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/json5": {
+ "version": "0.0.29",
+ "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz",
+ "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/mdast": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz",
+ "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "*"
+ }
+ },
+ "node_modules/@types/ms": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz",
+ "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==",
+ "license": "MIT"
+ },
+ "node_modules/@types/react": {
+ "version": "19.3.0",
+ "resolved": "https://registry.npmjs.org/@types/react/-/react-19.3.0.tgz",
+ "integrity": "sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "csstype": "^3.2.2"
+ }
+ },
+ "node_modules/@types/react-dom": {
+ "version": "19.3.0",
+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.3.0.tgz",
+ "integrity": "sha512-ZI7bU42mZXXKHn/qNLEw2IrbiINU7X5+vfgdixBHkCNpYWXjKgfQ/P+uyGb5CjOLB9UcnTeg3rylQtV2hym44Q==",
+ "license": "MIT",
+ "peer": true,
+ "peerDependencies": {
+ "@types/react": "^19.3.0"
+ }
+ },
+ "node_modules/@types/unist": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz",
+ "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==",
+ "license": "MIT"
+ },
+ "node_modules/@types/use-sync-external-store": {
+ "version": "0.0.6",
+ "resolved": "https://registry.npmjs.org/@types/use-sync-external-store/-/use-sync-external-store-0.0.6.tgz",
+ "integrity": "sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==",
+ "license": "MIT"
+ },
+ "node_modules/@typescript-eslint/eslint-plugin": {
+ "version": "8.71.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.71.0.tgz",
+ "integrity": "sha512-pqcS9c1HxZTHt7End4nXqd0s5lJrrFzrgCkKFJrsbUnaL6M3+6oBFZaslg6Gjsl3argl2DDRFROnXARaZ2e4Nw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/regexpp": "^4.12.2",
+ "@typescript-eslint/scope-manager": "8.71.0",
+ "@typescript-eslint/type-utils": "8.71.0",
+ "@typescript-eslint/utils": "8.71.0",
+ "@typescript-eslint/visitor-keys": "8.71.0",
+ "ignore": "^7.0.5",
+ "natural-compare": "^1.4.0",
+ "ts-api-utils": "^2.5.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "@typescript-eslint/parser": "^8.71.0",
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": {
+ "version": "7.0.12",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.12.tgz",
+ "integrity": "sha512-/8UvqAPU9DGTI9k4mxtf49U37Isfwr8Uts96+SBHIkFxPJnHS0Ew4f00sM4Scd8V8EjM0jUNtVDdv1kPdt35lg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/@typescript-eslint/parser": {
+ "version": "8.71.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.71.0.tgz",
+ "integrity": "sha512-CG4nPk1f2zc8yw4pALqHsFYH2hdo+h1T9daSp21+Hnxi9LOE3GT9hAfTKJCBXVNM2GmYs1eMEP615wPoeOgk3A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/scope-manager": "8.71.0",
+ "@typescript-eslint/types": "8.71.0",
+ "@typescript-eslint/typescript-estree": "8.71.0",
+ "@typescript-eslint/visitor-keys": "8.71.0",
+ "debug": "^4.4.3"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/project-service": {
+ "version": "8.71.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.71.0.tgz",
+ "integrity": "sha512-aABjw5rjBacYONVPaPiWOCjJu0vEF4a25iQuodlmQYL1trtLZ0X/y+2Vzl3BKI1odM4LnwLE1oUDXYp1wzx1TQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/tsconfig-utils": "^8.71.0",
+ "@typescript-eslint/types": "^8.71.0",
+ "debug": "^4.4.3"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/scope-manager": {
+ "version": "8.71.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.71.0.tgz",
+ "integrity": "sha512-gWF0BhUcnjZxSpLE8ngS/59n2SB0J3YqRxvX1+2aoRJk9hNtHSLOV+TcarFiOr5ipXm3yc1QrI4c9YZc8zyCxw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "8.71.0",
+ "@typescript-eslint/visitor-keys": "8.71.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/@typescript-eslint/tsconfig-utils": {
+ "version": "8.71.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.71.0.tgz",
+ "integrity": "sha512-Z1UlWHADEK2Mlb9NpWfDeSjqoZ5EyrOv4R3eQpbkzqn/EwaIdOpXXupEA1+0ZIOSJSZZDBHG0BrQyN8zUG6Pwg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/type-utils": {
+ "version": "8.71.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.71.0.tgz",
+ "integrity": "sha512-i8uO1qbdxeKgRnS5sCRt6On3/nfo2d2DwQe3Yvjx543zLy7r8ySqRuPPiIIXAhS03U0v5NfAFx+rUgxFzKKwNw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "8.71.0",
+ "@typescript-eslint/typescript-estree": "8.71.0",
+ "@typescript-eslint/utils": "8.71.0",
+ "debug": "^4.4.3",
+ "ts-api-utils": "^2.5.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/types": {
+ "version": "8.71.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.71.0.tgz",
+ "integrity": "sha512-cJ4OoxPGWvFnBTnSZyaU+qJzGTqPTGJY+gDchj6cRyLRdmIdt4rcsE4twj+zPfrNiWuVi38wijHzShL++Z9atQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/@typescript-eslint/typescript-estree": {
+ "version": "8.71.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.71.0.tgz",
+ "integrity": "sha512-PEEF4G5sLLWAS5BpPrUvms4ySZkiBQQZM4z+3ReI46axK5Vqr/vXBQatJQIZZOYdGyPUAKTtsrWzpqKuU+3DEw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/project-service": "8.71.0",
+ "@typescript-eslint/tsconfig-utils": "8.71.0",
+ "@typescript-eslint/types": "8.71.0",
+ "@typescript-eslint/visitor-keys": "8.71.0",
+ "debug": "^4.4.3",
+ "minimatch": "^10.2.2",
+ "semver": "^7.7.3",
+ "tinyglobby": "^0.2.15",
+ "ts-api-utils": "^2.5.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/typescript-estree/node_modules/balanced-match": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",
+ "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "18 || 20 || >=22"
+ }
+ },
+ "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": {
+ "version": "5.0.12",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz",
+ "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^4.0.2"
+ },
+ "engines": {
+ "node": "20 || >=22"
+ }
+ },
+ "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": {
+ "version": "10.2.6",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz",
+ "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "dependencies": {
+ "brace-expansion": "^5.0.8"
+ },
+ "engines": {
+ "node": "18 || 20 || >=22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": {
+ "version": "7.8.5",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",
+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@typescript-eslint/utils": {
+ "version": "8.71.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.71.0.tgz",
+ "integrity": "sha512-pKR/tEMVrXZG23UFKUn5BQf3zfmfk7KQceI2cGzywZ5nxM5Eu3hEJU1utjWzydtzBbcJAQhHN8iPCxobHpPcZQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/eslint-utils": "^4.9.1",
+ "@typescript-eslint/scope-manager": "8.71.0",
+ "@typescript-eslint/types": "8.71.0",
+ "@typescript-eslint/typescript-estree": "8.71.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/visitor-keys": {
+ "version": "8.71.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.71.0.tgz",
+ "integrity": "sha512-8eQ9R218XORK+KLosnf4bu/QsUXvUyVwTbArg7/0NMB1Pu87OJKvj4nhFblkYE8gQV73mW1dx1ptlPCkwRGa7A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "8.71.0",
+ "eslint-visitor-keys": "^5.0.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz",
+ "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/@ungap/structured-clone": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.4.0.tgz",
+ "integrity": "sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ==",
+ "license": "ISC"
+ },
+ "node_modules/@unrs/resolver-binding-android-arm-eabi": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-android-arm-eabi/-/resolver-binding-android-arm-eabi-1.12.2.tgz",
+ "integrity": "sha512-g5T90pqg1bo/7mytQx6F4iBNC0Wsh9cu+z9veDbFjc7HjpesJFWD7QMS0NGStXM075+7dJPPVvBbpZlnrdpi/w==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-android-arm64": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-android-arm64/-/resolver-binding-android-arm64-1.12.2.tgz",
+ "integrity": "sha512-YGCRZv/9GLhwmz6mYDeTsm/92BAyR28l6c2ReweVW5pWgfsitWLY8upvfRlGdoyD8HjeTHSYJWyZGD4KJA/nFQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-darwin-arm64": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-arm64/-/resolver-binding-darwin-arm64-1.12.2.tgz",
+ "integrity": "sha512-u9DiNT1auQMO20A9SyTuG3wUgQWB9Z7KjAg0uFuCDR1FsAY8A0CG2S6JpHS1xwm/w1G08bjXZDcyOCjv1WAm2w==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-darwin-x64": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-x64/-/resolver-binding-darwin-x64-1.12.2.tgz",
+ "integrity": "sha512-f7rPLi/T1HVKZu/u6t87lroib16n8vrSzcyxI7lg4BGO9UF26KhQL44sd9eOUgrTYhvRXtWOIZT5PejdPyJfUA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-freebsd-x64": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-freebsd-x64/-/resolver-binding-freebsd-x64-1.12.2.tgz",
+ "integrity": "sha512-BpcOjWCJub6nRZUS2zA20pmLvjtqAtGejETaIyRLiZiQf++cbrjltLA5NN/xaXfqeOBOSlMFbemIl5/S5tljmg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-linux-arm-gnueabihf": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-gnueabihf/-/resolver-binding-linux-arm-gnueabihf-1.12.2.tgz",
+ "integrity": "sha512-vZTDvdSISZjJx66OzJqtsOhzifbqRjbmI1Mnu49fQDwog5GtDI4QidRiEAYbZCRj9C8YZEW+3ZjqsyS9GR4k2A==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-linux-arm-musleabihf": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-musleabihf/-/resolver-binding-linux-arm-musleabihf-1.12.2.tgz",
+ "integrity": "sha512-BiPI+IrIlwcW4nLLMM21+B1dFPzd55yAVgVGrdgDjNef+ch03GdxrcyaIz8X9SsQirh/kCQ7mviyWlMxdh2D7g==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-linux-arm64-gnu": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-gnu/-/resolver-binding-linux-arm64-gnu-1.12.2.tgz",
+ "integrity": "sha512-zJc0H99FEPoFfSrNpa91HYfxzfAJCr502oxNK1cfdC9hlaFI43RT+JFCann9JUgZmLzzntChHyn13Sgn9ljHNg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-linux-arm64-musl": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-musl/-/resolver-binding-linux-arm64-musl-1.12.2.tgz",
+ "integrity": "sha512-KQ3Lki6l+Pz1k/eBipN41ES+YUK30beLGb9YqcB1O542cyLCNE6GaxrfcY3T6EezmGGk84wb5XyO9loTM9tkcA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-linux-loong64-gnu": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-loong64-gnu/-/resolver-binding-linux-loong64-gnu-1.12.2.tgz",
+ "integrity": "sha512-3SJGEh1DborhG6pyxvhPzCT4bbSIVihsvgJc13P1bHG7KLdNDaF9T3gsTwFc7Jw/5Y5/iWOjkEx7Zy0NvCGX3Q==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-linux-loong64-musl": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-loong64-musl/-/resolver-binding-linux-loong64-musl-1.12.2.tgz",
+ "integrity": "sha512-jiuG/Obbel7uw1PwHNFfrkiKhLAF6mnyZ6aWlOAVN9WqKm8v0OFGnciJIHu8+CMvXLQ8AD51LPzAoUfT21D5Ew==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-linux-ppc64-gnu": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-ppc64-gnu/-/resolver-binding-linux-ppc64-gnu-1.12.2.tgz",
+ "integrity": "sha512-q7xRvVpmcfeL+LlZg8Pbbo6QaTZwDU5BaGZbwfhkEsXJn3Was8xYfE0RBH266xZt0rM6B7i8xAYIvjthuUIWHg==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-linux-riscv64-gnu": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-gnu/-/resolver-binding-linux-riscv64-gnu-1.12.2.tgz",
+ "integrity": "sha512-0CVdx6lcnT3Q9inOH8tsMIOJ6ImndllMjqJHg8RLVdB7Vq4SfkEXl9mCSsVNuNA4MCYycRicCUxPCabVHJRr6A==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-linux-riscv64-musl": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-musl/-/resolver-binding-linux-riscv64-musl-1.12.2.tgz",
+ "integrity": "sha512-iOwlRo9vnp6R6ohHQS11n0NnfdXx/omhkocmIfaPRpQhKZ+3BDMkkdRVh53qjkFkpPddf+FETA28NwGN7l5l+w==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-linux-s390x-gnu": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-s390x-gnu/-/resolver-binding-linux-s390x-gnu-1.12.2.tgz",
+ "integrity": "sha512-HYJtLfXq94q8iZNFT1lknx258wlkkWhZeUXJRqzKBBUJ00CvZ+N33zgbCqimLjsyw5Va6uUxhVa12mI+kaveEw==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-linux-x64-gnu": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-gnu/-/resolver-binding-linux-x64-gnu-1.12.2.tgz",
+ "integrity": "sha512-mPsUhunKKDih5O96Y6enDQyHc1SqBPlY1E/SfMWDM3EdJ95Z9CArPeCVwCCqbP45ljvivdEk8Fxn+SIb1rDAJQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-linux-x64-musl": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-musl/-/resolver-binding-linux-x64-musl-1.12.2.tgz",
+ "integrity": "sha512-azrt6+5ydLd8Vt210AAFis/lZevSfPw93EJRIJG+xPu4WCJ8K0kppCTpMyLPcKT7H15M4Jnt2tMp5bOvCkRC6A==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-openharmony-arm64": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-openharmony-arm64/-/resolver-binding-openharmony-arm64-1.12.2.tgz",
+ "integrity": "sha512-YZ9hP4O0X9PQb8eO980qmLNGH4zT3I9+SZTdt0Pr0YyuGQhYKoOZkV02VzrzyOZJ5xIJ3UFIenKkUkGg8GjgWQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-wasm32-wasi": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-wasm32-wasi/-/resolver-binding-wasm32-wasi-1.12.2.tgz",
+ "integrity": "sha512-tYFDIkMxSflfEc/h92ZWNsZlHSwgimbNHSO3PL2JWQHfCuC2q316jMyYU9TIWZsFK2bQwyK5VAdYgn8ygPj69A==",
+ "cpu": [
+ "wasm32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@emnapi/core": "1.10.0",
+ "@emnapi/runtime": "1.10.0",
+ "@napi-rs/wasm-runtime": "^1.1.4"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@unrs/resolver-binding-wasm32-wasi/node_modules/@emnapi/runtime": {
+ "version": "1.10.0",
+ "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.10.0.tgz",
+ "integrity": "sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@unrs/resolver-binding-win32-arm64-msvc": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-arm64-msvc/-/resolver-binding-win32-arm64-msvc-1.12.2.tgz",
+ "integrity": "sha512-qzNyg3xL0VPQmCaUh+N5jSitce6k+uCBfMDesWRnlULOZaqUkaJ0ybdT+UqlAWJoQjuqfIU/0Ptx9bteN4D82g==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-win32-ia32-msvc": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-ia32-msvc/-/resolver-binding-win32-ia32-msvc-1.12.2.tgz",
+ "integrity": "sha512-WD9sY00OfpHVGfsnHZoA8jVT+esS/Bg8z8jzxp5BnDCjjwsuKsPQrzswwpFy4J1AUJbXPRfkpcX0mXrzeXW79g==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-win32-x64-msvc": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-x64-msvc/-/resolver-binding-win32-x64-msvc-1.12.2.tgz",
+ "integrity": "sha512-nAB74NfSNKknqQ1RrYj6uz8FcXEomu/MATJZxh/x+BArzN2U3JbOYC0APYzUIGhVY3m5hRxA8VPNdPBoG8txlA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/acorn": {
+ "version": "8.18.0",
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.18.0.tgz",
+ "integrity": "sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "acorn": "bin/acorn"
+ },
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/acorn-jsx": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
+ "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
+ }
+ },
+ "node_modules/ajv": {
+ "version": "6.15.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz",
+ "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.1",
+ "fast-json-stable-stringify": "^2.0.0",
+ "json-schema-traverse": "^0.4.1",
+ "uri-js": "^4.2.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/ansi-styles": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/argparse": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
+ "dev": true,
+ "license": "Python-2.0"
+ },
+ "node_modules/aria-query": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.2.tgz",
+ "integrity": "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/array-buffer-byte-length": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz",
+ "integrity": "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.3",
+ "is-array-buffer": "^3.0.5"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/array-includes": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.2.0.tgz",
+ "integrity": "sha512-VXY5eFRarnXcYxwBjJzPmEhH55+rmP79/+ueDhi0F+TuqfHCItagIHqxeUZrmgrOPa31QTh9H85DjX3FfJ0FTg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.9",
+ "call-bound": "^1.0.4",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.24.2",
+ "es-object-atoms": "^1.1.2",
+ "es-shim-unscopables": "^1.1.0",
+ "is-string": "^1.1.1",
+ "math-intrinsics": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/array.prototype.findlast": {
+ "version": "1.2.5",
+ "resolved": "https://registry.npmjs.org/array.prototype.findlast/-/array.prototype.findlast-1.2.5.tgz",
+ "integrity": "sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.23.2",
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.0.0",
+ "es-shim-unscopables": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/array.prototype.findlastindex": {
+ "version": "1.2.6",
+ "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.6.tgz",
+ "integrity": "sha512-F/TKATkzseUExPlfvmwQKGITM3DGTK+vkAsCZoDc5daVygbJBnjEUCbgkAvVFsgfXfX4YIqZ/27G3k3tdXrTxQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.8",
+ "call-bound": "^1.0.4",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.23.9",
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.1.1",
+ "es-shim-unscopables": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/array.prototype.flat": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.3.tgz",
+ "integrity": "sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.8",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.23.5",
+ "es-shim-unscopables": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/array.prototype.flatmap": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.3.tgz",
+ "integrity": "sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.8",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.23.5",
+ "es-shim-unscopables": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/array.prototype.tosorted": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.4.tgz",
+ "integrity": "sha512-p6Fx8B7b7ZhL/gmUsAy0D15WhvDccw3mnGNbZpi3pmeJdxtWsj2jEaI4Y6oo3XiHfzuSgPwKc04MYt6KgvC/wA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.23.3",
+ "es-errors": "^1.3.0",
+ "es-shim-unscopables": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/arraybuffer.prototype.slice": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.4.tgz",
+ "integrity": "sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "array-buffer-byte-length": "^1.0.1",
+ "call-bind": "^1.0.8",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.23.5",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.6",
+ "is-array-buffer": "^3.0.4"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/ast-types-flow": {
+ "version": "0.0.8",
+ "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.8.tgz",
+ "integrity": "sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/async-function": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/async-function/-/async-function-1.0.0.tgz",
+ "integrity": "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/available-typed-arrays": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz",
+ "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "possible-typed-array-names": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/axe-core": {
+ "version": "4.13.0",
+ "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.13.0.tgz",
+ "integrity": "sha512-UzGt8zg7Ny8djbYMhxl2zuEevVa7r2gJjYY5Lwr1xM7+XU2nd6CkIWFTVcCIbAP63vSz71NaVyyuSk9lHKcy0A==",
+ "dev": true,
+ "license": "MPL-2.0",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/axobject-query": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz",
+ "integrity": "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/bail": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz",
+ "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/balanced-match": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/baseline-browser-mapping": {
+ "version": "2.11.27",
+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.27.tgz",
+ "integrity": "sha512-ElY12DaROGuan+lMmZ8Cvo/ZUbXPe7Enc/9VU/b1T3Kp4dwytRcNdR8DoSJN5SNJT/CuvcCA0DHDVmMOCePdRQ==",
+ "license": "Apache-2.0",
+ "bin": {
+ "baseline-browser-mapping": "dist/cli.cjs"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/brace-expansion": {
+ "version": "1.1.21",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz",
+ "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "node_modules/braces": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
+ "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fill-range": "^7.1.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/browserslist": {
+ "version": "4.29.3",
+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.3.tgz",
+ "integrity": "sha512-1R4kiYKXGViqEN0CnoDrXc1StD9niAwu+j2dukWzrD4bJgsD4lDmEp0CRbc6E/vYJIfTHwPmwyaKtVSudICdPA==",
+ "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.26",
+ "caniuse-lite": "^1.0.30001813",
+ "electron-to-chromium": "^1.5.439",
+ "node-releases": "^2.0.57",
+ "update-browserslist-db": "^1.3.3"
+ },
+ "bin": {
+ "browserslist": "cli.js"
+ },
+ "engines": {
+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
+ }
+ },
+ "node_modules/call-bind": {
+ "version": "1.0.9",
+ "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.9.tgz",
+ "integrity": "sha512-a/hy+pNsFUTR+Iz8TCJvXudKVLAnz/DyeSUo10I5yvFDQJBFU2s9uqQpoSrJlroHUKoKqzg+epxyP9lqFdzfBQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.2",
+ "es-define-property": "^1.0.1",
+ "get-intrinsic": "^1.3.0",
+ "set-function-length": "^1.2.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/call-bind-apply-helpers": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
+ "dev": true,
+ "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==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.2",
+ "get-intrinsic": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/callsites": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
+ "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/caniuse-lite": {
+ "version": "1.0.30001814",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001814.tgz",
+ "integrity": "sha512-/Uaf1lAzr59XcMpW0o96WoEfr+VXK2OX4U9AgFoiSHsVJ4HppnIFUjtYzsyDH2+tgANaQb2/oxYGwCPapN1FpA==",
+ "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/ccount": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz",
+ "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/chalk": {
+ "version": "4.1.2",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/chalk?sponsor=1"
+ }
+ },
+ "node_modules/character-entities": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz",
+ "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/character-entities-html4": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz",
+ "integrity": "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/character-entities-legacy": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz",
+ "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/character-reference-invalid": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-2.0.1.tgz",
+ "integrity": "sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/client-only": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz",
+ "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==",
+ "license": "MIT"
+ },
+ "node_modules/color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-name": "~1.1.4"
+ },
+ "engines": {
+ "node": ">=7.0.0"
+ }
+ },
+ "node_modules/color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/comma-separated-tokens": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz",
+ "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/concat-map": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/convert-source-map": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/cross-spawn": {
+ "version": "7.0.6",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/csstype": {
+ "version": "3.2.3",
+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",
+ "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/damerau-levenshtein": {
+ "version": "1.0.8",
+ "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz",
+ "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==",
+ "dev": true,
+ "license": "BSD-2-Clause"
+ },
+ "node_modules/data-view-buffer": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.2.tgz",
+ "integrity": "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.3",
+ "es-errors": "^1.3.0",
+ "is-data-view": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/data-view-byte-length": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.2.tgz",
+ "integrity": "sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.3",
+ "es-errors": "^1.3.0",
+ "is-data-view": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/inspect-js"
+ }
+ },
+ "node_modules/data-view-byte-offset": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.1.tgz",
+ "integrity": "sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "es-errors": "^1.3.0",
+ "is-data-view": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/debug": {
+ "version": "4.4.3",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/decode-named-character-reference": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.3.0.tgz",
+ "integrity": "sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==",
+ "license": "MIT",
+ "dependencies": {
+ "character-entities": "^2.0.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/deep-is": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
+ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/define-data-property": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",
+ "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es-define-property": "^1.0.0",
+ "es-errors": "^1.3.0",
+ "gopd": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/define-properties": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz",
+ "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "define-data-property": "^1.0.1",
+ "has-property-descriptors": "^1.0.0",
+ "object-keys": "^1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/dequal": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",
+ "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/detect-libc": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
+ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
+ "devOptional": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/devlop": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz",
+ "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==",
+ "license": "MIT",
+ "dependencies": {
+ "dequal": "^2.0.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/doctrine": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz",
+ "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "esutils": "^2.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/dunder-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
+ "dev": true,
+ "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/electron-to-chromium": {
+ "version": "1.5.444",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.444.tgz",
+ "integrity": "sha512-5ss/uJfoDYDHT0lfJzT6FbcskIzROIOPf0BbbFkGcvDzoJU7i//9GDrwwIHQVmIsrAGiF3ihpADBRIsrEFt1rQ==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/emoji-regex": {
+ "version": "9.2.2",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz",
+ "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/enhanced-resolve": {
+ "version": "5.26.0",
+ "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.26.0.tgz",
+ "integrity": "sha512-9vhedylFonb2YGogzUKX6+Ja72gOJbN1QHAqdrvqLwhdl/QWbKopzoUC9EbQNVsAns/bx/4uyqalrQAoy1IByw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.2.4",
+ "tapable": "^2.3.3"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/es-abstract": {
+ "version": "1.24.2",
+ "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.2.tgz",
+ "integrity": "sha512-2FpH9Q5i2RRwyEP1AylXe6nYLR5OhaJTZwmlcP0dL/+JCbgg7yyEo/sEK6HeGZRf3dFpWwThaRHVApXSkW3xeg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "array-buffer-byte-length": "^1.0.2",
+ "arraybuffer.prototype.slice": "^1.0.4",
+ "available-typed-arrays": "^1.0.7",
+ "call-bind": "^1.0.8",
+ "call-bound": "^1.0.4",
+ "data-view-buffer": "^1.0.2",
+ "data-view-byte-length": "^1.0.2",
+ "data-view-byte-offset": "^1.0.1",
+ "es-define-property": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.1.1",
+ "es-set-tostringtag": "^2.1.0",
+ "es-to-primitive": "^1.3.0",
+ "function.prototype.name": "^1.1.8",
+ "get-intrinsic": "^1.3.0",
+ "get-proto": "^1.0.1",
+ "get-symbol-description": "^1.1.0",
+ "globalthis": "^1.0.4",
+ "gopd": "^1.2.0",
+ "has-property-descriptors": "^1.0.2",
+ "has-proto": "^1.2.0",
+ "has-symbols": "^1.1.0",
+ "hasown": "^2.0.2",
+ "internal-slot": "^1.1.0",
+ "is-array-buffer": "^3.0.5",
+ "is-callable": "^1.2.7",
+ "is-data-view": "^1.0.2",
+ "is-negative-zero": "^2.0.3",
+ "is-regex": "^1.2.1",
+ "is-set": "^2.0.3",
+ "is-shared-array-buffer": "^1.0.4",
+ "is-string": "^1.1.1",
+ "is-typed-array": "^1.1.15",
+ "is-weakref": "^1.1.1",
+ "math-intrinsics": "^1.1.0",
+ "object-inspect": "^1.13.4",
+ "object-keys": "^1.1.1",
+ "object.assign": "^4.1.7",
+ "own-keys": "^1.0.1",
+ "regexp.prototype.flags": "^1.5.4",
+ "safe-array-concat": "^1.1.3",
+ "safe-push-apply": "^1.0.0",
+ "safe-regex-test": "^1.1.0",
+ "set-proto": "^1.0.0",
+ "stop-iteration-iterator": "^1.1.0",
+ "string.prototype.trim": "^1.2.10",
+ "string.prototype.trimend": "^1.0.9",
+ "string.prototype.trimstart": "^1.0.8",
+ "typed-array-buffer": "^1.0.3",
+ "typed-array-byte-length": "^1.0.3",
+ "typed-array-byte-offset": "^1.0.4",
+ "typed-array-length": "^1.0.7",
+ "unbox-primitive": "^1.1.0",
+ "which-typed-array": "^1.1.19"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/es-abstract-get": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/es-abstract-get/-/es-abstract-get-1.0.0.tgz",
+ "integrity": "sha512-6PMWXpdhshVvFp+FoWYs1EvG1Nj0tvk0dZM+XcK0xMEM1czRVcP6ohqPWHy6qPagSpC8j4+p89WXlT+xXJs/fg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.1.2",
+ "is-callable": "^1.2.7",
+ "object-inspect": "^1.13.4"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/es-define-property": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
+ "dev": true,
+ "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==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-iterator-helpers": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.4.0.tgz",
+ "integrity": "sha512-c/A0P0oxkACDc+cKWw8evLXK83oBKgn0qPOqCYT4x9uolpCIJAcYvJC9QYKNDRPsTeGyCrQ326jrvgZWdCdK5Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.9",
+ "call-bound": "^1.0.4",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.24.2",
+ "es-errors": "^1.3.0",
+ "es-set-tostringtag": "^2.1.0",
+ "function-bind": "^1.1.2",
+ "get-intrinsic": "^1.3.0",
+ "globalthis": "^1.0.4",
+ "gopd": "^1.2.0",
+ "has-property-descriptors": "^1.0.2",
+ "has-proto": "^1.2.0",
+ "has-symbols": "^1.1.0",
+ "internal-slot": "^1.1.0",
+ "iterator.prototype": "^1.1.5",
+ "math-intrinsics": "^1.1.0"
+ },
+ "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==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-set-tostringtag": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",
+ "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.6",
+ "has-tostringtag": "^1.0.2",
+ "hasown": "^2.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-shim-unscopables": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.1.0.tgz",
+ "integrity": "sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "hasown": "^2.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-to-primitive": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.4.tgz",
+ "integrity": "sha512-yPDz7wqpg1/mmHLmS3tcfTfbw5f1eryXvyghYBffGdERwe+mV7ZcWzTR8LR17Kvqt3qfPurjlonmnq3MKXIOXw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es-abstract-get": "^1.0.0",
+ "es-define-property": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "is-callable": "^1.2.7",
+ "is-date-object": "^1.1.0",
+ "is-symbol": "^1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/escalade": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/escape-string-regexp": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
+ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/eslint": {
+ "version": "9.39.5",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.5.tgz",
+ "integrity": "sha512-DgZS62aPLXKlnxILS/AYCoRvHaZeXceIzlXPkkGGzJWSow1aEk0lbTlxUSlyjC8jcaKxAdOnTDz+o1JFSBsyjw==",
+ "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/eslint-utils": "^4.8.0",
+ "@eslint-community/regexpp": "^4.12.1",
+ "@eslint/config-array": "^0.21.2",
+ "@eslint/config-helpers": "^0.4.2",
+ "@eslint/core": "^0.17.0",
+ "@eslint/eslintrc": "^3.3.6",
+ "@eslint/js": "9.39.5",
+ "@eslint/plugin-kit": "^0.4.1",
+ "@humanfs/node": "^0.16.6",
+ "@humanwhocodes/module-importer": "^1.0.1",
+ "@humanwhocodes/retry": "^0.4.2",
+ "@types/estree": "^1.0.6",
+ "ajv": "^6.14.0",
+ "chalk": "^4.0.0",
+ "cross-spawn": "^7.0.6",
+ "debug": "^4.3.2",
+ "escape-string-regexp": "^4.0.0",
+ "eslint-scope": "^8.4.0",
+ "eslint-visitor-keys": "^4.2.1",
+ "espree": "^10.4.0",
+ "esquery": "^1.5.0",
+ "esutils": "^2.0.2",
+ "fast-deep-equal": "^3.1.3",
+ "file-entry-cache": "^8.0.0",
+ "find-up": "^5.0.0",
+ "glob-parent": "^6.0.2",
+ "ignore": "^5.2.0",
+ "imurmurhash": "^0.1.4",
+ "is-glob": "^4.0.0",
+ "json-stable-stringify-without-jsonify": "^1.0.1",
+ "lodash.merge": "^4.6.2",
+ "minimatch": "^3.1.5",
+ "natural-compare": "^1.4.0",
+ "optionator": "^0.9.3"
+ },
+ "bin": {
+ "eslint": "bin/eslint.js"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://eslint.org/donate"
+ },
+ "peerDependencies": {
+ "jiti": "*"
+ },
+ "peerDependenciesMeta": {
+ "jiti": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/eslint-config-next": {
+ "version": "16.3.8",
+ "resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-16.3.8.tgz",
+ "integrity": "sha512-81vovwMe6NGnoFsl0KUJWzlS+y239i3fdsxs49gSEX3pDQW2cuKy+fxUPXNkQqqx6OCPheYPtBlSufc9aZ0k+w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@next/eslint-plugin-next": "16.3.8",
+ "eslint-import-resolver-node": "^0.3.6",
+ "eslint-import-resolver-typescript": "^3.5.2",
+ "eslint-plugin-import": "^2.32.0",
+ "eslint-plugin-jsx-a11y": "^6.10.0",
+ "eslint-plugin-react": "^7.37.0",
+ "eslint-plugin-react-hooks": "^7.0.0",
+ "globals": "16.4.0",
+ "typescript-eslint": "^8.46.0"
+ },
+ "peerDependencies": {
+ "eslint": ">=9.0.0",
+ "typescript": ">=3.3.1"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/eslint-config-next/node_modules/globals": {
+ "version": "16.4.0",
+ "resolved": "https://registry.npmjs.org/globals/-/globals-16.4.0.tgz",
+ "integrity": "sha512-ob/2LcVVaVGCYN+r14cnwnoDPUufjiYgSqRhiFD0Q1iI4Odora5RE8Iv1D24hAz5oMophRGkGz+yuvQmmUMnMw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/eslint-import-resolver-node": {
+ "version": "0.3.10",
+ "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.10.tgz",
+ "integrity": "sha512-tRrKqFyCaKict5hOd244sL6EQFNycnMQnBe+j8uqGNXYzsImGbGUU4ibtoaBmv5FLwJwcFJNeg1GeVjQfbMrDQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^3.2.7",
+ "is-core-module": "^2.16.1",
+ "resolve": "^2.0.0-next.6"
+ }
+ },
+ "node_modules/eslint-import-resolver-node/node_modules/debug": {
+ "version": "3.2.7",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz",
+ "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.1"
+ }
+ },
+ "node_modules/eslint-import-resolver-typescript": {
+ "version": "3.10.1",
+ "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.10.1.tgz",
+ "integrity": "sha512-A1rHYb06zjMGAxdLSkN2fXPBwuSaQ0iO5M/hdyS0Ajj1VBaRp0sPD3dn1FhME3c/JluGFbwSxyCfqdSbtQLAHQ==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "@nolyfill/is-core-module": "1.0.39",
+ "debug": "^4.4.0",
+ "get-tsconfig": "^4.10.0",
+ "is-bun-module": "^2.0.0",
+ "stable-hash": "^0.0.5",
+ "tinyglobby": "^0.2.13",
+ "unrs-resolver": "^1.6.2"
+ },
+ "engines": {
+ "node": "^14.18.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint-import-resolver-typescript"
+ },
+ "peerDependencies": {
+ "eslint": "*",
+ "eslint-plugin-import": "*",
+ "eslint-plugin-import-x": "*"
+ },
+ "peerDependenciesMeta": {
+ "eslint-plugin-import": {
+ "optional": true
+ },
+ "eslint-plugin-import-x": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/eslint-module-utils": {
+ "version": "2.14.0",
+ "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.14.0.tgz",
+ "integrity": "sha512-W2WCRZ9Dqntd+2u8jJcVMV2PKulc6RdLgUUoh/yQr3uB6lo/ZOeGx11sv60/8S4QFFKNslAlWhr9u0Ef7ZW6Ig==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^3.2.7"
+ },
+ "engines": {
+ "node": ">=4"
+ },
+ "peerDependenciesMeta": {
+ "eslint": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/eslint-module-utils/node_modules/debug": {
+ "version": "3.2.7",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz",
+ "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.1"
+ }
+ },
+ "node_modules/eslint-plugin-import": {
+ "version": "2.32.0",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.32.0.tgz",
+ "integrity": "sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@rtsao/scc": "^1.1.0",
+ "array-includes": "^3.1.9",
+ "array.prototype.findlastindex": "^1.2.6",
+ "array.prototype.flat": "^1.3.3",
+ "array.prototype.flatmap": "^1.3.3",
+ "debug": "^3.2.7",
+ "doctrine": "^2.1.0",
+ "eslint-import-resolver-node": "^0.3.9",
+ "eslint-module-utils": "^2.12.1",
+ "hasown": "^2.0.2",
+ "is-core-module": "^2.16.1",
+ "is-glob": "^4.0.3",
+ "minimatch": "^3.1.2",
+ "object.fromentries": "^2.0.8",
+ "object.groupby": "^1.0.3",
+ "object.values": "^1.2.1",
+ "semver": "^6.3.1",
+ "string.prototype.trimend": "^1.0.9",
+ "tsconfig-paths": "^3.15.0"
+ },
+ "engines": {
+ "node": ">=4"
+ },
+ "peerDependencies": {
+ "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9"
+ }
+ },
+ "node_modules/eslint-plugin-import/node_modules/debug": {
+ "version": "3.2.7",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz",
+ "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.1"
+ }
+ },
+ "node_modules/eslint-plugin-jsx-a11y": {
+ "version": "6.10.2",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.10.2.tgz",
+ "integrity": "sha512-scB3nz4WmG75pV8+3eRUQOHZlNSUhFNq37xnpgRkCCELU3XMvXAxLk1eqWWyE22Ki4Q01Fnsw9BA3cJHDPgn2Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "aria-query": "^5.3.2",
+ "array-includes": "^3.1.8",
+ "array.prototype.flatmap": "^1.3.2",
+ "ast-types-flow": "^0.0.8",
+ "axe-core": "^4.10.0",
+ "axobject-query": "^4.1.0",
+ "damerau-levenshtein": "^1.0.8",
+ "emoji-regex": "^9.2.2",
+ "hasown": "^2.0.2",
+ "jsx-ast-utils": "^3.3.5",
+ "language-tags": "^1.0.9",
+ "minimatch": "^3.1.2",
+ "object.fromentries": "^2.0.8",
+ "safe-regex-test": "^1.0.3",
+ "string.prototype.includes": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=4.0"
+ },
+ "peerDependencies": {
+ "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9"
+ }
+ },
+ "node_modules/eslint-plugin-react": {
+ "version": "7.37.5",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.37.5.tgz",
+ "integrity": "sha512-Qteup0SqU15kdocexFNAJMvCJEfa2xUKNV4CC1xsVMrIIqEy3SQ/rqyxCWNzfrd3/ldy6HMlD2e0JDVpDg2qIA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "array-includes": "^3.1.8",
+ "array.prototype.findlast": "^1.2.5",
+ "array.prototype.flatmap": "^1.3.3",
+ "array.prototype.tosorted": "^1.1.4",
+ "doctrine": "^2.1.0",
+ "es-iterator-helpers": "^1.2.1",
+ "estraverse": "^5.3.0",
+ "hasown": "^2.0.2",
+ "jsx-ast-utils": "^2.4.1 || ^3.0.0",
+ "minimatch": "^3.1.2",
+ "object.entries": "^1.1.9",
+ "object.fromentries": "^2.0.8",
+ "object.values": "^1.2.1",
+ "prop-types": "^15.8.1",
+ "resolve": "^2.0.0-next.5",
+ "semver": "^6.3.1",
+ "string.prototype.matchall": "^4.0.12",
+ "string.prototype.repeat": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ },
+ "peerDependencies": {
+ "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7"
+ }
+ },
+ "node_modules/eslint-plugin-react-hooks": {
+ "version": "7.1.1",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.1.1.tgz",
+ "integrity": "sha512-f2I7Gw6JbvCexzIInuSbZpfdQ44D7iqdWX01FKLvrPgqxoE7oMj8clOfto8U6vYiz4yd5oKu39rRSVOe1zRu0g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/core": "^7.24.4",
+ "@babel/parser": "^7.24.4",
+ "hermes-parser": "^0.25.1",
+ "zod": "^3.25.0 || ^4.0.0",
+ "zod-validation-error": "^3.5.0 || ^4.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 || ^10.0.0"
+ }
+ },
+ "node_modules/eslint-scope": {
+ "version": "8.4.0",
+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz",
+ "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "esrecurse": "^4.3.0",
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/eslint-visitor-keys": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz",
+ "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/espree": {
+ "version": "10.4.0",
+ "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz",
+ "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "acorn": "^8.15.0",
+ "acorn-jsx": "^5.3.2",
+ "eslint-visitor-keys": "^4.2.1"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/esquery": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz",
+ "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "estraverse": "^5.1.0"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/esrecurse": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
+ "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/estraverse": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
+ "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/estree-util-is-identifier-name": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/estree-util-is-identifier-name/-/estree-util-is-identifier-name-3.0.0.tgz",
+ "integrity": "sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg==",
+ "license": "MIT",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/esutils": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
+ "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/extend": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
+ "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==",
+ "license": "MIT"
+ },
+ "node_modules/fast-deep-equal": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fast-equals": {
+ "version": "5.4.3",
+ "resolved": "https://registry.npmjs.org/fast-equals/-/fast-equals-5.4.3.tgz",
+ "integrity": "sha512-8unmvA0qrfpFWBYUate9BTGtQdKHWBYt+KdAIkag7Vvxe7wz8Q2nJg7fLMC0bJqe0bjP31kca7Ckaawrs4Istg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/fast-glob": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz",
+ "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@nodelib/fs.stat": "^2.0.2",
+ "@nodelib/fs.walk": "^1.2.3",
+ "glob-parent": "^5.1.2",
+ "merge2": "^1.3.0",
+ "micromatch": "^4.0.4"
+ },
+ "engines": {
+ "node": ">=8.6.0"
+ }
+ },
+ "node_modules/fast-glob/node_modules/glob-parent": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/fast-json-stable-stringify": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
+ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fast-levenshtein": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
+ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fastq": {
+ "version": "1.20.3",
+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.3.tgz",
+ "integrity": "sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "reusify": "^1.0.4"
+ }
+ },
+ "node_modules/file-entry-cache": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz",
+ "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "flat-cache": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/fill-range": {
+ "version": "7.1.1",
+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
+ "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "to-regex-range": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/find-up": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
+ "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "locate-path": "^6.0.0",
+ "path-exists": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/flat-cache": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz",
+ "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "flatted": "^3.2.9",
+ "keyv": "^4.5.4"
+ },
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/flatted": {
+ "version": "3.4.4",
+ "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.4.tgz",
+ "integrity": "sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/for-each": {
+ "version": "0.3.5",
+ "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz",
+ "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-callable": "^1.2.7"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/function-bind": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/function.prototype.name": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.2.0.tgz",
+ "integrity": "sha512-jObKIik1P2QjPHP5nz5BaOtUlfgS0fWo8IUByNXkM+o+02sJOi94em77GwJKQSJ3gfPHdgzLNrHc1uokV4P/ew==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.9",
+ "call-bound": "^1.0.4",
+ "es-define-property": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "functions-have-names": "^1.2.3",
+ "has-property-descriptors": "^1.0.2",
+ "hasown": "^2.0.4",
+ "is-callable": "^1.2.7",
+ "is-document.all": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/functions-have-names": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz",
+ "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/generator-function": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/generator-function/-/generator-function-2.0.1.tgz",
+ "integrity": "sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/gensync": {
+ "version": "1.0.0-beta.2",
+ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",
+ "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/get-intrinsic": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.2",
+ "es-define-property": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.1.1",
+ "function-bind": "^1.1.2",
+ "get-proto": "^1.0.1",
+ "gopd": "^1.2.0",
+ "has-symbols": "^1.1.0",
+ "hasown": "^2.0.2",
+ "math-intrinsics": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/get-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "dunder-proto": "^1.0.1",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/get-symbol-description": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz",
+ "integrity": "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.3",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.6"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/get-tsconfig": {
+ "version": "4.14.3",
+ "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.14.3.tgz",
+ "integrity": "sha512-++QEw4DIY7WGoukz+/+A/8dGYPT9l9yIadnmSgZ8Rjr3YVSVDipQSO9CdnJo9ePqFqUUqh+wk9uIaoiAwsiPkA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "resolve-pkg-maps": "^1.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1"
+ }
+ },
+ "node_modules/glob-parent": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.3"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/globals": {
+ "version": "14.0.0",
+ "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz",
+ "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/globalthis": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz",
+ "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "define-properties": "^1.2.1",
+ "gopd": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/gopd": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/graceful-fs": {
+ "version": "4.2.11",
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
+ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/has-bigints": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz",
+ "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/has-property-descriptors": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",
+ "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es-define-property": "^1.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/has-proto": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz",
+ "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "dunder-proto": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/has-symbols": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/has-tostringtag": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
+ "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-symbols": "^1.0.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/hasown": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz",
+ "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/hast-util-to-jsx-runtime": {
+ "version": "2.3.6",
+ "resolved": "https://registry.npmjs.org/hast-util-to-jsx-runtime/-/hast-util-to-jsx-runtime-2.3.6.tgz",
+ "integrity": "sha512-zl6s8LwNyo1P9uw+XJGvZtdFF1GdAkOg8ujOw+4Pyb76874fLps4ueHXDhXWdk6YHQ6OgUtinliG7RsYvCbbBg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree": "^1.0.0",
+ "@types/hast": "^3.0.0",
+ "@types/unist": "^3.0.0",
+ "comma-separated-tokens": "^2.0.0",
+ "devlop": "^1.0.0",
+ "estree-util-is-identifier-name": "^3.0.0",
+ "hast-util-whitespace": "^3.0.0",
+ "mdast-util-mdx-expression": "^2.0.0",
+ "mdast-util-mdx-jsx": "^3.0.0",
+ "mdast-util-mdxjs-esm": "^2.0.0",
+ "property-information": "^7.0.0",
+ "space-separated-tokens": "^2.0.0",
+ "style-to-js": "^1.0.0",
+ "unist-util-position": "^5.0.0",
+ "vfile-message": "^4.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/hast-util-whitespace": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz",
+ "integrity": "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/hast": "^3.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/hermes-estree": {
+ "version": "0.25.1",
+ "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.25.1.tgz",
+ "integrity": "sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/hermes-parser": {
+ "version": "0.25.1",
+ "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.25.1.tgz",
+ "integrity": "sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "hermes-estree": "0.25.1"
+ }
+ },
+ "node_modules/html-url-attributes": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/html-url-attributes/-/html-url-attributes-3.0.1.tgz",
+ "integrity": "sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ==",
+ "license": "MIT",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/ignore": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
+ "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/import-fresh": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",
+ "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "parent-module": "^1.0.0",
+ "resolve-from": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/imurmurhash": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
+ "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8.19"
+ }
+ },
+ "node_modules/inline-style-parser": {
+ "version": "0.2.7",
+ "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.2.7.tgz",
+ "integrity": "sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA==",
+ "license": "MIT"
+ },
+ "node_modules/internal-slot": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz",
+ "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "hasown": "^2.0.2",
+ "side-channel": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/is-alphabetical": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-2.0.1.tgz",
+ "integrity": "sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/is-alphanumerical": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-2.0.1.tgz",
+ "integrity": "sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==",
+ "license": "MIT",
+ "dependencies": {
+ "is-alphabetical": "^2.0.0",
+ "is-decimal": "^2.0.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/is-array-buffer": {
+ "version": "3.0.5",
+ "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz",
+ "integrity": "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.8",
+ "call-bound": "^1.0.3",
+ "get-intrinsic": "^1.2.6"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-async-function": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.1.1.tgz",
+ "integrity": "sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "async-function": "^1.0.0",
+ "call-bound": "^1.0.3",
+ "get-proto": "^1.0.1",
+ "has-tostringtag": "^1.0.2",
+ "safe-regex-test": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-bigint": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz",
+ "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-bigints": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-boolean-object": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.2.tgz",
+ "integrity": "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.3",
+ "has-tostringtag": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-bun-module": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/is-bun-module/-/is-bun-module-2.0.0.tgz",
+ "integrity": "sha512-gNCGbnnnnFAUGKeZ9PdbyeGYJqewpmc2aKHUEMO5nQPWU9lOmv7jcmQIv+qHD8fXW6W7qfuCwX4rY9LNRjXrkQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "semver": "^7.7.1"
+ }
+ },
+ "node_modules/is-bun-module/node_modules/semver": {
+ "version": "7.8.5",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",
+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/is-callable": {
+ "version": "1.2.7",
+ "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz",
+ "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-core-module": {
+ "version": "2.17.0",
+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.17.0.tgz",
+ "integrity": "sha512-J/vG0zBCbIKOQFfufSwyXdMrsohyJIUNkrnmo6WZGzoM7tr/lsbfW5b2BvisL6zsyMzK9UxV9L6c7AoFbyXHOA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "hasown": "^2.0.4"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-data-view": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.2.tgz",
+ "integrity": "sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "get-intrinsic": "^1.2.6",
+ "is-typed-array": "^1.1.13"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-date-object": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz",
+ "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "has-tostringtag": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-decimal": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-2.0.1.tgz",
+ "integrity": "sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/is-document.all": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-document.all/-/is-document.all-1.0.0.tgz",
+ "integrity": "sha512-+XSoyS05OdBbhFuELhgTCpFNHkpBOJqtsZfUFFpe5QTw+9Sjbh8zitxhQkYAo6wV7e1Vb8cAPvpCk9jGam/82g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.4"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-extglob": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-finalizationregistry": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.1.1.tgz",
+ "integrity": "sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-generator-function": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.2.tgz",
+ "integrity": "sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.4",
+ "generator-function": "^2.0.0",
+ "get-proto": "^1.0.1",
+ "has-tostringtag": "^1.0.2",
+ "safe-regex-test": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-glob": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extglob": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-hexadecimal": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-2.0.1.tgz",
+ "integrity": "sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/is-map": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz",
+ "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-negative-zero": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz",
+ "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-number": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.12.0"
+ }
+ },
+ "node_modules/is-number-object": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.1.tgz",
+ "integrity": "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.3",
+ "has-tostringtag": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-plain-obj": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz",
+ "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/is-regex": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz",
+ "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "gopd": "^1.2.0",
+ "has-tostringtag": "^1.0.2",
+ "hasown": "^2.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-set": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz",
+ "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-shared-array-buffer": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz",
+ "integrity": "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-string": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz",
+ "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.3",
+ "has-tostringtag": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-symbol": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.1.tgz",
+ "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "has-symbols": "^1.1.0",
+ "safe-regex-test": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-typed-array": {
+ "version": "1.1.15",
+ "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz",
+ "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "which-typed-array": "^1.1.16"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-weakmap": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz",
+ "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-weakref": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.1.1.tgz",
+ "integrity": "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-weakset": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.4.tgz",
+ "integrity": "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.3",
+ "get-intrinsic": "^1.2.6"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/isarray": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz",
+ "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/isexe": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/iterator.prototype": {
+ "version": "1.1.5",
+ "resolved": "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.5.tgz",
+ "integrity": "sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "define-data-property": "^1.1.4",
+ "es-object-atoms": "^1.0.0",
+ "get-intrinsic": "^1.2.6",
+ "get-proto": "^1.0.0",
+ "has-symbols": "^1.1.0",
+ "set-function-name": "^2.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/jiti": {
+ "version": "2.7.0",
+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz",
+ "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "jiti": "lib/jiti-cli.mjs"
+ }
+ },
+ "node_modules/js-tokens": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/js-yaml": {
+ "version": "4.3.2",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz",
+ "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/puzrin"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/nodeca"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "argparse": "^2.0.1"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/jsesc": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
+ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "jsesc": "bin/jsesc"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/json-buffer": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",
+ "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-schema-traverse": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-stable-stringify-without-jsonify": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
+ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/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/jsx-ast-utils": {
+ "version": "3.3.5",
+ "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz",
+ "integrity": "sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "array-includes": "^3.1.6",
+ "array.prototype.flat": "^1.3.1",
+ "object.assign": "^4.1.4",
+ "object.values": "^1.1.6"
+ },
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/keyv": {
+ "version": "4.5.4",
+ "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",
+ "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "json-buffer": "3.0.1"
+ }
+ },
+ "node_modules/language-subtag-registry": {
+ "version": "0.3.23",
+ "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.23.tgz",
+ "integrity": "sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==",
+ "dev": true,
+ "license": "CC0-1.0"
+ },
+ "node_modules/language-tags": {
+ "version": "1.0.9",
+ "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.9.tgz",
+ "integrity": "sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "language-subtag-registry": "^0.3.20"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/levn": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
+ "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "prelude-ls": "^1.2.1",
+ "type-check": "~0.4.0"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/lightningcss": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz",
+ "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==",
+ "dev": true,
+ "license": "MPL-2.0",
+ "dependencies": {
+ "detect-libc": "^2.0.3"
+ },
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ },
+ "optionalDependencies": {
+ "lightningcss-android-arm64": "1.32.0",
+ "lightningcss-darwin-arm64": "1.32.0",
+ "lightningcss-darwin-x64": "1.32.0",
+ "lightningcss-freebsd-x64": "1.32.0",
+ "lightningcss-linux-arm-gnueabihf": "1.32.0",
+ "lightningcss-linux-arm64-gnu": "1.32.0",
+ "lightningcss-linux-arm64-musl": "1.32.0",
+ "lightningcss-linux-x64-gnu": "1.32.0",
+ "lightningcss-linux-x64-musl": "1.32.0",
+ "lightningcss-win32-arm64-msvc": "1.32.0",
+ "lightningcss-win32-x64-msvc": "1.32.0"
+ }
+ },
+ "node_modules/lightningcss-android-arm64": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz",
+ "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-darwin-arm64": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz",
+ "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-darwin-x64": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz",
+ "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-freebsd-x64": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz",
+ "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-arm-gnueabihf": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz",
+ "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-arm64-gnu": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz",
+ "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-arm64-musl": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz",
+ "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-x64-gnu": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz",
+ "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-x64-musl": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz",
+ "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-win32-arm64-msvc": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz",
+ "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-win32-x64-msvc": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz",
+ "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/linkifyjs": {
+ "version": "4.3.3",
+ "resolved": "https://registry.npmjs.org/linkifyjs/-/linkifyjs-4.3.3.tgz",
+ "integrity": "sha512-P8aEP5U/D1/IlTY2OeYsErdwh9bGuLE30NcXtKEjgdHcahveQoQwM2yZNsioQHsWFz0P7KKudisbrzCgR0sDHg==",
+ "license": "MIT"
+ },
+ "node_modules/locate-path": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
+ "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-locate": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/lodash.merge": {
+ "version": "4.6.2",
+ "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
+ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/longest-streak": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz",
+ "integrity": "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/loose-envify": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
+ "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "js-tokens": "^3.0.0 || ^4.0.0"
+ },
+ "bin": {
+ "loose-envify": "cli.js"
+ }
+ },
+ "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/magic-string": {
+ "version": "0.30.21",
+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",
+ "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.5.5"
+ }
+ },
+ "node_modules/markdown-table": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-3.0.4.tgz",
+ "integrity": "sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/marked": {
+ "version": "17.0.6",
+ "resolved": "https://registry.npmjs.org/marked/-/marked-17.0.6.tgz",
+ "integrity": "sha512-gB0gkNafnonOw0obSTEGZTT86IuhILt2Wfx0mWH/1Au83kybTayroZ/V6nS25mN7u8ASy+5fMhgB3XPNrOZdmA==",
+ "license": "MIT",
+ "bin": {
+ "marked": "bin/marked.js"
+ },
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/math-intrinsics": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/mdast-util-find-and-replace": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-3.0.3.tgz",
+ "integrity": "sha512-xPgpDNl0/OXHsI7TlaIs22lWnH3KlpvZdXG1ET/m/YT2Hhdkx8lJV4kLphE6l9simyM4KPDFBwas08BgEob6Jw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "escape-string-regexp": "^5.0.0",
+ "unist-util-is": "^6.0.0",
+ "unist-util-visit-parents": "^6.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz",
+ "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/mdast-util-from-markdown": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.1.0.tgz",
+ "integrity": "sha512-KRLgmPaP2H1ul2bpoJkOS+9pAcDAAj9Nu1mqLnh8NLeJG5tlvj42TH80PIGBpROWlRXLk0lDrWNuZCFy/tsB4A==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "@types/unist": "^3.0.0",
+ "decode-named-character-reference": "^1.0.0",
+ "devlop": "^1.0.0",
+ "mdast-util-to-string": "^4.0.0",
+ "micromark": "^4.0.0",
+ "micromark-util-decode-numeric-character-reference": "^2.0.0",
+ "micromark-util-decode-string": "^2.0.0",
+ "micromark-util-normalize-identifier": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0",
+ "unist-util-stringify-position": "^4.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-gfm": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/mdast-util-gfm/-/mdast-util-gfm-3.1.0.tgz",
+ "integrity": "sha512-0ulfdQOM3ysHhCJ1p06l0b0VKlhU0wuQs3thxZQagjcjPrlFRqY215uZGHHJan9GEAXd9MbfPjFJz+qMkVR6zQ==",
+ "license": "MIT",
+ "dependencies": {
+ "mdast-util-from-markdown": "^2.0.0",
+ "mdast-util-gfm-autolink-literal": "^2.0.0",
+ "mdast-util-gfm-footnote": "^2.0.0",
+ "mdast-util-gfm-strikethrough": "^2.0.0",
+ "mdast-util-gfm-table": "^2.0.0",
+ "mdast-util-gfm-task-list-item": "^2.0.0",
+ "mdast-util-to-markdown": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-gfm-autolink-literal": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-2.0.1.tgz",
+ "integrity": "sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "ccount": "^2.0.0",
+ "devlop": "^1.0.0",
+ "mdast-util-find-and-replace": "^3.0.0",
+ "micromark-util-character": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-gfm-footnote": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/mdast-util-gfm-footnote/-/mdast-util-gfm-footnote-2.1.0.tgz",
+ "integrity": "sha512-sqpDWlsHn7Ac9GNZQMeUzPQSMzR6Wv0WKRNvQRg0KqHh02fpTz69Qc1QSseNX29bhz1ROIyNyxExfawVKTm1GQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "devlop": "^1.1.0",
+ "mdast-util-from-markdown": "^2.0.0",
+ "mdast-util-to-markdown": "^2.0.0",
+ "micromark-util-normalize-identifier": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-gfm-strikethrough": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-2.0.1.tgz",
+ "integrity": "sha512-OuJHqvr455pwu2OaOrir7dbzqs4jlWKOtlu9L6GjcIjjQwNyw02VntQsr/Ek6/A13vgnXfUhBekWRUP1OkNivw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "mdast-util-from-markdown": "^2.0.0",
+ "mdast-util-to-markdown": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-gfm-table": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/mdast-util-gfm-table/-/mdast-util-gfm-table-2.0.0.tgz",
+ "integrity": "sha512-78UEvebzz/rJIxLvE7ZtDd/vIQ0RHv+3Mh5DR96p7cS7HsBhYIICDBCu8csTNWNO6tBWfqXPWekRuj2FNOGOZg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "devlop": "^1.0.0",
+ "markdown-table": "^3.0.0",
+ "mdast-util-from-markdown": "^2.0.0",
+ "mdast-util-to-markdown": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-gfm-task-list-item": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-2.0.0.tgz",
+ "integrity": "sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "devlop": "^1.0.0",
+ "mdast-util-from-markdown": "^2.0.0",
+ "mdast-util-to-markdown": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-mdx-expression": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/mdast-util-mdx-expression/-/mdast-util-mdx-expression-2.0.1.tgz",
+ "integrity": "sha512-J6f+9hUp+ldTZqKRSg7Vw5V6MqjATc+3E4gf3CFNcuZNWD8XdyI6zQ8GqH7f8169MM6P7hMBRDVGnn7oHB9kXQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree-jsx": "^1.0.0",
+ "@types/hast": "^3.0.0",
+ "@types/mdast": "^4.0.0",
+ "devlop": "^1.0.0",
+ "mdast-util-from-markdown": "^2.0.0",
+ "mdast-util-to-markdown": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-mdx-jsx": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/mdast-util-mdx-jsx/-/mdast-util-mdx-jsx-3.2.0.tgz",
+ "integrity": "sha512-lj/z8v0r6ZtsN/cGNNtemmmfoLAFZnjMbNyLzBafjzikOM+glrjNHPlf6lQDOTccj9n5b0PPihEBbhneMyGs1Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree-jsx": "^1.0.0",
+ "@types/hast": "^3.0.0",
+ "@types/mdast": "^4.0.0",
+ "@types/unist": "^3.0.0",
+ "ccount": "^2.0.0",
+ "devlop": "^1.1.0",
+ "mdast-util-from-markdown": "^2.0.0",
+ "mdast-util-to-markdown": "^2.0.0",
+ "parse-entities": "^4.0.0",
+ "stringify-entities": "^4.0.0",
+ "unist-util-stringify-position": "^4.0.0",
+ "vfile-message": "^4.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-mdxjs-esm": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/mdast-util-mdxjs-esm/-/mdast-util-mdxjs-esm-2.0.1.tgz",
+ "integrity": "sha512-EcmOpxsZ96CvlP03NghtH1EsLtr0n9Tm4lPUJUBccV9RwUOneqSycg19n5HGzCf+10LozMRSObtVr3ee1WoHtg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree-jsx": "^1.0.0",
+ "@types/hast": "^3.0.0",
+ "@types/mdast": "^4.0.0",
+ "devlop": "^1.0.0",
+ "mdast-util-from-markdown": "^2.0.0",
+ "mdast-util-to-markdown": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-phrasing": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-4.1.0.tgz",
+ "integrity": "sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "unist-util-is": "^6.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-to-hast": {
+ "version": "13.2.1",
+ "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.1.tgz",
+ "integrity": "sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/hast": "^3.0.0",
+ "@types/mdast": "^4.0.0",
+ "@ungap/structured-clone": "^1.0.0",
+ "devlop": "^1.0.0",
+ "micromark-util-sanitize-uri": "^2.0.0",
+ "trim-lines": "^3.0.0",
+ "unist-util-position": "^5.0.0",
+ "unist-util-visit": "^5.0.0",
+ "vfile": "^6.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-to-markdown": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-2.2.0.tgz",
+ "integrity": "sha512-2Jn/ADrHFFyyniBMi0bncTbJqU78K3/TEYvzvwrWWzD9MYPUa/Gm4r3nOeKFQg/PDM5BsbDYdc8ackW4NTY6NA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "@types/unist": "^3.0.0",
+ "longest-streak": "^3.0.0",
+ "mdast-util-phrasing": "^4.0.0",
+ "mdast-util-to-string": "^4.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-classify-character": "^2.0.0",
+ "micromark-util-decode-string": "^2.0.0",
+ "micromark-util-html-tag-name": "^2.0.0",
+ "unist-util-visit": "^5.0.0",
+ "zwitch": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-to-string": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-4.0.0.tgz",
+ "integrity": "sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/merge2": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",
+ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/micromark": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/micromark/-/micromark-4.0.3.tgz",
+ "integrity": "sha512-oGYfQzHSG5dOMovQcJ3fyTmZlWAWpi0XA0sJwJs+i6OT88o1+Jtw/8z0CmdowSLxGhhFK89rQ/oXph/wN02PNw==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "@types/debug": "^4.0.0",
+ "debug": "^4.0.0",
+ "decode-named-character-reference": "^1.0.0",
+ "devlop": "^1.0.0",
+ "micromark-core-commonmark": "^2.0.0",
+ "micromark-factory-space": "^2.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-chunked": "^2.0.0",
+ "micromark-util-combine-extensions": "^2.0.0",
+ "micromark-util-decode-numeric-character-reference": "^2.0.0",
+ "micromark-util-edit-map": "^1.0.0",
+ "micromark-util-encode": "^2.0.0",
+ "micromark-util-normalize-identifier": "^2.0.0",
+ "micromark-util-resolve-all": "^2.0.0",
+ "micromark-util-sanitize-uri": "^2.0.0",
+ "micromark-util-subtokenize": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-core-commonmark": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.4.tgz",
+ "integrity": "sha512-wxEeE8v8XVvOrxn1TZj74qYhAtTQsSqufHVS3uNVyT1MupXxhyaHk8/9xDNPh9BmL77QNDgWTkZ3RsYHB2ry7w==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "decode-named-character-reference": "^1.0.0",
+ "devlop": "^1.0.0",
+ "micromark-factory-destination": "^2.0.0",
+ "micromark-factory-label": "^2.0.0",
+ "micromark-factory-space": "^2.1.0",
+ "micromark-factory-title": "^2.0.0",
+ "micromark-factory-whitespace": "^2.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-chunked": "^2.0.0",
+ "micromark-util-classify-character": "^2.0.0",
+ "micromark-util-edit-map": "^1.0.0",
+ "micromark-util-html-tag-name": "^2.0.0",
+ "micromark-util-normalize-identifier": "^2.0.0",
+ "micromark-util-resolve-all": "^2.0.0",
+ "micromark-util-subtokenize": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.3"
+ }
+ },
+ "node_modules/micromark-extension-gfm": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm/-/micromark-extension-gfm-3.0.0.tgz",
+ "integrity": "sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w==",
+ "license": "MIT",
+ "dependencies": {
+ "micromark-extension-gfm-autolink-literal": "^2.0.0",
+ "micromark-extension-gfm-footnote": "^2.0.0",
+ "micromark-extension-gfm-strikethrough": "^2.0.0",
+ "micromark-extension-gfm-table": "^2.0.0",
+ "micromark-extension-gfm-tagfilter": "^2.0.0",
+ "micromark-extension-gfm-task-list-item": "^2.0.0",
+ "micromark-util-combine-extensions": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/micromark-extension-gfm-autolink-literal": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-2.1.0.tgz",
+ "integrity": "sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw==",
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-sanitize-uri": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/micromark-extension-gfm-footnote": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-footnote/-/micromark-extension-gfm-footnote-2.1.0.tgz",
+ "integrity": "sha512-/yPhxI1ntnDNsiHtzLKYnE3vf9JZ6cAisqVDauhp4CEHxlb4uoOTxOCJ+9s51bIB8U1N1FJ1RXOKTIlD5B/gqw==",
+ "license": "MIT",
+ "dependencies": {
+ "devlop": "^1.0.0",
+ "micromark-core-commonmark": "^2.0.0",
+ "micromark-factory-space": "^2.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-normalize-identifier": "^2.0.0",
+ "micromark-util-sanitize-uri": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/micromark-extension-gfm-strikethrough": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-2.1.0.tgz",
+ "integrity": "sha512-ADVjpOOkjz1hhkZLlBiYA9cR2Anf8F4HqZUO6e5eDcPQd0Txw5fxLzzxnEkSkfnD0wziSGiv7sYhk/ktvbf1uw==",
+ "license": "MIT",
+ "dependencies": {
+ "devlop": "^1.0.0",
+ "micromark-util-chunked": "^2.0.0",
+ "micromark-util-classify-character": "^2.0.0",
+ "micromark-util-resolve-all": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/micromark-extension-gfm-table": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-table/-/micromark-extension-gfm-table-2.1.2.tgz",
+ "integrity": "sha512-pRzm4kDTu0MjlmBkxmS9yYhw60nncfcEwu9NNdPFSQEFXS95ZKyIIyTSHu/o3ReBUrLKYEq+7YaXCRn/bPB4MA==",
+ "license": "MIT",
+ "dependencies": {
+ "devlop": "^1.0.0",
+ "micromark-factory-space": "^2.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/micromark-extension-gfm-tagfilter": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-2.0.0.tgz",
+ "integrity": "sha512-xHlTOmuCSotIA8TW1mDIM6X2O1SiX5P9IuDtqGonFhEK0qgRI4yeC6vMxEV2dgyr2TiD+2PQ10o+cOhdVAcwfg==",
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-types": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/micromark-extension-gfm-task-list-item": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-2.1.0.tgz",
+ "integrity": "sha512-qIBZhqxqI6fjLDYFTBIa4eivDMnP+OZqsNwmQ3xNLE4Cxwc+zfQEfbs6tzAo2Hjq+bh6q5F+Z8/cksrLFYWQQw==",
+ "license": "MIT",
+ "dependencies": {
+ "devlop": "^1.0.0",
+ "micromark-factory-space": "^2.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/micromark-factory-destination": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-2.0.1.tgz",
+ "integrity": "sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-factory-label": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-2.0.1.tgz",
+ "integrity": "sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "devlop": "^1.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-factory-space": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.1.0.tgz",
+ "integrity": "sha512-fS8hnLIjnjvdQIj39Geug8wWsR0HrYZ43KShKxNfwT7t2LOHo/LbWZEzEaSOjwtjdCsjoE6syHhonEzW0zv0+Q==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-factory-title": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-2.0.1.tgz",
+ "integrity": "sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-factory-space": "^2.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-factory-whitespace": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.1.tgz",
+ "integrity": "sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-factory-space": "^2.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-character": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz",
+ "integrity": "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-chunked": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-2.0.1.tgz",
+ "integrity": "sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-symbol": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-classify-character": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-2.0.1.tgz",
+ "integrity": "sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-combine-extensions": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.1.tgz",
+ "integrity": "sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-chunked": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-decode-numeric-character-reference": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.2.tgz",
+ "integrity": "sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-symbol": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-decode-string": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-2.0.1.tgz",
+ "integrity": "sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "decode-named-character-reference": "^1.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-decode-numeric-character-reference": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-edit-map": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/micromark-util-edit-map/-/micromark-util-edit-map-1.0.0.tgz",
+ "integrity": "sha512-Pa2ljlsEL6sVwFaYeyrOLSYbQt73JvGbPOYFq+9AElXiSnfI5Q4465RRZ1sHv7lDjDOnGRDDaqPXqClqWK/q1Q==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-encode": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz",
+ "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/micromark-util-html-tag-name": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-2.0.1.tgz",
+ "integrity": "sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/micromark-util-normalize-identifier": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-2.0.1.tgz",
+ "integrity": "sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-symbol": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-resolve-all": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-2.0.1.tgz",
+ "integrity": "sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-sanitize-uri": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz",
+ "integrity": "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-encode": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-subtokenize": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-2.1.0.tgz",
+ "integrity": "sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "devlop": "^1.0.0",
+ "micromark-util-chunked": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-symbol": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz",
+ "integrity": "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/micromark-util-types": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.3.tgz",
+ "integrity": "sha512-oxB2Ik03hI0gv+VNn9tnh1t1YEe9MDPptViAEgfdf3YQHsn0pzGTgCdlSCJXcwhqm8phaEuM7zeEu3QQzVBrPg==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/micromatch": {
+ "version": "4.0.8",
+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
+ "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "braces": "^3.0.3",
+ "picomatch": "^2.3.1"
+ },
+ "engines": {
+ "node": ">=8.6"
+ }
+ },
+ "node_modules/minimatch": {
+ "version": "3.1.5",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz",
+ "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^1.1.7"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/minimist": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
+ "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "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/nanoid": {
+ "version": "3.3.19",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.19.tgz",
+ "integrity": "sha512-Y2tUNy4ouw6tq5oDSKeQYGOyhkUBhNOcGV/02KC+6kd9eDGqdZd++mjMiIDilrBYvjEnCYvVtsuHCuP+okSfug==",
+ "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/napi-postinstall": {
+ "version": "0.3.4",
+ "resolved": "https://registry.npmjs.org/napi-postinstall/-/napi-postinstall-0.3.4.tgz",
+ "integrity": "sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "napi-postinstall": "lib/cli.js"
+ },
+ "engines": {
+ "node": "^12.20.0 || ^14.18.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/napi-postinstall"
+ }
+ },
+ "node_modules/natural-compare": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
+ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/next": {
+ "version": "16.3.8",
+ "resolved": "https://registry.npmjs.org/next/-/next-16.3.8.tgz",
+ "integrity": "sha512-U7QEZaTini6wKrb8A8hqLLqYQyCetegKjCpJOyxk642vWoMoU1x5PyZCJFvgYgiptA8xc5j/9xYlZFO7w9Sjmw==",
+ "license": "MIT",
+ "dependencies": {
+ "@next/env": "16.3.8",
+ "@swc/helpers": "0.5.23",
+ "baseline-browser-mapping": "^2.9.19",
+ "caniuse-lite": "^1.0.30001579",
+ "postcss": "8.5.23",
+ "styled-jsx": "5.1.6"
+ },
+ "bin": {
+ "next": "dist/bin/next"
+ },
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "optionalDependencies": {
+ "@next/swc-darwin-arm64": "16.3.8",
+ "@next/swc-darwin-x64": "16.3.8",
+ "@next/swc-linux-arm64-gnu": "16.3.8",
+ "@next/swc-linux-arm64-musl": "16.3.8",
+ "@next/swc-linux-x64-gnu": "16.3.8",
+ "@next/swc-linux-x64-musl": "16.3.8",
+ "@next/swc-win32-arm64-msvc": "16.3.8",
+ "@next/swc-win32-x64-msvc": "16.3.8",
+ "sharp": "^0.35.4"
+ },
+ "peerDependencies": {
+ "@opentelemetry/api": "^1.1.0",
+ "@playwright/test": "^1.51.1",
+ "babel-plugin-react-compiler": "*",
+ "react": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0",
+ "react-dom": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0",
+ "sass": "^1.3.0"
+ },
+ "peerDependenciesMeta": {
+ "@opentelemetry/api": {
+ "optional": true
+ },
+ "@playwright/test": {
+ "optional": true
+ },
+ "babel-plugin-react-compiler": {
+ "optional": true
+ },
+ "sass": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/next-themes": {
+ "version": "0.4.6",
+ "resolved": "https://registry.npmjs.org/next-themes/-/next-themes-0.4.6.tgz",
+ "integrity": "sha512-pZvgD5L0IEvX5/9GWyHMf3m8BKiVQwsCMHfoFosXtXBMnaS0ZnIJ9ST4b4NqLVKDEm8QBxoNNGNaBv2JNF6XNA==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc"
+ }
+ },
+ "node_modules/next/node_modules/postcss": {
+ "version": "8.5.23",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.23.tgz",
+ "integrity": "sha512-g50586zr4bZmwFiTlflMu8E0bDTb5I5gertgwAKmsdUlTQIhZtunzUlD1WSzwcVWPoAVpsrA6vlfCD7oXvRwgg==",
+ "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.16",
+ "picocolors": "^1.1.1",
+ "source-map-js": "^1.2.1"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ }
+ },
+ "node_modules/node-exports-info": {
+ "version": "1.6.2",
+ "resolved": "https://registry.npmjs.org/node-exports-info/-/node-exports-info-1.6.2.tgz",
+ "integrity": "sha512-kXs9Go0cah0qHVV2v389IXQLdLCeE1xfFtjOAF+iobu0OIoG1pje8At2vMHyaPMiPMnG/LWP50twML21eMcAag==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "array.prototype.flatmap": "^1.3.3",
+ "es-errors": "^1.3.0",
+ "object.entries": "^1.1.9",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/node-releases": {
+ "version": "2.0.57",
+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.57.tgz",
+ "integrity": "sha512-kQK9LGGFiHtrWiNhZtA7Qbw17AQz+dmsEKODRIVTXA9+e5MS/2gZEBhYJt13GrAz5/IOZKddH/0Z3TP/Zgo+yw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/object-assign": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
+ "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object-inspect": {
+ "version": "1.13.4",
+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
+ "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/object-keys": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",
+ "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/object.assign": {
+ "version": "4.1.7",
+ "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz",
+ "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.8",
+ "call-bound": "^1.0.3",
+ "define-properties": "^1.2.1",
+ "es-object-atoms": "^1.0.0",
+ "has-symbols": "^1.1.0",
+ "object-keys": "^1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/object.entries": {
+ "version": "1.1.9",
+ "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.9.tgz",
+ "integrity": "sha512-8u/hfXFRBD1O0hPUjioLhoWFHRmt6tKA4/vZPyckBr18l1KE9uHrFaFaUi8MDRTpi4uak2goyPTSNJLXX2k2Hw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.8",
+ "call-bound": "^1.0.4",
+ "define-properties": "^1.2.1",
+ "es-object-atoms": "^1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/object.fromentries": {
+ "version": "2.0.8",
+ "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.8.tgz",
+ "integrity": "sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.23.2",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/object.groupby": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.3.tgz",
+ "integrity": "sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.23.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/object.values": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.2.1.tgz",
+ "integrity": "sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.8",
+ "call-bound": "^1.0.3",
+ "define-properties": "^1.2.1",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/optionator": {
+ "version": "0.9.4",
+ "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",
+ "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "deep-is": "^0.1.3",
+ "fast-levenshtein": "^2.0.6",
+ "levn": "^0.4.1",
+ "prelude-ls": "^1.2.1",
+ "type-check": "^0.4.0",
+ "word-wrap": "^1.2.5"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/orderedmap": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/orderedmap/-/orderedmap-2.1.1.tgz",
+ "integrity": "sha512-TvAWxi0nDe1j/rtMcWcIj94+Ffe6n7zhow33h40SKxmsmozs6dz/e+EajymfoFcHd7sxNn8yHM8839uixMOV6g==",
+ "license": "MIT"
+ },
+ "node_modules/own-keys": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.2.tgz",
+ "integrity": "sha512-19YVAg7T+WTrxggPukVq7DjTv6+PJ867TmhCvBsYwmbFCsZd344rq2Ld1p0wo8f8Qrrhgp82c6FJRqdXWtSEhg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.4",
+ "get-intrinsic": "^1.3.0",
+ "object-keys": "^1.1.1",
+ "safe-push-apply": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/p-limit": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
+ "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "yocto-queue": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/p-locate": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
+ "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-limit": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/parent-module": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
+ "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "callsites": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/parse-entities": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-4.0.2.tgz",
+ "integrity": "sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "^2.0.0",
+ "character-entities-legacy": "^3.0.0",
+ "character-reference-invalid": "^2.0.0",
+ "decode-named-character-reference": "^1.0.0",
+ "is-alphanumerical": "^2.0.0",
+ "is-decimal": "^2.0.0",
+ "is-hexadecimal": "^2.0.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/parse-entities/node_modules/@types/unist": {
+ "version": "2.0.11",
+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.11.tgz",
+ "integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==",
+ "license": "MIT"
+ },
+ "node_modules/path-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-key": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-parse": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
+ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/picocolors": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
+ "license": "ISC"
+ },
+ "node_modules/picomatch": {
+ "version": "2.3.2",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz",
+ "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/possible-typed-array-names": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz",
+ "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/postcss": {
+ "version": "8.5.28",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.28.tgz",
+ "integrity": "sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==",
+ "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.18",
+ "picocolors": "^1.1.1",
+ "source-map-js": "^1.2.1"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ }
+ },
+ "node_modules/prelude-ls": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
+ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/prop-types": {
+ "version": "15.8.1",
+ "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",
+ "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "loose-envify": "^1.4.0",
+ "object-assign": "^4.1.1",
+ "react-is": "^16.13.1"
+ }
+ },
+ "node_modules/property-information": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/property-information/-/property-information-7.2.0.tgz",
+ "integrity": "sha512-IAtzIB6sUiWaJYrX9smp3V46pBGbBeLFRGdh25kg1334VcBlD8HzhPeNIWQH9zhGmo2itIe25EHt9dQP7G5hmg==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/prosemirror-changeset": {
+ "version": "2.4.4",
+ "resolved": "https://registry.npmjs.org/prosemirror-changeset/-/prosemirror-changeset-2.4.4.tgz",
+ "integrity": "sha512-Gyuz9jYdrAeA9I7AholyOes9KUmv/lEwsC5O9s5xF5VB3EgTPsXMGUxz4+H1B+wKVPdZbvRcg1Cp3x8qX+8ofA==",
+ "license": "MIT",
+ "dependencies": {
+ "prosemirror-transform": "^1.0.0"
+ }
+ },
+ "node_modules/prosemirror-commands": {
+ "version": "1.7.2",
+ "resolved": "https://registry.npmjs.org/prosemirror-commands/-/prosemirror-commands-1.7.2.tgz",
+ "integrity": "sha512-q6Q6szxqdu9Xd6EcdKsqXghu5nQdZTpB4Q9yd04WRc7/jt763e/rT60Owh0L1GYY+T46o5rD+9lEN36dZS43tw==",
+ "license": "MIT",
+ "dependencies": {
+ "prosemirror-model": "^1.0.0",
+ "prosemirror-state": "^1.0.0",
+ "prosemirror-transform": "^1.10.2"
+ }
+ },
+ "node_modules/prosemirror-dropcursor": {
+ "version": "1.8.4",
+ "resolved": "https://registry.npmjs.org/prosemirror-dropcursor/-/prosemirror-dropcursor-1.8.4.tgz",
+ "integrity": "sha512-VmKxhcA6a+h5oPSYmfF1ZNeQqPbyYaIxqZsKqeYCyTlPtrjUgNaHL3P8vVaO19oqAV0zuaM/axkowZHrB1P3Tg==",
+ "license": "MIT",
+ "dependencies": {
+ "prosemirror-state": "^1.0.0",
+ "prosemirror-transform": "^1.1.0",
+ "prosemirror-view": "^1.1.0"
+ }
+ },
+ "node_modules/prosemirror-gapcursor": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/prosemirror-gapcursor/-/prosemirror-gapcursor-1.4.1.tgz",
+ "integrity": "sha512-pMdYaEnjNMSwl11yjEGtgTmLkR08m/Vl+Jj443167p9eB3HVQKhYCc4gmHVDsLPODfZfjr/MmirsdyZziXbQKw==",
+ "license": "MIT",
+ "dependencies": {
+ "prosemirror-keymap": "^1.0.0",
+ "prosemirror-model": "^1.0.0",
+ "prosemirror-state": "^1.0.0",
+ "prosemirror-view": "^1.0.0"
+ }
+ },
+ "node_modules/prosemirror-history": {
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/prosemirror-history/-/prosemirror-history-1.5.1.tgz",
+ "integrity": "sha512-onlwnqKvgtFg6srZOmDOAhlAy1FIHQpOExORybX0S+DvJepE5tPALrB9iGet/2sqqqrelSnB10OoiOJqAvu2DA==",
+ "license": "MIT",
+ "dependencies": {
+ "prosemirror-state": "^1.2.2",
+ "prosemirror-transform": "^1.0.0",
+ "prosemirror-view": "^1.31.0",
+ "rope-sequence": "^1.3.0"
+ }
+ },
+ "node_modules/prosemirror-inputrules": {
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/prosemirror-inputrules/-/prosemirror-inputrules-1.5.1.tgz",
+ "integrity": "sha512-7wj4uMjKaXWAQ1CDgxNzNtR9AlsuwzHfdFH1ygEHA2KHF2DOEaXl1CJfNPAKCg9qNEh4rum975QLaCiQPyY6Fw==",
+ "license": "MIT",
+ "dependencies": {
+ "prosemirror-state": "^1.0.0",
+ "prosemirror-transform": "^1.0.0"
+ }
+ },
+ "node_modules/prosemirror-keymap": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/prosemirror-keymap/-/prosemirror-keymap-1.2.3.tgz",
+ "integrity": "sha512-4HucRlpiLd1IPQQXNqeo81BGtkY8Ai5smHhKW9jjPKRc2wQIxksg7Hl1tTI2IfT2B/LgX6bfYvXxEpJl7aKYKw==",
+ "license": "MIT",
+ "dependencies": {
+ "prosemirror-state": "^1.0.0",
+ "w3c-keyname": "^2.2.0"
+ }
+ },
+ "node_modules/prosemirror-model": {
+ "version": "1.25.12",
+ "resolved": "https://registry.npmjs.org/prosemirror-model/-/prosemirror-model-1.25.12.tgz",
+ "integrity": "sha512-Ue2gTmXMa7EhpLNhC7J+h4+ykD8ha12K6rrZFFKKJHBForfIStw5gJ6Zrf1mqqAa9NmpmEB4wp9bKmA4eUVjWg==",
+ "license": "MIT",
+ "dependencies": {
+ "orderedmap": "^2.0.0"
+ }
+ },
+ "node_modules/prosemirror-schema-list": {
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/prosemirror-schema-list/-/prosemirror-schema-list-1.5.1.tgz",
+ "integrity": "sha512-927lFx/uwyQaGwJxLWCZRkjXG0p48KpMj6ueoYiu4JX05GGuGcgzAy62dfiV8eFZftgyBUvLx76RsMe20fJl+Q==",
+ "license": "MIT",
+ "dependencies": {
+ "prosemirror-model": "^1.0.0",
+ "prosemirror-state": "^1.0.0",
+ "prosemirror-transform": "^1.7.3"
+ }
+ },
+ "node_modules/prosemirror-state": {
+ "version": "1.4.4",
+ "resolved": "https://registry.npmjs.org/prosemirror-state/-/prosemirror-state-1.4.4.tgz",
+ "integrity": "sha512-6jiYHH2CIGbCfnxdHbXZ12gySFY/fz/ulZE333G6bPqIZ4F+TXo9ifiR86nAHpWnfoNjOb3o5ESi7J8Uz1jXHw==",
+ "license": "MIT",
+ "dependencies": {
+ "prosemirror-model": "^1.0.0",
+ "prosemirror-transform": "^1.0.0",
+ "prosemirror-view": "^1.27.0"
+ }
+ },
+ "node_modules/prosemirror-tables": {
+ "version": "1.8.5",
+ "resolved": "https://registry.npmjs.org/prosemirror-tables/-/prosemirror-tables-1.8.5.tgz",
+ "integrity": "sha512-V/0cDCsHKHe/tfWkeCmthNUcEp1IVO3p6vwN8XtwE9PZQLAZJigbw3QoraAdfJPir4NKJtNvOB8oYGKRl+t0Dw==",
+ "license": "MIT",
+ "dependencies": {
+ "prosemirror-keymap": "^1.2.3",
+ "prosemirror-model": "^1.25.4",
+ "prosemirror-state": "^1.4.4",
+ "prosemirror-transform": "^1.10.5",
+ "prosemirror-view": "^1.41.4"
+ }
+ },
+ "node_modules/prosemirror-transform": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/prosemirror-transform/-/prosemirror-transform-1.12.2.tgz",
+ "integrity": "sha512-PE/aY0HEY4zczvmqrilgkUK/WautF0chvMqkmM/iN5/aPHvwrCWaQZjS6CIZp+K84YrvPFqrL+YArrfJX8xX7g==",
+ "license": "MIT",
+ "dependencies": {
+ "prosemirror-model": "^1.21.0"
+ }
+ },
+ "node_modules/prosemirror-view": {
+ "version": "1.42.6",
+ "resolved": "https://registry.npmjs.org/prosemirror-view/-/prosemirror-view-1.42.6.tgz",
+ "integrity": "sha512-3g25f6hKV2bBxo3puH3EcYWmmVNSH0iWmNsMVT7sugDSpA025jgpOLarcDWr39SdzPjYMaiYtRdNtXialPSjEQ==",
+ "license": "MIT",
+ "dependencies": {
+ "prosemirror-model": "^1.25.12",
+ "prosemirror-state": "^1.0.0",
+ "prosemirror-transform": "^1.1.0"
+ }
+ },
+ "node_modules/punycode": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
+ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/queue-microtask": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
+ "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/react": {
+ "version": "19.2.8",
+ "resolved": "https://registry.npmjs.org/react/-/react-19.2.8.tgz",
+ "integrity": "sha512-PWaYA1L/q9u2u7xYQi+Y3L3Yfnie7XyLeaJICV1MGD6LprsBxcAqGjYyr0eY3p+QdsA+x/Irkt4Qif8D63+Sbw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/react-dom": {
+ "version": "19.2.8",
+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.8.tgz",
+ "integrity": "sha512-rVprimfGBG3DR+Tq0IQG2DT5PxKth1WIGDmj5yPmlzr4YBe7uyE+Du4oVqTDXZSHGGGXRtTJEGSSePyQCMBglQ==",
+ "license": "MIT",
+ "dependencies": {
+ "scheduler": "^0.27.0"
+ },
+ "peerDependencies": {
+ "react": "^19.2.8"
+ }
+ },
+ "node_modules/react-icons": {
+ "version": "5.7.0",
+ "resolved": "https://registry.npmjs.org/react-icons/-/react-icons-5.7.0.tgz",
+ "integrity": "sha512-LBLy340Rzqy6+/yVhZKT3B/QpP1BZaesGqasf09HPOBzRarcDIFH0WwXlXQfE7q7ipxK4MSiC5DIBWURCny6fw==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "*"
+ }
+ },
+ "node_modules/react-is": {
+ "version": "16.13.1",
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
+ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/react-markdown": {
+ "version": "10.1.0",
+ "resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-10.1.0.tgz",
+ "integrity": "sha512-qKxVopLT/TyA6BX3Ue5NwabOsAzm0Q7kAPwq6L+wWDwisYs7R8vZ0nRXqq6rkueboxpkjvLGU9fWifiX/ZZFxQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/hast": "^3.0.0",
+ "@types/mdast": "^4.0.0",
+ "devlop": "^1.0.0",
+ "hast-util-to-jsx-runtime": "^2.0.0",
+ "html-url-attributes": "^3.0.0",
+ "mdast-util-to-hast": "^13.0.0",
+ "remark-parse": "^11.0.0",
+ "remark-rehype": "^11.0.0",
+ "unified": "^11.0.0",
+ "unist-util-visit": "^5.0.0",
+ "vfile": "^6.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ },
+ "peerDependencies": {
+ "@types/react": ">=18",
+ "react": ">=18"
+ }
+ },
+ "node_modules/reflect.getprototypeof": {
+ "version": "1.0.10",
+ "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz",
+ "integrity": "sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.8",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.23.9",
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.0.0",
+ "get-intrinsic": "^1.2.7",
+ "get-proto": "^1.0.1",
+ "which-builtin-type": "^1.2.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/regexp.prototype.flags": {
+ "version": "1.5.4",
+ "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz",
+ "integrity": "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.8",
+ "define-properties": "^1.2.1",
+ "es-errors": "^1.3.0",
+ "get-proto": "^1.0.1",
+ "gopd": "^1.2.0",
+ "set-function-name": "^2.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/remark-gfm": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/remark-gfm/-/remark-gfm-4.0.1.tgz",
+ "integrity": "sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "mdast-util-gfm": "^3.0.0",
+ "micromark-extension-gfm": "^3.0.0",
+ "remark-parse": "^11.0.0",
+ "remark-stringify": "^11.0.0",
+ "unified": "^11.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/remark-parse": {
+ "version": "11.0.0",
+ "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-11.0.0.tgz",
+ "integrity": "sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "mdast-util-from-markdown": "^2.0.0",
+ "micromark-util-types": "^2.0.0",
+ "unified": "^11.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/remark-rehype": {
+ "version": "11.1.2",
+ "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-11.1.2.tgz",
+ "integrity": "sha512-Dh7l57ianaEoIpzbp0PC9UKAdCSVklD8E5Rpw7ETfbTl3FqcOOgq5q2LVDhgGCkaBv7p24JXikPdvhhmHvKMsw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/hast": "^3.0.0",
+ "@types/mdast": "^4.0.0",
+ "mdast-util-to-hast": "^13.0.0",
+ "unified": "^11.0.0",
+ "vfile": "^6.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/remark-stringify": {
+ "version": "11.0.0",
+ "resolved": "https://registry.npmjs.org/remark-stringify/-/remark-stringify-11.0.0.tgz",
+ "integrity": "sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "mdast-util-to-markdown": "^2.0.0",
+ "unified": "^11.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/resolve": {
+ "version": "2.0.0-next.7",
+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.7.tgz",
+ "integrity": "sha512-tqt+NBWwyaMgw3zDsnygx4CByWjQEJHOPMdslYhppaQSJUtL/D4JO9CcBBlhPoI8lz9oJIDXkwXfhF4aWqP8xQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "is-core-module": "^2.16.2",
+ "node-exports-info": "^1.6.0",
+ "object-keys": "^1.1.1",
+ "path-parse": "^1.0.7",
+ "supports-preserve-symlinks-flag": "^1.0.0"
+ },
+ "bin": {
+ "resolve": "bin/resolve"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/resolve-from": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
+ "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/resolve-pkg-maps": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz",
+ "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1"
+ }
+ },
+ "node_modules/reusify": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",
+ "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "iojs": ">=1.0.0",
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/rope-sequence": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/rope-sequence/-/rope-sequence-1.3.4.tgz",
+ "integrity": "sha512-UT5EDe2cu2E/6O4igUr5PSFs23nvvukicWHx6GnOPlHAiiYbzNuCRQCuiUdHJQcqKalLKlrYJnjY0ySGsXNQXQ==",
+ "license": "MIT"
+ },
+ "node_modules/run-parallel": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
+ "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "queue-microtask": "^1.2.2"
+ }
+ },
+ "node_modules/safe-array-concat": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.4.tgz",
+ "integrity": "sha512-wtZlHyOje6OZTGqAoaDKxFkgRtkF9CnHAVnCHKfuj200wAgL+bSJhdsCD2l0Qx/2ekEXjPWcyKkfGb5CPboslg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.9",
+ "call-bound": "^1.0.4",
+ "get-intrinsic": "^1.3.0",
+ "has-symbols": "^1.1.0",
+ "isarray": "^2.0.5"
+ },
+ "engines": {
+ "node": ">=0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/safe-push-apply": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/safe-push-apply/-/safe-push-apply-1.0.0.tgz",
+ "integrity": "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "isarray": "^2.0.5"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/safe-regex-test": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz",
+ "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "es-errors": "^1.3.0",
+ "is-regex": "^1.2.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/scheduler": {
+ "version": "0.27.0",
+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",
+ "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==",
+ "license": "MIT"
+ },
+ "node_modules/semver": {
+ "version": "6.3.1",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/set-function-length": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",
+ "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "define-data-property": "^1.1.4",
+ "es-errors": "^1.3.0",
+ "function-bind": "^1.1.2",
+ "get-intrinsic": "^1.2.4",
+ "gopd": "^1.0.1",
+ "has-property-descriptors": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/set-function-name": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz",
+ "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "define-data-property": "^1.1.4",
+ "es-errors": "^1.3.0",
+ "functions-have-names": "^1.2.3",
+ "has-property-descriptors": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/set-proto": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/set-proto/-/set-proto-1.0.0.tgz",
+ "integrity": "sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "dunder-proto": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/sharp": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.5.tgz",
+ "integrity": "sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g==",
+ "license": "Apache-2.0",
+ "optional": true,
+ "dependencies": {
+ "@img/colour": "^1.1.0",
+ "detect-libc": "^2.1.2",
+ "semver": "^7.8.5"
+ },
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-darwin-arm64": "0.35.5",
+ "@img/sharp-darwin-x64": "0.35.5",
+ "@img/sharp-freebsd-wasm32": "0.35.5",
+ "@img/sharp-libvips-darwin-arm64": "1.3.4",
+ "@img/sharp-libvips-darwin-x64": "1.3.4",
+ "@img/sharp-libvips-linux-arm": "1.3.4",
+ "@img/sharp-libvips-linux-arm64": "1.3.4",
+ "@img/sharp-libvips-linux-ppc64": "1.3.4",
+ "@img/sharp-libvips-linux-riscv64": "1.3.4",
+ "@img/sharp-libvips-linux-s390x": "1.3.4",
+ "@img/sharp-libvips-linux-x64": "1.3.4",
+ "@img/sharp-libvips-linuxmusl-arm64": "1.3.4",
+ "@img/sharp-libvips-linuxmusl-x64": "1.3.4",
+ "@img/sharp-linux-arm": "0.35.5",
+ "@img/sharp-linux-arm64": "0.35.5",
+ "@img/sharp-linux-ppc64": "0.35.5",
+ "@img/sharp-linux-riscv64": "0.35.5",
+ "@img/sharp-linux-s390x": "0.35.5",
+ "@img/sharp-linux-x64": "0.35.5",
+ "@img/sharp-linuxmusl-arm64": "0.35.5",
+ "@img/sharp-linuxmusl-x64": "0.35.5",
+ "@img/sharp-webcontainers-wasm32": "0.35.5",
+ "@img/sharp-win32-arm64": "0.35.5",
+ "@img/sharp-win32-ia32": "0.35.5",
+ "@img/sharp-win32-x64": "0.35.5"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/sharp/node_modules/semver": {
+ "version": "7.8.5",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",
+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",
+ "license": "ISC",
+ "optional": true,
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "shebang-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/side-channel": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz",
+ "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==",
+ "dev": true,
+ "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==",
+ "dev": true,
+ "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==",
+ "dev": true,
+ "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==",
+ "dev": true,
+ "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.2",
+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz",
+ "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/space-separated-tokens": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz",
+ "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/stable-hash": {
+ "version": "0.0.5",
+ "resolved": "https://registry.npmjs.org/stable-hash/-/stable-hash-0.0.5.tgz",
+ "integrity": "sha512-+L3ccpzibovGXFK+Ap/f8LOS0ahMrHTf3xu7mMLSpEGU0EO9ucaysSylKo9eRDFNhWve/y275iPmIZ4z39a9iA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/stop-iteration-iterator": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.1.0.tgz",
+ "integrity": "sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "internal-slot": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/string.prototype.includes": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/string.prototype.includes/-/string.prototype.includes-2.0.1.tgz",
+ "integrity": "sha512-o7+c9bW6zpAdJHTtujeePODAhkuicdAryFsfVKwA+wGw89wJ4GTY484WTucM9hLtDEOpOvI+aHnzqnC5lHp4Rg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.23.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/string.prototype.matchall": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.1.0.tgz",
+ "integrity": "sha512-tHNHTxInrYLCga9O9YGxWA3G9/nnzQw8UGAyqGx3Ar1pSTTzIuM4woFSq4SowkXCjJIwq5sIiQvEfRI9tCH1qQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.9",
+ "call-bound": "^1.0.4",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.24.2",
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.1.2",
+ "get-intrinsic": "^1.3.0",
+ "gopd": "^1.2.0",
+ "has-symbols": "^1.1.0",
+ "internal-slot": "^1.1.0",
+ "regexp.prototype.flags": "^1.5.4",
+ "set-function-name": "^2.0.2",
+ "side-channel": "^1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/string.prototype.repeat": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/string.prototype.repeat/-/string.prototype.repeat-1.0.0.tgz",
+ "integrity": "sha512-0u/TldDbKD8bFCQ/4f5+mNRrXwZ8hg2w7ZR8wa16e8z9XpePWl3eGEcUD0OXpEH/VJH/2G3gjUtR3ZOiBe2S/w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "define-properties": "^1.1.3",
+ "es-abstract": "^1.17.5"
+ }
+ },
+ "node_modules/string.prototype.trim": {
+ "version": "1.2.11",
+ "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.11.tgz",
+ "integrity": "sha512-PwvK7BU+CMTJGYQCTZb5RWXIML92lftJLhQz1tBzgKiqGxJaMlBAa48POXaNAC2s4y8jr3EFqrkF9+44neS46w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.9",
+ "call-bound": "^1.0.4",
+ "define-data-property": "^1.1.4",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.24.2",
+ "es-object-atoms": "^1.1.2",
+ "has-property-descriptors": "^1.0.2",
+ "safe-regex-test": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/string.prototype.trimend": {
+ "version": "1.0.10",
+ "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.10.tgz",
+ "integrity": "sha512-2+3aDAOmPTmuFwjDnmJG2ctEkQKVki7vOSqaxkv42Mowj1V6PnvuwFCRrR5lChUux1TBskPjfkeTOhqczDMxTw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.9",
+ "call-bound": "^1.0.4",
+ "define-properties": "^1.2.1",
+ "es-object-atoms": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/string.prototype.trimstart": {
+ "version": "1.0.8",
+ "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz",
+ "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "define-properties": "^1.2.1",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/stringify-entities": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz",
+ "integrity": "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==",
+ "license": "MIT",
+ "dependencies": {
+ "character-entities-html4": "^2.0.0",
+ "character-entities-legacy": "^3.0.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/strip-bom": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz",
+ "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/strip-json-comments": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
+ "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/style-to-js": {
+ "version": "1.1.21",
+ "resolved": "https://registry.npmjs.org/style-to-js/-/style-to-js-1.1.21.tgz",
+ "integrity": "sha512-RjQetxJrrUJLQPHbLku6U/ocGtzyjbJMP9lCNK7Ag0CNh690nSH8woqWH9u16nMjYBAok+i7JO1NP2pOy8IsPQ==",
+ "license": "MIT",
+ "dependencies": {
+ "style-to-object": "1.0.14"
+ }
+ },
+ "node_modules/style-to-object": {
+ "version": "1.0.14",
+ "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-1.0.14.tgz",
+ "integrity": "sha512-LIN7rULI0jBscWQYaSswptyderlarFkjQ+t79nzty8tcIAceVomEVlLzH5VP4Cmsv6MtKhs7qaAiwlcp+Mgaxw==",
+ "license": "MIT",
+ "dependencies": {
+ "inline-style-parser": "0.2.7"
+ }
+ },
+ "node_modules/styled-jsx": {
+ "version": "5.1.6",
+ "resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.1.6.tgz",
+ "integrity": "sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA==",
+ "license": "MIT",
+ "dependencies": {
+ "client-only": "0.0.1"
+ },
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "peerDependencies": {
+ "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0 || ^19.0.0-0"
+ },
+ "peerDependenciesMeta": {
+ "@babel/core": {
+ "optional": true
+ },
+ "babel-plugin-macros": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/supports-color": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-flag": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/supports-preserve-symlinks-flag": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
+ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/tailwindcss": {
+ "version": "4.3.3",
+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.3.tgz",
+ "integrity": "sha512-gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/tapable": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz",
+ "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/webpack"
+ }
+ },
+ "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/tinyglobby/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/tinyglobby/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/to-regex-range": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-number": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=8.0"
+ }
+ },
+ "node_modules/trim-lines": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz",
+ "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/trough": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/trough/-/trough-2.2.0.tgz",
+ "integrity": "sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/ts-api-utils": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.5.0.tgz",
+ "integrity": "sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.12"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4"
+ }
+ },
+ "node_modules/tsconfig-paths": {
+ "version": "3.15.0",
+ "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz",
+ "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/json5": "^0.0.29",
+ "json5": "^1.0.2",
+ "minimist": "^1.2.6",
+ "strip-bom": "^3.0.0"
+ }
+ },
+ "node_modules/tsconfig-paths/node_modules/json5": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz",
+ "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "minimist": "^1.2.0"
+ },
+ "bin": {
+ "json5": "lib/cli.js"
+ }
+ },
+ "node_modules/tslib": {
+ "version": "2.8.1",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
+ "license": "0BSD"
+ },
+ "node_modules/type-check": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
+ "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "prelude-ls": "^1.2.1"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/typed-array-buffer": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz",
+ "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.3",
+ "es-errors": "^1.3.0",
+ "is-typed-array": "^1.1.14"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/typed-array-byte-length": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz",
+ "integrity": "sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.8",
+ "for-each": "^0.3.3",
+ "gopd": "^1.2.0",
+ "has-proto": "^1.2.0",
+ "is-typed-array": "^1.1.14"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/typed-array-byte-offset": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.5.tgz",
+ "integrity": "sha512-0FHJvLPqZ7KJzp17O13jfsAjsqazgrxBu2zEK95PmUz8lv2+GjRuxUInCr2Rk9Dms3ihN21zJ929ZO43yJ95QQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "available-typed-arrays": "^1.0.7",
+ "call-bind": "^1.0.9",
+ "for-each": "^0.3.5",
+ "gopd": "^1.2.0",
+ "is-typed-array": "^1.1.15",
+ "reflect.getprototypeof": "^1.0.10"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/typed-array-length": {
+ "version": "1.0.8",
+ "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.8.tgz",
+ "integrity": "sha512-phPGCwqr2+Qo0fwniCE8e4pKnGu/yFb5nD5Y8bf0EEeiI5GklnACYA9GFy/DrAeRrKHXvHn+1SUsOWgJp6RO+g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.9",
+ "for-each": "^0.3.5",
+ "gopd": "^1.2.0",
+ "is-typed-array": "^1.1.15",
+ "possible-typed-array-names": "^1.1.0",
+ "reflect.getprototypeof": "^1.0.10"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/typescript": {
+ "version": "5.9.3",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "peer": true,
+ "bin": {
+ "tsc": "bin/tsc",
+ "tsserver": "bin/tsserver"
+ },
+ "engines": {
+ "node": ">=14.17"
+ }
+ },
+ "node_modules/typescript-eslint": {
+ "version": "8.71.0",
+ "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.71.0.tgz",
+ "integrity": "sha512-fBdHYiqQ14RW6mOMXD14Svn82ZsCYAoQSzGRzyEjR59S5A2Krh/l7fGTOQ7iCr8gGy/mHVXtEF7s5fgjEdV0Pw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/eslint-plugin": "8.71.0",
+ "@typescript-eslint/parser": "8.71.0",
+ "@typescript-eslint/typescript-estree": "8.71.0",
+ "@typescript-eslint/utils": "8.71.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/unbox-primitive": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.1.0.tgz",
+ "integrity": "sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.3",
+ "has-bigints": "^1.0.2",
+ "has-symbols": "^1.1.0",
+ "which-boxed-primitive": "^1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/unified": {
+ "version": "11.0.5",
+ "resolved": "https://registry.npmjs.org/unified/-/unified-11.0.5.tgz",
+ "integrity": "sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "^3.0.0",
+ "bail": "^2.0.0",
+ "devlop": "^1.0.0",
+ "extend": "^3.0.0",
+ "is-plain-obj": "^4.0.0",
+ "trough": "^2.0.0",
+ "vfile": "^6.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/unist-util-is": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz",
+ "integrity": "sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "^3.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/unist-util-position": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz",
+ "integrity": "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "^3.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/unist-util-stringify-position": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz",
+ "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "^3.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/unist-util-visit": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.1.0.tgz",
+ "integrity": "sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "^3.0.0",
+ "unist-util-is": "^6.0.0",
+ "unist-util-visit-parents": "^6.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/unist-util-visit-parents": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.2.tgz",
+ "integrity": "sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "^3.0.0",
+ "unist-util-is": "^6.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/unrs-resolver": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/unrs-resolver/-/unrs-resolver-1.12.2.tgz",
+ "integrity": "sha512-dmlRxBJJayXjqTwC+JtF1HhJmgf3ftQ3YejFcZrf4+KKtJv0qDsK1pjqaaVjG7wJ5NJ6UVP1OqRMQ71Z4C3rxQ==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "dependencies": {
+ "napi-postinstall": "^0.3.4"
+ },
+ "funding": {
+ "url": "https://opencollective.com/unrs-resolver"
+ },
+ "optionalDependencies": {
+ "@unrs/resolver-binding-android-arm-eabi": "1.12.2",
+ "@unrs/resolver-binding-android-arm64": "1.12.2",
+ "@unrs/resolver-binding-darwin-arm64": "1.12.2",
+ "@unrs/resolver-binding-darwin-x64": "1.12.2",
+ "@unrs/resolver-binding-freebsd-x64": "1.12.2",
+ "@unrs/resolver-binding-linux-arm-gnueabihf": "1.12.2",
+ "@unrs/resolver-binding-linux-arm-musleabihf": "1.12.2",
+ "@unrs/resolver-binding-linux-arm64-gnu": "1.12.2",
+ "@unrs/resolver-binding-linux-arm64-musl": "1.12.2",
+ "@unrs/resolver-binding-linux-loong64-gnu": "1.12.2",
+ "@unrs/resolver-binding-linux-loong64-musl": "1.12.2",
+ "@unrs/resolver-binding-linux-ppc64-gnu": "1.12.2",
+ "@unrs/resolver-binding-linux-riscv64-gnu": "1.12.2",
+ "@unrs/resolver-binding-linux-riscv64-musl": "1.12.2",
+ "@unrs/resolver-binding-linux-s390x-gnu": "1.12.2",
+ "@unrs/resolver-binding-linux-x64-gnu": "1.12.2",
+ "@unrs/resolver-binding-linux-x64-musl": "1.12.2",
+ "@unrs/resolver-binding-openharmony-arm64": "1.12.2",
+ "@unrs/resolver-binding-wasm32-wasi": "1.12.2",
+ "@unrs/resolver-binding-win32-arm64-msvc": "1.12.2",
+ "@unrs/resolver-binding-win32-ia32-msvc": "1.12.2",
+ "@unrs/resolver-binding-win32-x64-msvc": "1.12.2"
+ }
+ },
+ "node_modules/update-browserslist-db": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.3.tgz",
+ "integrity": "sha512-pJ2sYawQS0R/WI928Gj5GlPhTGzbMelq0+4INtSYNDV9ErKJcX6xjGWkoG/VnB3dpUm00zALaqkrUD77pO5TDQ==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "escalade": "^3.2.0",
+ "picocolors": "^1.1.1"
+ },
+ "bin": {
+ "update-browserslist-db": "cli.js"
+ },
+ "peerDependencies": {
+ "browserslist": ">= 4.21.0"
+ }
+ },
+ "node_modules/uri-js": {
+ "version": "4.4.1",
+ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
+ "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "punycode": "^2.1.0"
+ }
+ },
+ "node_modules/use-sync-external-store": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.7.0.tgz",
+ "integrity": "sha512-6L+EeigHMQhdaIPNIFUKwfWJSwWFQ8gJbJ2DLOs5sDIegTwR9fRxvnM3uciHKjIZhFz+KAv2emhWMRvDmMcY8A==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
+ }
+ },
+ "node_modules/vfile": {
+ "version": "6.0.3",
+ "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz",
+ "integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "^3.0.0",
+ "vfile-message": "^4.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/vfile-message": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.3.tgz",
+ "integrity": "sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "^3.0.0",
+ "unist-util-stringify-position": "^4.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/w3c-keyname": {
+ "version": "2.2.8",
+ "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.8.tgz",
+ "integrity": "sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==",
+ "license": "MIT"
+ },
+ "node_modules/which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "node-which": "bin/node-which"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/which-boxed-primitive": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz",
+ "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-bigint": "^1.1.0",
+ "is-boolean-object": "^1.2.1",
+ "is-number-object": "^1.1.1",
+ "is-string": "^1.1.1",
+ "is-symbol": "^1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/which-builtin-type": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.2.1.tgz",
+ "integrity": "sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "function.prototype.name": "^1.1.6",
+ "has-tostringtag": "^1.0.2",
+ "is-async-function": "^2.0.0",
+ "is-date-object": "^1.1.0",
+ "is-finalizationregistry": "^1.1.0",
+ "is-generator-function": "^1.0.10",
+ "is-regex": "^1.2.1",
+ "is-weakref": "^1.0.2",
+ "isarray": "^2.0.5",
+ "which-boxed-primitive": "^1.1.0",
+ "which-collection": "^1.0.2",
+ "which-typed-array": "^1.1.16"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/which-collection": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz",
+ "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-map": "^2.0.3",
+ "is-set": "^2.0.3",
+ "is-weakmap": "^2.0.2",
+ "is-weakset": "^2.0.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/which-typed-array": {
+ "version": "1.1.24",
+ "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.24.tgz",
+ "integrity": "sha512-wk4Mf4pR5mRP7eYuuTBCIQ9d0ud2Fv2jRLQpfgnRjbOxAFHmjKFValgTpitVKzJJS8ajnYQV2Du1SZ8j6b/EUQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "available-typed-arrays": "^1.0.7",
+ "call-bind": "^1.0.9",
+ "call-bound": "^1.0.4",
+ "for-each": "^0.3.5",
+ "get-proto": "^1.0.1",
+ "gopd": "^1.2.0",
+ "has-tostringtag": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/word-wrap": {
+ "version": "1.2.5",
+ "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",
+ "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/yallist": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
+ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/yocto-queue": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
+ "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/zod": {
+ "version": "4.6.5",
+ "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.5.tgz",
+ "integrity": "sha512-v5l/aFXZQeai4awLbOpSoHecE9UiMrnfx75tEXLjNonXVARxQ5mOeipTjROUchszUNCqnE+hqAMujRsRHsut2Q==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/colinhacks"
+ }
+ },
+ "node_modules/zod-validation-error": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-4.0.2.tgz",
+ "integrity": "sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.0.0"
+ },
+ "peerDependencies": {
+ "zod": "^3.25.0 || ^4.0.0"
+ }
+ },
+ "node_modules/zwitch": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz",
+ "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ }
+ }
+}
diff --git a/client/package.json b/client/package.json
new file mode 100644
index 0000000..6cb1177
--- /dev/null
+++ b/client/package.json
@@ -0,0 +1,37 @@
+{
+ "name": "client",
+ "version": "0.1.0",
+ "private": true,
+ "scripts": {
+ "dev": "next dev",
+ "build": "next build",
+ "start": "next start",
+ "lint": "eslint"
+ },
+ "dependencies": {
+ "@tiptap/core": "^3.31.4",
+ "@tiptap/extension-image": "^3.31.4",
+ "@tiptap/extension-placeholder": "^3.31.4",
+ "@tiptap/extension-table": "^3.31.4",
+ "@tiptap/extension-task-item": "^3.31.4",
+ "@tiptap/extension-task-list": "^3.31.4",
+ "@tiptap/markdown": "^3.31.4",
+ "@tiptap/pm": "^3.31.4",
+ "@tiptap/react": "^3.31.4",
+ "@tiptap/starter-kit": "^3.31.4",
+ "@tiptap/suggestion": "^3.31.4",
+ "next": "16.3.8",
+ "next-themes": "^0.4.6",
+ "react": "19.2.8",
+ "react-dom": "19.2.8",
+ "react-icons": "^5.7.0",
+ "react-markdown": "^10.1.0",
+ "remark-gfm": "^4.0.1"
+ },
+ "devDependencies": {
+ "@tailwindcss/postcss": "^4",
+ "eslint": "^9",
+ "eslint-config-next": "16.3.8",
+ "tailwindcss": "^4"
+ }
+}
diff --git a/client/postcss.config.mjs b/client/postcss.config.mjs
new file mode 100644
index 0000000..61e3684
--- /dev/null
+++ b/client/postcss.config.mjs
@@ -0,0 +1,7 @@
+const config = {
+ plugins: {
+ "@tailwindcss/postcss": {},
+ },
+};
+
+export default config;
diff --git a/client/public/file.svg b/client/public/file.svg
new file mode 100644
index 0000000..004145c
--- /dev/null
+++ b/client/public/file.svg
@@ -0,0 +1 @@
+<svg fill="none" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.5 13.5V5.41a1 1 0 0 0-.3-.7L9.8.29A1 1 0 0 0 9.08 0H1.5v13.5A2.5 2.5 0 0 0 4 16h8a2.5 2.5 0 0 0 2.5-2.5m-1.5 0v-7H8v-5H3v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1M9.5 5V2.12L12.38 5zM5.13 5h-.62v1.25h2.12V5zm-.62 3h7.12v1.25H4.5zm.62 3h-.62v1.25h7.12V11z" clip-rule="evenodd" fill="#666" fill-rule="evenodd"/></svg>
\ No newline at end of file
diff --git a/client/public/globe.svg b/client/public/globe.svg
new file mode 100644
index 0000000..567f17b
--- /dev/null
+++ b/client/public/globe.svg
@@ -0,0 +1 @@
+<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.27 14.1a6.5 6.5 0 0 0 3.67-3.45q-1.24.21-2.7.34-.31 1.83-.97 3.1M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m.48-1.52a7 7 0 0 1-.96 0H7.5a4 4 0 0 1-.84-1.32q-.38-.89-.63-2.08a40 40 0 0 0 3.92 0q-.25 1.2-.63 2.08a4 4 0 0 1-.84 1.31zm2.94-4.76q1.66-.15 2.95-.43a7 7 0 0 0 0-2.58q-1.3-.27-2.95-.43a18 18 0 0 1 0 3.44m-1.27-3.54a17 17 0 0 1 0 3.64 39 39 0 0 1-4.3 0 17 17 0 0 1 0-3.64 39 39 0 0 1 4.3 0m1.1-1.17q1.45.13 2.69.34a6.5 6.5 0 0 0-3.67-3.44q.65 1.26.98 3.1M8.48 1.5l.01.02q.41.37.84 1.31.38.89.63 2.08a40 40 0 0 0-3.92 0q.25-1.2.63-2.08a4 4 0 0 1 .85-1.32 7 7 0 0 1 .96 0m-2.75.4a6.5 6.5 0 0 0-3.67 3.44 29 29 0 0 1 2.7-.34q.31-1.83.97-3.1M4.58 6.28q-1.66.16-2.95.43a7 7 0 0 0 0 2.58q1.3.27 2.95.43a18 18 0 0 1 0-3.44m.17 4.71q-1.45-.12-2.69-.34a6.5 6.5 0 0 0 3.67 3.44q-.65-1.27-.98-3.1" fill="#666"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs></svg>
\ No newline at end of file
diff --git a/client/public/next.svg b/client/public/next.svg
new file mode 100644
index 0000000..5174b28
--- /dev/null
+++ b/client/public/next.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 394 80"><path fill="#000" d="M262 0h68.5v12.7h-27.2v66.6h-13.6V12.7H262V0ZM149 0v12.7H94v20.4h44.3v12.6H94v21h55v12.6H80.5V0h68.7zm34.3 0h-17.8l63.8 79.4h17.9l-32-39.7 32-39.6h-17.9l-23 28.6-23-28.6zm18.3 56.7-9-11-27.1 33.7h17.8l18.3-22.7z"/><path fill="#000" d="M81 79.3 17 0H0v79.3h13.6V17l50.2 62.3H81Zm252.6-.4c-1 0-1.8-.4-2.5-1s-1.1-1.6-1.1-2.6.3-1.8 1-2.5 1.6-1 2.6-1 1.8.3 2.5 1a3.4 3.4 0 0 1 .6 4.3 3.7 3.7 0 0 1-3 1.8zm23.2-33.5h6v23.3c0 2.1-.4 4-1.3 5.5a9.1 9.1 0 0 1-3.8 3.5c-1.6.8-3.5 1.3-5.7 1.3-2 0-3.7-.4-5.3-1s-2.8-1.8-3.7-3.2c-.9-1.3-1.4-3-1.4-5h6c.1.8.3 1.6.7 2.2s1 1.2 1.6 1.5c.7.4 1.5.5 2.4.5 1 0 1.8-.2 2.4-.6a4 4 0 0 0 1.6-1.8c.3-.8.5-1.8.5-3V45.5zm30.9 9.1a4.4 4.4 0 0 0-2-3.3 7.5 7.5 0 0 0-4.3-1.1c-1.3 0-2.4.2-3.3.5-.9.4-1.6 1-2 1.6a3.5 3.5 0 0 0-.3 4c.3.5.7.9 1.3 1.2l1.8 1 2 .5 3.2.8c1.3.3 2.5.7 3.7 1.2a13 13 0 0 1 3.2 1.8 8.1 8.1 0 0 1 3 6.5c0 2-.5 3.7-1.5 5.1a10 10 0 0 1-4.4 3.5c-1.8.8-4.1 1.2-6.8 1.2-2.6 0-4.9-.4-6.8-1.2-2-.8-3.4-2-4.5-3.5a10 10 0 0 1-1.7-5.6h6a5 5 0 0 0 3.5 4.6c1 .4 2.2.6 3.4.6 1.3 0 2.5-.2 3.5-.6 1-.4 1.8-1 2.4-1.7a4 4 0 0 0 .8-2.4c0-.9-.2-1.6-.7-2.2a11 11 0 0 0-2.1-1.4l-3.2-1-3.8-1c-2.8-.7-5-1.7-6.6-3.2a7.2 7.2 0 0 1-2.4-5.7 8 8 0 0 1 1.7-5 10 10 0 0 1 4.3-3.5c2-.8 4-1.2 6.4-1.2 2.3 0 4.4.4 6.2 1.2 1.8.8 3.2 2 4.3 3.4 1 1.4 1.5 3 1.5 5h-5.8z"/></svg>
\ No newline at end of file
diff --git a/client/public/vercel.svg b/client/public/vercel.svg
new file mode 100644
index 0000000..7705396
--- /dev/null
+++ b/client/public/vercel.svg
@@ -0,0 +1 @@
+<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1155 1000"><path d="m577.3 0 577.4 1000H0z" fill="#fff"/></svg>
\ No newline at end of file
diff --git a/client/public/window.svg b/client/public/window.svg
new file mode 100644
index 0000000..b2b2a44
--- /dev/null
+++ b/client/public/window.svg
@@ -0,0 +1 @@
+<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.5 2.5h13v10a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1zM0 1h16v11.5a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 0 12.5zm3.75 4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5M7 4.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0m1.75.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5" fill="#666"/></svg>
\ No newline at end of file
diff --git a/client/src/app/c/[chatId]/page.js b/client/src/app/c/[chatId]/page.js
new file mode 100644
index 0000000..efec7fb
--- /dev/null
+++ b/client/src/app/c/[chatId]/page.js
@@ -0,0 +1,17 @@
+"use client";
+
+import React from "react";
+import { useParams } from "next/navigation";
+import OpenSpacesApp from "../../../components/OpenSpacesApp";
+
+export default function ChatConversationRoute() {
+ const params = useParams();
+ const chatId = params?.chatId;
+
+ return (
+ <OpenSpacesApp
+ initialRailTab="home"
+ initialChatId={chatId}
+ />
+ );
+}
diff --git a/client/src/app/favicon.ico b/client/src/app/favicon.ico
new file mode 100644
index 0000000..718d6fe
Binary files /dev/null and b/client/src/app/favicon.ico differ
diff --git a/client/src/app/globals.css b/client/src/app/globals.css
new file mode 100644
index 0000000..7909433
--- /dev/null
+++ b/client/src/app/globals.css
@@ -0,0 +1,198 @@
+@import "tailwindcss";
+
+@custom-variant dark (&:where(.dark, .dark *));
+
+:root {
+ --background: #fbfbfa;
+ --foreground: #18181b;
+ --sidebar-bg: #f7f7f8;
+ --card-bg: #ffffff;
+ --border-color: #e4e4e7;
+}
+
+.dark {
+ --background: #141416;
+ --foreground: #f4f4f5;
+ --sidebar-bg: #18181b;
+ --card-bg: #1e1e24;
+ --border-color: #2e2e34;
+}
+
+*, ::before, ::after {
+ font-family: inherit;
+}
+
+body {
+ background-color: var(--background);
+ color: var(--foreground);
+ overflow-x: hidden;
+ transition: background-color 0.2s ease, color 0.2s ease;
+}
+
+input, textarea, select, button, code, pre, kbd {
+ font-family: inherit;
+}
+
+/* Custom Scrollbar */
+::-webkit-scrollbar {
+ width: 6px;
+ height: 6px;
+}
+
+::-webkit-scrollbar-track {
+ background: transparent;
+}
+
+::-webkit-scrollbar-thumb {
+ background: #d4d4d8;
+ border-radius: 9999px;
+}
+
+.dark ::-webkit-scrollbar-thumb {
+ background: #333338;
+}
+
+::-webkit-scrollbar-thumb:hover {
+ background: #a1a1aa;
+}
+
+.dark ::-webkit-scrollbar-thumb:hover {
+ background: #4a4a50;
+}
+
+/* Prose and markdown custom styling using Inter */
+.markdown-body h1 {
+ font-size: 1.85rem;
+ font-weight: 700;
+ margin-top: 1rem;
+ margin-bottom: 0.75rem;
+ color: #18181b;
+ border-bottom: 1px solid #e4e4e7;
+ padding-bottom: 0.4rem;
+}
+.dark .markdown-body h1 {
+ color: #f4f4f5;
+ border-bottom-color: #2e2e34;
+}
+
+.markdown-body h2 {
+ font-size: 1.4rem;
+ font-weight: 600;
+ margin-top: 1.25rem;
+ margin-bottom: 0.5rem;
+ color: #27272a;
+}
+.dark .markdown-body h2 {
+ color: #e4e4e7;
+}
+
+.markdown-body h3 {
+ font-size: 1.15rem;
+ font-weight: 600;
+ margin-top: 1rem;
+ margin-bottom: 0.4rem;
+ color: #3f3f46;
+}
+.dark .markdown-body h3 {
+ color: #d4d4d8;
+}
+
+.markdown-body p {
+ margin-bottom: 0.75rem;
+ line-height: 1.65;
+ color: #3f3f46;
+}
+.dark .markdown-body p {
+ color: #d4d4d8;
+}
+
+.markdown-body ul, .markdown-body ol {
+ margin-left: 1.5rem;
+ margin-bottom: 0.75rem;
+}
+
+.markdown-body li {
+ margin-bottom: 0.35rem;
+ line-height: 1.5;
+ color: #3f3f46;
+}
+.dark .markdown-body li {
+ color: #d4d4d8;
+}
+
+.markdown-body table {
+ width: 100%;
+ border-collapse: separate;
+ border-spacing: 0;
+ margin: 1.25rem 0;
+ font-size: 0.875rem;
+ border: 1px solid #d4d4d8;
+ border-radius: 12px;
+ overflow: hidden;
+ background: #ffffff;
+}
+
+.dark .markdown-body table {
+ border-color: #3f3f46;
+ background: #141418;
+}
+
+.markdown-body th, .markdown-body td {
+ border-right: 1px solid #e4e4e7;
+ border-bottom: 1px solid #e4e4e7;
+ padding: 0.65rem 0.9rem;
+ text-align: left;
+}
+
+.dark .markdown-body th, .dark .markdown-body td {
+ border-right-color: #33333a;
+ border-bottom-color: #33333a;
+}
+
+.markdown-body th:last-child,
+.markdown-body td:last-child {
+ border-right: none;
+}
+
+.markdown-body tr:last-child td {
+ border-bottom: none;
+}
+
+.markdown-body th {
+ background-color: #f4f4f6;
+ font-weight: 600;
+ color: #18181b;
+ border-bottom: 2px solid #d4d4d8;
+}
+
+.dark .markdown-body th {
+ background-color: #1a1a22;
+ color: #f4f4f5;
+ border-bottom-color: #3f3f46;
+}
+
+.markdown-body blockquote {
+ border-left: 3px solid #6366f1;
+ padding-left: 1rem;
+ margin: 0.75rem 0;
+ color: #52525b;
+ font-style: italic;
+ background: rgba(99, 102, 241, 0.05);
+ padding-top: 0.25rem;
+ padding-bottom: 0.25rem;
+}
+.dark .markdown-body blockquote {
+ color: #a1a1aa;
+}
+
+.markdown-body code {
+ background-color: #f4f4f5;
+ padding: 0.15rem 0.35rem;
+ border-radius: 0.25rem;
+ font-size: 0.875rem;
+ color: #0f172a;
+}
+.dark .markdown-body code {
+ background-color: #27272a;
+ color: #cbd5e1;
+}
diff --git a/client/src/app/layout.js b/client/src/app/layout.js
new file mode 100644
index 0000000..4691791
--- /dev/null
+++ b/client/src/app/layout.js
@@ -0,0 +1,22 @@
+import { Inter } from "next/font/google";
+import { ThemeProvider } from "../components/ThemeProvider";
+import "./globals.css";
+
+const inter = Inter({ subsets: ["latin"] });
+
+export const metadata = {
+ title: "OpenSpaces - Autonomous AI Workspace & Pages",
+ description: "Open-source ChatGPT Spaces replica with Pages, Dots (autonomous agents), and meeting intelligence.",
+};
+
+export default function RootLayout({ children }) {
+ return (
+ <html lang="en" suppressHydrationWarning className={`h-full ${inter.className}`}>
+ <body className={`${inter.className} min-h-full bg-[var(--background)] text-[var(--foreground)] antialiased transition-colors duration-200`}>
+ <ThemeProvider attribute="class" defaultTheme="system" enableSystem>
+ {children}
+ </ThemeProvider>
+ </body>
+ </html>
+ );
+}
diff --git a/client/src/app/page.js b/client/src/app/page.js
new file mode 100644
index 0000000..5722d40
--- /dev/null
+++ b/client/src/app/page.js
@@ -0,0 +1,12 @@
+"use client";
+
+import React from "react";
+import OpenSpacesApp from "../components/OpenSpacesApp";
+
+export default function HomePage() {
+ return (
+ <OpenSpacesApp
+ initialRailTab="spaces" // Default to pages & spaces on homepage
+ />
+ );
+}
diff --git a/client/src/app/spaces/[spaceId]/page.js b/client/src/app/spaces/[spaceId]/page.js
new file mode 100644
index 0000000..eb3ca6d
--- /dev/null
+++ b/client/src/app/spaces/[spaceId]/page.js
@@ -0,0 +1,18 @@
+"use client";
+
+import React from "react";
+import { useParams } from "next/navigation";
+import OpenSpacesApp from "../../../components/OpenSpacesApp";
+
+export default function SpaceRoute() {
+ const params = useParams();
+ const spaceId = params?.spaceId;
+
+ return (
+ <OpenSpacesApp
+ initialRailTab="spaces"
+ initialSpaceId={spaceId}
+ initialPageId={null}
+ />
+ );
+}
diff --git a/client/src/app/spaces/[spaceId]/pages/[pageId]/page.js b/client/src/app/spaces/[spaceId]/pages/[pageId]/page.js
new file mode 100644
index 0000000..6a5cea7
--- /dev/null
+++ b/client/src/app/spaces/[spaceId]/pages/[pageId]/page.js
@@ -0,0 +1,19 @@
+"use client";
+
+import React from "react";
+import { useParams } from "next/navigation";
+import OpenSpacesApp from "../../../../../components/OpenSpacesApp";
+
+export default function SpacePageDocRoute() {
+ const params = useParams();
+ const spaceId = params?.spaceId;
+ const pageId = params?.pageId;
+
+ return (
+ <OpenSpacesApp
+ initialRailTab="spaces"
+ initialSpaceId={spaceId}
+ initialPageId={pageId}
+ />
+ );
+}
diff --git a/client/src/components/CanvasPage.js b/client/src/components/CanvasPage.js
new file mode 100644
index 0000000..b7ad203
--- /dev/null
+++ b/client/src/components/CanvasPage.js
@@ -0,0 +1,397 @@
+"use client";
+
+import React, { useState, useEffect, useRef, useCallback } from "react";
+import RichEditor from "./editor/RichEditor";
+import { inspectMarkdown } from "./editor/markdown";
+import {
+ WindowIcon,
+ SparklesIcon,
+} from "./Icons";
+import { LuFileCode2 } from "react-icons/lu";
+
+const DEFAULT_STARTER_TEMPLATE = `> Pages are a place for you to write, build, and collaborate with ChatGPT and your teammates. Use this page as your playground to learn the basics β€” and have fun!
+
+### Getting started
+
+- [ ] **Play with this page.** Type \`/\` to add headings, images, checklists, tables, and more. Try it out below!
+
+I'm a curious, collaborative person who enjoys turning ideas into meaningful projects, learning from the people around me, and finding thoughtful ways to help others.
+
+- [ ] Try adding a heading, checklist, or callout to this page using the \`/\` menu.`;
+
+const EMOJI_OPTIONS = ["πŸ“„", "πŸŽ“", "πŸ’‘", "πŸš€", "πŸ“Œ", "πŸ“Š", "πŸ“", "🎯", "⚑", "πŸ€–", "πŸ“", "πŸ’»"];
+
+export default function CanvasPage({
+ page,
+ onUpdatePage,
+ onStatusChange,
+ onTriggerAI,
+ saveTrigger,
+}) {
+ const [title, setTitle] = useState(page?.title || "Untitled page");
+ const [icon, setIcon] = useState(page?.icon || "πŸ“„");
+ const [content, setContent] = useState(page?.content || "");
+ const [sourceMode, setSourceMode] = useState(false);
+ const [showEmojiPicker, setShowEmojiPicker] = useState(false);
+ const [promptInput, setPromptInput] = useState("");
+ const [notice, setNotice] = useState("");
+
+ const draftRef = useRef({
+ id: page?.id,
+ title: page?.title || "Untitled page",
+ icon: page?.icon || "πŸ“„",
+ content: page?.content || "",
+ isDirty: false,
+ });
+
+ // Hold timer: only trigger save when user STOPS typing/modifying
+ const idleHoldTimerRef = useRef(null);
+ const isSavingRef = useRef(false);
+ const saveQueuedRef = useRef(false);
+ const prevSaveTriggerRef = useRef(saveTrigger);
+
+ // Sync draft state whenever page prop changes
+ useEffect(() => {
+ if (!page) return;
+
+ if (draftRef.current.isDirty && draftRef.current.id && draftRef.current.id !== page.id) {
+ flushSave(draftRef.current);
+ }
+
+ const initialTitle = page.title || "Untitled page";
+ const initialIcon = page.icon || "πŸ“„";
+ const rawContent =
+ page.content !== undefined && page.content !== null && page.content !== ""
+ ? page.content
+ : DEFAULT_STARTER_TEMPLATE;
+
+ setTitle(initialTitle);
+ setIcon(initialIcon);
+ setContent(rawContent);
+
+ draftRef.current = {
+ id: page.id,
+ title: initialTitle,
+ icon: initialIcon,
+ content: rawContent,
+ isDirty: false,
+ };
+
+ if (onStatusChange) {
+ onStatusChange("Saved");
+ }
+ }, [page?.id]);
+
+ // Flush save function
+ const flushSave = useCallback(
+ async (overrideDraft = null) => {
+ const current = overrideDraft || draftRef.current;
+ if (!current.id || !current.isDirty) return;
+
+ if (idleHoldTimerRef.current) {
+ clearTimeout(idleHoldTimerRef.current);
+ idleHoldTimerRef.current = null;
+ }
+
+ if (isSavingRef.current) {
+ saveQueuedRef.current = true;
+ return;
+ }
+
+ isSavingRef.current = true;
+ if (onStatusChange) onStatusChange("Saving...");
+
+ const snapshot = {
+ id: current.id,
+ title: current.title,
+ icon: current.icon,
+ content: current.content,
+ };
+
+ try {
+ const updated = await onUpdatePage(snapshot.id, {
+ title: snapshot.title,
+ icon: snapshot.icon,
+ content: snapshot.content,
+ });
+
+ if (updated) {
+ if (
+ draftRef.current.content === snapshot.content &&
+ draftRef.current.title === snapshot.title &&
+ draftRef.current.icon === snapshot.icon
+ ) {
+ draftRef.current.isDirty = false;
+ if (onStatusChange) onStatusChange("Saved");
+ } else {
+ // Further edits were made while request was in flight
+ draftRef.current.isDirty = true;
+ if (onStatusChange) onStatusChange("Unsaved changes");
+ idleHoldTimerRef.current = setTimeout(() => {
+ flushSave();
+ }, 1500);
+ }
+ } else {
+ if (onStatusChange) onStatusChange("Failed");
+ }
+ } catch (err) {
+ console.warn("Autosave error:", err?.message || err);
+ if (onStatusChange) onStatusChange("Failed");
+ } finally {
+ isSavingRef.current = false;
+ if (saveQueuedRef.current && draftRef.current.isDirty) {
+ saveQueuedRef.current = false;
+ idleHoldTimerRef.current = setTimeout(() => {
+ flushSave();
+ }, 1500);
+ }
+ }
+ },
+ [onUpdatePage, onStatusChange]
+ );
+
+ // Debounced idle hold: Hold changes on "Unsaved changes" until user stops for 1.5s
+ const scheduleIdleAutosave = useCallback(
+ (newDraft) => {
+ draftRef.current = {
+ ...draftRef.current,
+ ...newDraft,
+ isDirty: true,
+ };
+ if (onStatusChange) onStatusChange("Unsaved changes");
+
+ // Reset the hold timer on every change
+ if (idleHoldTimerRef.current) {
+ clearTimeout(idleHoldTimerRef.current);
+ }
+
+ idleHoldTimerRef.current = setTimeout(() => {
+ flushSave();
+ }, 1500);
+ },
+ [flushSave, onStatusChange]
+ );
+
+ // Respond to manual Save button trigger from PageHeaderBar
+ useEffect(() => {
+ if (saveTrigger !== prevSaveTriggerRef.current) {
+ prevSaveTriggerRef.current = saveTrigger;
+ if (draftRef.current.isDirty) {
+ flushSave();
+ }
+ }
+ }, [saveTrigger, flushSave]);
+
+ // Keyboard shortcut Ctrl+S / Cmd+S
+ useEffect(() => {
+ const handleKeyDown = (e) => {
+ if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === "s") {
+ e.preventDefault();
+ flushSave();
+ }
+ };
+ window.addEventListener("keydown", handleKeyDown);
+ return () => window.removeEventListener("keydown", handleKeyDown);
+ }, [flushSave]);
+
+ // Flush on unmount
+ useEffect(() => {
+ return () => {
+ if (idleHoldTimerRef.current) {
+ clearTimeout(idleHoldTimerRef.current);
+ }
+ if (draftRef.current.isDirty && draftRef.current.id) {
+ flushSave(draftRef.current);
+ }
+ };
+ }, [flushSave]);
+
+ // Close emoji picker when clicking outside
+ useEffect(() => {
+ const handleClickOutside = () => setShowEmojiPicker(false);
+ window.addEventListener("click", handleClickOutside);
+ return () => window.removeEventListener("click", handleClickOutside);
+ }, []);
+
+ const handleTitleChange = (newTitle) => {
+ setTitle(newTitle);
+ scheduleIdleAutosave({ title: newTitle });
+ };
+
+ const handleIconChange = (newIcon) => {
+ setIcon(newIcon);
+ setShowEmojiPicker(false);
+ scheduleIdleAutosave({ icon: newIcon });
+ };
+
+ const handleContentChange = (newContent) => {
+ setContent(newContent);
+ scheduleIdleAutosave({ content: newContent });
+ };
+
+ const safety = inspectMarkdown(content);
+
+ return (
+ <div className="flex-1 overflow-y-auto bg-white dark:bg-[#141416] text-zinc-900 dark:text-zinc-100 transition-colors duration-150">
+ <div className="max-w-3xl mx-auto px-10 py-10">
+ {/* Top Control Bar: Mode Toggle & Emoji Picker */}
+ <div className="flex items-center justify-between mb-4 select-none">
+ {/* Emoji Page Icon */}
+ <div className="relative">
+ <button
+ type="button"
+ onClick={(e) => {
+ e.stopPropagation();
+ setShowEmojiPicker(!showEmojiPicker);
+ }}
+ className="text-4xl p-1 rounded-xl hover:bg-zinc-100 dark:hover:bg-zinc-800 transition-colors cursor-pointer select-none"
+ title="Click to change icon"
+ >
+ {icon || "πŸ“„"}
+ </button>
+
+ {showEmojiPicker && (
+ <div
+ onClick={(e) => e.stopPropagation()}
+ className="absolute left-0 top-14 bg-white dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-700 rounded-xl shadow-xl p-2 z-40 flex flex-wrap gap-2 w-56 animate-in fade-in zoom-in-95 duration-100"
+ >
+ {EMOJI_OPTIONS.map((e) => (
+ <button
+ key={e}
+ type="button"
+ onClick={() => handleIconChange(e)}
+ className="w-9 h-9 flex items-center justify-center text-xl rounded-lg hover:bg-zinc-100 dark:hover:bg-zinc-700 cursor-pointer transition-transform hover:scale-110"
+ >
+ {e}
+ </button>
+ ))}
+ </div>
+ )}
+ </div>
+
+ {/* Mode Switcher Button (Visual Editor vs Markdown Source) */}
+ <button
+ type="button"
+ onClick={() => {
+ if (!sourceMode && !safety.supported) {
+ setNotice(safety.reason || "This document needs Markdown source mode.");
+ }
+ setSourceMode(!sourceMode);
+ }}
+ className={`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium cursor-pointer transition-colors border ${
+ sourceMode
+ ? "bg-indigo-50 dark:bg-indigo-950/40 text-indigo-600 dark:text-indigo-400 border-indigo-200 dark:border-indigo-800"
+ : "bg-zinc-100 dark:bg-zinc-800 text-zinc-600 dark:text-zinc-300 border-zinc-200 dark:border-zinc-700 hover:bg-zinc-200 dark:hover:bg-zinc-700"
+ }`}
+ >
+ <WindowIcon className="w-3.5 h-3.5" />
+ <span>{sourceMode ? "Visual Editor" : "Markdown Source"}</span>
+ </button>
+ </div>
+
+ {/* Notice alert if any */}
+ {notice && (
+ <div className="mb-4 p-3 rounded-lg bg-amber-50 dark:bg-amber-950/30 border border-amber-200 dark:border-amber-800 text-xs text-amber-800 dark:text-amber-200 flex items-center justify-between">
+ <span>{notice}</span>
+ <button
+ type="button"
+ onClick={() => setNotice("")}
+ className="text-amber-600 dark:text-amber-400 font-bold ml-2 cursor-pointer"
+ >
+ Dismiss
+ </button>
+ </div>
+ )}
+
+ {/* Page Title Input matching OpenDots (Image 2) */}
+ <input
+ type="text"
+ value={title}
+ onChange={(e) => handleTitleChange(e.target.value)}
+ onBlur={() => flushSave()}
+ placeholder="Untitled page"
+ maxLength={160}
+ className="document-title w-full text-4xl font-bold tracking-tight text-zinc-900 dark:text-zinc-100 bg-transparent focus:outline-none placeholder-zinc-300 dark:placeholder-zinc-600 mb-6"
+ />
+
+ {/* Document Body */}
+ {sourceMode ? (
+ <div className="space-y-3">
+ <div className="flex items-center gap-2 text-xs font-medium text-zinc-500 dark:text-zinc-400 pb-1">
+ <LuFileCode2 size={16} />
+ <span>Markdown source</span>
+ </div>
+ <textarea
+ rows={20}
+ spellCheck={false}
+ value={content}
+ onChange={(e) => handleContentChange(e.target.value)}
+ onBlur={() => flushSave()}
+ placeholder="Write your document in Markdown..."
+ className="w-full bg-zinc-50/50 dark:bg-zinc-900/50 border border-zinc-200 dark:border-zinc-800 rounded-xl p-4 text-xs font-mono text-zinc-800 dark:text-zinc-200 leading-relaxed resize-y focus:outline-none focus:border-zinc-400 transition-colors"
+ />
+ <div className="text-[11px] text-zinc-400 flex justify-between">
+ <span>{content.length} characters</span>
+ <span>{content.split(/\s+/).filter(Boolean).length} words</span>
+ </div>
+ </div>
+ ) : (
+ /* Visual Document Editor matching OpenDots (Image 2) */
+ <div className="document-editor-wrapper">
+ <RichEditor
+ value={content}
+ onChange={handleContentChange}
+ onNotice={(msg) => setNotice(msg)}
+ pageTitle={title}
+ pageId={page?.id}
+ />
+ </div>
+ )}
+
+ {/* Inline ChatGPT / Dot Directive Box */}
+ <div className="mt-12 p-4 rounded-xl bg-zinc-50 dark:bg-[#18181e] border border-zinc-200 dark:border-zinc-800 space-y-2 select-none">
+ <div className="text-xs text-zinc-700 dark:text-zinc-300 leading-relaxed">
+ <span className="font-semibold text-zinc-900 dark:text-zinc-100">
+ Work with ChatGPT.
+ </span>{" "}
+ Type{" "}
+ <span className="bg-indigo-50 dark:bg-indigo-900/40 text-indigo-600 dark:text-indigo-300 font-medium px-1.5 py-0.5 rounded text-[11px] border border-indigo-200 dark:border-indigo-800">
+ @ChatGPT
+ </span>
+ , followed by your request, and ChatGPT will jump in to help with whatever you need.
+ </div>
+
+ <div className="flex items-center gap-2 pt-1">
+ <span className="text-zinc-400 text-xs">↳</span>
+ <input
+ type="text"
+ placeholder="do some research about this topic or ask Dot agent..."
+ value={promptInput}
+ onChange={(e) => setPromptInput(e.target.value)}
+ onKeyDown={(e) => {
+ if (e.key === "Enter" && promptInput.trim()) {
+ onTriggerAI && onTriggerAI(promptInput.trim());
+ setPromptInput("");
+ }
+ }}
+ className="flex-1 bg-white dark:bg-zinc-900 border border-zinc-200 dark:border-zinc-700 rounded-lg px-3 py-1.5 text-xs text-zinc-900 dark:text-zinc-100 placeholder-zinc-400 focus:outline-none focus:border-indigo-500 shadow-2xs"
+ />
+ <button
+ type="button"
+ onClick={() => {
+ if (promptInput.trim()) {
+ onTriggerAI && onTriggerAI(promptInput.trim());
+ setPromptInput("");
+ }
+ }}
+ className="p-1.5 rounded-lg bg-zinc-900 dark:bg-zinc-100 text-white dark:text-zinc-900 hover:opacity-90 transition-opacity cursor-pointer"
+ title="Run directive"
+ >
+ <SparklesIcon className="w-3.5 h-3.5" />
+ </button>
+ </div>
+ </div>
+ </div>
+ </div>
+ );
+}
diff --git a/client/src/components/ChatDrawer.js b/client/src/components/ChatDrawer.js
new file mode 100644
index 0000000..2ebe8f4
--- /dev/null
+++ b/client/src/components/ChatDrawer.js
@@ -0,0 +1,108 @@
+"use client";
+
+import React, { useState } from "react";
+import { SendIcon, SparklesIcon, CloseIcon, PageIcon, BotIcon } from "./Icons";
+import MarkdownRenderer from "./MarkdownRenderer";
+
+export default function ChatDrawer({
+ isOpen,
+ onClose,
+ messages = [],
+ onSendMessage,
+ agents = [],
+ activePageTitle,
+}) {
+ const [inputText, setInputText] = useState("");
+
+ if (!isOpen) return null;
+
+ const handleSubmit = (e) => {
+ e.preventDefault();
+ if (!inputText.trim()) return;
+
+ onSendMessage({
+ content: inputText.trim(),
+ sender_type: "user",
+ sender_name: "You",
+ });
+ setInputText("");
+ };
+
+ return (
+ <div className="w-80 border-l border-zinc-200/80 dark:border-zinc-800/80 bg-[#fbfbfa] dark:bg-[#18181b] flex flex-col h-full select-none text-xs transition-colors duration-150">
+ {/* Header */}
+ <div className="p-3 border-b border-zinc-200/80 dark:border-zinc-800/80 flex items-center justify-between">
+ <div className="flex items-center gap-1.5 font-medium text-zinc-900 dark:text-zinc-100">
+ <SparklesIcon className="w-4 h-4 text-indigo-500" />
+ <span>Discussion & Dots</span>
+ </div>
+ <button
+ onClick={onClose}
+ className="p-1 rounded hover:bg-zinc-200/60 dark:hover:bg-zinc-800 text-zinc-400 hover:text-zinc-700 dark:hover:text-zinc-200"
+ >
+ <CloseIcon className="w-3.5 h-3.5" />
+ </button>
+ </div>
+
+ {/* Context Banner */}
+ {activePageTitle && (
+ <div className="px-3 py-1.5 bg-zinc-100 dark:bg-zinc-900/60 border-b border-zinc-200/60 dark:border-zinc-800/60 flex items-center gap-1.5 text-[11px] text-zinc-500">
+ <PageIcon className="w-3 h-3 text-zinc-400 shrink-0" />
+ <span className="truncate">Discussing: {activePageTitle}</span>
+ </div>
+ )}
+
+ {/* Messages */}
+ <div className="flex-1 overflow-y-auto p-3 space-y-3">
+ {messages.length === 0 ? (
+ <div className="text-center py-10 text-zinc-400 dark:text-zinc-500 text-xs">
+ <SparklesIcon className="w-6 h-6 mx-auto mb-2 text-indigo-400 opacity-60" />
+ <p>No messages yet.</p>
+ <p className="text-[11px] mt-1 text-zinc-400">Ask ChatGPT or tag a Dot to iterate on this page.</p>
+ </div>
+ ) : (
+ messages.map((m) => {
+ const isUser = m.sender_type === "user";
+ return (
+ <div
+ key={m.id}
+ className={`flex flex-col ${isUser ? "items-end" : "items-start"}`}
+ >
+ <span className="text-[10px] text-zinc-400 mb-0.5 px-1">{m.sender_name}</span>
+ <div
+ className={`max-w-[90%] rounded-xl px-3 py-2 text-xs leading-relaxed ${
+ isUser
+ ? "bg-zinc-900 dark:bg-zinc-100 text-white dark:text-zinc-900 font-medium"
+ : "bg-white dark:bg-zinc-800/90 text-zinc-800 dark:text-zinc-200 border border-zinc-200 dark:border-zinc-700/80 shadow-2xs"
+ }`}
+ >
+ {isUser ? m.content : <MarkdownRenderer content={m.content} />}
+ </div>
+ </div>
+ );
+ })
+ )}
+ </div>
+
+ {/* Input */}
+ <form onSubmit={handleSubmit} className="p-3 border-t border-zinc-200/80 dark:border-zinc-800/80">
+ <div className="relative">
+ <input
+ type="text"
+ value={inputText}
+ onChange={(e) => setInputText(e.target.value)}
+ placeholder="Type a message or prompt..."
+ className="w-full bg-white dark:bg-zinc-900 border border-zinc-300 dark:border-zinc-700 rounded-lg pl-3 pr-8 py-1.5 text-xs text-zinc-900 dark:text-zinc-100 placeholder-zinc-400 focus:outline-none focus:border-zinc-500"
+ />
+ <button
+ type="submit"
+ disabled={!inputText.trim()}
+ className="absolute right-1.5 top-1.5 text-zinc-400 hover:text-zinc-800 dark:hover:text-zinc-200 disabled:opacity-30"
+ >
+ <SendIcon className="w-3.5 h-3.5" />
+ </button>
+ </div>
+ </form>
+ </div>
+ );
+}
diff --git a/client/src/components/ChatGptSidebar.js b/client/src/components/ChatGptSidebar.js
new file mode 100644
index 0000000..23e1cd6
--- /dev/null
+++ b/client/src/components/ChatGptSidebar.js
@@ -0,0 +1,238 @@
+"use client";
+
+import React, { useState } from "react";
+import {
+ SearchIcon,
+ PlusIcon,
+ ChevronDownIcon,
+ CloseIcon,
+ TrashIcon,
+ PinIcon,
+ ChatIcon,
+} from "./Icons";
+import ThemeToggle from "./ThemeToggle";
+
+export default function ChatGptSidebar({
+ conversations = [],
+ activeConversationId = null,
+ onSelectConversation,
+ onNewChat,
+ onDeleteConversation,
+ onTogglePinConversation,
+}) {
+ const [searchOpen, setSearchOpen] = useState(false);
+ const [searchQuery, setSearchQuery] = useState("");
+
+ // Filter conversations by search query if any
+ const filtered = conversations.filter((c) =>
+ (c.title || "").toLowerCase().includes(searchQuery.toLowerCase().trim())
+ );
+
+ const pinnedConversations = filtered.filter((c) => c.pinned);
+ const unpinnedConversations = filtered.filter((c) => !c.pinned);
+
+ // Group unpinned conversations by timeframe like official ChatGPT
+ const categorizeConversations = (items) => {
+ const now = new Date();
+ const today = new Date(now.getFullYear(), now.getMonth(), now.getDate()).getTime();
+ const yesterday = today - 86400000;
+ const sevenDaysAgo = today - 7 * 86400000;
+ const thirtyDaysAgo = today - 30 * 86400000;
+
+ const groups = {
+ Today: [],
+ Yesterday: [],
+ "Previous 7 Days": [],
+ "Previous 30 Days": [],
+ Older: [],
+ };
+
+ items.forEach((c) => {
+ const time = c.updatedAt || c.createdAt || Date.now();
+ if (time >= today) {
+ groups["Today"].push(c);
+ } else if (time >= yesterday) {
+ groups["Yesterday"].push(c);
+ } else if (time >= sevenDaysAgo) {
+ groups["Previous 7 Days"].push(c);
+ } else if (time >= thirtyDaysAgo) {
+ groups["Previous 30 Days"].push(c);
+ } else {
+ groups["Older"].push(c);
+ }
+ });
+
+ return Object.entries(groups).filter(([_, list]) => list.length > 0);
+ };
+
+ const grouped = categorizeConversations(unpinnedConversations);
+
+ const renderChatItem = (conv) => {
+ const isActive = activeConversationId === conv.id;
+ return (
+ <div
+ key={conv.id}
+ onClick={() => onSelectConversation && onSelectConversation(conv.id)}
+ className={`group relative flex items-center justify-between px-2.5 py-1.5 rounded-lg text-left cursor-pointer transition-colors ${
+ isActive
+ ? "bg-zinc-200/90 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 font-medium"
+ : "text-zinc-600 dark:text-zinc-400 hover:bg-zinc-200/50 dark:hover:bg-zinc-800/50 hover:text-zinc-900 dark:hover:text-zinc-200"
+ }`}
+ >
+ <span className="truncate text-xs flex-1 pr-2">
+ {conv.title || "Untitled Chat"}
+ </span>
+
+ {/* Hover action icons: Pin & Delete */}
+ <div
+ className={`flex items-center gap-1 transition-opacity ${
+ isActive ? "opacity-100" : "opacity-0 group-hover:opacity-100"
+ }`}
+ onClick={(e) => e.stopPropagation()}
+ >
+ {onTogglePinConversation && (
+ <button
+ type="button"
+ onClick={(e) => onTogglePinConversation(conv.id, e)}
+ title={conv.pinned ? "Unpin chat" : "Pin chat"}
+ className={`p-1 rounded hover:bg-zinc-300/60 dark:hover:bg-zinc-700 transition-colors ${
+ conv.pinned
+ ? "text-indigo-600 dark:text-indigo-400"
+ : "text-zinc-400 hover:text-zinc-700 dark:hover:text-zinc-200"
+ }`}
+ >
+ <PinIcon className="w-3 h-3" />
+ </button>
+ )}
+
+ {onDeleteConversation && (
+ <button
+ type="button"
+ onClick={(e) => onDeleteConversation(conv.id, e)}
+ title="Delete chat"
+ className="p-1 rounded text-zinc-400 hover:text-red-500 hover:bg-zinc-300/60 dark:hover:bg-zinc-700 transition-colors"
+ >
+ <TrashIcon className="w-3 h-3" />
+ </button>
+ )}
+ </div>
+ </div>
+ );
+ };
+
+ return (
+ <aside className="w-60 bg-[#f7f7f8] dark:bg-[#18181b] border-r border-zinc-200/80 dark:border-zinc-800/80 flex flex-col h-screen select-none text-zinc-700 dark:text-zinc-300 text-xs transition-colors duration-150">
+ {/* Top Header: ChatGPT Λ‡ with Search toggle */}
+ <div className="p-3 pb-2 flex items-center justify-between">
+ <div
+ onClick={onNewChat}
+ className="flex items-center gap-1 cursor-pointer hover:text-zinc-900 dark:hover:text-white transition-colors"
+ >
+ <span className="font-semibold text-sm text-zinc-900 dark:text-zinc-100">
+ ChatGPT
+ </span>
+ <ChevronDownIcon className="w-3.5 h-3.5 text-zinc-400" />
+ </div>
+
+ <div className="flex items-center gap-1 text-zinc-400">
+ <button
+ onClick={() => {
+ setSearchOpen(!searchOpen);
+ if (searchOpen) setSearchQuery("");
+ }}
+ title="Search conversations"
+ className={`p-1 rounded hover:bg-zinc-200/60 dark:hover:bg-zinc-800 transition-colors ${
+ searchOpen
+ ? "text-zinc-900 dark:text-zinc-100 bg-zinc-200/60 dark:bg-zinc-800"
+ : "hover:text-zinc-700 dark:hover:text-zinc-200"
+ }`}
+ >
+ <SearchIcon className="w-3.5 h-3.5" />
+ </button>
+ </div>
+ </div>
+
+ {/* Quick search input */}
+ {searchOpen && (
+ <div className="px-3 pb-2 flex items-center gap-1.5">
+ <div className="relative flex-1">
+ <input
+ type="text"
+ placeholder="Search chat history..."
+ value={searchQuery}
+ onChange={(e) => setSearchQuery(e.target.value)}
+ className="w-full bg-white dark:bg-zinc-900 border border-zinc-300 dark:border-zinc-700 rounded-lg px-2.5 py-1 text-xs text-zinc-900 dark:text-zinc-100 placeholder-zinc-400 focus:outline-none focus:border-zinc-500"
+ autoFocus
+ />
+ {searchQuery && (
+ <button
+ onClick={() => setSearchQuery("")}
+ className="absolute right-2 top-1.5 text-zinc-400 hover:text-zinc-600 dark:hover:text-zinc-200"
+ >
+ <CloseIcon className="w-3 h-3" />
+ </button>
+ )}
+ </div>
+ </div>
+ )}
+
+ {/* + New chat button */}
+ <div className="px-3 py-1.5">
+ <button
+ onClick={onNewChat}
+ className="w-full flex items-center gap-2 px-3 py-2 rounded-xl bg-white dark:bg-zinc-800/90 border border-zinc-200 dark:border-zinc-700/80 hover:bg-zinc-50 dark:hover:bg-zinc-700 text-zinc-800 dark:text-zinc-200 font-medium transition-colors shadow-2xs"
+ >
+ <PlusIcon className="w-3.5 h-3.5 text-zinc-500" />
+ <span>New chat</span>
+ </button>
+ </div>
+
+ {/* Scrollable list of REAL conversation history */}
+ <div className="flex-1 overflow-y-auto px-3 py-2 space-y-4">
+ {/* Pinned section (only shown if there are pinned real conversations) */}
+ {pinnedConversations.length > 0 && (
+ <div>
+ <div className="text-[11px] font-medium text-zinc-400 px-2.5 mb-1 flex items-center gap-1.5">
+ <PinIcon className="w-3 h-3 text-zinc-400" />
+ <span>Pinned</span>
+ </div>
+ <div className="space-y-0.5">
+ {pinnedConversations.map(renderChatItem)}
+ </div>
+ </div>
+ )}
+
+ {/* Grouped Recent conversation history */}
+ {grouped.length > 0 ? (
+ grouped.map(([timeLabel, chatList]) => (
+ <div key={timeLabel}>
+ <div className="text-[11px] font-medium text-zinc-400 px-2.5 mb-1">
+ {timeLabel}
+ </div>
+ <div className="space-y-0.5">
+ {chatList.map(renderChatItem)}
+ </div>
+ </div>
+ ))
+ ) : pinnedConversations.length === 0 ? (
+ /* Empty state when user has no conversation history */
+ <div className="px-3 py-10 text-center select-none">
+ <ChatIcon className="w-5 h-5 mx-auto mb-2 text-zinc-400/60 dark:text-zinc-600" />
+ <p className="text-xs font-medium text-zinc-600 dark:text-zinc-400">
+ No conversation history
+ </p>
+ <p className="text-[11px] text-zinc-400 dark:text-zinc-500 mt-1 leading-relaxed">
+ Send a message to start a conversation. Your chat history will be saved here.
+ </p>
+ </div>
+ ) : null}
+ </div>
+
+ {/* Footer with ThemeToggle */}
+ <div className="p-3 border-t border-zinc-200/80 dark:border-zinc-800/80 flex items-center justify-between">
+ <span className="text-[11px] text-zinc-400 font-medium">Theme</span>
+ <ThemeToggle />
+ </div>
+ </aside>
+ );
+}
diff --git a/client/src/components/CustomDropdown.js b/client/src/components/CustomDropdown.js
new file mode 100644
index 0000000..ee31c98
--- /dev/null
+++ b/client/src/components/CustomDropdown.js
@@ -0,0 +1,116 @@
+"use client";
+
+import React, { useState, useRef, useEffect } from "react";
+import { LuChevronDown, LuCheck } from "react-icons/lu";
+
+export default function CustomDropdown({
+ value,
+ onChange,
+ options = [], // [{ label: "TypeScript", value: "typescript", icon: ... }]
+ placeholder = "Select...",
+ className = "",
+ buttonClassName = "",
+ menuClassName = "",
+ size = "md", // "sm" | "md"
+ searchable = false,
+ align = "left", // "left" | "right"
+}) {
+ const [open, setOpen] = useState(false);
+ const [search, setSearch] = useState("");
+ const dropdownRef = useRef(null);
+
+ const selectedOption =
+ options.find((opt) => opt.value === value) ||
+ (value ? { label: typeof value === "string" ? value.charAt(0).toUpperCase() + value.slice(1) : String(value), value } : options[0]);
+
+ useEffect(() => {
+ const handleOutsideClick = (e) => {
+ if (dropdownRef.current && !dropdownRef.current.contains(e.target)) {
+ setOpen(false);
+ }
+ };
+ document.addEventListener("pointerdown", handleOutsideClick);
+ return () => document.removeEventListener("pointerdown", handleOutsideClick);
+ }, []);
+
+ const filteredOptions = searchable && search
+ ? options.filter((opt) =>
+ opt.label.toLowerCase().includes(search.toLowerCase().trim())
+ )
+ : options;
+
+ return (
+ <div className={`relative inline-block text-left select-none ${className}`} ref={dropdownRef}>
+ <button
+ type="button"
+ onClick={() => setOpen(!open)}
+ className={`flex items-center justify-between gap-1.5 transition-colors cursor-pointer rounded-lg border text-xs font-medium ${
+ size === "sm" ? "px-2 py-1" : "px-3 py-1.5"
+ } ${buttonClassName || "bg-zinc-50 dark:bg-zinc-900 border-zinc-200 dark:border-zinc-700 text-zinc-800 dark:text-zinc-200 hover:bg-zinc-100 dark:hover:bg-zinc-800"}`}
+ >
+ <span className="truncate flex items-center gap-1.5">
+ {selectedOption?.icon && <span>{selectedOption.icon}</span>}
+ <span>{selectedOption?.label || placeholder}</span>
+ </span>
+ <LuChevronDown
+ size={12}
+ className={`shrink-0 transition-transform duration-150 opacity-60 ${
+ open ? "rotate-180" : ""
+ }`}
+ />
+ </button>
+
+ {open && (
+ <div
+ className={`absolute ${
+ align === "right" ? "right-0" : "left-0"
+ } top-full mt-1.5 min-w-[160px] max-h-60 overflow-y-auto z-50 rounded-xl bg-white dark:bg-[#1c1c1f] border border-zinc-200 dark:border-zinc-700/80 shadow-2xl p-1 animate-in fade-in zoom-in-95 duration-100 ${menuClassName}`}
+ >
+ {searchable && options.length > 5 && (
+ <div className="p-1 mb-1 border-b border-zinc-100 dark:border-zinc-800">
+ <input
+ type="text"
+ value={search}
+ onChange={(e) => setSearch(e.target.value)}
+ placeholder="Search..."
+ className="w-full px-2 py-1 text-xs bg-zinc-50 dark:bg-zinc-900 rounded-md border border-zinc-200 dark:border-zinc-700 outline-none text-zinc-800 dark:text-zinc-200 placeholder-zinc-400"
+ autoFocus
+ />
+ </div>
+ )}
+ {filteredOptions.length === 0 ? (
+ <div className="px-3 py-2 text-[11px] text-zinc-400 text-center">No matching options</div>
+ ) : (
+ filteredOptions.map((opt) => {
+ const isSelected = opt.value === value;
+ return (
+ <button
+ key={opt.value}
+ type="button"
+ onClick={() => {
+ onChange(opt.value);
+ setOpen(false);
+ setSearch("");
+ }}
+ className={`w-full flex items-center justify-between px-2.5 py-1.5 text-xs rounded-lg transition-colors cursor-pointer text-left ${
+ isSelected
+ ? "bg-zinc-100 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 font-medium"
+ : "text-zinc-600 dark:text-zinc-400 hover:bg-zinc-100 dark:hover:bg-zinc-800/60 hover:text-zinc-900 dark:hover:text-zinc-200"
+ }`}
+ >
+ <span className="truncate flex items-center gap-1.5">
+ {opt.icon && <span>{opt.icon}</span>}
+ <span>{opt.label}</span>
+ </span>
+ {isSelected && (
+ <LuCheck size={13} className="text-indigo-600 dark:text-indigo-400 shrink-0 ml-1.5" />
+ )}
+ </button>
+ );
+ })
+ )}
+ </div>
+ )}
+ </div>
+ );
+}
diff --git a/client/src/components/DotsManager.js b/client/src/components/DotsManager.js
new file mode 100644
index 0000000..64c9ce8
--- /dev/null
+++ b/client/src/components/DotsManager.js
@@ -0,0 +1,223 @@
+"use client";
+
+import React, { useState } from "react";
+import { BotIcon, SparklesIcon, CheckIcon, PlusIcon } from "./Icons";
+import CustomDropdown from "./CustomDropdown";
+
+export default function DotsManager({
+ agents = [],
+ pages = [],
+ onTriggerAgent,
+ activeSpaceName,
+}) {
+ const [selectedAgentId, setSelectedAgentId] = useState(agents[0]?.id || "");
+ const [selectedPageId, setSelectedPageId] = useState(pages[0]?.id || "");
+ const [taskPrompt, setTaskPrompt] = useState("");
+ const [isRunning, setIsRunning] = useState(false);
+ const [taskLogs, setTaskLogs] = useState([
+ {
+ id: "log-1",
+ agent: "Synthesizer Dot",
+ task: "Analyze competitive landscape and outline matrix on page",
+ status: "completed",
+ time: "10 mins ago",
+ },
+ {
+ id: "log-2",
+ agent: "Architect Dot",
+ task: "Audit multi-agent communication protocol schema",
+ status: "completed",
+ time: "25 mins ago",
+ },
+ ]);
+
+ const handleLaunchTask = async (e) => {
+ e.preventDefault();
+ if (!taskPrompt.trim()) return;
+
+ setIsRunning(true);
+ const agent = agents.find((a) => a.id === selectedAgentId) || agents[0];
+
+ const newLog = {
+ id: `log-${Date.now()}`,
+ agent: agent?.name || "Dot Agent",
+ task: taskPrompt,
+ status: "working",
+ time: "just now",
+ };
+ setTaskLogs([newLog, ...taskLogs]);
+
+ await onTriggerAgent(selectedAgentId, taskPrompt, selectedPageId || null);
+
+ setTimeout(() => {
+ setTaskLogs((prev) =>
+ prev.map((l) => (l.id === newLog.id ? { ...l, status: "completed" } : l))
+ );
+ setIsRunning(false);
+ setTaskPrompt("");
+ }, 2500);
+ };
+
+ return (
+ <div className="flex-1 overflow-y-auto p-8 bg-zinc-50 dark:bg-[#141416] transition-colors duration-200">
+ <div className="max-w-4xl mx-auto space-y-8">
+ {/* Header */}
+ <div>
+ <div className="flex items-center gap-2">
+ <span className="p-2 rounded-xl bg-indigo-100 dark:bg-indigo-600/20 text-indigo-700 dark:text-indigo-400 border border-indigo-200 dark:border-indigo-500/30">
+ <BotIcon className="w-5 h-5" />
+ </span>
+ <div>
+ <h2 className="text-base font-bold text-zinc-900 dark:text-zinc-100">Dot Autonomous Agents</h2>
+ <p className="text-xs text-zinc-500 dark:text-zinc-400">
+ AI agents embedded directly inside <span className="text-zinc-800 dark:text-zinc-300 font-medium">{activeSpaceName}</span> to conduct research, update pages, and orchestrate workflows.
+ </p>
+ </div>
+ </div>
+ </div>
+
+ {/* Agents Grid */}
+ <div className="grid grid-cols-1 md:grid-cols-2 gap-4">
+ {agents.map((agent) => (
+ <div
+ key={agent.id}
+ className="bg-white dark:bg-[#1c1c20] border border-zinc-200 dark:border-zinc-800 rounded-xl p-5 shadow-2xs hover:border-zinc-300 dark:hover:border-zinc-700 transition-colors"
+ >
+ <div className="flex items-start justify-between">
+ <div className="flex items-center gap-3">
+ <div className="text-2xl p-2 rounded-lg bg-zinc-100 dark:bg-zinc-800/80 border border-zinc-200 dark:border-zinc-700/60">
+ {agent.avatar === "agent-bolt" ? "⚑" : agent.avatar === "agent-pen" ? "✍️" : agent.avatar === "agent-ruler" ? "πŸ“" : "πŸ€–"}
+ </div>
+ <div>
+ <h3 className="text-sm font-semibold text-zinc-900 dark:text-zinc-100">{agent.name}</h3>
+ <p className="text-xs text-indigo-600 dark:text-indigo-400 font-medium">{agent.role}</p>
+ </div>
+ </div>
+
+ <span className="inline-flex items-center gap-1.5 px-2 py-0.5 rounded-full text-[10px] font-medium bg-emerald-100 dark:bg-emerald-500/10 text-emerald-800 dark:text-emerald-300 border border-emerald-200 dark:border-emerald-500/20">
+ <span className="w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse" />
+ {agent.status}
+ </span>
+ </div>
+
+ {/* Capabilities */}
+ <div className="mt-4 pt-3 border-t border-zinc-100 dark:border-zinc-800/80">
+ <div className="text-[11px] text-zinc-400 dark:text-zinc-500 mb-1.5 font-medium">Capabilities</div>
+ <div className="flex flex-wrap gap-1.5">
+ {(agent.capabilities || []).map((cap, idx) => (
+ <span
+ key={idx}
+ className="px-2 py-0.5 rounded bg-zinc-100 dark:bg-zinc-900 border border-zinc-200 dark:border-zinc-800 text-[10px] text-zinc-600 dark:text-zinc-400"
+ >
+ {cap}
+ </span>
+ ))}
+ </div>
+ </div>
+ </div>
+ ))}
+ </div>
+
+ {/* Launch Autonomous Directive Form */}
+ <div className="bg-white dark:bg-[#1a1a1f] border border-zinc-200 dark:border-zinc-800 rounded-xl p-6 shadow-2xs">
+ <h3 className="text-sm font-semibold text-zinc-900 dark:text-zinc-100 mb-1 flex items-center gap-2">
+ <SparklesIcon className="w-4 h-4 text-indigo-600 dark:text-indigo-400" />
+ <span>Dispatch Task to a Dot</span>
+ </h3>
+ <p className="text-xs text-zinc-500 dark:text-zinc-400 mb-4">
+ Instruct an agent to autonomously research, summarize, synthesize, or write directly into any living page in this space.
+ </p>
+
+ <form onSubmit={handleLaunchTask} className="space-y-4">
+ <div className="grid grid-cols-1 md:grid-cols-2 gap-4">
+ <div>
+ <label className="block text-xs font-medium text-zinc-700 dark:text-zinc-300 mb-1">Select Dot Agent</label>
+ <CustomDropdown
+ value={selectedAgentId}
+ onChange={setSelectedAgentId}
+ options={agents.map((a) => ({ label: `${a.name} (${a.role})`, value: a.id }))}
+ className="w-full"
+ buttonClassName="w-full justify-between"
+ searchable={true}
+ />
+ </div>
+
+ <div>
+ <label className="block text-xs font-medium text-zinc-700 dark:text-zinc-300 mb-1">Target Living Page (Optional)</label>
+ <CustomDropdown
+ value={selectedPageId}
+ onChange={setSelectedPageId}
+ options={[
+ { label: "None (Space Level Only)", value: "" },
+ ...pages.map((p) => ({ label: `${p.icon || "πŸ“„"} ${p.title}`, value: p.id })),
+ ]}
+ className="w-full"
+ buttonClassName="w-full justify-between"
+ searchable={true}
+ />
+ </div>
+ </div>
+
+ <div>
+ <label className="block text-xs font-medium text-zinc-700 dark:text-zinc-300 mb-1">Autonomous Directive / Instruction</label>
+ <textarea
+ rows={3}
+ required
+ value={taskPrompt}
+ onChange={(e) => setTaskPrompt(e.target.value)}
+ placeholder="e.g. Conduct a SWOT analysis of our proposed roadmap and append recommendations to the launch page."
+ className="w-full bg-zinc-50 dark:bg-zinc-900 border border-zinc-300 dark:border-zinc-700 rounded-lg px-3 py-2 text-xs text-zinc-800 dark:text-zinc-200 placeholder-zinc-400 dark:placeholder-zinc-500 focus:outline-none focus:border-indigo-500 leading-relaxed"
+ />
+ </div>
+
+ <div className="flex justify-end">
+ <button
+ type="submit"
+ disabled={isRunning || !taskPrompt.trim()}
+ className="flex items-center gap-2 bg-indigo-600 hover:bg-indigo-500 disabled:opacity-50 text-white px-4 py-2 rounded-lg text-xs font-medium transition-colors shadow-2xs"
+ >
+ <SparklesIcon className="w-4 h-4" />
+ <span>{isRunning ? "Dot is Working..." : "Dispatch Task"}</span>
+ </button>
+ </div>
+ </form>
+ </div>
+
+ {/* Task Execution Stream / History */}
+ <div>
+ <h3 className="text-xs font-semibold uppercase tracking-wider text-zinc-500 mb-3">
+ Recent Dot Activity & Directives
+ </h3>
+ <div className="space-y-2">
+ {taskLogs.map((log) => (
+ <div
+ key={log.id}
+ className="bg-white dark:bg-[#18181c] border border-zinc-200 dark:border-zinc-800 rounded-lg p-3.5 flex items-center justify-between text-xs shadow-2xs"
+ >
+ <div className="flex items-center gap-3">
+ <span className="w-2 h-2 rounded-full bg-indigo-500" />
+ <div>
+ <div className="font-medium text-zinc-800 dark:text-zinc-200">
+ <span className="text-indigo-600 dark:text-indigo-400 font-semibold">{log.agent}</span>: {log.task}
+ </div>
+ <div className="text-[10px] text-zinc-400 dark:text-zinc-500">{log.time}</div>
+ </div>
+ </div>
+
+ <span
+ className={`px-2 py-0.5 rounded text-[10px] font-medium capitalize ${
+ log.status === "completed"
+ ? "bg-emerald-100 dark:bg-emerald-500/10 text-emerald-800 dark:text-emerald-300 border border-emerald-200 dark:border-emerald-500/20"
+ : "bg-amber-100 dark:bg-amber-500/10 text-amber-800 dark:text-amber-300 border border-amber-200 dark:border-amber-500/20 animate-pulse"
+ }`}
+ >
+ {log.status}
+ </span>
+ </div>
+ ))}
+ </div>
+ </div>
+ </div>
+ </div>
+ );
+}
diff --git a/client/src/components/HomeWorkView.js b/client/src/components/HomeWorkView.js
new file mode 100644
index 0000000..69d5f1d
--- /dev/null
+++ b/client/src/components/HomeWorkView.js
@@ -0,0 +1,399 @@
+"use client";
+
+import React, { useState, useRef, useEffect } from "react";
+import {
+ PlusIcon,
+ WindowIcon,
+ CloseIcon,
+ PageIcon,
+ ArrowUpIcon,
+ ChevronDownIcon,
+ CopyIcon,
+ CheckIcon,
+ ThumbsDownIcon,
+ VolumeIcon,
+ RotateIcon,
+ MoreIcon,
+ ShareIcon,
+} from "./Icons";
+import MarkdownRenderer from "./MarkdownRenderer";
+
+export default function HomeWorkView({
+ activeProject = "General",
+ onSelectProject,
+ selectedModel = "gpt-6-1-sol",
+ onSelectModel,
+ onSubmitPrompt,
+ conversation = [],
+ isLoading = false,
+ onOpenCanvas,
+}) {
+ const [promptText, setPromptText] = useState("");
+ const [showModelMenu, setShowModelMenu] = useState(false);
+ const [attachedFile, setAttachedFile] = useState(null);
+ const [copiedIdx, setCopiedIdx] = useState(null);
+
+ const fileInputRef = useRef(null);
+ const textareaRef = useRef(null);
+ const messagesEndRef = useRef(null);
+
+ const models = [
+ {
+ id: "gpt-6-1-sol",
+ name: "GPT-6.1 Sol Light",
+ tag: "Fast & Capable",
+ icon: "⚑",
+ },
+ {
+ id: "gpt-6-astra",
+ name: "GPT-6 Astra",
+ tag: "Deep Reasoning",
+ icon: "🧠",
+ },
+ { id: "gpt-6-sol", name: "GPT-6 Sol", tag: "Balanced", icon: "✨" },
+ { id: "gpt-6-luna", name: "GPT-6 Luna", tag: "Ultra Light", icon: "πŸŒ™" },
+ ];
+
+ const currentModelObj =
+ models.find((m) => m.id === selectedModel) || models[0];
+
+ // Auto-scroll to bottom of chat when new message or response appears
+ useEffect(() => {
+ if (conversation.length > 0) {
+ messagesEndRef.current?.scrollIntoView({ behavior: "smooth" });
+ }
+ }, [conversation, isLoading]);
+
+ // Expand textarea smoothly based on scrollHeight
+ useEffect(() => {
+ if (textareaRef.current) {
+ textareaRef.current.style.height = "auto";
+ const nextHeight = Math.min(textareaRef.current.scrollHeight, 180);
+ textareaRef.current.style.height = `${Math.max(nextHeight, 28)}px`;
+ }
+ }, [promptText]);
+
+ const handleFileUpload = (e) => {
+ const file = e.target.files?.[0];
+ if (!file) return;
+
+ const reader = new FileReader();
+ reader.onload = (event) => {
+ setAttachedFile({
+ name: file.name,
+ size: (file.size / 1024).toFixed(1) + " KB",
+ content: event.target.result,
+ type: file.type,
+ });
+ };
+ reader.readAsText(file);
+ e.target.value = "";
+ };
+
+ const handleSend = (e) => {
+ if (e) e.preventDefault();
+ if ((!promptText.trim() && !attachedFile) || isLoading) return;
+
+ let finalPrompt = promptText.trim();
+ if (attachedFile) {
+ finalPrompt = finalPrompt
+ ? `[Attached File: ${attachedFile.name}]\n${attachedFile.content}\n\n${finalPrompt}`
+ : `[Attached File: ${attachedFile.name}]\nPlease analyze this attached document:\n${attachedFile.content}`;
+ }
+
+ onSubmitPrompt(finalPrompt);
+ setPromptText("");
+ setAttachedFile(null);
+ if (textareaRef.current) {
+ textareaRef.current.style.height = "28px";
+ }
+ };
+
+ const copyToClipboard = (text, idx) => {
+ navigator.clipboard.writeText(text);
+ setCopiedIdx(idx);
+ setTimeout(() => setCopiedIdx(null), 2000);
+ };
+
+ // Reusable Pill / Capsule Input Box complying with THEME_PLAN.md
+ const renderInputBar = () => {
+ const isMultiline =
+ (promptText.match(/\n/g) || []).length > 0 || promptText.length > 80;
+
+ return (
+ <div className="w-full max-w-3xl mx-auto relative select-none">
+ {/* Models Switcher Popover Menu */}
+ {showModelMenu && (
+ <div className="absolute right-12 bottom-full mb-2 w-64 bg-white dark:bg-[#1f1f23] text-zinc-900 dark:text-zinc-200 border border-zinc-200 dark:border-zinc-700/80 rounded-xl shadow-xl p-1.5 z-40 backdrop-blur-md">
+ <div className="text-[10px] font-bold text-zinc-500 dark:text-zinc-400 px-2.5 py-1.5 flex items-center justify-between border-b border-zinc-200 dark:border-zinc-700/60 mb-1">
+ <span>ChatGPT 6 Series (MuAPI)</span>
+ </div>
+ <div className="space-y-0.5">
+ {models.map((m) => {
+ const isSelected = selectedModel === m.id;
+ return (
+ <button
+ key={m.id}
+ type="button"
+ onClick={() => {
+ onSelectModel(m.id);
+ setShowModelMenu(false);
+ }}
+ className={`w-full text-left px-2.5 py-2 rounded-xl text-xs flex items-center justify-between transition-colors cursor-pointer ${
+ isSelected
+ ? "bg-zinc-100 dark:bg-zinc-800 text-zinc-900 dark:text-white font-medium shadow-2xs"
+ : "text-zinc-700 dark:text-zinc-300 hover:bg-zinc-100 dark:hover:bg-zinc-800/60 hover:text-zinc-900 dark:hover:text-white"
+ }`}
+ >
+ <div className="flex items-center gap-2">
+ <span className="text-sm">{m.icon}</span>
+ <div>
+ <div className="leading-snug">{m.name}</div>
+ <div className="text-[10px] text-zinc-400">{m.tag}</div>
+ </div>
+ </div>
+ {isSelected && (
+ <CheckIcon className="w-3.5 h-3.5 text-emerald-500 dark:text-emerald-400 shrink-0" />
+ )}
+ </button>
+ );
+ })}
+ </div>
+ </div>
+ )}
+
+ {/* Outer Capsule / Pill conforming to THEME_PLAN */}
+ <div
+ className={`flex items-end gap-2 bg-[#f4f4f5] dark:bg-[#212121] border border-zinc-200 dark:border-zinc-700/70 p-2 px-3 shadow-sm hover:border-zinc-300 dark:hover:border-zinc-600 transition-all ${
+ isMultiline || attachedFile ? "rounded-3xl" : "rounded-full"
+ }`}
+ >
+ {/* Left: Upload + Button */}
+ <button
+ type="button"
+ onClick={() => fileInputRef.current?.click()}
+ title="Attach file or image"
+ className="w-8 h-8 rounded-full text-zinc-500 dark:text-zinc-400 hover:text-zinc-900 dark:hover:text-zinc-100 hover:bg-zinc-200/80 dark:hover:bg-zinc-700/50 flex items-center justify-center transition-colors shrink-0 mb-0.5 cursor-pointer"
+ >
+ <PlusIcon className="w-4 h-4" />
+ </button>
+
+ {/* Middle: Attached file chip + Expandable Textarea */}
+ <div className="flex-1 flex flex-col min-w-0">
+ {attachedFile && (
+ <div className="flex items-center gap-1.5 px-2 py-0.5 mb-1 bg-zinc-200 dark:bg-zinc-800 rounded-lg text-xs w-fit text-zinc-800 dark:text-zinc-200 border border-zinc-300 dark:border-zinc-700">
+ <PageIcon className="w-3 h-3 text-indigo-500" />
+ <span className="truncate max-w-xs text-[11px] font-medium">
+ {attachedFile.name}
+ </span>
+ <span className="text-[10px] text-zinc-500 dark:text-zinc-400">
+ ({attachedFile.size})
+ </span>
+ <button
+ type="button"
+ onClick={() => setAttachedFile(null)}
+ className="text-zinc-500 hover:text-zinc-900 dark:text-zinc-400 dark:hover:text-white ml-0.5"
+ >
+ <CloseIcon className="w-3 h-3" />
+ </button>
+ </div>
+ )}
+
+ <textarea
+ ref={textareaRef}
+ rows={1}
+ value={promptText}
+ onChange={(e) => setPromptText(e.target.value)}
+ onKeyDown={(e) => {
+ if (e.key === "Enter" && !e.shiftKey) {
+ e.preventDefault();
+ handleSend();
+ }
+ }}
+ placeholder="Ask ChatGPT"
+ className="w-full bg-transparent text-sm text-zinc-900 dark:text-zinc-100 placeholder-zinc-500 dark:placeholder-zinc-400 resize-none focus:outline-none leading-relaxed py-1.5 px-1 max-h-48 overflow-y-auto"
+ />
+ </div>
+
+ {/* Right: Models button & Send Arrow button */}
+ <div className="flex items-center gap-1.5 shrink-0 mb-0.5">
+ {/* Models Dropdown Button */}
+ <button
+ type="button"
+ onClick={() => setShowModelMenu(!showModelMenu)}
+ title={`Switch Model: ${currentModelObj.name}`}
+ className={`inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-medium transition-colors border cursor-pointer ${
+ showModelMenu
+ ? "bg-zinc-200 dark:bg-zinc-800 border-zinc-300 dark:border-zinc-600 text-zinc-900 dark:text-white"
+ : "bg-transparent hover:bg-zinc-200/80 dark:hover:bg-zinc-800/80 border-transparent hover:border-zinc-300 dark:hover:border-zinc-700 text-zinc-700 dark:text-zinc-300"
+ }`}
+ >
+ <span>{currentModelObj.icon}</span>
+ <span className="truncate max-w-[130px]">
+ {currentModelObj.name}
+ </span>
+ <ChevronDownIcon className="w-3 h-3 text-zinc-400 ml-0.5" />
+ </button>
+
+ {/* Send Arrow Button */}
+ <button
+ type="button"
+ onClick={handleSend}
+ disabled={isLoading || (!promptText.trim() && !attachedFile)}
+ title="Send message"
+ className="w-8 h-8 rounded-full bg-zinc-900 hover:bg-zinc-800 text-white dark:bg-white dark:hover:bg-zinc-200 dark:text-zinc-900 flex items-center justify-center transition-transform hover:scale-105 shadow-sm shrink-0 cursor-pointer disabled:opacity-30 disabled:hover:scale-100"
+ >
+ <ArrowUpIcon className="w-4 h-4 stroke-[2.5]" />
+ </button>
+ </div>
+ </div>
+ </div>
+ );
+ };
+
+ return (
+ <div className="flex-1 flex flex-col h-full bg-[#fbfbfa] dark:bg-[#141416] text-zinc-900 dark:text-zinc-100 overflow-hidden transition-colors duration-150 select-none">
+ {/* Hidden File Input for the upload + button */}
+ <input
+ type="file"
+ ref={fileInputRef}
+ onChange={handleFileUpload}
+ className="hidden"
+ accept=".txt,.md,.json,.js,.py,.csv,.html,.css,.doc,.pdf"
+ />
+
+ {/* 1. Chat Conversation Active Mode */}
+ {conversation.length > 0 ? (
+ <>
+ {/* Scrollable messages area (Only this scrolls) */}
+ <div className="flex-1 overflow-y-auto p-4 sm:p-6 space-y-6">
+ <div className="max-w-3xl mx-auto w-full space-y-6">
+ {conversation.map((msg, idx) => {
+ const isUser = msg.role === "user";
+ return (
+ <div
+ key={idx}
+ className={`flex flex-col ${isUser ? "items-end" : "items-start"}`}
+ >
+ {isUser ? (
+ /* User message styled for both Light and Dark mode */
+ <div className="bg-[#f4f4f5] dark:bg-[#1a402d] text-zinc-900 dark:text-zinc-100 border border-zinc-200/80 dark:border-transparent px-4 py-2.5 rounded-3xl text-sm leading-relaxed max-w-xl shadow-xs select-text">
+ <p className="whitespace-pre-wrap">{msg.content}</p>
+ </div>
+ ) : (
+ /* Assistant message with markdown and action bar */
+ <div className="w-full max-w-3xl space-y-2 select-text">
+ <div className="text-zinc-900 dark:text-zinc-100 leading-relaxed text-sm">
+ <MarkdownRenderer content={msg.content} />
+ </div>
+
+ {/* Action buttons under assistant response */}
+ <div className="flex items-center justify-between pt-1 select-none text-zinc-400 dark:text-zinc-500 text-xs">
+ <div className="flex items-center gap-1">
+ <button
+ type="button"
+ onClick={() => copyToClipboard(msg.content, idx)}
+ title="Copy response"
+ className="p-1.5 rounded-md hover:bg-zinc-200/60 dark:hover:bg-zinc-800 hover:text-zinc-800 dark:hover:text-zinc-200 transition-colors cursor-pointer"
+ >
+ {copiedIdx === idx ? (
+ <CheckIcon className="w-3.5 h-3.5 text-emerald-500" />
+ ) : (
+ <CopyIcon className="w-3.5 h-3.5" />
+ )}
+ </button>
+
+ <button
+ type="button"
+ title="Bad response"
+ className="p-1.5 rounded-md hover:bg-zinc-200/60 dark:hover:bg-zinc-800 hover:text-zinc-800 dark:hover:text-zinc-200 transition-colors cursor-pointer"
+ >
+ <ThumbsDownIcon className="w-3.5 h-3.5" />
+ </button>
+
+ <button
+ type="button"
+ title="Share"
+ className="p-1.5 rounded-md hover:bg-zinc-200/60 dark:hover:bg-zinc-800 hover:text-zinc-800 dark:hover:text-zinc-200 transition-colors cursor-pointer"
+ >
+ <ShareIcon className="w-3.5 h-3.5" />
+ </button>
+
+ <button
+ type="button"
+ title="Read aloud"
+ className="p-1.5 rounded-md hover:bg-zinc-200/60 dark:hover:bg-zinc-800 hover:text-zinc-800 dark:hover:text-zinc-200 transition-colors cursor-pointer"
+ >
+ <VolumeIcon className="w-3.5 h-3.5" />
+ </button>
+
+ <button
+ type="button"
+ onClick={() =>
+ onSubmitPrompt(
+ conversation[idx - 1]?.content || "Retry",
+ )
+ }
+ title="Regenerate"
+ className="p-1.5 rounded-md hover:bg-zinc-200/60 dark:hover:bg-zinc-800 hover:text-zinc-800 dark:hover:text-zinc-200 transition-colors cursor-pointer"
+ >
+ <RotateIcon className="w-3.5 h-3.5" />
+ </button>
+
+ <button
+ type="button"
+ title="More options"
+ className="p-1.5 rounded-md hover:bg-zinc-200/60 dark:hover:bg-zinc-800 hover:text-zinc-800 dark:hover:text-zinc-200 transition-colors cursor-pointer"
+ >
+ <MoreIcon className="w-3.5 h-3.5" />
+ </button>
+ </div>
+
+ {onOpenCanvas && (
+ <button
+ type="button"
+ onClick={() => onOpenCanvas(msg.content)}
+ className="text-[11px] text-indigo-600 dark:text-indigo-400 hover:underline flex items-center gap-1 font-medium px-2 py-1 rounded hover:bg-indigo-50 dark:hover:bg-zinc-800/60 cursor-pointer"
+ >
+ <WindowIcon className="w-3 h-3" />
+ <span>Open in Canvas / Page</span>
+ </button>
+ )}
+ </div>
+ </div>
+ )}
+ </div>
+ );
+ })}
+
+ {isLoading && (
+ <div className="flex items-center gap-2 text-zinc-500 dark:text-zinc-400 text-xs py-2">
+ <span className="w-2 h-2 rounded-full bg-emerald-500 animate-ping" />
+ <span>Thinking ({currentModelObj.name})...</span>
+ </div>
+ )}
+
+ {/* Anchor for auto-scroll */}
+ <div ref={messagesEndRef} />
+ </div>
+ </div>
+
+ {/* Sticky Bottom Bar (Always pinned at bottom, never overflows) */}
+ <div className="shrink-0 p-3 sm:p-4 bg-transparent border-t border-transparent">
+ {renderInputBar()}
+ </div>
+ </>
+ ) : (
+ /* 2. Initial Centered "What should we work on?" view */
+ <div className="flex-1 flex flex-col items-center justify-center px-4 -mt-12">
+ <h1 className="text-3xl font-semibold tracking-tight text-zinc-900 dark:text-zinc-100 mb-8 text-center">
+ What should we work on?
+ </h1>
+
+ {/* Capsule Input Field */}
+ {renderInputBar()}
+ </div>
+ )}
+ </div>
+ );
+}
diff --git a/client/src/components/IconRail.js b/client/src/components/IconRail.js
new file mode 100644
index 0000000..e17f531
--- /dev/null
+++ b/client/src/components/IconRail.js
@@ -0,0 +1,71 @@
+"use client";
+
+import React from "react";
+import {
+ HomeIcon,
+ LayersIcon,
+ ClockIcon,
+ AtSignIcon,
+ MoreIcon,
+ GridIcon,
+ FolderIcon,
+} from "./Icons";
+import ThemeToggle from "./ThemeToggle";
+
+export default function IconRail({ activeRailTab = "spaces", onSelectRailTab }) {
+ const topNav = [
+ { id: "home", icon: HomeIcon, label: "Home" },
+ { id: "spaces", icon: LayersIcon, label: "Spaces" },
+ { id: "history", icon: ClockIcon, label: "History" },
+ { id: "mentions", icon: AtSignIcon, label: "Mentions" },
+ { id: "more", icon: MoreIcon, label: "More" },
+ ];
+
+ return (
+ <div className="w-12 bg-[#f9f9f9] dark:bg-[#141416] border-r border-zinc-200/80 dark:border-zinc-800/80 flex flex-col items-center justify-between py-3 select-none z-10 transition-colors duration-150">
+ {/* Top Icons */}
+ <div className="flex flex-col items-center gap-2">
+ {topNav.map((item) => {
+ const Icon = item.icon;
+ const isActive = activeRailTab === item.id;
+ return (
+ <button
+ key={item.id}
+ onClick={() => onSelectRailTab && onSelectRailTab(item.id)}
+ title={item.label}
+ className={`w-8 h-8 rounded-lg flex items-center justify-center transition-all ${
+ isActive
+ ? "bg-zinc-200 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 shadow-2xs"
+ : "text-zinc-400 hover:text-zinc-700 dark:hover:text-zinc-200 hover:bg-zinc-200/60 dark:hover:bg-zinc-800/50"
+ }`}
+ >
+ <Icon className="w-4 h-4" />
+ </button>
+ );
+ })}
+ </div>
+
+ {/* Bottom Icons & Profile */}
+ <div className="flex flex-col items-center gap-2">
+ <button
+ title="Apps"
+ className="w-8 h-8 rounded-lg flex items-center justify-center text-zinc-400 hover:text-zinc-700 dark:hover:text-zinc-200 hover:bg-zinc-200/60 dark:hover:bg-zinc-800/50 transition-colors"
+ >
+ <GridIcon className="w-4 h-4" />
+ </button>
+
+ <button
+ title="Library"
+ className="w-8 h-8 rounded-lg flex items-center justify-center text-zinc-400 hover:text-zinc-700 dark:hover:text-zinc-200 hover:bg-zinc-200/60 dark:hover:bg-zinc-800/50 transition-colors"
+ >
+ <FolderIcon className="w-4 h-4" />
+ </button>
+
+ {/* User Avatar */}
+ <div className="w-7 h-7 rounded-full bg-gradient-to-tr from-zinc-700 to-zinc-900 dark:from-zinc-600 dark:to-zinc-800 text-white flex items-center justify-center text-[11px] font-semibold shadow-2xs mt-1">
+ J
+ </div>
+ </div>
+ </div>
+ );
+}
diff --git a/client/src/components/Icons.js b/client/src/components/Icons.js
new file mode 100644
index 0000000..b410bc2
--- /dev/null
+++ b/client/src/components/Icons.js
@@ -0,0 +1,110 @@
+import React from "react";
+import {
+ LuHouse,
+ LuLayers,
+ LuClock,
+ LuAtSign,
+ LuEllipsis,
+ LuLayoutGrid,
+ LuBell,
+ LuSearch,
+ LuFilePlus,
+ LuFileText,
+ LuGlobe,
+ LuImage,
+ LuHardDrive,
+ LuChevronDown,
+ LuChevronRight,
+ LuX,
+ LuPlus,
+ LuMessageSquare,
+ LuSparkles,
+ LuShare2,
+ LuGripVertical,
+ LuSquare,
+ LuSquareCheck,
+ LuHeading,
+ LuColumns2,
+ LuMaximize2,
+ LuSun,
+ LuMoon,
+ LuMonitor,
+ LuBot,
+ LuMic,
+ LuCheck,
+ LuTrash2,
+ LuFolder,
+ LuDatabase,
+ LuSend,
+ LuPin,
+ LuArrowUp,
+ LuBrain,
+ LuCopy,
+ LuThumbsDown,
+ LuVolume2,
+ LuRotateCw,
+ LuList,
+ LuArrowUpRight,
+ LuArrowLeft,
+ LuDownload,
+ LuCode,
+ LuListOrdered,
+ LuMinus,
+ LuQuote,
+ LuTable,
+} from "react-icons/lu";
+
+export {
+ LuHouse as HomeIcon,
+ LuLayers as LayersIcon,
+ LuClock as ClockIcon,
+ LuAtSign as AtSignIcon,
+ LuEllipsis as MoreIcon,
+ LuLayoutGrid as GridIcon,
+ LuBell as BellIcon,
+ LuSearch as SearchIcon,
+ LuFilePlus as NewPageIcon,
+ LuFileText as PageIcon,
+ LuGlobe as GlobeIcon,
+ LuImage as ImageIcon,
+ LuHardDrive as DriveIcon,
+ LuChevronDown as ChevronDownIcon,
+ LuChevronRight as ChevronRightIcon,
+ LuX as CloseIcon,
+ LuPlus as PlusIcon,
+ LuMessageSquare as ChatIcon,
+ LuSparkles as SparklesIcon,
+ LuShare2 as ShareIcon,
+ LuGripVertical as DragIcon,
+ LuSquare as CheckboxEmptyIcon,
+ LuSquareCheck as CheckboxCheckedIcon,
+ LuHeading as HeadingIcon,
+ LuColumns2 as ColumnsIcon,
+ LuMaximize2 as WindowIcon,
+ LuSun as SunIcon,
+ LuMoon as MoonIcon,
+ LuMonitor as MonitorIcon,
+ LuBot as BotIcon,
+ LuMic as MicIcon,
+ LuCheck as CheckIcon,
+ LuTrash2 as TrashIcon,
+ LuFolder as FolderIcon,
+ LuDatabase as DatabaseIcon,
+ LuSend as SendIcon,
+ LuPin as PinIcon,
+ LuArrowUp as ArrowUpIcon,
+ LuBrain as BrainIcon,
+ LuCopy as CopyIcon,
+ LuThumbsDown as ThumbsDownIcon,
+ LuVolume2 as VolumeIcon,
+ LuRotateCw as RotateIcon,
+ LuList as ListIcon,
+ LuArrowUpRight as ArrowUpRightIcon,
+ LuArrowLeft as ArrowLeftIcon,
+ LuDownload as DownloadIcon,
+ LuCode as CodeIcon,
+ LuListOrdered as ListOrderedIcon,
+ LuMinus as MinusIcon,
+ LuQuote as QuoteIcon,
+ LuTable as TableIcon,
+};
diff --git a/client/src/components/MarkdownRenderer.js b/client/src/components/MarkdownRenderer.js
new file mode 100644
index 0000000..1d42250
--- /dev/null
+++ b/client/src/components/MarkdownRenderer.js
@@ -0,0 +1,152 @@
+"use client";
+
+import React, { useState } from "react";
+import ReactMarkdown from "react-markdown";
+import remarkGfm from "remark-gfm";
+import { LuCopy, LuCheck } from "react-icons/lu";
+
+function MarkdownCodeBlock({ className, children }) {
+ const [copied, setCopied] = useState(false);
+ const match = /language-(\w+)/.exec(className || "");
+ const lang = match ? match[1] : "";
+ const codeText = typeof children === "string" ? children : (Array.isArray(children) ? children.join("") : String(children || ""));
+
+ const handleCopy = () => {
+ try {
+ navigator.clipboard.writeText(codeText.replace(/\n$/, ""));
+ setCopied(true);
+ setTimeout(() => setCopied(false), 1500);
+ } catch (e) {
+ console.warn("Copy failed:", e);
+ }
+ };
+
+ return (
+ <div className="my-4 rounded-xl overflow-hidden border border-zinc-800 bg-[#16161a] text-zinc-100 shadow-md">
+ <div className="flex items-center justify-between px-3 py-1.5 bg-[#1f1f24] border-b border-zinc-800 text-xs select-none">
+ <span className="text-[11px] font-mono text-zinc-400 font-medium tracking-wide uppercase">
+ {lang || "code"}
+ </span>
+ <button
+ type="button"
+ onClick={handleCopy}
+ className="flex items-center gap-1.5 px-2.5 py-0.5 rounded text-[11px] font-medium text-zinc-400 hover:text-white hover:bg-zinc-800 transition-colors cursor-pointer"
+ title="Copy code to clipboard"
+ >
+ {copied ? (
+ <>
+ <LuCheck size={12} className="text-emerald-400" />
+ <span className="text-emerald-400 font-semibold">Copied!</span>
+ </>
+ ) : (
+ <>
+ <LuCopy size={12} />
+ <span>Copy</span>
+ </>
+ )}
+ </button>
+ </div>
+ <pre className="!p-4 !m-0 !bg-transparent !border-0 overflow-x-auto text-[13px] font-mono leading-relaxed text-zinc-200">
+ <code>{children}</code>
+ </pre>
+ </div>
+ );
+}
+
+export default function MarkdownRenderer({ content = "" }) {
+ return (
+ <div className="markdown-content text-sm leading-relaxed text-zinc-800 dark:text-zinc-200 space-y-3">
+ <ReactMarkdown
+ remarkPlugins={[remarkGfm]}
+ components={{
+ h1: ({ node, ...props }) => (
+ <h1
+ className="text-lg font-bold tracking-tight text-zinc-900 dark:text-zinc-100 mt-4 mb-2 first:mt-0"
+ {...props}
+ />
+ ),
+ h2: ({ node, ...props }) => (
+ <h2
+ className="text-base font-semibold tracking-tight text-zinc-900 dark:text-zinc-100 mt-3.5 mb-1.5 first:mt-0"
+ {...props}
+ />
+ ),
+ h3: ({ node, ...props }) => (
+ <h3
+ className="text-sm font-semibold text-zinc-900 dark:text-zinc-100 mt-3 mb-1 first:mt-0"
+ {...props}
+ />
+ ),
+ p: ({ node, ...props }) => (
+ <p className="my-1.5 leading-relaxed text-zinc-800 dark:text-zinc-200" {...props} />
+ ),
+ ul: ({ node, ...props }) => (
+ <ul className="list-disc pl-5 my-2 space-y-1 text-zinc-800 dark:text-zinc-200" {...props} />
+ ),
+ ol: ({ node, ...props }) => (
+ <ol className="list-decimal pl-5 my-2 space-y-1 text-zinc-800 dark:text-zinc-200" {...props} />
+ ),
+ li: ({ node, ...props }) => (
+ <li className="leading-relaxed pl-0.5" {...props} />
+ ),
+ strong: ({ node, ...props }) => (
+ <strong className="font-semibold text-zinc-900 dark:text-zinc-100" {...props} />
+ ),
+ em: ({ node, ...props }) => (
+ <em className="italic text-zinc-800 dark:text-zinc-200" {...props} />
+ ),
+ hr: ({ node, ...props }) => (
+ <hr className="my-4 border-zinc-200 dark:border-zinc-800" {...props} />
+ ),
+ blockquote: ({ node, ...props }) => (
+ <blockquote
+ className="border-l-2 border-indigo-500 pl-3 my-2 italic text-zinc-600 dark:text-zinc-400"
+ {...props}
+ />
+ ),
+ code: ({ node, inline, className, children, ...props }) => {
+ const isInline = !className && typeof children === "string" && !children.includes("\n");
+ if (isInline) {
+ return (
+ <code
+ className="px-1.5 py-0.5 rounded-md bg-zinc-100 dark:bg-zinc-800 text-indigo-600 dark:text-indigo-400 text-xs font-medium font-mono"
+ {...props}
+ >
+ {children}
+ </code>
+ );
+ }
+ return <MarkdownCodeBlock className={className}>{children}</MarkdownCodeBlock>;
+ },
+ table: ({ node, ...props }) => (
+ <div className="my-4 overflow-x-auto rounded-xl border border-zinc-300 dark:border-zinc-700/80 bg-white dark:bg-[#141418] shadow-xs">
+ <table className="min-w-full text-xs border-collapse border-spacing-0" {...props} />
+ </div>
+ ),
+ thead: ({ node, ...props }) => (
+ <thead className="bg-zinc-100/90 dark:bg-zinc-800/80 font-semibold" {...props} />
+ ),
+ tr: ({ node, ...props }) => (
+ <tr className="last:[&>td]:border-b-0 hover:bg-zinc-50/50 dark:hover:bg-zinc-800/30 transition-colors" {...props} />
+ ),
+ th: ({ node, ...props }) => (
+ <th className="px-4 py-2.5 text-left border-b border-r border-zinc-300 dark:border-zinc-700/80 last:border-r-0 font-semibold text-zinc-900 dark:text-zinc-100" {...props} />
+ ),
+ td: ({ node, ...props }) => (
+ <td className="px-4 py-2.5 border-b border-r border-zinc-200 dark:border-zinc-800 last:border-r-0 text-zinc-800 dark:text-zinc-200 align-top leading-relaxed" {...props} />
+ ),
+ a: ({ node, ...props }) => (
+ <a
+ className="text-indigo-600 dark:text-indigo-400 hover:underline"
+ target="_blank"
+ rel="noopener noreferrer"
+ {...props}
+ />
+ ),
+ }}
+ >
+ {content}
+ </ReactMarkdown>
+ </div>
+ );
+}
diff --git a/client/src/components/MeetingIntelligence.js b/client/src/components/MeetingIntelligence.js
new file mode 100644
index 0000000..7788b8a
--- /dev/null
+++ b/client/src/components/MeetingIntelligence.js
@@ -0,0 +1,159 @@
+"use client";
+
+import React, { useState } from "react";
+import { MicIcon, SparklesIcon, PlusIcon, PageIcon, CheckIcon } from "./Icons";
+
+export default function MeetingIntelligence({
+ meetings = [],
+ onCreateMeeting,
+ onConvertToActionPage,
+}) {
+ const [isRecording, setIsRecording] = useState(false);
+ const [seconds, setSeconds] = useState(0);
+ const [timerInterval, setTimerInterval] = useState(null);
+
+ const startMeeting = () => {
+ setIsRecording(true);
+ setSeconds(0);
+ const interval = setInterval(() => {
+ setSeconds((prev) => prev + 1);
+ }, 1000);
+ setTimerInterval(interval);
+ };
+
+ const stopMeeting = () => {
+ if (timerInterval) clearInterval(timerInterval);
+ setIsRecording(false);
+
+ // Create a simulated meeting note
+ onCreateMeeting({
+ title: `Standup & Roadmap Sync (${new Date().toLocaleDateString()})`,
+ duration_seconds: seconds || 120,
+ summary: "Discussed milestone deliverables, Dot agent autonomous workflows, and real-time multiplayer editing capabilities.",
+ transcript: "Speaker 1: Let's review the sprint deliverables. Speaker 2: Supabase database and Next.js frontend are aligned. Dot agents are processing backlog items.",
+ action_items: [
+ "Deploy Next.js App Router frontend to port 3000",
+ "Keep FastAPI backend active on port 8000",
+ "Verify full CRUD with Supabase PostgreSQL tables",
+ ],
+ });
+ };
+
+ const formatTime = (totalSeconds) => {
+ const mins = Math.floor(totalSeconds / 60);
+ const secs = totalSeconds % 60;
+ return `${mins.toString().padStart(2, "0")}:${secs.toString().padStart(2, "0")}`;
+ };
+
+ return (
+ <div className="flex-1 overflow-y-auto p-8 bg-zinc-50 dark:bg-[#141416] transition-colors duration-200">
+ <div className="max-w-4xl mx-auto space-y-8">
+ {/* Header */}
+ <div className="flex items-center justify-between">
+ <div className="flex items-center gap-3">
+ <span className="p-2.5 rounded-xl bg-violet-100 dark:bg-violet-600/20 text-violet-700 dark:text-violet-400 border border-violet-200 dark:border-violet-500/30">
+ <MicIcon className="w-5 h-5" />
+ </span>
+ <div>
+ <h2 className="text-base font-bold text-zinc-900 dark:text-zinc-100">Meeting Audio & Intelligence</h2>
+ <p className="text-xs text-zinc-500 dark:text-zinc-400">
+ Capture live audio or team discussions, auto-generate structured takeaways, and ingest action items into Pages.
+ </p>
+ </div>
+ </div>
+
+ {/* Record Button */}
+ {!isRecording ? (
+ <button
+ onClick={startMeeting}
+ className="flex items-center gap-2 bg-rose-600 hover:bg-rose-500 text-white px-4 py-2 rounded-xl text-xs font-medium transition-colors shadow-2xs"
+ >
+ <span className="w-2.5 h-2.5 rounded-full bg-white animate-pulse" />
+ <span>Record Live Meeting</span>
+ </button>
+ ) : (
+ <button
+ onClick={stopMeeting}
+ className="flex items-center gap-2 bg-white dark:bg-zinc-800 hover:bg-zinc-100 dark:hover:bg-zinc-700 text-rose-600 dark:text-rose-400 border border-rose-300 dark:border-rose-500/40 px-4 py-2 rounded-xl text-xs font-medium transition-colors shadow-2xs"
+ >
+ <span className="w-2.5 h-2.5 rounded-sm bg-rose-500" />
+ <span>Stop & Synthesize ({formatTime(seconds)})</span>
+ </button>
+ )}
+ </div>
+
+ {/* In-Progress Recording Banner */}
+ {isRecording && (
+ <div className="p-4 rounded-xl bg-rose-50 dark:bg-rose-500/10 border border-rose-200 dark:border-rose-500/30 flex items-center justify-between">
+ <div className="flex items-center gap-3">
+ <span className="w-3 h-3 rounded-full bg-rose-500 animate-ping" />
+ <div className="text-xs text-rose-800 dark:text-rose-200">
+ <span className="font-semibold">Live audio processing active...</span> Capturing discussion and auto-detecting action items.
+ </div>
+ </div>
+ <span className="text-xs font-bold text-rose-600 dark:text-rose-300">{formatTime(seconds)}</span>
+ </div>
+ )}
+
+ {/* Past Meeting Summaries */}
+ <div className="space-y-4">
+ <h3 className="text-xs font-semibold uppercase tracking-wider text-zinc-500">
+ Meeting Records & Syntheses ({meetings.length})
+ </h3>
+
+ {meetings.length === 0 ? (
+ <div className="text-center py-12 bg-white dark:bg-[#19191d] border border-zinc-200 dark:border-zinc-800 rounded-xl text-xs text-zinc-400 dark:text-zinc-500 shadow-2xs">
+ No recorded meetings in this space yet. Start a live recording above to auto-generate notes.
+ </div>
+ ) : (
+ meetings.map((meet) => (
+ <div
+ key={meet.id}
+ className="bg-white dark:bg-[#19191d] border border-zinc-200 dark:border-zinc-800 rounded-xl p-5 space-y-3.5 shadow-2xs"
+ >
+ <div className="flex items-start justify-between">
+ <div>
+ <h4 className="text-sm font-semibold text-zinc-900 dark:text-zinc-100">{meet.title}</h4>
+ <p className="text-[11px] text-zinc-500 mt-0.5">
+ Duration: {Math.floor(meet.duration_seconds / 60)} mins β€’ {new Date(meet.created_at || Date.now()).toLocaleDateString()}
+ </p>
+ </div>
+
+ <button
+ onClick={() => onConvertToActionPage(meet)}
+ className="flex items-center gap-1.5 bg-indigo-50 dark:bg-indigo-600/20 hover:bg-indigo-100 dark:hover:bg-indigo-600/30 text-indigo-700 dark:text-indigo-300 border border-indigo-200 dark:border-indigo-500/30 px-3 py-1.5 rounded-lg text-xs font-medium transition-colors shadow-2xs"
+ title="Export action items directly to a new Living Page"
+ >
+ <PageIcon className="w-3.5 h-3.5" />
+ <span>Convert to Page</span>
+ </button>
+ </div>
+
+ {/* Summary */}
+ <div className="text-xs text-zinc-700 dark:text-zinc-300 leading-relaxed bg-zinc-50 dark:bg-[#202026] p-3 rounded-lg border border-zinc-200 dark:border-zinc-800/80">
+ <span className="font-semibold text-zinc-900 dark:text-zinc-200 block mb-1">AI Executive Summary:</span>
+ {meet.summary}
+ </div>
+
+ {/* Action Items Checklist */}
+ {meet.action_items && meet.action_items.length > 0 && (
+ <div>
+ <div className="text-[11px] font-semibold text-zinc-500 dark:text-zinc-400 mb-1.5">Action Items:</div>
+ <ul className="space-y-1">
+ {meet.action_items.map((item, idx) => (
+ <li key={idx} className="flex items-start gap-2 text-xs text-zinc-800 dark:text-zinc-300">
+ <CheckIcon className="w-3.5 h-3.5 text-indigo-600 dark:text-indigo-400 shrink-0 mt-0.5" />
+ <span>{item}</span>
+ </li>
+ ))}
+ </ul>
+ </div>
+ )}
+ </div>
+ ))
+ )}
+ </div>
+ </div>
+ </div>
+ );
+}
diff --git a/client/src/components/OpenSpacesApp.js b/client/src/components/OpenSpacesApp.js
new file mode 100644
index 0000000..1c1e936
--- /dev/null
+++ b/client/src/components/OpenSpacesApp.js
@@ -0,0 +1,774 @@
+"use client";
+
+import React, { useState, useEffect, useCallback, useRef } from "react";
+import IconRail from "./IconRail";
+import ChatGptSidebar from "./ChatGptSidebar";
+import SpaceSidebar from "./SpaceSidebar";
+import SpaceLibrary from "./SpaceLibrary";
+import PageHeaderBar from "./PageHeaderBar";
+import CanvasPage from "./CanvasPage";
+import HomeWorkView from "./HomeWorkView";
+import ChatDrawer from "./ChatDrawer";
+
+const API_BASE = "http://localhost:8000/api";
+const STORAGE_KEY = "open_spaces_chat_history";
+const LAST_ROUTE_KEY = "open_spaces_last_route";
+
+const generateUUID = () => {
+ if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
+ return crypto.randomUUID();
+ }
+ return "u_" + Math.random().toString(36).slice(2, 11) + "_" + Date.now().toString(36);
+};
+
+export default function OpenSpacesApp({
+ initialRailTab = "spaces", // Default to "spaces" so pages/spaces are shown on the homepage
+ initialSpaceId = null,
+ initialPageId = null,
+ initialChatId = null,
+}) {
+ const [activeRailTab, setActiveRailTab] = useState(initialRailTab);
+ const [activeProject, setActiveProject] = useState("General");
+ const [selectedModel, setSelectedModel] = useState("gpt-6-1-sol");
+
+ // Real Chat conversation history with UUIDs
+ const [conversations, setConversations] = useState([]);
+ const [activeConversationId, setActiveConversationId] = useState(initialChatId);
+ const [conversation, setConversation] = useState([]);
+ const [isGenerating, setIsGenerating] = useState(false);
+
+ // Spaces and Pages state (with UUIDs & URL persistence)
+ const [spaces, setSpaces] = useState([]);
+ const [activeSpaceId, setActiveSpaceId] = useState(initialSpaceId);
+ const [pages, setPages] = useState([]);
+ const [activePageId, setActivePageId] = useState(initialPageId);
+ const [openPageIds, setOpenPageIds] = useState(initialPageId ? [initialPageId] : []);
+ const [isCreatingPage, setIsCreatingPage] = useState(false);
+ const [messages, setMessages] = useState([]);
+ const [chatOpen, setChatOpen] = useState(false);
+ const [saveStatus, setSaveStatus] = useState("Saved");
+ const [saveTrigger, setSaveTrigger] = useState(0);
+
+ // Track initialization
+ const initializedFromUrlRef = useRef(false);
+
+ // 1. Load real chat history from localStorage on initial render
+ useEffect(() => {
+ try {
+ const stored = localStorage.getItem(STORAGE_KEY);
+ if (stored) {
+ const parsed = JSON.parse(stored);
+ if (Array.isArray(parsed)) {
+ setConversations(parsed);
+ // If initialChatId was passed, restore that conversation
+ if (initialChatId) {
+ const found = parsed.find((c) => c.id === initialChatId);
+ if (found) {
+ setConversation(found.messages || []);
+ if (found.model) setSelectedModel(found.model);
+ }
+ }
+ }
+ }
+ } catch (e) {
+ console.warn("Could not load chat history from localStorage:", e);
+ }
+ }, [initialChatId]);
+
+ // Helper to persist conversations
+ const persistConversations = (list) => {
+ setConversations(list);
+ try {
+ localStorage.setItem(STORAGE_KEY, JSON.stringify(list));
+ } catch (e) {
+ console.warn("Could not save chat history to localStorage:", e);
+ }
+ };
+
+ // Helper to update browser URL and remember last route safely outside React render phase
+ const updateRoute = useCallback((route) => {
+ try {
+ let path = "/";
+ if (route.tab === "home") {
+ path = route.chatId ? `/c/${route.chatId}` : "/";
+ } else {
+ if (route.spaceId && route.pageId) {
+ path = `/spaces/${route.spaceId}/pages/${route.pageId}`;
+ } else if (route.spaceId) {
+ path = `/spaces/${route.spaceId}`;
+ }
+ }
+
+ if (typeof window !== "undefined") {
+ try {
+ localStorage.setItem(LAST_ROUTE_KEY, JSON.stringify(route));
+ } catch (_) {}
+
+ if (window.location.pathname !== path) {
+ // Defer pushState to microtask so React render finishes before Next.js Router is notified
+ queueMicrotask(() => {
+ if (window.location.pathname !== path) {
+ window.history.pushState(null, "", path);
+ }
+ });
+ }
+ }
+ } catch (err) {
+ console.warn("Error updating route URL:", err);
+ }
+ }, []);
+
+ // 2. Fetch Spaces on load and restore route from URL or localStorage
+ const fetchSpaces = useCallback(async () => {
+ try {
+ const res = await fetch(`${API_BASE}/spaces`);
+ if (res.ok) {
+ const data = await res.json();
+ setSpaces(data);
+
+ // Parse path from URL if initial props were not passed
+ const pathname = typeof window !== "undefined" ? window.location.pathname : "";
+ const spacePageMatch = pathname.match(/^\/spaces\/([^/]+)\/pages\/([^/]+)$/);
+ const spaceMatch = pathname.match(/^\/spaces\/([^/]+)$/);
+ const chatMatch = pathname.match(/^\/c\/([^/]+)$/);
+
+ if (!initializedFromUrlRef.current) {
+ initializedFromUrlRef.current = true;
+
+ if (initialSpaceId || spacePageMatch || spaceMatch) {
+ const sId = initialSpaceId || spacePageMatch?.[1] || spaceMatch?.[1];
+ const pId = initialPageId || spacePageMatch?.[2] || null;
+ setActiveRailTab("spaces");
+ setActiveSpaceId(sId);
+ setActivePageId(pId);
+ } else if (initialChatId || chatMatch) {
+ const cId = initialChatId || chatMatch?.[1];
+ setActiveRailTab("home");
+ setActiveConversationId(cId);
+ } else {
+ // Check localStorage for last visited route
+ try {
+ const savedRoute = localStorage.getItem(LAST_ROUTE_KEY);
+ if (savedRoute) {
+ const parsed = JSON.parse(savedRoute);
+ if (parsed.tab === "spaces" && parsed.spaceId) {
+ setActiveRailTab("spaces");
+ setActiveSpaceId(parsed.spaceId);
+ setActivePageId(parsed.pageId || null);
+ updateRoute(parsed);
+ return;
+ } else if (parsed.tab === "home" && parsed.chatId) {
+ setActiveRailTab("home");
+ setActiveConversationId(parsed.chatId);
+ updateRoute(parsed);
+ return;
+ }
+ }
+ } catch (_) {}
+
+ // Default to first space and pages view on homepage
+ if (data.length > 0) {
+ setActiveRailTab("spaces");
+ setActiveSpaceId(data[0].id);
+ setActivePageId(null);
+ }
+ }
+ }
+ }
+ } catch (err) {
+ console.warn("Backend connecting on port 8000...", err);
+ }
+ }, [initialSpaceId, initialPageId, initialChatId, updateRoute]);
+
+ useEffect(() => {
+ fetchSpaces();
+ }, [fetchSpaces]);
+
+ // 3. Fetch Active Space Pages & Messages
+ const fetchSpaceDetails = useCallback(async (spaceId, targetPageId = null) => {
+ if (!spaceId) return;
+ try {
+ const pRes = await fetch(`${API_BASE}/spaces/${spaceId}/pages`);
+ if (pRes.ok) {
+ const pData = await pRes.json();
+ setPages(pData);
+ if (targetPageId) {
+ const match = pData.find((p) => p.id === targetPageId);
+ if (match) {
+ setActivePageId(targetPageId);
+ }
+ }
+ }
+
+ const mRes = await fetch(`${API_BASE}/spaces/${spaceId}/messages`);
+ if (mRes.ok) {
+ const mData = await mRes.json();
+ setMessages(mData);
+ }
+ } catch (err) {
+ console.error("Error fetching space details:", err);
+ }
+ }, []);
+
+ useEffect(() => {
+ if (activeSpaceId) {
+ fetchSpaceDetails(activeSpaceId, activePageId);
+ }
+ }, [activeSpaceId, fetchSpaceDetails]);
+
+ // Handle browser Back / Forward buttons (popstate)
+ useEffect(() => {
+ const handlePopState = () => {
+ const pathname = window.location.pathname;
+ const spacePageMatch = pathname.match(/^\/spaces\/([^/]+)\/pages\/([^/]+)$/);
+ const spaceMatch = pathname.match(/^\/spaces\/([^/]+)$/);
+ const chatMatch = pathname.match(/^\/c\/([^/]+)$/);
+
+ if (spacePageMatch) {
+ setActiveRailTab("spaces");
+ setActiveSpaceId(spacePageMatch[1]);
+ setActivePageId(spacePageMatch[2]);
+ setOpenPageIds((prev) => (prev.includes(spacePageMatch[2]) ? prev : [...prev, spacePageMatch[2]]));
+ } else if (spaceMatch) {
+ setActiveRailTab("spaces");
+ setActiveSpaceId(spaceMatch[1]);
+ setActivePageId(null);
+ } else if (chatMatch) {
+ setActiveRailTab("home");
+ setActiveConversationId(chatMatch[1]);
+ const found = conversations.find((c) => c.id === chatMatch[1]);
+ if (found) {
+ setConversation(found.messages || []);
+ }
+ } else {
+ // Root /
+ setActiveRailTab("spaces");
+ }
+ };
+
+ window.addEventListener("popstate", handlePopState);
+ return () => window.removeEventListener("popstate", handlePopState);
+ }, [conversations]);
+
+ // Keep openPageIds in sync with activePageId
+ useEffect(() => {
+ if (activePageId) {
+ setOpenPageIds((prev) => (prev.includes(activePageId) ? prev : [...prev, activePageId]));
+ }
+ }, [activePageId]);
+
+ const activeSpace = spaces.find((s) => s.id === activeSpaceId) || spaces[0];
+ const activePage = pages.find((p) => p.id === activePageId);
+
+ // Navigation handlers
+ const handleSelectRailTab = (tab) => {
+ setActiveRailTab(tab);
+ if (tab === "spaces") {
+ updateRoute({
+ tab: "spaces",
+ spaceId: activeSpaceId || spaces[0]?.id,
+ pageId: activePageId,
+ });
+ } else {
+ updateRoute({
+ tab: "home",
+ chatId: activeConversationId,
+ });
+ }
+ };
+
+ const handleSelectSpace = (spaceId) => {
+ setActiveSpaceId(spaceId);
+ setActivePageId(null);
+ setOpenPageIds([]);
+ setActiveRailTab("spaces");
+ updateRoute({ tab: "spaces", spaceId, pageId: null });
+ };
+
+ const handleSelectPage = (pageId) => {
+ setActivePageId(pageId);
+ setOpenPageIds((prev) => (prev.includes(pageId) ? prev : [...prev, pageId]));
+ setActiveRailTab("spaces");
+ updateRoute({ tab: "spaces", spaceId: activeSpaceId, pageId });
+ };
+
+ const handleClosePageTab = (pageIdToClose) => {
+ const remaining = openPageIds.filter((id) => id !== pageIdToClose);
+ setOpenPageIds(remaining);
+
+ if (activePageId === pageIdToClose) {
+ if (remaining.length > 0) {
+ const nextActiveId = remaining[remaining.length - 1];
+ setActivePageId(nextActiveId);
+ updateRoute({ tab: "spaces", spaceId: activeSpaceId, pageId: nextActiveId });
+ } else {
+ setActivePageId(null);
+ updateRoute({ tab: "spaces", spaceId: activeSpaceId, pageId: null });
+ }
+ }
+ };
+
+ const handleBackToLibrary = () => {
+ setActivePageId(null);
+ updateRoute({ tab: "spaces", spaceId: activeSpaceId, pageId: null });
+ };
+
+ // Handlers for real conversation management
+ const handleNewChat = () => {
+ setActiveConversationId(null);
+ setConversation([]);
+ setActiveRailTab("home");
+ updateRoute({ tab: "home", chatId: null });
+ };
+
+ const handleSelectConversation = (id) => {
+ const found = conversations.find((c) => c.id === id);
+ if (found) {
+ setActiveConversationId(id);
+ setConversation(found.messages || []);
+ if (found.model) {
+ setSelectedModel(found.model);
+ }
+ setActiveRailTab("home");
+ updateRoute({ tab: "home", chatId: id });
+ }
+ };
+
+ const handleDeleteConversation = (id, e) => {
+ if (e) e.stopPropagation();
+ const updated = conversations.filter((c) => c.id !== id);
+ persistConversations(updated);
+ if (activeConversationId === id) {
+ setActiveConversationId(null);
+ setConversation([]);
+ updateRoute({ tab: "home", chatId: null });
+ }
+ };
+
+ const handleTogglePinConversation = (id, e) => {
+ if (e) e.stopPropagation();
+ const updated = conversations.map((c) =>
+ c.id === id ? { ...c, pinned: !c.pinned } : c
+ );
+ persistConversations(updated);
+ };
+
+ // Submit prompt to ChatGPT 6 series
+ const handleSubmitPrompt = async (prompt) => {
+ const userMsg = { role: "user", content: prompt };
+ const updatedConv = [...conversation, userMsg];
+ setConversation(updatedConv);
+ setIsGenerating(true);
+
+ let currentId = activeConversationId;
+ let currentList = [...conversations];
+
+ // If starting a brand new conversation with a UUID
+ if (!currentId) {
+ currentId = "chat-" + generateUUID();
+ setActiveConversationId(currentId);
+ const title =
+ prompt.length > 36 ? prompt.slice(0, 36).trim() + "..." : prompt;
+ const newConv = {
+ id: currentId,
+ title,
+ messages: updatedConv,
+ model: selectedModel,
+ createdAt: Date.now(),
+ updatedAt: Date.now(),
+ pinned: false,
+ };
+ currentList = [newConv, ...currentList];
+ persistConversations(currentList);
+ updateRoute({ tab: "home", chatId: currentId });
+ } else {
+ // Update existing conversation in list
+ currentList = currentList.map((c) =>
+ c.id === currentId
+ ? { ...c, messages: updatedConv, updatedAt: Date.now() }
+ : c
+ );
+ persistConversations(currentList);
+ }
+
+ try {
+ const res = await fetch(`${API_BASE}/chat`, {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({
+ prompt,
+ model: selectedModel,
+ project: activeProject,
+ history: updatedConv,
+ }),
+ });
+
+ let assistantReply = "";
+ if (res.ok) {
+ const data = await res.json();
+ assistantReply = data.reply;
+ } else {
+ assistantReply = `[${selectedModel}] I received your prompt. Let's begin drafting the plan in your Space.`;
+ }
+
+ const finalConv = [
+ ...updatedConv,
+ { role: "assistant", content: assistantReply },
+ ];
+ setConversation(finalConv);
+
+ // Save complete thread including assistant response
+ const finalizedList = currentList.map((c) =>
+ c.id === currentId
+ ? { ...c, messages: finalConv, updatedAt: Date.now() }
+ : c
+ );
+ persistConversations(finalizedList);
+ } catch (err) {
+ console.error("Error calling chat endpoint:", err);
+ const fallbackReply = `[GPT-6.1 Sol Light] Here is the outline for "${prompt}":\n\n1. Scope and target deliverables.\n2. Ingest contextual documents into Living Pages.\n3. Delegate tasks to autonomous Dot agents.`;
+ const finalConv = [
+ ...updatedConv,
+ { role: "assistant", content: fallbackReply },
+ ];
+ setConversation(finalConv);
+ const finalizedList = currentList.map((c) =>
+ c.id === currentId
+ ? { ...c, messages: finalConv, updatedAt: Date.now() }
+ : c
+ );
+ persistConversations(finalizedList);
+ } finally {
+ setIsGenerating(false);
+ }
+ };
+
+ const extractTitleFromMarkdown = (text = "") => {
+ if (!text) return "Untitled page";
+ const headingMatch = text.match(/^#{1,3}\s+(.+)$/m);
+ if (headingMatch && headingMatch[1]) {
+ return headingMatch[1].replace(/[#*`_~]/g, "").trim().slice(0, 80);
+ }
+ const firstLine = text.trim().split("\n")[0] || "";
+ const cleaned = firstLine.replace(/[#*`_~]/g, "").trim().slice(0, 60);
+ return cleaned || "Untitled page";
+ };
+
+ const handleOpenCanvas = (firstArg, secondArg) => {
+ let title = "Untitled document";
+ let content = "";
+ if (typeof secondArg === "string") {
+ title = firstArg || extractTitleFromMarkdown(secondArg);
+ content = secondArg;
+ } else if (typeof firstArg === "string") {
+ content = firstArg;
+ title = extractTitleFromMarkdown(firstArg);
+ }
+ setActiveRailTab("spaces");
+ handleCreatePage({
+ title,
+ content,
+ icon: "πŸ“„",
+ });
+ };
+
+ // Spaces Management
+ const handleCreateSpace = async (spaceData) => {
+ try {
+ const res = await fetch(`${API_BASE}/spaces`, {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify(spaceData),
+ });
+ if (res.ok) {
+ const newSpace = await res.json();
+ setSpaces((prev) => [...prev, newSpace]);
+ setActiveSpaceId(newSpace.id);
+ setActivePageId(null);
+ setPages([]);
+ setActiveRailTab("spaces");
+ updateRoute({ tab: "spaces", spaceId: newSpace.id, pageId: null });
+ }
+ } catch (err) {
+ console.error("Error creating space:", err);
+ }
+ };
+
+ const handleDeleteSpace = async (spaceId) => {
+ try {
+ const res = await fetch(`${API_BASE}/spaces/${spaceId}`, {
+ method: "DELETE",
+ });
+ if (res.ok) {
+ const remaining = spaces.filter((s) => s.id !== spaceId);
+ setSpaces(remaining);
+ if (activeSpaceId === spaceId && remaining.length > 0) {
+ setActiveSpaceId(remaining[0].id);
+ setActivePageId(null);
+ updateRoute({ tab: "spaces", spaceId: remaining[0].id, pageId: null });
+ }
+ }
+ } catch (err) {
+ console.error("Error deleting space:", err);
+ }
+ };
+
+ // Pages Management: Instant 0ms optimistic page creation (zero lag, no double spinners)
+ const handleCreatePage = async (pageData) => {
+ let targetSpace = activeSpace;
+ if (!targetSpace) {
+ if (spaces.length > 0) {
+ targetSpace = spaces[0];
+ } else {
+ try {
+ const sRes = await fetch(`${API_BASE}/spaces`);
+ if (sRes.ok) {
+ const list = await sRes.json();
+ if (list.length > 0) {
+ targetSpace = list[0];
+ setSpaces(list);
+ setActiveSpaceId(targetSpace.id);
+ }
+ }
+ } catch (_) {}
+ }
+ }
+ if (!targetSpace) return;
+
+ let rawTitle = typeof pageData?.title === "string" ? pageData.title.trim() : "Untitled page";
+ if (rawTitle.length > 100 || rawTitle.includes("\n")) {
+ rawTitle = extractTitleFromMarkdown(rawTitle);
+ }
+ const titleStr = (rawTitle || "Untitled page").slice(0, 120);
+ const contentStr = typeof pageData?.content === "string" ? pageData.content : "";
+ const iconStr = typeof pageData?.icon === "string" ? pageData.icon.slice(0, 4) : "πŸ“„";
+
+ // Instant optimistic creation: 0ms delay, zero lag!
+ const tempId = "page-" + (typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID().slice(0, 8) : Math.random().toString(36).slice(2, 10));
+ const optimisticPage = {
+ id: tempId,
+ space_id: targetSpace.id,
+ title: titleStr,
+ content: contentStr,
+ icon: iconStr,
+ status: "draft",
+ author: "You",
+ version: 1,
+ created_at: new Date().toISOString(),
+ updated_at: new Date().toISOString(),
+ };
+
+ // Open new tab immediately alongside existing tabs
+ setPages((prev) => [optimisticPage, ...prev]);
+ setOpenPageIds((prev) => [...prev, tempId]);
+ setActivePageId(tempId);
+ setActiveRailTab("spaces");
+ setSaveStatus("Saving...");
+
+ try {
+ const res = await fetch(`${API_BASE}/spaces/${targetSpace.id}/pages`, {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({
+ title: titleStr,
+ content: contentStr,
+ icon: iconStr,
+ status: "draft",
+ }),
+ });
+
+ if (res.ok) {
+ const savedPage = await res.json();
+ setPages((prev) => prev.map((p) => (p.id === tempId ? savedPage : p)));
+ setOpenPageIds((prev) => prev.map((id) => (id === tempId ? savedPage.id : id)));
+ setActivePageId((curr) => (curr === tempId ? savedPage.id : curr));
+ updateRoute({ tab: "spaces", spaceId: targetSpace.id, pageId: savedPage.id });
+ setSaveStatus("Saved");
+ } else {
+ console.warn("Could not create page on server:", res.status);
+ setSaveStatus("Failed");
+ }
+ } catch (err) {
+ console.warn("Error creating page:", err?.message || err);
+ setSaveStatus("Failed");
+ }
+ };
+
+ const handleUpdatePage = async (pageId, updateData) => {
+ if (!activeSpace || !pageId) return null;
+ setSaveStatus("Saving...");
+ try {
+ const res = await fetch(`${API_BASE}/spaces/${activeSpace.id}/pages/${pageId}`, {
+ method: "PATCH",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify(updateData),
+ });
+ if (res && res.ok) {
+ const updated = await res.json();
+ setPages((prev) => prev.map((p) => (p.id === updated.id ? updated : p)));
+ setSaveStatus("Saved");
+ return updated;
+ } else {
+ const errText = res ? await res.text() : "Network error";
+ console.warn("Failed to update page:", res?.status, errText);
+ setSaveStatus("Failed");
+ return null;
+ }
+ } catch (err) {
+ console.warn("Error updating page (will retry on next change):", err?.message || err);
+ setSaveStatus("Failed");
+ return null;
+ }
+ };
+
+ const handleDeletePage = async (pageId) => {
+ if (!activeSpace || !pageId) return;
+ try {
+ const res = await fetch(`${API_BASE}/spaces/${activeSpace.id}/pages/${pageId}`, {
+ method: "DELETE",
+ });
+ if (res.ok) {
+ setPages((prev) => prev.filter((p) => p.id !== pageId));
+ setOpenPageIds((prev) => {
+ const remaining = prev.filter((id) => id !== pageId);
+ if (activePageId === pageId) {
+ const nextId = remaining[remaining.length - 1] || null;
+ setActivePageId(nextId);
+ updateRoute({ tab: "spaces", spaceId: activeSpace.id, pageId: nextId });
+ }
+ return remaining;
+ });
+ }
+ } catch (err) {
+ console.error("Error deleting page:", err);
+ }
+ };
+
+ const handleDownloadMarkdown = () => {
+ if (!activePage) return;
+ const blob = new Blob([activePage.content || ""], { type: "text/markdown;charset=utf-8" });
+ const url = URL.createObjectURL(blob);
+ const link = document.createElement("a");
+ link.href = url;
+ link.download = `${(activePage.title || "page").replace(/[^\w\s-]/g, "").slice(0, 50)}.md`;
+ link.click();
+ URL.revokeObjectURL(url);
+ };
+
+ return (
+ <div className="flex h-screen w-screen overflow-hidden bg-[#fbfbfa] dark:bg-[#141416] text-zinc-900 dark:text-zinc-100 transition-colors duration-150">
+ {/* 1. Slim Left Navigation Rail (~48px) */}
+ <IconRail
+ activeRailTab={activeRailTab}
+ onSelectRailTab={handleSelectRailTab}
+ />
+
+ {/* 2. Middle Sidebar */}
+ {activeRailTab === "home" ? (
+ /* Real Conversation History Sidebar (UUID based) */
+ <ChatGptSidebar
+ conversations={conversations}
+ activeConversationId={activeConversationId}
+ onSelectConversation={handleSelectConversation}
+ onNewChat={handleNewChat}
+ onDeleteConversation={handleDeleteConversation}
+ onTogglePinConversation={handleTogglePinConversation}
+ />
+ ) : (
+ /* OpenDots-Style Spaces & Hierarchical Pages Tree Sidebar */
+ <SpaceSidebar
+ spaces={spaces}
+ activeSpaceId={activeSpaceId}
+ onSelectSpace={handleSelectSpace}
+ onCreateSpace={handleCreateSpace}
+ onDeleteSpace={handleDeleteSpace}
+ pages={pages}
+ activePageId={activePageId}
+ onSelectPage={handleSelectPage}
+ onCreatePage={handleCreatePage}
+ isCreatingPage={isCreatingPage}
+ />
+ )}
+
+ {/* 3. Main Work Area */}
+ <div className="flex-1 flex flex-col h-full overflow-hidden">
+ {activeRailTab === "home" ? (
+ /* "What should we work on?" ChatGPT 6 Series View */
+ <HomeWorkView
+ activeProject={activeProject}
+ onSelectProject={setActiveProject}
+ selectedModel={selectedModel}
+ onSelectModel={setSelectedModel}
+ onSubmitPrompt={handleSubmitPrompt}
+ conversation={conversation}
+ isLoading={isGenerating}
+ onOpenCanvas={handleOpenCanvas}
+ />
+ ) : !activePageId ? (
+ /* OpenDots SpaceLibrary: Searchable library, grid/list view, page excerpts */
+ <SpaceLibrary
+ space={activeSpace}
+ pages={pages}
+ onSelectPage={handleSelectPage}
+ onNewPage={() => handleCreatePage({ title: "Untitled page", content: "" })}
+ onDeletePage={handleDeletePage}
+ isCreatingPage={isCreatingPage}
+ />
+ ) : !activePage && pages.length === 0 ? (
+ <div className="flex-1 flex flex-col items-center justify-center gap-3 text-zinc-400 select-none bg-white dark:bg-[#141416]">
+ <div className="w-6 h-6 border-2 border-indigo-500 border-t-transparent rounded-full animate-spin" />
+ <span className="text-xs font-medium">Loading document page...</span>
+ </div>
+ ) : (
+ /* OpenDots PageDocument: Focused Visual Document Canvas View with Multi-Tabs */
+ <>
+ <PageHeaderBar
+ openPages={
+ openPageIds.map((id) => pages.find((p) => p.id === id)).filter(Boolean).length > 0
+ ? openPageIds.map((id) => pages.find((p) => p.id === id)).filter(Boolean)
+ : activePage ? [activePage] : []
+ }
+ activePageId={activePageId}
+ onSelectPage={handleSelectPage}
+ onClosePage={handleClosePageTab}
+ isCreatingPage={isCreatingPage}
+ title={activePage?.title || "Untitled page"}
+ icon={activePage?.icon || "πŸ“„"}
+ spaceName={activeSpace?.name || "Space"}
+ onBackToLibrary={handleBackToLibrary}
+ onNewPage={() => handleCreatePage({ title: "Untitled page", content: "" })}
+ onToggleChat={() => setChatOpen(!chatOpen)}
+ chatOpen={chatOpen}
+ onTriggerAI={() => setChatOpen(true)}
+ onDownloadMarkdown={handleDownloadMarkdown}
+ onDeletePage={() => handleDeletePage(activePageId)}
+ onSaveNow={() => setSaveTrigger((n) => n + 1)}
+ saveStatus={saveStatus}
+ />
+
+ <div className="flex-1 flex overflow-hidden">
+ <CanvasPage
+ page={activePage}
+ onUpdatePage={handleUpdatePage}
+ onStatusChange={setSaveStatus}
+ saveTrigger={saveTrigger}
+ onTriggerAI={(p) => handleSubmitPrompt(p)}
+ />
+
+ {chatOpen && (
+ <ChatDrawer
+ isOpen={chatOpen}
+ onClose={() => setChatOpen(false)}
+ messages={messages}
+ onSendMessage={() => {}}
+ agents={activeSpace?.agents || []}
+ activePageTitle={activePage?.title}
+ />
+ )}
+ </div>
+ </>
+ )}
+ </div>
+ </div>
+ );
+}
diff --git a/client/src/components/PageHeaderBar.js b/client/src/components/PageHeaderBar.js
new file mode 100644
index 0000000..04c2134
--- /dev/null
+++ b/client/src/components/PageHeaderBar.js
@@ -0,0 +1,185 @@
+"use client";
+
+import React from "react";
+import {
+ PageIcon,
+ CloseIcon,
+ PlusIcon,
+ ChatIcon,
+ ShareIcon,
+ SparklesIcon,
+ ArrowLeftIcon,
+ DownloadIcon,
+ TrashIcon,
+} from "./Icons";
+
+export default function PageHeaderBar({
+ title = "Untitled page",
+ icon = "πŸ“„",
+ openPages = [], // [{ id, title, icon }]
+ activePageId,
+ onSelectPage,
+ onClosePage,
+ isCreatingPage = false,
+ spaceName = "Space",
+ onBackToLibrary,
+ onNewPage,
+ onToggleChat,
+ chatOpen,
+ onTriggerAI,
+ onDownloadMarkdown,
+ onDeletePage,
+ onSaveNow,
+ saveStatus = "Saved", // 'Saved' | 'Saving...' | 'Unsaved changes' | 'Failed'
+}) {
+ // If openPages array is supplied, render all open tabs; otherwise fallback to single tab
+ const tabs =
+ openPages.length > 0
+ ? openPages
+ : [{ id: activePageId || "single", title, icon }];
+
+ return (
+ <header className="h-11 border-b border-zinc-200/80 dark:border-zinc-800/80 bg-white dark:bg-[#141416] flex items-center justify-between px-3 select-none text-xs text-zinc-600 dark:text-zinc-400 transition-colors duration-150">
+ {/* Left: Back to Space Library + Multi-Tabs Bar */}
+ <div className="flex items-center gap-2 h-full overflow-hidden max-w-[70%]">
+ {onBackToLibrary && (
+ <button
+ onClick={onBackToLibrary}
+ className="flex items-center gap-1.5 px-2 py-1 rounded-lg hover:bg-zinc-100 dark:hover:bg-zinc-800 text-zinc-600 dark:text-zinc-400 hover:text-zinc-900 dark:hover:text-zinc-100 transition-colors text-xs font-medium cursor-pointer shrink-0"
+ title={`Back to ${spaceName} Library`}
+ >
+ <ArrowLeftIcon className="w-3.5 h-3.5" />
+ <span className="hidden sm:inline">{spaceName}</span>
+ </button>
+ )}
+
+ <div className="flex items-center gap-1 h-full pt-1.5 overflow-x-auto no-scrollbar">
+ {tabs.map((tab) => {
+ const isActive = tab.id === activePageId;
+ return (
+ <div
+ key={tab.id}
+ onClick={() => onSelectPage && onSelectPage(tab.id)}
+ className={`group flex items-center gap-2 px-3 py-1 rounded-t-lg border-t border-x text-xs font-medium max-w-[190px] cursor-pointer transition-all shrink-0 ${
+ isActive
+ ? "bg-zinc-100 dark:bg-zinc-800/90 text-zinc-900 dark:text-zinc-100 border-zinc-200/90 dark:border-zinc-700/80 shadow-2xs"
+ : "bg-transparent hover:bg-zinc-50 dark:hover:bg-zinc-800/40 text-zinc-500 dark:text-zinc-400 border-transparent hover:border-zinc-200/60 dark:hover:border-zinc-700/40"
+ }`}
+ title={tab.title || "Untitled page"}
+ >
+ <span className="text-xs shrink-0">{tab.icon || "πŸ“„"}</span>
+ <span className="truncate">{tab.title || "Untitled page"}</span>
+ {onClosePage && (
+ <button
+ type="button"
+ onClick={(e) => {
+ e.stopPropagation();
+ onClosePage(tab.id);
+ }}
+ className="text-zinc-400 hover:text-zinc-700 dark:hover:text-zinc-200 ml-0.5 p-0.5 rounded-sm hover:bg-zinc-200/60 dark:hover:bg-zinc-700/60 cursor-pointer transition-colors opacity-70 group-hover:opacity-100"
+ title="Close tab"
+ >
+ <CloseIcon className="w-2.5 h-2.5" />
+ </button>
+ )}
+ </div>
+ );
+ })}
+
+ {/* Create New Page (+) Button */}
+ <button
+ type="button"
+ onClick={onNewPage}
+ title="Create new page"
+ className="p-1.5 rounded-lg text-zinc-400 hover:bg-zinc-100 dark:hover:bg-zinc-800 hover:text-zinc-700 dark:hover:text-zinc-200 transition-colors cursor-pointer shrink-0"
+ >
+ <PlusIcon className="w-3.5 h-3.5" />
+ </button>
+ </div>
+ </div>
+
+ {/* Right Actions (modeled on OpenDots PageDocument header) */}
+ <div className="flex items-center gap-2">
+ {/* Autosave / Save Now button */}
+ <button
+ type="button"
+ onClick={saveStatus === "Unsaved changes" || saveStatus === "Failed" ? onSaveNow : undefined}
+ title={
+ saveStatus === "Unsaved changes"
+ ? "Unsaved changes. Click to save now or press ⌘/Ctrl+S"
+ : saveStatus === "Failed"
+ ? "Save failed. Click to retry"
+ : "Status"
+ }
+ className={`text-[11px] font-medium hidden sm:flex items-center gap-1.5 px-2.5 py-0.5 rounded-full border transition-all ${
+ saveStatus === "Unsaved changes"
+ ? "bg-amber-50 dark:bg-amber-950/40 border-amber-300 dark:border-amber-700/80 text-amber-700 dark:text-amber-300 cursor-pointer hover:bg-amber-100 dark:hover:bg-amber-900/40"
+ : saveStatus === "Saving..."
+ ? "bg-amber-50 dark:bg-amber-950/30 border-amber-200 dark:border-amber-800 text-amber-600 dark:text-amber-400 cursor-default"
+ : saveStatus === "Failed"
+ ? "bg-red-50 dark:bg-red-950/30 border-red-200 dark:border-red-800 text-red-600 dark:text-red-400 cursor-pointer hover:bg-red-100"
+ : "bg-zinc-100 dark:bg-zinc-800/60 border-zinc-200/60 dark:border-zinc-700/60 text-zinc-500 dark:text-zinc-400 cursor-default"
+ }`}
+ >
+ <span
+ className={`w-1.5 h-1.5 rounded-full ${
+ saveStatus === "Saving..."
+ ? "bg-amber-400 animate-ping"
+ : saveStatus === "Unsaved changes"
+ ? "bg-amber-500"
+ : saveStatus === "Failed"
+ ? "bg-red-500"
+ : "bg-emerald-500"
+ }`}
+ />
+ <span>{saveStatus}</span>
+ </button>
+
+ {/* Download Markdown */}
+ {onDownloadMarkdown && (
+ <button
+ onClick={onDownloadMarkdown}
+ title="Download page as Markdown (.md)"
+ className="p-1.5 rounded-lg hover:bg-zinc-100 dark:hover:bg-zinc-800 text-zinc-500 dark:text-zinc-400 hover:text-zinc-800 dark:hover:text-zinc-200 transition-colors cursor-pointer"
+ >
+ <DownloadIcon className="w-3.5 h-3.5" />
+ </button>
+ )}
+
+ {/* Delete Page */}
+ {onDeletePage && (
+ <button
+ onClick={onDeletePage}
+ title="Delete this page"
+ className="p-1.5 rounded-lg hover:bg-zinc-100 dark:hover:bg-zinc-800 text-zinc-400 hover:text-red-500 transition-colors cursor-pointer"
+ >
+ <TrashIcon className="w-3.5 h-3.5" />
+ </button>
+ )}
+
+ {/* Discussion / Chat drawer toggle */}
+ <button
+ onClick={onToggleChat}
+ title="Discuss with ChatGPT / Dot Agents"
+ className={`flex items-center gap-1.5 px-2.5 py-1 rounded-lg transition-colors cursor-pointer text-xs font-medium ${
+ chatOpen
+ ? "bg-zinc-900 text-white dark:bg-white dark:text-zinc-900 shadow-2xs"
+ : "bg-zinc-100 dark:bg-zinc-800 text-zinc-700 dark:text-zinc-300 hover:bg-zinc-200 dark:hover:bg-zinc-700"
+ }`}
+ >
+ <ChatIcon className="w-3.5 h-3.5" />
+ <span className="hidden sm:inline">Discussion</span>
+ </button>
+
+ {/* Ask AI button */}
+ <button
+ onClick={onTriggerAI}
+ title="Ask ChatGPT to iterate on this page"
+ className="p-1.5 rounded-lg bg-indigo-50 dark:bg-indigo-950/40 text-indigo-600 dark:text-indigo-400 hover:bg-indigo-100 dark:hover:bg-indigo-900/60 transition-colors cursor-pointer"
+ >
+ <SparklesIcon className="w-3.5 h-3.5" />
+ </button>
+ </div>
+ </header>
+ );
+}
diff --git a/client/src/components/PagesCanvas.js b/client/src/components/PagesCanvas.js
new file mode 100644
index 0000000..c9e9d6c
--- /dev/null
+++ b/client/src/components/PagesCanvas.js
@@ -0,0 +1,273 @@
+"use client";
+
+import React, { useState, useEffect } from "react";
+import { PlusIcon, TrashIcon, PageIcon, SparklesIcon, CheckIcon } from "./Icons";
+import CustomDropdown from "./CustomDropdown";
+
+const STATUS_OPTIONS = [
+ { label: "Draft", value: "draft" },
+ { label: "In Review", value: "in_review" },
+ { label: "Published", value: "published" },
+];
+
+export default function PagesCanvas({
+ pages = [],
+ activePageId,
+ onSelectPage,
+ onCreatePage,
+ onUpdatePage,
+ onDeletePage,
+ onTriggerAgentOnPage,
+ agents = [],
+}) {
+ const activePage = pages.find((p) => p.id === activePageId) || pages[0];
+
+ const [title, setTitle] = useState(activePage?.title || "");
+ const [content, setContent] = useState(activePage?.content || "");
+ const [status, setStatus] = useState(activePage?.status || "draft");
+ const [viewMode, setViewMode] = useState("split"); // "edit", "preview", "split"
+ const [isSaving, setIsSaving] = useState(false);
+ const [savedSuccess, setSavedSuccess] = useState(false);
+
+ // Sync state when active page changes
+ useEffect(() => {
+ if (activePage) {
+ setTitle(activePage.title);
+ setContent(activePage.content);
+ setStatus(activePage.status);
+ }
+ }, [activePage?.id]);
+
+ const handleSave = async () => {
+ if (!activePage) return;
+ setIsSaving(true);
+ await onUpdatePage(activePage.id, {
+ title,
+ content,
+ status,
+ });
+ setIsSaving(false);
+ setSavedSuccess(true);
+ setTimeout(() => setSavedSuccess(false), 2000);
+ };
+
+ const handleCreateNew = () => {
+ onCreatePage({
+ title: "Untitled Living Page",
+ content: "# New Page\n\nCollaborate with your team and autonomous Dot agents in this living document.",
+ status: "draft",
+ icon: "πŸ“„",
+ });
+ };
+
+ // Convert basic markdown to simple HTML safely for preview
+ const renderSimpleMarkdown = (mdText) => {
+ if (!mdText) return "<p class='text-zinc-400 dark:text-zinc-500 italic'>No content yet...</p>";
+ let html = mdText
+ .replace(/^### (.*$)/gim, "<h3>$1</h3>")
+ .replace(/^## (.*$)/gim, "<h2>$1</h2>")
+ .replace(/^# (.*$)/gim, "<h1>$1</h1>")
+ .replace(/^\> (.*$)/gim, "<blockquote>$1</blockquote>")
+ .replace(/\*\*(.*)\*\*/gim, "<strong>$1</strong>")
+ .replace(/\*(.*)\*/gim, "<em>$1</em>")
+ .replace(/`([^`]+)`/gim, "<code>$1</code>")
+ .replace(/\n\n/gim, "</p><p>")
+ .replace(/\n/gim, "<br/>");
+ return `<p>${html}</p>`;
+ };
+
+ return (
+ <div className="flex-1 flex overflow-hidden bg-zinc-50 dark:bg-[#141416] transition-colors duration-200">
+ {/* Pages Left Column / Sub-navigation */}
+ <div className="w-64 border-r border-zinc-200 dark:border-zinc-800 bg-[#f7f7f8] dark:bg-[#17171a] flex flex-col select-none">
+ <div className="p-3 border-b border-zinc-200 dark:border-zinc-800 flex items-center justify-between">
+ <div className="flex items-center gap-1.5 text-xs font-semibold text-zinc-800 dark:text-zinc-300">
+ <PageIcon className="w-4 h-4 text-indigo-600 dark:text-indigo-400" />
+ <span>Living Pages</span>
+ </div>
+ <button
+ onClick={handleCreateNew}
+ className="flex items-center gap-1 bg-white dark:bg-zinc-800 hover:bg-zinc-100 dark:hover:bg-zinc-700 text-zinc-700 dark:text-zinc-200 px-2 py-1 rounded text-xs transition-colors border border-zinc-200 dark:border-transparent shadow-2xs"
+ title="Create page"
+ >
+ <PlusIcon className="w-3.5 h-3.5" />
+ <span>New</span>
+ </button>
+ </div>
+
+ <div className="flex-1 overflow-y-auto p-2 space-y-1">
+ {pages.length === 0 ? (
+ <div className="text-center py-8 text-xs text-zinc-400 dark:text-zinc-500">
+ No pages in this space yet.
+ </div>
+ ) : (
+ pages.map((p) => {
+ const isSelected = activePage?.id === p.id;
+ return (
+ <div
+ key={p.id}
+ onClick={() => onSelectPage(p.id)}
+ className={`group p-2.5 rounded-lg text-xs cursor-pointer transition-all flex items-start justify-between ${
+ isSelected
+ ? "bg-white dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 shadow-2xs border border-zinc-200 dark:border-zinc-700"
+ : "text-zinc-600 dark:text-zinc-400 hover:bg-zinc-200/50 dark:hover:bg-zinc-850 hover:text-zinc-900 dark:hover:text-zinc-200"
+ }`}
+ >
+ <div className="flex items-start gap-2 min-w-0">
+ <span className="text-sm mt-0.5">{p.icon || "πŸ“„"}</span>
+ <div className="min-w-0">
+ <div className="font-medium truncate">{p.title || "Untitled"}</div>
+ <div className="text-[10px] text-zinc-400 dark:text-zinc-500 mt-0.5 flex items-center gap-1.5">
+ <span className="uppercase text-[9px] px-1 rounded bg-zinc-100 dark:bg-zinc-900 border border-zinc-200 dark:border-zinc-800">
+ v{p.version || 1}
+ </span>
+ <span className="capitalize">{p.status}</span>
+ </div>
+ </div>
+ </div>
+
+ <button
+ onClick={(e) => {
+ e.stopPropagation();
+ if (confirm(`Delete page "${p.title}"?`)) onDeletePage(p.id);
+ }}
+ className="opacity-0 group-hover:opacity-100 p-1 hover:text-red-500 text-zinc-400 dark:text-zinc-500 rounded transition-opacity"
+ title="Delete page"
+ >
+ <TrashIcon className="w-3 h-3" />
+ </button>
+ </div>
+ );
+ })
+ )}
+ </div>
+ </div>
+
+ {/* Editor & Canvas Area */}
+ {activePage ? (
+ <div className="flex-1 flex flex-col h-full overflow-hidden">
+ {/* Editor Action Toolbar */}
+ <div className="border-b border-zinc-200 dark:border-zinc-800 px-6 py-2.5 bg-white dark:bg-[#19191d] flex items-center justify-between flex-wrap gap-2">
+ <div className="flex items-center gap-3">
+ <input
+ type="text"
+ value={title}
+ onChange={(e) => setTitle(e.target.value)}
+ placeholder="Page Title"
+ className="bg-transparent font-semibold text-sm text-zinc-900 dark:text-zinc-100 focus:outline-none focus:border-b focus:border-indigo-500 py-0.5 w-72"
+ />
+
+ <CustomDropdown
+ value={status}
+ onChange={setStatus}
+ options={STATUS_OPTIONS}
+ size="sm"
+ buttonClassName="bg-zinc-100 dark:bg-zinc-800 border border-zinc-300 dark:border-zinc-700 rounded-md text-xs text-zinc-700 dark:text-zinc-300 px-2 py-1"
+ />
+
+ <span className="text-[11px] text-zinc-500 bg-zinc-100 dark:bg-zinc-800/80 px-2 py-0.5 rounded border border-zinc-200 dark:border-zinc-700/50">
+ v{activePage.version || 1}
+ </span>
+ </div>
+
+ {/* AI Dot Actions & View Mode */}
+ <div className="flex items-center gap-2">
+ {/* Dot AI Quick Actions */}
+ <div className="relative group">
+ <button
+ className="flex items-center gap-1.5 bg-indigo-50 dark:bg-gradient-to-r dark:from-indigo-600/30 dark:to-violet-600/30 hover:bg-indigo-100 dark:hover:from-indigo-600/40 dark:hover:to-violet-600/40 text-indigo-700 dark:text-indigo-300 border border-indigo-200 dark:border-indigo-500/40 px-3 py-1 rounded-lg text-xs font-medium transition-all shadow-2xs"
+ >
+ <SparklesIcon className="w-3.5 h-3.5" />
+ <span>Ask Dot to Edit</span>
+ </button>
+
+ <div className="absolute right-0 top-full mt-1 w-56 bg-white dark:bg-zinc-900 border border-zinc-200 dark:border-zinc-700 rounded-xl shadow-xl p-1.5 hidden group-hover:block z-20">
+ <div className="text-[10px] uppercase font-bold text-zinc-400 dark:text-zinc-500 px-2 py-1">Autonomous Actions</div>
+ <button
+ onClick={() => onTriggerAgentOnPage(activePage.id, "Expand and add a structured competitive matrix")}
+ className="w-full text-left px-2.5 py-1.5 text-xs text-zinc-700 dark:text-zinc-300 hover:bg-zinc-100 dark:hover:bg-zinc-800 rounded-md transition-colors"
+ >
+ ⚑ Expand with Market Matrix
+ </button>
+ <button
+ onClick={() => onTriggerAgentOnPage(activePage.id, "Synthesize into executive summary with action items")}
+ className="w-full text-left px-2.5 py-1.5 text-xs text-zinc-700 dark:text-zinc-300 hover:bg-zinc-100 dark:hover:bg-zinc-800 rounded-md transition-colors"
+ >
+ ✍️ Polish Tone & Executive Pitch
+ </button>
+ <button
+ onClick={() => onTriggerAgentOnPage(activePage.id, "Review for architectural risks and security gaps")}
+ className="w-full text-left px-2.5 py-1.5 text-xs text-zinc-700 dark:text-zinc-300 hover:bg-zinc-100 dark:hover:bg-zinc-800 rounded-md transition-colors"
+ >
+ πŸ“ Systems & Security Audit
+ </button>
+ </div>
+ </div>
+
+ {/* View Mode Buttons */}
+ <div className="flex items-center bg-zinc-100 dark:bg-zinc-800/80 rounded-lg p-0.5 border border-zinc-200 dark:border-zinc-700 text-xs">
+ <button
+ onClick={() => setViewMode("edit")}
+ className={`px-2 py-0.5 rounded transition-colors ${viewMode === "edit" ? "bg-white dark:bg-zinc-700 text-zinc-900 dark:text-white shadow-2xs font-medium" : "text-zinc-500 dark:text-zinc-400 hover:text-zinc-800 dark:hover:text-zinc-200"}`}
+ >
+ Edit
+ </button>
+ <button
+ onClick={() => setViewMode("split")}
+ className={`px-2 py-0.5 rounded transition-colors ${viewMode === "split" ? "bg-white dark:bg-zinc-700 text-zinc-900 dark:text-white shadow-2xs font-medium" : "text-zinc-500 dark:text-zinc-400 hover:text-zinc-800 dark:hover:text-zinc-200"}`}
+ >
+ Split
+ </button>
+ <button
+ onClick={() => setViewMode("preview")}
+ className={`px-2 py-0.5 rounded transition-colors ${viewMode === "preview" ? "bg-white dark:bg-zinc-700 text-zinc-900 dark:text-white shadow-2xs font-medium" : "text-zinc-500 dark:text-zinc-400 hover:text-zinc-800 dark:hover:text-zinc-200"}`}
+ >
+ Preview
+ </button>
+ </div>
+
+ {/* Save Button */}
+ <button
+ onClick={handleSave}
+ disabled={isSaving}
+ className="flex items-center gap-1.5 bg-indigo-600 hover:bg-indigo-500 disabled:opacity-50 text-white px-3 py-1 rounded-lg text-xs font-medium transition-colors shadow-2xs"
+ >
+ {savedSuccess ? <CheckIcon className="w-3.5 h-3.5 text-emerald-300" /> : null}
+ <span>{savedSuccess ? "Saved to Supabase" : isSaving ? "Saving..." : "Save Page"}</span>
+ </button>
+ </div>
+ </div>
+
+ {/* Canvas Main Body */}
+ <div className="flex-1 flex overflow-hidden">
+ {/* Markdown Text Area */}
+ {(viewMode === "edit" || viewMode === "split") && (
+ <div className={`h-full flex flex-col ${viewMode === "split" ? "w-1/2 border-r border-zinc-200 dark:border-zinc-800" : "w-full"}`}>
+ <textarea
+ value={content}
+ onChange={(e) => setContent(e.target.value)}
+ placeholder="Start writing markdown content..."
+ className="flex-1 w-full bg-white dark:bg-[#151518] text-zinc-900 dark:text-zinc-200 p-6 text-xs leading-relaxed resize-none focus:outline-none"
+ />
+ </div>
+ )}
+
+ {/* Markdown Rendered Live Preview */}
+ {(viewMode === "preview" || viewMode === "split") && (
+ <div className={`h-full overflow-y-auto p-8 bg-[#fafafa] dark:bg-[#18181c] ${viewMode === "split" ? "w-1/2" : "w-full"}`}>
+ <div
+ className="markdown-body max-w-2xl mx-auto"
+ dangerouslySetInnerHTML={{ __html: renderSimpleMarkdown(content) }}
+ />
+ </div>
+ )}
+ </div>
+ </div>
+ ) : (
+ <div className="flex-1 flex items-center justify-center text-zinc-400 dark:text-zinc-500 text-sm">
+ Select or create a living page to collaborate.
+ </div>
+ )}
+ </div>
+ );
+}
diff --git a/client/src/components/Sidebar.js b/client/src/components/Sidebar.js
new file mode 100644
index 0000000..78abee8
--- /dev/null
+++ b/client/src/components/Sidebar.js
@@ -0,0 +1,275 @@
+"use client";
+
+import React, { useState } from "react";
+import { FolderIcon, PlusIcon, SearchIcon, PinIcon, DatabaseIcon, SparklesIcon } from "./Icons";
+import ThemeToggle from "./ThemeToggle";
+import CustomDropdown from "./CustomDropdown";
+
+const ICON_OPTIONS = [
+ { label: "πŸš€ Launch", value: "πŸš€" },
+ { label: "🧠 Research", value: "🧠" },
+ { label: "πŸ’‘ Ideation", value: "πŸ’‘" },
+ { label: "⚑ Performance", value: "⚑" },
+ { label: "🎨 Design", value: "🎨" },
+ { label: "πŸ“Š Analytics", value: "πŸ“Š" },
+];
+
+const COLOR_OPTIONS = [
+ { label: "Indigo", value: "indigo" },
+ { label: "Emerald", value: "emerald" },
+ { label: "Amber", value: "amber" },
+ { label: "Rose", value: "rose" },
+ { label: "Sky", value: "sky" },
+];
+
+export default function Sidebar({
+ spaces = [],
+ activeSpaceId,
+ onSelectSpace,
+ onCreateSpace,
+ backendOnline,
+}) {
+ const [search, setSearch] = useState("");
+ const [showModal, setShowModal] = useState(false);
+ const [newSpaceName, setNewSpaceName] = useState("");
+ const [newSpaceDesc, setNewSpaceDesc] = useState("");
+ const [newSpaceColor, setNewSpaceColor] = useState("indigo");
+ const [newSpaceIcon, setNewSpaceIcon] = useState("πŸš€");
+
+ const filteredSpaces = spaces.filter((s) =>
+ s.name.toLowerCase().includes(search.toLowerCase()) ||
+ (s.description && s.description.toLowerCase().includes(search.toLowerCase()))
+ );
+
+ const pinnedSpaces = filteredSpaces.filter((s) => s.pinned);
+ const otherSpaces = filteredSpaces.filter((s) => !s.pinned);
+
+ const handleCreate = (e) => {
+ e.preventDefault();
+ if (!newSpaceName.trim()) return;
+ onCreateSpace({
+ name: newSpaceName.trim(),
+ description: newSpaceDesc.trim(),
+ color: newSpaceColor,
+ icon: newSpaceIcon || "πŸ“",
+ pinned: false,
+ });
+ setNewSpaceName("");
+ setNewSpaceDesc("");
+ setShowModal(false);
+ };
+
+ return (
+ <aside className="w-72 bg-[#f7f7f8] dark:bg-[#18181b] border-r border-zinc-200 dark:border-zinc-800 flex flex-col h-screen select-none transition-colors duration-200">
+ {/* Brand Header */}
+ <div className="p-4 border-b border-zinc-200 dark:border-zinc-800 flex items-center justify-between">
+ <div className="flex items-center gap-2.5">
+ <div className="w-8 h-8 rounded-lg bg-gradient-to-tr from-indigo-600 to-violet-500 flex items-center justify-center text-white shadow-md">
+ <SparklesIcon className="w-4 h-4" />
+ </div>
+ <div>
+ <div className="font-semibold text-sm tracking-tight text-zinc-900 dark:text-zinc-100 flex items-center gap-1.5">
+ <span>OpenSpaces</span>
+ <span className="text-[10px] uppercase font-bold tracking-wider px-1.5 py-0.5 rounded bg-zinc-200 dark:bg-zinc-800 text-zinc-600 dark:text-zinc-400 border border-zinc-300 dark:border-zinc-700">
+ OSS
+ </span>
+ </div>
+ <p className="text-[11px] text-zinc-500 dark:text-zinc-400">ChatGPT Spaces Replica</p>
+ </div>
+ </div>
+
+ <button
+ onClick={() => setShowModal(true)}
+ className="p-1.5 rounded-md hover:bg-zinc-200 dark:hover:bg-zinc-800 text-zinc-600 dark:text-zinc-300 hover:text-zinc-900 dark:hover:text-white transition-colors"
+ title="Create New Space"
+ >
+ <PlusIcon className="w-4 h-4" />
+ </button>
+ </div>
+
+ {/* Supabase & Backend Status */}
+ <div className="px-4 py-2 bg-zinc-100/70 dark:bg-zinc-900/60 border-b border-zinc-200 dark:border-zinc-800/80 flex items-center justify-between text-xs">
+ <div className="flex items-center gap-1.5 text-zinc-600 dark:text-zinc-400">
+ <DatabaseIcon className="w-3.5 h-3.5 text-emerald-500 dark:text-emerald-400" />
+ <span className="text-[11px] font-medium">Supabase DB</span>
+ </div>
+ <div className="flex items-center gap-1.5">
+ <span className={`w-2 h-2 rounded-full ${backendOnline ? "bg-emerald-500 dark:bg-emerald-400 animate-pulse" : "bg-amber-500"}`} />
+ <span className="text-[10px] text-zinc-600 dark:text-zinc-400">{backendOnline ? "Port 8000 Live" : "Connecting..."}</span>
+ </div>
+ </div>
+
+ {/* Search Input */}
+ <div className="p-3">
+ <div className="relative">
+ <SearchIcon className="w-3.5 h-3.5 absolute left-3 top-2.5 text-zinc-400 dark:text-zinc-500" />
+ <input
+ type="text"
+ placeholder="Search spaces..."
+ value={search}
+ onChange={(e) => setSearch(e.target.value)}
+ className="w-full bg-white dark:bg-zinc-900/80 border border-zinc-300 dark:border-zinc-800 rounded-lg pl-8 pr-3 py-1.5 text-xs text-zinc-900 dark:text-zinc-200 placeholder-zinc-400 dark:placeholder-zinc-500 focus:outline-none focus:border-indigo-500 transition-colors shadow-2xs"
+ />
+ </div>
+ </div>
+
+ {/* Spaces List */}
+ <div className="flex-1 overflow-y-auto px-3 space-y-4">
+ {/* Pinned Spaces */}
+ {pinnedSpaces.length > 0 && (
+ <div>
+ <div className="text-[10px] font-semibold text-zinc-500 dark:text-zinc-500 uppercase tracking-wider px-2 mb-1 flex items-center gap-1">
+ <PinIcon className="w-3 h-3 text-amber-500" />
+ <span>Pinned Spaces</span>
+ </div>
+ <div className="space-y-1">
+ {pinnedSpaces.map((s) => (
+ <button
+ key={s.id}
+ onClick={() => onSelectSpace(s.id)}
+ className={`w-full text-left p-2 rounded-lg text-xs transition-all flex items-center gap-2.5 ${
+ activeSpaceId === s.id
+ ? "bg-indigo-100/70 dark:bg-indigo-600/20 text-indigo-900 dark:text-indigo-200 border border-indigo-300/80 dark:border-indigo-500/30 shadow-2xs"
+ : "hover:bg-zinc-200/60 dark:hover:bg-zinc-800/60 text-zinc-700 dark:text-zinc-300"
+ }`}
+ >
+ <span className="text-base">{s.icon || "πŸ“"}</span>
+ <div className="flex-1 min-w-0">
+ <div className="font-medium truncate">{s.name}</div>
+ <div className="text-[10px] text-zinc-500 dark:text-zinc-500 flex items-center gap-2">
+ <span>{s.pages_count || 0} pages</span>
+ <span>β€’</span>
+ <span>{s.agents?.length || 0} dots</span>
+ </div>
+ </div>
+ </button>
+ ))}
+ </div>
+ </div>
+ )}
+
+ {/* All Spaces */}
+ <div>
+ <div className="text-[10px] font-semibold text-zinc-500 uppercase tracking-wider px-2 mb-1">
+ All Spaces ({filteredSpaces.length})
+ </div>
+ <div className="space-y-1">
+ {otherSpaces.map((s) => (
+ <button
+ key={s.id}
+ onClick={() => onSelectSpace(s.id)}
+ className={`w-full text-left p-2 rounded-lg text-xs transition-all flex items-center gap-2.5 ${
+ activeSpaceId === s.id
+ ? "bg-indigo-100/70 dark:bg-indigo-600/20 text-indigo-900 dark:text-indigo-200 border border-indigo-300/80 dark:border-indigo-500/30 shadow-2xs"
+ : "hover:bg-zinc-200/60 dark:hover:bg-zinc-800/60 text-zinc-700 dark:text-zinc-300"
+ }`}
+ >
+ <span className="text-base">{s.icon || "πŸ“"}</span>
+ <div className="flex-1 min-w-0">
+ <div className="font-medium truncate">{s.name}</div>
+ <div className="text-[10px] text-zinc-500 flex items-center gap-2">
+ <span>{s.pages_count || 0} pages</span>
+ <span>β€’</span>
+ <span>{s.agents?.length || 0} dots</span>
+ </div>
+ </div>
+ </button>
+ ))}
+ </div>
+ </div>
+ </div>
+
+ {/* User Footer with Theme Toggle */}
+ <div className="p-3 border-t border-zinc-200 dark:border-zinc-800 flex items-center justify-between text-xs bg-white/40 dark:bg-transparent">
+ <div className="flex items-center gap-2">
+ <div className="w-7 h-7 rounded-full bg-gradient-to-tr from-zinc-300 to-zinc-400 dark:from-zinc-700 dark:to-zinc-600 flex items-center justify-center font-medium text-zinc-800 dark:text-zinc-200 text-xs shadow-2xs">
+ OP
+ </div>
+ <div>
+ <div className="font-medium text-zinc-800 dark:text-zinc-200 leading-tight">OpenSpaces Team</div>
+ <div className="text-[10px] text-zinc-500">Pro / Self-Hosted</div>
+ </div>
+ </div>
+
+ {/* Theme Toggle Component */}
+ <ThemeToggle />
+ </div>
+
+ {/* New Space Modal */}
+ {showModal && (
+ <div className="fixed inset-0 z-50 bg-black/60 dark:bg-black/75 backdrop-blur-xs flex items-center justify-center p-4">
+ <div className="bg-white dark:bg-[#1e1e24] border border-zinc-200 dark:border-zinc-700 rounded-xl w-full max-w-md p-5 shadow-2xl transition-colors">
+ <h3 className="text-base font-semibold text-zinc-900 dark:text-zinc-100 mb-1">Create New Space</h3>
+ <p className="text-xs text-zinc-500 dark:text-zinc-400 mb-4">
+ A shared workspace for pages, persistent chat context, and autonomous Dot agents.
+ </p>
+
+ <form onSubmit={handleCreate} className="space-y-3.5">
+ <div>
+ <label className="block text-xs font-medium text-zinc-700 dark:text-zinc-300 mb-1">Space Name</label>
+ <input
+ type="text"
+ required
+ placeholder="e.g. 2026 Strategy & Roadmap"
+ value={newSpaceName}
+ onChange={(e) => setNewSpaceName(e.target.value)}
+ className="w-full bg-zinc-50 dark:bg-zinc-900 border border-zinc-300 dark:border-zinc-700 rounded-lg px-3 py-2 text-xs text-zinc-900 dark:text-zinc-100 focus:outline-none focus:border-indigo-500"
+ />
+ </div>
+
+ <div>
+ <label className="block text-xs font-medium text-zinc-700 dark:text-zinc-300 mb-1">Description</label>
+ <textarea
+ rows={2}
+ placeholder="Brief summary of what this space is about..."
+ value={newSpaceDesc}
+ onChange={(e) => setNewSpaceDesc(e.target.value)}
+ className="w-full bg-zinc-50 dark:bg-zinc-900 border border-zinc-300 dark:border-zinc-700 rounded-lg px-3 py-2 text-xs text-zinc-900 dark:text-zinc-100 focus:outline-none focus:border-indigo-500"
+ />
+ </div>
+
+ <div className="grid grid-cols-2 gap-3">
+ <div>
+ <label className="block text-xs font-medium text-zinc-700 dark:text-zinc-300 mb-1">Icon</label>
+ <CustomDropdown
+ value={newSpaceIcon}
+ onChange={setNewSpaceIcon}
+ options={ICON_OPTIONS}
+ className="w-full"
+ buttonClassName="w-full justify-between"
+ />
+ </div>
+ <div>
+ <label className="block text-xs font-medium text-zinc-700 dark:text-zinc-300 mb-1">Theme Color</label>
+ <CustomDropdown
+ value={newSpaceColor}
+ onChange={setNewSpaceColor}
+ options={COLOR_OPTIONS}
+ className="w-full"
+ buttonClassName="w-full justify-between"
+ />
+ </div>
+ </div>
+
+ <div className="flex justify-end gap-2 pt-3 border-t border-zinc-200 dark:border-zinc-800">
+ <button
+ type="button"
+ onClick={() => setShowModal(false)}
+ className="px-3 py-1.5 rounded-lg text-xs text-zinc-600 dark:text-zinc-400 hover:text-zinc-900 dark:hover:text-zinc-200 transition-colors"
+ >
+ Cancel
+ </button>
+ <button
+ type="submit"
+ className="px-4 py-1.5 bg-indigo-600 hover:bg-indigo-500 text-white rounded-lg text-xs font-medium transition-colors shadow-sm"
+ >
+ Create Space
+ </button>
+ </div>
+ </form>
+ </div>
+ </div>
+ )}
+ </aside>
+ );
+}
diff --git a/client/src/components/SpaceChat.js b/client/src/components/SpaceChat.js
new file mode 100644
index 0000000..70a7476
--- /dev/null
+++ b/client/src/components/SpaceChat.js
@@ -0,0 +1,153 @@
+"use client";
+
+import React, { useState } from "react";
+import { SendIcon, SparklesIcon, BotIcon, PageIcon } from "./Icons";
+
+export default function SpaceChat({
+ messages = [],
+ onSendMessage,
+ agents = [],
+ pages = [],
+ onNavigateToPage,
+}) {
+ const [inputText, setInputText] = useState("");
+ const [selectedAgent, setSelectedAgent] = useState("");
+
+ const handleSubmit = (e) => {
+ e.preventDefault();
+ if (!inputText.trim()) return;
+
+ let finalContent = inputText.trim();
+ if (selectedAgent) {
+ finalContent = `@${selectedAgent}: ${finalContent}`;
+ }
+
+ onSendMessage({
+ content: finalContent,
+ sender_type: "user",
+ sender_name: "You",
+ });
+
+ setInputText("");
+ setSelectedAgent("");
+ };
+
+ return (
+ <div className="flex-1 flex flex-col h-full bg-zinc-50 dark:bg-[#151518] transition-colors duration-200">
+ {/* Messages Scroll Area */}
+ <div className="flex-1 overflow-y-auto p-6 space-y-4 max-w-4xl mx-auto w-full">
+ {messages.length === 0 ? (
+ <div className="text-center py-16 text-zinc-400 dark:text-zinc-500 text-sm">
+ <SparklesIcon className="w-8 h-8 mx-auto mb-2 text-indigo-500 dark:text-indigo-400 opacity-60" />
+ <p className="font-medium text-zinc-700 dark:text-zinc-400">Welcome to your Space Chat</p>
+ <p className="text-xs text-zinc-500 dark:text-zinc-500 mt-1 max-w-md mx-auto">
+ Discuss ideas, ask questions, or @mention your autonomous Dot agents to generate and iterate on living documents.
+ </p>
+ </div>
+ ) : (
+ messages.map((msg) => {
+ const isAgent = msg.sender_type === "agent";
+ const isUser = msg.sender_type === "user";
+
+ return (
+ <div
+ key={msg.id}
+ className={`flex gap-3 text-xs ${isUser ? "flex-row-reverse" : "flex-row"}`}
+ >
+ {/* Avatar */}
+ <div
+ className={`w-7 h-7 rounded-lg flex items-center justify-center shrink-0 text-xs font-semibold ${
+ isAgent
+ ? "bg-gradient-to-tr from-indigo-600 to-violet-600 text-white shadow-2xs"
+ : "bg-zinc-200 dark:bg-zinc-800 text-zinc-700 dark:text-zinc-300 border border-zinc-300 dark:border-zinc-700"
+ }`}
+ >
+ {isAgent ? "⚑" : "U"}
+ </div>
+
+ {/* Message Bubble */}
+ <div
+ className={`max-w-xl rounded-2xl px-4 py-3 shadow-2xs ${
+ isUser
+ ? "bg-indigo-600 text-white"
+ : "bg-white dark:bg-[#202025] text-zinc-800 dark:text-zinc-200 border border-zinc-200 dark:border-zinc-800"
+ }`}
+ >
+ <div className="flex items-center justify-between gap-4 mb-1">
+ <span className="font-semibold text-[11px] opacity-80">
+ {msg.sender_name}
+ </span>
+ <span className="text-[10px] opacity-50">
+ {msg.timestamp ? new Date(msg.timestamp).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' }) : "now"}
+ </span>
+ </div>
+
+ <p className="whitespace-pre-wrap leading-relaxed">{msg.content}</p>
+
+ {/* Referenced Page Link if any */}
+ {msg.referenced_page_id && (
+ <div className="mt-2.5 pt-2 border-t border-zinc-200 dark:border-zinc-700/40">
+ <button
+ onClick={() => onNavigateToPage(msg.referenced_page_id)}
+ className="inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md bg-zinc-100 hover:bg-zinc-200 dark:bg-zinc-900/60 dark:hover:bg-zinc-900 text-indigo-700 dark:text-indigo-300 text-[11px] transition-colors border border-indigo-200 dark:border-indigo-500/20"
+ >
+ <PageIcon className="w-3.5 h-3.5" />
+ <span>Open referenced page</span>
+ </button>
+ </div>
+ )}
+ </div>
+ </div>
+ );
+ })
+ )}
+ </div>
+
+ {/* Input bar */}
+ <div className="p-4 border-t border-zinc-200 dark:border-zinc-800 bg-white dark:bg-[#19191d] transition-colors">
+ <div className="max-w-4xl mx-auto space-y-2">
+ {/* Quick Tag Dot Agent pill */}
+ <div className="flex items-center gap-2">
+ <span className="text-[11px] text-zinc-500 dark:text-zinc-400">Mention Dot:</span>
+ {agents.map((agent) => (
+ <button
+ key={agent.id}
+ type="button"
+ onClick={() => setSelectedAgent(agent.name)}
+ className={`text-[11px] px-2 py-0.5 rounded-full transition-colors ${
+ selectedAgent === agent.name
+ ? "bg-indigo-600 text-white"
+ : "bg-zinc-100 dark:bg-zinc-800 text-zinc-700 dark:text-zinc-400 hover:text-zinc-900 dark:hover:text-zinc-200"
+ }`}
+ >
+ @{agent.name.split(" ")[0]}
+ </button>
+ ))}
+ </div>
+
+ <form onSubmit={handleSubmit} className="flex gap-2">
+ <input
+ type="text"
+ value={inputText}
+ onChange={(e) => setInputText(e.target.value)}
+ placeholder={
+ selectedAgent
+ ? `Message directed to @${selectedAgent}...`
+ : "Message the space or ask Dots to assist..."
+ }
+ className="flex-1 bg-zinc-100 dark:bg-zinc-900/90 border border-zinc-300 dark:border-zinc-700 rounded-xl px-4 py-2.5 text-xs text-zinc-900 dark:text-zinc-100 placeholder-zinc-400 dark:placeholder-zinc-500 focus:outline-none focus:border-indigo-500"
+ />
+ <button
+ type="submit"
+ disabled={!inputText.trim()}
+ className="px-4 py-2.5 bg-indigo-600 hover:bg-indigo-500 disabled:opacity-40 text-white rounded-xl text-xs font-medium transition-colors flex items-center gap-1.5 shadow-2xs"
+ >
+ <SendIcon className="w-3.5 h-3.5" />
+ <span>Send</span>
+ </button>
+ </form>
+ </div>
+ </div>
+ </div>
+ );
+}
diff --git a/client/src/components/SpaceHeader.js b/client/src/components/SpaceHeader.js
new file mode 100644
index 0000000..85da6bb
--- /dev/null
+++ b/client/src/components/SpaceHeader.js
@@ -0,0 +1,121 @@
+"use client";
+
+import React from "react";
+import { PageIcon, ChatIcon, BotIcon, MicIcon, UsersIcon, PinIcon } from "./Icons";
+
+export default function SpaceHeader({
+ space,
+ activeTab,
+ onTabChange,
+ onTogglePin,
+ onOpenAgentModal,
+}) {
+ if (!space) return null;
+
+ const tabs = [
+ { id: "pages", label: "Pages (Canvas)", icon: PageIcon, count: space.pages_count },
+ { id: "chat", label: "Space Chat", icon: ChatIcon, count: space.messages_count },
+ { id: "agents", label: "Dots (AI Agents)", icon: BotIcon, count: space.agents?.length || 0 },
+ { id: "meetings", label: "Meeting Notes", icon: MicIcon },
+ ];
+
+ return (
+ <header className="border-b border-zinc-200 dark:border-zinc-800 bg-white dark:bg-[#19191d] px-6 pt-5 select-none transition-colors duration-200">
+ {/* Top Space Bar */}
+ <div className="flex items-start justify-between mb-4">
+ <div className="flex items-center gap-3.5">
+ <div className="text-3xl p-2.5 rounded-xl bg-zinc-100 dark:bg-zinc-800/80 border border-zinc-200 dark:border-zinc-700/60 shadow-2xs flex items-center justify-center">
+ {space.icon || "πŸ“"}
+ </div>
+ <div>
+ <div className="flex items-center gap-2">
+ <h1 className="text-lg font-bold text-zinc-900 dark:text-zinc-100">{space.name}</h1>
+ <button
+ onClick={onTogglePin}
+ title={space.pinned ? "Unpin space" : "Pin space"}
+ className={`p-1 rounded hover:bg-zinc-100 dark:hover:bg-zinc-800 transition-colors ${
+ space.pinned ? "text-amber-500" : "text-zinc-400 hover:text-zinc-600 dark:hover:text-zinc-300"
+ }`}
+ >
+ <PinIcon className="w-3.5 h-3.5" />
+ </button>
+ </div>
+ <p className="text-xs text-zinc-500 dark:text-zinc-400 mt-0.5 line-clamp-1 max-w-2xl">
+ {space.description || "Persistent collaborative workspace for documents and autonomous agents."}
+ </p>
+ </div>
+ </div>
+
+ {/* Right side: Active Dots & Members */}
+ <div className="flex items-center gap-3">
+ {/* Active Dot Agents Pills */}
+ <div className="flex items-center gap-1.5 bg-zinc-100 dark:bg-zinc-900/90 border border-zinc-200 dark:border-zinc-800 rounded-full px-2.5 py-1">
+ <span className="text-[10px] uppercase font-bold text-indigo-600 dark:text-indigo-400 tracking-wider flex items-center gap-1">
+ <span className="w-1.5 h-1.5 rounded-full bg-indigo-500 animate-ping" />
+ Dots
+ </span>
+ <div className="flex items-center gap-1">
+ {(space.agents || []).map((dot) => (
+ <button
+ key={dot.id}
+ onClick={() => onOpenAgentModal(dot)}
+ className="flex items-center gap-1 bg-white dark:bg-zinc-800 border border-zinc-200 dark:border-transparent hover:bg-zinc-50 dark:hover:bg-zinc-700/80 text-zinc-700 dark:text-zinc-200 px-2 py-0.5 rounded-full text-[11px] transition-colors shadow-2xs"
+ title={`Click to prompt ${dot.name}`}
+ >
+ <span>{dot.avatar === "agent-bolt" ? "⚑" : dot.avatar === "agent-pen" ? "✍️" : dot.avatar === "agent-ruler" ? "πŸ“" : "πŸ€–"}</span>
+ <span className="font-medium">{dot.name.split(" ")[0]}</span>
+ </button>
+ ))}
+ </div>
+ </div>
+
+ {/* Members */}
+ <div className="flex items-center -space-x-1.5">
+ {(space.members || []).map((m, idx) => (
+ <div
+ key={m.id || idx}
+ className="w-6 h-6 rounded-full bg-zinc-200 dark:bg-zinc-700 border-2 border-white dark:border-zinc-900 flex items-center justify-center text-[10px] font-semibold text-zinc-700 dark:text-zinc-300 shadow-2xs"
+ title={`${m.name} (${m.role})`}
+ >
+ {m.name.charAt(0)}
+ </div>
+ ))}
+ </div>
+ </div>
+ </div>
+
+ {/* Tabs navigation */}
+ <div className="flex items-center gap-1">
+ {tabs.map((tab) => {
+ const Icon = tab.icon;
+ const isActive = activeTab === tab.id;
+ return (
+ <button
+ key={tab.id}
+ onClick={() => onTabChange(tab.id)}
+ className={`flex items-center gap-2 px-3.5 py-2.5 text-xs font-medium border-b-2 transition-colors ${
+ isActive
+ ? "border-indigo-600 dark:border-indigo-500 text-indigo-700 dark:text-indigo-300 bg-indigo-50/60 dark:bg-indigo-500/5 font-semibold"
+ : "border-transparent text-zinc-500 dark:text-zinc-400 hover:text-zinc-900 dark:hover:text-zinc-200 hover:border-zinc-300 dark:hover:border-zinc-700"
+ }`}
+ >
+ <Icon className="w-4 h-4" />
+ <span>{tab.label}</span>
+ {typeof tab.count === "number" && (
+ <span
+ className={`text-[10px] px-1.5 py-0.2 rounded-full ${
+ isActive
+ ? "bg-indigo-100 dark:bg-indigo-500/20 text-indigo-800 dark:text-indigo-300"
+ : "bg-zinc-100 dark:bg-zinc-800 text-zinc-600 dark:text-zinc-400"
+ }`}
+ >
+ {tab.count}
+ </span>
+ )}
+ </button>
+ );
+ })}
+ </div>
+ </header>
+ );
+}
diff --git a/client/src/components/SpaceLibrary.js b/client/src/components/SpaceLibrary.js
new file mode 100644
index 0000000..2167c65
--- /dev/null
+++ b/client/src/components/SpaceLibrary.js
@@ -0,0 +1,300 @@
+"use client";
+
+import React, { useState, useMemo } from "react";
+import {
+ PageIcon,
+ PlusIcon,
+ SearchIcon,
+ GridIcon,
+ ListIcon,
+ ArrowUpRightIcon,
+ TrashIcon,
+} from "./Icons";
+import CustomDropdown from "./CustomDropdown";
+
+const SORT_OPTIONS = [
+ { label: "Recently edited", value: "recent" },
+ { label: "Name A–Z", value: "name" },
+];
+
+// Helper to extract clean plaintext preview from Markdown content (modeled on OpenDots)
+export function pageExcerpt(content = "") {
+ if (!content) return "";
+ return content
+ .replace(/^---\r?\n[\s\S]*?\r?\n---(?:\r?\n|$)/, "")
+ .replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi, "")
+ .replace(/<[^>]+>/g, " ")
+ .replace(/^\s*(?:[-+*]|\d+[.)])\s+(?:\[[ xX]\]\s+)?/gm, "")
+ .replace(/```[\s\S]*?```/g, "Code block")
+ .replace(/!?\[([^\]]+)\]\([^)]*\)/g, "$1")
+ .replace(/[#>*_`|~]/g, "")
+ .replace(/\s+/g, " ")
+ .trim()
+ .slice(0, 140);
+}
+
+export default function SpaceLibrary({
+ space,
+ pages = [],
+ onSelectPage,
+ onNewPage,
+ onDeletePage,
+ isCreatingPage = false,
+}) {
+ const [query, setQuery] = useState("");
+ const [layout, setLayout] = useState("grid"); // 'grid' | 'list'
+ const [sort, setSort] = useState("recent"); // 'recent' | 'name'
+
+ const filtered = useMemo(() => {
+ return pages
+ .filter((page) =>
+ `${page.title} ${page.content || ""}`
+ .toLowerCase()
+ .includes(query.toLowerCase().trim())
+ )
+ .sort((a, b) => {
+ if (sort === "name") {
+ return (a.title || "").localeCompare(b.title || "");
+ }
+ const timeA = new Date(a.updated_at || a.created_at || 0).getTime();
+ const timeB = new Date(b.updated_at || b.created_at || 0).getTime();
+ return timeB - timeA || (a.title || "").localeCompare(b.title || "");
+ });
+ }, [pages, query, sort]);
+
+ const formatDate = (dateString) => {
+ if (!dateString) return "Recently";
+ try {
+ const d = new Date(dateString);
+ return d.toLocaleDateString(undefined, {
+ month: "short",
+ day: "numeric",
+ });
+ } catch {
+ return "Recently";
+ }
+ };
+
+ return (
+ <div className="flex-1 flex flex-col h-full bg-[#fbfbfa] dark:bg-[#141416] text-zinc-900 dark:text-zinc-100 overflow-y-auto select-none transition-colors duration-150">
+ <div className="max-w-5xl mx-auto w-full p-6 sm:p-8 space-y-6">
+ {/* Header (modeled on OpenDots library-heading) */}
+ <div className="flex flex-col sm:flex-row sm:items-center justify-between gap-4 pb-4 border-b border-zinc-200/80 dark:border-zinc-800/80">
+ <div>
+ <div className="text-[11px] font-bold uppercase tracking-wider text-indigo-600 dark:text-indigo-400 mb-1 flex items-center gap-1.5">
+ <span>{space?.icon || "πŸ“"}</span>
+ <span>SPACE</span>
+ </div>
+ <h1 className="text-2xl sm:text-3xl font-bold tracking-tight text-zinc-900 dark:text-zinc-100">
+ {space?.name || "Space Library"}
+ </h1>
+ <p className="text-sm text-zinc-500 dark:text-zinc-400 mt-1 max-w-xl leading-relaxed">
+ {space?.description ||
+ "A persistent home for living pages, autonomous agent research, and collaborative documents."}
+ </p>
+ </div>
+
+ <button
+ onClick={!isCreatingPage ? onNewPage : undefined}
+ disabled={isCreatingPage}
+ className={`inline-flex items-center justify-center gap-2 px-4 py-2 rounded-xl font-medium text-xs shadow-sm transition-all shrink-0 ${
+ isCreatingPage
+ ? "bg-zinc-800 text-zinc-400 dark:bg-zinc-200 dark:text-zinc-500 cursor-wait opacity-70"
+ : "bg-zinc-900 hover:bg-zinc-800 text-white dark:bg-white dark:hover:bg-zinc-100 dark:text-zinc-900 hover:scale-[1.02] cursor-pointer"
+ }`}
+ >
+ {isCreatingPage ? (
+ <div className="w-3.5 h-3.5 border-2 border-white dark:border-zinc-900 border-t-transparent rounded-full animate-spin" />
+ ) : (
+ <PlusIcon className="w-4 h-4" />
+ )}
+ <span>{isCreatingPage ? "Creating..." : "New page"}</span>
+ </button>
+ </div>
+
+ {/* Toolbar: Search, Sort, View Toggle (modeled on OpenDots library-tools) */}
+ <div className="flex flex-wrap items-center justify-between gap-3">
+ <div className="flex items-center gap-2 flex-1 max-w-md">
+ <div className="relative w-full">
+ <SearchIcon className="w-4 h-4 text-zinc-400 absolute left-3 top-2.5" />
+ <input
+ type="text"
+ placeholder="Search pages in this space..."
+ value={query}
+ onChange={(e) => setQuery(e.target.value)}
+ className="w-full bg-white dark:bg-[#1a1a20] border border-zinc-200 dark:border-zinc-800 rounded-xl pl-9 pr-3 py-2 text-xs text-zinc-900 dark:text-zinc-100 placeholder-zinc-400 focus:outline-none focus:border-zinc-400 dark:focus:border-zinc-600 transition-colors shadow-2xs"
+ />
+ </div>
+ </div>
+
+ <div className="flex items-center gap-2 shrink-0">
+ {/* Sort selector */}
+ <CustomDropdown
+ value={sort}
+ onChange={setSort}
+ options={SORT_OPTIONS}
+ size="sm"
+ buttonClassName="bg-white dark:bg-[#1a1a20] border-zinc-200 dark:border-zinc-800 text-zinc-700 dark:text-zinc-300 py-1.5 px-3 rounded-xl shadow-2xs text-xs"
+ align="right"
+ />
+
+ {/* Grid / List view toggle */}
+ <div className="flex items-center bg-zinc-100 dark:bg-zinc-800 p-0.5 rounded-xl border border-zinc-200 dark:border-zinc-700/80">
+ <button
+ type="button"
+ onClick={() => setLayout("grid")}
+ title="Grid view"
+ className={`p-1.5 rounded-lg transition-colors cursor-pointer ${
+ layout === "grid"
+ ? "bg-white dark:bg-zinc-700 text-zinc-900 dark:text-white shadow-2xs"
+ : "text-zinc-400 hover:text-zinc-700 dark:hover:text-zinc-200"
+ }`}
+ >
+ <GridIcon className="w-4 h-4" />
+ </button>
+ <button
+ type="button"
+ onClick={() => setLayout("list")}
+ title="List view"
+ className={`p-1.5 rounded-lg transition-colors cursor-pointer ${
+ layout === "list"
+ ? "bg-white dark:bg-zinc-700 text-zinc-900 dark:text-white shadow-2xs"
+ : "text-zinc-400 hover:text-zinc-700 dark:hover:text-zinc-200"
+ }`}
+ >
+ <ListIcon className="w-4 h-4" />
+ </button>
+ </div>
+ </div>
+ </div>
+
+ {/* Section label & count */}
+ <div className="flex items-center justify-between text-xs text-zinc-400 font-medium px-1">
+ <span>{query ? "Search results" : "All documents"}</span>
+ <span>
+ {filtered.length} {filtered.length === 1 ? "page" : "pages"}
+ </span>
+ </div>
+
+ {/* Pages Grid or List */}
+ {filtered.length > 0 ? (
+ layout === "grid" ? (
+ /* Grid View Cards */
+ <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4">
+ {filtered.map((page) => (
+ <div
+ key={page.id}
+ onClick={() => onSelectPage(page.id)}
+ className="group relative flex flex-col justify-between p-4 rounded-2xl bg-white dark:bg-[#1a1a20] border border-zinc-200/90 dark:border-zinc-800 hover:border-zinc-300 dark:hover:border-zinc-700 transition-all hover:shadow-md cursor-pointer select-none text-left"
+ >
+ <div className="space-y-2">
+ <div className="flex items-center justify-between">
+ <span className="w-8 h-8 rounded-xl bg-zinc-100 dark:bg-zinc-800 text-zinc-700 dark:text-zinc-300 flex items-center justify-center text-sm font-semibold">
+ {page.icon || "πŸ“„"}
+ </span>
+ <ArrowUpRightIcon className="w-4 h-4 text-zinc-400 group-hover:text-zinc-900 dark:group-hover:text-zinc-100 transition-colors opacity-0 group-hover:opacity-100" />
+ </div>
+
+ <h3 className="font-semibold text-sm text-zinc-900 dark:text-zinc-100 tracking-tight line-clamp-1">
+ {page.title || "Untitled page"}
+ </h3>
+
+ <p className="text-xs text-zinc-500 dark:text-zinc-400 line-clamp-2 leading-relaxed">
+ {pageExcerpt(page.content) ||
+ "An empty page, ready to write and edit."}
+ </p>
+ </div>
+
+ <div className="flex items-center justify-between pt-3 mt-3 border-t border-zinc-100 dark:border-zinc-800/80 text-[11px] text-zinc-400">
+ <span>Edited {formatDate(page.updated_at)}</span>
+
+ {onDeletePage && (
+ <button
+ type="button"
+ onClick={(e) => {
+ e.stopPropagation();
+ onDeletePage(page.id);
+ }}
+ title="Delete page"
+ className="opacity-0 group-hover:opacity-100 p-1 rounded hover:bg-zinc-100 dark:hover:bg-zinc-800 text-zinc-400 hover:text-red-500 transition-opacity"
+ >
+ <TrashIcon className="w-3.5 h-3.5" />
+ </button>
+ )}
+ </div>
+ </div>
+ ))}
+ </div>
+ ) : (
+ /* List View Rows */
+ <div className="bg-white dark:bg-[#1a1a20] border border-zinc-200/90 dark:border-zinc-800 rounded-2xl overflow-hidden divide-y divide-zinc-100 dark:divide-zinc-800">
+ {filtered.map((page) => (
+ <div
+ key={page.id}
+ onClick={() => onSelectPage(page.id)}
+ className="group flex items-center justify-between p-3.5 hover:bg-zinc-50 dark:hover:bg-zinc-800/50 transition-colors cursor-pointer text-xs"
+ >
+ <div className="flex items-center gap-3 min-w-0 flex-1 pr-4">
+ <span className="w-7 h-7 rounded-lg bg-zinc-100 dark:bg-zinc-800 flex items-center justify-center text-sm shrink-0">
+ {page.icon || "πŸ“„"}
+ </span>
+ <div className="min-w-0">
+ <div className="font-semibold text-zinc-900 dark:text-zinc-100 truncate">
+ {page.title || "Untitled page"}
+ </div>
+ <div className="text-zinc-400 truncate text-[11px]">
+ {pageExcerpt(page.content) || "No additional text"}
+ </div>
+ </div>
+ </div>
+
+ <div className="flex items-center gap-3 shrink-0 text-zinc-400 text-[11px]">
+ <span>Edited {formatDate(page.updated_at)}</span>
+ <ArrowUpRightIcon className="w-3.5 h-3.5 text-zinc-400 group-hover:text-zinc-900 dark:group-hover:text-zinc-100 opacity-0 group-hover:opacity-100 transition-opacity" />
+ {onDeletePage && (
+ <button
+ type="button"
+ onClick={(e) => {
+ e.stopPropagation();
+ onDeletePage(page.id);
+ }}
+ title="Delete page"
+ className="opacity-0 group-hover:opacity-100 p-1 rounded hover:bg-zinc-200 dark:hover:bg-zinc-700 text-zinc-400 hover:text-red-500 transition-opacity"
+ >
+ <TrashIcon className="w-3.5 h-3.5" />
+ </button>
+ )}
+ </div>
+ </div>
+ ))}
+ </div>
+ )
+ ) : (
+ /* Empty State (modeled on OpenDots library-empty) */
+ <div className="p-12 text-center border border-dashed border-zinc-300 dark:border-zinc-800 rounded-3xl bg-zinc-50/50 dark:bg-[#18181c]/50">
+ <div className="w-12 h-12 rounded-2xl bg-zinc-100 dark:bg-zinc-800 flex items-center justify-center mx-auto mb-3 text-zinc-400">
+ <PageIcon className="w-6 h-6" />
+ </div>
+ <h2 className="text-base font-semibold text-zinc-900 dark:text-zinc-100">
+ {query ? "No matching pages found" : "No pages in this Space yet"}
+ </h2>
+ <p className="text-xs text-zinc-500 dark:text-zinc-400 mt-1 max-w-sm mx-auto leading-relaxed">
+ {query
+ ? "Try searching for a different title or keyword."
+ : "Create your first page to start writing, organizing research, and collaborating with Dot agents."}
+ </p>
+ {!query && (
+ <button
+ onClick={onNewPage}
+ className="mt-4 inline-flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-zinc-900 dark:bg-white text-white dark:text-zinc-900 text-xs font-medium shadow-xs hover:opacity-90 transition-opacity"
+ >
+ <PlusIcon className="w-3.5 h-3.5" />
+ <span>Create page</span>
+ </button>
+ )}
+ </div>
+ )}
+ </div>
+ </div>
+ );
+}
diff --git a/client/src/components/SpaceSidebar.js b/client/src/components/SpaceSidebar.js
new file mode 100644
index 0000000..2cf8f85
--- /dev/null
+++ b/client/src/components/SpaceSidebar.js
@@ -0,0 +1,289 @@
+"use client";
+
+import React, { useState } from "react";
+import {
+ SearchIcon,
+ NewPageIcon,
+ PageIcon,
+ FolderIcon,
+ ChevronDownIcon,
+ ChevronRightIcon,
+ PlusIcon,
+ CloseIcon,
+ TrashIcon,
+} from "./Icons";
+import ThemeToggle from "./ThemeToggle";
+
+export default function SpaceSidebar({
+ spaces = [],
+ activeSpaceId,
+ onSelectSpace,
+ onCreateSpace,
+ onDeleteSpace,
+ pages = [],
+ activePageId,
+ onSelectPage,
+ onCreatePage,
+ isCreatingPage = false,
+}) {
+ const [showNewSpaceModal, setShowNewSpaceModal] = useState(false);
+ const [newSpaceName, setNewSpaceName] = useState("");
+ const [newSpaceDesc, setNewSpaceDesc] = useState("");
+ const [searchQuery, setSearchQuery] = useState("");
+ const [expandedSpaces, setExpandedSpaces] = useState({
+ [activeSpaceId]: true,
+ });
+
+ const toggleSpaceExpand = (spaceId, e) => {
+ if (e) e.stopPropagation();
+ setExpandedSpaces((prev) => ({
+ ...prev,
+ [spaceId]: !prev[spaceId],
+ }));
+ };
+
+ const handleCreateSpaceSubmit = (e) => {
+ e.preventDefault();
+ if (!newSpaceName.trim()) return;
+ onCreateSpace({
+ name: newSpaceName.trim(),
+ description: newSpaceDesc.trim(),
+ icon: "πŸ“",
+ color: "indigo",
+ });
+ setNewSpaceName("");
+ setNewSpaceDesc("");
+ setShowNewSpaceModal(false);
+ };
+
+ return (
+ <aside className="w-60 bg-[#f7f7f8] dark:bg-[#18181b] border-r border-zinc-200/80 dark:border-zinc-800/80 flex flex-col h-screen select-none text-zinc-700 dark:text-zinc-300 text-xs transition-colors duration-150">
+ {/* Top Header: SPACES with Create Space (+) button */}
+ <div className="p-3 pb-2 flex items-center justify-between border-b border-zinc-200/60 dark:border-zinc-800/60">
+ <div className="flex items-center gap-1.5 font-semibold text-sm text-zinc-900 dark:text-zinc-100">
+ <FolderIcon className="w-4 h-4 text-indigo-500" />
+ <span>Spaces</span>
+ </div>
+
+ <button
+ onClick={() => setShowNewSpaceModal(true)}
+ className="p-1 rounded-lg hover:bg-zinc-200/70 dark:hover:bg-zinc-800 text-zinc-500 dark:text-zinc-400 hover:text-zinc-900 dark:hover:text-zinc-100 transition-colors cursor-pointer"
+ title="Create new Space"
+ >
+ <PlusIcon className="w-4 h-4" />
+ </button>
+ </div>
+
+ {/* New Page Button for Active Space */}
+ <div className="px-3 pt-3 pb-1">
+ <button
+ onClick={!isCreatingPage ? () => onCreatePage({ title: "Untitled page", content: "" }) : undefined}
+ disabled={isCreatingPage}
+ className={`w-full flex items-center gap-2 px-3 py-2 rounded-xl bg-white dark:bg-zinc-800/90 border border-zinc-200 dark:border-zinc-700/80 text-zinc-800 dark:text-zinc-200 font-medium transition-colors shadow-2xs ${
+ isCreatingPage
+ ? "cursor-wait opacity-60"
+ : "hover:bg-zinc-50 dark:hover:bg-zinc-700 cursor-pointer"
+ }`}
+ >
+ {isCreatingPage ? (
+ <div className="w-3.5 h-3.5 border-2 border-indigo-500 border-t-transparent rounded-full animate-spin" />
+ ) : (
+ <NewPageIcon className="w-3.5 h-3.5 text-indigo-500" />
+ )}
+ <span>{isCreatingPage ? "Creating page..." : "New page"}</span>
+ </button>
+ </div>
+
+ {/* Filter / Search input */}
+ <div className="px-3 py-1.5">
+ <div className="relative">
+ <SearchIcon className="w-3.5 h-3.5 text-zinc-400 absolute left-2.5 top-2" />
+ <input
+ type="text"
+ placeholder="Filter spaces & pages..."
+ value={searchQuery}
+ onChange={(e) => setSearchQuery(e.target.value)}
+ className="w-full bg-white dark:bg-zinc-900 border border-zinc-200 dark:border-zinc-700 rounded-lg pl-8 pr-2 py-1 text-xs text-zinc-900 dark:text-zinc-100 placeholder-zinc-400 focus:outline-none focus:border-zinc-400"
+ />
+ </div>
+ </div>
+
+ {/* Spaces & Hierarchical Pages Tree (Modeled on OpenDots SpaceNav.tsx) */}
+ <div className="flex-1 overflow-y-auto px-2 py-2 space-y-2">
+ <div className="text-[10px] font-bold uppercase tracking-wider text-zinc-400 px-2 mb-1 flex items-center justify-between">
+ <span>SPACES LIBRARY</span>
+ <span className="text-[10px] text-zinc-400 font-normal">
+ {spaces.length} spaces
+ </span>
+ </div>
+
+ {spaces.map((space) => {
+ const isSpaceActive = activeSpaceId === space.id;
+ const isExpanded = expandedSpaces[space.id] ?? isSpaceActive;
+ const spacePages = pages.filter((p) => p.space_id === space.id || isSpaceActive);
+
+ const matchingPages = spacePages.filter((p) =>
+ (p.title || "").toLowerCase().includes(searchQuery.toLowerCase().trim())
+ );
+
+ return (
+ <div key={space.id} className="space-y-0.5">
+ {/* Space Row */}
+ <div
+ className={`group flex items-center justify-between px-2 py-1.5 rounded-lg transition-colors cursor-pointer ${
+ isSpaceActive && !activePageId
+ ? "bg-zinc-200/90 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 font-semibold"
+ : "text-zinc-700 dark:text-zinc-300 hover:bg-zinc-200/50 dark:hover:bg-zinc-800/50"
+ }`}
+ onClick={() => {
+ onSelectSpace(space.id);
+ onSelectPage(null); // Open Space Library overview
+ }}
+ >
+ <div className="flex items-center gap-1.5 min-w-0 flex-1">
+ {/* Expand / Collapse chevron */}
+ <button
+ type="button"
+ onClick={(e) => toggleSpaceExpand(space.id, e)}
+ className="p-0.5 rounded hover:bg-zinc-300/50 dark:hover:bg-zinc-700 text-zinc-400"
+ >
+ {isExpanded ? (
+ <ChevronDownIcon className="w-3 h-3" />
+ ) : (
+ <ChevronRightIcon className="w-3 h-3" />
+ )}
+ </button>
+
+ <span className="text-sm shrink-0">{space.icon || "πŸ“"}</span>
+ <span className="truncate text-xs font-medium">
+ {space.name}
+ </span>
+ </div>
+
+ {onDeleteSpace && spaces.length > 1 && (
+ <button
+ type="button"
+ onClick={(e) => {
+ e.stopPropagation();
+ onDeleteSpace(space.id);
+ }}
+ title="Delete space"
+ className="opacity-0 group-hover:opacity-100 p-1 text-zinc-400 hover:text-red-500 rounded transition-opacity"
+ >
+ <TrashIcon className="w-3 h-3" />
+ </button>
+ )}
+ </div>
+
+ {/* Nested Pages for this Space (OpenDots branches view) */}
+ {isExpanded && (
+ <div className="pl-6 pr-1 space-y-0.5 border-l border-zinc-200 dark:border-zinc-800 ml-3">
+ {isSpaceActive && matchingPages.length > 0 ? (
+ matchingPages.map((page) => {
+ const isPageSelected = activePageId === page.id;
+ return (
+ <button
+ key={page.id}
+ onClick={() => {
+ onSelectSpace(space.id);
+ onSelectPage(page.id);
+ }}
+ className={`w-full flex items-center gap-1.5 px-2 py-1 rounded-md text-xs text-left transition-colors truncate cursor-pointer ${
+ isPageSelected
+ ? "bg-zinc-200/90 dark:bg-zinc-700 text-zinc-900 dark:text-zinc-100 font-medium"
+ : "text-zinc-600 dark:text-zinc-400 hover:bg-zinc-200/40 dark:hover:bg-zinc-800/40 hover:text-zinc-900 dark:hover:text-zinc-200"
+ }`}
+ >
+ <span className="text-xs shrink-0">
+ {page.icon || "πŸ“„"}
+ </span>
+ <span className="truncate">
+ {page.title || "Untitled"}
+ </span>
+ </button>
+ );
+ })
+ ) : (
+ <div className="text-[11px] text-zinc-400 px-2 py-1 italic">
+ No pages yet
+ </div>
+ )}
+ </div>
+ )}
+ </div>
+ );
+ })}
+ </div>
+
+ {/* Footer with ThemeToggle */}
+ <div className="p-3 border-t border-zinc-200/80 dark:border-zinc-800/80 flex items-center justify-between">
+ <span className="text-[11px] text-zinc-400 font-medium">Theme</span>
+ <ThemeToggle />
+ </div>
+
+ {/* Modal for Creating a New Space */}
+ {showNewSpaceModal && (
+ <div className="fixed inset-0 z-50 bg-black/40 backdrop-blur-2xs flex items-center justify-center p-4">
+ <div className="bg-white dark:bg-[#1e1e24] border border-zinc-200 dark:border-zinc-700 rounded-2xl w-full max-w-sm p-5 shadow-xl select-text">
+ <div className="flex items-center justify-between mb-3">
+ <h3 className="text-sm font-semibold text-zinc-900 dark:text-zinc-100">
+ Create New Space
+ </h3>
+ <button
+ onClick={() => setShowNewSpaceModal(false)}
+ className="text-zinc-400 hover:text-zinc-600 dark:hover:text-zinc-200 cursor-pointer"
+ >
+ <CloseIcon className="w-4 h-4" />
+ </button>
+ </div>
+ <form onSubmit={handleCreateSpaceSubmit} className="space-y-3">
+ <div>
+ <label className="block text-[11px] font-medium text-zinc-500 mb-1">
+ Space Name
+ </label>
+ <input
+ type="text"
+ required
+ placeholder="e.g. Marketing, Product Specs..."
+ value={newSpaceName}
+ onChange={(e) => setNewSpaceName(e.target.value)}
+ className="w-full bg-zinc-50 dark:bg-zinc-900 border border-zinc-300 dark:border-zinc-700 rounded-xl px-3 py-2 text-xs text-zinc-900 dark:text-zinc-100 focus:outline-none focus:border-zinc-500"
+ autoFocus
+ />
+ </div>
+
+ <div>
+ <label className="block text-[11px] font-medium text-zinc-500 mb-1">
+ Description
+ </label>
+ <textarea
+ rows={2}
+ placeholder="Optional description of this workspace..."
+ value={newSpaceDesc}
+ onChange={(e) => setNewSpaceDesc(e.target.value)}
+ className="w-full bg-zinc-50 dark:bg-zinc-900 border border-zinc-300 dark:border-zinc-700 rounded-xl px-3 py-1.5 text-xs text-zinc-900 dark:text-zinc-100 focus:outline-none focus:border-zinc-500 resize-none"
+ />
+ </div>
+
+ <div className="flex justify-end gap-2 pt-1">
+ <button
+ type="button"
+ onClick={() => setShowNewSpaceModal(false)}
+ className="px-3 py-1.5 text-xs text-zinc-600 dark:text-zinc-400 hover:bg-zinc-100 dark:hover:bg-zinc-800 rounded-lg cursor-pointer"
+ >
+ Cancel
+ </button>
+ <button
+ type="submit"
+ className="px-4 py-1.5 bg-zinc-900 dark:bg-white text-white dark:text-zinc-900 rounded-xl text-xs font-medium hover:opacity-90 transition-opacity cursor-pointer shadow-xs"
+ >
+ Create Space
+ </button>
+ </div>
+ </form>
+ </div>
+ </div>
+ )}
+ </aside>
+ );
+}
diff --git a/client/src/components/ThemeProvider.js b/client/src/components/ThemeProvider.js
new file mode 100644
index 0000000..580e8c1
--- /dev/null
+++ b/client/src/components/ThemeProvider.js
@@ -0,0 +1,8 @@
+"use client";
+
+import * as React from "react";
+import { ThemeProvider as NextThemesProvider } from "next-themes";
+
+export function ThemeProvider({ children, ...props }) {
+ return <NextThemesProvider {...props}>{children}</NextThemesProvider>;
+}
diff --git a/client/src/components/ThemeToggle.js b/client/src/components/ThemeToggle.js
new file mode 100644
index 0000000..f07ff00
--- /dev/null
+++ b/client/src/components/ThemeToggle.js
@@ -0,0 +1,63 @@
+"use client";
+
+import React, { useEffect, useState } from "react";
+import { useTheme } from "next-themes";
+import { SunIcon, MoonIcon, MonitorIcon } from "./Icons";
+
+export default function ThemeToggle() {
+ const [mounted, setMounted] = useState(false);
+ const { theme, setTheme } = useTheme();
+
+ useEffect(() => {
+ setMounted(true);
+ }, []);
+
+ if (!mounted) {
+ return (
+ <div className="flex items-center gap-1 bg-zinc-200/60 dark:bg-zinc-800/80 p-1 rounded-lg w-24 h-7 animate-pulse" />
+ );
+ }
+
+ return (
+ <div className="flex items-center bg-zinc-200/80 dark:bg-zinc-800/80 p-0.5 rounded-lg border border-zinc-300 dark:border-zinc-700/80">
+ <button
+ onClick={() => setTheme("light")}
+ className={`p-1 rounded-md transition-all ${
+ theme === "light"
+ ? "bg-white text-amber-500 shadow-xs"
+ : "text-zinc-500 dark:text-zinc-400 hover:text-zinc-800 dark:hover:text-zinc-200"
+ }`}
+ title="Light theme"
+ aria-label="Light theme"
+ >
+ <SunIcon className="w-3.5 h-3.5" />
+ </button>
+
+ <button
+ onClick={() => setTheme("dark")}
+ className={`p-1 rounded-md transition-all ${
+ theme === "dark"
+ ? "bg-zinc-700 text-indigo-300 shadow-xs"
+ : "text-zinc-500 dark:text-zinc-400 hover:text-zinc-800 dark:hover:text-zinc-200"
+ }`}
+ title="Dark theme"
+ aria-label="Dark theme"
+ >
+ <MoonIcon className="w-3.5 h-3.5" />
+ </button>
+
+ <button
+ onClick={() => setTheme("system")}
+ className={`p-1 rounded-md transition-all ${
+ theme === "system"
+ ? "bg-white dark:bg-zinc-700 text-indigo-600 dark:text-indigo-300 shadow-xs"
+ : "text-zinc-500 dark:text-zinc-400 hover:text-zinc-800 dark:hover:text-zinc-200"
+ }`}
+ title="System default theme"
+ aria-label="System default theme"
+ >
+ <MonitorIcon className="w-3.5 h-3.5" />
+ </button>
+ </div>
+ );
+}
diff --git a/client/src/components/editor/AiImageView.js b/client/src/components/editor/AiImageView.js
new file mode 100644
index 0000000..db9847d
--- /dev/null
+++ b/client/src/components/editor/AiImageView.js
@@ -0,0 +1,398 @@
+"use client";
+
+import React, { useState, useRef, useEffect, useCallback } from "react";
+import { NodeViewWrapper, ReactNodeViewRenderer } from "@tiptap/react";
+import { Node, mergeAttributes } from "@tiptap/core";
+import {
+ LuSparkles,
+ LuImage,
+ LuArrowUp,
+ LuX,
+ LuLoader2,
+ LuRefreshCw,
+ LuWand,
+} from "react-icons/lu";
+
+const API_BASE = process.env.NEXT_PUBLIC_API_BASE || "http://localhost:8000/api";
+
+const ASPECT_RATIOS = ["1:1", "16:9", "4:3"];
+
+const QUICK_IMAGE_CHIPS = [
+ { label: "Concept illustration", prompt: "A sleek conceptual editorial 3D illustration with glowing soft lighting" },
+ { label: "Architecture / Tech", prompt: "Modern futuristic architecture diagram with clean isometric perspective" },
+ { label: "Minimalist banner", prompt: "Minimalist geometric banner with deep violet accents and soft studio backdrop" },
+];
+
+export function AiImageComponent({ editor, node, getPos, deleteNode }) {
+ const [promptText, setPromptText] = useState("");
+ const [aspectRatio, setAspectRatio] = useState("1:1");
+ const [loading, setLoading] = useState(false);
+ const [analyzingContext, setAnalyzingContext] = useState(false);
+ const [statusMsg, setStatusMsg] = useState("");
+ const [errorMsg, setErrorMsg] = useState("");
+ const inputRef = useRef(null);
+ const abortControllerRef = useRef(null);
+
+ // Auto focus input on mount
+ useEffect(() => {
+ const timer = setTimeout(() => {
+ inputRef.current?.focus();
+ }, 50);
+ return () => clearTimeout(timer);
+ }, []);
+
+ // Dismiss on Escape
+ const handleKeyDown = (e) => {
+ if (e.key === "Escape") {
+ e.preventDefault();
+ handleDismiss();
+ } else if (e.key === "Enter" && !e.shiftKey) {
+ e.preventDefault();
+ if (promptText.trim() && !loading) {
+ handleGenerate(promptText);
+ }
+ }
+ };
+
+ const handleDismiss = () => {
+ if (abortControllerRef.current) {
+ abortControllerRef.current.abort();
+ }
+ if (typeof deleteNode === "function") {
+ deleteNode();
+ }
+ };
+
+ // Generate prompt automatically from existing content
+ const handleSuggestFromContent = async () => {
+ if (analyzingContext || loading || !editor) return;
+ setAnalyzingContext(true);
+ setErrorMsg("");
+
+ try {
+ const currentPos = typeof getPos === "function" ? getPos() : 0;
+ const doc = editor.state.doc;
+ const totalSize = doc.content.size;
+
+ // Extract surrounding context (before and after)
+ const beforeContext = doc.textBetween(Math.max(0, currentPos - 1200), currentPos, "\n");
+ const fullDoc = editor.getMarkdown ? editor.getMarkdown() : editor.getText();
+ const pageTitle = editor.storage?.pageContext?.title || "Document";
+
+ const contextToSend = beforeContext.trim().length > 40 ? beforeContext : fullDoc;
+
+ const res = await fetch(`${API_BASE}/images/suggest-prompt`, {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({
+ context: contextToSend || "Creative AI collaboration document",
+ title: pageTitle,
+ }),
+ });
+
+ if (res.ok) {
+ const data = await res.json();
+ if (data.suggested_prompt) {
+ setPromptText(data.suggested_prompt);
+ }
+ }
+ } catch (err) {
+ console.warn("Failed to suggest image prompt:", err);
+ } finally {
+ setAnalyzingContext(false);
+ inputRef.current?.focus();
+ }
+ };
+
+ const handleGenerate = useCallback(
+ async (customPrompt) => {
+ const activePrompt = (customPrompt || promptText).trim();
+ if (!activePrompt || loading || !editor) return;
+
+ setLoading(true);
+ setErrorMsg("");
+ setStatusMsg("Generating image with GPT-Image-2…");
+
+ const currentPos = typeof getPos === "function" ? getPos() : null;
+ if (currentPos === null || isNaN(currentPos)) {
+ setErrorMsg("Unable to locate insertion point.");
+ setLoading(false);
+ return;
+ }
+
+ abortControllerRef.current = new AbortController();
+
+ try {
+ const res = await fetch(`${API_BASE}/images/generate`, {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ signal: abortControllerRef.current.signal,
+ body: JSON.stringify({
+ prompt: activePrompt,
+ aspect_ratio: aspectRatio,
+ model: "gpt-image-2-text-to-image",
+ }),
+ });
+
+ if (!res.ok) {
+ throw new Error(`Image service responded with status ${res.status}`);
+ }
+
+ const data = await res.json();
+ const imageUrl = data?.image_url;
+ if (!imageUrl) {
+ throw new Error("No image was returned from the generator.");
+ }
+
+ // Replace this node with the generated image at that exact place
+ let targetPos = null;
+ if (typeof getPos === "function") {
+ try {
+ const p = getPos();
+ if (typeof p === "number" && !isNaN(p)) {
+ targetPos = p;
+ }
+ } catch (e) {}
+ }
+ if (targetPos === null || typeof targetPos === "undefined" || isNaN(targetPos)) {
+ targetPos = currentPos;
+ }
+
+ const targetNodeSize = node?.nodeSize || 1;
+
+ let replaced = false;
+ if (typeof targetPos === "number" && !isNaN(targetPos)) {
+ try {
+ replaced = editor
+ .chain()
+ .focus()
+ .insertContentAt(
+ { from: targetPos, to: targetPos + targetNodeSize },
+ [
+ {
+ type: "image",
+ attrs: {
+ src: imageUrl,
+ alt: activePrompt || "AI generated image",
+ },
+ },
+ {
+ type: "paragraph",
+ },
+ ]
+ )
+ .run();
+ } catch (e) {
+ console.warn("insertContentAt range failed:", e);
+ }
+ }
+
+ if (!replaced) {
+ if (typeof deleteNode === "function") {
+ try {
+ deleteNode();
+ } catch (e) {}
+ }
+ editor
+ .chain()
+ .focus()
+ .setImage({
+ src: imageUrl,
+ alt: activePrompt || "AI generated image",
+ })
+ .run();
+ }
+ } catch (err) {
+ if (err.name === "AbortError") return;
+ console.error("Image generation failed:", err);
+ setErrorMsg(err.message || "Failed to generate image. Please try again.");
+ setLoading(false);
+ }
+ },
+ [promptText, aspectRatio, loading, editor, getPos, node, deleteNode]
+ );
+
+ return (
+ <NodeViewWrapper
+ className="ai-image-node-wrapper my-2 select-none"
+ contentEditable={false}
+ >
+ <div className="ai-image-card rounded-xl border border-zinc-200/90 dark:border-zinc-800 bg-white dark:bg-[#18181b] p-2.5 shadow-sm transition-all">
+ {/* State 1: Generating Image Loader AT THIS PLACE ONLY */}
+ {loading ? (
+ <div className="ai-loader-container flex flex-col gap-2 py-0.5 px-0.5">
+ <div className="flex items-center justify-between">
+ <div className="flex items-center gap-1.5 text-[11px] font-medium text-purple-600 dark:text-purple-400">
+ <LuWand className="animate-spin text-xs" />
+ <span>{statusMsg || "Generating with GPT-Image-2…"}</span>
+ </div>
+ <button
+ type="button"
+ onClick={handleDismiss}
+ className="flex items-center gap-1 rounded px-1.5 py-0.5 text-[10px] text-zinc-400 hover:text-zinc-700 dark:hover:text-zinc-200 transition-colors"
+ title="Cancel generation"
+ >
+ <LuX size={11} />
+ <span>Cancel</span>
+ </button>
+ </div>
+
+ {/* Shimmering Image Skeleton Loader */}
+ <div className="h-40 w-full rounded-lg bg-gradient-to-r from-purple-200/40 via-zinc-200/60 to-purple-200/40 dark:from-purple-950/30 dark:via-zinc-800/60 dark:to-purple-950/30 animate-pulse flex flex-col items-center justify-center gap-2 text-zinc-400 dark:text-zinc-500">
+ <LuImage size={24} className="opacity-50 animate-bounce" />
+ <span className="text-[11px] font-medium">Rendering pixels with GPT-Image-2…</span>
+ </div>
+ </div>
+ ) : (
+ /* State 2: Image Prompt Input & Content Context Trigger */
+ <div className="flex flex-col gap-2">
+ {/* Header: Badge, Context Generator button, Close */}
+ <div className="flex items-center justify-between">
+ <div className="flex items-center gap-1.5">
+ <div className="flex items-center gap-1 px-1.5 py-0.5 rounded-full bg-purple-50 dark:bg-purple-950/50 text-[10px] font-medium text-purple-700 dark:text-purple-300 border border-purple-200/50 dark:border-purple-800/40">
+ <LuImage size={10} className="text-purple-500" />
+ <span>GPT-Image-2</span>
+ </div>
+
+ {/* Option to generate prompt from existing page content */}
+ <button
+ type="button"
+ onClick={handleSuggestFromContent}
+ disabled={analyzingContext}
+ className="flex items-center gap-1 px-2 py-0.5 rounded-full text-[10px] font-medium text-purple-600 dark:text-purple-300 bg-purple-500/10 hover:bg-purple-500/20 border border-purple-500/20 transition-all cursor-pointer"
+ title="Analyze existing content and generate an ideal image prompt"
+ >
+ <LuSparkles size={10} className={analyzingContext ? "animate-spin" : ""} />
+ <span>{analyzingContext ? "Reading content…" : "Use page content"}</span>
+ </button>
+ </div>
+
+ <button
+ type="button"
+ onClick={handleDismiss}
+ className="p-0.5 rounded text-zinc-400 hover:text-zinc-600 dark:hover:text-zinc-300 transition-colors cursor-pointer"
+ title="Dismiss (Esc)"
+ >
+ <LuX size={12} />
+ </button>
+ </div>
+
+ {/* Prompt Input Pill */}
+ <div className="relative flex items-center w-full rounded-full border border-zinc-200 dark:border-zinc-700/70 bg-zinc-50/80 dark:bg-[#202024] focus-within:border-purple-500/80 dark:focus-within:border-purple-400/80 focus-within:ring-1 focus-within:ring-purple-500/20 transition-all">
+ <input
+ ref={inputRef}
+ type="text"
+ value={promptText}
+ onChange={(e) => setPromptText(e.target.value)}
+ onKeyDown={handleKeyDown}
+ placeholder="Describe image to generate with GPT-Image-2…"
+ className="w-full bg-transparent pl-3 pr-8 py-1.5 text-xs text-zinc-900 dark:text-zinc-100 placeholder-zinc-400 dark:placeholder-zinc-500 outline-none"
+ />
+ <button
+ type="button"
+ disabled={!promptText.trim() || loading}
+ onClick={() => handleGenerate(promptText)}
+ className={`absolute right-1 w-6 h-6 rounded-full flex items-center justify-center transition-all ${
+ promptText.trim() && !loading
+ ? "bg-zinc-900 dark:bg-white text-white dark:text-zinc-900 shadow-sm hover:scale-105 active:scale-95 cursor-pointer"
+ : "bg-zinc-200/70 dark:bg-zinc-800 text-zinc-400 dark:text-zinc-600 cursor-not-allowed"
+ }`}
+ title="Generate Image"
+ >
+ <LuArrowUp size={12} className="stroke-[2.5]" />
+ </button>
+ </div>
+
+ {/* Error Banner if any */}
+ {errorMsg && (
+ <div className="flex items-center justify-between text-[11px] text-rose-500 bg-rose-50 dark:bg-rose-950/40 border border-rose-200 dark:border-rose-900/50 rounded-md px-2 py-1">
+ <span>{errorMsg}</span>
+ <button
+ type="button"
+ onClick={() => handleGenerate(promptText)}
+ className="flex items-center gap-1 font-semibold underline hover:text-rose-600 ml-2"
+ >
+ <LuRefreshCw size={10} />
+ <span>Retry</span>
+ </button>
+ </div>
+ )}
+
+ {/* Controls: Aspect Ratio + Quick Chips */}
+ <div className="flex items-center justify-between flex-wrap gap-1.5 pt-0.5">
+ {/* Aspect Ratio Selector */}
+ <div className="flex items-center gap-1">
+ <span className="text-[10px] text-zinc-400 dark:text-zinc-500">Ratio:</span>
+ {ASPECT_RATIOS.map((ratio) => (
+ <button
+ key={ratio}
+ type="button"
+ onClick={() => setAspectRatio(ratio)}
+ className={`px-1.5 py-0.5 rounded text-[10px] font-medium transition-colors ${
+ aspectRatio === ratio
+ ? "bg-purple-600 text-white font-semibold"
+ : "bg-zinc-100 dark:bg-zinc-800 text-zinc-500 dark:text-zinc-400 hover:text-zinc-800 dark:hover:text-zinc-200"
+ }`}
+ >
+ {ratio}
+ </button>
+ ))}
+ </div>
+
+ {/* Quick style inspiration */}
+ <div className="flex items-center gap-1">
+ {QUICK_IMAGE_CHIPS.map((chip, idx) => (
+ <button
+ key={idx}
+ type="button"
+ onClick={() => {
+ setPromptText(chip.prompt);
+ handleGenerate(chip.prompt);
+ }}
+ className="px-1.5 py-0.5 rounded text-[10px] bg-zinc-100 dark:bg-zinc-800/80 text-zinc-600 dark:text-zinc-300 hover:bg-purple-100 hover:text-purple-700 dark:hover:bg-purple-900/40 dark:hover:text-purple-200 transition-colors cursor-pointer"
+ >
+ {chip.label}
+ </button>
+ ))}
+ </div>
+ </div>
+ </div>
+ )}
+ </div>
+ </NodeViewWrapper>
+ );
+}
+
+export const AiImageNode = Node.create({
+ name: "aiImagePrompt",
+ group: "block",
+ atom: true,
+ selectable: true,
+ draggable: false,
+
+ parseHTML() {
+ return [
+ {
+ tag: 'div[data-type="ai-image-prompt"]',
+ },
+ ];
+ },
+
+ renderHTML({ HTMLAttributes }) {
+ return ["div", mergeAttributes(HTMLAttributes, { "data-type": "ai-image-prompt" })];
+ },
+
+ addStorage() {
+ return {
+ markdown: {
+ serialize() {
+ return "";
+ },
+ },
+ };
+ },
+
+ addNodeView() {
+ return ReactNodeViewRenderer(AiImageComponent);
+ },
+});
diff --git a/client/src/components/editor/AiPromptView.js b/client/src/components/editor/AiPromptView.js
new file mode 100644
index 0000000..2f314bd
--- /dev/null
+++ b/client/src/components/editor/AiPromptView.js
@@ -0,0 +1,338 @@
+"use client";
+
+import React, { useState, useRef, useEffect, useCallback } from "react";
+import { NodeViewWrapper, ReactNodeViewRenderer } from "@tiptap/react";
+import { Node, mergeAttributes } from "@tiptap/core";
+import {
+ LuSparkles,
+ LuArrowUp,
+ LuX,
+ LuLoader2,
+ LuRefreshCw,
+ LuFileText,
+ LuLightbulb,
+} from "react-icons/lu";
+
+const API_BASE = process.env.NEXT_PUBLIC_API_BASE || "http://localhost:8000/api";
+
+const QUICK_SUGGESTIONS = [
+ { label: "Draft section", prompt: "Draft a comprehensive section expanding on the points above with clear insights" },
+ { label: "Add 3 examples", prompt: "Provide 3 concrete, real-world examples illustrating the concepts discussed above" },
+ { label: "Add checklist", prompt: "Create an actionable step-by-step checklist of next steps" },
+ { label: "Summarize above", prompt: "Write a concise summary callout highlighting the key takeaways from the previous sections" },
+];
+
+export function AiPromptComponent({ editor, node, getPos, deleteNode }) {
+ const [promptText, setPromptText] = useState("");
+ const [loading, setLoading] = useState(false);
+ const [statusMsg, setStatusMsg] = useState("");
+ const [errorMsg, setErrorMsg] = useState("");
+ const inputRef = useRef(null);
+ const abortControllerRef = useRef(null);
+
+ // Auto focus input when inserted
+ useEffect(() => {
+ const timer = setTimeout(() => {
+ inputRef.current?.focus();
+ }, 50);
+ return () => clearTimeout(timer);
+ }, []);
+
+ // Dismiss on Escape
+ const handleKeyDown = (e) => {
+ if (e.key === "Escape") {
+ e.preventDefault();
+ handleDismiss();
+ } else if (e.key === "Enter" && !e.shiftKey) {
+ e.preventDefault();
+ if (promptText.trim() && !loading) {
+ handleGenerate(promptText);
+ }
+ }
+ };
+
+ const handleDismiss = () => {
+ if (abortControllerRef.current) {
+ abortControllerRef.current.abort();
+ }
+ if (typeof deleteNode === "function") {
+ deleteNode();
+ }
+ };
+
+ const handleGenerate = useCallback(
+ async (rawPrompt) => {
+ const userPrompt = (rawPrompt || promptText).trim();
+ if (!userPrompt || loading || !editor) return;
+
+ setLoading(true);
+ setErrorMsg("");
+ setStatusMsg("Reading full document context & drafting…");
+
+ const currentPos = typeof getPos === "function" ? getPos() : null;
+ if (currentPos === null || isNaN(currentPos)) {
+ setErrorMsg("Unable to locate insertion point.");
+ setLoading(false);
+ return;
+ }
+
+ // 1. Gather all document context
+ const fullDoc = editor.getMarkdown ? editor.getMarkdown() : editor.getText();
+ const pageTitle = editor.storage?.pageContext?.title || "Pages Document";
+
+ // 2. Extract surrounding text (before & after insertion point)
+ let beforeContext = "";
+ let afterContext = "";
+ try {
+ const doc = editor.state.doc;
+ const totalSize = doc.content.size;
+ beforeContext = doc.textBetween(Math.max(0, currentPos - 1500), currentPos, "\n");
+ const nodeSize = node.nodeSize || 1;
+ afterContext = doc.textBetween(
+ Math.min(totalSize, currentPos + nodeSize),
+ Math.min(totalSize, currentPos + nodeSize + 1500),
+ "\n"
+ );
+ } catch (err) {
+ console.warn("Context extraction error:", err);
+ }
+
+ // 3. Construct targeted system prompt
+ const systemPrompt = `You are OpenAI's latest model in ChatGPT Spaces (GPT-6.1 Sol Light).
+You are writing content to be inserted directly into an active document at a specific location between existing sections.
+
+DOCUMENT TITLE:
+${pageTitle}
+
+FULL DOCUMENT CONTENT (FOR FULL CONTEXT):
+"""
+${fullDoc || "(Document is currently blank)"}
+"""
+
+CONTENT IMMEDIATELY BEFORE THIS INSERTION:
+"""
+${beforeContext || "(Top of document)"}
+"""
+
+CONTENT IMMEDIATELY AFTER THIS INSERTION:
+"""
+${afterContext || "(Bottom of document)"}
+"""
+
+USER'S REQUEST FOR WHAT TO INSERT HERE:
+"${userPrompt}"
+
+CRITICAL INSTRUCTIONS:
+1. Generate ONLY the markdown content that belongs at this exact insertion point.
+2. Maintain perfect stylistic, structural, and topical continuity with the surrounding text.
+3. Do NOT repeat or duplicate headings or sentences that already exist before or after.
+4. Do NOT include ANY conversational preamble (e.g. "Sure, here's...", "Certainly!", "Here is the section:").
+5. Do NOT include sign-offs or meta notes (e.g. "Let me know if you need more...").
+6. Format richly using clean Markdown (e.g. headings, bullet points, checklists, quotes, or code blocks where appropriate).
+7. Return ONLY the markdown content to insert.`;
+
+ abortControllerRef.current = new AbortController();
+
+ try {
+ const res = await fetch(`${API_BASE}/chat`, {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ signal: abortControllerRef.current.signal,
+ body: JSON.stringify({
+ prompt: userPrompt,
+ system_prompt: systemPrompt,
+ model: "gpt-6-1-sol",
+ project: pageTitle,
+ }),
+ });
+
+ if (!res.ok) {
+ throw new Error(`AI service responded with status ${res.status}`);
+ }
+
+ const data = await res.json();
+ let reply = (data?.reply || "").trim();
+
+ // Strip outer code fences if the model wrapped everything in ```markdown ... ```
+ if (reply.startsWith("```markdown") && reply.endsWith("```")) {
+ reply = reply.slice(11, -3).trim();
+ } else if (reply.startsWith("```md") && reply.endsWith("```")) {
+ reply = reply.slice(5, -3).trim();
+ }
+
+ if (!reply) {
+ throw new Error("AI did not generate any content.");
+ }
+
+ // 4. Modify at that place only: replace this node with the generated content
+ const targetPos = typeof getPos === "function" ? getPos() : currentPos;
+ const targetNodeSize = node.nodeSize || 1;
+
+ editor
+ .chain()
+ .focus()
+ .deleteRange({ from: targetPos, to: targetPos + targetNodeSize })
+ .insertContentAt(targetPos, reply, {
+ contentType: "markdown",
+ })
+ .run();
+ } catch (err) {
+ if (err.name === "AbortError") return;
+ console.error("AI Generation failed:", err);
+ setErrorMsg(err.message || "Failed to generate content. Please try again.");
+ setLoading(false);
+ }
+ },
+ [promptText, loading, editor, getPos, node]
+ );
+
+ return (
+ <NodeViewWrapper
+ className="ai-prompt-node-wrapper my-2 select-none"
+ contentEditable={false}
+ >
+ <div className="ai-prompt-card rounded-xl border border-zinc-200/90 dark:border-zinc-800 bg-white dark:bg-[#18181b] p-2.5 shadow-sm transition-all">
+ {/* State 1: Active Loading State AT THIS PLACE ONLY */}
+ {loading ? (
+ <div className="ai-loader-container flex flex-col gap-2 py-0.5 px-0.5">
+ {/* Header with spinner and status */}
+ <div className="flex items-center justify-between">
+ <div className="flex items-center gap-1.5 text-[11px] font-medium text-purple-600 dark:text-purple-400">
+ <LuSparkles className="animate-spin text-xs" />
+ <span>{statusMsg || "Generating with AI…"}</span>
+ </div>
+ <button
+ type="button"
+ onClick={handleDismiss}
+ className="flex items-center gap-1 rounded px-1.5 py-0.5 text-[10px] text-zinc-400 hover:text-zinc-700 dark:hover:text-zinc-200 transition-colors"
+ title="Cancel generation"
+ >
+ <LuX size={11} />
+ <span>Cancel</span>
+ </button>
+ </div>
+
+ {/* Shimmering Skeleton Loader at this exact location */}
+ <div className="space-y-1.5 pt-0.5">
+ <div className="h-2.5 w-4/5 rounded-full bg-gradient-to-r from-purple-200/40 via-zinc-200/60 to-purple-200/40 dark:from-purple-950/30 dark:via-zinc-800/60 dark:to-purple-950/30 animate-pulse" />
+ <div className="h-2 w-full rounded-full bg-gradient-to-r from-zinc-200/50 via-zinc-200/80 to-zinc-200/50 dark:from-zinc-800/40 dark:via-zinc-700/60 dark:to-zinc-800/40 animate-pulse delay-75" />
+ <div className="h-2 w-2/3 rounded-full bg-gradient-to-r from-zinc-200/50 via-zinc-200/80 to-zinc-200/50 dark:from-zinc-800/40 dark:via-zinc-700/60 dark:to-zinc-800/40 animate-pulse delay-150" />
+ </div>
+ </div>
+ ) : (
+ /* State 2: Input & Suggestion Box (Matches Screenshot 2 - Minimal) */
+ <div className="flex flex-col gap-2">
+ {/* Top Badge & Close button */}
+ <div className="flex items-center justify-between">
+ <div className="flex items-center gap-1 px-1.5 py-0.5 rounded-full bg-purple-50 dark:bg-purple-950/50 text-[10px] font-medium text-purple-700 dark:text-purple-300 border border-purple-200/50 dark:border-purple-800/40">
+ <LuSparkles size={9} className="text-purple-500" />
+ <span>Generate</span>
+ </div>
+ <button
+ type="button"
+ onClick={handleDismiss}
+ className="p-0.5 rounded text-zinc-400 hover:text-zinc-600 dark:hover:text-zinc-300 transition-colors cursor-pointer"
+ title="Dismiss (Esc)"
+ >
+ <LuX size={12} />
+ </button>
+ </div>
+
+ {/* Pill Search / Prompt Input (Matches Screenshot 2) */}
+ <div className="relative flex items-center w-full rounded-full border border-zinc-200 dark:border-zinc-700/70 bg-zinc-50/80 dark:bg-[#202024] focus-within:border-purple-500/80 dark:focus-within:border-purple-400/80 focus-within:ring-1 focus-within:ring-purple-500/20 transition-all">
+ <input
+ ref={inputRef}
+ type="text"
+ value={promptText}
+ onChange={(e) => setPromptText(e.target.value)}
+ onKeyDown={handleKeyDown}
+ placeholder="What would you like to write?"
+ className="w-full bg-transparent pl-3 pr-8 py-1.5 text-xs text-zinc-900 dark:text-zinc-100 placeholder-zinc-400 dark:placeholder-zinc-500 outline-none"
+ />
+ <button
+ type="button"
+ disabled={!promptText.trim() || loading}
+ onClick={() => handleGenerate(promptText)}
+ className={`absolute right-1 w-6 h-6 rounded-full flex items-center justify-center transition-all ${
+ promptText.trim() && !loading
+ ? "bg-zinc-900 dark:bg-white text-white dark:text-zinc-900 shadow-sm hover:scale-105 active:scale-95 cursor-pointer"
+ : "bg-zinc-200/70 dark:bg-zinc-800 text-zinc-400 dark:text-zinc-600 cursor-not-allowed"
+ }`}
+ title="Generate with AI"
+ >
+ <LuArrowUp size={12} className="stroke-[2.5]" />
+ </button>
+ </div>
+
+ {/* Error Message if any */}
+ {errorMsg && (
+ <div className="flex items-center justify-between text-[11px] text-rose-500 bg-rose-50 dark:bg-rose-950/40 border border-rose-200 dark:border-rose-900/50 rounded-md px-2 py-1">
+ <span>{errorMsg}</span>
+ <button
+ type="button"
+ onClick={() => handleGenerate(promptText)}
+ className="flex items-center gap-1 font-semibold underline hover:text-rose-600 ml-2"
+ >
+ <LuRefreshCw size={10} />
+ <span>Retry</span>
+ </button>
+ </div>
+ )}
+
+ {/* Quick Suggestion Chips */}
+ <div className="flex items-center gap-1 flex-wrap">
+ <span className="text-[10px] text-zinc-400 dark:text-zinc-500 mr-0.5">Quick:</span>
+ {QUICK_SUGGESTIONS.map((item, idx) => (
+ <button
+ key={idx}
+ type="button"
+ onClick={() => {
+ setPromptText(item.prompt);
+ handleGenerate(item.prompt);
+ }}
+ className="px-2 py-0.5 rounded text-[10px] font-medium bg-zinc-100 dark:bg-zinc-800 text-zinc-600 dark:text-zinc-300 hover:bg-purple-100 hover:text-purple-700 dark:hover:bg-purple-900/40 dark:hover:text-purple-200 transition-colors cursor-pointer"
+ >
+ {item.label}
+ </button>
+ ))}
+ </div>
+ </div>
+ )}
+ </div>
+ </NodeViewWrapper>
+ );
+}
+
+export const AiPromptNode = Node.create({
+ name: "aiPrompt",
+ group: "block",
+ atom: true,
+ selectable: true,
+ draggable: false,
+
+ parseHTML() {
+ return [
+ {
+ tag: 'div[data-type="ai-prompt"]',
+ },
+ ];
+ },
+
+ renderHTML({ HTMLAttributes }) {
+ return ["div", mergeAttributes(HTMLAttributes, { "data-type": "ai-prompt" })];
+ },
+
+ addStorage() {
+ return {
+ markdown: {
+ serialize() {
+ return "";
+ },
+ },
+ };
+ },
+
+ addNodeView() {
+ return ReactNodeViewRenderer(AiPromptComponent);
+ },
+});
diff --git a/client/src/components/editor/CodeBlockView.js b/client/src/components/editor/CodeBlockView.js
new file mode 100644
index 0000000..58193a6
--- /dev/null
+++ b/client/src/components/editor/CodeBlockView.js
@@ -0,0 +1,109 @@
+"use client";
+
+import React, { useState } from "react";
+import { NodeViewWrapper, NodeViewContent, ReactNodeViewRenderer } from "@tiptap/react";
+import CodeBlock from "@tiptap/extension-code-block";
+import CustomDropdown from "../CustomDropdown";
+import { LuCheck, LuCopy } from "react-icons/lu";
+
+export const CODE_LANGUAGES = [
+ { label: "JavaScript", value: "javascript" },
+ { label: "TypeScript", value: "typescript" },
+ { label: "Python", value: "python" },
+ { label: "HTML", value: "html" },
+ { label: "CSS", value: "css" },
+ { label: "JSON", value: "json" },
+ { label: "SQL", value: "sql" },
+ { label: "Bash / Shell", value: "bash" },
+ { label: "Rust", value: "rust" },
+ { label: "Go", value: "go" },
+ { label: "C++", value: "cpp" },
+ { label: "Java", value: "java" },
+ { label: "PHP", value: "php" },
+ { label: "Markdown", value: "markdown" },
+ { label: "Plain Text", value: "plaintext" },
+];
+
+const ALIASES = {
+ js: "javascript",
+ ts: "typescript",
+ py: "python",
+ sh: "bash",
+ shell: "bash",
+ zsh: "bash",
+ yml: "yaml",
+ c: "cpp",
+ text: "plaintext",
+ txt: "plaintext",
+};
+
+export function CodeBlockComponent({ node, updateAttributes }) {
+ const rawLang = (node?.attrs?.language || "plaintext").toLowerCase();
+ const currentLang = ALIASES[rawLang] || rawLang;
+ const [copied, setCopied] = useState(false);
+
+ const handleCopy = () => {
+ try {
+ const text = node?.textContent || "";
+ navigator.clipboard.writeText(text);
+ setCopied(true);
+ setTimeout(() => setCopied(false), 1500);
+ } catch (e) {
+ console.warn("Copy failed:", e);
+ }
+ };
+
+ return (
+ <NodeViewWrapper className="code-block-container my-4 rounded-xl overflow-hidden border border-zinc-800 bg-[#16161a] text-zinc-100 shadow-md">
+ {/* Individual Code Block Header Bar */}
+ <div
+ className="code-block-header flex items-center justify-between px-3 py-1.5 bg-[#1f1f24] border-b border-zinc-800 text-xs select-none"
+ contentEditable={false}
+ >
+ {/* Custom Language Dropdown directly on this code block */}
+ <div className="flex items-center gap-2">
+ <CustomDropdown
+ value={currentLang}
+ onChange={(newLang) => updateAttributes({ language: newLang === "plaintext" ? null : newLang })}
+ options={CODE_LANGUAGES}
+ size="sm"
+ searchable={true}
+ buttonClassName="bg-zinc-800/90 hover:bg-zinc-700/80 text-zinc-300 hover:text-white border-zinc-700/60 rounded-md py-0.5 px-2 text-[11px]"
+ menuClassName="bg-[#1f1f24] border-zinc-700 text-zinc-200 shadow-2xl"
+ />
+ </div>
+
+ {/* 1-Click Copy Code Button */}
+ <button
+ type="button"
+ onClick={handleCopy}
+ className="flex items-center gap-1 px-2 py-0.5 rounded text-[11px] font-medium text-zinc-400 hover:text-white hover:bg-zinc-800 transition-colors cursor-pointer"
+ title="Copy code to clipboard"
+ >
+ {copied ? (
+ <>
+ <LuCheck size={12} className="text-emerald-400" />
+ <span className="text-emerald-400 font-semibold">Copied!</span>
+ </>
+ ) : (
+ <>
+ <LuCopy size={12} />
+ <span>Copy</span>
+ </>
+ )}
+ </button>
+ </div>
+
+ {/* Code Text Content */}
+ <pre className="!p-4 !m-0 !bg-transparent !border-0 overflow-x-auto text-[13px] font-mono leading-relaxed text-zinc-200">
+ <NodeViewContent as="code" className={currentLang ? `language-${currentLang}` : ""} />
+ </pre>
+ </NodeViewWrapper>
+ );
+}
+
+export const CustomCodeBlock = CodeBlock.extend({
+ addNodeView() {
+ return ReactNodeViewRenderer(CodeBlockComponent);
+ },
+});
diff --git a/client/src/components/editor/RichEditor.js b/client/src/components/editor/RichEditor.js
new file mode 100644
index 0000000..cc18edd
--- /dev/null
+++ b/client/src/components/editor/RichEditor.js
@@ -0,0 +1,548 @@
+"use client";
+
+import React, { useEffect, useRef, useState } from "react";
+import { EditorContent, useEditor, useEditorState } from "@tiptap/react";
+import { Markdown } from "@tiptap/markdown";
+import Placeholder from "@tiptap/extension-placeholder";
+import {
+ LuBold,
+ LuItalic,
+ LuHeading1,
+ LuHeading2,
+ LuHeading3,
+ LuList,
+ LuListOrdered,
+ LuListTodo,
+ LuQuote,
+ LuCode,
+ LuTable,
+ LuMinus,
+ LuLink,
+ LuUndo2,
+ LuRedo2,
+ LuPlus,
+ LuChevronDown,
+ LuTrash2,
+ LuSparkles,
+} from "react-icons/lu";
+import { documentExtensions } from "./markdown";
+import { SlashCommands } from "./slash-commands";
+import "./editor.css";
+
+export default function RichEditor({
+ value = "",
+ onChange,
+ onNotice,
+ pageTitle = "Page",
+ pageId = "",
+}) {
+ const changeRef = useRef(onChange);
+ changeRef.current = onChange;
+ const noticeRef = useRef(onNotice);
+ noticeRef.current = onNotice;
+ const emittedRef = useRef(value);
+
+ const [showInsertMenu, setShowInsertMenu] = useState(false);
+ const insertMenuRef = useRef(null);
+
+ const editor = useEditor({
+ extensions: [
+ ...documentExtensions(),
+ Markdown,
+ Placeholder.configure({
+ placeholder: "Start writing, or type / for blocks…",
+ }),
+ SlashCommands,
+ ],
+ content: value,
+ contentType: "markdown",
+ immediatelyRender: false,
+ editorProps: {
+ attributes: {
+ class: "document-prose",
+ "aria-label": "Page content",
+ role: "textbox",
+ "aria-multiline": "true",
+ },
+ },
+ onUpdate: ({ editor: ed }) => {
+ const markdown = ed.getMarkdown();
+ emittedRef.current = markdown;
+ if (changeRef.current) {
+ changeRef.current(markdown);
+ }
+ },
+ });
+
+ const state = useEditorState({
+ editor,
+ selector: ({ editor: ed }) =>
+ ed
+ ? {
+ bold: ed.isActive("bold"),
+ italic: ed.isActive("italic"),
+ h1: ed.isActive("heading", { level: 1 }),
+ h2: ed.isActive("heading", { level: 2 }),
+ h3: ed.isActive("heading", { level: 3 }),
+ bullet: ed.isActive("bulletList"),
+ ordered: ed.isActive("orderedList"),
+ checklist: ed.isActive("taskList"),
+ quote: ed.isActive("blockquote"),
+ code: ed.isActive("codeBlock"),
+ table: ed.isActive("table"),
+ undo: ed.can().undo(),
+ redo: ed.can().redo(),
+ }
+ : null,
+ });
+
+ // Sync external value safely outside React lifecycle to avoid flushSync collision
+ useEffect(() => {
+ if (editor && value !== emittedRef.current) {
+ emittedRef.current = value;
+ const timer = setTimeout(() => {
+ if (!editor.isDestroyed) {
+ editor.commands.setContent(value, {
+ contentType: "markdown",
+ emitUpdate: false,
+ });
+ }
+ }, 0);
+ return () => clearTimeout(timer);
+ }
+ }, [editor, value]);
+
+ // Sync page context into editor storage
+ useEffect(() => {
+ if (editor) {
+ editor.storage.pageContext = { title: pageTitle, pageId };
+ }
+ }, [editor, pageTitle, pageId]);
+
+ // Close insert menu when clicking outside
+ useEffect(() => {
+ const handleClickOutside = (e) => {
+ if (insertMenuRef.current && !insertMenuRef.current.contains(e.target)) {
+ setShowInsertMenu(false);
+ }
+ };
+ document.addEventListener("pointerdown", handleClickOutside);
+ return () => document.removeEventListener("pointerdown", handleClickOutside);
+ }, []);
+
+ if (!editor) {
+ return <div className="editor-loading">Loading editor…</div>;
+ }
+
+ return (
+ <div className="w-full">
+ {/* 1. Main Format Toolbar */}
+ <div
+ className="format-toolbar"
+ role="toolbar"
+ aria-label="Text formatting"
+ >
+ {/* Insert Block Dropdown Button */}
+ <div className="relative inline-block" ref={insertMenuRef}>
+ <button
+ type="button"
+ className="insert-block-trigger"
+ onClick={() => setShowInsertMenu(!showInsertMenu)}
+ title="Insert block (+)"
+ aria-expanded={showInsertMenu}
+ >
+ <LuPlus size={15} />
+ <span>Insert</span>
+ <LuChevronDown size={12} className={`transition-transform ${showInsertMenu ? "rotate-180" : ""}`} />
+ </button>
+
+ {showInsertMenu && (
+ <div className="insert-block-dropdown animate-in fade-in zoom-in-95 duration-100">
+ <div className="insert-dropdown-section">AI GENERATE</div>
+ <button
+ type="button"
+ className="ai-menu-item"
+ onClick={() => {
+ editor.chain().focus().insertContent({ type: "aiPrompt" }).run();
+ setShowInsertMenu(false);
+ }}
+ >
+ <span className="insert-icon ai-insert-icon">✨</span>
+ <span className="insert-text font-semibold text-purple-700 dark:text-purple-300">Generate with AI</span>
+ </button>
+
+ <button
+ type="button"
+ className="ai-menu-item"
+ onClick={() => {
+ editor.chain().focus().insertContent({ type: "aiImagePrompt" }).run();
+ setShowInsertMenu(false);
+ }}
+ >
+ <span className="insert-icon ai-insert-icon">πŸ–ΌοΈ</span>
+ <span className="insert-text font-semibold text-purple-700 dark:text-purple-300">Generate Image (GPT-Image-2)</span>
+ </button>
+
+ <div className="insert-dropdown-section">BASIC BLOCKS</div>
+ <button
+ type="button"
+ onClick={() => {
+ editor.chain().focus().setParagraph().run();
+ setShowInsertMenu(false);
+ }}
+ >
+ <span className="insert-icon">T</span>
+ <span className="insert-text">Text paragraph</span>
+ </button>
+ <button
+ type="button"
+ onClick={() => {
+ editor.chain().focus().setHeading({ level: 1 }).run();
+ setShowInsertMenu(false);
+ }}
+ >
+ <span className="insert-icon">H1</span>
+ <span className="insert-text">Heading 1</span>
+ </button>
+ <button
+ type="button"
+ onClick={() => {
+ editor.chain().focus().setHeading({ level: 2 }).run();
+ setShowInsertMenu(false);
+ }}
+ >
+ <span className="insert-icon">H2</span>
+ <span className="insert-text">Heading 2</span>
+ </button>
+ <button
+ type="button"
+ onClick={() => {
+ editor.chain().focus().setHeading({ level: 3 }).run();
+ setShowInsertMenu(false);
+ }}
+ >
+ <span className="insert-icon">H3</span>
+ <span className="insert-text">Heading 3</span>
+ </button>
+
+ <div className="insert-dropdown-section">LISTS & CALLOUTS</div>
+ <button
+ type="button"
+ onClick={() => {
+ editor.chain().focus().toggleBulletList().run();
+ setShowInsertMenu(false);
+ }}
+ >
+ <span className="insert-icon">β€’</span>
+ <span className="insert-text">Bullet list</span>
+ </button>
+ <button
+ type="button"
+ onClick={() => {
+ editor.chain().focus().toggleOrderedList().run();
+ setShowInsertMenu(false);
+ }}
+ >
+ <span className="insert-icon">1.</span>
+ <span className="insert-text">Numbered list</span>
+ </button>
+ <button
+ type="button"
+ onClick={() => {
+ editor.chain().focus().toggleTaskList().run();
+ setShowInsertMenu(false);
+ }}
+ >
+ <span className="insert-icon">β˜‘</span>
+ <span className="insert-text">Checklist</span>
+ </button>
+ <button
+ type="button"
+ onClick={() => {
+ editor.chain().focus().toggleBlockquote().run();
+ setShowInsertMenu(false);
+ }}
+ >
+ <span className="insert-icon">β€œ</span>
+ <span className="insert-text">Quote callout</span>
+ </button>
+
+ <div className="insert-dropdown-section">COMPONENTS</div>
+ <button
+ type="button"
+ onClick={() => {
+ editor.chain().focus().insertTable({ rows: 3, cols: 3, withHeaderRow: true }).run();
+ setShowInsertMenu(false);
+ }}
+ >
+ <span className="insert-icon">⊞</span>
+ <span className="insert-text">Table (3x3 grid)</span>
+ </button>
+ <button
+ type="button"
+ onClick={() => {
+ editor.chain().focus().toggleCodeBlock({ language: "javascript" }).run();
+ setShowInsertMenu(false);
+ }}
+ >
+ <span className="insert-icon">&lt;&gt;</span>
+ <span className="insert-text">Code block</span>
+ </button>
+ <button
+ type="button"
+ onClick={() => {
+ editor.chain().focus().setHorizontalRule().run();
+ setShowInsertMenu(false);
+ }}
+ >
+ <span className="insert-icon">β€”</span>
+ <span className="insert-text">Divider line</span>
+ </button>
+ </div>
+ )}
+ </div>
+
+ <span className="toolbar-divider" />
+
+ {/* Text styling */}
+ <button
+ type="button"
+ title="Bold (⌘/Ctrl B)"
+ aria-label="Bold"
+ aria-pressed={state?.bold}
+ onClick={() => editor.chain().focus().toggleBold().run()}
+ >
+ <LuBold size={15} />
+ </button>
+ <button
+ type="button"
+ title="Italic (⌘/Ctrl I)"
+ aria-label="Italic"
+ aria-pressed={state?.italic}
+ onClick={() => editor.chain().focus().toggleItalic().run()}
+ >
+ <LuItalic size={15} />
+ </button>
+
+ <span className="toolbar-divider" />
+
+ {/* Headings */}
+ <button
+ type="button"
+ title="Heading 1"
+ aria-label="Heading 1"
+ aria-pressed={state?.h1}
+ onClick={() => editor.chain().focus().toggleHeading({ level: 1 }).run()}
+ >
+ <LuHeading1 size={16} />
+ </button>
+ <button
+ type="button"
+ title="Heading 2"
+ aria-label="Heading 2"
+ aria-pressed={state?.h2}
+ onClick={() => editor.chain().focus().toggleHeading({ level: 2 }).run()}
+ >
+ <LuHeading2 size={16} />
+ </button>
+ <button
+ type="button"
+ title="Heading 3"
+ aria-label="Heading 3"
+ aria-pressed={state?.h3}
+ onClick={() => editor.chain().focus().toggleHeading({ level: 3 }).run()}
+ >
+ <LuHeading3 size={16} />
+ </button>
+
+ <span className="toolbar-divider" />
+
+ {/* Lists */}
+ <button
+ type="button"
+ title="Bullet list"
+ aria-label="Bullet list"
+ aria-pressed={state?.bullet}
+ onClick={() => editor.chain().focus().toggleBulletList().run()}
+ >
+ <LuList size={16} />
+ </button>
+ <button
+ type="button"
+ title="Numbered list"
+ aria-label="Numbered list"
+ aria-pressed={state?.ordered}
+ onClick={() => editor.chain().focus().toggleOrderedList().run()}
+ >
+ <LuListOrdered size={16} />
+ </button>
+ <button
+ type="button"
+ title="Checklist"
+ aria-label="Checklist"
+ aria-pressed={state?.checklist}
+ onClick={() => editor.chain().focus().toggleTaskList().run()}
+ >
+ <LuListTodo size={16} />
+ </button>
+
+ <span className="toolbar-divider" />
+
+ {/* Blocks: Quote, Code, Table, Divider, Link */}
+ <button
+ type="button"
+ title="Quote"
+ aria-label="Quote"
+ aria-pressed={state?.quote}
+ onClick={() => editor.chain().focus().toggleBlockquote().run()}
+ >
+ <LuQuote size={15} />
+ </button>
+ <button
+ type="button"
+ title="Code block"
+ aria-label="Code block"
+ aria-pressed={state?.code}
+ onClick={() => editor.chain().focus().toggleCodeBlock().run()}
+ >
+ <LuCode size={16} />
+ </button>
+ <button
+ type="button"
+ title="Insert table"
+ aria-label="Insert table"
+ aria-pressed={state?.table}
+ onClick={() => {
+ if (state?.table) {
+ editor.chain().focus().deleteTable().run();
+ } else {
+ editor.chain().focus().insertTable({ rows: 3, cols: 3, withHeaderRow: true }).run();
+ }
+ }}
+ >
+ <LuTable size={16} />
+ </button>
+ <button
+ type="button"
+ title="Horizontal divider"
+ aria-label="Divider"
+ onClick={() => editor.chain().focus().setHorizontalRule().run()}
+ >
+ <LuMinus size={16} />
+ </button>
+ <button
+ type="button"
+ title="Add link"
+ aria-label="Add link"
+ onClick={() => {
+ const currentHref = editor.getAttributes("link").href ?? "";
+ const url = window.prompt("Link URL (https://...)", currentHref);
+ if (url === null) return;
+ if (!url) {
+ editor.chain().focus().unsetLink().run();
+ return;
+ }
+ editor
+ .chain()
+ .focus()
+ .extendMarkRange("link")
+ .setLink({ href: url })
+ .run();
+ }}
+ >
+ <LuLink size={15} />
+ </button>
+
+ <span className="toolbar-divider" />
+
+ {/* Undo / Redo */}
+ <button
+ type="button"
+ aria-label="Undo"
+ title="Undo (⌘/Ctrl Z)"
+ disabled={!state?.undo}
+ onClick={() => editor.chain().focus().undo().run()}
+ >
+ <LuUndo2 size={15} />
+ </button>
+ <button
+ type="button"
+ aria-label="Redo"
+ title="Redo"
+ disabled={!state?.redo}
+ onClick={() => editor.chain().focus().redo().run()}
+ >
+ <LuRedo2 size={15} />
+ </button>
+ </div>
+
+ {/* 2. Contextual Sub-bar: Table Controls (visible whenever cursor is inside a table) */}
+ {state?.table && (
+ <div className="table-actions-bar animate-in fade-in slide-in-from-top-1 duration-150">
+ <span className="table-bar-label">Table:</span>
+ <button
+ type="button"
+ onClick={() => editor.chain().focus().addRowBefore().run()}
+ title="Add row above"
+ >
+ + Row Above
+ </button>
+ <button
+ type="button"
+ onClick={() => editor.chain().focus().addRowAfter().run()}
+ title="Add row below"
+ >
+ + Row Below
+ </button>
+ <button
+ type="button"
+ onClick={() => editor.chain().focus().deleteRow().run()}
+ title="Delete current row"
+ >
+ - Delete Row
+ </button>
+ <span className="subbar-divider" />
+ <button
+ type="button"
+ onClick={() => editor.chain().focus().addColumnBefore().run()}
+ title="Add column to left"
+ >
+ + Col Left
+ </button>
+ <button
+ type="button"
+ onClick={() => editor.chain().focus().addColumnAfter().run()}
+ title="Add column to right"
+ >
+ + Col Right
+ </button>
+ <button
+ type="button"
+ onClick={() => editor.chain().focus().deleteColumn().run()}
+ title="Delete current column"
+ >
+ - Delete Col
+ </button>
+ <span className="subbar-divider" />
+ <button
+ type="button"
+ onClick={() => editor.chain().focus().deleteTable().run()}
+ title="Delete entire table"
+ className="table-delete-action"
+ >
+ <LuTrash2 size={13} />
+ <span>Remove Table</span>
+ </button>
+ </div>
+ )}
+
+ {/* Unified TipTap Free-Typing Document Canvas */}
+ <EditorContent editor={editor} />
+
+ {/* 5. Editor Hint matching OpenDots */}
+ <p className="editor-hint">
+ Type <kbd>/</kbd> for blocks · Click <kbd>+ Insert</kbd> in toolbar · ⌘/Ctrl + S to save
+ </p>
+ </div>
+ );
+}
diff --git a/client/src/components/editor/editor.css b/client/src/components/editor/editor.css
new file mode 100644
index 0000000..d737093
--- /dev/null
+++ b/client/src/components/editor/editor.css
@@ -0,0 +1,836 @@
+/* TipTap OpenDots-style Document Editor Styles */
+
+.format-toolbar {
+ display: flex;
+ align-items: center;
+ gap: 2px;
+ margin: 0 0 16px;
+ padding: 4px 0;
+ border-bottom: 1px solid #e4e4e7;
+ flex-wrap: wrap;
+}
+
+:is(.dark) .format-toolbar {
+ border-bottom-color: #27272a;
+}
+
+.format-toolbar button {
+ width: 32px;
+ height: 32px;
+ padding: 0;
+ min-width: 0;
+ border: 0;
+ border-radius: 6px;
+ background: none;
+ color: #71717a;
+ cursor: pointer;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ transition: all 0.15s ease;
+}
+
+:is(.dark) .format-toolbar button {
+ color: #a1a1aa;
+}
+
+.format-toolbar button:hover:not(:disabled),
+.format-toolbar button[aria-pressed='true'] {
+ background: #f4f4f5;
+ color: #18181b;
+}
+
+:is(.dark) .format-toolbar button:hover:not(:disabled),
+:is(.dark) .format-toolbar button[aria-pressed='true'] {
+ background: #27272a;
+ color: #f4f4f5;
+}
+
+.format-toolbar button:disabled {
+ opacity: 0.35;
+ cursor: not-allowed;
+}
+
+.toolbar-divider {
+ width: 1px;
+ height: 16px;
+ background: #e4e4e7;
+ margin: 0 4px;
+}
+
+:is(.dark) .toolbar-divider {
+ background: #27272a;
+}
+
+/* Insert Block Dropdown Trigger */
+.insert-block-trigger {
+ width: auto !important;
+ height: 30px !important;
+ padding: 0 8px !important;
+ gap: 4px;
+ font-size: 12px;
+ font-weight: 500;
+ color: #3f3f46 !important;
+ background: #f4f4f5 !important;
+ border: 1px solid #e4e4e7 !important;
+ border-radius: 6px !important;
+}
+
+:is(.dark) .insert-block-trigger {
+ color: #e4e4e7 !important;
+ background: #27272a !important;
+ border-color: #3f3f46 !important;
+}
+
+.insert-block-trigger:hover {
+ background: #e4e4e7 !important;
+}
+
+:is(.dark) .insert-block-trigger:hover {
+ background: #3f3f46 !important;
+}
+
+/* Insert Block Dropdown Menu */
+.insert-block-dropdown {
+ position: absolute;
+ top: 36px;
+ left: 0;
+ width: 210px;
+ max-height: 360px;
+ overflow-y: auto;
+ z-index: 60;
+ background: #ffffff;
+ border: 1px solid #e4e4e7;
+ border-radius: 12px;
+ box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
+ padding: 6px;
+}
+
+:is(.dark) .insert-block-dropdown {
+ background: #1c1c1f;
+ border-color: #2e2e32;
+ box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
+}
+
+.insert-dropdown-section {
+ font-size: 9px;
+ font-weight: 700;
+ letter-spacing: 0.08em;
+ color: #a1a1aa;
+ padding: 6px 8px 3px;
+}
+
+:is(.dark) .insert-dropdown-section {
+ color: #71717a;
+}
+
+.insert-block-dropdown button {
+ width: 100% !important;
+ height: 32px !important;
+ padding: 0 8px !important;
+ display: flex !important;
+ align-items: center !important;
+ justify-content: flex-start !important;
+ gap: 8px !important;
+ border-radius: 6px !important;
+ text-align: left !important;
+ font-size: 12px !important;
+ color: #27272a !important;
+ cursor: pointer;
+}
+
+:is(.dark) .insert-block-dropdown button {
+ color: #e4e4e7 !important;
+}
+
+.insert-block-dropdown button:hover {
+ background: #f4f4f5 !important;
+}
+
+:is(.dark) .insert-block-dropdown button:hover {
+ background: #27272a !important;
+}
+
+.insert-icon {
+ font-size: 11px;
+ font-weight: 700;
+ color: #6366f1;
+ width: 20px;
+ text-align: center;
+}
+
+:is(.dark) .insert-icon {
+ color: #818cf8;
+}
+
+.insert-text {
+ font-size: 12px;
+ font-weight: 450;
+}
+
+/* Sub-bars: Table and Code Block Contextual toolbars */
+.table-actions-bar,
+.code-actions-bar {
+ display: flex;
+ align-items: center;
+ gap: 6px;
+ margin: -8px 0 16px;
+ padding: 6px 10px;
+ background: #fbfbfa;
+ border: 1px solid #e4e4e7;
+ border-radius: 8px;
+ font-size: 11px;
+ flex-wrap: wrap;
+}
+
+:is(.dark) .table-actions-bar,
+:is(.dark) .code-actions-bar {
+ background: #18181b;
+ border-color: #27272a;
+}
+
+.table-bar-label,
+.code-bar-label {
+ font-size: 11px;
+ font-weight: 600;
+ color: #71717a;
+ margin-right: 2px;
+}
+
+:is(.dark) .table-bar-label,
+:is(.dark) .code-bar-label {
+ color: #a1a1aa;
+}
+
+.table-actions-bar button,
+.code-copy-action {
+ display: inline-flex;
+ align-items: center;
+ gap: 4px;
+ padding: 3px 8px;
+ border: 1px solid #e4e4e7;
+ border-radius: 5px;
+ background: #ffffff;
+ color: #3f3f46;
+ font-size: 11px;
+ font-weight: 500;
+ cursor: pointer;
+ transition: all 0.12s;
+}
+
+:is(.dark) .table-actions-bar button,
+:is(.dark) .code-copy-action {
+ border-color: #3f3f46;
+ background: #27272a;
+ color: #e4e4e7;
+}
+
+.table-actions-bar button:hover,
+.code-copy-action:hover {
+ background: #f4f4f5;
+ color: #18181b;
+}
+
+:is(.dark) .table-actions-bar button:hover,
+:is(.dark) .code-copy-action:hover {
+ background: #3f3f46;
+ color: #fafafa;
+}
+
+.table-delete-action {
+ color: #ef4444 !important;
+ border-color: #fecaca !important;
+}
+
+:is(.dark) .table-delete-action {
+ color: #f87171 !important;
+ border-color: #7f1d1d !important;
+}
+
+.subbar-divider {
+ width: 1px;
+ height: 14px;
+ background: #e4e4e7;
+ margin: 0 4px;
+}
+
+:is(.dark) .subbar-divider {
+ background: #3f3f46;
+}
+
+.code-lang-selector {
+ padding: 3px 8px;
+ font-size: 11px;
+ border: 1px solid #e4e4e7;
+ border-radius: 5px;
+ background: #ffffff;
+ color: #18181b;
+ cursor: pointer;
+ outline: none;
+}
+
+:is(.dark) .code-lang-selector {
+ border-color: #3f3f46;
+ background: #27272a;
+ color: #f4f4f5;
+}
+
+/* Document Prose */
+.document-prose {
+ outline: none;
+ min-height: 340px;
+ font-size: 15px;
+ line-height: 1.75;
+ color: #27272a;
+ overflow-wrap: anywhere;
+ caret-color: #4f46e5;
+}
+
+:is(.dark) .document-prose {
+ color: #e4e4e7;
+ caret-color: #818cf8;
+}
+
+.document-prose p {
+ margin: 0 0 0.85em;
+}
+
+.document-prose img {
+ display: block;
+ max-width: 100%;
+ height: auto;
+ border-radius: 12px;
+ margin: 1.5rem auto;
+ border: 1px solid #e4e4e7;
+ box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
+ transition: transform 0.2s ease, box-shadow 0.2s ease;
+}
+
+.document-prose img:hover {
+ transform: scale(1.005);
+ box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
+}
+
+:is(.dark) .document-prose img {
+ border-color: #27272a;
+ box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
+}
+
+.document-prose h1 {
+ font-size: 28px;
+ line-height: 1.3;
+ margin: 1.3em 0 0.5em;
+ letter-spacing: -0.6px;
+ font-weight: 700;
+ color: #09090b;
+}
+
+:is(.dark) .document-prose h1 {
+ color: #fafafa;
+}
+
+.document-prose h2 {
+ font-size: 22px;
+ line-height: 1.35;
+ margin: 1.3em 0 0.5em;
+ letter-spacing: -0.4px;
+ font-weight: 650;
+ color: #09090b;
+}
+
+:is(.dark) .document-prose h2 {
+ color: #fafafa;
+}
+
+.document-prose h3 {
+ font-size: 18px;
+ line-height: 1.4;
+ margin: 1.2em 0 0.45em;
+ letter-spacing: -0.2px;
+ font-weight: 600;
+ color: #09090b;
+}
+
+:is(.dark) .document-prose h3 {
+ color: #fafafa;
+}
+
+.document-prose ul,
+.document-prose ol {
+ padding-left: 24px;
+ margin: 0 0 0.85em;
+}
+
+.document-prose li p {
+ margin-bottom: 0.25em;
+}
+
+.document-prose li + li {
+ margin-top: 0.25em;
+}
+
+/* Task List */
+.document-prose ul[data-type='taskList'] {
+ list-style: none;
+ padding: 0;
+}
+
+.document-prose li[data-type='taskItem'] {
+ display: flex;
+ align-items: flex-start;
+ gap: 10px;
+}
+
+.document-prose li[data-type='taskItem'] > label {
+ flex: 0 0 auto;
+ line-height: 1.8;
+ cursor: pointer;
+}
+
+.document-prose li[data-type='taskItem'] > label input {
+ accent-color: #4f46e5;
+ width: 15px;
+ height: 15px;
+ margin-top: 6px;
+ cursor: pointer;
+}
+
+.document-prose li[data-type='taskItem'] > div {
+ flex: 1;
+}
+
+/* Blockquote */
+.document-prose blockquote {
+ border-left: 3px solid #6366f1;
+ padding: 6px 0 6px 18px;
+ margin: 18px 0;
+ color: #52525b;
+ background: #fbfbfe;
+ border-radius: 0 8px 8px 0;
+}
+
+:is(.dark) .document-prose blockquote {
+ border-left-color: #818cf8;
+ color: #a1a1aa;
+ background: #18181b;
+}
+
+.document-prose blockquote p:last-child {
+ margin-bottom: 0;
+}
+
+/* Code block container with custom header */
+.code-block-container {
+ margin: 20px 0;
+ border-radius: 12px;
+ overflow: hidden;
+ border: 1px solid #27272a;
+ background: #111114;
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
+}
+
+:is(.dark) .code-block-container {
+ border-color: #27272a;
+ background: #101013;
+ box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
+}
+
+.code-block-header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 6px 12px;
+ background: #1a1a20;
+ border-bottom: 1px solid #27272a;
+ user-select: none;
+}
+
+:is(.dark) .code-block-header {
+ background: #18181e;
+ border-bottom-color: #26262e;
+}
+
+.code-block-container pre {
+ margin: 0 !important;
+ border: 0 !important;
+ border-radius: 0 !important;
+ background: transparent !important;
+ padding: 16px !important;
+ line-height: 1.65;
+ font-size: 13px;
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
+ color: #f4f4f5;
+ overflow-x: auto;
+}
+
+.code-block-container pre code {
+ background: transparent !important;
+ color: inherit !important;
+ padding: 0 !important;
+ border-radius: 0 !important;
+ font-family: inherit;
+ font-size: inherit;
+}
+
+/* Fallback Code */
+.document-prose pre {
+ background: #18181b;
+ color: #f4f4f5;
+ border: 1px solid #27272a;
+ border-radius: 10px;
+ padding: 16px;
+ overflow-x: auto;
+ font-size: 13px;
+ line-height: 1.65;
+ margin: 16px 0;
+}
+
+.document-prose code {
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
+ background: #f4f4f5;
+ color: #e11d48;
+ font-size: 0.88em;
+ padding: 2px 5px;
+ border-radius: 5px;
+}
+
+:is(.dark) .document-prose code {
+ background: #27272a;
+ color: #fb7185;
+}
+
+.document-prose pre code {
+ background: none;
+ color: inherit;
+ padding: 0;
+}
+
+/* Divider */
+.document-prose hr {
+ border: 0;
+ border-top: 1px solid #e4e4e7;
+ margin: 28px 0;
+}
+
+:is(.dark) .document-prose hr {
+ border-top-color: #27272a;
+}
+
+/* Links */
+.document-prose a {
+ color: #4f46e5;
+ text-decoration: underline;
+ text-underline-offset: 3px;
+ cursor: pointer;
+}
+
+:is(.dark) .document-prose a {
+ color: #818cf8;
+}
+
+/* TABLES (OpenDots style) */
+.tableWrapper {
+ margin: 24px 0;
+ overflow-x: auto;
+ border-radius: 12px;
+ border: 1px solid #d4d4d8;
+ background: #ffffff;
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
+}
+
+:is(.dark) .tableWrapper {
+ border-color: #3f3f46;
+ background: #141418;
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
+}
+
+.document-prose table {
+ border-collapse: separate;
+ border-spacing: 0;
+ width: 100%;
+ table-layout: fixed;
+ margin: 0;
+ border: none;
+}
+
+/* Fallback if table is directly rendered outside tableWrapper */
+.document-prose > table {
+ border-collapse: separate;
+ border-spacing: 0;
+ width: 100%;
+ table-layout: fixed;
+ margin: 24px 0;
+ border-radius: 12px;
+ overflow: hidden;
+ border: 1px solid #d4d4d8;
+ background: #ffffff;
+}
+
+:is(.dark) .document-prose > table {
+ border-color: #3f3f46;
+ background: #141418;
+}
+
+.document-prose td,
+.document-prose th {
+ border-right: 1px solid #e4e4e7;
+ border-bottom: 1px solid #e4e4e7;
+ min-width: 80px;
+ padding: 11px 15px;
+ vertical-align: top;
+ position: relative;
+ font-size: 13.5px;
+ line-height: 1.55;
+ box-sizing: border-box;
+}
+
+:is(.dark) .document-prose td,
+:is(.dark) .document-prose th {
+ border-right-color: #33333a;
+ border-bottom-color: #33333a;
+}
+
+/* Edge cell border cleanup */
+.document-prose th:last-child,
+.document-prose td:last-child {
+ border-right: none;
+}
+
+.document-prose tr:last-child td {
+ border-bottom: none;
+}
+
+.document-prose th {
+ font-weight: 600;
+ background: #f4f4f6;
+ color: #09090b;
+ text-align: left;
+ border-bottom: 2px solid #d4d4d8;
+}
+
+:is(.dark) .document-prose th {
+ background: #1a1a22;
+ color: #f4f4f5;
+ border-bottom-color: #3f3f46;
+}
+
+.document-prose td p,
+.document-prose th p {
+ margin: 0;
+}
+
+.document-prose .selectedCell:after {
+ content: '';
+ position: absolute;
+ inset: 0;
+ background: rgba(99, 102, 241, 0.15);
+ pointer-events: none;
+}
+
+/* Placeholder */
+.document-prose p.is-editor-empty:first-child:before {
+ content: attr(data-placeholder);
+ float: left;
+ height: 0;
+ pointer-events: none;
+ color: #a1a1aa;
+}
+
+:is(.dark) .document-prose p.is-editor-empty:first-child:before {
+ color: #52525b;
+}
+
+/* Editor Hint */
+.editor-hint {
+ font-size: 12px;
+ color: #71717a;
+ margin-top: 32px;
+ user-select: none;
+}
+
+:is(.dark) .editor-hint {
+ color: #a1a1aa;
+}
+
+.editor-hint kbd {
+ font: inherit;
+ border: 1px solid #d4d4d8;
+ border-radius: 4px;
+ padding: 1px 5px;
+ background: #f4f4f5;
+ font-size: 11px;
+}
+
+:is(.dark) .editor-hint kbd {
+ border-color: #3f3f46;
+ background: #27272a;
+}
+
+.editor-loading {
+ padding: 35px 0;
+ color: #71717a;
+ font-size: 14px;
+}
+
+/* SLASH COMMAND MENU - Minimal, compact style */
+.slash-menu {
+ position: fixed;
+ width: min(240px, calc(100vw - 24px));
+ max-height: 280px;
+ overflow-y: auto;
+ z-index: 100;
+ background: #ffffff;
+ border: 1px solid #e4e4e7;
+ border-radius: 10px;
+ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
+ padding: 4px;
+ user-select: none;
+}
+
+:is(.dark) .slash-menu {
+ background: #18181b;
+ border-color: #27272a;
+ box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
+}
+
+.slash-menu-label {
+ font-size: 9px;
+ color: #a1a1aa;
+ font-weight: 600;
+ letter-spacing: 0.05em;
+ padding: 5px 6px 2px;
+}
+
+:is(.dark) .slash-menu-label {
+ color: #71717a;
+}
+
+.slash-menu button {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ width: 100%;
+ border: 0;
+ border-radius: 6px;
+ padding: 3.5px 6px;
+ min-height: 30px;
+ background: none;
+ cursor: pointer;
+ text-align: left;
+ transition: background 0.1s ease;
+}
+
+.slash-menu button:hover,
+.slash-menu button.selected {
+ background: #f4f4f5;
+}
+
+:is(.dark) .slash-menu button:hover,
+:is(.dark) .slash-menu button.selected {
+ background: #27272a;
+}
+
+.slash-block-icon {
+ width: 19px;
+ height: 19px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 9.5px;
+ font-weight: 600;
+ color: #6366f1;
+ background: #f4f4f5;
+ border-radius: 4px;
+ flex-shrink: 0;
+}
+
+.slash-block-icon.ai-badge {
+ background: #f5f3ff;
+ color: #7c3aed;
+ font-size: 11px;
+}
+
+:is(.dark) .slash-block-icon {
+ color: #818cf8;
+ background: #27272a;
+}
+
+:is(.dark) .slash-block-icon.ai-badge {
+ background: #2e1065;
+ color: #c084fc;
+}
+
+.slash-block-text {
+ display: flex;
+ flex-direction: column;
+ gap: 1px;
+ min-width: 0;
+}
+
+.slash-menu strong {
+ font-size: 11.5px;
+ font-weight: 500;
+ color: #18181b;
+ line-height: 1.25;
+}
+
+:is(.dark) .slash-menu strong {
+ color: #f4f4f5;
+}
+
+.slash-menu button span,
+.slash-menu p {
+ font-size: 9.5px;
+ color: #71717a;
+ line-height: 1.2;
+}
+
+:is(.dark) .slash-menu button span,
+:is(.dark) .slash-menu p {
+ color: #a1a1aa;
+}
+
+.slash-menu p {
+ padding: 8px;
+ text-align: center;
+}
+
+/* AI Generate in Insert Dropdown */
+.ai-menu-item {
+ background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(236, 72, 153, 0.05)) !important;
+ border-left: 2px solid #a855f7 !important;
+}
+
+:is(.dark) .ai-menu-item {
+ background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.08)) !important;
+ border-left: 2px solid #c084fc !important;
+}
+
+.ai-insert-icon {
+ background: linear-gradient(135deg, #ede9fe, #fae8ff) !important;
+ color: #9333ea !important;
+}
+
+:is(.dark) .ai-insert-icon {
+ background: linear-gradient(135deg, #3b0764, #581c87) !important;
+ color: #e9d5ff !important;
+}
+
+/* AI Prompt Inline Node */
+.ai-prompt-node-wrapper {
+ margin: 1rem 0;
+ display: block;
+}
+
+.ai-prompt-card {
+ transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
+}
+
+.ai-prompt-card:focus-within {
+ box-shadow: 0 8px 30px rgba(168, 85, 247, 0.12);
+}
+
+:is(.dark) .ai-prompt-card:focus-within {
+ box-shadow: 0 8px 30px rgba(168, 85, 247, 0.2);
+}
+
diff --git a/client/src/components/editor/markdown.js b/client/src/components/editor/markdown.js
new file mode 100644
index 0000000..0ea9c10
--- /dev/null
+++ b/client/src/components/editor/markdown.js
@@ -0,0 +1,112 @@
+import StarterKit from "@tiptap/starter-kit";
+import { MarkdownManager } from "@tiptap/markdown";
+import { TableKit } from "@tiptap/extension-table";
+import TaskList from "@tiptap/extension-task-list";
+import TaskItem from "@tiptap/extension-task-item";
+import Image from "@tiptap/extension-image";
+import { CustomCodeBlock } from "./CodeBlockView";
+import { AiPromptNode } from "./AiPromptView";
+import { AiImageNode } from "./AiImageView";
+
+export const documentExtensions = () => [
+ StarterKit.configure({
+ codeBlock: false,
+ underline: false,
+ link: { openOnClick: false, autolink: false },
+ heading: { levels: [1, 2, 3] },
+ }),
+ Image.configure({
+ inline: false,
+ allowBase64: true,
+ HTMLAttributes: {
+ class: "rounded-xl border border-zinc-200 dark:border-zinc-800 shadow-sm max-w-full my-4",
+ },
+ }),
+ CustomCodeBlock,
+ AiPromptNode,
+ AiImageNode,
+ TableKit.configure({ table: { resizable: false } }),
+ TaskList,
+ TaskItem.configure({ nested: true }),
+];
+
+export const markdownManager = new MarkdownManager({
+ extensions: documentExtensions(),
+});
+
+const allowed = new Set([
+ "space",
+ "code",
+ "heading",
+ "table",
+ "hr",
+ "blockquote",
+ "list",
+ "list_item",
+ "paragraph",
+ "text",
+ "escape",
+ "strong",
+ "em",
+ "codespan",
+ "br",
+ "del",
+ "link",
+ "image",
+ "taskList",
+ "taskItem",
+]);
+
+export function inspectMarkdown(source) {
+ try {
+ if (
+ /^---\r?\n[\s\S]*?\r?\n---(?:\r?\n|$)/.test(source) ||
+ /^\[\^[^\]]+\]:/m.test(source) ||
+ /^\s*(\$\$|:::)/m.test(source)
+ ) {
+ return {
+ supported: false,
+ reason: "This document contains extended Markdown. Source mode preserves it exactly.",
+ };
+ }
+ const tokens = markdownManager.instance.lexer(source);
+ let unsupported = false;
+ const pending = [tokens];
+ while (pending.length) {
+ const value = pending.pop();
+ if (!value || typeof value !== "object") continue;
+ if (
+ "type" in value &&
+ typeof value.type === "string" &&
+ (!allowed.has(value.type) ||
+ (value.type === "heading" &&
+ "depth" in value &&
+ typeof value.depth === "number" &&
+ value.depth > 3))
+ ) {
+ unsupported = true;
+ }
+ pending.push(...Object.values(value));
+ }
+ if (unsupported) {
+ return {
+ supported: false,
+ reason: "This document contains images, HTML, or formatting that needs Markdown source mode. Nothing has been changed.",
+ };
+ }
+ const parsed = markdownManager.parse(source);
+ const restored = markdownManager.parse(markdownManager.serialize(parsed));
+ if (JSON.stringify(parsed) !== JSON.stringify(restored)) {
+ return {
+ supported: false,
+ reason: "Some formatting cannot be safely round-tripped. Source mode keeps the original document intact.",
+ };
+ }
+ return { supported: true };
+ } catch {
+ return {
+ supported: false,
+ reason: "This Markdown needs source mode to preserve its contents.",
+ };
+ }
+}
diff --git a/client/src/components/editor/slash-commands.js b/client/src/components/editor/slash-commands.js
new file mode 100644
index 0000000..0e60d1d
--- /dev/null
+++ b/client/src/components/editor/slash-commands.js
@@ -0,0 +1,305 @@
+import { Extension } from "@tiptap/core";
+import Suggestion, { exitSuggestion } from "@tiptap/suggestion";
+
+const command = (action) => (editor, range) => {
+ editor.chain().focus().deleteRange(range).run();
+ action(editor);
+};
+
+export const blocks = [
+ {
+ category: "Generate",
+ title: "Generate",
+ description: "Describe what you want to write",
+ icon: "✨",
+ run: (editor, range) => {
+ editor
+ .chain()
+ .focus()
+ .deleteRange(range)
+ .insertContent({ type: "aiPrompt" })
+ .run();
+ },
+ },
+ {
+ category: "Generate",
+ title: "Generate Image",
+ description: "Create image with GPT-Image-2",
+ icon: "πŸ–ΌοΈ",
+ run: (editor, range) => {
+ editor
+ .chain()
+ .focus()
+ .deleteRange(range)
+ .insertContent({ type: "aiImagePrompt" })
+ .run();
+ },
+ },
+ {
+ category: "Basic",
+ title: "Text",
+ description: "Start with a plain paragraph",
+ icon: "T",
+ run: command((e) => e.chain().setParagraph().run()),
+ },
+ {
+ category: "Basic",
+ title: "Heading 1",
+ description: "A large section heading (#)",
+ icon: "H1",
+ run: command((e) => e.chain().setHeading({ level: 1 }).run()),
+ },
+ {
+ category: "Basic",
+ title: "Heading 2",
+ description: "A medium section heading (##)",
+ icon: "H2",
+ run: command((e) => e.chain().setHeading({ level: 2 }).run()),
+ },
+ {
+ category: "Basic",
+ title: "Heading 3",
+ description: "A small section heading (###)",
+ icon: "H3",
+ run: command((e) => e.chain().setHeading({ level: 3 }).run()),
+ },
+ {
+ category: "Basic",
+ title: "Bullet list",
+ description: "A simple unordered list (β€’)",
+ icon: "β€’",
+ run: command((e) => e.chain().toggleBulletList().run()),
+ },
+ {
+ category: "Basic",
+ title: "Numbered list",
+ description: "An ordered sequence (1, 2, 3)",
+ icon: "1.",
+ run: command((e) => e.chain().toggleOrderedList().run()),
+ },
+ {
+ category: "Basic",
+ title: "Checklist",
+ description: "Track tasks with checkable boxes",
+ icon: "β˜‘",
+ run: command((e) => e.chain().toggleTaskList().run()),
+ },
+ {
+ category: "Basic",
+ title: "Table",
+ description: "Interactive 3x3 table with header",
+ icon: "⊞",
+ run: command((e) =>
+ e.chain().insertTable({ rows: 3, cols: 3, withHeaderRow: true }).run()
+ ),
+ },
+ {
+ category: "Basic",
+ title: "Quote",
+ description: "Highlight a passage or blockquote (>)",
+ icon: "β€œ",
+ run: command((e) => e.chain().toggleBlockquote().run()),
+ },
+ {
+ category: "Basic",
+ title: "Divider",
+ description: "Separate sections with a horizontal line",
+ icon: "β€”",
+ run: command((e) => e.chain().setHorizontalRule().run()),
+ },
+ {
+ category: "Code",
+ title: "Code (JavaScript)",
+ description: "JavaScript syntax code block",
+ icon: "JS",
+ run: command((e) => e.chain().toggleCodeBlock({ language: "javascript" }).run()),
+ },
+ {
+ category: "Code",
+ title: "Code (Python)",
+ description: "Python syntax code block",
+ icon: "PY",
+ run: command((e) => e.chain().toggleCodeBlock({ language: "python" }).run()),
+ },
+ {
+ category: "Code",
+ title: "Code (HTML / CSS)",
+ description: "Web markup and styles block",
+ icon: "<>",
+ run: command((e) => e.chain().toggleCodeBlock({ language: "html" }).run()),
+ },
+ {
+ category: "Code",
+ title: "Code (SQL)",
+ description: "Database queries and schema block",
+ icon: "DB",
+ run: command((e) => e.chain().toggleCodeBlock({ language: "sql" }).run()),
+ },
+ {
+ category: "Code",
+ title: "Code (Bash / Shell)",
+ description: "Terminal commands and scripts block",
+ icon: "$_",
+ run: command((e) => e.chain().toggleCodeBlock({ language: "bash" }).run()),
+ },
+ {
+ category: "Code",
+ title: "Code (Plain Text)",
+ description: "Generic monospace code block",
+ icon: "{ }",
+ run: command((e) => e.chain().toggleCodeBlock({ language: "plaintext" }).run()),
+ },
+];
+
+export const SlashCommands = Extension.create({
+ name: "slashCommands",
+ addProseMirrorPlugins() {
+ return [
+ Suggestion({
+ editor: this.editor,
+ char: "/",
+ startOfLine: false,
+ allowedPrefixes: null,
+ items: ({ query }) =>
+ blocks.filter((block) =>
+ `${block.category || ""} ${block.title} ${block.description}`
+ .toLowerCase()
+ .includes(query.toLowerCase())
+ ),
+ command: ({ editor, range, props }) => props.run(editor, range),
+ render: () => {
+ let menu;
+ let current;
+ let index = 0;
+ const close = () => {
+ menu?.remove();
+ menu = undefined;
+ const dom = current?.editor.view.dom;
+ dom?.removeAttribute("aria-controls");
+ dom?.removeAttribute("aria-activedescendant");
+ dom?.removeAttribute("aria-autocomplete");
+ document.removeEventListener("pointerdown", outside);
+ };
+ const outside = (event) => {
+ if (menu && !menu.contains(event.target)) {
+ if (current) exitSuggestion(current.editor.view);
+ close();
+ }
+ };
+ const paint = () => {
+ if (!menu || !current) return;
+ const props = current;
+ menu.replaceChildren();
+
+ if (!props.items.length) {
+ const empty = document.createElement("p");
+ empty.className = "slash-menu-empty";
+ empty.textContent = "No matching blocks";
+ menu.append(empty);
+ return;
+ }
+
+ let lastCategory = null;
+
+ props.items.forEach((item, i) => {
+ if (item.category && item.category !== lastCategory) {
+ lastCategory = item.category;
+ const catLabel = document.createElement("div");
+ catLabel.className = "slash-menu-label";
+ catLabel.textContent = item.category.toUpperCase();
+ menu.append(catLabel);
+ }
+
+ const button = document.createElement("button");
+ button.type = "button";
+ button.id = `slash-block-${i}`;
+ button.setAttribute("role", "option");
+ button.setAttribute("aria-selected", String(i === index));
+ button.className = i === index ? "selected" : "";
+
+ const iconBadge = document.createElement("span");
+ iconBadge.className = `slash-block-icon ${item.category === "Generate" ? "ai-badge" : ""}`;
+ iconBadge.textContent = item.icon || "β€’";
+
+ const textWrap = document.createElement("div");
+ textWrap.className = "slash-block-text";
+
+ const title = document.createElement("strong");
+ title.textContent = item.title;
+
+ const description = document.createElement("span");
+ description.textContent = item.description;
+
+ textWrap.append(title, description);
+ button.append(iconBadge, textWrap);
+
+ button.addEventListener("mousedown", (event) =>
+ event.preventDefault()
+ );
+ button.addEventListener("click", () => props.command(item));
+ menu.append(button);
+ });
+ const rect = props.clientRect?.();
+ if (rect) {
+ menu.style.left = `${Math.max(12, Math.min(rect.left, window.innerWidth - 260))}px`;
+ menu.style.top = `${Math.max(12, Math.min(rect.bottom + 6, window.innerHeight - 300))}px`;
+ }
+ props.editor.view.dom.setAttribute(
+ "aria-activedescendant",
+ `slash-block-${index}`
+ );
+ menu
+ .querySelector(".selected")
+ ?.scrollIntoView({ block: "nearest" });
+ };
+ return {
+ onStart: (props) => {
+ current = props;
+ index = 0;
+ menu = document.createElement("div");
+ menu.id = "document-block-menu";
+ menu.className = "slash-menu";
+ menu.setAttribute("role", "listbox");
+ menu.setAttribute("aria-label", "Insert block");
+ document.body.append(menu);
+ props.editor.view.dom.setAttribute("aria-controls", menu.id);
+ props.editor.view.dom.setAttribute("aria-autocomplete", "list");
+ document.addEventListener("pointerdown", outside);
+ paint();
+ },
+ onUpdate: (props) => {
+ current = props;
+ index = 0;
+ paint();
+ },
+ onExit: close,
+ onKeyDown: ({ event, view }) => {
+ if (event.isComposing || view.composing || event.keyCode === 229)
+ return false;
+ if (event.key === "Escape") {
+ exitSuggestion(view);
+ close();
+ return true;
+ }
+ if (!current?.items.length) return false;
+ if (event.key === "ArrowDown" || event.key === "ArrowUp") {
+ index =
+ (index +
+ (event.key === "ArrowDown" ? 1 : -1) +
+ current.items.length) %
+ current.items.length;
+ paint();
+ return true;
+ }
+ if (event.key === "Enter") {
+ current.command(current.items[index]);
+ return true;
+ }
+ return false;
+ },
+ };
+ },
+ }),
+ ];
+ },
+});
diff --git a/server/.env.example b/server/.env.example
new file mode 100644
index 0000000..a0cac72
--- /dev/null
+++ b/server/.env.example
@@ -0,0 +1,10 @@
+PORT=8000
+HOST=0.0.0.0
+CORS_ORIGINS=http://localhost:3000,http://127.0.0.1:3000
+
+# Supabase PostgreSQL Configuration
+DATABASE_URL=postgresql://postgres.xxx:[email protected]:6543/postgres
+DIRECT_URL=postgresql://postgres.xxx:[email protected]:6543/postgres
+
+DEFAULT_MODEL=mimo-v2-6-flash-abliterated
+MUAPI_API_KEY=your_muapi_api_key_here
diff --git a/server/.gitignore b/server/.gitignore
new file mode 100644
index 0000000..4453a03
--- /dev/null
+++ b/server/.gitignore
@@ -0,0 +1,6 @@
+.env
+.env.local
+.env.*.local
+__pycache__/
+*.pyc
+.pytest_cache/
diff --git a/server/app/__init__.py b/server/app/__init__.py
new file mode 100644
index 0000000..3d75190
--- /dev/null
+++ b/server/app/__init__.py
@@ -0,0 +1,2 @@
+"""OpenSpaces FastAPI Backend Package."""
+__version__ = "0.1.0"
diff --git a/server/app/api/routers/agents.py b/server/app/api/routers/agents.py
new file mode 100644
index 0000000..0c6c7fe
--- /dev/null
+++ b/server/app/api/routers/agents.py
@@ -0,0 +1,81 @@
+import asyncio
+from typing import List
+from fastapi import APIRouter, HTTPException, BackgroundTasks
+from app.models.schemas import AgentDot, AgentRunRequest, MessageCreate
+from app.services.space_store import store
+
+router = APIRouter(prefix="/spaces/{space_id}/agents", tags=["Dots (AI Agents)"])
+
[email protected]("", response_model=List[AgentDot])
+def list_agents(space_id: str):
+ space = store.get_space(space_id)
+ if not space:
+ raise HTTPException(status_code=404, detail="Space not found")
+ return space.agents
+
+async def _simulate_agent_execution(space_id: str, agent_name: str, prompt: str, target_page_id: str = None):
+ """Simulates background agent autonomous execution."""
+ await asyncio.sleep(2)
+
+ # If target page provided, append or update content
+ if target_page_id:
+ page = store.get_page(space_id, target_page_id)
+ if page:
+ addition = f"\n\n### πŸ€– Agent Contribution ({agent_name})\n> **Instruction**: {prompt}\n\n*Analysis completed with real-time workspace context. Proposed updates integrated.*"
+ page.content += addition
+ page.version += 1
+
+ # Post a message back to space
+ store.add_message(
+ space_id,
+ MessageCreate(
+ content=f"Completed task: '{prompt}' on {f'page {target_page_id}' if target_page_id else 'the space'}.",
+ sender_type="agent",
+ sender_name=agent_name,
+ sender_avatar="⚑",
+ referenced_page_id=target_page_id,
+ )
+ )
+
+async def run_agent_task(
+ space_id: str,
+ payload: AgentRunRequest,
+ background_tasks: BackgroundTasks
+):
+ space = store.get_space(space_id)
+ if not space:
+ raise HTTPException(status_code=404, detail="Space not found")
+
+ agent = None
+ if payload.agent_id:
+ agent = next((a for a in space.agents if a.id == payload.agent_id), None)
+ if not agent:
+ agent = space.agents[0] if space.agents else AgentDot(id="dot-default", name="Assistant Dot")
+
+ # Post initial acknowledgment message
+ store.add_message(
+ space_id,
+ MessageCreate(
+ content=f"πŸ€– **{agent.name}** accepted task: '{payload.prompt}'",
+ sender_type="agent",
+ sender_name=agent.name,
+ sender_avatar="⚑",
+ referenced_page_id=payload.target_page_id,
+ )
+ )
+
+ background_tasks.add_task(
+ _simulate_agent_execution,
+ space_id,
+ agent.name,
+ payload.prompt,
+ payload.target_page_id
+ )
+
+ return {
+ "status": "started",
+ "agent": agent.name,
+ "task": payload.prompt,
+ "target_page_id": payload.target_page_id
+ }
diff --git a/server/app/api/routers/chat.py b/server/app/api/routers/chat.py
new file mode 100644
index 0000000..d3ae442
--- /dev/null
+++ b/server/app/api/routers/chat.py
@@ -0,0 +1,116 @@
+import os
+import json
+import httpx
+from typing import Optional, List, Dict, Any
+from fastapi import APIRouter, HTTPException
+from pydantic import BaseModel
+
+from app.core.config import settings
+
+router = APIRouter(prefix="/chat", tags=["ChatGPT 6 Series"])
+
+class ChatRequest(BaseModel):
+ prompt: str
+ model: str = "gpt-6-1-sol"
+ project: Optional[str] = "Clawdia"
+ system_prompt: Optional[str] = None
+ history: Optional[List[Dict[str, str]]] = []
+
+class ChatResponse(BaseModel):
+ reply: str
+ model: str
+ project: Optional[str] = None
+
+MUAPI_KEY = settings.MUAPI_API_KEY or os.getenv("MUAPI_API_KEY", "")
+
[email protected]("", response_model=ChatResponse)
+async def generate_chat(payload: ChatRequest):
+ prompt = payload.prompt.strip()
+ if not prompt:
+ raise HTTPException(status_code=400, detail="Prompt is required")
+
+ model_display = payload.model
+ if payload.model == "gpt-6-1-sol":
+ model_display = "GPT-6.1 Sol Light"
+ elif payload.model == "gpt-6-astra":
+ model_display = "GPT-6 Astra"
+ elif payload.model == "gpt-6-luna":
+ model_display = "GPT-6 Luna"
+
+ # Call MuAPI chat completions engine
+ try:
+ url = "https://api.muapi.ai/v1/chat/completions"
+
+ if payload.system_prompt and payload.system_prompt.strip():
+ system_instruction = payload.system_prompt.strip()
+ else:
+ system_instruction = (
+ f"You are {model_display} in ChatGPT Spaces. "
+ f"Active project: {payload.project or 'General'}. "
+ "Help the user plan, write, code, brainstorm, and create living documents. "
+ "Format your answers with clean markdown headings, bullet points, and actionable steps."
+ )
+
+ messages = [
+ {"role": "system", "content": system_instruction}
+ ]
+
+ # Add recent conversation history if provided
+ for msg in (payload.history or [])[-6:]:
+ role = "user" if msg.get("role") == "user" else "assistant"
+ messages.append({"role": role, "content": msg.get("content", "")})
+
+ messages.append({"role": "user", "content": prompt})
+
+ # Use MuAPI text model
+ muapi_model = "mimo-v2-6-flash-abliterated"
+
+ async with httpx.AsyncClient(timeout=35) as client:
+ resp = await client.post(
+ url,
+ headers={
+ "Authorization": f"Bearer {MUAPI_KEY}",
+ "x-api-key": MUAPI_KEY,
+ "Content-Type": "application/json"
+ },
+ json={
+ "model": muapi_model,
+ "messages": messages,
+ "temperature": 0.7
+ }
+ )
+
+ if resp.status_code == 200:
+ data = resp.json()
+ text = data["choices"][0]["message"]["content"]
+ return ChatResponse(
+ reply=text,
+ model=model_display,
+ project=payload.project
+ )
+ except Exception as e:
+ print(f"Error calling MuAPI chat engine: {e}")
+
+ # Fallback response if network or upstream is down
+ if payload.system_prompt and "ONLY" in payload.system_prompt:
+ fallback_text = (
+ f"### {prompt.title()}\n\n"
+ f"Expanded content generated seamlessly for **{payload.project or 'this document'}**:\n\n"
+ f"- **Key Insight**: Detailed context and foundational concepts tailored to this section.\n"
+ f"- **Practical Application**: Recommended action items and integration workflows.\n"
+ f"- **Summary**: High-impact conclusions that flow directly into subsequent paragraphs."
+ )
+ else:
+ fallback_text = (
+ f"[{model_display}] I've reviewed your request for project '{payload.project}':\n\n"
+ f"### Strategic Plan\n"
+ f"1. Analyze the core requirements for '{prompt}'.\n"
+ f"2. Outline structured components and living pages.\n"
+ f"3. Integrate autonomous Dot agents to draft deliverables."
+ )
+
+ return ChatResponse(
+ reply=fallback_text,
+ model=model_display,
+ project=payload.project
+ )
diff --git a/server/app/api/routers/images.py b/server/app/api/routers/images.py
new file mode 100644
index 0000000..904a211
--- /dev/null
+++ b/server/app/api/routers/images.py
@@ -0,0 +1,171 @@
+import os
+import urllib.parse
+import httpx
+from typing import Optional
+from fastapi import APIRouter, HTTPException
+from pydantic import BaseModel
+from app.core.config import settings
+
+router = APIRouter(prefix="/images", tags=["Image Generation (GPT-Image-2)"])
+
+MUAPI_KEY = settings.MUAPI_API_KEY or os.getenv("MUAPI_API_KEY", "")
+
+class ImageGenerateRequest(BaseModel):
+ prompt: str
+ aspect_ratio: Optional[str] = "1:1"
+ resolution: Optional[str] = "2K"
+ model: Optional[str] = "gpt-image-2-text-to-image"
+
+class ImageGenerateResponse(BaseModel):
+ image_url: str
+ model: str
+ prompt: str
+
+class SuggestPromptRequest(BaseModel):
+ context: str
+ title: Optional[str] = None
+
+class SuggestPromptResponse(BaseModel):
+ suggested_prompt: str
+
[email protected]("/generate", response_model=ImageGenerateResponse)
+async def generate_image(payload: ImageGenerateRequest):
+ prompt = payload.prompt.strip()
+ if not prompt:
+ raise HTTPException(status_code=400, detail="Prompt is required")
+
+ aspect_ratio = payload.aspect_ratio or "1:1"
+ width, height = 1024, 1024
+ if aspect_ratio == "16:9":
+ width, height = 1280, 720
+ elif aspect_ratio == "9:16":
+ width, height = 720, 1280
+ elif aspect_ratio == "4:3":
+ width, height = 1024, 768
+
+ # 1. Generation via MuAPI (gpt-image-2-text-to-image)
+ submit_url = "https://api.muapi.ai/api/v1/gpt-image-2-text-to-image"
+ headers = {
+ "x-api-key": MUAPI_KEY,
+ "Authorization": f"Bearer {MUAPI_KEY}",
+ "Content-Type": "application/json"
+ }
+ muapi_payload = {
+ "prompt": prompt,
+ "aspect_ratio": aspect_ratio,
+ "resolution": payload.resolution or "2K"
+ }
+
+ try:
+ async with httpx.AsyncClient(timeout=None) as client:
+ res = await client.post(submit_url, headers=headers, json=muapi_payload)
+ if res.status_code not in [200, 201]:
+ raise HTTPException(
+ status_code=res.status_code,
+ detail=f"MuAPI submission failed: {res.text}"
+ )
+
+ res_data = res.json()
+ # If synchronous output directly available
+ if res_data.get("outputs") or res_data.get("output") or res_data.get("url"):
+ out = res_data.get("outputs") or res_data.get("output") or res_data.get("url")
+ out_url = out[0] if isinstance(out, list) else out
+ return ImageGenerateResponse(
+ image_url=str(out_url),
+ model="gpt-image-2-text-to-image",
+ prompt=prompt
+ )
+
+ req_id = res_data.get("request_id") or res_data.get("id")
+ if not req_id:
+ raise HTTPException(status_code=502, detail="No request_id returned by MuAPI")
+
+ # Poll MuAPI predictions endpoint until completed or failed (no timeout cutoff)
+ import asyncio
+ poll_url = f"https://api.muapi.ai/api/v1/predictions/{req_id}/result"
+ poll_headers = {
+ "x-api-key": MUAPI_KEY,
+ "Authorization": f"Bearer {MUAPI_KEY}"
+ }
+
+ while True:
+ await asyncio.sleep(2)
+ try:
+ p_res = await client.get(poll_url, headers=poll_headers)
+ except Exception as net_err:
+ print(f"Transient polling error, retrying: {net_err}")
+ continue
+
+ if p_res.status_code == 200:
+ p_data = p_res.json()
+ status = p_data.get("status") or p_data.get("state")
+
+ if status in ["completed", "succeeded"]:
+ outputs = p_data.get("outputs") or p_data.get("output") or []
+ out_url = outputs[0] if isinstance(outputs, list) and outputs else outputs
+ if out_url and isinstance(out_url, str):
+ return ImageGenerateResponse(
+ image_url=out_url,
+ model="gpt-image-2-text-to-image",
+ prompt=prompt
+ )
+ raise HTTPException(status_code=502, detail="Completed status received but no image output found.")
+
+ elif status in ["failed", "error", "canceled"]:
+ err_msg = p_data.get("error") or f"MuAPI generation failed with status: {status}"
+ raise HTTPException(status_code=502, detail=str(err_msg))
+
+ except HTTPException:
+ raise
+ except Exception as e:
+ print(f"MuAPI generation error: {e}")
+ raise HTTPException(status_code=500, detail=f"Image generation failed: {str(e)}")
+
[email protected]("/suggest-prompt", response_model=SuggestPromptResponse)
+async def suggest_image_prompt(payload: SuggestPromptRequest):
+ context = payload.context.strip()
+ if not context:
+ return SuggestPromptResponse(suggested_prompt="Modern abstract tech visualization with glowing nodes and clean geometric composition")
+
+ try:
+ url = "https://api.muapi.ai/v1/chat/completions"
+ system_instruction = (
+ "You are a specialized prompt designer for the GPT-Image-2 text-to-image model in ChatGPT Spaces. "
+ "Analyze the provided document context and formulate ONE single, vivid, professional image generation prompt "
+ "(maximum 25 words). The prompt must describe an aesthetic, high-concept illustration, diagram, or architectural visual "
+ "that visually elevates this content. "
+ "CRITICAL: Output ONLY the prompt text, no quotes, no conversational intro."
+ )
+
+ messages = [
+ {"role": "system", "content": system_instruction},
+ {"role": "user", "content": f"Document Title: {payload.title or 'Living Document'}\nContext:\n{context[:1200]}"}
+ ]
+
+ async with httpx.AsyncClient(timeout=30) as client:
+ resp = await client.post(
+ url,
+ headers={
+ "Authorization": f"Bearer {MUAPI_KEY}",
+ "x-api-key": MUAPI_KEY,
+ "Content-Type": "application/json"
+ },
+ json={
+ "model": "mimo-v2-6-flash-abliterated",
+ "messages": messages,
+ "temperature": 0.7
+ }
+ )
+ if resp.status_code == 200:
+ data = resp.json()
+ text = data["choices"][0]["message"]["content"].strip()
+ cleaned = text.strip('"\'`').replace("\n", " ")
+ return SuggestPromptResponse(suggested_prompt=cleaned)
+ except Exception as e:
+ print(f"Error suggesting image prompt: {e}")
+
+ # Fallback contextual prompt
+ snippet = context.split("\n")[0][:60]
+ return SuggestPromptResponse(
+ suggested_prompt=f"Minimalist editorial 3D concept render illustrating {snippet}, soft studio lighting, high resolution"
+ )
diff --git a/server/app/api/routers/meetings.py b/server/app/api/routers/meetings.py
new file mode 100644
index 0000000..6ad6ac6
--- /dev/null
+++ b/server/app/api/routers/meetings.py
@@ -0,0 +1,20 @@
+from typing import List
+from fastapi import APIRouter, HTTPException, status
+from app.models.schemas import MeetingNote, MeetingNoteCreate
+from app.services.space_store import store
+
+router = APIRouter(prefix="/spaces/{space_id}/meetings", tags=["Meeting Audio & Notes"])
+
[email protected]("", response_model=List[MeetingNote])
+def get_meetings(space_id: str):
+ space = store.get_space(space_id)
+ if not space:
+ raise HTTPException(status_code=404, detail="Space not found")
+ return store.get_meetings(space_id)
+
[email protected]("", response_model=MeetingNote, status_code=status.HTTP_201_CREATED)
+def create_meeting(space_id: str, payload: MeetingNoteCreate):
+ note = store.create_meeting(space_id, payload)
+ if not note:
+ raise HTTPException(status_code=404, detail="Space not found")
+ return note
diff --git a/server/app/api/routers/pages.py b/server/app/api/routers/pages.py
new file mode 100644
index 0000000..470adc9
--- /dev/null
+++ b/server/app/api/routers/pages.py
@@ -0,0 +1,40 @@
+from typing import List
+from fastapi import APIRouter, HTTPException, status
+from app.models.schemas import Page, PageCreate, PageUpdate
+from app.services.space_store import store
+
+router = APIRouter(prefix="/spaces/{space_id}/pages", tags=["Pages (Living Documents)"])
+
[email protected]("", response_model=List[Page])
+def list_pages(space_id: str):
+ if not store.get_space(space_id):
+ raise HTTPException(status_code=404, detail="Space not found")
+ return store.get_pages(space_id)
+
[email protected]("", response_model=Page, status_code=status.HTTP_201_CREATED)
+def create_page(space_id: str, payload: PageCreate):
+ page = store.create_page(space_id, payload)
+ if not page:
+ raise HTTPException(status_code=404, detail="Space not found")
+ return page
+
[email protected]("/{page_id}", response_model=Page)
+def get_page(space_id: str, page_id: str):
+ page = store.get_page(space_id, page_id)
+ if not page:
+ raise HTTPException(status_code=404, detail="Page not found")
+ return page
+
[email protected]("/{page_id}", response_model=Page)
+def update_page(space_id: str, page_id: str, payload: PageUpdate):
+ page = store.update_page(space_id, page_id, payload)
+ if not page:
+ raise HTTPException(status_code=404, detail="Page not found")
+ return page
+
[email protected]("/{page_id}", status_code=status.HTTP_204_NO_CONTENT)
+def delete_page(space_id: str, page_id: str):
+ success = store.delete_page(space_id, page_id)
+ if not success:
+ raise HTTPException(status_code=404, detail="Page not found")
+ return None
diff --git a/server/app/api/routers/spaces.py b/server/app/api/routers/spaces.py
new file mode 100644
index 0000000..dda3079
--- /dev/null
+++ b/server/app/api/routers/spaces.py
@@ -0,0 +1,50 @@
+from typing import List
+from fastapi import APIRouter, HTTPException, status
+from app.models.schemas import Space, SpaceCreate, SpaceUpdate, Message, MessageCreate
+from app.services.space_store import store
+
+router = APIRouter(prefix="/spaces", tags=["Spaces"])
+
[email protected]("", response_model=List[Space])
+def get_spaces():
+ return store.get_all_spaces()
+
[email protected]("", response_model=Space, status_code=status.HTTP_201_CREATED)
+def create_space(payload: SpaceCreate):
+ return store.create_space(payload)
+
[email protected]("/{space_id}", response_model=Space)
+def get_space(space_id: str):
+ space = store.get_space(space_id)
+ if not space:
+ raise HTTPException(status_code=404, detail="Space not found")
+ return space
+
[email protected]("/{space_id}", response_model=Space)
+def update_space(space_id: str, payload: SpaceUpdate):
+ space = store.update_space(space_id, payload)
+ if not space:
+ raise HTTPException(status_code=404, detail="Space not found")
+ return space
+
[email protected]("/{space_id}", status_code=status.HTTP_204_NO_CONTENT)
+def delete_space(space_id: str):
+ success = store.delete_space(space_id)
+ if not success:
+ raise HTTPException(status_code=404, detail="Space not found")
+ return None
+
+# --- Messages in Space ---
[email protected]("/{space_id}/messages", response_model=List[Message])
+def get_space_messages(space_id: str):
+ space = store.get_space(space_id)
+ if not space:
+ raise HTTPException(status_code=404, detail="Space not found")
+ return store.get_messages(space_id)
+
[email protected]("/{space_id}/messages", response_model=Message, status_code=status.HTTP_201_CREATED)
+def create_space_message(space_id: str, payload: MessageCreate):
+ msg = store.add_message(space_id, payload)
+ if not msg:
+ raise HTTPException(status_code=404, detail="Space not found")
+ return msg
diff --git a/server/app/core/config.py b/server/app/core/config.py
new file mode 100644
index 0000000..4e33d3c
--- /dev/null
+++ b/server/app/core/config.py
@@ -0,0 +1,28 @@
+import os
+from pydantic import BaseModel
+from dotenv import load_dotenv
+
+load_dotenv()
+
+class Settings(BaseModel):
+ PROJECT_NAME: str = "OpenSpaces API"
+ VERSION: str = "0.1.0"
+ API_V1_STR: str = "/api"
+ HOST: str = os.getenv("HOST", "0.0.0.0")
+ PORT: int = int(os.getenv("PORT", "8000"))
+ CORS_ORIGINS: list[str] = [
+ origin.strip()
+ for origin in os.getenv("CORS_ORIGINS", "http://localhost:3000,http://127.0.0.1:3000").split(",")
+ if origin.strip()
+ ]
+ DATABASE_URL: str = os.getenv(
+ "DIRECT_URL",
+ os.getenv(
+ "DATABASE_URL",
+ "postgresql://postgres.kzemjiijodshsryvhsmj:[email protected]:5432/postgres"
+ )
+ )
+ DEFAULT_MODEL: str = os.getenv("DEFAULT_MODEL", "mimo-v2-6-flash-abliterated")
+ MUAPI_API_KEY: str = os.getenv("MUAPI_API_KEY", "")
+
+settings = Settings()
diff --git a/server/app/db/__init__.py b/server/app/db/__init__.py
new file mode 100644
index 0000000..c85e689
--- /dev/null
+++ b/server/app/db/__init__.py
@@ -0,0 +1 @@
+"""Database package for OpenSpaces."""
diff --git a/server/app/db/models.py b/server/app/db/models.py
new file mode 100644
index 0000000..b4608b6
--- /dev/null
+++ b/server/app/db/models.py
@@ -0,0 +1,66 @@
+from datetime import datetime
+from sqlalchemy import Column, String, Text, Boolean, Integer, DateTime, JSON, ForeignKey
+from app.db.session import Base
+
+class OpenSpaceDB(Base):
+ __tablename__ = "open_spaces"
+
+ id = Column(String(64), primary_key=True, index=True)
+ name = Column(String(255), nullable=False)
+ description = Column(Text, default="")
+ icon = Column(String(32), default="πŸ“")
+ color = Column(String(32), default="indigo")
+ pinned = Column(Boolean, default=False)
+ members = Column(JSON, default=list)
+ created_at = Column(DateTime, default=datetime.utcnow)
+ updated_at = Column(DateTime, default=datetime.utcnow, onupdate=datetime.utcnow)
+
+class OpenPageDB(Base):
+ __tablename__ = "open_pages"
+
+ id = Column(String(64), primary_key=True, index=True)
+ space_id = Column(String(64), ForeignKey("open_spaces.id", ondelete="CASCADE"), nullable=False, index=True)
+ title = Column(String(255), nullable=False)
+ content = Column(Text, default="")
+ icon = Column(String(32), default="πŸ“„")
+ status = Column(String(32), default="draft")
+ author = Column(String(100), default="You")
+ version = Column(Integer, default=1)
+ created_at = Column(DateTime, default=datetime.utcnow)
+ updated_at = Column(DateTime, default=datetime.utcnow, onupdate=datetime.utcnow)
+
+class OpenAgentDB(Base):
+ __tablename__ = "open_agents"
+
+ id = Column(String(64), primary_key=True, index=True)
+ space_id = Column(String(64), ForeignKey("open_spaces.id", ondelete="CASCADE"), nullable=False, index=True)
+ name = Column(String(100), nullable=False)
+ role = Column(String(100), default="Assistant")
+ avatar = Column(String(32), default="πŸ€–")
+ status = Column(String(32), default="idle")
+ capabilities = Column(JSON, default=list)
+ current_task = Column(Text, nullable=True)
+
+class OpenMessageDB(Base):
+ __tablename__ = "open_messages"
+
+ id = Column(String(64), primary_key=True, index=True)
+ space_id = Column(String(64), ForeignKey("open_spaces.id", ondelete="CASCADE"), nullable=False, index=True)
+ sender_type = Column(String(32), default="user")
+ sender_name = Column(String(100), default="You")
+ sender_avatar = Column(String(64), nullable=True)
+ content = Column(Text, nullable=False)
+ referenced_page_id = Column(String(64), nullable=True)
+ timestamp = Column(DateTime, default=datetime.utcnow)
+
+class OpenMeetingDB(Base):
+ __tablename__ = "open_meetings"
+
+ id = Column(String(64), primary_key=True, index=True)
+ space_id = Column(String(64), ForeignKey("open_spaces.id", ondelete="CASCADE"), nullable=False, index=True)
+ title = Column(String(255), nullable=False)
+ summary = Column(Text, default="")
+ transcript = Column(Text, nullable=True)
+ action_items = Column(JSON, default=list)
+ duration_seconds = Column(Integer, default=0)
+ created_at = Column(DateTime, default=datetime.utcnow)
diff --git a/server/app/db/session.py b/server/app/db/session.py
new file mode 100644
index 0000000..c29f045
--- /dev/null
+++ b/server/app/db/session.py
@@ -0,0 +1,32 @@
+from sqlalchemy import create_engine
+from sqlalchemy.orm import sessionmaker, declarative_base
+from app.core.config import settings
+
+# Clean database URL if needed (convert postgres:// to postgresql://)
+db_url = settings.DATABASE_URL
+if db_url.startswith("postgres://"):
+ db_url = db_url.replace("postgres://", "postgresql://", 1)
+
+# Ensure port 6543 for Supabase transaction pooler
+if "pooler.supabase.com:5432" in db_url:
+ db_url = db_url.replace("pooler.supabase.com:5432", "pooler.supabase.com:6543")
+
+# Connection pool optimized for Supabase transaction pooler
+engine = create_engine(
+ db_url,
+ pool_pre_ping=True,
+ pool_size=3,
+ max_overflow=5,
+ pool_recycle=300,
+ connect_args={"sslmode": "require"} if "supabase.com" in db_url else {}
+)
+
+SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
+Base = declarative_base()
+
+def get_db():
+ db = SessionLocal()
+ try:
+ yield db
+ finally:
+ db.close()
diff --git a/server/app/main.py b/server/app/main.py
new file mode 100644
index 0000000..88c7c1c
--- /dev/null
+++ b/server/app/main.py
@@ -0,0 +1,78 @@
+from fastapi import FastAPI, WebSocket, WebSocketDisconnect
+from fastapi.middleware.cors import CORSMiddleware
+from typing import Dict, List
+
+from app.core.config import settings
+from app.api.routers import spaces, pages, agents, meetings, chat, images
+
+app = FastAPI(
+ title=settings.PROJECT_NAME,
+ version=settings.VERSION,
+ description="OpenSpaces: An Open-Source ChatGPT Spaces Replication with Pages, Dots (Agents), and Meeting Notes."
+)
+
+# CORS setup
+app.add_middleware(
+ CORSMiddleware,
+ allow_origin_regex="https?://.*",
+ allow_credentials=True,
+ allow_methods=["*"],
+ allow_headers=["*"],
+)
+
+# Include Routers
+app.include_router(spaces.router, prefix=settings.API_V1_STR)
+app.include_router(pages.router, prefix=settings.API_V1_STR)
+app.include_router(agents.router, prefix=settings.API_V1_STR)
+app.include_router(meetings.router, prefix=settings.API_V1_STR)
+app.include_router(chat.router, prefix=settings.API_V1_STR)
+app.include_router(images.router, prefix=settings.API_V1_STR)
+
+# --- WebSocket Connection Manager for Real-Time Collaboration ---
+class ConnectionManager:
+ def __init__(self):
+ self.active_connections: Dict[str, List[WebSocket]] = {}
+
+ async def connect(self, space_id: str, websocket: WebSocket):
+ await websocket.accept()
+ if space_id not in self.active_connections:
+ self.active_connections[space_id] = []
+ self.active_connections[space_id].append(websocket)
+
+ def disconnect(self, space_id: str, websocket: WebSocket):
+ if space_id in self.active_connections:
+ self.active_connections[space_id].remove(websocket)
+ if not self.active_connections[space_id]:
+ del self.active_connections[space_id]
+
+ async def broadcast(self, space_id: str, message: dict):
+ if space_id in self.active_connections:
+ for connection in self.active_connections[space_id]:
+ await connection.send_json(message)
+
+manager = ConnectionManager()
+
[email protected]("/ws/spaces/{space_id}")
+async def websocket_endpoint(websocket: WebSocket, space_id: str):
+ await manager.connect(space_id, websocket)
+ try:
+ while True:
+ data = await websocket.receive_json()
+ # Broadcast to all other collaborators in the space
+ await manager.broadcast(space_id, data)
+ except WebSocketDisconnect:
+ manager.disconnect(space_id, websocket)
+
+def root():
+ return {
+ "name": settings.PROJECT_NAME,
+ "version": settings.VERSION,
+ "status": "online",
+ "docs_url": "/docs",
+ "description": "Open source ChatGPT Spaces backend"
+ }
+
+def health_check():
+ return {"status": "healthy"}
diff --git a/server/app/models/schemas.py b/server/app/models/schemas.py
new file mode 100644
index 0000000..7117c33
--- /dev/null
+++ b/server/app/models/schemas.py
@@ -0,0 +1,109 @@
+from datetime import datetime
+from typing import Optional, List, Dict, Any
+from pydantic import BaseModel, Field
+
+# --- Member & Agent Models ---
+class SpaceMember(BaseModel):
+ id: str
+ name: str
+ avatar: Optional[str] = None
+ role: str = "editor" # "owner", "editor", "viewer"
+
+class AgentDot(BaseModel):
+ id: str
+ name: str
+ role: str = "Research & Synthesis"
+ avatar: str = "πŸ€–"
+ status: str = "idle" # "idle", "working", "completed", "error"
+ capabilities: List[str] = []
+ current_task: Optional[str] = None
+
+# --- Page (Living Document) Models ---
+class PageBase(BaseModel):
+ title: str
+ content: str = ""
+ icon: Optional[str] = "πŸ“„"
+ status: str = "draft" # "draft", "in_review", "published"
+
+class PageCreate(PageBase):
+ pass
+
+class PageUpdate(BaseModel):
+ title: Optional[str] = None
+ content: Optional[str] = None
+ icon: Optional[str] = None
+ status: Optional[str] = None
+
+class Page(PageBase):
+ id: str
+ space_id: str
+ author: str = "User"
+ version: int = 1
+ created_at: datetime = Field(default_factory=datetime.utcnow)
+ updated_at: datetime = Field(default_factory=datetime.utcnow)
+
+# --- Chat & Context Threads ---
+class MessageBase(BaseModel):
+ content: str
+ sender_type: str = "user" # "user", "agent", "assistant"
+ sender_name: str = "You"
+ sender_avatar: Optional[str] = None
+ referenced_page_id: Optional[str] = None
+
+class MessageCreate(MessageBase):
+ pass
+
+class Message(MessageBase):
+ id: str
+ space_id: str
+ timestamp: datetime = Field(default_factory=datetime.utcnow)
+
+# --- Meeting Recording / Notes ---
+class MeetingNoteBase(BaseModel):
+ title: str
+ summary: str
+ transcript: Optional[str] = None
+ action_items: List[str] = []
+ duration_seconds: int = 0
+
+class MeetingNoteCreate(MeetingNoteBase):
+ pass
+
+class MeetingNote(MeetingNoteBase):
+ id: str
+ space_id: str
+ created_at: datetime = Field(default_factory=datetime.utcnow)
+
+# --- Space Models ---
+class SpaceBase(BaseModel):
+ name: str
+ description: Optional[str] = ""
+ icon: str = "πŸ“"
+ color: str = "indigo" # "indigo", "emerald", "amber", "rose", "sky", "violet"
+ pinned: bool = False
+
+class SpaceCreate(SpaceBase):
+ pass
+
+class SpaceUpdate(BaseModel):
+ name: Optional[str] = None
+ description: Optional[str] = None
+ icon: Optional[str] = None
+ color: Optional[str] = None
+ pinned: Optional[bool] = None
+
+class Space(SpaceBase):
+ id: str
+ created_at: datetime = Field(default_factory=datetime.utcnow)
+ updated_at: datetime = Field(default_factory=datetime.utcnow)
+ members: List[SpaceMember] = []
+ agents: List[AgentDot] = []
+ pages_count: int = 0
+ messages_count: int = 0
+
+# --- Agent Run Request ---
+class AgentRunRequest(BaseModel):
+ agent_id: Optional[str] = None
+ prompt: str
+ target_page_id: Optional[str] = None
+ context_data: Optional[Dict[str, Any]] = None
diff --git a/server/app/services/space_store.py b/server/app/services/space_store.py
new file mode 100644
index 0000000..20a73b2
--- /dev/null
+++ b/server/app/services/space_store.py
@@ -0,0 +1,605 @@
+import uuid
+from datetime import datetime
+from typing import List, Optional
+from sqlalchemy.orm import Session
+from app.db.session import SessionLocal, Base, engine
+from app.db.models import OpenSpaceDB, OpenPageDB, OpenAgentDB, OpenMessageDB, OpenMeetingDB
+from app.models.schemas import Space, Page, AgentDot, SpaceMember, Message, MeetingNote, SpaceCreate, SpaceUpdate, PageCreate, PageUpdate, MessageCreate, MeetingNoteCreate
+
+class SupabaseSpaceService:
+ def __init__(self):
+ # Ensure tables exist
+ Base.metadata.create_all(bind=engine)
+ self._seed_default_data_if_empty()
+
+ def _seed_default_data_if_empty(self):
+ db: Session = SessionLocal()
+ try:
+ count = db.query(OpenSpaceDB).count()
+ if count > 0:
+ return
+
+ space1_id = "space-product-launch"
+ space2_id = "space-ai-agents-research"
+
+ # Space 1
+ s1 = OpenSpaceDB(
+ id=space1_id,
+ name="Q4 Product Launch & Strategy",
+ description="Collaborative roadmap, competitive research, and live marketing copies with Dot agents.",
+ icon="πŸš€",
+ color="indigo",
+ pinned=True,
+ members=[
+ {"id": "usr-1", "name": "Alex Morgan", "role": "owner"},
+ {"id": "usr-2", "name": "Jordan Lee", "role": "editor"},
+ ],
+ created_at=datetime.utcnow(),
+ updated_at=datetime.utcnow(),
+ )
+ # Space 2
+ s2 = OpenSpaceDB(
+ id=space2_id,
+ name="Autonomous Agent Architecture",
+ description="Exploration of memory models, tool use, and multi-agent coordination.",
+ icon="brain",
+ color="emerald",
+ pinned=False,
+ members=[{"id": "usr-1", "name": "Alex Morgan", "role": "owner"}],
+ created_at=datetime.utcnow(),
+ updated_at=datetime.utcnow(),
+ )
+
+ # Commit spaces first to satisfy foreign key constraints
+ db.add(s1)
+ db.add(s2)
+ db.commit()
+
+ # Space 1 Agents
+ dot1 = OpenAgentDB(
+ id="dot-1",
+ space_id=space1_id,
+ name="Synthesizer Dot",
+ role="Research & Synthesis",
+ avatar="agent-bolt",
+ status="idle",
+ capabilities=["Web Search", "Competitive Analysis", "Doc Synthesis"],
+ )
+ dot2 = OpenAgentDB(
+ id="dot-2",
+ space_id=space1_id,
+ name="Copywriter Dot",
+ role="Drafting & Tone Polish",
+ avatar="agent-pen",
+ status="idle",
+ capabilities=["Headline Generation", "Technical Copy", "Social Snippets"],
+ )
+ db.add(dot1)
+ db.add(dot2)
+
+ # Pages for Space 1
+ p1 = OpenPageDB(
+ id="page-101",
+ space_id=space1_id,
+ title="Executive Launch Plan & Go-To-Market",
+ icon="pin",
+ status="published",
+ author="Alex Morgan",
+ version=3,
+ content="""# Q4 Executive Launch Plan
+
+## 1. Vision & Strategic Goals
+Our objective with **OpenSpaces** is to bridge the gap between static documents and collaborative intelligence. With dedicated **Dots (Autonomous Agents)** working alongside human teams on shared **Pages**, project velocity increases 5x.
+
+### Core Deliverables
+- **Live Collaborative Pages**: Real-time editable canvas supporting markdown, tables, and AI inline actions.
+- **Autonomous Dot Agents**: Agents that can actively review, draft, cite sources, and update pages.
+- **Persistent Knowledge Graph**: Threads and documents retained in context.
+
+## 2. Milestone Timeline
+| Milestone | Target Date | Owner | Status |
+| :--- | :--- | :--- | :--- |
+| Supabase Database Integration | Week 1 | Team Alpha | Completed |
+| Next.js App Router UI | Week 1 | Frontend | In Progress |
+| Dot Agent Event Loop | Week 2 | AI Core | Scheduled |
+| Beta Community Launch | Week 3 | All | Upcoming |
+""",
+ created_at=datetime.utcnow(),
+ updated_at=datetime.utcnow(),
+ )
+ p2 = OpenPageDB(
+ id="page-102",
+ space_id=space1_id,
+ title="Competitive Analysis & Benchmarks",
+ icon="chart",
+ status="in_review",
+ author="Synthesizer Dot",
+ version=1,
+ content="""# Competitive Landscape: Spaces & Agent Workspaces
+
+### Key Market Players
+1. **ChatGPT Spaces (OpenAI DevDay)**: Deep agent integration ("Dots"), living Pages, meeting voice notes.
+2. **Notion AI Workspace**: Database-centric, document-first, limited autonomous background workers.
+3. **OpenSpaces**: 100% Open-source, Supabase-backed, self-hostable, Next.js + FastAPI.
+""",
+ created_at=datetime.utcnow(),
+ updated_at=datetime.utcnow(),
+ )
+ db.add(p1)
+ db.add(p2)
+
+ # Messages for Space 1
+ m1 = OpenMessageDB(
+ id="msg-1",
+ space_id=space1_id,
+ sender_type="user",
+ sender_name="Alex Morgan",
+ content="Hey team! I started the Q4 Launch Plan page. Let's populate the milestones.",
+ timestamp=datetime.utcnow(),
+ )
+ m2 = OpenMessageDB(
+ id="msg-2",
+ space_id=space1_id,
+ sender_type="agent",
+ sender_name="Synthesizer Dot",
+ sender_avatar="agent-bolt",
+ content="I've analyzed the initial timeline and populated the 'Competitive Analysis & Benchmarks' page for your review.",
+ referenced_page_id="page-102",
+ timestamp=datetime.utcnow(),
+ )
+ db.add(m1)
+ db.add(m2)
+
+ # Meeting for Space 1
+ meet1 = OpenMeetingDB(
+ id="meet-1",
+ space_id=space1_id,
+ title="Q4 Kickoff & Feature Prioritization",
+ duration_seconds=1420,
+ summary="Discussed the ChatGPT Spaces feature parity: Pages canvas, Dot autonomous agents, meeting audio ingestion, and multiplayer collaboration.",
+ action_items=[
+ "Configure Next.js App Router + Tailwind CSS frontend",
+ "Connect FastAPI backend with Supabase PostgreSQL",
+ "Enable live Dot Agent task orchestration",
+ ],
+ transcript="Alex: Welcome team. Today we are launching OpenSpaces on top of Supabase...",
+ created_at=datetime.utcnow(),
+ )
+ db.add(meet1)
+
+ # Space 2 Agents and Pages
+ dot3 = OpenAgentDB(
+ id="dot-3",
+ space_id=space2_id,
+ name="Architect Dot",
+ role="Systems Design",
+ avatar="agent-ruler",
+ status="idle",
+ capabilities=["UML Diagramming", "API Spec", "Security Audits"],
+ )
+ db.add(dot3)
+
+ p3 = OpenPageDB(
+ id="page-201",
+ space_id=space2_id,
+ title="Multi-Agent Memory & Protocol Spec",
+ icon="ruler",
+ status="draft",
+ author="Architect Dot",
+ version=1,
+ content="""# Multi-Agent Memory & Protocol Spec
+
+## Overview
+How Dot agents communicate within a shared Space:
+1. **Shared Workspace Context**: Global space state (Pages + Chat history + File attachments).
+2. **Agent Event Loop**: Listen to page edit deltas or explicit @mentions.
+3. **Database Persistence**: Supabase PostgreSQL handles durable state.
+""",
+ created_at=datetime.utcnow(),
+ updated_at=datetime.utcnow(),
+ )
+ db.add(p3)
+
+ db.commit()
+ print("Successfully seeded initial OpenSpaces data into Supabase PostgreSQL!")
+ except Exception as e:
+ db.rollback()
+ print(f"Error seeding Supabase data: {str(e).encode('ascii', 'ignore').decode('ascii')}")
+ finally:
+ db.close()
+
+ # --- Space Operations ---
+ def get_all_spaces(self) -> List[Space]:
+ db: Session = SessionLocal()
+ try:
+ records = db.query(OpenSpaceDB).order_by(OpenSpaceDB.pinned.desc(), OpenSpaceDB.updated_at.desc()).all()
+ result = []
+ for r in records:
+ pages_cnt = db.query(OpenPageDB).filter(OpenPageDB.space_id == r.id).count()
+ msgs_cnt = db.query(OpenMessageDB).filter(OpenMessageDB.space_id == r.id).count()
+ agent_records = db.query(OpenAgentDB).filter(OpenAgentDB.space_id == r.id).all()
+ agents = [
+ AgentDot(
+ id=a.id,
+ name=a.name,
+ role=a.role,
+ avatar=a.avatar,
+ status=a.status,
+ capabilities=a.capabilities or [],
+ current_task=a.current_task,
+ )
+ for a in agent_records
+ ]
+ members = [SpaceMember(**m) for m in (r.members or [])]
+
+ result.append(
+ Space(
+ id=r.id,
+ name=r.name,
+ description=r.description,
+ icon=r.icon,
+ color=r.color,
+ pinned=r.pinned,
+ members=members,
+ agents=agents,
+ created_at=r.created_at,
+ updated_at=r.updated_at,
+ pages_count=pages_cnt,
+ messages_count=msgs_cnt,
+ )
+ )
+ return result
+ finally:
+ db.close()
+
+ def get_space(self, space_id: str) -> Optional[Space]:
+ db: Session = SessionLocal()
+ try:
+ r = db.query(OpenSpaceDB).filter(OpenSpaceDB.id == space_id).first()
+ if not r:
+ return None
+ pages_cnt = db.query(OpenPageDB).filter(OpenPageDB.space_id == r.id).count()
+ msgs_cnt = db.query(OpenMessageDB).filter(OpenMessageDB.space_id == r.id).count()
+ agent_records = db.query(OpenAgentDB).filter(OpenAgentDB.space_id == r.id).all()
+ agents = [
+ AgentDot(
+ id=a.id,
+ name=a.name,
+ role=a.role,
+ avatar=a.avatar,
+ status=a.status,
+ capabilities=a.capabilities or [],
+ current_task=a.current_task,
+ )
+ for a in agent_records
+ ]
+ members = [SpaceMember(**m) for m in (r.members or [])]
+ return Space(
+ id=r.id,
+ name=r.name,
+ description=r.description,
+ icon=r.icon,
+ color=r.color,
+ pinned=r.pinned,
+ members=members,
+ agents=agents,
+ created_at=r.created_at,
+ updated_at=r.updated_at,
+ pages_count=pages_cnt,
+ messages_count=msgs_cnt,
+ )
+ finally:
+ db.close()
+
+ def create_space(self, space_data: SpaceCreate) -> Space:
+ db: Session = SessionLocal()
+ try:
+ space_id = f"space-{uuid.uuid4().hex[:8]}"
+ r = OpenSpaceDB(
+ id=space_id,
+ name=space_data.name,
+ description=space_data.description or "",
+ icon=space_data.icon or "πŸ“",
+ color=space_data.color or "indigo",
+ pinned=space_data.pinned or False,
+ members=[{"id": "usr-1", "name": "You", "role": "owner"}],
+ created_at=datetime.utcnow(),
+ updated_at=datetime.utcnow(),
+ )
+ db.add(r)
+ default_agent = OpenAgentDB(
+ id=f"dot-{uuid.uuid4().hex[:4]}",
+ space_id=space_id,
+ name="Synthesizer Dot",
+ role="Workspace Assistant",
+ avatar="πŸ€–",
+ status="idle",
+ capabilities=["Document Editing", "Summarization", "Idea Generation"],
+ )
+ db.add(default_agent)
+ db.commit()
+ db.refresh(r)
+ return self.get_space(space_id)
+ finally:
+ db.close()
+
+ def update_space(self, space_id: str, update_data: SpaceUpdate) -> Optional[Space]:
+ db: Session = SessionLocal()
+ try:
+ r = db.query(OpenSpaceDB).filter(OpenSpaceDB.id == space_id).first()
+ if not r:
+ return None
+ data = update_data.model_dump(exclude_unset=True)
+ for k, v in data.items():
+ setattr(r, k, v)
+ r.updated_at = datetime.utcnow()
+ db.commit()
+ return self.get_space(space_id)
+ finally:
+ db.close()
+
+ def delete_space(self, space_id: str) -> bool:
+ db: Session = SessionLocal()
+ try:
+ r = db.query(OpenSpaceDB).filter(OpenSpaceDB.id == space_id).first()
+ if not r:
+ return False
+ db.delete(r)
+ db.commit()
+ return True
+ finally:
+ db.close()
+
+ # --- Page Operations ---
+ def get_pages(self, space_id: str) -> List[Page]:
+ db: Session = SessionLocal()
+ try:
+ records = db.query(OpenPageDB).filter(OpenPageDB.space_id == space_id).order_by(OpenPageDB.updated_at.desc()).all()
+ return [
+ Page(
+ id=p.id,
+ space_id=p.space_id,
+ title=p.title,
+ content=p.content,
+ icon=p.icon,
+ status=p.status,
+ author=p.author,
+ version=p.version,
+ created_at=p.created_at,
+ updated_at=p.updated_at,
+ )
+ for p in records
+ ]
+ finally:
+ db.close()
+
+ def get_page(self, space_id: str, page_id: str) -> Optional[Page]:
+ db: Session = SessionLocal()
+ try:
+ p = db.query(OpenPageDB).filter(OpenPageDB.space_id == space_id, OpenPageDB.id == page_id).first()
+ if not p:
+ return None
+ return Page(
+ id=p.id,
+ space_id=p.space_id,
+ title=p.title,
+ content=p.content,
+ icon=p.icon,
+ status=p.status,
+ author=p.author,
+ version=p.version,
+ created_at=p.created_at,
+ updated_at=p.updated_at,
+ )
+ finally:
+ db.close()
+
+ def create_page(self, space_id: str, page_data: PageCreate) -> Optional[Page]:
+ db: Session = SessionLocal()
+ try:
+ space = db.query(OpenSpaceDB).filter(OpenSpaceDB.id == space_id).first()
+ if not space:
+ return None
+ page_id = f"page-{uuid.uuid4().hex[:8]}"
+
+ raw_title = (page_data.title or "Untitled page").strip()
+ if len(raw_title) > 200 or "\n" in raw_title:
+ first_line = raw_title.split("\n")[0].lstrip("#").strip()
+ clean_title = (first_line or "Untitled page")[:200]
+ else:
+ clean_title = raw_title[:200]
+
+ p = OpenPageDB(
+ id=page_id,
+ space_id=space_id,
+ title=clean_title,
+ content=page_data.content or "",
+ icon=(page_data.icon or "πŸ“„")[:10],
+ status=page_data.status or "draft",
+ author="You",
+ version=1,
+ created_at=datetime.utcnow(),
+ updated_at=datetime.utcnow(),
+ )
+ db.add(p)
+ db.commit()
+ db.refresh(p)
+ return Page(
+ id=p.id,
+ space_id=p.space_id,
+ title=p.title,
+ content=p.content,
+ icon=p.icon,
+ status=p.status,
+ author=p.author,
+ version=p.version,
+ created_at=p.created_at,
+ updated_at=p.updated_at,
+ )
+ except Exception:
+ db.rollback()
+ raise
+ finally:
+ db.close()
+
+ def update_page(self, space_id: str, page_id: str, update_data: PageUpdate) -> Optional[Page]:
+ db: Session = SessionLocal()
+ try:
+ p = db.query(OpenPageDB).filter(OpenPageDB.space_id == space_id, OpenPageDB.id == page_id).first()
+ if not p:
+ return None
+ data = update_data.model_dump(exclude_unset=True)
+ if "title" in data and data["title"] is not None:
+ t = str(data["title"]).strip()
+ if len(t) > 200 or "\n" in t:
+ t = t.split("\n")[0].lstrip("#").strip()[:200]
+ data["title"] = t or "Untitled page"
+ if "icon" in data and data["icon"] is not None:
+ data["icon"] = str(data["icon"])[:10]
+ for k, v in data.items():
+ setattr(p, k, v)
+ p.version = (p.version or 1) + 1
+ p.updated_at = datetime.utcnow()
+ db.commit()
+ db.refresh(p)
+ return Page(
+ id=p.id,
+ space_id=p.space_id,
+ title=p.title,
+ content=p.content,
+ icon=p.icon,
+ status=p.status,
+ author=p.author,
+ version=p.version,
+ created_at=p.created_at,
+ updated_at=p.updated_at,
+ )
+ except Exception:
+ db.rollback()
+ raise
+ finally:
+ db.close()
+
+ def delete_page(self, space_id: str, page_id: str) -> bool:
+ db: Session = SessionLocal()
+ try:
+ p = db.query(OpenPageDB).filter(OpenPageDB.space_id == space_id, OpenPageDB.id == page_id).first()
+ if not p:
+ return False
+ db.delete(p)
+ db.commit()
+ return True
+ finally:
+ db.close()
+
+ # --- Message Operations ---
+ def get_messages(self, space_id: str) -> List[Message]:
+ db: Session = SessionLocal()
+ try:
+ records = db.query(OpenMessageDB).filter(OpenMessageDB.space_id == space_id).order_by(OpenMessageDB.timestamp.asc()).all()
+ return [
+ Message(
+ id=m.id,
+ space_id=m.space_id,
+ sender_type=m.sender_type,
+ sender_name=m.sender_name,
+ sender_avatar=m.sender_avatar,
+ content=m.content,
+ referenced_page_id=m.referenced_page_id,
+ timestamp=m.timestamp,
+ )
+ for m in records
+ ]
+ finally:
+ db.close()
+
+ def add_message(self, space_id: str, msg_data: MessageCreate) -> Optional[Message]:
+ db: Session = SessionLocal()
+ try:
+ space = db.query(OpenSpaceDB).filter(OpenSpaceDB.id == space_id).first()
+ if not space:
+ return None
+ msg_id = f"msg-{uuid.uuid4().hex[:8]}"
+ m = OpenMessageDB(
+ id=msg_id,
+ space_id=space_id,
+ sender_type=msg_data.sender_type,
+ sender_name=msg_data.sender_name,
+ sender_avatar=msg_data.sender_avatar,
+ content=msg_data.content,
+ referenced_page_id=msg_data.referenced_page_id,
+ timestamp=datetime.utcnow(),
+ )
+ db.add(m)
+ space.updated_at = datetime.utcnow()
+ db.commit()
+ db.refresh(m)
+ return Message(
+ id=m.id,
+ space_id=m.space_id,
+ sender_type=m.sender_type,
+ sender_name=m.sender_name,
+ sender_avatar=m.sender_avatar,
+ content=m.content,
+ referenced_page_id=m.referenced_page_id,
+ timestamp=m.timestamp,
+ )
+ finally:
+ db.close()
+
+ # --- Meeting Operations ---
+ def get_meetings(self, space_id: str) -> List[MeetingNote]:
+ db: Session = SessionLocal()
+ try:
+ records = db.query(OpenMeetingDB).filter(OpenMeetingDB.space_id == space_id).order_by(OpenMeetingDB.created_at.desc()).all()
+ return [
+ MeetingNote(
+ id=mt.id,
+ space_id=mt.space_id,
+ title=mt.title,
+ summary=mt.summary,
+ transcript=mt.transcript,
+ action_items=mt.action_items or [],
+ duration_seconds=mt.duration_seconds,
+ created_at=mt.created_at,
+ )
+ for mt in records
+ ]
+ finally:
+ db.close()
+
+ def create_meeting(self, space_id: str, meeting_data: MeetingNoteCreate) -> Optional[MeetingNote]:
+ db: Session = SessionLocal()
+ try:
+ space = db.query(OpenSpaceDB).filter(OpenSpaceDB.id == space_id).first()
+ if not space:
+ return None
+ meet_id = f"meet-{uuid.uuid4().hex[:8]}"
+ mt = OpenMeetingDB(
+ id=meet_id,
+ space_id=space_id,
+ title=meeting_data.title,
+ summary=meeting_data.summary,
+ transcript=meeting_data.transcript,
+ action_items=meeting_data.action_items or [],
+ duration_seconds=meeting_data.duration_seconds,
+ created_at=datetime.utcnow(),
+ )
+ db.add(mt)
+ space.updated_at = datetime.utcnow()
+ db.commit()
+ db.refresh(mt)
+ return MeetingNote(
+ id=mt.id,
+ space_id=mt.space_id,
+ title=mt.title,
+ summary=mt.summary,
+ transcript=mt.transcript,
+ action_items=mt.action_items or [],
+ duration_seconds=mt.duration_seconds,
+ created_at=mt.created_at,
+ )
+ finally:
+ db.close()
+
+store = SupabaseSpaceService()
diff --git a/server/requirements.txt b/server/requirements.txt
new file mode 100644
index 0000000..beacab6
--- /dev/null
+++ b/server/requirements.txt
@@ -0,0 +1,8 @@
+fastapi>=0.115.0
+uvicorn[standard]>=0.30.0
+pydantic>=2.8.0
+python-dotenv>=1.0.0
+websockets>=13.0
+httpx>=0.27.0
+aiofiles>=24.1.0
+python-multipart>=0.0.9
diff --git a/server/run.py b/server/run.py
new file mode 100644
index 0000000..fa09633
--- /dev/null
+++ b/server/run.py
@@ -0,0 +1,12 @@
+import uvicorn
+from app.core.config import settings
+
+if __name__ == "__main__":
+ print(f">> Starting {settings.PROJECT_NAME} on http://{settings.HOST}:{settings.PORT}")
+ print(f">> Swagger Docs available at http://localhost:{settings.PORT}/docs")
+ uvicorn.run(
+ "app.main:app",
+ host=settings.HOST,
+ port=settings.PORT,
+ reload=True
+ )