Email for professionals and teams
push v0.1.12
Hieu Nguyen (Jack)dc973c6c39b6
diff --git a/.dev.vars.example b/.dev.vars.exampleindex eb5a4b2..c31606e 100644--- a/.dev.vars.example+++ b/.dev.vars.example@@ -5,6 +5,13 @@ CF_TOKEN=your_api_token_with_zone_email_permissionsCF_ACCOUNT_ID=your_account_idCF_EMAIL_WORKER_NAME=mailflare+# Optional: lets the admin dashboard trigger the GitHub update workflow.+GITHUB_UPDATE_TOKEN=github_pat_with_actions_write+GITHUB_UPDATE_REPOSITORY=owner/repo+GITHUB_UPDATE_SOURCE_REPOSITORY=hieunc229/mailflare+GITHUB_UPDATE_WORKFLOW=deploy-update.yml+GITHUB_UPDATE_REF=main+# Legacy Global API Key alternative. Use this only instead of CF_TOKEN.# CF_API_KEY=your_global_api_keydiff --git a/.github/workflows/deploy-update.yml b/.github/workflows/deploy-update.ymlnew file mode 100644index 0000000..b076d9f--- /dev/null+++ b/.github/workflows/deploy-update.yml@@ -0,0 +1,71 @@+name: Dashboard Update++on:+ workflow_dispatch:++permissions:+ contents: write++jobs:+ update:+ runs-on: ubuntu-latest+ env:+ CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}+ CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}+ UPDATE_SOURCE_REPOSITORY: ${{ vars.UPDATE_SOURCE_REPOSITORY || 'hieunc229/mailflare' }}++ steps:+ - name: Checkout repository+ uses: actions/checkout@v4+ with:+ fetch-depth: 0++ - name: Download latest release+ env:+ GH_TOKEN: ${{ github.token }}+ run: |+ set -euo pipefail+ release_json="$(curl -fsSL \+ -H "Accept: application/vnd.github+json" \+ -H "Authorization: Bearer ${GH_TOKEN}" \+ -H "X-GitHub-Api-Version: 2022-11-28" \+ "https://api.github.com/repos/${UPDATE_SOURCE_REPOSITORY}/releases/latest")"+ tarball_url="$(node -e 'const fs = require("fs"); const release = JSON.parse(fs.readFileSync(0, "utf8")); process.stdout.write(release.tarball_url);' <<< "${release_json}")"+ mkdir -p /tmp/mailflare-release+ curl -fsSL \+ -H "Accept: application/vnd.github+json" \+ -H "Authorization: Bearer ${GH_TOKEN}" \+ "${tarball_url}" \+ -o /tmp/mailflare-release.tar.gz+ tar -xzf /tmp/mailflare-release.tar.gz -C /tmp/mailflare-release --strip-components=1+ rsync -a --delete \+ --exclude ".git" \+ --exclude ".github" \+ --exclude "node_modules" \+ --exclude ".dev.vars" \+ --exclude "wrangler.jsonc" \+ /tmp/mailflare-release/ ./++ - name: Setup Node.js+ uses: actions/setup-node@v4+ with:+ node-version: "22"++ - name: Install dependencies+ run: npm install --no-package-lock++ - name: Apply database migrations+ run: npx wrangler d1 migrations apply DB --remote++ - name: Commit update+ run: |+ set -euo pipefail+ if [ -z "$(git status --porcelain)" ]; then+ echo "Repository is already up to date."+ exit 0+ fi+ git config user.name "mailflare-update"+ git config user.email "[email protected]"+ git add --all+ git commit -m "chore: update Mailflare to latest release"+ git push origin "HEAD:${GITHUB_REF_NAME}"diff --git a/README.md b/README.mdindex aadfeae..716325a 100644--- a/README.md+++ b/README.md@@ -1,8 +1,9 @@+# MailflareA self-hosted, AI-powered email inbox with custom domains, powered by Cloudflare-[](https://deploy.workers.cloudflare.com/?url=https://github.com/hieunc229/mailflare)+[](https://deploy.workers.cloudflare.com/?url=https://github.com/hieunc229/mailflare-team)@@ -16,6 +17,8 @@ A self-hosted, AI-powered email inbox with custom domains, powered by Cloudflare- [x] Inbox, sent, drafts, spam, and trash folders backed by a shared mail list component.- [x] Popup composer with autosaved drafts and draft resume from the drafts folder.- [x] Outbound send API, API keys, message read status, spam/trash moves, and seeded demo data.+- [x] Inbound and outbound attachments stored in R2 with authenticated downloads.+- [x] Real-time new-email updates and in-app notifications over WebSockets.- [x] Search, filtering, and richer mailbox/folder counts.- [ ] Advanced routing rules for catch-all addresses, forwarding, reject/block rules, and priorities.- [ ] Webhook management UI and delivery retry visibility.@@ -44,7 +47,7 @@ Domains are **not** dashboard-only. This app calls Cloudflare when you add/remov| Remove subdomain sending | `DELETE /zones/{zone_id}/email/sending/subdomains/{tag}` || Subdomain sending DNS records | `GET .../subdomains/{tag}/dns` |-**Requirements:** Prefer `CF_TOKEN` with Zone Read + Email Routing Edit + Email Sending Edit + Email Routing Rules Write (or broader). If you use a legacy Global API Key instead, set `CF_API_KEY` and `CF_EMAIL`. The hostname must be the account's Cloudflare zone apex or a subdomain under that zone. Root-domain sending uses the Cloudflare Email Service binding, while subdomain sending can also provision the sending-subdomain DNS records. Mailbox creation creates a Cloudflare Email Routing rule that sends that address to `CF_EMAIL_WORKER_NAME` (`mailflare` by default).+**Requirements:** Prefer `CF_TOKEN` with Zone Read + Email Routing Edit + Email Sending Edit + Email Routing Rules Write (or broader). If you use a legacy Global API Key instead, set `CF_API_KEY` and `CF_EMAIL`. The hostname must be the account's Cloudflare zone apex or a subdomain under that zone. Root-domain sending uses the Cloudflare Email Service binding, while subdomain sending can also provision the sending-subdomain DNS records. Mailbox creation creates a Cloudflare Email Routing rule that sends that address to `CF_EMAIL_WORKER_NAME`.App routes:@@ -56,7 +59,7 @@ App routes:```bashcp .dev.vars.example .dev.vars-# Add CF_TOKEN and optionally CF_ACCOUNT_ID.+# Add CF_TOKEN and optionally CF_AID.# For a legacy Global API Key, use CF_API_KEY + CF_EMAIL instead.npm install@@ -64,6 +67,45 @@ npm run db:migrate:localnpm run dev```+### Attachments++The dashboard composer accepts up to 10 attachments, with a 10 MB per-file limit and a 20 MB+combined limit. Attachment metadata is stored in D1 and file content is stored in the configured+`BUCKET` R2 binding. Apply migration `0008_add_message_attachments.sql` before using attachments.++`POST /api/v1/send` accepts optional JSON attachments:++```json+{+ "from": "[email protected]",+ "to": "[email protected]",+ "subject": "Report",+ "text": "Attached.",+ "attachments": [+ {+ "filename": "report.pdf",+ "type": "application/pdf",+ "contentBase64": "<base64 data>"+ }+ ]+}+```++Received MIME attachments are extracted automatically. Downloads require access to the mailbox+containing the message.++### Real-time email notifications++Mailflare uses a Cloudflare Durable Object WebSocket hub to notify connected users immediately after+an inbound message is stored. The inbox and unread counts refresh without waiting for polling, and+an in-app popup links directly to the new message. Mailbox owners, the domain admin, and delegated+users receive events for mailboxes they can access.++The `REALTIME` Durable Object binding and its initial migration are declared in `wrangler.jsonc`.+Deploy with Wrangler or the Cloudflare Git integration so the Durable Object class is provisioned.+When the socket is temporarily unavailable, the client retries automatically and uses a slower+fallback refresh until the connection recovers.+Register at `/register`, complete `/onboarding`, or seed dev data:```bash@@ -75,9 +117,9 @@ curl -X POST http://localhost:3000/api/seed### One-click Cloudflare deploy-[](https://deploy.workers.cloudflare.com/?url=https://github.com/hieunc229/mailflare)+[](https://deploy.workers.cloudflare.com/?url=https://github.com/hieunc229/mailflare-team)-Publish this repository to GitHub, then replace `hieunc229/mailflare` in the button at the top of this README with the public repository path.+Publish this repository to GitHub, then replace `hieunc229/mailflare-team` in the button at the top of this README with the public repository path.The deploy flow reads `wrangler.jsonc`, provisions the Worker bindings, prompts for values from `.dev.vars.example`, runs D1 migrations, builds the OpenNext Worker, and deploys it.@@ -86,11 +128,59 @@ Keep `wrangler.jsonc` committed. Cloudflare's deploy button uses it to detect thRequired setup values:- `CF_TOKEN` — runtime scoped Cloudflare API token with Zone Read, Email Routing Edit, Email Sending Edit, and Email Routing Rules Write. This is separate from Cloudflare's deploy/build token; Cloudflare does not automatically expose the deploy token to this app.-- `CF_ACCOUNT_ID` — optional unless your token can access multiple accounts.-- `CF_EMAIL_WORKER_NAME` — must match the Worker name in `wrangler.jsonc`; default is `mailflare`.+- `CF_AID` — optional unless your token can access multiple accounts.+- `CF_EMAIL_WORKER_NAME` — must match the deployed Worker name. If the one-click deploy flow asks for a different Worker name, enter that same value here.++### Dashboard updates++The admin overview includes an **Update Mailflare** button. `POST /api/admin/update` dispatches+`.github/workflows/update.yml` in the installation repository. The workflow fetches the latest+changes from the default branch of `hieunc229/mailflare-team`, merges them into the installation+branch, applies pending D1 migrations, and pushes the updated source. It does not build or deploy+the Worker.++The dashboard first calls `GET /api/admin/update` and compares the running app's `package.json`+version with the target repository's version. The update button is enabled only when the target+version is newer. Checking never starts a workflow; deployment occurs only after an admin clicks+the button.++Configure these Worker runtime secrets/variables once:++- `GITHUB_UPDATE_TOKEN` — fine-grained GitHub token scoped to the installation repository with+ **Actions: write** permission.+- `GITHUB_UPDATE_REF` — optional update branch; the repository default branch is used when omitted.++Configure these GitHub Actions repository secrets:++- `CLOUDFLARE_API_TOKEN` — Cloudflare token allowed to read and migrate D1.+- `CLOUDFLARE_ACCOUNT_ID` — Cloudflare account ID.+- `MAILFLARE_UPSTREAM_TOKEN` — required only when the upstream source repository is private.+ Store this under the installation repository's **Settings → Secrets and variables → Actions → Repository secrets**.+ For a classic PAT, enable the `repo` scope and ensure the token owner has accepted collaborator+ access to the upstream repository.++If an installation already contains an older failing updater, manually copy the latest+`.github/workflows/update.yml` into that installation repository once. The updater cannot update+its own workflow until it can successfully read the upstream repository.++Optional GitHub Actions repository variables:++- `MAILFLARE_UPSTREAM_REPOSITORY` — upstream source in `owner/repository` format. Defaults to+ `hieunc229/mailflare-team`.+- `MAILFLARE_UPSTREAM_BRANCH` — upstream branch to merge. Defaults to `main`.++The workflow resolves the `mailflare` D1 database ID at runtime and applies migrations before+pushing the updated source. If migration fails, the source is not pushed. A connected Cloudflare+Git integration may build and deploy after the successful push.If you rename the Worker, also update related literal resource names in `wrangler.jsonc`: `name`, `services[].service` for `WORKER_SELF_REFERENCE`, `CF_EMAIL_WORKER_NAME`, and any D1/R2/Queue names you want renamed. Cloudflare service bindings require the target Worker name to exist exactly; they cannot currently reference `name` dynamically.+### Worker name and Email Routing++`CF_EMAIL_WORKER_NAME` is the Worker script name that Mailflare sends to Cloudflare's Email Routing API when creating mailbox routing rules. It must match the deployed Worker name exactly. The app now fails with a clear setup error if this variable is missing instead of silently defaulting to `mailflare`.++Cloudflare service bindings also require a literal Worker name in `wrangler.jsonc` (`services[].service`). Cloudflare's service binding configuration uses `service: "<WORKER_NAME>"`, so `WORKER_SELF_REFERENCE` cannot automatically inherit the top-level `name` field. If you rename the Worker during one-click deployment, make sure the deployed Worker name, `CF_EMAIL_WORKER_NAME`, and `services[].service` agree.+After deployment, route inbound mail to the Worker in Cloudflare Email Routing.## Troubleshooting@@ -123,4 +213,33 @@ For Zone: DNS Settings:Edit, Email Routing Rules:Edit, Zone Settings:Edit, DNS:Enpm run deploy```-`npm run deploy` applies remote D1 migrations before deploying. Cloudflare's deploy button can auto-provision the D1 database, R2 bucket, and queues declared in `wrangler.jsonc`; for manual deployments, create or update those bindings in Cloudflare if they do not already exist.+`npm run deploy` builds and deploys the Worker. Cloudflare's deploy button can auto-provision the D1 database, R2 bucket, and queues declared in `wrangler.jsonc`; for manual deployments, create or update those bindings in Cloudflare if they do not already exist.++The deploy script intentionally builds with OpenNext and uploads with Wrangler. Do not replace the+Wrangler step with `opennextjs-cloudflare deploy`: Mailflare's `worker.ts` wrapper exports the+`RealtimeHub` Durable Object and handles email and queue events in addition to the generated Next.js+worker.++For an existing remote D1 database with a committed `database_id`, use:++```bash+npm run deploy:with-migrations+```++### Cloudflare D1 7404: database could not be found++If automatic deployment fails with:++```text+The database <uuid> could not be found [code: 7404]+```++remove any committed `database_id` from `wrangler.jsonc`. D1 database IDs are account-specific; committing one from another account makes Wrangler look up a database that does not exist in the deploying account. This project declares the `DB` binding with `database_name` only so Wrangler/Cloudflare can provision the D1 database for the target account.++Remote migration commands need a concrete D1 `database_id` in local config. With one-click deploy, Cloudflare provisions the database during deploy, and that generated ID is available in the Cloudflare dashboard, not automatically written back to the repository. After the first successful one-click deploy:++1. Go to Cloudflare dashboard → Workers & Pages → your Worker → Settings → Bindings.+2. Open the `DB` D1 binding and copy the database ID.+3. Add that ID to `wrangler.jsonc` only for your deployment/account if you want to run `npm run db:migrate:remote` or `npm run deploy:with-migrations`.++Do not commit an account-specific D1 ID to a reusable public template.diff --git a/drizzle/migrations/0004_add_accounts.sql b/drizzle/migrations/0004_add_accounts.sqlnew file mode 100644index 0000000..8b04ac1--- /dev/null+++ b/drizzle/migrations/0004_add_accounts.sql@@ -0,0 +1,14 @@+ALTER TABLE `users` ADD `role` text DEFAULT 'user' NOT NULL;+--> statement-breakpoint+ALTER TABLE `users` ADD `created_by_user_id` text REFERENCES `users`(`id`) ON DELETE set null;+--> statement-breakpoint+UPDATE `users`+SET `role` = 'admin'+WHERE `id` = (+ SELECT `id`+ FROM `users`+ ORDER BY `created_at` ASC+ LIMIT 1+);+--> statement-breakpoint+CREATE INDEX `users_created_by_idx` ON `users` (`created_by_user_id`);diff --git a/drizzle/migrations/0005_add_folders.sql b/drizzle/migrations/0005_add_folders.sqlnew file mode 100644index 0000000..80281cd--- /dev/null+++ b/drizzle/migrations/0005_add_folders.sql@@ -0,0 +1,21 @@+CREATE TABLE `folders` (+ `id` text PRIMARY KEY NOT NULL,+ `user_id` text NOT NULL,+ `mailbox_id` text NOT NULL,+ `name` text NOT NULL,+ `created_at` integer NOT NULL,+ FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE cascade,+ FOREIGN KEY (`mailbox_id`) REFERENCES `mailboxes`(`id`) ON UPDATE no action ON DELETE cascade+);+--> statement-breakpoint+CREATE UNIQUE INDEX `folders_mailbox_name_idx` ON `folders` (`mailbox_id`,`name`);+--> statement-breakpoint+CREATE INDEX `folders_user_idx` ON `folders` (`user_id`);+--> statement-breakpoint+CREATE INDEX `folders_mailbox_idx` ON `folders` (`mailbox_id`);+--> statement-breakpoint+ALTER TABLE `messages` ADD `folder_id` text REFERENCES `folders`(`id`) ON DELETE set null;+--> statement-breakpoint+CREATE INDEX `messages_folder_idx` ON `messages` (`folder_id`);+--> statement-breakpoint+ALTER TABLE `routing_rules` ADD `folder_id` text REFERENCES `folders`(`id`) ON DELETE set null;diff --git a/drizzle/migrations/0006_add_rule_conditions.sql b/drizzle/migrations/0006_add_rule_conditions.sqlnew file mode 100644index 0000000..323e5f3--- /dev/null+++ b/drizzle/migrations/0006_add_rule_conditions.sql@@ -0,0 +1,9 @@+ALTER TABLE `routing_rules` ADD `match_field` text DEFAULT 'email' NOT NULL;+--> statement-breakpoint+ALTER TABLE `routing_rules` ADD `match_operator` text DEFAULT 'contains' NOT NULL;+--> statement-breakpoint+ALTER TABLE `routing_rules` ADD `match_value` text DEFAULT '' NOT NULL;+--> statement-breakpoint+UPDATE `routing_rules`+SET `match_value` = `pattern`+WHERE `match_value` = '';diff --git a/drizzle/migrations/0007_add_shared_mailboxes.sql b/drizzle/migrations/0007_add_shared_mailboxes.sqlnew file mode 100644index 0000000..c1098f9--- /dev/null+++ b/drizzle/migrations/0007_add_shared_mailboxes.sql@@ -0,0 +1,38 @@+ALTER TABLE `users` ADD `disabled` integer DEFAULT false NOT NULL;+ALTER TABLE `mailboxes` ADD `type` text DEFAULT 'personal' NOT NULL;+ALTER TABLE `mailboxes` ADD `disabled` integer DEFAULT false NOT NULL;++CREATE TABLE `mailbox_access` (+ `id` text PRIMARY KEY NOT NULL,+ `mailbox_id` text NOT NULL,+ `user_id` text NOT NULL,+ `permission` text DEFAULT 'read_only' NOT NULL,+ `created_by_user_id` text,+ `created_at` integer NOT NULL,+ FOREIGN KEY (`mailbox_id`) REFERENCES `mailboxes`(`id`) ON UPDATE no action ON DELETE cascade,+ FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE cascade,+ FOREIGN KEY (`created_by_user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE set null+);++CREATE UNIQUE INDEX `mailbox_access_mailbox_user_idx` ON `mailbox_access` (`mailbox_id`,`user_id`);+CREATE INDEX `mailbox_access_user_idx` ON `mailbox_access` (`user_id`);+CREATE INDEX `mailbox_access_mailbox_idx` ON `mailbox_access` (`mailbox_id`);++CREATE TABLE `audit_logs` (+ `id` text PRIMARY KEY NOT NULL,+ `actor_user_id` text,+ `target_user_id` text,+ `mailbox_id` text,+ `message_id` text,+ `action` text NOT NULL,+ `metadata` text,+ `created_at` integer NOT NULL,+ FOREIGN KEY (`actor_user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE set null,+ FOREIGN KEY (`target_user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE set null,+ FOREIGN KEY (`mailbox_id`) REFERENCES `mailboxes`(`id`) ON UPDATE no action ON DELETE set null,+ FOREIGN KEY (`message_id`) REFERENCES `messages`(`id`) ON UPDATE no action ON DELETE set null+);++CREATE INDEX `audit_logs_actor_idx` ON `audit_logs` (`actor_user_id`);+CREATE INDEX `audit_logs_mailbox_idx` ON `audit_logs` (`mailbox_id`);+CREATE INDEX `audit_logs_created_idx` ON `audit_logs` (`created_at`);diff --git a/drizzle/migrations/0008_add_message_attachments.sql b/drizzle/migrations/0008_add_message_attachments.sqlnew file mode 100644index 0000000..b4c95b6--- /dev/null+++ b/drizzle/migrations/0008_add_message_attachments.sql@@ -0,0 +1,15 @@+CREATE TABLE `message_attachments` (+ `id` text PRIMARY KEY NOT NULL,+ `message_id` text NOT NULL,+ `filename` text NOT NULL,+ `content_type` text NOT NULL,+ `size` integer NOT NULL,+ `disposition` text DEFAULT 'attachment' NOT NULL,+ `content_id` text,+ `r2_key` text NOT NULL,+ `created_at` integer NOT NULL,+ FOREIGN KEY (`message_id`) REFERENCES `messages`(`id`) ON UPDATE no action ON DELETE cascade+);++CREATE UNIQUE INDEX `message_attachments_r2_key_unique` ON `message_attachments` (`r2_key`);+CREATE INDEX `message_attachments_message_idx` ON `message_attachments` (`message_id`);diff --git a/drizzle/migrations/0009_add_backups.sql b/drizzle/migrations/0009_add_backups.sqlnew file mode 100644index 0000000..4593853--- /dev/null+++ b/drizzle/migrations/0009_add_backups.sql@@ -0,0 +1,30 @@+CREATE TABLE `backup_settings` (+ `id` text PRIMARY KEY NOT NULL,+ `enabled` integer DEFAULT false NOT NULL,+ `schedule_type` text DEFAULT 'daily' NOT NULL,+ `schedule_value` integer,+ `retention_enabled` integer DEFAULT false NOT NULL,+ `retention_days` integer DEFAULT 30 NOT NULL,+ `updated_at` integer NOT NULL+);++INSERT INTO `backup_settings` (`id`, `enabled`, `schedule_type`, `retention_enabled`, `retention_days`, `updated_at`)+VALUES ('default', false, 'daily', false, 30, unixepoch());++CREATE TABLE `backups` (+ `id` text PRIMARY KEY NOT NULL,+ `status` text DEFAULT 'queued' NOT NULL,+ `trigger` text NOT NULL,+ `r2_key` text,+ `filename` text,+ `size` integer,+ `error` text,+ `created_by_user_id` text,+ `created_at` integer NOT NULL,+ `started_at` integer,+ `completed_at` integer,+ FOREIGN KEY (`created_by_user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE set null+);++CREATE INDEX `backups_created_idx` ON `backups` (`created_at`);+CREATE INDEX `backups_status_idx` ON `backups` (`status`);diff --git a/drizzle/migrations/meta/_journal.json b/drizzle/migrations/meta/_journal.jsonindex 101ec65..e3f652c 100644--- a/drizzle/migrations/meta/_journal.json+++ b/drizzle/migrations/meta/_journal.json@@ -29,6 +29,48 @@"when": 1779256253878,"tag": "0003_add_contacts","breakpoints": true+ },+ {+ "idx": 4,+ "version": "6",+ "when": 1779256253879,+ "tag": "0004_add_accounts",+ "breakpoints": true+ },+ {+ "idx": 5,+ "version": "6",+ "when": 1779256253880,+ "tag": "0005_add_folders",+ "breakpoints": true+ },+ {+ "idx": 6,+ "version": "6",+ "when": 1779256253881,+ "tag": "0006_add_rule_conditions",+ "breakpoints": true+ },+ {+ "idx": 7,+ "version": "6",+ "when": 1779256253882,+ "tag": "0007_add_shared_mailboxes",+ "breakpoints": true+ },+ {+ "idx": 8,+ "version": "6",+ "when": 1781053200000,+ "tag": "0008_add_message_attachments",+ "breakpoints": true+ },+ {+ "idx": 9,+ "version": "6",+ "when": 1781312400000,+ "tag": "0009_add_backups",+ "breakpoints": true}]}diff --git a/env.d.ts b/env.d.tsindex 373f7b3..c68eef8 100644--- a/env.d.ts+++ b/env.d.ts@@ -7,9 +7,20 @@ interface CloudflareEnv {ASSETS: Fetcher;IMAGES: ImagesBinding;WORKER_SELF_REFERENCE: Fetcher;+ REALTIME: DurableObjectNamespace<+ import("./src/lib/realtime/hub").RealtimeHub+ >;+ DATABASE_BACKUP_WORKFLOW: Workflow<import("./src/lib/backups/types").BackupWorkflowParams>;+ LOGIN_RATE_LIMIT?: RateLimit;CF_TOKEN?: string;CF_API_KEY?: string;CF_EMAIL?: string;- CF_ACCOUNT_ID?: string;+ CF_AID?: string;+ D1_DATABASE_ID?: string;+ D1_BACKUP_TOKEN?: string;+ TURNSTILE_SECRET_KEY?: string;CF_EMAIL_WORKER_NAME?: string;+ GITHUB_UPDATE_TOKEN?: string;+ GITHUB_UPDATE_REF?: string;+ GITHUB_UPDATE_REPO?: string}diff --git a/next.config.ts b/next.config.tsindex 66a6241..f713877 100644--- a/next.config.ts+++ b/next.config.ts@@ -1,9 +1,24 @@import type { NextConfig } from "next";+import { getSecurityHeaders } from "./src/lib/security/headers";const nextConfig: NextConfig = {turbopack: {root: import.meta.dirname,},+ typescript: {+ // !! WARN !!+ // Dangerously allow production builds to successfully complete+ // even if your project has type errors.+ ignoreBuildErrors: true,+ },+ async headers() {+ return [+ {+ source: "/(.*)",+ headers: getSecurityHeaders(),+ },+ ];+ },};export default nextConfig;diff --git a/package-lock.json b/package-lock.jsonnew file mode 100644index 0000000..6449f6c--- /dev/null+++ b/package-lock.json@@ -0,0 +1,13855 @@+{+ "name": "mailflare-team",+ "version": "0.1.9",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "mailflare-team",+ "version": "0.1.9",+ "license": "SEE LICENSE IN LICENSE",+ "dependencies": {+ "@opennextjs/cloudflare": "^1.19.9",+ "@radix-ui/react-dialog": "^1.1.15",+ "@radix-ui/react-dropdown-menu": "^2.1.16",+ "@radix-ui/react-label": "^2.1.8",+ "@radix-ui/react-select": "^2.2.6",+ "@radix-ui/react-separator": "^1.1.8",+ "@radix-ui/react-slot": "^1.2.4",+ "@radix-ui/react-tabs": "^1.1.13",+ "@radix-ui/react-toast": "^1.2.15",+ "@tanstack/react-query": "^5.100.11",+ "bcryptjs": "^3.0.3",+ "class-variance-authority": "^0.7.1",+ "clsx": "^2.1.1",+ "dayjs": "^1.11.20",+ "drizzle-orm": "^0.45.2",+ "lucide-react": "^1.16.0",+ "mimetext": "^3.0.28",+ "nanoid": "^5.1.11",+ "next": "16.2.6",+ "postal-mime": "^2.7.4",+ "react": "^19.1.7",+ "react-dom": "^19.1.7",+ "tailwind-merge": "^3.6.0",+ "zod": "^4.4.3"+ },+ "devDependencies": {+ "@cloudflare/workers-types": "^4.20260520.1",+ "@eslint/eslintrc": "^3",+ "@tailwindcss/postcss": "^4",+ "@types/bcryptjs": "^2.4.6",+ "@types/node": "^20.19.41",+ "@types/react": "^19.1.7",+ "@types/react-dom": "^19.1.7",+ "drizzle-kit": "^0.31.10",+ "eslint": "^9",+ "eslint-config-next": "16.2.6",+ "tailwindcss": "^4",+ "typescript": "^5.7.4",+ "wrangler": "^4.98.0"+ }+ },+ "node_modules/@alloc/quick-lru": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz",+ "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/@ast-grep/napi": {+ "version": "0.40.5",+ "resolved": "https://registry.npmjs.org/@ast-grep/napi/-/napi-0.40.5.tgz",+ "integrity": "sha512-hJA62OeBKUQT68DD2gDyhOqJxZxycqg8wLxbqjgqSzYttCMSDL9tiAQ9abgekBYNHudbJosm9sWOEbmCDfpX2A==",+ "license": "MIT",+ "engines": {+ "node": ">= 10"+ },+ "optionalDependencies": {+ "@ast-grep/napi-darwin-arm64": "0.40.5",+ "@ast-grep/napi-darwin-x64": "0.40.5",+ "@ast-grep/napi-linux-arm64-gnu": "0.40.5",+ "@ast-grep/napi-linux-arm64-musl": "0.40.5",+ "@ast-grep/napi-linux-x64-gnu": "0.40.5",+ "@ast-grep/napi-linux-x64-musl": "0.40.5",+ "@ast-grep/napi-win32-arm64-msvc": "0.40.5",+ "@ast-grep/napi-win32-ia32-msvc": "0.40.5",+ "@ast-grep/napi-win32-x64-msvc": "0.40.5"+ }+ },+ "node_modules/@ast-grep/napi-darwin-arm64": {+ "version": "0.40.5",+ "resolved": "https://registry.npmjs.org/@ast-grep/napi-darwin-arm64/-/napi-darwin-arm64-0.40.5.tgz",+ "integrity": "sha512-2F072fGN0WTq7KI3okuEnkGJVEHLbi56Bw1H6NAMf7j2mJJeQWsRyGOMcyNnUXZDeNdvoMH0OB2a5wwUegY/nQ==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@ast-grep/napi-darwin-x64": {+ "version": "0.40.5",+ "resolved": "https://registry.npmjs.org/@ast-grep/napi-darwin-x64/-/napi-darwin-x64-0.40.5.tgz",+ "integrity": "sha512-dJMidHZhhxuLBYNi6/FKI812jQ7wcFPSKkVPwviez2D+KvYagapUMAV/4dJ7FCORfguVk8Y0jpPAlYmWRT5nvA==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@ast-grep/napi-linux-arm64-gnu": {+ "version": "0.40.5",+ "resolved": "https://registry.npmjs.org/@ast-grep/napi-linux-arm64-gnu/-/napi-linux-arm64-gnu-0.40.5.tgz",+ "integrity": "sha512-nBRCbyoS87uqkaw4Oyfe5VO+SRm2B+0g0T8ME69Qry9ShMf41a2bTdpcQx9e8scZPogq+CTwDHo3THyBV71l9w==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@ast-grep/napi-linux-arm64-musl": {+ "version": "0.40.5",+ "resolved": "https://registry.npmjs.org/@ast-grep/napi-linux-arm64-musl/-/napi-linux-arm64-musl-0.40.5.tgz",+ "integrity": "sha512-/qKsmds5FMoaEj6FdNzepbmLMtlFuBLdrAn9GIWCqOIcVcYvM1Nka8+mncfeXB/MFZKOrzQsQdPTWqrrQzXLrA==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@ast-grep/napi-linux-x64-gnu": {+ "version": "0.40.5",+ "resolved": "https://registry.npmjs.org/@ast-grep/napi-linux-x64-gnu/-/napi-linux-x64-gnu-0.40.5.tgz",+ "integrity": "sha512-DP4oDbq7f/1A2hRTFLhJfDFR6aI5mRWdEfKfHzRItmlKsR9WlcEl1qDJs/zX9R2EEtIDsSKRzuJNfJllY3/W8Q==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@ast-grep/napi-linux-x64-musl": {+ "version": "0.40.5",+ "resolved": "https://registry.npmjs.org/@ast-grep/napi-linux-x64-musl/-/napi-linux-x64-musl-0.40.5.tgz",+ "integrity": "sha512-BRZUvVBPUNpWPo6Ns8chXVzxHPY+k9gpsubGTHy92Q26ecZULd/dTkWWdnvfhRqttsSQ9Pe/XQdi5+hDQ6RYcg==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@ast-grep/napi-win32-arm64-msvc": {+ "version": "0.40.5",+ "resolved": "https://registry.npmjs.org/@ast-grep/napi-win32-arm64-msvc/-/napi-win32-arm64-msvc-0.40.5.tgz",+ "integrity": "sha512-y95zSEwc7vhxmcrcH0GnK4ZHEBQrmrszRBNQovzaciF9GUqEcCACNLoBesn4V47IaOp4fYgD2/EhGRTIBFb2Ug==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@ast-grep/napi-win32-ia32-msvc": {+ "version": "0.40.5",+ "resolved": "https://registry.npmjs.org/@ast-grep/napi-win32-ia32-msvc/-/napi-win32-ia32-msvc-0.40.5.tgz",+ "integrity": "sha512-K/u8De62iUnFCzVUs7FBdTZ2Jrgc5/DLHqjpup66KxZ7GIM9/HGME/O8aSoPkpcAeCD4TiTZ11C1i5p5H98hTg==",+ "cpu": [+ "ia32"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@ast-grep/napi-win32-x64-msvc": {+ "version": "0.40.5",+ "resolved": "https://registry.npmjs.org/@ast-grep/napi-win32-x64-msvc/-/napi-win32-x64-msvc-0.40.5.tgz",+ "integrity": "sha512-dqm5zg/o4Nh4VOQPEpMS23ot8HVd22gG0eg01t4CFcZeuzyuSgBlOL3N7xLbz3iH2sVkk7keuBwAzOIpTqziNQ==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@aws-crypto/crc32": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/@aws-crypto/crc32/-/crc32-5.2.0.tgz",+ "integrity": "sha512-nLbCWqQNgUiwwtFsen1AdzAtvuLRsQS8rYgMuxCrdKf9kOssamGLuPwyTY9wyYblNr9+1XM8v6zoDTPPSIeANg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/util": "^5.2.0",+ "@aws-sdk/types": "^3.222.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=16.0.0"+ }+ },+ "node_modules/@aws-crypto/crc32c": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/@aws-crypto/crc32c/-/crc32c-5.2.0.tgz",+ "integrity": "sha512-+iWb8qaHLYKrNvGRbiYRHSdKRWhto5XlZUEBwDjYNf+ly5SVYG6zEoYIdxvf5R3zyeP16w4PLBn3rH1xc74Rag==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/util": "^5.2.0",+ "@aws-sdk/types": "^3.222.0",+ "tslib": "^2.6.2"+ }+ },+ "node_modules/@aws-crypto/sha1-browser": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/@aws-crypto/sha1-browser/-/sha1-browser-5.2.0.tgz",+ "integrity": "sha512-OH6lveCFfcDjX4dbAvCFSYUjJZjDr/3XJ3xHtjn3Oj5b9RjojQo8npoLeA/bNwkOkrSQ0wgrHzXk4tDRxGKJeg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/supports-web-crypto": "^5.2.0",+ "@aws-crypto/util": "^5.2.0",+ "@aws-sdk/types": "^3.222.0",+ "@aws-sdk/util-locate-window": "^3.0.0",+ "@smithy/util-utf8": "^2.0.0",+ "tslib": "^2.6.2"+ }+ },+ "node_modules/@aws-crypto/sha1-browser/node_modules/@smithy/util-utf8": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz",+ "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/util-buffer-from": "^2.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@aws-crypto/sha256-browser": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-browser/-/sha256-browser-5.2.0.tgz",+ "integrity": "sha512-AXfN/lGotSQwu6HNcEsIASo7kWXZ5HYWvfOmSNKDsEqC4OashTp8alTmaz+F7TC2L083SFv5RdB+qU3Vs1kZqw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/sha256-js": "^5.2.0",+ "@aws-crypto/supports-web-crypto": "^5.2.0",+ "@aws-crypto/util": "^5.2.0",+ "@aws-sdk/types": "^3.222.0",+ "@aws-sdk/util-locate-window": "^3.0.0",+ "@smithy/util-utf8": "^2.0.0",+ "tslib": "^2.6.2"+ }+ },+ "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz",+ "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/util-buffer-from": "^2.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@aws-crypto/sha256-js": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-5.2.0.tgz",+ "integrity": "sha512-FFQQyu7edu4ufvIZ+OadFpHHOt+eSTBaYaki44c+akjg7qZg9oOQeLlk77F6tSYqjDAFClrHJk9tMf0HdVyOvA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/util": "^5.2.0",+ "@aws-sdk/types": "^3.222.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=16.0.0"+ }+ },+ "node_modules/@aws-crypto/supports-web-crypto": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/@aws-crypto/supports-web-crypto/-/supports-web-crypto-5.2.0.tgz",+ "integrity": "sha512-iAvUotm021kM33eCdNfwIN//F77/IADDSs58i+MDaOqFrVjZo9bAal0NK7HurRuWLLpF1iLX7gbWrjHjeo+YFg==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ }+ },+ "node_modules/@aws-crypto/util": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-5.2.0.tgz",+ "integrity": "sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "^3.222.0",+ "@smithy/util-utf8": "^2.0.0",+ "tslib": "^2.6.2"+ }+ },+ "node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz",+ "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/util-buffer-from": "^2.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@aws-sdk/client-cloudfront": {+ "version": "3.984.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-cloudfront/-/client-cloudfront-3.984.0.tgz",+ "integrity": "sha512-couDuDLpJtoeWne/nYyJ+I+5ntBVdNgBVRTCoDaXuVV7OC3u/wz5Ps0+GogspEwMLEFoOJ8t691h3YXQtnpQTw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/sha256-browser": "5.2.0",+ "@aws-crypto/sha256-js": "5.2.0",+ "@aws-sdk/core": "^3.973.6",+ "@aws-sdk/credential-provider-node": "^3.972.5",+ "@aws-sdk/middleware-host-header": "^3.972.3",+ "@aws-sdk/middleware-logger": "^3.972.3",+ "@aws-sdk/middleware-recursion-detection": "^3.972.3",+ "@aws-sdk/middleware-user-agent": "^3.972.6",+ "@aws-sdk/region-config-resolver": "^3.972.3",+ "@aws-sdk/types": "^3.973.1",+ "@aws-sdk/util-endpoints": "3.984.0",+ "@aws-sdk/util-user-agent-browser": "^3.972.3",+ "@aws-sdk/util-user-agent-node": "^3.972.4",+ "@smithy/config-resolver": "^4.4.6",+ "@smithy/core": "^3.22.0",+ "@smithy/fetch-http-handler": "^5.3.9",+ "@smithy/hash-node": "^4.2.8",+ "@smithy/invalid-dependency": "^4.2.8",+ "@smithy/middleware-content-length": "^4.2.8",+ "@smithy/middleware-endpoint": "^4.4.12",+ "@smithy/middleware-retry": "^4.4.29",+ "@smithy/middleware-serde": "^4.2.9",+ "@smithy/middleware-stack": "^4.2.8",+ "@smithy/node-config-provider": "^4.3.8",+ "@smithy/node-http-handler": "^4.4.8",+ "@smithy/protocol-http": "^5.3.8",+ "@smithy/smithy-client": "^4.11.1",+ "@smithy/types": "^4.12.0",+ "@smithy/url-parser": "^4.2.8",+ "@smithy/util-base64": "^4.3.0",+ "@smithy/util-body-length-browser": "^4.2.0",+ "@smithy/util-body-length-node": "^4.2.1",+ "@smithy/util-defaults-mode-browser": "^4.3.28",+ "@smithy/util-defaults-mode-node": "^4.2.31",+ "@smithy/util-endpoints": "^3.2.8",+ "@smithy/util-middleware": "^4.2.8",+ "@smithy/util-retry": "^4.2.8",+ "@smithy/util-stream": "^4.5.10",+ "@smithy/util-utf8": "^4.2.0",+ "@smithy/util-waiter": "^4.2.8",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/client-dynamodb": {+ "version": "3.984.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-dynamodb/-/client-dynamodb-3.984.0.tgz",+ "integrity": "sha512-8/Oft9MWQtbG6p9f8eY5fsKC2CcO5YVDlwive8eUYS9mEbgnyQxm68OyH26WvsSTykQ9QkIbR+fOG56RsIBODw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/sha256-browser": "5.2.0",+ "@aws-crypto/sha256-js": "5.2.0",+ "@aws-sdk/core": "^3.973.6",+ "@aws-sdk/credential-provider-node": "^3.972.5",+ "@aws-sdk/dynamodb-codec": "^3.972.7",+ "@aws-sdk/middleware-endpoint-discovery": "^3.972.3",+ "@aws-sdk/middleware-host-header": "^3.972.3",+ "@aws-sdk/middleware-logger": "^3.972.3",+ "@aws-sdk/middleware-recursion-detection": "^3.972.3",+ "@aws-sdk/middleware-user-agent": "^3.972.6",+ "@aws-sdk/region-config-resolver": "^3.972.3",+ "@aws-sdk/types": "^3.973.1",+ "@aws-sdk/util-endpoints": "3.984.0",+ "@aws-sdk/util-user-agent-browser": "^3.972.3",+ "@aws-sdk/util-user-agent-node": "^3.972.4",+ "@smithy/config-resolver": "^4.4.6",+ "@smithy/core": "^3.22.0",+ "@smithy/fetch-http-handler": "^5.3.9",+ "@smithy/hash-node": "^4.2.8",+ "@smithy/invalid-dependency": "^4.2.8",+ "@smithy/middleware-content-length": "^4.2.8",+ "@smithy/middleware-endpoint": "^4.4.12",+ "@smithy/middleware-retry": "^4.4.29",+ "@smithy/middleware-serde": "^4.2.9",+ "@smithy/middleware-stack": "^4.2.8",+ "@smithy/node-config-provider": "^4.3.8",+ "@smithy/node-http-handler": "^4.4.8",+ "@smithy/protocol-http": "^5.3.8",+ "@smithy/smithy-client": "^4.11.1",+ "@smithy/types": "^4.12.0",+ "@smithy/url-parser": "^4.2.8",+ "@smithy/util-base64": "^4.3.0",+ "@smithy/util-body-length-browser": "^4.2.0",+ "@smithy/util-body-length-node": "^4.2.1",+ "@smithy/util-defaults-mode-browser": "^4.3.28",+ "@smithy/util-defaults-mode-node": "^4.2.31",+ "@smithy/util-endpoints": "^3.2.8",+ "@smithy/util-middleware": "^4.2.8",+ "@smithy/util-retry": "^4.2.8",+ "@smithy/util-utf8": "^4.2.0",+ "@smithy/util-waiter": "^4.2.8",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/client-lambda": {+ "version": "3.984.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-lambda/-/client-lambda-3.984.0.tgz",+ "integrity": "sha512-kqwNBIGNxGVhINwgN/UQfdsQkaMjbu9PFV2EhATWouV+RT60uMjK9JENgLDwbgJmEVbbnPsh9HaZ5KKwPSdiDg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/sha256-browser": "5.2.0",+ "@aws-crypto/sha256-js": "5.2.0",+ "@aws-sdk/core": "^3.973.6",+ "@aws-sdk/credential-provider-node": "^3.972.5",+ "@aws-sdk/middleware-host-header": "^3.972.3",+ "@aws-sdk/middleware-logger": "^3.972.3",+ "@aws-sdk/middleware-recursion-detection": "^3.972.3",+ "@aws-sdk/middleware-user-agent": "^3.972.6",+ "@aws-sdk/region-config-resolver": "^3.972.3",+ "@aws-sdk/types": "^3.973.1",+ "@aws-sdk/util-endpoints": "3.984.0",+ "@aws-sdk/util-user-agent-browser": "^3.972.3",+ "@aws-sdk/util-user-agent-node": "^3.972.4",+ "@smithy/config-resolver": "^4.4.6",+ "@smithy/core": "^3.22.0",+ "@smithy/eventstream-serde-browser": "^4.2.8",+ "@smithy/eventstream-serde-config-resolver": "^4.3.8",+ "@smithy/eventstream-serde-node": "^4.2.8",+ "@smithy/fetch-http-handler": "^5.3.9",+ "@smithy/hash-node": "^4.2.8",+ "@smithy/invalid-dependency": "^4.2.8",+ "@smithy/middleware-content-length": "^4.2.8",+ "@smithy/middleware-endpoint": "^4.4.12",+ "@smithy/middleware-retry": "^4.4.29",+ "@smithy/middleware-serde": "^4.2.9",+ "@smithy/middleware-stack": "^4.2.8",+ "@smithy/node-config-provider": "^4.3.8",+ "@smithy/node-http-handler": "^4.4.8",+ "@smithy/protocol-http": "^5.3.8",+ "@smithy/smithy-client": "^4.11.1",+ "@smithy/types": "^4.12.0",+ "@smithy/url-parser": "^4.2.8",+ "@smithy/util-base64": "^4.3.0",+ "@smithy/util-body-length-browser": "^4.2.0",+ "@smithy/util-body-length-node": "^4.2.1",+ "@smithy/util-defaults-mode-browser": "^4.3.28",+ "@smithy/util-defaults-mode-node": "^4.2.31",+ "@smithy/util-endpoints": "^3.2.8",+ "@smithy/util-middleware": "^4.2.8",+ "@smithy/util-retry": "^4.2.8",+ "@smithy/util-stream": "^4.5.10",+ "@smithy/util-utf8": "^4.2.0",+ "@smithy/util-waiter": "^4.2.8",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/client-s3": {+ "version": "3.984.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-s3/-/client-s3-3.984.0.tgz",+ "integrity": "sha512-7ny2Slr93Y+QniuluvcfWwyDi32zWQfznynL56Tk0vVh7bWrvS/odm8WP2nInKicRVNipcJHY2YInur6Q/9V0A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/sha1-browser": "5.2.0",+ "@aws-crypto/sha256-browser": "5.2.0",+ "@aws-crypto/sha256-js": "5.2.0",+ "@aws-sdk/core": "^3.973.6",+ "@aws-sdk/credential-provider-node": "^3.972.5",+ "@aws-sdk/middleware-bucket-endpoint": "^3.972.3",+ "@aws-sdk/middleware-expect-continue": "^3.972.3",+ "@aws-sdk/middleware-flexible-checksums": "^3.972.4",+ "@aws-sdk/middleware-host-header": "^3.972.3",+ "@aws-sdk/middleware-location-constraint": "^3.972.3",+ "@aws-sdk/middleware-logger": "^3.972.3",+ "@aws-sdk/middleware-recursion-detection": "^3.972.3",+ "@aws-sdk/middleware-sdk-s3": "^3.972.6",+ "@aws-sdk/middleware-ssec": "^3.972.3",+ "@aws-sdk/middleware-user-agent": "^3.972.6",+ "@aws-sdk/region-config-resolver": "^3.972.3",+ "@aws-sdk/signature-v4-multi-region": "3.984.0",+ "@aws-sdk/types": "^3.973.1",+ "@aws-sdk/util-endpoints": "3.984.0",+ "@aws-sdk/util-user-agent-browser": "^3.972.3",+ "@aws-sdk/util-user-agent-node": "^3.972.4",+ "@smithy/config-resolver": "^4.4.6",+ "@smithy/core": "^3.22.0",+ "@smithy/eventstream-serde-browser": "^4.2.8",+ "@smithy/eventstream-serde-config-resolver": "^4.3.8",+ "@smithy/eventstream-serde-node": "^4.2.8",+ "@smithy/fetch-http-handler": "^5.3.9",+ "@smithy/hash-blob-browser": "^4.2.9",+ "@smithy/hash-node": "^4.2.8",+ "@smithy/hash-stream-node": "^4.2.8",+ "@smithy/invalid-dependency": "^4.2.8",+ "@smithy/md5-js": "^4.2.8",+ "@smithy/middleware-content-length": "^4.2.8",+ "@smithy/middleware-endpoint": "^4.4.12",+ "@smithy/middleware-retry": "^4.4.29",+ "@smithy/middleware-serde": "^4.2.9",+ "@smithy/middleware-stack": "^4.2.8",+ "@smithy/node-config-provider": "^4.3.8",+ "@smithy/node-http-handler": "^4.4.8",+ "@smithy/protocol-http": "^5.3.8",+ "@smithy/smithy-client": "^4.11.1",+ "@smithy/types": "^4.12.0",+ "@smithy/url-parser": "^4.2.8",+ "@smithy/util-base64": "^4.3.0",+ "@smithy/util-body-length-browser": "^4.2.0",+ "@smithy/util-body-length-node": "^4.2.1",+ "@smithy/util-defaults-mode-browser": "^4.3.28",+ "@smithy/util-defaults-mode-node": "^4.2.31",+ "@smithy/util-endpoints": "^3.2.8",+ "@smithy/util-middleware": "^4.2.8",+ "@smithy/util-retry": "^4.2.8",+ "@smithy/util-stream": "^4.5.10",+ "@smithy/util-utf8": "^4.2.0",+ "@smithy/util-waiter": "^4.2.8",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/client-sqs": {+ "version": "3.984.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-sqs/-/client-sqs-3.984.0.tgz",+ "integrity": "sha512-TDvHpOUWlpanc3xQ5Xw0y8L2hoojBFCCSmXQ/6rKqGOf1ScX3dMA+K9aF0Zp0iwjhSh4VvsHD42esl8XwQZDjA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/sha256-browser": "5.2.0",+ "@aws-crypto/sha256-js": "5.2.0",+ "@aws-sdk/core": "^3.973.6",+ "@aws-sdk/credential-provider-node": "^3.972.5",+ "@aws-sdk/middleware-host-header": "^3.972.3",+ "@aws-sdk/middleware-logger": "^3.972.3",+ "@aws-sdk/middleware-recursion-detection": "^3.972.3",+ "@aws-sdk/middleware-sdk-sqs": "^3.972.5",+ "@aws-sdk/middleware-user-agent": "^3.972.6",+ "@aws-sdk/region-config-resolver": "^3.972.3",+ "@aws-sdk/types": "^3.973.1",+ "@aws-sdk/util-endpoints": "3.984.0",+ "@aws-sdk/util-user-agent-browser": "^3.972.3",+ "@aws-sdk/util-user-agent-node": "^3.972.4",+ "@smithy/config-resolver": "^4.4.6",+ "@smithy/core": "^3.22.0",+ "@smithy/fetch-http-handler": "^5.3.9",+ "@smithy/hash-node": "^4.2.8",+ "@smithy/invalid-dependency": "^4.2.8",+ "@smithy/md5-js": "^4.2.8",+ "@smithy/middleware-content-length": "^4.2.8",+ "@smithy/middleware-endpoint": "^4.4.12",+ "@smithy/middleware-retry": "^4.4.29",+ "@smithy/middleware-serde": "^4.2.9",+ "@smithy/middleware-stack": "^4.2.8",+ "@smithy/node-config-provider": "^4.3.8",+ "@smithy/node-http-handler": "^4.4.8",+ "@smithy/protocol-http": "^5.3.8",+ "@smithy/smithy-client": "^4.11.1",+ "@smithy/types": "^4.12.0",+ "@smithy/url-parser": "^4.2.8",+ "@smithy/util-base64": "^4.3.0",+ "@smithy/util-body-length-browser": "^4.2.0",+ "@smithy/util-body-length-node": "^4.2.1",+ "@smithy/util-defaults-mode-browser": "^4.3.28",+ "@smithy/util-defaults-mode-node": "^4.2.31",+ "@smithy/util-endpoints": "^3.2.8",+ "@smithy/util-middleware": "^4.2.8",+ "@smithy/util-retry": "^4.2.8",+ "@smithy/util-utf8": "^4.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/core": {+ "version": "3.974.12",+ "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.974.12.tgz",+ "integrity": "sha512-qrqgioqYFjwR6LatVNS1L2Vk++EwRIxqSQXPKNv5Ofux2D8UNgqMQ1znnMyEImXquVPTtbf71fc128pvmU6y9A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "^3.973.8",+ "@aws-sdk/xml-builder": "^3.972.24",+ "@aws/lambda-invoke-store": "^0.2.2",+ "@smithy/core": "^3.24.2",+ "@smithy/signature-v4": "^5.4.2",+ "@smithy/types": "^4.14.1",+ "bowser": "^2.11.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/crc64-nvme": {+ "version": "3.972.8",+ "resolved": "https://registry.npmjs.org/@aws-sdk/crc64-nvme/-/crc64-nvme-3.972.8.tgz",+ "integrity": "sha512-fVfUCL/Xh2zINYMPZvj+iBn6XWouQf0DAnjaWCI9MkmqXzL2Iy5FoQB8O7syFe6gN6AH1ecDDU58T51Ou0kFkA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.14.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/credential-provider-env": {+ "version": "3.972.38",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.972.38.tgz",+ "integrity": "sha512-m3WjZEgPtioMhPmwqUt+DhlTJ2i9ufR6DhfkyXojb9puEvfR+ur2U5shavu5/Cc9WHHsDCvALi6UFHgcqjhQ5w==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "^3.974.12",+ "@aws-sdk/types": "^3.973.8",+ "@smithy/core": "^3.24.2",+ "@smithy/types": "^4.14.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/credential-provider-http": {+ "version": "3.972.40",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.972.40.tgz",+ "integrity": "sha512-D78L/m2Dr6cJnnSvWoAudPhQmCwmJ7j6APXsPYmFpPaKfQTfCSu0rdm8j14Np+VmXF9z8Aj8HE3xFpsrwtfgeg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "^3.974.12",+ "@aws-sdk/types": "^3.973.8",+ "@smithy/core": "^3.24.2",+ "@smithy/fetch-http-handler": "^5.4.2",+ "@smithy/node-http-handler": "^4.7.2",+ "@smithy/types": "^4.14.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/credential-provider-ini": {+ "version": "3.972.42",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.972.42.tgz",+ "integrity": "sha512-Mu5ESvFXeinafVM8jTIvRqcvK2Ehj4kz3auT39yUcHwu1Vfxo6xRlmUafdKLW4tusjAJukQwK09sCSMgOm7OKg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "^3.974.12",+ "@aws-sdk/credential-provider-env": "^3.972.38",+ "@aws-sdk/credential-provider-http": "^3.972.40",+ "@aws-sdk/credential-provider-login": "^3.972.42",+ "@aws-sdk/credential-provider-process": "^3.972.38",+ "@aws-sdk/credential-provider-sso": "^3.972.42",+ "@aws-sdk/credential-provider-web-identity": "^3.972.42",+ "@aws-sdk/nested-clients": "^3.997.10",+ "@aws-sdk/types": "^3.973.8",+ "@smithy/core": "^3.24.2",+ "@smithy/credential-provider-imds": "^4.3.2",+ "@smithy/types": "^4.14.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/credential-provider-login": {+ "version": "3.972.42",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-login/-/credential-provider-login-3.972.42.tgz",+ "integrity": "sha512-O6WkZga3kf0yqyJYd1dbeJqVhEgJx/x1UaLgtbR+XuL/YP+K5y6QTxQKL7ka9z3jnQASESKGAPnRyt4D5hQrxA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "^3.974.12",+ "@aws-sdk/nested-clients": "^3.997.10",+ "@aws-sdk/types": "^3.973.8",+ "@smithy/core": "^3.24.2",+ "@smithy/types": "^4.14.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/credential-provider-node": {+ "version": "3.972.43",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.972.43.tgz",+ "integrity": "sha512-D/DJmbrWRP5BXEO3FH+ar4el+2n6OlGofiud7dQun2jES+AQEJjczenp1jBb4MBN7CpGpS8nsWGQLtuzc9tQbA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/credential-provider-env": "^3.972.38",+ "@aws-sdk/credential-provider-http": "^3.972.40",+ "@aws-sdk/credential-provider-ini": "^3.972.42",+ "@aws-sdk/credential-provider-process": "^3.972.38",+ "@aws-sdk/credential-provider-sso": "^3.972.42",+ "@aws-sdk/credential-provider-web-identity": "^3.972.42",+ "@aws-sdk/types": "^3.973.8",+ "@smithy/core": "^3.24.2",+ "@smithy/credential-provider-imds": "^4.3.2",+ "@smithy/types": "^4.14.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/credential-provider-process": {+ "version": "3.972.38",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.972.38.tgz",+ "integrity": "sha512-EnbYVajGgbkb24s0K1eo4VNAPV5mHIET7LSvirTaFCwkfrfaOJxtSE+wY/tJdKDS21cEYkZs2ruCaAm+W4iblg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "^3.974.12",+ "@aws-sdk/types": "^3.973.8",+ "@smithy/core": "^3.24.2",+ "@smithy/types": "^4.14.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/credential-provider-sso": {+ "version": "3.972.42",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.972.42.tgz",+ "integrity": "sha512-RVV/9NbFwI8ZHEH5dn39lGyFmSbSVj1+orZdr6QsOe1mW9DCglmlen0cFaNZmCcqkqc7erNRHNBduxbeZuHAnw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "^3.974.12",+ "@aws-sdk/nested-clients": "^3.997.10",+ "@aws-sdk/token-providers": "3.1049.0",+ "@aws-sdk/types": "^3.973.8",+ "@smithy/core": "^3.24.2",+ "@smithy/types": "^4.14.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/credential-provider-web-identity": {+ "version": "3.972.42",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.972.42.tgz",+ "integrity": "sha512-/67fXX0ddllD4u2Nujc5PvT4byHgpMUfz6+RxIKi/0nFIckeorm7JvXgzBuDyVKw0s58EbofmETDWUf9vTEuHQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "^3.974.12",+ "@aws-sdk/nested-clients": "^3.997.10",+ "@aws-sdk/types": "^3.973.8",+ "@smithy/core": "^3.24.2",+ "@smithy/types": "^4.14.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/dynamodb-codec": {+ "version": "3.973.12",+ "resolved": "https://registry.npmjs.org/@aws-sdk/dynamodb-codec/-/dynamodb-codec-3.973.12.tgz",+ "integrity": "sha512-E+qpJPN1QLzfeVDQe1gVmMiHu9PTJWwXqSQjIt8mH5OQXmds2J/IN+Ar6Oa9ZhhuPZb4fPkcgZg4UEpwJM90NA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "^3.974.12",+ "@smithy/core": "^3.24.2",+ "@smithy/types": "^4.14.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/endpoint-cache": {+ "version": "3.972.5",+ "resolved": "https://registry.npmjs.org/@aws-sdk/endpoint-cache/-/endpoint-cache-3.972.5.tgz",+ "integrity": "sha512-itVdge0NozgtgmtbZ25FVwWU3vGlE7x7feE/aOEJNkQfEpbkrF8Rj1QmnK+2blFfYE1xWt/iU+6/jUp/pv1+MA==",+ "license": "Apache-2.0",+ "dependencies": {+ "mnemonist": "0.38.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-bucket-endpoint": {+ "version": "3.972.14",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-bucket-endpoint/-/middleware-bucket-endpoint-3.972.14.tgz",+ "integrity": "sha512-Aaj0d+xbo1jJquBWJP0/9V/XZRYukO3LWIRp3dOLHmoFrYKb4YZ0aLefgVHfGcNOVBS2ZTq7L/n5JcrE7DaC+Q==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "^3.974.12",+ "@aws-sdk/types": "^3.973.8",+ "@smithy/core": "^3.24.2",+ "@smithy/types": "^4.14.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-endpoint-discovery": {+ "version": "3.972.13",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-endpoint-discovery/-/middleware-endpoint-discovery-3.972.13.tgz",+ "integrity": "sha512-1r6EkFdSQ4quTP3pW8yWIcYuyDwdwdBxGr+kfuPFYE3DqR+1gBc6NyJneAyoIs+wc/cUfnyJ4ZYC0T2SQTxP9A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/endpoint-cache": "^3.972.5",+ "@aws-sdk/types": "^3.973.8",+ "@smithy/core": "^3.24.2",+ "@smithy/types": "^4.14.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-expect-continue": {+ "version": "3.972.12",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-expect-continue/-/middleware-expect-continue-3.972.12.tgz",+ "integrity": "sha512-dA5pKTom/Ls9mgeyeaRBNQrRIVOLVjv4AmKOB0/e4yaiXEUy0gSz2d3liP8JHtYoCAEWySU1jWnyzwLOREN+4g==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "^3.973.8",+ "@smithy/core": "^3.24.2",+ "@smithy/types": "^4.14.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-flexible-checksums": {+ "version": "3.974.20",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-flexible-checksums/-/middleware-flexible-checksums-3.974.20.tgz",+ "integrity": "sha512-NdnMVQCR1YjIcqFAiNLdBiOwr2DyQDB2IiXQrBhzolKOv32ae4d4Ll7IzLMi04eMHiq/o/Y/GjFuVjF9HuG0QA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/crc32": "5.2.0",+ "@aws-crypto/crc32c": "5.2.0",+ "@aws-crypto/util": "5.2.0",+ "@aws-sdk/core": "^3.974.12",+ "@aws-sdk/crc64-nvme": "^3.972.8",+ "@aws-sdk/types": "^3.973.8",+ "@smithy/core": "^3.24.2",+ "@smithy/types": "^4.14.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-host-header": {+ "version": "3.972.13",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.972.13.tgz",+ "integrity": "sha512-EA3+u2LD3kGcfRNmCSjyJuzX4XvG4zYv57i4ZksH+1IEciuSyHQGvzivEz7vZ+jbRPdAAe7WWKy/4M8InCKDcw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "^3.974.12",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-location-constraint": {+ "version": "3.972.10",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-location-constraint/-/middleware-location-constraint-3.972.10.tgz",+ "integrity": "sha512-rI3NZvJcEvjoD0+0PI0iUAwlPw2IlSlhyvgBK/3WkKJQE/YiKFedd9dMN2lVacdNxPNhxL/jzQaKQdrGtQagjQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "^3.973.8",+ "@smithy/types": "^4.14.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-logger": {+ "version": "3.972.12",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.972.12.tgz",+ "integrity": "sha512-NxB2dS4/mV3380hNkC72TkhMaLLjWGGBeTAEucqlJptVVovTbNmQWZLwaMC74ICo9NZHmFiBVVTHzDfAh/3y6Q==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "^3.974.12",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-recursion-detection": {+ "version": "3.972.14",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.972.14.tgz",+ "integrity": "sha512-bqL+upATpOJ/7px4IVfMVxcM6Lyt9uRizmEx3mNg4N6+IQlnOaYXXOJ4TNX6P0mKPPW0lwn9ZW8QEhXwQuCH9A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "^3.974.12",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-sdk-s3": {+ "version": "3.972.41",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-s3/-/middleware-sdk-s3-3.972.41.tgz",+ "integrity": "sha512-M4T2I2WPuH5WQpU8Tsp+u2bcO29zGRkU14ATzuqb9I4xh8tzsLqtp4hzaJM5aO2dhMZnHDzyQwSFVgc3XbnoGg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "^3.974.12",+ "@aws-sdk/signature-v4-multi-region": "^3.996.27",+ "@aws-sdk/types": "^3.973.8",+ "@smithy/core": "^3.24.2",+ "@smithy/signature-v4": "^5.4.2",+ "@smithy/types": "^4.14.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@aws-sdk/signature-v4-multi-region": {+ "version": "3.996.27",+ "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.996.27.tgz",+ "integrity": "sha512-0Phbz4t6HI3D3skxvG2uI+VWU034/nSIw1T8d+FPzzQG9EQTrw94o9mOKO2Gv3n3Oc8P7JD7RAUxkoneLWv5Eg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "^3.973.8",+ "@smithy/core": "^3.24.2",+ "@smithy/signature-v4": "^5.4.2",+ "@smithy/types": "^4.14.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-sdk-sqs": {+ "version": "3.972.24",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-sqs/-/middleware-sdk-sqs-3.972.24.tgz",+ "integrity": "sha512-ej3vwWFzTP2B0FxlU2JelMaxplEncflFv2ARsoMQ9TXI/yfmsPEZw8zkOdsQp3rMEJ/vN7iKTYDYIcpeMmDRoQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "^3.973.8",+ "@smithy/core": "^3.24.2",+ "@smithy/types": "^4.14.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-ssec": {+ "version": "3.972.10",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-ssec/-/middleware-ssec-3.972.10.tgz",+ "integrity": "sha512-Gli9A0u8EVVb+5bFDGS/QbSVg28w/wpEidg1ggVcSj65BDTdGR6punsOcVjqdiu1i42WHWo51MCvARPIIz9juw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "^3.973.8",+ "@smithy/types": "^4.14.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-user-agent": {+ "version": "3.972.42",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.972.42.tgz",+ "integrity": "sha512-U7jjlJKQnuUlI2swC2umFLFzLAxMLudSRFv+Bqk2F8ORmr5bG25qsFxGm4GEFwoZeGaFFnAFmTY0xReVRfyl2A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "^3.974.12",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/nested-clients": {+ "version": "3.997.10",+ "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.997.10.tgz",+ "integrity": "sha512-FtQ/Bt327peZJuyo4WZSOLVUTw9ujRxntepiC7L65FxA2P82Xlq0g14T22BuqBUeMjDoxa9nvwiMHjLIfP3eUg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/sha256-browser": "5.2.0",+ "@aws-crypto/sha256-js": "5.2.0",+ "@aws-sdk/core": "^3.974.12",+ "@aws-sdk/signature-v4-multi-region": "^3.996.27",+ "@aws-sdk/types": "^3.973.8",+ "@smithy/core": "^3.24.2",+ "@smithy/fetch-http-handler": "^5.4.2",+ "@smithy/node-http-handler": "^4.7.2",+ "@smithy/types": "^4.14.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/signature-v4-multi-region": {+ "version": "3.996.27",+ "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.996.27.tgz",+ "integrity": "sha512-0Phbz4t6HI3D3skxvG2uI+VWU034/nSIw1T8d+FPzzQG9EQTrw94o9mOKO2Gv3n3Oc8P7JD7RAUxkoneLWv5Eg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "^3.973.8",+ "@smithy/core": "^3.24.2",+ "@smithy/signature-v4": "^5.4.2",+ "@smithy/types": "^4.14.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/region-config-resolver": {+ "version": "3.972.16",+ "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.972.16.tgz",+ "integrity": "sha512-/YaivCvKUkEeMN9VTKBSvBn5w/4osAM1YboM58DKaLF/vqFGf/FdJCLmppqiPPJWZaXcASqByVjc3evE7KHKdA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "^3.974.12",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/signature-v4-multi-region": {+ "version": "3.984.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.984.0.tgz",+ "integrity": "sha512-TaWbfYCwnuOSvDSrgs7QgoaoXse49E7LzUkVOUhoezwB7bkmhp+iojADm7UepCEu4021SquD7NG1xA+WCvmldA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/middleware-sdk-s3": "^3.972.6",+ "@aws-sdk/types": "^3.973.1",+ "@smithy/protocol-http": "^5.3.8",+ "@smithy/signature-v4": "^5.3.8",+ "@smithy/types": "^4.12.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/token-providers": {+ "version": "3.1049.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.1049.0.tgz",+ "integrity": "sha512-r7+d0lQMTHKypkmaF5jRTBYLYHCUHzt3gaVoN9SidLhQeWhCmHk3AKrboDTpPF5b7Pt7vKu3+oeMjznM2Eu1ow==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "^3.974.12",+ "@aws-sdk/nested-clients": "^3.997.10",+ "@aws-sdk/types": "^3.973.8",+ "@smithy/core": "^3.24.2",+ "@smithy/types": "^4.14.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/types": {+ "version": "3.973.8",+ "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.973.8.tgz",+ "integrity": "sha512-gjlAdtHMbtR9X5iIhVUvbVcy55KnznpC6bkDUWW9z915bi0ckdUr5cjf16Kp6xq0bP5HBD2xzgbL9F9Quv5vUw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.14.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/util-endpoints": {+ "version": "3.984.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.984.0.tgz",+ "integrity": "sha512-9ebjLA0hMKHeVvXEtTDCCOBtwjb0bOXiuUV06HNeVdgAjH6gj4x4Zwt4IBti83TiyTGOCl5YfZqGx4ehVsasbQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "^3.973.1",+ "@smithy/types": "^4.12.0",+ "@smithy/url-parser": "^4.2.8",+ "@smithy/util-endpoints": "^3.2.8",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/util-locate-window": {+ "version": "3.965.5",+ "resolved": "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.965.5.tgz",+ "integrity": "sha512-WhlJNNINQB+9qtLtZJcpQdgZw3SCDCpXdUJP7cToGwHbCWCnRckGlc6Bx/OhWwIYFNAn+FIydY8SZ0QmVu3xTQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/util-user-agent-browser": {+ "version": "3.972.13",+ "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.972.13.tgz",+ "integrity": "sha512-wfk9ZdVwh187gdGXB1EyAoprwjSMt/bSfVtva+OaZx+LyNdKD7smlZf611yMd42UpfQ9vaS8NOftjSajgpdd+w==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "^3.974.12",+ "tslib": "^2.6.2"+ }+ },+ "node_modules/@aws-sdk/util-user-agent-node": {+ "version": "3.973.28",+ "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.973.28.tgz",+ "integrity": "sha512-A2l/PTRzsOS9L8dmZbXtDyJQgeeX+qjqLJ+fr0UU5Dz0AUQMuxgZCPSLKZgUDlHAmLFuk34owdMEvJxmDTBgRg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "^3.974.12",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/xml-builder": {+ "version": "3.972.24",+ "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.972.24.tgz",+ "integrity": "sha512-V8z5YcDPfsvzrBlj0xR1vhRtocblhYbqdreCJB/voGd4Sr5zjNAeWxexbnqVtskTJe0vFb5KMqbSL++ePl+zRw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@nodable/entities": "2.1.0",+ "@smithy/types": "^4.14.1",+ "fast-xml-parser": "5.7.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws/lambda-invoke-store": {+ "version": "0.2.4",+ "resolved": "https://registry.npmjs.org/@aws/lambda-invoke-store/-/lambda-invoke-store-0.2.4.tgz",+ "integrity": "sha512-iY8yvjE0y651BixKNPgmv1WrQc+GZ142sb0z4gYnChDDY2YqI4P/jsSopBWrKfAt7LOJAkOXt7rC/hms+WclQQ==",+ "license": "Apache-2.0",+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@babel/code-frame": {+ "version": "7.29.0",+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz",+ "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-validator-identifier": "^7.28.5",+ "js-tokens": "^4.0.0",+ "picocolors": "^1.1.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/compat-data": {+ "version": "7.29.3",+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.3.tgz",+ "integrity": "sha512-LIVqM46zQWZhj17qA8wb4nW/ixr2y1Nw+r1etiAWgRM6U1IqP+LNhL1yg440jYZR72jCWcWbLWzIosH+uP1fqg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/core": {+ "version": "7.29.0",+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz",+ "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.29.0",+ "@babel/generator": "^7.29.0",+ "@babel/helper-compilation-targets": "^7.28.6",+ "@babel/helper-module-transforms": "^7.28.6",+ "@babel/helpers": "^7.28.6",+ "@babel/parser": "^7.29.0",+ "@babel/template": "^7.28.6",+ "@babel/traverse": "^7.29.0",+ "@babel/types": "^7.29.0",+ "@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.1",+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz",+ "integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^7.29.0",+ "@babel/types": "^7.29.0",+ "@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.28.6",+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz",+ "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/compat-data": "^7.28.6",+ "@babel/helper-validator-option": "^7.27.1",+ "browserslist": "^4.24.0",+ "lru-cache": "^5.1.1",+ "semver": "^6.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-globals": {+ "version": "7.28.0",+ "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz",+ "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-module-imports": {+ "version": "7.28.6",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz",+ "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/traverse": "^7.28.6",+ "@babel/types": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-module-transforms": {+ "version": "7.28.6",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz",+ "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-module-imports": "^7.28.6",+ "@babel/helper-validator-identifier": "^7.28.5",+ "@babel/traverse": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0"+ }+ },+ "node_modules/@babel/helper-string-parser": {+ "version": "7.27.1",+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",+ "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-validator-identifier": {+ "version": "7.28.5",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz",+ "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-validator-option": {+ "version": "7.27.1",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz",+ "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helpers": {+ "version": "7.29.2",+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.2.tgz",+ "integrity": "sha512-HoGuUs4sCZNezVEKdVcwqmZN8GoHirLUcLaYVNBK2J0DadGtdcqgr3BCbvH8+XUo4NGjNl3VOtSjEKNzqfFgKw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/template": "^7.28.6",+ "@babel/types": "^7.29.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/parser": {+ "version": "7.29.3",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.3.tgz",+ "integrity": "sha512-b3ctpQwp+PROvU/cttc4OYl4MzfJUWy6FZg+PMXfzmt/+39iHVF0sDfqay8TQM3JA2EUOyKcFZt75jWriQijsA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.29.0"+ },+ "bin": {+ "parser": "bin/babel-parser.js"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@babel/runtime": {+ "version": "7.29.2",+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.2.tgz",+ "integrity": "sha512-JiDShH45zKHWyGe4ZNVRrCjBz8Nh9TMmZG1kh4QTK8hCBTWBi8Da+i7s1fJw7/lYpM4ccepSNfqzZ/QvABBi5g==",+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/runtime-corejs3": {+ "version": "7.29.2",+ "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.29.2.tgz",+ "integrity": "sha512-Lc94FOD5+0aXhdb0Tdg3RUtqT6yWbI/BbFWvlaSJ3gAb9Ks+99nHRDKADVqC37er4eCB0fHyWT+y+K3QOvJKbw==",+ "license": "MIT",+ "dependencies": {+ "core-js-pure": "^3.48.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/template": {+ "version": "7.28.6",+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz",+ "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.28.6",+ "@babel/parser": "^7.28.6",+ "@babel/types": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/traverse": {+ "version": "7.29.0",+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz",+ "integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.29.0",+ "@babel/generator": "^7.29.0",+ "@babel/helper-globals": "^7.28.0",+ "@babel/parser": "^7.29.0",+ "@babel/template": "^7.28.6",+ "@babel/types": "^7.29.0",+ "debug": "^4.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/types": {+ "version": "7.29.0",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz",+ "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-string-parser": "^7.27.1",+ "@babel/helper-validator-identifier": "^7.28.5"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@cloudflare/kv-asset-handler": {+ "version": "0.5.0",+ "resolved": "https://registry.npmjs.org/@cloudflare/kv-asset-handler/-/kv-asset-handler-0.5.0.tgz",+ "integrity": "sha512-jxQYkj8dSIzc0cD6cMMNdOc1UVjqSqu8BZdor5s8cGjW2I8BjODt/kWPVdY+u9zj3ms75Q5qaZgnxUad83+eAg==",+ "license": "MIT OR Apache-2.0",+ "engines": {+ "node": ">=22.0.0"+ }+ },+ "node_modules/@cloudflare/unenv-preset": {+ "version": "2.16.1",+ "resolved": "https://registry.npmjs.org/@cloudflare/unenv-preset/-/unenv-preset-2.16.1.tgz",+ "integrity": "sha512-ECxObrMfyTl5bhQf/lZCXwo5G6xX9IAUo+nDMKK4SZ8m4Jvvxp52vilxyySSWh2YTZz8+HQ07qGH/2rEom1vDw==",+ "license": "MIT OR Apache-2.0",+ "peerDependencies": {+ "unenv": "2.0.0-rc.24",+ "workerd": ">1.20260305.0 <2.0.0-0"+ },+ "peerDependenciesMeta": {+ "workerd": {+ "optional": true+ }+ }+ },+ "node_modules/@cloudflare/workerd-darwin-64": {+ "version": "1.20260603.1",+ "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-64/-/workerd-darwin-64-1.20260603.1.tgz",+ "integrity": "sha512-cEXDWu6V3ZrpmwWkM4OJE9AeXjdAgOY5rh8EHhcBVCuP5rxnzUbPzLtrVOHx0UUUAcCrFq0Xsa6mZKL1VUZsKQ==",+ "cpu": [+ "x64"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=16"+ }+ },+ "node_modules/@cloudflare/workerd-darwin-arm64": {+ "version": "1.20260603.1",+ "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-arm64/-/workerd-darwin-arm64-1.20260603.1.tgz",+ "integrity": "sha512-uBPK4LaWJNbbCYwPnUAehlHbbVulhVZPZsdcAhBPfZhHb3QAuAEPAQepO/P67R3V6Cni4YGx1fLbL8A5wwoaNA==",+ "cpu": [+ "arm64"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=16"+ }+ },+ "node_modules/@cloudflare/workerd-linux-64": {+ "version": "1.20260603.1",+ "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-64/-/workerd-linux-64-1.20260603.1.tgz",+ "integrity": "sha512-ht9l6/8Tk7Rp6kA4S9oFZ4X8u0VjnnFdmU/6B3fnABYKREYTKh2RdOqXqXxcp5eNJseireKnWik/hQOPK1CutQ==",+ "cpu": [+ "x64"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=16"+ }+ },+ "node_modules/@cloudflare/workerd-linux-arm64": {+ "version": "1.20260603.1",+ "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-arm64/-/workerd-linux-arm64-1.20260603.1.tgz",+ "integrity": "sha512-LJZ6x00rAjSrobV4m0ZW0TpH5ilBbKcWBzlH+y+KOUsIE/CpTuhAzKV43TbSnFLRX5+jrWKiz2v0hO91lPXy6A==",+ "cpu": [+ "arm64"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=16"+ }+ },+ "node_modules/@cloudflare/workerd-windows-64": {+ "version": "1.20260603.1",+ "resolved": "https://registry.npmjs.org/@cloudflare/workerd-windows-64/-/workerd-windows-64-1.20260603.1.tgz",+ "integrity": "sha512-DvwqkXMAJRPoDN4PxapAwhlz/6ouD+6R1ttbAEK3cWD/QBvFF5STx7Ds/9Irf+rBly3np3uHWkeX+wZnNFEuzA==",+ "cpu": [+ "x64"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=16"+ }+ },+ "node_modules/@cloudflare/workers-types": {+ "version": "4.20260612.1",+ "resolved": "https://registry.npmjs.org/@cloudflare/workers-types/-/workers-types-4.20260612.1.tgz",+ "integrity": "sha512-PMQI7XP/wrMhxyjseUHoHj6XFqkHaf4utWQ/hhefVY8oMK2LJ730oeQ7H/nZSVMexZe39DzsdOx7sf1PqMr7+Q==",+ "devOptional": true,+ "license": "MIT OR Apache-2.0"+ },+ "node_modules/@cspotcode/source-map-support": {+ "version": "0.8.1",+ "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz",+ "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==",+ "license": "MIT",+ "dependencies": {+ "@jridgewell/trace-mapping": "0.3.9"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": {+ "version": "0.3.9",+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz",+ "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==",+ "license": "MIT",+ "dependencies": {+ "@jridgewell/resolve-uri": "^3.0.3",+ "@jridgewell/sourcemap-codec": "^1.4.10"+ }+ },+ "node_modules/@dotenvx/dotenvx": {+ "version": "1.31.0",+ "resolved": "https://registry.npmjs.org/@dotenvx/dotenvx/-/dotenvx-1.31.0.tgz",+ "integrity": "sha512-GeDxvtjiRuoyWVU9nQneId879zIyNdL05bS7RKiqMkfBSKpHMWHLoRyRqjYWLaXmX/llKO1hTlqHDmatkQAjPA==",+ "license": "BSD-3-Clause",+ "dependencies": {+ "commander": "^11.1.0",+ "dotenv": "^16.4.5",+ "eciesjs": "^0.4.10",+ "execa": "^5.1.1",+ "fdir": "^6.2.0",+ "ignore": "^5.3.0",+ "object-treeify": "1.1.33",+ "picomatch": "^4.0.2",+ "which": "^4.0.0"+ },+ "bin": {+ "dotenvx": "src/cli/dotenvx.js",+ "git-dotenvx": "src/cli/dotenvx.js"+ },+ "funding": {+ "url": "https://dotenvx.com"+ }+ },+ "node_modules/@drizzle-team/brocli": {+ "version": "0.10.2",+ "resolved": "https://registry.npmjs.org/@drizzle-team/brocli/-/brocli-0.10.2.tgz",+ "integrity": "sha512-z33Il7l5dKjUgGULTqBsQBQwckHh5AbIuxhdsIxDDiZAzBOrZO6q9ogcWC65kU382AfynTfgNumVcNIjuIua6w==",+ "dev": true,+ "license": "Apache-2.0"+ },+ "node_modules/@ecies/ciphers": {+ "version": "0.2.6",+ "resolved": "https://registry.npmjs.org/@ecies/ciphers/-/ciphers-0.2.6.tgz",+ "integrity": "sha512-patgsRPKGkhhoBjETV4XxD0En4ui5fbX0hzayqI3M8tvNMGUoUvmyYAIWwlxBc1KX5cturfqByYdj5bYGRpN9g==",+ "license": "MIT",+ "engines": {+ "bun": ">=1",+ "deno": ">=2.7.10",+ "node": ">=16"+ },+ "peerDependencies": {+ "@noble/ciphers": "^1.0.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.1",+ "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.1.tgz",+ "integrity": "sha512-vgj7R3y3Wgx24IQaGPA/R6YFXLHVMOZ0uVEyIQPaWs+rd1AzfEMXlAC22FYwO1XkKR6NPsq7mUandH8oIRdZFw==",+ "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/@esbuild-kit/core-utils": {+ "version": "3.3.2",+ "resolved": "https://registry.npmjs.org/@esbuild-kit/core-utils/-/core-utils-3.3.2.tgz",+ "integrity": "sha512-sPRAnw9CdSsRmEtnsl2WXWdyquogVpB3yZ3dgwJfe8zrOzTsV7cJvmwrKVa+0ma5BoiGJ+BoqkMvawbayKUsqQ==",+ "deprecated": "Merged into tsx: https://tsx.is",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "esbuild": "~0.18.20",+ "source-map-support": "^0.5.21"+ }+ },+ "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/android-arm": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.20.tgz",+ "integrity": "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/android-arm64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.20.tgz",+ "integrity": "sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/android-x64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.20.tgz",+ "integrity": "sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/darwin-arm64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz",+ "integrity": "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/darwin-x64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.20.tgz",+ "integrity": "sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/freebsd-arm64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.20.tgz",+ "integrity": "sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/freebsd-x64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.20.tgz",+ "integrity": "sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/linux-arm": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.20.tgz",+ "integrity": "sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/linux-arm64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.20.tgz",+ "integrity": "sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/linux-ia32": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.20.tgz",+ "integrity": "sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/linux-loong64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz",+ "integrity": "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/linux-mips64el": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.20.tgz",+ "integrity": "sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==",+ "cpu": [+ "mips64el"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/linux-ppc64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.20.tgz",+ "integrity": "sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/linux-riscv64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.20.tgz",+ "integrity": "sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/linux-s390x": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.20.tgz",+ "integrity": "sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/linux-x64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz",+ "integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/netbsd-x64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.20.tgz",+ "integrity": "sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/openbsd-x64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.20.tgz",+ "integrity": "sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/sunos-x64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.20.tgz",+ "integrity": "sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/win32-arm64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.20.tgz",+ "integrity": "sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/win32-ia32": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.20.tgz",+ "integrity": "sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/win32-x64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.20.tgz",+ "integrity": "sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild-kit/core-utils/node_modules/esbuild": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.20.tgz",+ "integrity": "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=12"+ },+ "optionalDependencies": {+ "@esbuild/android-arm": "0.18.20",+ "@esbuild/android-arm64": "0.18.20",+ "@esbuild/android-x64": "0.18.20",+ "@esbuild/darwin-arm64": "0.18.20",+ "@esbuild/darwin-x64": "0.18.20",+ "@esbuild/freebsd-arm64": "0.18.20",+ "@esbuild/freebsd-x64": "0.18.20",+ "@esbuild/linux-arm": "0.18.20",+ "@esbuild/linux-arm64": "0.18.20",+ "@esbuild/linux-ia32": "0.18.20",+ "@esbuild/linux-loong64": "0.18.20",+ "@esbuild/linux-mips64el": "0.18.20",+ "@esbuild/linux-ppc64": "0.18.20",+ "@esbuild/linux-riscv64": "0.18.20",+ "@esbuild/linux-s390x": "0.18.20",+ "@esbuild/linux-x64": "0.18.20",+ "@esbuild/netbsd-x64": "0.18.20",+ "@esbuild/openbsd-x64": "0.18.20",+ "@esbuild/sunos-x64": "0.18.20",+ "@esbuild/win32-arm64": "0.18.20",+ "@esbuild/win32-ia32": "0.18.20",+ "@esbuild/win32-x64": "0.18.20"+ }+ },+ "node_modules/@esbuild-kit/esm-loader": {+ "version": "2.6.5",+ "resolved": "https://registry.npmjs.org/@esbuild-kit/esm-loader/-/esm-loader-2.6.5.tgz",+ "integrity": "sha512-FxEMIkJKnodyA1OaCUoEvbYRkoZlLZ4d/eXFu9Fh8CbBBgP5EmZxrfTRyN0qpXZ4vOvqnE5YdRdcrmUUXuU+dA==",+ "deprecated": "Merged into tsx: https://tsx.is",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@esbuild-kit/core-utils": "^3.3.2",+ "get-tsconfig": "^4.7.0"+ }+ },+ "node_modules/@esbuild/aix-ppc64": {+ "version": "0.25.4",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.4.tgz",+ "integrity": "sha512-1VCICWypeQKhVbE9oW/sJaAmjLxhVqacdkvPLEjwlttjfwENRSClS8EjBz0KzRyFSCPDIkuXW34Je/vk7zdB7Q==",+ "cpu": [+ "ppc64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm": {+ "version": "0.25.4",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.4.tgz",+ "integrity": "sha512-QNdQEps7DfFwE3hXiU4BZeOV68HHzYwGd0Nthhd3uCkkEKK7/R6MTgM0P7H7FAs5pU/DIWsviMmEGxEoxIZ+ZQ==",+ "cpu": [+ "arm"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm64": {+ "version": "0.25.4",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.4.tgz",+ "integrity": "sha512-bBy69pgfhMGtCnwpC/x5QhfxAz/cBgQ9enbtwjf6V9lnPI/hMyT9iWpR1arm0l3kttTr4L0KSLpKmLp/ilKS9A==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-x64": {+ "version": "0.25.4",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.4.tgz",+ "integrity": "sha512-TVhdVtQIFuVpIIR282btcGC2oGQoSfZfmBdTip2anCaVYcqWlZXGcdcKIUklfX2wj0JklNYgz39OBqh2cqXvcQ==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-arm64": {+ "version": "0.25.4",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.4.tgz",+ "integrity": "sha512-Y1giCfM4nlHDWEfSckMzeWNdQS31BQGs9/rouw6Ub91tkK79aIMTH3q9xHvzH8d0wDru5Ci0kWB8b3up/nl16g==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-x64": {+ "version": "0.25.4",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.4.tgz",+ "integrity": "sha512-CJsry8ZGM5VFVeyUYB3cdKpd/H69PYez4eJh1W/t38vzutdjEjtP7hB6eLKBoOdxcAlCtEYHzQ/PJ/oU9I4u0A==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-arm64": {+ "version": "0.25.4",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.4.tgz",+ "integrity": "sha512-yYq+39NlTRzU2XmoPW4l5Ifpl9fqSk0nAJYM/V/WUGPEFfek1epLHJIkTQM6bBs1swApjO5nWgvr843g6TjxuQ==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-x64": {+ "version": "0.25.4",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.4.tgz",+ "integrity": "sha512-0FgvOJ6UUMflsHSPLzdfDnnBBVoCDtBTVyn/MrWloUNvq/5SFmh13l3dvgRPkDihRxb77Y17MbqbCAa2strMQQ==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm": {+ "version": "0.25.4",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.4.tgz",+ "integrity": "sha512-kro4c0P85GMfFYqW4TWOpvmF8rFShbWGnrLqlzp4X1TNWjRY3JMYUfDCtOxPKOIY8B0WC8HN51hGP4I4hz4AaQ==",+ "cpu": [+ "arm"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm64": {+ "version": "0.25.4",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.4.tgz",+ "integrity": "sha512-+89UsQTfXdmjIvZS6nUnOOLoXnkUTB9hR5QAeLrQdzOSWZvNSAXAtcRDHWtqAUtAmv7ZM1WPOOeSxDzzzMogiQ==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ia32": {+ "version": "0.25.4",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.4.tgz",+ "integrity": "sha512-yTEjoapy8UP3rv8dB0ip3AfMpRbyhSN3+hY8mo/i4QXFeDxmiYbEKp3ZRjBKcOP862Ua4b1PDfwlvbuwY7hIGQ==",+ "cpu": [+ "ia32"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-loong64": {+ "version": "0.25.4",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.4.tgz",+ "integrity": "sha512-NeqqYkrcGzFwi6CGRGNMOjWGGSYOpqwCjS9fvaUlX5s3zwOtn1qwg1s2iE2svBe4Q/YOG1q6875lcAoQK/F4VA==",+ "cpu": [+ "loong64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-mips64el": {+ "version": "0.25.4",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.4.tgz",+ "integrity": "sha512-IcvTlF9dtLrfL/M8WgNI/qJYBENP3ekgsHbYUIzEzq5XJzzVEV/fXY9WFPfEEXmu3ck2qJP8LG/p3Q8f7Zc2Xg==",+ "cpu": [+ "mips64el"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ppc64": {+ "version": "0.25.4",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.4.tgz",+ "integrity": "sha512-HOy0aLTJTVtoTeGZh4HSXaO6M95qu4k5lJcH4gxv56iaycfz1S8GO/5Jh6X4Y1YiI0h7cRyLi+HixMR+88swag==",+ "cpu": [+ "ppc64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-riscv64": {+ "version": "0.25.4",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.4.tgz",+ "integrity": "sha512-i8JUDAufpz9jOzo4yIShCTcXzS07vEgWzyX3NH2G7LEFVgrLEhjwL3ajFE4fZI3I4ZgiM7JH3GQ7ReObROvSUA==",+ "cpu": [+ "riscv64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-s390x": {+ "version": "0.25.4",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.4.tgz",+ "integrity": "sha512-jFnu+6UbLlzIjPQpWCNh5QtrcNfMLjgIavnwPQAfoGx4q17ocOU9MsQ2QVvFxwQoWpZT8DvTLooTvmOQXkO51g==",+ "cpu": [+ "s390x"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-x64": {+ "version": "0.25.4",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.4.tgz",+ "integrity": "sha512-6e0cvXwzOnVWJHq+mskP8DNSrKBr1bULBvnFLpc1KY+d+irZSgZ02TGse5FsafKS5jg2e4pbvK6TPXaF/A6+CA==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-arm64": {+ "version": "0.25.4",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.4.tgz",+ "integrity": "sha512-vUnkBYxZW4hL/ie91hSqaSNjulOnYXE1VSLusnvHg2u3jewJBz3YzB9+oCw8DABeVqZGg94t9tyZFoHma8gWZQ==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-x64": {+ "version": "0.25.4",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.4.tgz",+ "integrity": "sha512-XAg8pIQn5CzhOB8odIcAm42QsOfa98SBeKUdo4xa8OvX8LbMZqEtgeWE9P/Wxt7MlG2QqvjGths+nq48TrUiKw==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-arm64": {+ "version": "0.25.4",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.4.tgz",+ "integrity": "sha512-Ct2WcFEANlFDtp1nVAXSNBPDxyU+j7+tId//iHXU2f/lN5AmO4zLyhDcpR5Cz1r08mVxzt3Jpyt4PmXQ1O6+7A==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-x64": {+ "version": "0.25.4",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.4.tgz",+ "integrity": "sha512-xAGGhyOQ9Otm1Xu8NT1ifGLnA6M3sJxZ6ixylb+vIUVzvvd6GOALpwQrYrtlPouMqd/vSbgehz6HaVk4+7Afhw==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openharmony-arm64": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.0.tgz",+ "integrity": "sha512-FLGfyizszcef5C3YtoyQDACyg95+dndv79i2EekILBofh5wpCa1KuBqOWKrEHZg3zrL3t5ouE5jgr94vA+Wb2w==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/sunos-x64": {+ "version": "0.25.4",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.4.tgz",+ "integrity": "sha512-Mw+tzy4pp6wZEK0+Lwr76pWLjrtjmJyUB23tHKqEDP74R3q95luY/bXqXZeYl4NYlvwOqoRKlInQialgCKy67Q==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-arm64": {+ "version": "0.25.4",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.4.tgz",+ "integrity": "sha512-AVUP428VQTSddguz9dO9ngb+E5aScyg7nOeJDrF1HPYu555gmza3bDGMPhmVXL8svDSoqPCsCPjb265yG/kLKQ==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-ia32": {+ "version": "0.25.4",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.4.tgz",+ "integrity": "sha512-i1sW+1i+oWvQzSgfRcxxG2k4I9n3O9NRqy8U+uugaT2Dy7kLO9Y7wI72haOahxceMX8hZAzgGou1FhndRldxRg==",+ "cpu": [+ "ia32"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-x64": {+ "version": "0.25.4",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.4.tgz",+ "integrity": "sha512-nOT2vZNw6hJ+z43oP1SPea/G/6AbN6X+bGNhNuq8NtRHy4wsMhw765IKLNmnjek7GvjWBYQ8Q5VBoYTFg9y1UQ==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "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/@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.5",+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.5.tgz",+ "integrity": "sha512-4IlJx0X0qftVsN5E+/vGujTRIFtwuLbNsVUe7TO6zYPDR1O6nFwvwhIKEKSrl6dZchmYBITazxKoUYOjdtjlRg==",+ "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.1.1",+ "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.4",+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.4.tgz",+ "integrity": "sha512-nE7DEIchvtiFTwBw4Lfbu59PG+kCofhjsKaCWzxTpt4lfRjRMqG6uMBzKXuEcyXhOHoUp9riAm7/aWYGhXZ9cw==",+ "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.7.5",+ "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.7.5.tgz",+ "integrity": "sha512-1Ih4WTWyw0+lKyFMcBHGbb5U5FtuHJuujoyyr5zTaWS5EYMeT6Jb2AuDeftsCsEuchO+mM2ij5+q9crhydzLhQ==",+ "license": "MIT",+ "dependencies": {+ "@floating-ui/utils": "^0.2.11"+ }+ },+ "node_modules/@floating-ui/dom": {+ "version": "1.7.6",+ "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.7.6.tgz",+ "integrity": "sha512-9gZSAI5XM36880PPMm//9dfiEngYoC6Am2izES1FF406YFsjvyBMmeJ2g4SAju3xWwtuynNRFL2s9hgxpLI5SQ==",+ "license": "MIT",+ "dependencies": {+ "@floating-ui/core": "^1.7.5",+ "@floating-ui/utils": "^0.2.11"+ }+ },+ "node_modules/@floating-ui/react-dom": {+ "version": "2.1.8",+ "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.1.8.tgz",+ "integrity": "sha512-cC52bHwM/n/CxS87FH0yWdngEZrjdtLW/qVruo68qg+prK7ZQ4YGdut2GyDVpoGeAYe/h899rVeOVm6Oi40k2A==",+ "license": "MIT",+ "dependencies": {+ "@floating-ui/dom": "^1.7.6"+ },+ "peerDependencies": {+ "react": ">=16.8.0",+ "react-dom": ">=16.8.0"+ }+ },+ "node_modules/@floating-ui/utils": {+ "version": "0.2.11",+ "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.11.tgz",+ "integrity": "sha512-RiB/yIh78pcIxl6lLMG0CgBXAZ2Y0eVHqMPYugu+9U0AeT6YBeiJpf7lbdJNIugFP5SIjwNRgo4DhR1Qxi26Gg==",+ "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",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@img/sharp-darwin-arm64": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.34.5.tgz",+ "integrity": "sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==",+ "cpu": [+ "arm64"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-darwin-arm64": "1.2.4"+ }+ },+ "node_modules/@img/sharp-darwin-x64": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.34.5.tgz",+ "integrity": "sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==",+ "cpu": [+ "x64"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-darwin-x64": "1.2.4"+ }+ },+ "node_modules/@img/sharp-libvips-darwin-arm64": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.2.4.tgz",+ "integrity": "sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==",+ "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.2.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.2.4.tgz",+ "integrity": "sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==",+ "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.2.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.2.4.tgz",+ "integrity": "sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==",+ "cpu": [+ "arm"+ ],+ "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.2.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.2.4.tgz",+ "integrity": "sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==",+ "cpu": [+ "arm64"+ ],+ "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.2.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.2.4.tgz",+ "integrity": "sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==",+ "cpu": [+ "ppc64"+ ],+ "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.2.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.2.4.tgz",+ "integrity": "sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==",+ "cpu": [+ "riscv64"+ ],+ "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.2.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.2.4.tgz",+ "integrity": "sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==",+ "cpu": [+ "s390x"+ ],+ "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.2.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.2.4.tgz",+ "integrity": "sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==",+ "cpu": [+ "x64"+ ],+ "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.2.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.2.4.tgz",+ "integrity": "sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==",+ "cpu": [+ "arm64"+ ],+ "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.2.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.2.4.tgz",+ "integrity": "sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==",+ "cpu": [+ "x64"+ ],+ "license": "LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "linux"+ ],+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@img/sharp-linux-arm": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.34.5.tgz",+ "integrity": "sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==",+ "cpu": [+ "arm"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-linux-arm": "1.2.4"+ }+ },+ "node_modules/@img/sharp-linux-arm64": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.34.5.tgz",+ "integrity": "sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==",+ "cpu": [+ "arm64"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-linux-arm64": "1.2.4"+ }+ },+ "node_modules/@img/sharp-linux-ppc64": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.34.5.tgz",+ "integrity": "sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==",+ "cpu": [+ "ppc64"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-linux-ppc64": "1.2.4"+ }+ },+ "node_modules/@img/sharp-linux-riscv64": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.34.5.tgz",+ "integrity": "sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==",+ "cpu": [+ "riscv64"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-linux-riscv64": "1.2.4"+ }+ },+ "node_modules/@img/sharp-linux-s390x": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.34.5.tgz",+ "integrity": "sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==",+ "cpu": [+ "s390x"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-linux-s390x": "1.2.4"+ }+ },+ "node_modules/@img/sharp-linux-x64": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.34.5.tgz",+ "integrity": "sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==",+ "cpu": [+ "x64"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-linux-x64": "1.2.4"+ }+ },+ "node_modules/@img/sharp-linuxmusl-arm64": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.34.5.tgz",+ "integrity": "sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==",+ "cpu": [+ "arm64"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-linuxmusl-arm64": "1.2.4"+ }+ },+ "node_modules/@img/sharp-linuxmusl-x64": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.34.5.tgz",+ "integrity": "sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==",+ "cpu": [+ "x64"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-linuxmusl-x64": "1.2.4"+ }+ },+ "node_modules/@img/sharp-wasm32": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.34.5.tgz",+ "integrity": "sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==",+ "cpu": [+ "wasm32"+ ],+ "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT",+ "optional": true,+ "dependencies": {+ "@emnapi/runtime": "^1.7.0"+ },+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@img/sharp-win32-arm64": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.34.5.tgz",+ "integrity": "sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g==",+ "cpu": [+ "arm64"+ ],+ "license": "Apache-2.0 AND LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@img/sharp-win32-ia32": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.34.5.tgz",+ "integrity": "sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg==",+ "cpu": [+ "ia32"+ ],+ "license": "Apache-2.0 AND LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@img/sharp-win32-x64": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.34.5.tgz",+ "integrity": "sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==",+ "cpu": [+ "x64"+ ],+ "license": "Apache-2.0 AND LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@isaacs/cliui": {+ "version": "9.0.0",+ "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-9.0.0.tgz",+ "integrity": "sha512-AokJm4tuBHillT+FpMtxQ60n8ObyXBatq7jD2/JA9dxbDDokKQm8KMht5ibGzLVU9IJDIKK4TPKgMHEYMn3lMg==",+ "license": "BlueOak-1.0.0",+ "engines": {+ "node": ">=18"+ }+ },+ "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==",+ "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==",+ "license": "MIT",+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@jridgewell/source-map": {+ "version": "0.3.11",+ "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.11.tgz",+ "integrity": "sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA==",+ "license": "MIT",+ "dependencies": {+ "@jridgewell/gen-mapping": "^0.3.5",+ "@jridgewell/trace-mapping": "^0.3.25"+ }+ },+ "node_modules/@jridgewell/sourcemap-codec": {+ "version": "1.5.5",+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",+ "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",+ "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==",+ "license": "MIT",+ "dependencies": {+ "@jridgewell/resolve-uri": "^3.1.0",+ "@jridgewell/sourcemap-codec": "^1.4.14"+ }+ },+ "node_modules/@napi-rs/wasm-runtime": {+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.5.tgz",+ "integrity": "sha512-AWPoBRJ9tsnVhor4sjO7rkni+7p+2IAEFj6cx06UgP10jkQHqay/36uRV/bFkgrh18D9vb4cr8Q0Pthskgzy+Q==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "@tybys/wasm-util": "^0.10.2"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/Brooooooklyn"+ },+ "peerDependencies": {+ "@emnapi/core": "^1.7.1",+ "@emnapi/runtime": "^1.7.1"+ }+ },+ "node_modules/@next/env": {+ "version": "16.2.6",+ "resolved": "https://registry.npmjs.org/@next/env/-/env-16.2.6.tgz",+ "integrity": "sha512-gd8HoHN4ufj73WmR3JmVolrpJR47ILK6LouP5xElPglaVxir6e1a7VzvTvDWkOoPXT9rkkTzyCxBu4yeZfZwcw==",+ "license": "MIT"+ },+ "node_modules/@next/eslint-plugin-next": {+ "version": "16.2.6",+ "resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-16.2.6.tgz",+ "integrity": "sha512-Z8l6o4JWKUl755x4R+wogD86KPeU+Ckw4K+SYG4kHeOJtRenDeK+OSbGcqZpDtbwn9DsJVdir2UxmwXuinUbUw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fast-glob": "3.3.1"+ }+ },+ "node_modules/@next/swc-darwin-arm64": {+ "version": "16.2.6",+ "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.2.6.tgz",+ "integrity": "sha512-ZJGkkcNfYgrrMkqOdZ7zoLa1TOy0qpcMfk/z4Mh/FKUz40gVO+HNQWqmLxf67Z5WB64DRp0dhEbyHfel+6sJUg==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-darwin-x64": {+ "version": "16.2.6",+ "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.2.6.tgz",+ "integrity": "sha512-v/YLBHIY132Ced3puBJ7YJKw1lqsCrgcNo2aRJlCEyQrrCeRJlvGlnmxhPxNQI3KE3N1DN5r9TPNPvka3nq5RQ==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-linux-arm64-gnu": {+ "version": "16.2.6",+ "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.2.6.tgz",+ "integrity": "sha512-RPOvqlYBbcQjkz9VQQDZ2T2bARIjXZV1KFlt+V2Mr6SW/e4I9fcKsaA0hdyf2FHoTlsV2xnBd5Y912rP/1Ce6w==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-linux-arm64-musl": {+ "version": "16.2.6",+ "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.2.6.tgz",+ "integrity": "sha512-URUTu1+dMkxJsPFgm+OeEvq9wf5sujw0EvgYy80TDGHTSLTnIHeqb0Eu8A3sC95IRgjejQL+kC4mw+4yPxiAXA==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-linux-x64-gnu": {+ "version": "16.2.6",+ "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.2.6.tgz",+ "integrity": "sha512-DOj182mPV8G3UkrayLoREM5YEYI+Dk5wv7Ox9xl1fFibAELEsFD0lDPfHIeILlutMMfdyhlzYPELG3peuKaurw==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-linux-x64-musl": {+ "version": "16.2.6",+ "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.2.6.tgz",+ "integrity": "sha512-HKQ5SP/V/ub73UvF7n/zeJlxk2kLmtL7Wzrg4WfmkjmNos5onJ2tKu7yZOPdL18A6Svfn3max29ym+ry7NkK4g==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-win32-arm64-msvc": {+ "version": "16.2.6",+ "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.2.6.tgz",+ "integrity": "sha512-LZXpTlPyS5v7HhSmnvsLGP3iIYgYOBnc8r8ArlT55sGHV89bR2HlDdBjWQ+PY6SJMmk8TuVGFuxalnP3k/0Dwg==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-win32-x64-msvc": {+ "version": "16.2.6",+ "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.2.6.tgz",+ "integrity": "sha512-F0+4i0h9J6C4eE3EAPWsoCk7UW/dbzOjyzxY0qnDUOYFu6FFmdZ6l97/XdV3/Nz3VYyO7UWjyEJUXkGqcoXfMA==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@noble/ciphers": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/@noble/ciphers/-/ciphers-1.3.0.tgz",+ "integrity": "sha512-2I0gnIVPtfnMw9ee9h1dJG7tp81+8Ob3OJb3Mv37rx5L40/b0i7djjCVvGOVqc9AEIQyvyu1i6ypKdFw8R8gQw==",+ "license": "MIT",+ "engines": {+ "node": "^14.21.3 || >=16"+ },+ "funding": {+ "url": "https://paulmillr.com/funding/"+ }+ },+ "node_modules/@noble/curves": {+ "version": "1.9.7",+ "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.7.tgz",+ "integrity": "sha512-gbKGcRUYIjA3/zCCNaWDciTMFI0dCkvou3TL8Zmy5Nc7sJ47a0jtOeZoTaMxkuqRo9cRhjOdZJXegxYE5FN/xw==",+ "license": "MIT",+ "dependencies": {+ "@noble/hashes": "1.8.0"+ },+ "engines": {+ "node": "^14.21.3 || >=16"+ },+ "funding": {+ "url": "https://paulmillr.com/funding/"+ }+ },+ "node_modules/@noble/hashes": {+ "version": "1.8.0",+ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz",+ "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==",+ "license": "MIT",+ "engines": {+ "node": "^14.21.3 || >=16"+ },+ "funding": {+ "url": "https://paulmillr.com/funding/"+ }+ },+ "node_modules/@nodable/entities": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/@nodable/entities/-/entities-2.1.0.tgz",+ "integrity": "sha512-nyT7T3nbMyBI/lvr6L5TyWbFJAI9FTgVRakNoBqCD+PmID8DzFrrNdLLtHMwMszOtqZa8PAOV24ZqDnQrhQINA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/nodable"+ }+ ],+ "license": "MIT"+ },+ "node_modules/@node-minify/core": {+ "version": "8.0.6",+ "resolved": "https://registry.npmjs.org/@node-minify/core/-/core-8.0.6.tgz",+ "integrity": "sha512-/vxN46ieWDLU67CmgbArEvOb41zlYFOkOtr9QW9CnTrBLuTyGgkyNWC2y5+khvRw3Br58p2B5ZVSx/PxCTru6g==",+ "license": "MIT",+ "dependencies": {+ "@node-minify/utils": "8.0.6",+ "glob": "9.3.5",+ "mkdirp": "1.0.4"+ },+ "engines": {+ "node": ">=16.0.0"+ }+ },+ "node_modules/@node-minify/core/node_modules/brace-expansion": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.0.tgz",+ "integrity": "sha512-TN1kCZAgdgweJhWWpgKYrQaMNHcDULHkWwQIspdtjV4Y5aurRdZpjAqn6yX3FPqTA9ngHCc4hJxMAMgGfve85w==",+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0"+ }+ },+ "node_modules/@node-minify/core/node_modules/glob": {+ "version": "9.3.5",+ "resolved": "https://registry.npmjs.org/glob/-/glob-9.3.5.tgz",+ "integrity": "sha512-e1LleDykUz2Iu+MTYdkSsuWX8lvAjAcs0Xef0lNIu0S2wOAzuTxCJtcd9S3cijlwYF18EsU3rzb8jPVobxDh9Q==",+ "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]",+ "license": "ISC",+ "dependencies": {+ "fs.realpath": "^1.0.0",+ "minimatch": "^8.0.2",+ "minipass": "^4.2.4",+ "path-scurry": "^1.6.1"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/@node-minify/core/node_modules/lru-cache": {+ "version": "10.4.3",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz",+ "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==",+ "license": "ISC"+ },+ "node_modules/@node-minify/core/node_modules/minimatch": {+ "version": "8.0.7",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-8.0.7.tgz",+ "integrity": "sha512-V+1uQNdzybxa14e/p00HZnQNNcTjnRJjDxg2V8wtkjFctq4M7hXFws4oekyTP0Jebeq7QYtpFyOeBAjc88zvYg==",+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^2.0.1"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/@node-minify/core/node_modules/minipass": {+ "version": "4.2.8",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.2.8.tgz",+ "integrity": "sha512-fNzuVyifolSLFL4NzpF+wEF4qrgqaaKX0haXPQEdQ7NKAN+WecoKMHV09YcuL/DHxrUsYQOK3MiuDf7Ip2OXfQ==",+ "license": "ISC",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/@node-minify/core/node_modules/path-scurry": {+ "version": "1.11.1",+ "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz",+ "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==",+ "license": "BlueOak-1.0.0",+ "dependencies": {+ "lru-cache": "^10.2.0",+ "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"+ },+ "engines": {+ "node": ">=16 || 14 >=14.18"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/@node-minify/core/node_modules/path-scurry/node_modules/minipass": {+ "version": "7.1.3",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz",+ "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==",+ "license": "BlueOak-1.0.0",+ "engines": {+ "node": ">=16 || 14 >=14.17"+ }+ },+ "node_modules/@node-minify/terser": {+ "version": "8.0.6",+ "resolved": "https://registry.npmjs.org/@node-minify/terser/-/terser-8.0.6.tgz",+ "integrity": "sha512-grQ1ipham743ch2c3++C8Isk6toJnxJSyDiwUI/IWUCh4CZFD6aYVw6UAY40IpCnjrq5aXGwiv5OZJn6Pr0hvg==",+ "license": "MIT",+ "dependencies": {+ "@node-minify/utils": "8.0.6",+ "terser": "5.16.9"+ },+ "engines": {+ "node": ">=16.0.0"+ }+ },+ "node_modules/@node-minify/utils": {+ "version": "8.0.6",+ "resolved": "https://registry.npmjs.org/@node-minify/utils/-/utils-8.0.6.tgz",+ "integrity": "sha512-csY4qcR7jUwiZmkreNTJhcypQfts2aY2CK+a+rXgXUImZiZiySh0FvwHjRnlqWKvg+y6ae9lHFzDRjBTmqlTIQ==",+ "license": "MIT",+ "dependencies": {+ "gzip-size": "6.0.0"+ },+ "engines": {+ "node": ">=16.0.0"+ }+ },+ "node_modules/@nodelib/fs.scandir": {+ "version": "2.1.5",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",+ "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.stat": "2.0.5",+ "run-parallel": "^1.1.9"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@nodelib/fs.stat": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",+ "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@nodelib/fs.walk": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",+ "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.scandir": "2.1.5",+ "fastq": "^1.6.0"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@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/@opennextjs/aws": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/@opennextjs/aws/-/aws-4.0.2.tgz",+ "integrity": "sha512-nXQPT8GZDV+NWMJV9mD/Ywxyo+tCZfFvrR6jpEOYNcxK/AqiEDlJzPybGOrHUDWAYdR1b6tmh+MoR3VbqIao3w==",+ "license": "MIT",+ "dependencies": {+ "@ast-grep/napi": "^0.40.5",+ "@aws-sdk/client-cloudfront": "3.984.0",+ "@aws-sdk/client-dynamodb": "3.984.0",+ "@aws-sdk/client-lambda": "3.984.0",+ "@aws-sdk/client-s3": "3.984.0",+ "@aws-sdk/client-sqs": "3.984.0",+ "@node-minify/core": "^8.0.6",+ "@node-minify/terser": "^8.0.6",+ "@tsconfig/node18": "^1.0.3",+ "aws4fetch": "^1.0.20",+ "chalk": "^5.6.2",+ "cookie": "^1.0.2",+ "esbuild": "0.25.4",+ "express": "^5.1.0",+ "path-to-regexp": "^6.3.0",+ "urlpattern-polyfill": "^10.1.0",+ "yaml": "^2.8.1"+ },+ "bin": {+ "open-next": "dist/index.js"+ },+ "peerDependencies": {+ "next": ">=15.5.18 <16 || >=16.2.6"+ }+ },+ "node_modules/@opennextjs/cloudflare": {+ "version": "1.19.11",+ "resolved": "https://registry.npmjs.org/@opennextjs/cloudflare/-/cloudflare-1.19.11.tgz",+ "integrity": "sha512-spZ7YsZZW9q/OJStaZlJhuklYKei5e2tNQ7PMi3DDSJ7x7167m7EYYHQZfVN5gwJBDkMR2jUDW88oHjnGz4YYw==",+ "license": "MIT",+ "dependencies": {+ "@ast-grep/napi": "^0.40.5",+ "@dotenvx/dotenvx": "1.31.0",+ "@opennextjs/aws": "4.0.2",+ "ci-info": "^4.2.0",+ "cloudflare": "^4.4.1",+ "comment-json": "^4.5.1",+ "enquirer": "^2.4.1",+ "glob": "^12.0.0",+ "ts-tqdm": "^0.8.6",+ "yargs": "^18.0.0"+ },+ "bin": {+ "opennextjs-cloudflare": "dist/cli/index.js"+ },+ "peerDependencies": {+ "next": ">=15.5.18 <16 || >=16.2.6",+ "wrangler": "^4.86.0"+ }+ },+ "node_modules/@poppinss/colors": {+ "version": "4.1.6",+ "resolved": "https://registry.npmjs.org/@poppinss/colors/-/colors-4.1.6.tgz",+ "integrity": "sha512-H9xkIdFswbS8n1d6vmRd8+c10t2Qe+rZITbbDHHkQixH5+2x1FDGmi/0K+WgWiqQFKPSlIYB7jlH6Kpfn6Fleg==",+ "license": "MIT",+ "dependencies": {+ "kleur": "^4.1.5"+ }+ },+ "node_modules/@poppinss/dumper": {+ "version": "0.6.5",+ "resolved": "https://registry.npmjs.org/@poppinss/dumper/-/dumper-0.6.5.tgz",+ "integrity": "sha512-NBdYIb90J7LfOI32dOewKI1r7wnkiH6m920puQ3qHUeZkxNkQiFnXVWoE6YtFSv6QOiPPf7ys6i+HWWecDz7sw==",+ "license": "MIT",+ "dependencies": {+ "@poppinss/colors": "^4.1.5",+ "@sindresorhus/is": "^7.0.2",+ "supports-color": "^10.0.0"+ }+ },+ "node_modules/@poppinss/exception": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/@poppinss/exception/-/exception-1.2.3.tgz",+ "integrity": "sha512-dCED+QRChTVatE9ibtoaxc+WkdzOSjYTKi/+uacHWIsfodVfpsueo3+DKpgU5Px8qXjgmXkSvhXvSCz3fnP9lw==",+ "license": "MIT"+ },+ "node_modules/@radix-ui/number": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/number/-/number-1.1.1.tgz",+ "integrity": "sha512-MkKCwxlXTgz6CFoJx3pCwn07GKp36+aZyu/u2Ln2VrA5DcdyCZkASEDBTd8x5whTQQL5CiYf4prXKLcgQdv29g==",+ "license": "MIT"+ },+ "node_modules/@radix-ui/primitive": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.3.tgz",+ "integrity": "sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg==",+ "license": "MIT"+ },+ "node_modules/@radix-ui/react-arrow": {+ "version": "1.1.7",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-arrow/-/react-arrow-1.1.7.tgz",+ "integrity": "sha512-F+M1tLhO+mlQaOWspE8Wstg+z6PwxwRd8oQ8IXceWz92kfAmalTRf0EjrouQeo7QssEPfCn05B4Ihs1K9WQ/7w==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-primitive": "2.1.3"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-collection": {+ "version": "1.1.7",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.1.7.tgz",+ "integrity": "sha512-Fh9rGN0MoI4ZFUNyfFVNU4y9LUz93u9/0K+yLgA2bwRojxM8JU1DyvvMBabnZPBgMWREAJvU2jjVzq+LrFUglw==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-slot": "1.2.3"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz",+ "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-compose-refs": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.2.tgz",+ "integrity": "sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-context": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.2.tgz",+ "integrity": "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-dialog": {+ "version": "1.1.15",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.1.15.tgz",+ "integrity": "sha512-TCglVRtzlffRNxRMEyR36DGBLJpeusFcgMVD9PZEzAKnUs1lKCgX5u9BmC2Yg+LL9MgZDugFFs1Vl+Jp4t/PGw==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.3",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-dismissable-layer": "1.1.11",+ "@radix-ui/react-focus-guards": "1.1.3",+ "@radix-ui/react-focus-scope": "1.1.7",+ "@radix-ui/react-id": "1.1.1",+ "@radix-ui/react-portal": "1.1.9",+ "@radix-ui/react-presence": "1.1.5",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-slot": "1.2.3",+ "@radix-ui/react-use-controllable-state": "1.2.2",+ "aria-hidden": "^1.2.4",+ "react-remove-scroll": "^2.6.3"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz",+ "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-direction": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.1.1.tgz",+ "integrity": "sha512-1UEWRX6jnOA2y4H5WczZ44gOOjTEmlqv1uNW4GAJEO5+bauCBhv8snY65Iw5/VOS/ghKN9gr2KjnLKxrsvoMVw==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-dismissable-layer": {+ "version": "1.1.11",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.11.tgz",+ "integrity": "sha512-Nqcp+t5cTB8BinFkZgXiMJniQH0PsUt2k51FUhbdfeKvc4ACcG2uQniY/8+h1Yv6Kza4Q7lD7PQV0z0oicE0Mg==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.3",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-callback-ref": "1.1.1",+ "@radix-ui/react-use-escape-keydown": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-dropdown-menu": {+ "version": "2.1.16",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dropdown-menu/-/react-dropdown-menu-2.1.16.tgz",+ "integrity": "sha512-1PLGQEynI/3OX/ftV54COn+3Sud/Mn8vALg2rWnBLnRaGtJDduNW/22XjlGgPdpcIbiQxjKtb7BkcjP00nqfJw==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.3",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-id": "1.1.1",+ "@radix-ui/react-menu": "2.1.16",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-controllable-state": "1.2.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-focus-guards": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-guards/-/react-focus-guards-1.1.3.tgz",+ "integrity": "sha512-0rFg/Rj2Q62NCm62jZw0QX7a3sz6QCQU0LpZdNrJX8byRGaGVTqbrW9jAoIAHyMQqsNpeZ81YgSizOt5WXq0Pw==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-focus-scope": {+ "version": "1.1.7",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.1.7.tgz",+ "integrity": "sha512-t2ODlkXBQyn7jkl6TNaw/MtVEVvIGelJDCG41Okq/KwUsJBwQ4XVZsHAVUkK4mBv3ewiAS3PGuUWuY2BoK4ZUw==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-callback-ref": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-id": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.1.1.tgz",+ "integrity": "sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-label": {+ "version": "2.1.8",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-label/-/react-label-2.1.8.tgz",+ "integrity": "sha512-FmXs37I6hSBVDlO4y764TNz1rLgKwjJMQ0EGte6F3Cb3f4bIuHB/iLa/8I9VKkmOy+gNHq8rql3j686ACVV21A==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-primitive": "2.1.4"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-label/node_modules/@radix-ui/react-primitive": {+ "version": "2.1.4",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.4.tgz",+ "integrity": "sha512-9hQc4+GNVtJAIEPEqlYqW5RiYdrr8ea5XQ0ZOnD6fgru+83kqT15mq2OCcbe8KnjRZl5vF3ks69AKz3kh1jrhg==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-slot": "1.2.4"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-menu": {+ "version": "2.1.16",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-menu/-/react-menu-2.1.16.tgz",+ "integrity": "sha512-72F2T+PLlphrqLcAotYPp0uJMr5SjP5SL01wfEspJbru5Zs5vQaSHb4VB3ZMJPimgHHCHG7gMOeOB9H3Hdmtxg==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.3",+ "@radix-ui/react-collection": "1.1.7",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-direction": "1.1.1",+ "@radix-ui/react-dismissable-layer": "1.1.11",+ "@radix-ui/react-focus-guards": "1.1.3",+ "@radix-ui/react-focus-scope": "1.1.7",+ "@radix-ui/react-id": "1.1.1",+ "@radix-ui/react-popper": "1.2.8",+ "@radix-ui/react-portal": "1.1.9",+ "@radix-ui/react-presence": "1.1.5",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-roving-focus": "1.1.11",+ "@radix-ui/react-slot": "1.2.3",+ "@radix-ui/react-use-callback-ref": "1.1.1",+ "aria-hidden": "^1.2.4",+ "react-remove-scroll": "^2.6.3"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz",+ "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-popper": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-popper/-/react-popper-1.2.8.tgz",+ "integrity": "sha512-0NJQ4LFFUuWkE7Oxf0htBKS6zLkkjBH+hM1uk7Ng705ReR8m/uelduy1DBo0PyBXPKVnBA6YBlU94MBGXrSBCw==",+ "license": "MIT",+ "dependencies": {+ "@floating-ui/react-dom": "^2.0.0",+ "@radix-ui/react-arrow": "1.1.7",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-callback-ref": "1.1.1",+ "@radix-ui/react-use-layout-effect": "1.1.1",+ "@radix-ui/react-use-rect": "1.1.1",+ "@radix-ui/react-use-size": "1.1.1",+ "@radix-ui/rect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-portal": {+ "version": "1.1.9",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.1.9.tgz",+ "integrity": "sha512-bpIxvq03if6UNwXZ+HTK71JLh4APvnXntDc6XOX8UVq4XQOVl7lwok0AvIl+b8zgCw3fSaVTZMpAPPagXbKmHQ==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-presence": {+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.5.tgz",+ "integrity": "sha512-/jfEwNDdQVBCNvjkGit4h6pMOzq8bHkopq458dPt2lMjx+eBQUohZNG9A7DtO/O5ukSbxuaNGXMjHicgwy6rQQ==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-primitive": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz",+ "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-slot": "1.2.3"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz",+ "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-roving-focus": {+ "version": "1.1.11",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-roving-focus/-/react-roving-focus-1.1.11.tgz",+ "integrity": "sha512-7A6S9jSgm/S+7MdtNDSb+IU859vQqJ/QAtcYQcfFC6W8RS4IxIZDldLR0xqCFZ6DCyrQLjLPsxtTNch5jVA4lA==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.3",+ "@radix-ui/react-collection": "1.1.7",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-direction": "1.1.1",+ "@radix-ui/react-id": "1.1.1",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-callback-ref": "1.1.1",+ "@radix-ui/react-use-controllable-state": "1.2.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-select": {+ "version": "2.2.6",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-select/-/react-select-2.2.6.tgz",+ "integrity": "sha512-I30RydO+bnn2PQztvo25tswPH+wFBjehVGtmagkU78yMdwTwVf12wnAOF+AeP8S2N8xD+5UPbGhkUfPyvT+mwQ==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/number": "1.1.1",+ "@radix-ui/primitive": "1.1.3",+ "@radix-ui/react-collection": "1.1.7",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-direction": "1.1.1",+ "@radix-ui/react-dismissable-layer": "1.1.11",+ "@radix-ui/react-focus-guards": "1.1.3",+ "@radix-ui/react-focus-scope": "1.1.7",+ "@radix-ui/react-id": "1.1.1",+ "@radix-ui/react-popper": "1.2.8",+ "@radix-ui/react-portal": "1.1.9",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-slot": "1.2.3",+ "@radix-ui/react-use-callback-ref": "1.1.1",+ "@radix-ui/react-use-controllable-state": "1.2.2",+ "@radix-ui/react-use-layout-effect": "1.1.1",+ "@radix-ui/react-use-previous": "1.1.1",+ "@radix-ui/react-visually-hidden": "1.2.3",+ "aria-hidden": "^1.2.4",+ "react-remove-scroll": "^2.6.3"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-slot": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz",+ "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-separator": {+ "version": "1.1.8",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-separator/-/react-separator-1.1.8.tgz",+ "integrity": "sha512-sDvqVY4itsKwwSMEe0jtKgfTh+72Sy3gPmQpjqcQneqQ4PFmr/1I0YA+2/puilhggCe2gJcx5EBAYFkWkdpa5g==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-primitive": "2.1.4"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive": {+ "version": "2.1.4",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.4.tgz",+ "integrity": "sha512-9hQc4+GNVtJAIEPEqlYqW5RiYdrr8ea5XQ0ZOnD6fgru+83kqT15mq2OCcbe8KnjRZl5vF3ks69AKz3kh1jrhg==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-slot": "1.2.4"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-slot": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.4.tgz",+ "integrity": "sha512-Jl+bCv8HxKnlTLVrcDE8zTMJ09R9/ukw4qBs/oZClOfoQk/cOTbDn+NceXfV7j09YPVQUryJPHurafcSg6EVKA==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-tabs": {+ "version": "1.1.13",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-tabs/-/react-tabs-1.1.13.tgz",+ "integrity": "sha512-7xdcatg7/U+7+Udyoj2zodtI9H/IIopqo+YOIcZOq1nJwXWBZ9p8xiu5llXlekDbZkca79a/fozEYQXIA4sW6A==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.3",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-direction": "1.1.1",+ "@radix-ui/react-id": "1.1.1",+ "@radix-ui/react-presence": "1.1.5",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-roving-focus": "1.1.11",+ "@radix-ui/react-use-controllable-state": "1.2.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-toast": {+ "version": "1.2.15",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-toast/-/react-toast-1.2.15.tgz",+ "integrity": "sha512-3OSz3TacUWy4WtOXV38DggwxoqJK4+eDkNMl5Z/MJZaoUPaP4/9lf81xXMe1I2ReTAptverZUpbPY4wWwWyL5g==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.3",+ "@radix-ui/react-collection": "1.1.7",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-dismissable-layer": "1.1.11",+ "@radix-ui/react-portal": "1.1.9",+ "@radix-ui/react-presence": "1.1.5",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-callback-ref": "1.1.1",+ "@radix-ui/react-use-controllable-state": "1.2.2",+ "@radix-ui/react-use-layout-effect": "1.1.1",+ "@radix-ui/react-visually-hidden": "1.2.3"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-use-callback-ref": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.1.tgz",+ "integrity": "sha512-FkBMwD+qbGQeMu1cOHnuGB6x4yzPjho8ap5WtbEJ26umhgqVXbhekKUQO+hZEL1vU92a3wHwdp0HAcqAUF5iDg==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-use-controllable-state": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.2.2.tgz",+ "integrity": "sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-use-effect-event": "0.0.2",+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-use-effect-event": {+ "version": "0.0.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-effect-event/-/react-use-effect-event-0.0.2.tgz",+ "integrity": "sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-use-escape-keydown": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.1.1.tgz",+ "integrity": "sha512-Il0+boE7w/XebUHyBjroE+DbByORGR9KKmITzbR7MyQ4akpORYP/ZmbhAr0DG7RmmBqoOnZdy2QlvajJ2QA59g==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-use-callback-ref": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-use-layout-effect": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.1.tgz",+ "integrity": "sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-use-previous": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-previous/-/react-use-previous-1.1.1.tgz",+ "integrity": "sha512-2dHfToCj/pzca2Ck724OZ5L0EVrr3eHRNsG/b3xQJLA2hZpVCS99bLAX+hm1IHXDEnzU6by5z/5MIY794/a8NQ==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-use-rect": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-rect/-/react-use-rect-1.1.1.tgz",+ "integrity": "sha512-QTYuDesS0VtuHNNvMh+CjlKJ4LJickCMUAqjlE3+j8w+RlRpwyX3apEQKGFzbZGdo7XNG1tXa+bQqIE7HIXT2w==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/rect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-use-size": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-size/-/react-use-size-1.1.1.tgz",+ "integrity": "sha512-ewrXRDTAqAXlkl6t/fkXWNAhFX9I+CkKlw6zjEwk86RSPKwZr3xpBRso655aqYafwtnbpHLj6toFzmd6xdVptQ==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-visually-hidden": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-visually-hidden/-/react-visually-hidden-1.2.3.tgz",+ "integrity": "sha512-pzJq12tEaaIhqjbzpCuv/OypJY/BPavOofm+dbab+MHLajy277+1lLm6JFcGgF5eskJ6mquGirhXY2GD/8u8Ug==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-primitive": "2.1.3"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/rect": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/rect/-/rect-1.1.1.tgz",+ "integrity": "sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==",+ "license": "MIT"+ },+ "node_modules/@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/@sindresorhus/is": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-7.2.0.tgz",+ "integrity": "sha512-P1Cz1dWaFfR4IR+U13mqqiGsLFf1KbayybWwdd2vfctdV6hDpUkgCY0nKOLLTMSoRd/jJNjtbqzf13K8DCCXQw==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sindresorhus/is?sponsor=1"+ }+ },+ "node_modules/@smithy/config-resolver": {+ "version": "4.5.3",+ "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-4.5.3.tgz",+ "integrity": "sha512-TpS6Am5zSEtx3ow7VynThEL7UwRM06zZZcmFaP6Ij9hqKPfsFhTYCLcgU7gjFjw9QAI2kzwXrfS7InH8BivJTA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/core": {+ "version": "3.24.3",+ "resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.24.3.tgz",+ "integrity": "sha512-Ep/7tPamGY8mgESE3LyLKtxJyy6U52WWAqr/3wial47Sj4u3PiIF73AOGI27UyLy9duTkhZbgzodOfLV4TduZg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/crc32": "5.2.0",+ "@smithy/types": "^4.14.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/credential-provider-imds": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-4.3.3.tgz",+ "integrity": "sha512-I2Bti0DKFo2IJyN28ijCsx51BAumEYR4/1yZ1FXyBygy9MqbnMqCev4JPth/MbpRfBSRAX35hITSnAdJRo1u5w==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "@smithy/types": "^4.14.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/eventstream-serde-browser": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-browser/-/eventstream-serde-browser-4.3.3.tgz",+ "integrity": "sha512-LXg5yYJPYnVSrpa6LOZ+/wqpI2OlIccy7j5F16EFNYDbXWmnhry/PFRRPyM30H+hJeqfVgckFuvNGnAGCt56cA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/eventstream-serde-config-resolver": {+ "version": "4.4.3",+ "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-config-resolver/-/eventstream-serde-config-resolver-4.4.3.tgz",+ "integrity": "sha512-MdQxEX5SFNc3QmpiLXtcZXsWk4imCfGVN7Ikz9I/XvavypvHT4mqxwo5JHdr/LBKCfAv89+8193ZWlUwDp8YXQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/eventstream-serde-node": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-node/-/eventstream-serde-node-4.3.3.tgz",+ "integrity": "sha512-54RbRsw9eVaVnqYUXi3F6nMAPgUyKsBvAKBY2lf+81mIgM7N+yS9V5LYk7yUGbrM789b2e1qBuyDSjX1/Axxcw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/fetch-http-handler": {+ "version": "5.4.3",+ "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-5.4.3.tgz",+ "integrity": "sha512-F+DRf8IJazRJgYog2A/yJK7eYVc0rqTlRzO+5ZxjJd4WkZoKz0IJRncf7G6t1pdVT3kryJcwuTFhN1c5m6N47A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "@smithy/types": "^4.14.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/hash-blob-browser": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@smithy/hash-blob-browser/-/hash-blob-browser-4.3.3.tgz",+ "integrity": "sha512-TkGfDlYeWOGwYvAunHHHmKgvFtD7DFAl6gWxATI4pv4B6w0Wnx6RK5zCMoXTTqMVd+zPcWm7w8RPTgHytoCDJA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/hash-node": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-4.3.3.tgz",+ "integrity": "sha512-tSUA38sM7kzMoLhqQ2aCGTwLXovjurz3jjG+a0sxqD4qT/4FhQr/wxMdhCumT70giM+axC1pPjimAHLlEQCfzw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/hash-stream-node": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@smithy/hash-stream-node/-/hash-stream-node-4.3.3.tgz",+ "integrity": "sha512-ZyDAlpKKc7BKHUp+kDBiTwNhiHrOf3syQdvQadvnwWs0QJhYMHMg6QSarlhpzN6qr+KBFM/oF/xP/bvzR6KI9w==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/invalid-dependency": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-4.3.3.tgz",+ "integrity": "sha512-wUWowbCm7DGczl6bfLI6wGGtoxwN5Pon8DhF0Q8AA4NvgLwYfLo3h2DWI7sHr33lLcEsyTLQKeUeTHydqSfQ5Q==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/is-array-buffer": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz",+ "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@smithy/md5-js": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@smithy/md5-js/-/md5-js-4.3.3.tgz",+ "integrity": "sha512-pFw8gEMrHw9BbRwNm//UU4WgnVO7+dhfFRaSAkFPfwslWU2LXt0mM+oap3iFwGbdD8kuAWIeOAxqSiamOcM3Dw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/middleware-content-length": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-4.3.3.tgz",+ "integrity": "sha512-Up1XAYnj6oxFBypWpkhNpgX+yReQxkKAV/iLaeP0KVLb2oTkmA9X+UJuGBVvEA9uZIN06y0irDi7sBMuTZMVJg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/middleware-endpoint": {+ "version": "4.5.3",+ "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-4.5.3.tgz",+ "integrity": "sha512-p60HGFflWsJC6V9GAYeFgbfORn+9ILx8FqgMa/8PzA0rhIUxF57EKoOR4Irs6oe1oy8RLzhjhcGS8CBtPv/t+Q==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/middleware-retry": {+ "version": "4.6.3",+ "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-4.6.3.tgz",+ "integrity": "sha512-MnfYnJs3cBXK3ZBqbPzXRPHIp+QtgpkX5NogcUOWHPU5GbgTAQSIfPLi91lTcEbkFDcH2YbgjLPQjWeyQ689rA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/middleware-serde": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-4.3.3.tgz",+ "integrity": "sha512-RUVCZgn92izDAARs5OJSM2+KWSfTRvQWwN9t0MmiybT3pquRgDx9vD9t/YZjd/5lwcFbsNuPojJSddYQEZGeWw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/middleware-stack": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-4.3.3.tgz",+ "integrity": "sha512-+BPabWluqxo3EfMMvOgnAmPtWnCSzj+gf5mJ27wTZUbvS0hpdUIU1g80R01bEGKZx4JCi8P58jAXD9FUGMjhwA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/node-config-provider": {+ "version": "4.4.3",+ "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.4.3.tgz",+ "integrity": "sha512-vDtz5OuytrjP4o9GtAOz1JloN003p94utJIQeO0WAjorhpafFFjpbDOrP6btPoCN3UxaU/U84OIEt5dM7ZRRLA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/node-http-handler": {+ "version": "4.7.3",+ "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-4.7.3.tgz",+ "integrity": "sha512-/jPhevcTFPMVl6KNjbaI47iOg1zxC7IsnX4PQDGVZKMFceOXtB8IEYaB7a9VvkP/3oC60WzTeKocvSI7vLT0vA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "@smithy/types": "^4.14.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/protocol-http": {+ "version": "5.4.3",+ "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-5.4.3.tgz",+ "integrity": "sha512-P16TBD/d8ZcD9MHQ0ubQ9BbOYSd5HZKbHOLsyFWxKk2oBEoghbRFPfGOoqToZX1yrfLITXRylL16EyPP4IzLPg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/signature-v4": {+ "version": "5.4.3",+ "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-5.4.3.tgz",+ "integrity": "sha512-53+75QuPl6DL+ct6vVEB51FDO5oulXr20TPV46VvJZg76lIlXNWfxi8j+G2V/t0I2qxCBOa3vX/8bmjrpFVo9g==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "@smithy/types": "^4.14.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/smithy-client": {+ "version": "4.13.3",+ "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-4.13.3.tgz",+ "integrity": "sha512-Z8mQ+YryjP5krDadV6unnp5035L4S1brafXpTiRmjPweKSaQ6X9CYDYWvmEggXjDIa1oufX/2a/bdwu8EIz/lw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "@smithy/types": "^4.14.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/types": {+ "version": "4.14.2",+ "resolved": "https://registry.npmjs.org/@smithy/types/-/types-4.14.2.tgz",+ "integrity": "sha512-P+otAxbV4CqBybp7EkcJCrig63yE2E7PuNVOmilVMRcx/O+QDzGULTrKsq4DV13gSfak9ObPrWaHl/9bL5YcWw==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/url-parser": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-4.3.3.tgz",+ "integrity": "sha512-TsMTAOnjuMOv1zJBw8cfYGWhopyc3og8tZX/KuyCPjg7V3ji3f4YjFOVu843UjBmrfS/+X6kwFv5ZKg7sSm1bQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-base64": {+ "version": "4.4.3",+ "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.4.3.tgz",+ "integrity": "sha512-91lxjhFpAktA9yPBxniqVR/NSH9zyjMjLmoa+jbQHQFR9WiJA+n61T7HBrfh5APdEoAledJwGq8l4cS+ZJFUnQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-body-length-browser": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-4.3.3.tgz",+ "integrity": "sha512-/M6Ya1Fjq8hg3rYjiwwqTen6s1bAa3U3g/2eicBaBQfaoa4ymLUke/x4T8mwb9dSq/L8TQ4YgndS0MaB9ShgmA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-body-length-node": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-4.3.3.tgz",+ "integrity": "sha512-M+zdSrevWj0grtZx2RBULPUyjTq1aB+n+13Hrm9owiGpow6DqY/WqiSj6sHVQy/rKp0j7NzV3TNf2LrwDel8JQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-buffer-from": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz",+ "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/is-array-buffer": "^2.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@smithy/util-defaults-mode-browser": {+ "version": "4.4.3",+ "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-4.4.3.tgz",+ "integrity": "sha512-Q60hxKkMEkmBsOEzxlMWEymBWov0dtWGgoJhOUs6mE8k2FDPjK8NlsRdMkmO80n2pwzreHtrYcX5jiRP7ZkP3w==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-defaults-mode-node": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-4.3.3.tgz",+ "integrity": "sha512-RYj+8gr95WiiBqvVghoRvL12NS9ryvLyufp7FOs7EzKwGX0W5gOVlXdCrFkJScSf8gxdjQMRyIZ3Y82/MvXQ3Q==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-endpoints": {+ "version": "3.5.3",+ "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-3.5.3.tgz",+ "integrity": "sha512-2JqSmzQtKDKqBckLl/9NXTL1fY+zQBU5fNGMpud7AT65vql0tVFhb2UEZNZmLSHayLeD+X/Qzn84oXw5KS+KSQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-middleware": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-4.3.3.tgz",+ "integrity": "sha512-8NZwlQ+nyAIWn9YZxH14FC8ca0i6ZGW1aJyPjD+zMZz3k9jOhXXKhdCSRvjmcSYLW42uhbrxavXqMkrTKHyY3A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-retry": {+ "version": "4.4.3",+ "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-4.4.3.tgz",+ "integrity": "sha512-8RJXeU5lEhdNfXm4XAuHlf6VtNzd279Z2FJZSR7VaELYCR46ffgjJBSjc+3UAy7V1YqBOLV0G9gWhLB/nA44nA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-stream": {+ "version": "4.6.3",+ "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-4.6.3.tgz",+ "integrity": "sha512-DSpJpPg0rQwjZk9/CSlOTplD6xSUu+bz8eDJQkq/Fmy9JlSD4ZGhXG/qFl0aRHmouDbBF75tnZ00lPxiL/sgRQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-utf8": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-4.3.3.tgz",+ "integrity": "sha512-c1QpRBn3aMsoqE64dd4Imgjy8Pynfw+eR7GkjElquxUFSnezwYVaOFm8JcYa+Bo/5ssbEyPKcT3+4bmrWYh6eQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-waiter": {+ "version": "4.4.3",+ "resolved": "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-4.4.3.tgz",+ "integrity": "sha512-WSHSF865zDGFGtJdMmYPI2Blq/MbUrn5CB4bLDg4ARbQ9z7oA87ZZ/FSiwNZbQrU/EiVyl9lpINswALgI4lZXA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.24.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@speed-highlight/core": {+ "version": "1.2.15",+ "resolved": "https://registry.npmjs.org/@speed-highlight/core/-/core-1.2.15.tgz",+ "integrity": "sha512-BMq1K3DsElxDWawkX6eLg9+CKJrTVGCBAWVuHXVUV2u0s2711qiChLSId6ikYPfxhdYocLNt3wWwSvDiTvFabw==",+ "license": "CC0-1.0"+ },+ "node_modules/@swc/helpers": {+ "version": "0.5.15",+ "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.15.tgz",+ "integrity": "sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.8.0"+ }+ },+ "node_modules/@tailwindcss/node": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.0.tgz",+ "integrity": "sha512-aFb4gUhFOgdh9AXo4IzBEOzBkkAxm9VigwDJnMIYv3lcfXCJVesNfbEaBl4BNgVRyid92AmdviqwBUBRKSeY3g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/remapping": "^2.3.5",+ "enhanced-resolve": "^5.21.0",+ "jiti": "^2.6.1",+ "lightningcss": "1.32.0",+ "magic-string": "^0.30.21",+ "source-map-js": "^1.2.1",+ "tailwindcss": "4.3.0"+ }+ },+ "node_modules/@tailwindcss/oxide": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.0.tgz",+ "integrity": "sha512-F7HZGBeN9I0/AuuJS5PwcD8xayx5ri5GhjYUDBEVYUkexyA/giwbDNjRVrxSezE3T250OU2K/wp/ltWx3UOefg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 20"+ },+ "optionalDependencies": {+ "@tailwindcss/oxide-android-arm64": "4.3.0",+ "@tailwindcss/oxide-darwin-arm64": "4.3.0",+ "@tailwindcss/oxide-darwin-x64": "4.3.0",+ "@tailwindcss/oxide-freebsd-x64": "4.3.0",+ "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.0",+ "@tailwindcss/oxide-linux-arm64-gnu": "4.3.0",+ "@tailwindcss/oxide-linux-arm64-musl": "4.3.0",+ "@tailwindcss/oxide-linux-x64-gnu": "4.3.0",+ "@tailwindcss/oxide-linux-x64-musl": "4.3.0",+ "@tailwindcss/oxide-wasm32-wasi": "4.3.0",+ "@tailwindcss/oxide-win32-arm64-msvc": "4.3.0",+ "@tailwindcss/oxide-win32-x64-msvc": "4.3.0"+ }+ },+ "node_modules/@tailwindcss/oxide-android-arm64": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.0.tgz",+ "integrity": "sha512-TJPiq67tKlLuObP6RkwvVGDoxCMBVtDgKkLfa/uyj7/FyxvQwHS+UOnVrXXgbEsfUaMgiVvC4KbJnRr26ho4Ng==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-darwin-arm64": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.0.tgz",+ "integrity": "sha512-oMN/WZRb+SO37BmUElEgeEWuU8E/HXRkiODxJxLe1UTHVXLrdVSgfaJV7pSlhRGMSOiXLuxTIjfsF3wYvz8cgQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-darwin-x64": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.0.tgz",+ "integrity": "sha512-N6CUmu4a6bKVADfw77p+iw6Yd9Q3OBhe0veaDX+QazfuVYlQsHfDgxBrsjQ/IW+zywL8mTrNd0SdJT/zgtvMdA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-freebsd-x64": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.0.tgz",+ "integrity": "sha512-zDL5hBkQdH5C6MpqbK3gQAgP80tsMwSI26vjOzjJtNCMUo0lFgOItzHKBIupOZNQxt3ouPH7RPhvNhiTfCe5CQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.0.tgz",+ "integrity": "sha512-R06HdNi7A7OEoMsf6d4tjZ71RCWnZQPHj2mnotSFURjNLdBC+cIgXQ7l81CqeoiQftjf6OOblxXMInMgN2VzMA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-arm64-gnu": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.0.tgz",+ "integrity": "sha512-qTJHELX8jetjhRQHCLilkVLmybpzNQAtaI/gaoVoidn/ufbNDbAo8KlK2J+yPoc8wQxvDxCmh/5lr8nC1+lTbg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-arm64-musl": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.0.tgz",+ "integrity": "sha512-Z6sukiQsngnWO+l39X4pPbiWT81IC+PLKF+PHxIlyZbGNb9MODfYlXEVlFvej5BOZInWX01kVyzeLvHsXhfczQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-x64-gnu": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.0.tgz",+ "integrity": "sha512-DRNdQRpSGzRGfARVuVkxvM8Q12nh19l4BF/G7zGA1oe+9wcC6saFBHTISrpIcKzhiXtSrlSrluCfvMuledoCTQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-x64-musl": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.0.tgz",+ "integrity": "sha512-Z0IADbDo8bh6I7h2IQMx601AdXBLfFpEdUotft86evd/8ZPflZe9COPO8Q1vw+pfLWIUo9zN/JGZvwuAJqduqg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-wasm32-wasi": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.0.tgz",+ "integrity": "sha512-HNZGOUxEmElksYR7S6sC5jTeNGpobAsy9u7Gu0AskJ8/20FR9GqebUyB+HBcU/ax6BHuiuJi+Oda4B+YX6H1yA==",+ "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.10.0",+ "@emnapi/runtime": "^1.10.0",+ "@emnapi/wasi-threads": "^1.2.1",+ "@napi-rs/wasm-runtime": "^1.1.4",+ "@tybys/wasm-util": "^0.10.1",+ "tslib": "^2.8.1"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@tailwindcss/oxide-win32-arm64-msvc": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.0.tgz",+ "integrity": "sha512-Pe+RPVTi1T+qymuuRpcdvwSVZjnll/f7n8gBxMMh3xLTctMDKqpdfGimbMyioqtLhUYZxdJ9wGNhV7MKHvgZsQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-win32-x64-msvc": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.0.tgz",+ "integrity": "sha512-Mvrf2kXW/yeW/OTezZlCGOirXRcUuLIBx/5Y12BaPM7wJoryG6dfS/NJL8aBPqtTEx/Vm4T4vKzFUcKDT+TKUA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/postcss": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/@tailwindcss/postcss/-/postcss-4.3.0.tgz",+ "integrity": "sha512-Jm05Tjx+9yCLGv5qw1c+84Psds8MnyrEQYCB+FFk2lgGiUjlRqdxke4mVTuYrj2xnVZqKim2Apr5ySuQRYAw/w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@alloc/quick-lru": "^5.2.0",+ "@tailwindcss/node": "4.3.0",+ "@tailwindcss/oxide": "4.3.0",+ "postcss": "^8.5.10",+ "tailwindcss": "4.3.0"+ }+ },+ "node_modules/@tanstack/query-core": {+ "version": "5.100.11",+ "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.100.11.tgz",+ "integrity": "sha512-lmE0994apShXPj8CUxgx4ch5yUJhE9k/+tVwihBvPOyerACWdBocfFg24t8+0RhtlTd7tEgchDkhlCxNssvDxw==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/tannerlinsley"+ }+ },+ "node_modules/@tanstack/react-query": {+ "version": "5.100.11",+ "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.100.11.tgz",+ "integrity": "sha512-J0f9s5x3LE1450nNNfYx+e/n0DMa0uOBdFJUy5r0RvmsXd4nB/n0rbHtHI1vYXhikNFan+wf51p6Tmp4c8ucrg==",+ "license": "MIT",+ "dependencies": {+ "@tanstack/query-core": "5.100.11"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/tannerlinsley"+ },+ "peerDependencies": {+ "react": "^18 || ^19"+ }+ },+ "node_modules/@tsconfig/node18": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/@tsconfig/node18/-/node18-1.0.3.tgz",+ "integrity": "sha512-RbwvSJQsuN9TB04AQbGULYfOGE/RnSFk/FLQ5b0NmDf5Kx2q/lABZbHQPKCO1vZ6Fiwkplu+yb9pGdLy1iGseQ==",+ "license": "MIT"+ },+ "node_modules/@tybys/wasm-util": {+ "version": "0.10.2",+ "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.2.tgz",+ "integrity": "sha512-RoBvJ2X0wuKlWFIjrwffGw1IqZHKQqzIchKaadZZfnNpsAYp2mM0h36JtPCjNDAHGgYez/15uMBpfGwchhiMgg==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "tslib": "^2.4.0"+ }+ },+ "node_modules/@types/bcryptjs": {+ "version": "2.4.6",+ "resolved": "https://registry.npmjs.org/@types/bcryptjs/-/bcryptjs-2.4.6.tgz",+ "integrity": "sha512-9xlo6R2qDs5uixm0bcIqCeMCE6HiQsIyel9KQySStiyqNl2tnj2mP3DX1Nf56MD6KMenNNlBBsy3LJ7gUEQPXQ==",+ "dev": true,+ "license": "MIT"+ },+ "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==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/json-schema": {+ "version": "7.0.15",+ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",+ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/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/node": {+ "version": "20.19.41",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.41.tgz",+ "integrity": "sha512-ECymXOukMnOoVkC2bb1Vc/w/836DXncOg5m8Xj1RH7xSHZJWNYY6Zh7EH477vcnD5egKNNfy2RpNOmuChhFPgQ==",+ "license": "MIT",+ "dependencies": {+ "undici-types": "~6.21.0"+ }+ },+ "node_modules/@types/node-fetch": {+ "version": "2.6.13",+ "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.13.tgz",+ "integrity": "sha512-QGpRVpzSaUs30JBSGPjOg4Uveu384erbHBoT1zeONvyCfwQxIkUshLAOqN/k9EjGviPRmWTTe6aH2qySWKTVSw==",+ "license": "MIT",+ "dependencies": {+ "@types/node": "*",+ "form-data": "^4.0.4"+ }+ },+ "node_modules/@types/react": {+ "version": "19.2.15",+ "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.15.tgz",+ "integrity": "sha512-eRwcGNHve+E8qtEQSSRl6urh+rFop4v8gm6O8rGv25CodbvFdLjA1vVQ1KkiFE0w0UPOnb8tDiFKL5lp0rtY5Q==",+ "devOptional": true,+ "license": "MIT",+ "dependencies": {+ "csstype": "^3.2.2"+ }+ },+ "node_modules/@types/react-dom": {+ "version": "19.2.3",+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz",+ "integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==",+ "devOptional": true,+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "^19.2.0"+ }+ },+ "node_modules/@typescript-eslint/eslint-plugin": {+ "version": "8.59.4",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.59.4.tgz",+ "integrity": "sha512-PegsU+XfyJJNjd4+u/k6f9yTyp0lEXXiPopUNobZcIAUJFGICFLN+sP0Rb3JehVmiij1Ph0dFGYqODoRo/2+6A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@eslint-community/regexpp": "^4.12.2",+ "@typescript-eslint/scope-manager": "8.59.4",+ "@typescript-eslint/type-utils": "8.59.4",+ "@typescript-eslint/utils": "8.59.4",+ "@typescript-eslint/visitor-keys": "8.59.4",+ "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.59.4",+ "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.5",+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz",+ "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 4"+ }+ },+ "node_modules/@typescript-eslint/parser": {+ "version": "8.59.4",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.59.4.tgz",+ "integrity": "sha512-zORHqO/tuhxY1zWuTvMUqddRxpiFJ72xVfcNoWpqdLjs6lfPbuQBJuW4pk+49/uBMy7Ssr4bzgjiKmmDB1UbZQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/scope-manager": "8.59.4",+ "@typescript-eslint/types": "8.59.4",+ "@typescript-eslint/typescript-estree": "8.59.4",+ "@typescript-eslint/visitor-keys": "8.59.4",+ "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.59.4",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.59.4.tgz",+ "integrity": "sha512-Ly00Vu4oAacfDeHp2Zg85ioNG6l8HG+tN1D7J+xTHSxu9y0awYKJ2zH1rFBn8ZSfuGK+7FxK3Cgl3uAz0aZZLg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/tsconfig-utils": "^8.59.4",+ "@typescript-eslint/types": "^8.59.4",+ "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.59.4",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.59.4.tgz",+ "integrity": "sha512-mUeR/3H1WrTAddJrwut8OoPjfauaztMQmRwV5fQTUyNVJCLiUXXe4lGEyYIL2oFDpP7UtgbGJXCt72wT0z2S3Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/types": "8.59.4",+ "@typescript-eslint/visitor-keys": "8.59.4"+ },+ "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.59.4",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.59.4.tgz",+ "integrity": "sha512-DLCpnKgD4alVxTBSKulK+gU1KCqOgUXfDRDXh2mZgzokQKa/70ax93I2uVO3m/LLvIAtWZIFoiifudmIqAxpMA==",+ "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.59.4",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.59.4.tgz",+ "integrity": "sha512-uonTuPAAKr9XaBGqJ3LjYTh72zy5DyGesljO9gtmk/eFW0W1fRHjnwVYKB35Lm8d5Q5CluEW3gPHjTvZTmgrfA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/types": "8.59.4",+ "@typescript-eslint/typescript-estree": "8.59.4",+ "@typescript-eslint/utils": "8.59.4",+ "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.59.4",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.59.4.tgz",+ "integrity": "sha512-F1o7WJcCq+bc8dwcO/YsSEOudAH8RDtaOhM6wcAQhcUsFhnWQl81JKy48q1hoxAU0qrzM89+31GYh1515Zde3Q==",+ "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.59.4",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.59.4.tgz",+ "integrity": "sha512-F+RuOmcDXo4+TPdfd/TCLS3m2nw8gE9XXyZLrA3JBfaA5tz9TtdkyD3YJFmPxulyc2cKbEok/CvFE3MgSLWnag==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/project-service": "8.59.4",+ "@typescript-eslint/tsconfig-utils": "8.59.4",+ "@typescript-eslint/types": "8.59.4",+ "@typescript-eslint/visitor-keys": "8.59.4",+ "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.6",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.6.tgz",+ "integrity": "sha512-kLpxurY4Z4r9sgMsyG0Z9uzsBlgiU/EFKhj/h91/8yHu0edo7XuixOIH3VcJ8kkxs6/jPzoI6U9Vj3WqbMQ94g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^4.0.2"+ },+ "engines": {+ "node": "18 || 20 || >=22"+ }+ },+ "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": {+ "version": "10.2.5",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz",+ "integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==",+ "dev": true,+ "license": "BlueOak-1.0.0",+ "dependencies": {+ "brace-expansion": "^5.0.5"+ },+ "engines": {+ "node": "18 || 20 || >=22"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": {+ "version": "7.8.0",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.0.tgz",+ "integrity": "sha512-AcM7dV/5ul4EekoQ29Agm5vri8JNqRyj39o0qpX6vDF2GZrtutZl5RwgD1XnZjiTAfncsJhMI48QQH3sN87YNA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/@typescript-eslint/utils": {+ "version": "8.59.4",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.59.4.tgz",+ "integrity": "sha512-cYXeNAUsG4lJo5dbc1FcKm+JwIWrj1/UpTORsC6tGMjEZ81DYcvIr9/ueikhMa/Y/gDQYGp+YX9/xQrXje5BJw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@eslint-community/eslint-utils": "^4.9.1",+ "@typescript-eslint/scope-manager": "8.59.4",+ "@typescript-eslint/types": "8.59.4",+ "@typescript-eslint/typescript-estree": "8.59.4"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",+ "typescript": ">=4.8.4 <6.1.0"+ }+ },+ "node_modules/@typescript-eslint/visitor-keys": {+ "version": "8.59.4",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.59.4.tgz",+ "integrity": "sha512-U3gxVaDVnuZKhSspW/MzMxE1kq7zOdc072FcSNoqA1I9p8HyKbBFfEHoWckBAMgNMph4MamwS5iTVzFmrnt8TQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/types": "8.59.4",+ "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/@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,+ "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,+ "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,+ "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,+ "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,+ "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,+ "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,+ "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,+ "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,+ "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,+ "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/abort-controller": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz",+ "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==",+ "license": "MIT",+ "dependencies": {+ "event-target-shim": "^5.0.0"+ },+ "engines": {+ "node": ">=6.5"+ }+ },+ "node_modules/accepts": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz",+ "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==",+ "license": "MIT",+ "dependencies": {+ "mime-types": "^3.0.0",+ "negotiator": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/acorn": {+ "version": "8.16.0",+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz",+ "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==",+ "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/agentkeepalive": {+ "version": "4.6.0",+ "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.6.0.tgz",+ "integrity": "sha512-kja8j7PjmncONqaTsB8fQ+wE2mSU2DJ9D4XKoJ5PFWIdRMa6SLSN1ff4mOr4jCbfRSsxR4keIiySJU0N9T5hIQ==",+ "license": "MIT",+ "dependencies": {+ "humanize-ms": "^1.2.1"+ },+ "engines": {+ "node": ">= 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-colors": {+ "version": "4.1.3",+ "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz",+ "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/ansi-styles": {+ "version": "6.2.3",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",+ "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },+ "node_modules/argparse": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",+ "dev": true,+ "license": "Python-2.0"+ },+ "node_modules/aria-hidden": {+ "version": "1.2.6",+ "resolved": "https://registry.npmjs.org/aria-hidden/-/aria-hidden-1.2.6.tgz",+ "integrity": "sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==",+ "license": "MIT",+ "dependencies": {+ "tslib": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/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.1.9",+ "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.9.tgz",+ "integrity": "sha512-FmeCCAenzH0KH381SPT5FZmiA/TmpndpcaShhfgEN9eCVjnFBqq3l1xrI42y8+PPLI6hypzou4GXw00WHmPBLQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.4",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.24.0",+ "es-object-atoms": "^1.1.1",+ "get-intrinsic": "^1.3.0",+ "is-string": "^1.1.1",+ "math-intrinsics": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/array-timsort": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/array-timsort/-/array-timsort-1.0.3.tgz",+ "integrity": "sha512-/+3GRL7dDAGEfM6TseQk/U+mi18TU2Ms9I3UlLdUMhz2hbvGNTKdj9xniwXfUqgYhHxRx0+8UnKkvlNwVU+cWQ==",+ "license": "MIT"+ },+ "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/asynckit": {+ "version": "0.4.0",+ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",+ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",+ "license": "MIT"+ },+ "node_modules/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/aws4fetch": {+ "version": "1.0.20",+ "resolved": "https://registry.npmjs.org/aws4fetch/-/aws4fetch-1.0.20.tgz",+ "integrity": "sha512-/djoAN709iY65ETD6LKCtyyEI04XIBP5xVvfmNxsEP0uJB5tyaGBztSryRr4HqMStr9R06PisQE7m9zDTXKu6g==",+ "license": "MIT"+ },+ "node_modules/axe-core": {+ "version": "4.11.4",+ "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.11.4.tgz",+ "integrity": "sha512-KunSNx+TVpkAw/6ULfhnx+HWRecjqZGTOyquAoWHYLRSdK1tB5Ihce1ZW+UY3fj33bYAFWPu7W/GRSmmrCGuxA==",+ "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/balanced-match": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",+ "license": "MIT"+ },+ "node_modules/baseline-browser-mapping": {+ "version": "2.10.31",+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.31.tgz",+ "integrity": "sha512-MujYO3eP72uvmSE0i4wltsodRfIpZATP3jvzRNRGGxgzId7aVocVJJV3nf01qnzzKFGxQVC9bpWxl5cjxTr/7Q==",+ "license": "Apache-2.0",+ "bin": {+ "baseline-browser-mapping": "dist/cli.cjs"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/bcryptjs": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/bcryptjs/-/bcryptjs-3.0.3.tgz",+ "integrity": "sha512-GlF5wPWnSa/X5LKM1o0wz0suXIINz1iHRLvTS+sLyi7XPbe5ycmYI3DlZqVGZZtDgl4DmasFg7gOB3JYbphV5g==",+ "license": "BSD-3-Clause",+ "bin": {+ "bcrypt": "bin/bcrypt"+ }+ },+ "node_modules/blake3-wasm": {+ "version": "2.1.5",+ "resolved": "https://registry.npmjs.org/blake3-wasm/-/blake3-wasm-2.1.5.tgz",+ "integrity": "sha512-F1+K8EbfOZE49dtoPtmxUQrpXaBIl3ICvasLh+nJta0xkz+9kF/7uet9fLnwKqhDrmj6g+6K3Tw9yQPUg2ka5g==",+ "license": "MIT"+ },+ "node_modules/body-parser": {+ "version": "2.2.2",+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.2.tgz",+ "integrity": "sha512-oP5VkATKlNwcgvxi0vM0p/D3n2C3EReYVX+DNYs5TjZFn/oQt2j+4sVJtSMr18pdRr8wjTcBl6LoV+FUwzPmNA==",+ "license": "MIT",+ "dependencies": {+ "bytes": "^3.1.2",+ "content-type": "^1.0.5",+ "debug": "^4.4.3",+ "http-errors": "^2.0.0",+ "iconv-lite": "^0.7.0",+ "on-finished": "^2.4.1",+ "qs": "^6.14.1",+ "raw-body": "^3.0.1",+ "type-is": "^2.0.1"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/bowser": {+ "version": "2.14.1",+ "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.14.1.tgz",+ "integrity": "sha512-tzPjzCxygAKWFOJP011oxFHs57HzIhOEracIgAePE4pqB3LikALKnSzUyU4MGs9/iCEUuHlAJTjTc5M+u7YEGg==",+ "license": "MIT"+ },+ "node_modules/brace-expansion": {+ "version": "1.1.14",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.14.tgz",+ "integrity": "sha512-MWPGfDxnyzKU7rNOW9SP/c50vi3xrmrua/+6hfPbCS2ABNWfx24vPidzvC7krjU/RTo235sV776ymlsMtGKj8g==",+ "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.28.2",+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.2.tgz",+ "integrity": "sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==",+ "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.10.12",+ "caniuse-lite": "^1.0.30001782",+ "electron-to-chromium": "^1.5.328",+ "node-releases": "^2.0.36",+ "update-browserslist-db": "^1.2.3"+ },+ "bin": {+ "browserslist": "cli.js"+ },+ "engines": {+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"+ }+ },+ "node_modules/buffer-from": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",+ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",+ "license": "MIT"+ },+ "node_modules/bytes": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",+ "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/call-bind": {+ "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==",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/call-bound": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",+ "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.2",+ "get-intrinsic": "^1.3.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/callsites": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",+ "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/caniuse-lite": {+ "version": "1.0.30001793",+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001793.tgz",+ "integrity": "sha512-iwSsYWaCOoh26cV8NwNRViHlrfUvYsHDfRVcbtmw0Kg6PJIZZXwMkj1442FYLBGkeUf1juAsU3DTfxW579mrPA==",+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/browserslist"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "CC-BY-4.0"+ },+ "node_modules/chalk": {+ "version": "5.6.2",+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.6.2.tgz",+ "integrity": "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==",+ "license": "MIT",+ "engines": {+ "node": "^12.17.0 || ^14.13 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/chalk/chalk?sponsor=1"+ }+ },+ "node_modules/ci-info": {+ "version": "4.4.0",+ "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.4.0.tgz",+ "integrity": "sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/sibiraj-s"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/class-variance-authority": {+ "version": "0.7.1",+ "resolved": "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.7.1.tgz",+ "integrity": "sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==",+ "license": "Apache-2.0",+ "dependencies": {+ "clsx": "^2.1.1"+ },+ "funding": {+ "url": "https://polar.sh/cva"+ }+ },+ "node_modules/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/cliui": {+ "version": "9.0.1",+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-9.0.1.tgz",+ "integrity": "sha512-k7ndgKhwoQveBL+/1tqGJYNz097I7WOvwbmmU2AR5+magtbjPWQTS1C5vzGkBC8Ym8UWRzfKUzUUqFLypY4Q+w==",+ "license": "ISC",+ "dependencies": {+ "string-width": "^7.2.0",+ "strip-ansi": "^7.1.0",+ "wrap-ansi": "^9.0.0"+ },+ "engines": {+ "node": ">=20"+ }+ },+ "node_modules/cliui/node_modules/ansi-regex": {+ "version": "6.2.2",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",+ "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"+ }+ },+ "node_modules/cliui/node_modules/strip-ansi": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",+ "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^6.2.2"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"+ }+ },+ "node_modules/cloudflare": {+ "version": "4.5.0",+ "resolved": "https://registry.npmjs.org/cloudflare/-/cloudflare-4.5.0.tgz",+ "integrity": "sha512-fPcbPKx4zF45jBvQ0z7PCdgejVAPBBCZxwqk1k7krQNfpM07Cfj97/Q6wBzvYqlWXx/zt1S9+m8vnfCe06umbQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@types/node": "^18.11.18",+ "@types/node-fetch": "^2.6.4",+ "abort-controller": "^3.0.0",+ "agentkeepalive": "^4.2.1",+ "form-data-encoder": "1.7.2",+ "formdata-node": "^4.3.2",+ "node-fetch": "^2.6.7"+ }+ },+ "node_modules/cloudflare/node_modules/@types/node": {+ "version": "18.19.130",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.130.tgz",+ "integrity": "sha512-GRaXQx6jGfL8sKfaIDD6OupbIHBr9jv7Jnaml9tB7l4v068PAOXqfcujMMo5PhbIs6ggR1XODELqahT2R8v0fg==",+ "license": "MIT",+ "dependencies": {+ "undici-types": "~5.26.4"+ }+ },+ "node_modules/cloudflare/node_modules/undici-types": {+ "version": "5.26.5",+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",+ "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==",+ "license": "MIT"+ },+ "node_modules/clsx": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",+ "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/color-convert": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",+ "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/combined-stream": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",+ "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",+ "license": "MIT",+ "dependencies": {+ "delayed-stream": "~1.0.0"+ },+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/commander": {+ "version": "11.1.0",+ "resolved": "https://registry.npmjs.org/commander/-/commander-11.1.0.tgz",+ "integrity": "sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==",+ "license": "MIT",+ "engines": {+ "node": ">=16"+ }+ },+ "node_modules/comment-json": {+ "version": "4.6.2",+ "resolved": "https://registry.npmjs.org/comment-json/-/comment-json-4.6.2.tgz",+ "integrity": "sha512-R2rze/hDX30uul4NZoIZ76ImSJLFxn/1/ZxtKC1L77y2X1k+yYu1joKbAtMA2Fg3hZrTOiw0I5mwVMo0cf250w==",+ "license": "MIT",+ "dependencies": {+ "array-timsort": "^1.0.3",+ "esprima": "^4.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "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/content-disposition": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.1.0.tgz",+ "integrity": "sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/content-type": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",+ "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/convert-source-map": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/cookie": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz",+ "integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/cookie-signature": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz",+ "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==",+ "license": "MIT",+ "engines": {+ "node": ">=6.6.0"+ }+ },+ "node_modules/core-js-pure": {+ "version": "3.49.0",+ "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.49.0.tgz",+ "integrity": "sha512-XM4RFka59xATyJv/cS3O3Kml72hQXUeGRuuTmMYFxwzc9/7C8OYTaIR/Ji+Yt8DXzsFLNhat15cE/JP15HrCgw==",+ "hasInstallScript": true,+ "license": "MIT",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/core-js"+ }+ },+ "node_modules/cross-spawn": {+ "version": "7.0.6",+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",+ "license": "MIT",+ "dependencies": {+ "path-key": "^3.1.0",+ "shebang-command": "^2.0.0",+ "which": "^2.0.1"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/cross-spawn/node_modules/isexe": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",+ "license": "ISC"+ },+ "node_modules/cross-spawn/node_modules/which": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",+ "license": "ISC",+ "dependencies": {+ "isexe": "^2.0.0"+ },+ "bin": {+ "node-which": "bin/node-which"+ },+ "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==",+ "devOptional": true,+ "license": "MIT"+ },+ "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/dayjs": {+ "version": "1.11.20",+ "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.20.tgz",+ "integrity": "sha512-YbwwqR/uYpeoP4pu043q+LTDLFBLApUP6VxRihdfNTqu4ubqMlGDLd6ErXhEgsyvY0K6nCs7nggYumAN+9uEuQ==",+ "license": "MIT"+ },+ "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/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/delayed-stream": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",+ "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",+ "license": "MIT",+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/depd": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",+ "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/detect-libc": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",+ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",+ "license": "Apache-2.0",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/detect-node-es": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/detect-node-es/-/detect-node-es-1.1.0.tgz",+ "integrity": "sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==",+ "license": "MIT"+ },+ "node_modules/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/dotenv": {+ "version": "16.6.1",+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz",+ "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==",+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://dotenvx.com"+ }+ },+ "node_modules/drizzle-kit": {+ "version": "0.31.10",+ "resolved": "https://registry.npmjs.org/drizzle-kit/-/drizzle-kit-0.31.10.tgz",+ "integrity": "sha512-7OZcmQUrdGI+DUNNsKBn1aW8qSoKuTH7d0mYgSP8bAzdFzKoovxEFnoGQp2dVs82EOJeYycqRtciopszwUf8bw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@drizzle-team/brocli": "^0.10.2",+ "@esbuild-kit/esm-loader": "^2.5.5",+ "esbuild": "^0.25.4",+ "tsx": "^4.21.0"+ },+ "bin": {+ "drizzle-kit": "bin.cjs"+ }+ },+ "node_modules/drizzle-orm": {+ "version": "0.45.2",+ "resolved": "https://registry.npmjs.org/drizzle-orm/-/drizzle-orm-0.45.2.tgz",+ "integrity": "sha512-kY0BSaTNYWnoDMVoyY8uxmyHjpJW1geOmBMdSSicKo9CIIWkSxMIj2rkeSR51b8KAPB7m+qysjuHme5nKP+E5Q==",+ "license": "Apache-2.0",+ "peerDependencies": {+ "@aws-sdk/client-rds-data": ">=3",+ "@cloudflare/workers-types": ">=4",+ "@electric-sql/pglite": ">=0.2.0",+ "@libsql/client": ">=0.10.0",+ "@libsql/client-wasm": ">=0.10.0",+ "@neondatabase/serverless": ">=0.10.0",+ "@op-engineering/op-sqlite": ">=2",+ "@opentelemetry/api": "^1.4.1",+ "@planetscale/database": ">=1.13",+ "@prisma/client": "*",+ "@tidbcloud/serverless": "*",+ "@types/better-sqlite3": "*",+ "@types/pg": "*",+ "@types/sql.js": "*",+ "@upstash/redis": ">=1.34.7",+ "@vercel/postgres": ">=0.8.0",+ "@xata.io/client": "*",+ "better-sqlite3": ">=7",+ "bun-types": "*",+ "expo-sqlite": ">=14.0.0",+ "gel": ">=2",+ "knex": "*",+ "kysely": "*",+ "mysql2": ">=2",+ "pg": ">=8",+ "postgres": ">=3",+ "sql.js": ">=1",+ "sqlite3": ">=5"+ },+ "peerDependenciesMeta": {+ "@aws-sdk/client-rds-data": {+ "optional": true+ },+ "@cloudflare/workers-types": {+ "optional": true+ },+ "@electric-sql/pglite": {+ "optional": true+ },+ "@libsql/client": {+ "optional": true+ },+ "@libsql/client-wasm": {+ "optional": true+ },+ "@neondatabase/serverless": {+ "optional": true+ },+ "@op-engineering/op-sqlite": {+ "optional": true+ },+ "@opentelemetry/api": {+ "optional": true+ },+ "@planetscale/database": {+ "optional": true+ },+ "@prisma/client": {+ "optional": true+ },+ "@tidbcloud/serverless": {+ "optional": true+ },+ "@types/better-sqlite3": {+ "optional": true+ },+ "@types/pg": {+ "optional": true+ },+ "@types/sql.js": {+ "optional": true+ },+ "@upstash/redis": {+ "optional": true+ },+ "@vercel/postgres": {+ "optional": true+ },+ "@xata.io/client": {+ "optional": true+ },+ "better-sqlite3": {+ "optional": true+ },+ "bun-types": {+ "optional": true+ },+ "expo-sqlite": {+ "optional": true+ },+ "gel": {+ "optional": true+ },+ "knex": {+ "optional": true+ },+ "kysely": {+ "optional": true+ },+ "mysql2": {+ "optional": true+ },+ "pg": {+ "optional": true+ },+ "postgres": {+ "optional": true+ },+ "prisma": {+ "optional": true+ },+ "sql.js": {+ "optional": true+ },+ "sqlite3": {+ "optional": true+ }+ }+ },+ "node_modules/dunder-proto": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.1",+ "es-errors": "^1.3.0",+ "gopd": "^1.2.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/duplexer": {+ "version": "0.1.2",+ "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz",+ "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==",+ "license": "MIT"+ },+ "node_modules/eciesjs": {+ "version": "0.4.18",+ "resolved": "https://registry.npmjs.org/eciesjs/-/eciesjs-0.4.18.tgz",+ "integrity": "sha512-wG99Zcfcys9fZux7Cft8BAX/YrOJLJSZ3jyYPfhZHqN2E+Ffx+QXBDsv3gubEgPtV6dTzJMSQUwk1H98/t/0wQ==",+ "license": "MIT",+ "dependencies": {+ "@ecies/ciphers": "^0.2.5",+ "@noble/ciphers": "^1.3.0",+ "@noble/curves": "^1.9.7",+ "@noble/hashes": "^1.8.0"+ },+ "engines": {+ "bun": ">=1",+ "deno": ">=2",+ "node": ">=16"+ }+ },+ "node_modules/ee-first": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",+ "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",+ "license": "MIT"+ },+ "node_modules/electron-to-chromium": {+ "version": "1.5.360",+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.360.tgz",+ "integrity": "sha512-GkcBt6YYAw9SxFWn+xVar4cLVGlXVuswwtRLBozi2zp0GjXs4ZnOrqV4zbXzg35n7w81hCkyJNYicgXlVHAmBA==",+ "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/encodeurl": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",+ "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/enhanced-resolve": {+ "version": "5.21.5",+ "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.21.5.tgz",+ "integrity": "sha512-mLCNbrQli11K1ySUmuNt4ZUB3OpGIDq4q2vTBTf5cL2lpsRjI9QKqSD0ndjW8FyvcW/Jj46gMe9syyHAsvMa/A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "graceful-fs": "^4.2.4",+ "tapable": "^2.3.3"+ },+ "engines": {+ "node": ">=10.13.0"+ }+ },+ "node_modules/enquirer": {+ "version": "2.4.1",+ "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.4.1.tgz",+ "integrity": "sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==",+ "license": "MIT",+ "dependencies": {+ "ansi-colors": "^4.1.1",+ "strip-ansi": "^6.0.1"+ },+ "engines": {+ "node": ">=8.6"+ }+ },+ "node_modules/error-stack-parser-es": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/error-stack-parser-es/-/error-stack-parser-es-1.0.5.tgz",+ "integrity": "sha512-5qucVt2XcuGMcEGgWI7i+yZpmpByQ8J1lHhcL7PwqCwu9FPP3VUXzT4ltHe5i2z9dePwEHcDVOAfSnHsOlCXRA==",+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/antfu"+ }+ },+ "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-define-property": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-errors": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-iterator-helpers": {+ "version": "1.3.2",+ "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.3.2.tgz",+ "integrity": "sha512-HVLACW1TppGYjJ8H6/jqH/pqOtKRw6wMlrB23xfExmFWxFquAIWCmwoLsOyN96K4a5KbmOf5At9ZUO3GZbetAw==",+ "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.1",+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",+ "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-set-tostringtag": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",+ "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.6",+ "has-tostringtag": "^1.0.2",+ "hasown": "^2.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/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.0",+ "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.0.tgz",+ "integrity": "sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-callable": "^1.2.7",+ "is-date-object": "^1.0.5",+ "is-symbol": "^1.0.4"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/esbuild": {+ "version": "0.25.4",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.4.tgz",+ "integrity": "sha512-8pgjLUcUjcgDg+2Q4NYXnPbo/vncAY4UmyaCm0jZevERqCHZIaWwdJHkf8XQtu4AxSKCdvrUbT0XUr1IdZzI8Q==",+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=18"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.25.4",+ "@esbuild/android-arm": "0.25.4",+ "@esbuild/android-arm64": "0.25.4",+ "@esbuild/android-x64": "0.25.4",+ "@esbuild/darwin-arm64": "0.25.4",+ "@esbuild/darwin-x64": "0.25.4",+ "@esbuild/freebsd-arm64": "0.25.4",+ "@esbuild/freebsd-x64": "0.25.4",+ "@esbuild/linux-arm": "0.25.4",+ "@esbuild/linux-arm64": "0.25.4",+ "@esbuild/linux-ia32": "0.25.4",+ "@esbuild/linux-loong64": "0.25.4",+ "@esbuild/linux-mips64el": "0.25.4",+ "@esbuild/linux-ppc64": "0.25.4",+ "@esbuild/linux-riscv64": "0.25.4",+ "@esbuild/linux-s390x": "0.25.4",+ "@esbuild/linux-x64": "0.25.4",+ "@esbuild/netbsd-arm64": "0.25.4",+ "@esbuild/netbsd-x64": "0.25.4",+ "@esbuild/openbsd-arm64": "0.25.4",+ "@esbuild/openbsd-x64": "0.25.4",+ "@esbuild/sunos-x64": "0.25.4",+ "@esbuild/win32-arm64": "0.25.4",+ "@esbuild/win32-ia32": "0.25.4",+ "@esbuild/win32-x64": "0.25.4"+ }+ },+ "node_modules/escalade": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/escape-html": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",+ "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",+ "license": "MIT"+ },+ "node_modules/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.4",+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.4.tgz",+ "integrity": "sha512-XoMjdBOwe/esVgEvLmNsD3IRHkm7fbKIUGvrleloJXUZgDHig2IPWNniv+GwjyJXzuNqVjlr5+4yVUZjycJwfQ==",+ "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.5",+ "@eslint/js": "9.39.4",+ "@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.2.6",+ "resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-16.2.6.tgz",+ "integrity": "sha512-z2ELYSkyrrJ6cuunTU8vhsT/RpouPkjaSah06nVW6Rg2Hpg0Vs8s497/e5s8G8qtdp4ccsiovz5P1rv+5VSW2Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@next/eslint-plugin-next": "16.2.6",+ "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.12.1",+ "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.12.1.tgz",+ "integrity": "sha512-L8jSWTze7K2mTg0vos/RuLRS5soomksDPoJLXIslC7c8Wmut3bx7CPpJijDcBZtxQ5lrbUdM+s0OlNbz0DCDNw==",+ "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/eslint/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/eslint/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/eslint/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/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/esprima": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",+ "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",+ "license": "BSD-2-Clause",+ "bin": {+ "esparse": "bin/esparse.js",+ "esvalidate": "bin/esvalidate.js"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "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/esutils": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",+ "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/etag": {+ "version": "1.8.1",+ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",+ "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/event-target-shim": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz",+ "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/execa": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz",+ "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==",+ "license": "MIT",+ "dependencies": {+ "cross-spawn": "^7.0.3",+ "get-stream": "^6.0.0",+ "human-signals": "^2.1.0",+ "is-stream": "^2.0.0",+ "merge-stream": "^2.0.0",+ "npm-run-path": "^4.0.1",+ "onetime": "^5.1.2",+ "signal-exit": "^3.0.3",+ "strip-final-newline": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sindresorhus/execa?sponsor=1"+ }+ },+ "node_modules/express": {+ "version": "5.2.1",+ "resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz",+ "integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==",+ "license": "MIT",+ "dependencies": {+ "accepts": "^2.0.0",+ "body-parser": "^2.2.1",+ "content-disposition": "^1.0.0",+ "content-type": "^1.0.5",+ "cookie": "^0.7.1",+ "cookie-signature": "^1.2.1",+ "debug": "^4.4.0",+ "depd": "^2.0.0",+ "encodeurl": "^2.0.0",+ "escape-html": "^1.0.3",+ "etag": "^1.8.1",+ "finalhandler": "^2.1.0",+ "fresh": "^2.0.0",+ "http-errors": "^2.0.0",+ "merge-descriptors": "^2.0.0",+ "mime-types": "^3.0.0",+ "on-finished": "^2.4.1",+ "once": "^1.4.0",+ "parseurl": "^1.3.3",+ "proxy-addr": "^2.0.7",+ "qs": "^6.14.0",+ "range-parser": "^1.2.1",+ "router": "^2.2.0",+ "send": "^1.1.0",+ "serve-static": "^2.2.0",+ "statuses": "^2.0.1",+ "type-is": "^2.0.1",+ "vary": "^1.1.2"+ },+ "engines": {+ "node": ">= 18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/express/node_modules/cookie": {+ "version": "0.7.2",+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz",+ "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/fast-deep-equal": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/fast-glob": {+ "version": "3.3.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/fast-xml-builder": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/fast-xml-builder/-/fast-xml-builder-1.2.0.tgz",+ "integrity": "sha512-00aAWieqff+ZJhsXA4g1g7M8k+7AYoMUUHF+/zFb5U6Uv/P0Vl4QZo84/IcufzYalLuEj9928bXN9PbbFzMF0Q==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/NaturalIntelligence"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "path-expression-matcher": "^1.5.0",+ "xml-naming": "^0.1.0"+ }+ },+ "node_modules/fast-xml-parser": {+ "version": "5.7.3",+ "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.7.3.tgz",+ "integrity": "sha512-C0AaNuC+mscy6vrAQKAc/rMq+zAPHodfHGZu4sGVehvAQt/JLG1O5zEcYcXSY5zSqr4YVgxsB+pHXTq0i7eDlg==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/NaturalIntelligence"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "@nodable/entities": "^2.1.0",+ "fast-xml-builder": "^1.1.7",+ "path-expression-matcher": "^1.5.0",+ "strnum": "^2.2.3"+ },+ "bin": {+ "fxparser": "src/cli/cli.js"+ }+ },+ "node_modules/fastq": {+ "version": "1.20.1",+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz",+ "integrity": "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "reusify": "^1.0.4"+ }+ },+ "node_modules/fdir": {+ "version": "6.5.0",+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",+ "license": "MIT",+ "engines": {+ "node": ">=12.0.0"+ },+ "peerDependencies": {+ "picomatch": "^3 || ^4"+ },+ "peerDependenciesMeta": {+ "picomatch": {+ "optional": true+ }+ }+ },+ "node_modules/file-entry-cache": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz",+ "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==",+ "dev": true,+ "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/finalhandler": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz",+ "integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==",+ "license": "MIT",+ "dependencies": {+ "debug": "^4.4.0",+ "encodeurl": "^2.0.0",+ "escape-html": "^1.0.3",+ "on-finished": "^2.4.1",+ "parseurl": "^1.3.3",+ "statuses": "^2.0.1"+ },+ "engines": {+ "node": ">= 18.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/find-up": {+ "version": "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.2",+ "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.2.tgz",+ "integrity": "sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==",+ "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/foreground-child": {+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz",+ "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==",+ "license": "ISC",+ "dependencies": {+ "cross-spawn": "^7.0.6",+ "signal-exit": "^4.0.1"+ },+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/foreground-child/node_modules/signal-exit": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",+ "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",+ "license": "ISC",+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/form-data": {+ "version": "4.0.5",+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz",+ "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==",+ "license": "MIT",+ "dependencies": {+ "asynckit": "^0.4.0",+ "combined-stream": "^1.0.8",+ "es-set-tostringtag": "^2.1.0",+ "hasown": "^2.0.2",+ "mime-types": "^2.1.12"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/form-data-encoder": {+ "version": "1.7.2",+ "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-1.7.2.tgz",+ "integrity": "sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A==",+ "license": "MIT"+ },+ "node_modules/form-data/node_modules/mime-db": {+ "version": "1.52.0",+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/form-data/node_modules/mime-types": {+ "version": "2.1.35",+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",+ "license": "MIT",+ "dependencies": {+ "mime-db": "1.52.0"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/formdata-node": {+ "version": "4.4.1",+ "resolved": "https://registry.npmjs.org/formdata-node/-/formdata-node-4.4.1.tgz",+ "integrity": "sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ==",+ "license": "MIT",+ "dependencies": {+ "node-domexception": "1.0.0",+ "web-streams-polyfill": "4.0.0-beta.3"+ },+ "engines": {+ "node": ">= 12.20"+ }+ },+ "node_modules/forwarded": {+ "version": "0.2.0",+ "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",+ "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/fresh": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz",+ "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/fs.realpath": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",+ "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",+ "license": "ISC"+ },+ "node_modules/fsevents": {+ "version": "2.3.3",+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",+ "hasInstallScript": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"+ }+ },+ "node_modules/function-bind": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/function.prototype.name": {+ "version": "1.1.8",+ "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.8.tgz",+ "integrity": "sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.3",+ "define-properties": "^1.2.1",+ "functions-have-names": "^1.2.3",+ "hasown": "^2.0.2",+ "is-callable": "^1.2.7"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/functions-have-names": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz",+ "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==",+ "dev": true,+ "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-caller-file": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",+ "license": "ISC",+ "engines": {+ "node": "6.* || 8.* || >= 10.*"+ }+ },+ "node_modules/get-east-asian-width": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.6.0.tgz",+ "integrity": "sha512-QRbvDIbx6YklUe6RxeTeleMR0yv3cYH6PsPZHcnVn7xv7zO1BHN8r0XETu8n6Ye3Q+ahtSarc3WgtNWmehIBfA==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/get-intrinsic": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.2",+ "es-define-property": "^1.0.1",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.1.1",+ "function-bind": "^1.1.2",+ "get-proto": "^1.0.1",+ "gopd": "^1.2.0",+ "has-symbols": "^1.1.0",+ "hasown": "^2.0.2",+ "math-intrinsics": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/get-nonce": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/get-nonce/-/get-nonce-1.0.1.tgz",+ "integrity": "sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/get-proto": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",+ "license": "MIT",+ "dependencies": {+ "dunder-proto": "^1.0.1",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/get-stream": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",+ "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==",+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "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.0",+ "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.14.0.tgz",+ "integrity": "sha512-yTb+8DXzDREzgvYmh6s9vHsSVCHeC0G3PI5bEXNBHtmshPnO+S5O7qgLEOn0I5QvMy6kpZN8K1NKGyilLb93wA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "resolve-pkg-maps": "^1.0.0"+ },+ "funding": {+ "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1"+ }+ },+ "node_modules/glob": {+ "version": "12.0.0",+ "resolved": "https://registry.npmjs.org/glob/-/glob-12.0.0.tgz",+ "integrity": "sha512-5Qcll1z7IKgHr5g485ePDdHcNQY0k2dtv/bjYy0iuyGxQw2qSOiiXUXJ+AYQpg3HNoUMHqAruX478Jeev7UULw==",+ "license": "BlueOak-1.0.0",+ "dependencies": {+ "foreground-child": "^3.3.1",+ "jackspeak": "^4.1.1",+ "minimatch": "^10.1.1",+ "minipass": "^7.1.2",+ "package-json-from-dist": "^1.0.0",+ "path-scurry": "^2.0.0"+ },+ "bin": {+ "glob": "dist/esm/bin.mjs"+ },+ "engines": {+ "node": "20 || >=22"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "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/glob/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==",+ "license": "MIT",+ "engines": {+ "node": "18 || 20 || >=22"+ }+ },+ "node_modules/glob/node_modules/brace-expansion": {+ "version": "5.0.6",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.6.tgz",+ "integrity": "sha512-kLpxurY4Z4r9sgMsyG0Z9uzsBlgiU/EFKhj/h91/8yHu0edo7XuixOIH3VcJ8kkxs6/jPzoI6U9Vj3WqbMQ94g==",+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^4.0.2"+ },+ "engines": {+ "node": "18 || 20 || >=22"+ }+ },+ "node_modules/glob/node_modules/minimatch": {+ "version": "10.2.5",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz",+ "integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==",+ "license": "BlueOak-1.0.0",+ "dependencies": {+ "brace-expansion": "^5.0.5"+ },+ "engines": {+ "node": "18 || 20 || >=22"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "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==",+ "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/gzip-size": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz",+ "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==",+ "license": "MIT",+ "dependencies": {+ "duplexer": "^0.1.2"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "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==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/has-tostringtag": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",+ "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",+ "license": "MIT",+ "dependencies": {+ "has-symbols": "^1.0.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/hasown": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.3.tgz",+ "integrity": "sha512-ej4AhfhfL2Q2zpMmLo7U1Uv9+PyhIZpgQLGT1F9miIGmiCJIoCgSmczFdrc97mWT4kVY72KA+WnnhJ5pghSvSg==",+ "license": "MIT",+ "dependencies": {+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "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/http-errors": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",+ "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",+ "license": "MIT",+ "dependencies": {+ "depd": "~2.0.0",+ "inherits": "~2.0.4",+ "setprototypeof": "~1.2.0",+ "statuses": "~2.0.2",+ "toidentifier": "~1.0.1"+ },+ "engines": {+ "node": ">= 0.8"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/human-signals": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz",+ "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==",+ "license": "Apache-2.0",+ "engines": {+ "node": ">=10.17.0"+ }+ },+ "node_modules/humanize-ms": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz",+ "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==",+ "license": "MIT",+ "dependencies": {+ "ms": "^2.0.0"+ }+ },+ "node_modules/iconv-lite": {+ "version": "0.7.2",+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.2.tgz",+ "integrity": "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==",+ "license": "MIT",+ "dependencies": {+ "safer-buffer": ">= 2.1.2 < 3.0.0"+ },+ "engines": {+ "node": ">=0.10.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/ignore": {+ "version": "5.3.2",+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",+ "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",+ "license": "MIT",+ "engines": {+ "node": ">= 4"+ }+ },+ "node_modules/import-fresh": {+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",+ "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "parent-module": "^1.0.0",+ "resolve-from": "^4.0.0"+ },+ "engines": {+ "node": ">=6"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/imurmurhash": {+ "version": "0.1.4",+ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",+ "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.8.19"+ }+ },+ "node_modules/inherits": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",+ "license": "ISC"+ },+ "node_modules/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/ipaddr.js": {+ "version": "1.9.1",+ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",+ "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.10"+ }+ },+ "node_modules/is-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.0",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.0.tgz",+ "integrity": "sha512-AcM7dV/5ul4EekoQ29Agm5vri8JNqRyj39o0qpX6vDF2GZrtutZl5RwgD1XnZjiTAfncsJhMI48QQH3sN87YNA==",+ "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.16.2",+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.2.tgz",+ "integrity": "sha512-evOr8xfXKxE6qSR0hSXL2r3sd7ALj8+7jQEUvPYcm5sgZFdJ+AYzT6yNmJenvIYQBgIGwfwz08sL8zoL7yq2BA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "hasown": "^2.0.3"+ },+ "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-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-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-promise": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz",+ "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==",+ "license": "MIT"+ },+ "node_modules/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-stream": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",+ "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "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": "3.1.5",+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.5.tgz",+ "integrity": "sha512-6B3tLtFqtQS4ekarvLVMZ+X+VlvQekbe4taUkf/rhVO3d/h0M2rfARm/pXLcPEsjjMsFgrFgSrhQIxcSVrBz8w==",+ "license": "BlueOak-1.0.0",+ "engines": {+ "node": ">=18"+ }+ },+ "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/jackspeak": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.2.3.tgz",+ "integrity": "sha512-ykkVRwrYvFm1nb2AJfKKYPr0emF6IiXDYUaFx4Zn9ZuIH7MrzEZ3sD5RlqGXNRpHtvUHJyOnCEFxOlNDtGo7wg==",+ "license": "BlueOak-1.0.0",+ "dependencies": {+ "@isaacs/cliui": "^9.0.0"+ },+ "engines": {+ "node": "20 || >=22"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "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-base64": {+ "version": "3.7.8",+ "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-3.7.8.tgz",+ "integrity": "sha512-hNngCeKxIUQiEUN3GPJOkz4wF/YvdUdbNL9hsBcMQTkKzboD7T/q3OYOuuPZLUE6dBxSGpwhk5mwuDud7JVAow==",+ "license": "BSD-3-Clause"+ },+ "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.1.1",+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz",+ "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==",+ "dev": true,+ "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/kleur": {+ "version": "4.1.5",+ "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz",+ "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "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,+ "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,+ "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,+ "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,+ "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/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/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/lucide-react": {+ "version": "1.16.0",+ "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-1.16.0.tgz",+ "integrity": "sha512-dYwyPzb4MEKpGUmNYk3WKWPnMrHs3FKM+q94kAnJrcDIqqn1hq2xY8scaS2ovsOCM5D51ey2gaRG3PBb1vgoYQ==",+ "license": "ISC",+ "peerDependencies": {+ "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ }+ },+ "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/math-intrinsics": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/media-typer": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz",+ "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/merge-descriptors": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz",+ "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/merge-stream": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",+ "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",+ "license": "MIT"+ },+ "node_modules/merge2": {+ "version": "1.4.1",+ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",+ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/micromatch": {+ "version": "4.0.8",+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",+ "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "braces": "^3.0.3",+ "picomatch": "^2.3.1"+ },+ "engines": {+ "node": ">=8.6"+ }+ },+ "node_modules/micromatch/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/mime-db": {+ "version": "1.54.0",+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz",+ "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/mime-types": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz",+ "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==",+ "license": "MIT",+ "dependencies": {+ "mime-db": "^1.54.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/mimetext": {+ "version": "3.0.28",+ "resolved": "https://registry.npmjs.org/mimetext/-/mimetext-3.0.28.tgz",+ "integrity": "sha512-eQXpbNrtxLCjUtiVbR/qR09dbPgZ2o+KR1uA7QKqGhbn8QV7HIL16mXXsobBL4/8TqoYh1us31kfz+dNfCev9g==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.26.0",+ "@babel/runtime-corejs3": "^7.26.0",+ "js-base64": "^3.7.7",+ "mime-types": "^2.1.35"+ },+ "funding": {+ "type": "patreon",+ "url": "https://patreon.com/muratgozel"+ }+ },+ "node_modules/mimetext/node_modules/mime-db": {+ "version": "1.52.0",+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/mimetext/node_modules/mime-types": {+ "version": "2.1.35",+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",+ "license": "MIT",+ "dependencies": {+ "mime-db": "1.52.0"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/mimic-fn": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",+ "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/miniflare": {+ "version": "4.20260603.0",+ "resolved": "https://registry.npmjs.org/miniflare/-/miniflare-4.20260603.0.tgz",+ "integrity": "sha512-+kMQYB82gC8MPOuojHur3icQsUeZUEJ+Sphuo5rVC3Ri9txBLAW/mH33b9OVrpmkogQeaaqPS4tPtugJZhk5Kw==",+ "license": "MIT",+ "dependencies": {+ "@cspotcode/source-map-support": "0.8.1",+ "sharp": "0.34.5",+ "undici": "7.24.8",+ "workerd": "1.20260603.1",+ "ws": "8.20.1",+ "youch": "4.1.0-beta.10"+ },+ "bin": {+ "miniflare": "bootstrap.js"+ },+ "engines": {+ "node": ">=22.0.0"+ }+ },+ "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/minipass": {+ "version": "7.1.3",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz",+ "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==",+ "license": "BlueOak-1.0.0",+ "engines": {+ "node": ">=16 || 14 >=14.17"+ }+ },+ "node_modules/mkdirp": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",+ "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",+ "license": "MIT",+ "bin": {+ "mkdirp": "bin/cmd.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/mnemonist": {+ "version": "0.38.3",+ "resolved": "https://registry.npmjs.org/mnemonist/-/mnemonist-0.38.3.tgz",+ "integrity": "sha512-2K9QYubXx/NAjv4VLq1d1Ly8pWNC5L3BrixtdkyTegXWJIqY+zLNDhhX/A+ZwWt70tB1S8H4BE8FLYEFyNoOBw==",+ "license": "MIT",+ "dependencies": {+ "obliterator": "^1.6.1"+ }+ },+ "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": "5.1.11",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-5.1.11.tgz",+ "integrity": "sha512-v+KEsUv2ps74PaSKv0gHTxTCgMXOIfBEbaqa6w6ISIGC7ZsvHN4N9oJ8d4cmf0n5oTzQz2SLmThbQWhjd/8eKg==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "bin": {+ "nanoid": "bin/nanoid.js"+ },+ "engines": {+ "node": "^18 || >=20"+ }+ },+ "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/negotiator": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz",+ "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/next": {+ "version": "16.2.6",+ "resolved": "https://registry.npmjs.org/next/-/next-16.2.6.tgz",+ "integrity": "sha512-qOVgKJg1+At15NpeUP+eJgCHvTCgXsogweq87Ri/Ix7PkqQHg4sdaXmSFqKlgaIXE4kW0g25LE68W87UANlHtw==",+ "license": "MIT",+ "dependencies": {+ "@next/env": "16.2.6",+ "@swc/helpers": "0.5.15",+ "baseline-browser-mapping": "^2.9.19",+ "caniuse-lite": "^1.0.30001579",+ "postcss": "8.4.31",+ "styled-jsx": "5.1.6"+ },+ "bin": {+ "next": "dist/bin/next"+ },+ "engines": {+ "node": ">=20.9.0"+ },+ "optionalDependencies": {+ "@next/swc-darwin-arm64": "16.2.6",+ "@next/swc-darwin-x64": "16.2.6",+ "@next/swc-linux-arm64-gnu": "16.2.6",+ "@next/swc-linux-arm64-musl": "16.2.6",+ "@next/swc-linux-x64-gnu": "16.2.6",+ "@next/swc-linux-x64-musl": "16.2.6",+ "@next/swc-win32-arm64-msvc": "16.2.6",+ "@next/swc-win32-x64-msvc": "16.2.6",+ "sharp": "^0.34.5"+ },+ "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/node_modules/nanoid": {+ "version": "3.3.12",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz",+ "integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==",+ "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/next/node_modules/postcss": {+ "version": "8.4.31",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz",+ "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==",+ "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.6",+ "picocolors": "^1.0.0",+ "source-map-js": "^1.0.2"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ }+ },+ "node_modules/node-domexception": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz",+ "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==",+ "deprecated": "Use your platform's native DOMException instead",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/jimmywarting"+ },+ {+ "type": "github",+ "url": "https://paypal.me/jimmywarting"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=10.5.0"+ }+ },+ "node_modules/node-exports-info": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/node-exports-info/-/node-exports-info-1.6.0.tgz",+ "integrity": "sha512-pyFS63ptit/P5WqUkt+UUfe+4oevH+bFeIiPPdfb0pFeYEu/1ELnJu5l+5EcTKYL5M7zaAa7S8ddywgXypqKCw==",+ "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-fetch": {+ "version": "2.7.0",+ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",+ "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",+ "license": "MIT",+ "dependencies": {+ "whatwg-url": "^5.0.0"+ },+ "engines": {+ "node": "4.x || >=6.0.0"+ },+ "peerDependencies": {+ "encoding": "^0.1.0"+ },+ "peerDependenciesMeta": {+ "encoding": {+ "optional": true+ }+ }+ },+ "node_modules/node-releases": {+ "version": "2.0.44",+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.44.tgz",+ "integrity": "sha512-5WUyunoPMsvvEhS8AxHtRzP+oA8UCkJ7YRxatWKjngndhDGLiqEVAQKWjFAiAiuL8zMRGzGSJxFnLetoa43qGQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/npm-run-path": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz",+ "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",+ "license": "MIT",+ "dependencies": {+ "path-key": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "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==",+ "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-treeify": {+ "version": "1.1.33",+ "resolved": "https://registry.npmjs.org/object-treeify/-/object-treeify-1.1.33.tgz",+ "integrity": "sha512-EFVjAYfzWqWsBMRHPMAXLCDIJnpMhdWAqR7xG6M6a2cs6PMFpl/+Z20w9zDW4vkxOFfddegBKq9Rehd0bxWE7A==",+ "license": "MIT",+ "engines": {+ "node": ">= 10"+ }+ },+ "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/obliterator": {+ "version": "1.6.1",+ "resolved": "https://registry.npmjs.org/obliterator/-/obliterator-1.6.1.tgz",+ "integrity": "sha512-9WXswnqINnnhOG/5SLimUlzuU1hFJUc8zkwyD59Sd+dPOMf05PmnYG/d6Q7HZ+KmgkZJa1PxRso6QdM3sTNHig==",+ "license": "MIT"+ },+ "node_modules/on-finished": {+ "version": "2.4.1",+ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",+ "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",+ "license": "MIT",+ "dependencies": {+ "ee-first": "1.1.1"+ },+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/once": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",+ "license": "ISC",+ "dependencies": {+ "wrappy": "1"+ }+ },+ "node_modules/onetime": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",+ "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",+ "license": "MIT",+ "dependencies": {+ "mimic-fn": "^2.1.0"+ },+ "engines": {+ "node": ">=6"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "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/own-keys": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.1.tgz",+ "integrity": "sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "get-intrinsic": "^1.2.6",+ "object-keys": "^1.1.1",+ "safe-push-apply": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/p-limit": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",+ "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",+ "dev": true,+ "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/package-json-from-dist": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",+ "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==",+ "license": "BlueOak-1.0.0"+ },+ "node_modules/parent-module": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",+ "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "callsites": "^3.0.0"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/parseurl": {+ "version": "1.3.3",+ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",+ "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/path-exists": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/path-expression-matcher": {+ "version": "1.5.0",+ "resolved": "https://registry.npmjs.org/path-expression-matcher/-/path-expression-matcher-1.5.0.tgz",+ "integrity": "sha512-cbrerZV+6rvdQrrD+iGMcZFEiiSrbv9Tfdkvnusy6y0x0GKBXREFg/Y65GhIfm0tnLntThhzCnfKwp1WRjeCyQ==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/NaturalIntelligence"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "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==",+ "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/path-scurry": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.2.tgz",+ "integrity": "sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==",+ "license": "BlueOak-1.0.0",+ "dependencies": {+ "lru-cache": "^11.0.0",+ "minipass": "^7.1.2"+ },+ "engines": {+ "node": "18 || 20 || >=22"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/path-scurry/node_modules/lru-cache": {+ "version": "11.5.0",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.0.tgz",+ "integrity": "sha512-5YgH9UJd7wVb9hIouI2adWpgqrrICkt070Dnj8EUY1+B4B2P9eRLPAkAAo6NICA7CEhOIeBHl46u9zSNpNu7zA==",+ "license": "BlueOak-1.0.0",+ "engines": {+ "node": "20 || >=22"+ }+ },+ "node_modules/path-to-regexp": {+ "version": "6.3.0",+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.3.0.tgz",+ "integrity": "sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==",+ "license": "MIT"+ },+ "node_modules/pathe": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",+ "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",+ "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": "4.0.4",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",+ "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/possible-typed-array-names": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz",+ "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/postal-mime": {+ "version": "2.7.4",+ "resolved": "https://registry.npmjs.org/postal-mime/-/postal-mime-2.7.4.tgz",+ "integrity": "sha512-0WdnFQYUrPGGTFu1uOqD2s7omwua8xaeYGdO6rb88oD5yJ/4pPHDA4sdWqfD8wQVfCny563n/HQS7zTFft+f/g==",+ "license": "MIT-0"+ },+ "node_modules/postcss": {+ "version": "8.5.15",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.15.tgz",+ "integrity": "sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==",+ "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.12",+ "picocolors": "^1.1.1",+ "source-map-js": "^1.2.1"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ }+ },+ "node_modules/postcss/node_modules/nanoid": {+ "version": "3.3.12",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz",+ "integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "bin": {+ "nanoid": "bin/nanoid.cjs"+ },+ "engines": {+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"+ }+ },+ "node_modules/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/proxy-addr": {+ "version": "2.0.7",+ "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",+ "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",+ "license": "MIT",+ "dependencies": {+ "forwarded": "0.2.0",+ "ipaddr.js": "1.9.1"+ },+ "engines": {+ "node": ">= 0.10"+ }+ },+ "node_modules/punycode": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",+ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/qs": {+ "version": "6.15.2",+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.2.tgz",+ "integrity": "sha512-Rzq0KEyX/w/tEybncDgdkZrJgVUsUMk3xjh3t5bv3S1HTAtg+uOYt72+ZfwiQwKdysThkTBdL/rTi6HDmX9Ddw==",+ "license": "BSD-3-Clause",+ "dependencies": {+ "side-channel": "^1.1.0"+ },+ "engines": {+ "node": ">=0.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/queue-microtask": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",+ "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT"+ },+ "node_modules/range-parser": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",+ "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/raw-body": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz",+ "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==",+ "license": "MIT",+ "dependencies": {+ "bytes": "~3.1.2",+ "http-errors": "~2.0.1",+ "iconv-lite": "~0.7.0",+ "unpipe": "~1.0.0"+ },+ "engines": {+ "node": ">= 0.10"+ }+ },+ "node_modules/react": {+ "version": "19.2.6",+ "resolved": "https://registry.npmjs.org/react/-/react-19.2.6.tgz",+ "integrity": "sha512-sfWGGfavi0xr8Pg0sVsyHMAOziVYKgPLNrS7ig+ivMNb3wbCBw3KxtflsGBAwD3gYQlE/AEZsTLgToRrSCjb0Q==",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/react-dom": {+ "version": "19.2.6",+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.6.tgz",+ "integrity": "sha512-0prMI+hvBbPjsWnxDLxlCGyM8PN6UuWjEUCYmZhO67xIV9Xasa/r/vDnq+Xyq4Lo27g8QSbO5YzARu0D1Sps3g==",+ "license": "MIT",+ "dependencies": {+ "scheduler": "^0.27.0"+ },+ "peerDependencies": {+ "react": "^19.2.6"+ }+ },+ "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-remove-scroll": {+ "version": "2.7.2",+ "resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.7.2.tgz",+ "integrity": "sha512-Iqb9NjCCTt6Hf+vOdNIZGdTiH1QSqr27H/Ek9sv/a97gfueI/5h1s3yRi1nngzMUaOOToin5dI1dXKdXiF+u0Q==",+ "license": "MIT",+ "dependencies": {+ "react-remove-scroll-bar": "^2.3.7",+ "react-style-singleton": "^2.2.3",+ "tslib": "^2.1.0",+ "use-callback-ref": "^1.3.3",+ "use-sidecar": "^1.1.3"+ },+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/react-remove-scroll-bar": {+ "version": "2.3.8",+ "resolved": "https://registry.npmjs.org/react-remove-scroll-bar/-/react-remove-scroll-bar-2.3.8.tgz",+ "integrity": "sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==",+ "license": "MIT",+ "dependencies": {+ "react-style-singleton": "^2.2.2",+ "tslib": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/react-style-singleton": {+ "version": "2.2.3",+ "resolved": "https://registry.npmjs.org/react-style-singleton/-/react-style-singleton-2.2.3.tgz",+ "integrity": "sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==",+ "license": "MIT",+ "dependencies": {+ "get-nonce": "^1.0.0",+ "tslib": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/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/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/router": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz",+ "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==",+ "license": "MIT",+ "dependencies": {+ "debug": "^4.4.0",+ "depd": "^2.0.0",+ "is-promise": "^4.0.0",+ "parseurl": "^1.3.3",+ "path-to-regexp": "^8.0.0"+ },+ "engines": {+ "node": ">= 18"+ }+ },+ "node_modules/router/node_modules/path-to-regexp": {+ "version": "8.4.2",+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.4.2.tgz",+ "integrity": "sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==",+ "license": "MIT",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/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/safer-buffer": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",+ "license": "MIT"+ },+ "node_modules/scheduler": {+ "version": "0.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/send": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/send/-/send-1.2.1.tgz",+ "integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==",+ "license": "MIT",+ "dependencies": {+ "debug": "^4.4.3",+ "encodeurl": "^2.0.0",+ "escape-html": "^1.0.3",+ "etag": "^1.8.1",+ "fresh": "^2.0.0",+ "http-errors": "^2.0.1",+ "mime-types": "^3.0.2",+ "ms": "^2.1.3",+ "on-finished": "^2.4.1",+ "range-parser": "^1.2.1",+ "statuses": "^2.0.2"+ },+ "engines": {+ "node": ">= 18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/serve-static": {+ "version": "2.2.1",+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.1.tgz",+ "integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==",+ "license": "MIT",+ "dependencies": {+ "encodeurl": "^2.0.0",+ "escape-html": "^1.0.3",+ "parseurl": "^1.3.3",+ "send": "^1.2.0"+ },+ "engines": {+ "node": ">= 18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/set-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/setprototypeof": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",+ "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",+ "license": "ISC"+ },+ "node_modules/sharp": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.34.5.tgz",+ "integrity": "sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==",+ "hasInstallScript": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@img/colour": "^1.0.0",+ "detect-libc": "^2.1.2",+ "semver": "^7.7.3"+ },+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-darwin-arm64": "0.34.5",+ "@img/sharp-darwin-x64": "0.34.5",+ "@img/sharp-libvips-darwin-arm64": "1.2.4",+ "@img/sharp-libvips-darwin-x64": "1.2.4",+ "@img/sharp-libvips-linux-arm": "1.2.4",+ "@img/sharp-libvips-linux-arm64": "1.2.4",+ "@img/sharp-libvips-linux-ppc64": "1.2.4",+ "@img/sharp-libvips-linux-riscv64": "1.2.4",+ "@img/sharp-libvips-linux-s390x": "1.2.4",+ "@img/sharp-libvips-linux-x64": "1.2.4",+ "@img/sharp-libvips-linuxmusl-arm64": "1.2.4",+ "@img/sharp-libvips-linuxmusl-x64": "1.2.4",+ "@img/sharp-linux-arm": "0.34.5",+ "@img/sharp-linux-arm64": "0.34.5",+ "@img/sharp-linux-ppc64": "0.34.5",+ "@img/sharp-linux-riscv64": "0.34.5",+ "@img/sharp-linux-s390x": "0.34.5",+ "@img/sharp-linux-x64": "0.34.5",+ "@img/sharp-linuxmusl-arm64": "0.34.5",+ "@img/sharp-linuxmusl-x64": "0.34.5",+ "@img/sharp-wasm32": "0.34.5",+ "@img/sharp-win32-arm64": "0.34.5",+ "@img/sharp-win32-ia32": "0.34.5",+ "@img/sharp-win32-x64": "0.34.5"+ }+ },+ "node_modules/sharp/node_modules/semver": {+ "version": "7.8.0",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.0.tgz",+ "integrity": "sha512-AcM7dV/5ul4EekoQ29Agm5vri8JNqRyj39o0qpX6vDF2GZrtutZl5RwgD1XnZjiTAfncsJhMI48QQH3sN87YNA==",+ "license": "ISC",+ "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==",+ "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==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/side-channel": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",+ "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "object-inspect": "^1.13.3",+ "side-channel-list": "^1.0.0",+ "side-channel-map": "^1.0.1",+ "side-channel-weakmap": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/side-channel-list": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz",+ "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "object-inspect": "^1.13.4"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/side-channel-map": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",+ "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.2",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.5",+ "object-inspect": "^1.13.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/side-channel-weakmap": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",+ "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.2",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.5",+ "object-inspect": "^1.13.3",+ "side-channel-map": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/signal-exit": {+ "version": "3.0.7",+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",+ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",+ "license": "ISC"+ },+ "node_modules/source-map": {+ "version": "0.6.1",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/source-map-js": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/source-map-support": {+ "version": "0.5.21",+ "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz",+ "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",+ "license": "MIT",+ "dependencies": {+ "buffer-from": "^1.0.0",+ "source-map": "^0.6.0"+ }+ },+ "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/statuses": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",+ "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/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-width": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",+ "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",+ "license": "MIT",+ "dependencies": {+ "emoji-regex": "^10.3.0",+ "get-east-asian-width": "^1.0.0",+ "strip-ansi": "^7.1.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/string-width/node_modules/ansi-regex": {+ "version": "6.2.2",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",+ "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"+ }+ },+ "node_modules/string-width/node_modules/emoji-regex": {+ "version": "10.6.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz",+ "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==",+ "license": "MIT"+ },+ "node_modules/string-width/node_modules/strip-ansi": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",+ "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^6.2.2"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"+ }+ },+ "node_modules/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.0.12",+ "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.12.tgz",+ "integrity": "sha512-6CC9uyBL+/48dYizRf7H7VAYCMCNTBeM78x/VTUe9bFEaxBepPJDa1Ow99LqI/1yF7kuy7Q3cQsYMrcjGUcskA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.3",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.6",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.0.0",+ "get-intrinsic": "^1.2.6",+ "gopd": "^1.2.0",+ "has-symbols": "^1.1.0",+ "internal-slot": "^1.1.0",+ "regexp.prototype.flags": "^1.5.3",+ "set-function-name": "^2.0.2",+ "side-channel": "^1.1.0"+ },+ "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.10",+ "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.10.tgz",+ "integrity": "sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.2",+ "define-data-property": "^1.1.4",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.5",+ "es-object-atoms": "^1.0.0",+ "has-property-descriptors": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/string.prototype.trimend": {+ "version": "1.0.9",+ "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.9.tgz",+ "integrity": "sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.2",+ "define-properties": "^1.2.1",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/string.prototype.trimstart": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz",+ "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==",+ "dev": true,+ "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/strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/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-final-newline": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz",+ "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "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/strnum": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/strnum/-/strnum-2.3.0.tgz",+ "integrity": "sha512-ums3KNd42PGyx5xaoVTO1mjU1bH3NpY4vsrVlnv9PNGqQj8wd7rJ6nEypLrJ7z5vxK5RP0yMLo6J/Gsm62DI5Q==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/NaturalIntelligence"+ }+ ],+ "license": "MIT"+ },+ "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": "10.2.2",+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-10.2.2.tgz",+ "integrity": "sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/chalk/supports-color?sponsor=1"+ }+ },+ "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/tailwind-merge": {+ "version": "3.6.0",+ "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-3.6.0.tgz",+ "integrity": "sha512-uxL7qAVQriqRQPAyK3pj66VqskWqoZ37PW94jwOTwNfq/z9oyu1V+eqrZqtR2+fCiXdYOZe/Modt8GtvqNzu+w==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/dcastil"+ }+ },+ "node_modules/tailwindcss": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.0.tgz",+ "integrity": "sha512-y6nxMGB1nMW9R6k96e5gdIFzcfL/gTJRNaqGes1YvkLnPVXzWgbqFF2yLC0T8G774n24cx3Pe8XrKoniCOAH+Q==",+ "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/terser": {+ "version": "5.16.9",+ "resolved": "https://registry.npmjs.org/terser/-/terser-5.16.9.tgz",+ "integrity": "sha512-HPa/FdTB9XGI2H1/keLFZHxl6WNvAI4YalHGtDQTlMnJcoqSab1UwL4l1hGEhs6/GmLHBZIg/YgB++jcbzoOEg==",+ "license": "BSD-2-Clause",+ "dependencies": {+ "@jridgewell/source-map": "^0.3.2",+ "acorn": "^8.5.0",+ "commander": "^2.20.0",+ "source-map-support": "~0.5.20"+ },+ "bin": {+ "terser": "bin/terser"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/terser/node_modules/commander": {+ "version": "2.20.3",+ "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",+ "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",+ "license": "MIT"+ },+ "node_modules/tinyglobby": {+ "version": "0.2.16",+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.16.tgz",+ "integrity": "sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==",+ "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/to-regex-range": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-number": "^7.0.0"+ },+ "engines": {+ "node": ">=8.0"+ }+ },+ "node_modules/toidentifier": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",+ "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",+ "license": "MIT",+ "engines": {+ "node": ">=0.6"+ }+ },+ "node_modules/tr46": {+ "version": "0.0.3",+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",+ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==",+ "license": "MIT"+ },+ "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/ts-tqdm": {+ "version": "0.8.6",+ "resolved": "https://registry.npmjs.org/ts-tqdm/-/ts-tqdm-0.8.6.tgz",+ "integrity": "sha512-3X3M1PZcHtgQbnwizL+xU8CAgbYbeLHrrDwL9xxcZZrV5J+e7loJm1XrXozHjSkl44J0Zg0SgA8rXbh83kCkcQ==",+ "license": "MIT"+ },+ "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/tsx": {+ "version": "4.22.3",+ "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.22.3.tgz",+ "integrity": "sha512-mdoNxBC/cSQObGGVQ5Bpn5i+yv7j68gk3Nfm3wFjcJg3Z0Mix9jzAFfP12prmm5eVGmDKtp0yyArrs0Q+8gZHg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "esbuild": "~0.28.0"+ },+ "bin": {+ "tsx": "dist/cli.mjs"+ },+ "engines": {+ "node": ">=18.0.0"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.3"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/aix-ppc64": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.0.tgz",+ "integrity": "sha512-lhRUCeuOyJQURhTxl4WkpFTjIsbDayJHih5kZC1giwE+MhIzAb7mEsQMqMf18rHLsrb5qI1tafG20mLxEWcWlA==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/android-arm": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.0.tgz",+ "integrity": "sha512-wqh0ByljabXLKHeWXYLqoJ5jKC4XBaw6Hk08OfMrCRd2nP2ZQ5eleDZC41XHyCNgktBGYMbqnrJKq/K/lzPMSQ==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/android-arm64": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.0.tgz",+ "integrity": "sha512-+WzIXQOSaGs33tLEgYPYe/yQHf0WTU0X42Jca3y8NWMbUVhp7rUnw+vAsRC/QiDrdD31IszMrZy+qwPOPjd+rw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/android-x64": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.0.tgz",+ "integrity": "sha512-+VJggoaKhk2VNNqVL7f6S189UzShHC/mR9EE8rDdSkdpN0KflSwWY/gWjDrNxxisg8Fp1ZCD9jLMo4m0OUfeUA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/darwin-arm64": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.0.tgz",+ "integrity": "sha512-0T+A9WZm+bZ84nZBtk1ckYsOvyA3x7e2Acj1KdVfV4/2tdG4fzUp91YHx+GArWLtwqp77pBXVCPn2We7Letr0Q==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/darwin-x64": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.0.tgz",+ "integrity": "sha512-fyzLm/DLDl/84OCfp2f/XQ4flmORsjU7VKt8HLjvIXChJoFFOIL6pLJPH4Yhd1n1gGFF9mPwtlN5Wf82DZs+LQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/freebsd-arm64": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.0.tgz",+ "integrity": "sha512-l9GeW5UZBT9k9brBYI+0WDffcRxgHQD8ShN2Ur4xWq/NFzUKm3k5lsH4PdaRgb2w7mI9u61nr2gI2mLI27Nh3Q==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/freebsd-x64": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.0.tgz",+ "integrity": "sha512-BXoQai/A0wPO6Es3yFJ7APCiKGc1tdAEOgeTNy3SsB491S3aHn4S4r3e976eUnPdU+NbdtmBuLncYir2tMU9Nw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/linux-arm": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.0.tgz",+ "integrity": "sha512-CjaaREJagqJp7iTaNQjjidaNbCKYcd4IDkzbwwxtSvjI7NZm79qiHc8HqciMddQ6CKvJT6aBd8lO9kN/ZudLlw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/linux-arm64": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.0.tgz",+ "integrity": "sha512-RVyzfb3FWsGA55n6WY0MEIEPURL1FcbhFE6BffZEMEekfCzCIMtB5yyDcFnVbTnwk+CLAgTujmV/Lgvih56W+A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/linux-ia32": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.0.tgz",+ "integrity": "sha512-KBnSTt1kxl9x70q+ydterVdl+Cn0H18ngRMRCEQfrbqdUuntQQ0LoMZv47uB97NljZFzY6HcfqEZ2SAyIUTQBQ==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/linux-loong64": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.0.tgz",+ "integrity": "sha512-zpSlUce1mnxzgBADvxKXX5sl8aYQHo2ezvMNI8I0lbblJtp8V4odlm3Yzlj7gPyt3T8ReksE6bK+pT3WD+aJRg==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/linux-mips64el": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.0.tgz",+ "integrity": "sha512-2jIfP6mmjkdmeTlsX/9vmdmhBmKADrWqN7zcdtHIeNSCH1SqIoNI63cYsjQR8J+wGa4Y5izRcSHSm8K3QWmk3w==",+ "cpu": [+ "mips64el"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/linux-ppc64": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.0.tgz",+ "integrity": "sha512-bc0FE9wWeC0WBm49IQMPSPILRocGTQt3j5KPCA8os6VprfuJ7KD+5PzESSrJ6GmPIPJK965ZJHTUlSA6GNYEhg==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/linux-riscv64": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.0.tgz",+ "integrity": "sha512-SQPZOwoTTT/HXFXQJG/vBX8sOFagGqvZyXcgLA3NhIqcBv1BJU1d46c0rGcrij2B56Z2rNiSLaZOYW5cUk7yLQ==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/linux-s390x": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.0.tgz",+ "integrity": "sha512-SCfR0HN8CEEjnYnySJTd2cw0k9OHB/YFzt5zgJEwa+wL/T/raGWYMBqwDNAC6dqFKmJYZoQBRfHjgwLHGSrn3Q==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/linux-x64": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.0.tgz",+ "integrity": "sha512-us0dSb9iFxIi8srnpl931Nvs65it/Jd2a2K3qs7fz2WfGPHqzfzZTfec7oxZJRNPXPnNYZtanmRc4AL/JwVzHQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/netbsd-arm64": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.0.tgz",+ "integrity": "sha512-CR/RYotgtCKwtftMwJlUU7xCVNg3lMYZ0RzTmAHSfLCXw3NtZtNpswLEj/Kkf6kEL3Gw+BpOekRX0BYCtklhUw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/netbsd-x64": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.0.tgz",+ "integrity": "sha512-nU1yhmYutL+fQ71Kxnhg8uEOdC0pwEW9entHykTgEbna2pw2dkbFSMeqjjyHZoCmt8SBkOSvV+yNmm94aUrrqw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/openbsd-arm64": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.0.tgz",+ "integrity": "sha512-cXb5vApOsRsxsEl4mcZ1XY3D4DzcoMxR/nnc4IyqYs0rTI8ZKmW6kyyg+11Z8yvgMfAEldKzP7AdP64HnSC/6g==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/openbsd-x64": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.0.tgz",+ "integrity": "sha512-8wZM2qqtv9UP3mzy7HiGYNH/zjTA355mpeuA+859TyR+e+Tc08IHYpLJuMsfpDJwoLo1ikIJI8jC3GFjnRClzA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/sunos-x64": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.0.tgz",+ "integrity": "sha512-1ZgjUoEdHZZl/YlV76TSCz9Hqj9h9YmMGAgAPYd+q4SicWNX3G5GCyx9uhQWSLcbvPW8Ni7lj4gDa1T40akdlw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/win32-arm64": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.0.tgz",+ "integrity": "sha512-Q9StnDmQ/enxnpxCCLSg0oo4+34B9TdXpuyPeTedN/6+iXBJ4J+zwfQI28u/Jl40nOYAxGoNi7mFP40RUtkmUA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/win32-ia32": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.0.tgz",+ "integrity": "sha512-zF3ag/gfiCe6U2iczcRzSYJKH1DCI+ByzSENHlM2FcDbEeo5Zd2C86Aq0tKUYAJJ1obRP84ymxIAksZUcdztHA==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/win32-x64": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.0.tgz",+ "integrity": "sha512-pEl1bO9mfAmIC+tW5btTmrKaujg3zGtUmWNdCw/xs70FBjwAL3o9OEKNHvNmnyylD6ubxUERiEhdsL0xBQ9efw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/esbuild": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.0.tgz",+ "integrity": "sha512-sNR9MHpXSUV/XB4zmsFKN+QgVG82Cc7+/aaxJ8Adi8hyOac+EXptIp45QBPaVyX3N70664wRbTcLTOemCAnyqw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=18"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.28.0",+ "@esbuild/android-arm": "0.28.0",+ "@esbuild/android-arm64": "0.28.0",+ "@esbuild/android-x64": "0.28.0",+ "@esbuild/darwin-arm64": "0.28.0",+ "@esbuild/darwin-x64": "0.28.0",+ "@esbuild/freebsd-arm64": "0.28.0",+ "@esbuild/freebsd-x64": "0.28.0",+ "@esbuild/linux-arm": "0.28.0",+ "@esbuild/linux-arm64": "0.28.0",+ "@esbuild/linux-ia32": "0.28.0",+ "@esbuild/linux-loong64": "0.28.0",+ "@esbuild/linux-mips64el": "0.28.0",+ "@esbuild/linux-ppc64": "0.28.0",+ "@esbuild/linux-riscv64": "0.28.0",+ "@esbuild/linux-s390x": "0.28.0",+ "@esbuild/linux-x64": "0.28.0",+ "@esbuild/netbsd-arm64": "0.28.0",+ "@esbuild/netbsd-x64": "0.28.0",+ "@esbuild/openbsd-arm64": "0.28.0",+ "@esbuild/openbsd-x64": "0.28.0",+ "@esbuild/openharmony-arm64": "0.28.0",+ "@esbuild/sunos-x64": "0.28.0",+ "@esbuild/win32-arm64": "0.28.0",+ "@esbuild/win32-ia32": "0.28.0",+ "@esbuild/win32-x64": "0.28.0"+ }+ },+ "node_modules/type-check": {+ "version": "0.4.0",+ "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",+ "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "prelude-ls": "^1.2.1"+ },+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "node_modules/type-is": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.1.0.tgz",+ "integrity": "sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==",+ "license": "MIT",+ "dependencies": {+ "content-type": "^2.0.0",+ "media-typer": "^1.1.0",+ "mime-types": "^3.0.0"+ },+ "engines": {+ "node": ">= 18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/type-is/node_modules/content-type": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.0.0.tgz",+ "integrity": "sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "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.4",+ "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.4.tgz",+ "integrity": "sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "available-typed-arrays": "^1.0.7",+ "call-bind": "^1.0.8",+ "for-each": "^0.3.3",+ "gopd": "^1.2.0",+ "has-proto": "^1.2.0",+ "is-typed-array": "^1.1.15",+ "reflect.getprototypeof": "^1.0.9"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/typed-array-length": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.7.tgz",+ "integrity": "sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "for-each": "^0.3.3",+ "gopd": "^1.0.1",+ "is-typed-array": "^1.1.13",+ "possible-typed-array-names": "^1.0.0",+ "reflect.getprototypeof": "^1.0.6"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/typescript": {+ "version": "5.9.3",+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",+ "dev": true,+ "license": "Apache-2.0",+ "bin": {+ "tsc": "bin/tsc",+ "tsserver": "bin/tsserver"+ },+ "engines": {+ "node": ">=14.17"+ }+ },+ "node_modules/typescript-eslint": {+ "version": "8.59.4",+ "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.59.4.tgz",+ "integrity": "sha512-Rw6+44QNFaXtgHSjPy+Kw8hrJniMYzR85E9yLmOLcfZ91/rz+JXQbDTCmc6ccxMPY6K6PgAq26f0JCBfR7LIPQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/eslint-plugin": "8.59.4",+ "@typescript-eslint/parser": "8.59.4",+ "@typescript-eslint/typescript-estree": "8.59.4",+ "@typescript-eslint/utils": "8.59.4"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "eslint": "^8.57.0 || ^9.0.0 || ^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/undici": {+ "version": "7.24.8",+ "resolved": "https://registry.npmjs.org/undici/-/undici-7.24.8.tgz",+ "integrity": "sha512-6KQ/+QxK49Z/p3HO6E5ZCZWNnCasyZLa5ExaVYyvPxUwKtbCPMKELJOqh7EqOle0t9cH/7d2TaaTRRa6Nhs4YQ==",+ "license": "MIT",+ "engines": {+ "node": ">=20.18.1"+ }+ },+ "node_modules/undici-types": {+ "version": "6.21.0",+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",+ "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",+ "license": "MIT"+ },+ "node_modules/unenv": {+ "version": "2.0.0-rc.24",+ "resolved": "https://registry.npmjs.org/unenv/-/unenv-2.0.0-rc.24.tgz",+ "integrity": "sha512-i7qRCmY42zmCwnYlh9H2SvLEypEFGye5iRmEMKjcGi7zk9UquigRjFtTLz0TYqr0ZGLZhaMHl/foy1bZR+Cwlw==",+ "license": "MIT",+ "dependencies": {+ "pathe": "^2.0.3"+ }+ },+ "node_modules/unpipe": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",+ "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/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.2.3",+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz",+ "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==",+ "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/urlpattern-polyfill": {+ "version": "10.1.0",+ "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-10.1.0.tgz",+ "integrity": "sha512-IGjKp/o0NL3Bso1PymYURCJxMPNAf/ILOpendP9f5B6e1rTJgdgiOvgfoT8VxCAdY+Wisb9uhGaJJf3yZ2V9nw==",+ "license": "MIT"+ },+ "node_modules/use-callback-ref": {+ "version": "1.3.3",+ "resolved": "https://registry.npmjs.org/use-callback-ref/-/use-callback-ref-1.3.3.tgz",+ "integrity": "sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==",+ "license": "MIT",+ "dependencies": {+ "tslib": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/use-sidecar": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/use-sidecar/-/use-sidecar-1.1.3.tgz",+ "integrity": "sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==",+ "license": "MIT",+ "dependencies": {+ "detect-node-es": "^1.1.0",+ "tslib": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/vary": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",+ "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/web-streams-polyfill": {+ "version": "4.0.0-beta.3",+ "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.0.0-beta.3.tgz",+ "integrity": "sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==",+ "license": "MIT",+ "engines": {+ "node": ">= 14"+ }+ },+ "node_modules/webidl-conversions": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",+ "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==",+ "license": "BSD-2-Clause"+ },+ "node_modules/whatwg-url": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",+ "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",+ "license": "MIT",+ "dependencies": {+ "tr46": "~0.0.3",+ "webidl-conversions": "^3.0.0"+ }+ },+ "node_modules/which": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/which/-/which-4.0.0.tgz",+ "integrity": "sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==",+ "license": "ISC",+ "dependencies": {+ "isexe": "^3.1.1"+ },+ "bin": {+ "node-which": "bin/which.js"+ },+ "engines": {+ "node": "^16.13.0 || >=18.0.0"+ }+ },+ "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.20",+ "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.20.tgz",+ "integrity": "sha512-LYfpUkmqwl0h9A2HL09Mms427Q1RZWuOHsukfVcKRq9q95iQxdw0ix1JQrqbcDR9PH1QDwf5Qo8OZb5lksZ8Xg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "available-typed-arrays": "^1.0.7",+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.4",+ "for-each": "^0.3.5",+ "get-proto": "^1.0.1",+ "gopd": "^1.2.0",+ "has-tostringtag": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/word-wrap": {+ "version": "1.2.5",+ "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",+ "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/workerd": {+ "version": "1.20260603.1",+ "resolved": "https://registry.npmjs.org/workerd/-/workerd-1.20260603.1.tgz",+ "integrity": "sha512-NPcbhI1++CS+fnELyXtsIR52en+5kwr/OrKeiQeYXGy10HxmPdsQBv9N+DU7hJIOOmBHhOGAAsoGDjyiQ2YCaA==",+ "hasInstallScript": true,+ "license": "Apache-2.0",+ "bin": {+ "workerd": "bin/workerd"+ },+ "engines": {+ "node": ">=16"+ },+ "optionalDependencies": {+ "@cloudflare/workerd-darwin-64": "1.20260603.1",+ "@cloudflare/workerd-darwin-arm64": "1.20260603.1",+ "@cloudflare/workerd-linux-64": "1.20260603.1",+ "@cloudflare/workerd-linux-arm64": "1.20260603.1",+ "@cloudflare/workerd-windows-64": "1.20260603.1"+ }+ },+ "node_modules/wrangler": {+ "version": "4.98.0",+ "resolved": "https://registry.npmjs.org/wrangler/-/wrangler-4.98.0.tgz",+ "integrity": "sha512-cXfFUuF4rMIvE0hiMnXjEAB27ERryaCgquBJdUoPIjFzYYE1rbRdMUkEdQ18qDPUtsPvhJdqxLntixT9OfSzQw==",+ "license": "MIT OR Apache-2.0",+ "dependencies": {+ "@cloudflare/kv-asset-handler": "0.5.0",+ "@cloudflare/unenv-preset": "2.16.1",+ "blake3-wasm": "2.1.5",+ "esbuild": "0.27.3",+ "miniflare": "4.20260603.0",+ "path-to-regexp": "6.3.0",+ "unenv": "2.0.0-rc.24",+ "workerd": "1.20260603.1"+ },+ "bin": {+ "wrangler": "bin/wrangler.js",+ "wrangler2": "bin/wrangler.js"+ },+ "engines": {+ "node": ">=22.0.0"+ },+ "optionalDependencies": {+ "fsevents": "2.3.3"+ },+ "peerDependencies": {+ "@cloudflare/workers-types": "^4.20260603.1"+ },+ "peerDependenciesMeta": {+ "@cloudflare/workers-types": {+ "optional": true+ }+ }+ },+ "node_modules/wrangler/node_modules/@esbuild/aix-ppc64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.3.tgz",+ "integrity": "sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg==",+ "cpu": [+ "ppc64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/wrangler/node_modules/@esbuild/android-arm": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.3.tgz",+ "integrity": "sha512-i5D1hPY7GIQmXlXhs2w8AWHhenb00+GxjxRncS2ZM7YNVGNfaMxgzSGuO8o8SJzRc/oZwU2bcScvVERk03QhzA==",+ "cpu": [+ "arm"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/wrangler/node_modules/@esbuild/android-arm64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.3.tgz",+ "integrity": "sha512-YdghPYUmj/FX2SYKJ0OZxf+iaKgMsKHVPF1MAq/P8WirnSpCStzKJFjOjzsW0QQ7oIAiccHdcqjbHmJxRb/dmg==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/wrangler/node_modules/@esbuild/android-x64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.3.tgz",+ "integrity": "sha512-IN/0BNTkHtk8lkOM8JWAYFg4ORxBkZQf9zXiEOfERX/CzxW3Vg1ewAhU7QSWQpVIzTW+b8Xy+lGzdYXV6UZObQ==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/wrangler/node_modules/@esbuild/darwin-arm64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.3.tgz",+ "integrity": "sha512-Re491k7ByTVRy0t3EKWajdLIr0gz2kKKfzafkth4Q8A5n1xTHrkqZgLLjFEHVD+AXdUGgQMq+Godfq45mGpCKg==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/wrangler/node_modules/@esbuild/darwin-x64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.3.tgz",+ "integrity": "sha512-vHk/hA7/1AckjGzRqi6wbo+jaShzRowYip6rt6q7VYEDX4LEy1pZfDpdxCBnGtl+A5zq8iXDcyuxwtv3hNtHFg==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/wrangler/node_modules/@esbuild/freebsd-arm64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.3.tgz",+ "integrity": "sha512-ipTYM2fjt3kQAYOvo6vcxJx3nBYAzPjgTCk7QEgZG8AUO3ydUhvelmhrbOheMnGOlaSFUoHXB6un+A7q4ygY9w==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/wrangler/node_modules/@esbuild/freebsd-x64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.3.tgz",+ "integrity": "sha512-dDk0X87T7mI6U3K9VjWtHOXqwAMJBNN2r7bejDsc+j03SEjtD9HrOl8gVFByeM0aJksoUuUVU9TBaZa2rgj0oA==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/wrangler/node_modules/@esbuild/linux-arm": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.3.tgz",+ "integrity": "sha512-s6nPv2QkSupJwLYyfS+gwdirm0ukyTFNl3KTgZEAiJDd+iHZcbTPPcWCcRYH+WlNbwChgH2QkE9NSlNrMT8Gfw==",+ "cpu": [+ "arm"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/wrangler/node_modules/@esbuild/linux-arm64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.3.tgz",+ "integrity": "sha512-sZOuFz/xWnZ4KH3YfFrKCf1WyPZHakVzTiqji3WDc0BCl2kBwiJLCXpzLzUBLgmp4veFZdvN5ChW4Eq/8Fc2Fg==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/wrangler/node_modules/@esbuild/linux-ia32": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.3.tgz",+ "integrity": "sha512-yGlQYjdxtLdh0a3jHjuwOrxQjOZYD/C9PfdbgJJF3TIZWnm/tMd/RcNiLngiu4iwcBAOezdnSLAwQDPqTmtTYg==",+ "cpu": [+ "ia32"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/wrangler/node_modules/@esbuild/linux-loong64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.3.tgz",+ "integrity": "sha512-WO60Sn8ly3gtzhyjATDgieJNet/KqsDlX5nRC5Y3oTFcS1l0KWba+SEa9Ja1GfDqSF1z6hif/SkpQJbL63cgOA==",+ "cpu": [+ "loong64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/wrangler/node_modules/@esbuild/linux-mips64el": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.3.tgz",+ "integrity": "sha512-APsymYA6sGcZ4pD6k+UxbDjOFSvPWyZhjaiPyl/f79xKxwTnrn5QUnXR5prvetuaSMsb4jgeHewIDCIWljrSxw==",+ "cpu": [+ "mips64el"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/wrangler/node_modules/@esbuild/linux-ppc64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.3.tgz",+ "integrity": "sha512-eizBnTeBefojtDb9nSh4vvVQ3V9Qf9Df01PfawPcRzJH4gFSgrObw+LveUyDoKU3kxi5+9RJTCWlj4FjYXVPEA==",+ "cpu": [+ "ppc64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/wrangler/node_modules/@esbuild/linux-riscv64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.3.tgz",+ "integrity": "sha512-3Emwh0r5wmfm3ssTWRQSyVhbOHvqegUDRd0WhmXKX2mkHJe1SFCMJhagUleMq+Uci34wLSipf8Lagt4LlpRFWQ==",+ "cpu": [+ "riscv64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/wrangler/node_modules/@esbuild/linux-s390x": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.3.tgz",+ "integrity": "sha512-pBHUx9LzXWBc7MFIEEL0yD/ZVtNgLytvx60gES28GcWMqil8ElCYR4kvbV2BDqsHOvVDRrOxGySBM9Fcv744hw==",+ "cpu": [+ "s390x"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/wrangler/node_modules/@esbuild/linux-x64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.3.tgz",+ "integrity": "sha512-Czi8yzXUWIQYAtL/2y6vogER8pvcsOsk5cpwL4Gk5nJqH5UZiVByIY8Eorm5R13gq+DQKYg0+JyQoytLQas4dA==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/wrangler/node_modules/@esbuild/netbsd-arm64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.3.tgz",+ "integrity": "sha512-sDpk0RgmTCR/5HguIZa9n9u+HVKf40fbEUt+iTzSnCaGvY9kFP0YKBWZtJaraonFnqef5SlJ8/TiPAxzyS+UoA==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/wrangler/node_modules/@esbuild/netbsd-x64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.3.tgz",+ "integrity": "sha512-P14lFKJl/DdaE00LItAukUdZO5iqNH7+PjoBm+fLQjtxfcfFE20Xf5CrLsmZdq5LFFZzb5JMZ9grUwvtVYzjiA==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/wrangler/node_modules/@esbuild/openbsd-arm64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.3.tgz",+ "integrity": "sha512-AIcMP77AvirGbRl/UZFTq5hjXK+2wC7qFRGoHSDrZ5v5b8DK/GYpXW3CPRL53NkvDqb9D+alBiC/dV0Fb7eJcw==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/wrangler/node_modules/@esbuild/openbsd-x64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.3.tgz",+ "integrity": "sha512-DnW2sRrBzA+YnE70LKqnM3P+z8vehfJWHXECbwBmH/CU51z6FiqTQTHFenPlHmo3a8UgpLyH3PT+87OViOh1AQ==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/wrangler/node_modules/@esbuild/openharmony-arm64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.3.tgz",+ "integrity": "sha512-NinAEgr/etERPTsZJ7aEZQvvg/A6IsZG/LgZy+81wON2huV7SrK3e63dU0XhyZP4RKGyTm7aOgmQk0bGp0fy2g==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/wrangler/node_modules/@esbuild/sunos-x64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.3.tgz",+ "integrity": "sha512-PanZ+nEz+eWoBJ8/f8HKxTTD172SKwdXebZ0ndd953gt1HRBbhMsaNqjTyYLGLPdoWHy4zLU7bDVJztF5f3BHA==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/wrangler/node_modules/@esbuild/win32-arm64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.3.tgz",+ "integrity": "sha512-B2t59lWWYrbRDw/tjiWOuzSsFh1Y/E95ofKz7rIVYSQkUYBjfSgf6oeYPNWHToFRr2zx52JKApIcAS/D5TUBnA==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/wrangler/node_modules/@esbuild/win32-ia32": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.3.tgz",+ "integrity": "sha512-QLKSFeXNS8+tHW7tZpMtjlNb7HKau0QDpwm49u0vUp9y1WOF+PEzkU84y9GqYaAVW8aH8f3GcBck26jh54cX4Q==",+ "cpu": [+ "ia32"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/wrangler/node_modules/@esbuild/win32-x64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.3.tgz",+ "integrity": "sha512-4uJGhsxuptu3OcpVAzli+/gWusVGwZZHTlS63hh++ehExkVT8SgiEf7/uC/PclrPPkLhZqGgCTjd0VWLo6xMqA==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/wrangler/node_modules/esbuild": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.3.tgz",+ "integrity": "sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg==",+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=18"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.27.3",+ "@esbuild/android-arm": "0.27.3",+ "@esbuild/android-arm64": "0.27.3",+ "@esbuild/android-x64": "0.27.3",+ "@esbuild/darwin-arm64": "0.27.3",+ "@esbuild/darwin-x64": "0.27.3",+ "@esbuild/freebsd-arm64": "0.27.3",+ "@esbuild/freebsd-x64": "0.27.3",+ "@esbuild/linux-arm": "0.27.3",+ "@esbuild/linux-arm64": "0.27.3",+ "@esbuild/linux-ia32": "0.27.3",+ "@esbuild/linux-loong64": "0.27.3",+ "@esbuild/linux-mips64el": "0.27.3",+ "@esbuild/linux-ppc64": "0.27.3",+ "@esbuild/linux-riscv64": "0.27.3",+ "@esbuild/linux-s390x": "0.27.3",+ "@esbuild/linux-x64": "0.27.3",+ "@esbuild/netbsd-arm64": "0.27.3",+ "@esbuild/netbsd-x64": "0.27.3",+ "@esbuild/openbsd-arm64": "0.27.3",+ "@esbuild/openbsd-x64": "0.27.3",+ "@esbuild/openharmony-arm64": "0.27.3",+ "@esbuild/sunos-x64": "0.27.3",+ "@esbuild/win32-arm64": "0.27.3",+ "@esbuild/win32-ia32": "0.27.3",+ "@esbuild/win32-x64": "0.27.3"+ }+ },+ "node_modules/wrap-ansi": {+ "version": "9.0.2",+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz",+ "integrity": "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==",+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^6.2.1",+ "string-width": "^7.0.0",+ "strip-ansi": "^7.1.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ }+ },+ "node_modules/wrap-ansi/node_modules/ansi-regex": {+ "version": "6.2.2",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",+ "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"+ }+ },+ "node_modules/wrap-ansi/node_modules/strip-ansi": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",+ "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^6.2.2"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"+ }+ },+ "node_modules/wrappy": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",+ "license": "ISC"+ },+ "node_modules/ws": {+ "version": "8.20.1",+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.20.1.tgz",+ "integrity": "sha512-It4dO0K5v//JtTXuPkfEOaI3uUN87iYPnqo/ZzqCoG3g8uhA66QUMs/SrM0YK7/NAu+r4LMh/9dq2A7k+rHs+w==",+ "license": "MIT",+ "engines": {+ "node": ">=10.0.0"+ },+ "peerDependencies": {+ "bufferutil": "^4.0.1",+ "utf-8-validate": ">=5.0.2"+ },+ "peerDependenciesMeta": {+ "bufferutil": {+ "optional": true+ },+ "utf-8-validate": {+ "optional": true+ }+ }+ },+ "node_modules/xml-naming": {+ "version": "0.1.0",+ "resolved": "https://registry.npmjs.org/xml-naming/-/xml-naming-0.1.0.tgz",+ "integrity": "sha512-k8KO9hrMyNk6tUWqUfkTEZbezRRpONVOzUTnc97VnCvyj6Tf9lyUR9EDAIeiVLv56jsMcoXEwjW8Kv5yPY52lw==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/NaturalIntelligence"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=16.0.0"+ }+ },+ "node_modules/y18n": {+ "version": "5.0.8",+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",+ "license": "ISC",+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/yallist": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",+ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/yaml": {+ "version": "2.9.0",+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.0.tgz",+ "integrity": "sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA==",+ "license": "ISC",+ "bin": {+ "yaml": "bin.mjs"+ },+ "engines": {+ "node": ">= 14.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/eemeli"+ }+ },+ "node_modules/yargs": {+ "version": "18.0.0",+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-18.0.0.tgz",+ "integrity": "sha512-4UEqdc2RYGHZc7Doyqkrqiln3p9X2DZVxaGbwhn2pi7MrRagKaOcIKe8L3OxYcbhXLgLFUS3zAYuQjKBQgmuNg==",+ "license": "MIT",+ "dependencies": {+ "cliui": "^9.0.1",+ "escalade": "^3.1.1",+ "get-caller-file": "^2.0.5",+ "string-width": "^7.2.0",+ "y18n": "^5.0.5",+ "yargs-parser": "^22.0.0"+ },+ "engines": {+ "node": "^20.19.0 || ^22.12.0 || >=23"+ }+ },+ "node_modules/yargs-parser": {+ "version": "22.0.0",+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-22.0.0.tgz",+ "integrity": "sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw==",+ "license": "ISC",+ "engines": {+ "node": "^20.19.0 || ^22.12.0 || >=23"+ }+ },+ "node_modules/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/youch": {+ "version": "4.1.0-beta.10",+ "resolved": "https://registry.npmjs.org/youch/-/youch-4.1.0-beta.10.tgz",+ "integrity": "sha512-rLfVLB4FgQneDr0dv1oddCVZmKjcJ6yX6mS4pU82Mq/Dt9a3cLZQ62pDBL4AUO+uVrCvtWz3ZFUL2HFAFJ/BXQ==",+ "license": "MIT",+ "dependencies": {+ "@poppinss/colors": "^4.1.5",+ "@poppinss/dumper": "^0.6.4",+ "@speed-highlight/core": "^1.2.7",+ "cookie": "^1.0.2",+ "youch-core": "^0.3.3"+ }+ },+ "node_modules/youch-core": {+ "version": "0.3.3",+ "resolved": "https://registry.npmjs.org/youch-core/-/youch-core-0.3.3.tgz",+ "integrity": "sha512-ho7XuGjLaJ2hWHoK8yFnsUGy2Y5uDpqSTq1FkHLK4/oqKtyUU1AFbOOxY4IpC9f0fTLjwYbslUz0Po5BpD1wrA==",+ "license": "MIT",+ "dependencies": {+ "@poppinss/exception": "^1.2.2",+ "error-stack-parser-es": "^1.0.5"+ }+ },+ "node_modules/zod": {+ "version": "4.4.3",+ "resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz",+ "integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==",+ "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"+ }+ }+ }+}diff --git a/package.json b/package.jsonindex d49cdfc..6d9d2a2 100644--- a/package.json+++ b/package.json@@ -1,21 +1,22 @@{- "name": "email-platform",- "version": "0.1.0",+ "name": "mailflare-team",+ "version": "0.1.11","private": true,"scripts": {"dev": "next dev","build": "next build","start": "next start","lint": "next lint",- "deploy": "npm run db:migrate:remote && opennextjs-cloudflare build && opennextjs-cloudflare deploy",- "upload": "opennextjs-cloudflare build && opennextjs-cloudflare upload",+ "deploy": "opennextjs-cloudflare build && npm run deploy:worker",+ "deploy:worker": "OPEN_NEXT_DEPLOY=true wrangler deploy",+ "deploy:with-migrations": "npm run db:migrate:remote && npm run deploy",+ "upload": "opennextjs-cloudflare build && OPEN_NEXT_DEPLOY=true wrangler versions upload","preview": "opennextjs-cloudflare build && opennextjs-cloudflare preview","cf-typegen": "wrangler types --env-interface CloudflareEnv ./cloudflare-env.d.ts","db:generate": "drizzle-kit generate","db:migrate:local": "wrangler d1 migrations apply DB --local","db:migrate:remote": "wrangler d1 migrations apply DB --remote",- "db:m:l": "npm run db:migrate:local",- "db:m:r": "npm run db:migrate:remote",+ "migrate": "wrangler d1 migrations apply DB","db:seed": "curl -X POST http://localhost:3000/api/seed"},"cloudflare": {@@ -23,11 +24,32 @@"CF_TOKEN": {"description": "Runtime Cloudflare API token used by Mailflare onboarding to call the Zones and Email Routing APIs. Cloudflare's deploy/build token is not passed to the app, so create this separately at https://dash.cloudflare.com/profile/api-tokens with `Zone Read`, `Email Routing Edit`, `Email Sending Edit`, and `Email Routing Rules Write` permissions for the zones you will connect. Paste only the token secret value, without `Bearer`."},- "CF_ACCOUNT_ID": {+ "CF_AID": {"description": "Optional Cloudflare account ID. Leave blank unless your API token can access multiple accounts."},+ "D1_DATABASE_ID": {+ "description": "Cloudflare D1 database ID for the mailflare database. Required for automatic database backups."+ },+ "D1_BACKUP_TOKEN": {+ "description": "Cloudflare API token with D1 Read permission for the target database. Store this as a secret; it is used only to export backups."+ },+ "TURNSTILE_SECRET_KEY": {+ "description": "Cloudflare Turnstile secret key used to verify login and first-run registration challenges. Pair with NEXT_PUBLIC_TURNSTILE_SITE_KEY at build time."+ },+ "NEXT_PUBLIC_TURNSTILE_SITE_KEY": {+ "description": "Cloudflare Turnstile public site key used by the login and first-run registration widgets."+ },"CF_EMAIL_WORKER_NAME": {- "description": "Worker name used when creating Cloudflare Email Routing rules. Keep this aligned with the `name` in `wrangler.jsonc`; the template default is `mailflare`."+ "description": "Worker name used when creating Cloudflare Email Routing rules. Set this to the deployed Worker name; if you rename the Worker, update this value too."+ },+ "GITHUB_UPDATE_TOKEN": {+ "description": "Fine-grained GitHub token for the installation repository with Actions: write permission, Contents: write read permission. Used only by the admin update endpoint to dispatch update.yml."+ },+ "GITHUB_UPDATE_REF": {+ "description": "Optional branch used to dispatch updates. Leave blank to use the repository default branch."+ },+ "GITHUB_UPDATE_REPO": {+ "description": "Your github repository that connect to cloudflare worker"},"CF_EMAIL": {"description": "Legacy Global API Key auth only. Use this with `CF_API_KEY` instead of `CF_TOKEN`."@@ -77,6 +99,6 @@"eslint-config-next": "16.2.6","tailwindcss": "^4","typescript": "^5.7.4",- "wrangler": "^4.93.0"+ "wrangler": "^4.98.0"}}diff --git a/src/app/(admin)/accounts/[id]/page.tsx b/src/app/(admin)/accounts/[id]/page.tsxnew file mode 100644index 0000000..14d8052--- /dev/null+++ b/src/app/(admin)/accounts/[id]/page.tsx@@ -0,0 +1,5 @@+import { redirect } from "next/navigation";++export default function AccountDetailPage() {+ redirect("/admin");+}diff --git a/src/app/(admin)/accounts/[id]/types.d.ts b/src/app/(admin)/accounts/[id]/types.d.tsnew file mode 100644index 0000000..71df371--- /dev/null+++ b/src/app/(admin)/accounts/[id]/types.d.ts@@ -0,0 +1,43 @@+export type AccountDetail = {+ id: string;+ email: string;+ name: string;+ resetEmail: string | null;+ role: "admin" | "user";+ disabled?: boolean;+ createdAt: string;+};++export type DomainOption = {+ id: string;+ hostname: string;+};++export type AccountMailboxItem = {+ id: string;+ domainId: string;+ localPart: string;+ hostname: string;+ displayName: string | null;+ type: "personal" | "shared";+ createdAt: string;+};++export type AccountMailboxAccessItem = {+ mailboxId: string;+ localPart: string;+ hostname: string;+ displayName: string | null;+ permission: "read_only" | "send_as" | "send_on_behalf" | "full_access" | null;+};++export type AccountMailboxAccessResponse = {+ account?: AccountDetail;+ access?: AccountMailboxAccessItem[];+ error?: string;+};++export type AccountDetailResponse = {+ account?: AccountDetail;+ error?: string;+};diff --git a/src/app/(admin)/accounts/[id]/utils.ts b/src/app/(admin)/accounts/[id]/utils.tsnew file mode 100644index 0000000..9dd8960--- /dev/null+++ b/src/app/(admin)/accounts/[id]/utils.ts@@ -0,0 +1,100 @@+import { authFetch } from "@/lib/auth/client";+import type {+ AccountDetail,+ AccountDetailResponse,+ AccountMailboxAccessItem,+ AccountMailboxAccessResponse,+ AccountMailboxItem,+ DomainOption,+} from "./types";++export const permissionLabels: Record<NonNullable<AccountMailboxAccessItem["permission"]>, string> = {+ read_only: "Read Only",+ send_as: "Send As",+ send_on_behalf: "Send on Behalf",+ full_access: "Full Access",+};++export async function fetchAccountMailboxAccess(accountId: string): Promise<AccountMailboxAccessResponse> {+ const res = await authFetch(`/api/accounts/${accountId}/mailbox-access`);+ const json = (await res.json()) as AccountMailboxAccessResponse;+ if (!res.ok) throw new Error(json.error ?? "Failed to load account access");+ return json;+}++export async function fetchAccount(accountId: string): Promise<AccountDetail> {+ const res = await authFetch(`/api/accounts/${accountId}`);+ const json = (await res.json()) as AccountDetailResponse;+ if (!res.ok || !json.account) throw new Error(json.error ?? "Failed to load account");+ return json.account;+}++export async function updateAccount(+ accountId: string,+ input: { email: string; name: string; password?: string; disabled: boolean },+): Promise<void> {+ const res = await authFetch(`/api/accounts/${accountId}`, {+ method: "PATCH",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify(input),+ });+ const json = (await res.json()) as { error?: string };+ if (!res.ok) throw new Error(json.error ?? "Failed to update account");+}++export async function fetchDomains(): Promise<DomainOption[]> {+ const res = await authFetch("/api/domains");+ const json = (await res.json()) as { domains?: DomainOption[]; error?: string };+ if (!res.ok) throw new Error(json.error ?? "Failed to load domains");+ return json.domains ?? [];+}++export async function fetchAccountMailboxes(accountId: string): Promise<AccountMailboxItem[]> {+ const res = await authFetch(`/api/accounts/${accountId}/mailboxes`);+ const json = (await res.json()) as { mailboxes?: AccountMailboxItem[]; error?: string };+ if (!res.ok) throw new Error(json.error ?? "Failed to load account mailboxes");+ return json.mailboxes ?? [];+}++export async function createAccountMailbox(+ accountId: string,+ input: { domainId: string; localPart: string; displayName?: string },+): Promise<void> {+ const res = await authFetch(`/api/accounts/${accountId}/mailboxes`, {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify(input),+ });+ const json = (await res.json()) as { error?: string };+ if (!res.ok) throw new Error(json.error ?? "Failed to create mailbox");+}++export async function grantAccountMailboxAccess(+ accountId: string,+ mailboxId: string,+ permission: NonNullable<AccountMailboxAccessItem["permission"]>,+): Promise<void> {+ const res = await authFetch(`/api/accounts/${accountId}/mailbox-access`, {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({ mailboxId, permission }),+ });+ const json = (await res.json()) as { error?: string };+ if (!res.ok) throw new Error(json.error ?? "Failed to update access");+}++export async function revokeAccountMailboxAccess(accountId: string, mailboxId: string): Promise<void> {+ const res = await authFetch(`/api/accounts/${accountId}/mailbox-access?mailboxId=${encodeURIComponent(mailboxId)}`, {+ method: "DELETE",+ });+ const json = (await res.json()) as { error?: string };+ if (!res.ok) throw new Error(json.error ?? "Failed to remove access");+}++export function getMailboxAddress(mailbox: Pick<AccountMailboxAccessItem, "localPart" | "hostname">): string {+ return `${mailbox.localPart}@${mailbox.hostname}`;+}++export function getMailboxLabel(mailbox: Pick<AccountMailboxAccessItem, "displayName" | "localPart">): string {+ return mailbox.displayName?.trim() || mailbox.localPart;+}diff --git a/src/app/(admin)/accounts/page.tsx b/src/app/(admin)/accounts/page.tsxnew file mode 100644index 0000000..d6c2b10--- /dev/null+++ b/src/app/(admin)/accounts/page.tsx@@ -0,0 +1,5 @@+import { redirect } from "next/navigation";++export default function AccountsPage() {+ redirect("/admin");+}diff --git a/src/app/(admin)/accounts/types.d.ts b/src/app/(admin)/accounts/types.d.tsnew file mode 100644index 0000000..e3e0a00--- /dev/null+++ b/src/app/(admin)/accounts/types.d.ts@@ -0,0 +1,17 @@+export type Domain = {+ id: string;+ hostname: string;+};++export type Account = {+ id: string;+ email: string;+ name: string;+ resetEmail: string | null;+ role: "admin" | "user";+ disabled?: boolean;+ createdAt: string;+ mailboxId?: string | null;+ localPart?: string | null;+ hostname?: string | null;+};diff --git a/src/app/(admin)/accounts/utils.ts b/src/app/(admin)/accounts/utils.tsnew file mode 100644index 0000000..4806047--- /dev/null+++ b/src/app/(admin)/accounts/utils.ts@@ -0,0 +1,19 @@+import type { Account } from "./types";++export function getAccountInitials(account: Pick<Account, "name" | "email">): string {+ const source = account.name.trim() || account.email;+ return source.slice(0, 1).toUpperCase();+}++export function getAccountMailbox(account: Pick<Account, "localPart" | "hostname" | "email">): string {+ if (account.localPart && account.hostname) return `${account.localPart}@${account.hostname}`;+ return account.email;+}++export function formatAccountDate(value: string): string {+ return new Intl.DateTimeFormat(undefined, {+ month: "short",+ day: "numeric",+ year: "numeric",+ }).format(new Date(value));+}diff --git a/src/app/(admin)/activity/page.tsx b/src/app/(admin)/activity/page.tsxnew file mode 100644index 0000000..515309c--- /dev/null+++ b/src/app/(admin)/activity/page.tsx@@ -0,0 +1,66 @@+"use client";++import { useQuery } from "@tanstack/react-query";+import { LogIn, LogOut } from "lucide-react";+import { Badge } from "@/components/ui/badge";+import { SkeletonRows } from "@/components/ui/skeleton";+import {+ fetchActivity,+ formatActivityDate,+ getActivityLabel,+ getActivityMetadata,+} from "./utils";++export default function ActivityPage() {+ const activity = useQuery({+ queryKey: ["activity"],+ queryFn: fetchActivity,+ });++ return (+ <div className="space-y-6">+ <div>+ <h1 className="text-2xl font-semibold text-neutral-900">Activity</h1>+ <p className="mt-1 text-sm text-neutral-500">Login and logout activity across user accounts.</p>+ </div>++ <section className="overflow-x-auto rounded-lg border border-neutral-200 bg-white">+ <div className="grid min-w-[980px] grid-cols-[110px_1.2fr_130px_130px_110px_110px_120px_170px] gap-4 border-b border-neutral-100 bg-neutral-50 px-4 py-2 text-xs font-semibold uppercase tracking-wide text-neutral-500">+ <span>Activity</span>+ <span>User</span>+ <span>IP Address</span>+ <span>City</span>+ <span>Country</span>+ <span>Device</span>+ <span>Platform</span>+ <span>Time</span>+ </div>+ {activity.isLoading && <SkeletonRows count={7} />}+ {!activity.isLoading && (activity.data ?? []).length === 0 && (+ <p className="px-4 py-3 text-sm text-neutral-500">No login or logout activity yet</p>+ )}+ {(activity.data ?? []).map((log) => {+ const metadata = getActivityMetadata(log);+ const Icon = log.action === "auth.logout" ? LogOut : LogIn;+ return (+ <div key={log.id} className="grid min-w-[980px] grid-cols-[110px_1.2fr_130px_130px_110px_110px_120px_170px] gap-4 border-b border-neutral-100 px-4 py-3 last:border-b-0">+ <div className="min-w-0">+ <Badge variant="outline" className="gap-1">+ <Icon className="h-3 w-3" />+ {getActivityLabel(log.action)}+ </Badge>+ </div>+ <p className="truncate no-font-mono text-sm text-neutral-700">{log.actorEmail ?? "Unknown"}</p>+ <p className="truncate no-font-mono text-sm text-neutral-700">{metadata.ipAddress ?? "Unknown"}</p>+ <p className="truncate text-sm text-neutral-700">{metadata.city || "Unknown"}</p>+ <p className="truncate text-sm text-neutral-700">{metadata.country || "Unknown"}</p>+ <p className="truncate text-sm text-neutral-700">{metadata.device || "Unknown"}</p>+ <p className="truncate text-sm text-neutral-700">{metadata.platform || "Unknown"}</p>+ <p className="text-sm text-neutral-500">{formatActivityDate(log.createdAt)}</p>+ </div>+ );+ })}+ </section>+ </div>+ );+}diff --git a/src/app/(admin)/activity/types.d.ts b/src/app/(admin)/activity/types.d.tsnew file mode 100644index 0000000..bb44fbb--- /dev/null+++ b/src/app/(admin)/activity/types.d.ts@@ -0,0 +1,16 @@+export type ActivityMetadata = {+ ipAddress?: string;+ city?: string | null;+ country?: string | null;+ device?: string;+ platform?: string;+ userAgent?: string;+};++export type ActivityLog = {+ id: string;+ action: "auth.login" | "auth.logout" | string;+ metadata: string | null;+ createdAt: string;+ actorEmail: string | null;+};diff --git a/src/app/(admin)/activity/utils.ts b/src/app/(admin)/activity/utils.tsnew file mode 100644index 0000000..5e5a4c0--- /dev/null+++ b/src/app/(admin)/activity/utils.ts@@ -0,0 +1,31 @@+import { authFetch } from "@/lib/auth/client";+import type { ActivityLog, ActivityMetadata } from "./types";++export async function fetchActivity(): Promise<ActivityLog[]> {+ const res = await authFetch("/api/activity");+ const json = (await res.json()) as { activities?: ActivityLog[]; error?: string };+ if (!res.ok) throw new Error(json.error ?? "Failed to load activity");+ return json.activities ?? [];+}++export function formatActivityDate(value: string): string {+ return new Intl.DateTimeFormat(undefined, {+ dateStyle: "medium",+ timeStyle: "short",+ }).format(new Date(value));+}++export function getActivityLabel(action: string): string {+ if (action === "auth.login") return "Login";+ if (action === "auth.logout") return "Logout";+ return action;+}++export function getActivityMetadata(log: ActivityLog): ActivityMetadata {+ if (!log.metadata) return {};+ try {+ return JSON.parse(log.metadata) as ActivityMetadata;+ } catch {+ return {};+ }+}diff --git a/src/app/(admin)/admin/page.tsx b/src/app/(admin)/admin/page.tsxindex a6c2600..ecfdcb2 100644--- a/src/app/(admin)/admin/page.tsx+++ b/src/app/(admin)/admin/page.tsx@@ -1,5 +1,6 @@import Link from "next/link";import { Globe2, KeyRound, Mail, Settings, Webhook } from "lucide-react";+import { AdminUpdateCard } from "@/components/admin-update-card";import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";const sections = [@@ -15,29 +16,29 @@ const sections = [description: "Add Cloudflare domains and inspect DNS state.",icon: Globe2,},- {- href: "/api-keys",- title: "API Keys",- description: "Manage API credentials for programmatic access.",- icon: KeyRound,- },- {- href: "/webhooks",- title: "Webhooks",- description: "Send mail events to external systems.",- icon: Webhook,- },- {- href: "/settings",- title: "Account",- description: "View personal account and platform configuration.",- icon: Settings,- },+ // {+ // href: "/api-keys",+ // title: "API Keys",+ // description: "Manage API credentials for programmatic access.",+ // icon: KeyRound,+ // },+ // {+ // href: "/webhooks",+ // title: "Webhooks",+ // description: "Send mail events to external systems.",+ // icon: Webhook,+ // },+ // {+ // href: "/settings",+ // title: "Account",+ // description: "View personal account and platform configuration.",+ // icon: Settings,+ // },];export default function AdminSettingsPage() {return (- <div className="h-full overflow-auto">+ <div><div className="mb-8"><h1 className="text-2xl font-normal text-neutral-900">Admin settings</h1><p className="mt-2 text-sm text-neutral-500">@@ -65,6 +66,9 @@ export default function AdminSettingsPage() {);})}</div>+ <div className="mt-8">+ <AdminUpdateCard />+ </div></div>);}diff --git a/src/app/(admin)/api-keys/page.tsx b/src/app/(admin)/api-keys/page.tsxindex c506d5d..be00f94 100644--- a/src/app/(admin)/api-keys/page.tsx+++ b/src/app/(admin)/api-keys/page.tsx@@ -16,6 +16,7 @@ import {} from "@/components/ui/dialog";import { Input } from "@/components/ui/input";import { Label } from "@/components/ui/label";+import { CardGridSkeleton } from "@/components/page-skeletons";import { authFetch } from "@/lib/auth/client";import type { ApiKey } from "./types";import { parseApiKeyScopes } from "./utils";@@ -96,9 +97,7 @@ export default function ApiKeysPage() {<span className="text-sm text-neutral-500">{(data?.apiKeys ?? []).length} total</span></div>{isLoading && (- <p className="rounded-lg border border-neutral-200 bg-white px-4 py-3 text-sm text-neutral-500">- Loading API keys...- </p>+ <CardGridSkeleton />)}{!isLoading && (data?.apiKeys ?? []).length === 0 && (<p className="rounded-lg border border-neutral-200 bg-white px-4 py-3 text-sm text-neutral-500">@@ -116,7 +115,7 @@ export default function ApiKeysPage() {</span><span className="min-w-0 flex-1 space-y-2"><span className="block truncate text-sm font-semibold text-neutral-900">{key.name}</span>- <span className="block truncate font-mono text-sm text-neutral-500">{key.prefix}...</span>+ <span className="block truncate no-font-mono text-sm text-neutral-500">{key.prefix}...</span><span className="flex flex-wrap gap-1">{parseApiKeyScopes(key.scopes).map((scope) => (<Badge key={scope} variant="outline">diff --git a/src/app/(admin)/audit-logs/page.tsx b/src/app/(admin)/audit-logs/page.tsxnew file mode 100644index 0000000..ee05b51--- /dev/null+++ b/src/app/(admin)/audit-logs/page.tsx@@ -0,0 +1,5 @@+import { redirect } from "next/navigation";++export default function AuditLogsRedirectPage() {+ redirect("/activity");+}diff --git a/src/app/(admin)/backups/page.tsx b/src/app/(admin)/backups/page.tsxnew file mode 100644index 0000000..a0ffc69--- /dev/null+++ b/src/app/(admin)/backups/page.tsx@@ -0,0 +1,249 @@+"use client";++import { useEffect, useState } from "react";+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";+import { DatabaseBackup, Download, Play, Save, Trash2 } from "lucide-react";+import { Badge } from "@/components/ui/badge";+import { Button } from "@/components/ui/button";+import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";+import { SkeletonRows } from "@/components/ui/skeleton";+import type { BackupItem, BackupSettings } from "./types";+import {+ WEEKDAYS,+ downloadBackup,+ fetchBackups,+ formatBackupDate,+ formatBackupSize,+ getStatusClass,+ removeBackup,+ saveBackupSettings,+ startBackup,+} from "./utils";++export default function BackupsPage() {+ const queryClient = useQueryClient();+ const [settings, setSettings] = useState<BackupSettings | null>(null);+ const backups = useQuery({+ queryKey: ["backups"],+ queryFn: fetchBackups,+ refetchInterval: (query) =>+ query.state.data?.backups.some((backup) => backup.status === "queued" || backup.status === "running")+ ? 5000+ : false,+ });++ useEffect(() => {+ if (backups.data?.settings) setSettings(backups.data.settings);+ }, [backups.data?.settings]);++ const saveSettings = useMutation({+ mutationFn: async () => {+ if (!settings) return;+ await saveBackupSettings(settings);+ },+ onSuccess: () => queryClient.invalidateQueries({ queryKey: ["backups"] }),+ });++ const runBackup = useMutation({+ mutationFn: startBackup,+ onSuccess: () => queryClient.invalidateQueries({ queryKey: ["backups"] }),+ });++ const deleteBackup = useMutation({+ mutationFn: removeBackup,+ onSuccess: () => queryClient.invalidateQueries({ queryKey: ["backups"] }),+ });++ const download = useMutation({ mutationFn: downloadBackup });+ const error = backups.error || saveSettings.error || runBackup.error || deleteBackup.error || download.error;++ return (+ <div className="space-y-6">+ <div className="flex items-start justify-between gap-4">+ <div>+ <h1 className="text-2xl font-semibold text-neutral-900">Database Backups</h1>+ <p className="mt-1 text-sm text-neutral-500">+ Create full D1 SQL exports and store them in the configured R2 bucket.+ </p>+ </div>+ <Button onClick={() => runBackup.mutate()} disabled={runBackup.isPending}>+ <Play className="h-4 w-4" />+ {runBackup.isPending ? "Starting..." : "Back up now"}+ </Button>+ </div>++ {error && (+ <p className="rounded-lg border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-700">+ {error instanceof Error ? error.message : "Backup operation failed"}+ </p>+ )}++ <Card>+ <CardHeader>+ <CardTitle>Automatic backup</CardTitle>+ <CardDescription>+ The schedule runs at 02:00 UTC. Monthly schedules are limited to days 1-28.+ </CardDescription>+ </CardHeader>+ <CardContent className="space-y-5">+ {settings && (+ <>+ <label className="flex items-center gap-3 text-sm font-medium">+ <input+ type="checkbox"+ checked={settings.enabled}+ onChange={(event) => setSettings({ ...settings, enabled: event.target.checked })}+ className="h-4 w-4 rounded border-neutral-300"+ />+ Enable automatic backups+ </label>++ <div className="grid gap-4 md:grid-cols-2">+ <div className="space-y-2">+ <Label htmlFor="schedule-type">Frequency</Label>+ <select+ id="schedule-type"+ value={settings.scheduleType}+ onChange={(event) => {+ const scheduleType = event.target.value as BackupSettings["scheduleType"];+ setSettings({+ ...settings,+ scheduleType,+ scheduleValue: scheduleType === "weekly" ? 1 : scheduleType === "monthly" ? 1 : null,+ });+ }}+ className="flex h-10 w-full rounded-md border border-neutral-200 bg-white px-3 text-sm"+ >+ <option value="daily">Daily</option>+ <option value="weekly">Selected day of week</option>+ <option value="monthly">Selected day of month</option>+ </select>+ </div>++ {settings.scheduleType === "weekly" && (+ <div className="space-y-2">+ <Label htmlFor="weekday">Day of week</Label>+ <select+ id="weekday"+ value={settings.scheduleValue ?? 1}+ onChange={(event) => setSettings({ ...settings, scheduleValue: Number(event.target.value) })}+ className="flex h-10 w-full rounded-md border border-neutral-200 bg-white px-3 text-sm"+ >+ {WEEKDAYS.map((day) => (+ <option key={day.value} value={day.value}>{day.label}</option>+ ))}+ </select>+ </div>+ )}++ {settings.scheduleType === "monthly" && (+ <div className="space-y-2">+ <Label htmlFor="month-day">Day of month</Label>+ <Input+ id="month-day"+ type="number"+ min={1}+ max={28}+ value={settings.scheduleValue ?? 1}+ onChange={(event) => setSettings({ ...settings, scheduleValue: Number(event.target.value) })}+ />+ </div>+ )}+ </div>++ <div className="grid gap-4 border-t border-neutral-100 pt-5 md:grid-cols-2">+ <label className="flex items-center gap-3 text-sm font-medium">+ <input+ type="checkbox"+ checked={settings.retentionEnabled}+ onChange={(event) => setSettings({ ...settings, retentionEnabled: event.target.checked })}+ className="h-4 w-4 rounded border-neutral-300"+ />+ Delete old backups automatically+ </label>+ <div className="space-y-2">+ <Label htmlFor="retention-days">Delete backups older than</Label>+ <div className="flex items-center gap-2">+ <Input+ id="retention-days"+ type="number"+ min={1}+ max={3650}+ value={settings.retentionDays}+ disabled={!settings.retentionEnabled}+ onChange={(event) => setSettings({ ...settings, retentionDays: Number(event.target.value) })}+ />+ <span className="text-sm text-neutral-500">days</span>+ </div>+ </div>+ </div>++ <Button onClick={() => saveSettings.mutate()} disabled={saveSettings.isPending}>+ <Save className="h-4 w-4" />+ {saveSettings.isPending ? "Saving..." : "Save settings"}+ </Button>+ </>+ )}+ </CardContent>+ </Card>++ <section className="overflow-hidden rounded-xl border border-neutral-200 bg-white">+ <div className="flex items-center gap-3 border-b border-neutral-100 px-4 py-4">+ <DatabaseBackup className="h-5 w-5 text-neutral-500" />+ <h2 className="font-semibold text-neutral-900">Backup history</h2>+ </div>+ <div className="grid grid-cols-[1fr_110px_110px_170px_120px] gap-4 border-b border-neutral-100 bg-neutral-50 px-4 py-2 text-xs font-semibold uppercase tracking-wide text-neutral-500">+ <span>File</span>+ <span>Status</span>+ <span>Size</span>+ <span>Created</span>+ <span>Actions</span>+ </div>+ {backups.isLoading && <SkeletonRows count={5} />}+ {!backups.isLoading && (backups.data?.backups ?? []).length === 0 && (+ <p className="px-4 py-6 text-sm text-neutral-500">No backups yet.</p>+ )}+ {(backups.data?.backups ?? []).map((backup: BackupItem) => (+ <div key={backup.id} className="grid grid-cols-[1fr_110px_110px_170px_120px] items-center gap-4 border-b border-neutral-100 px-4 py-3 last:border-b-0">+ <div className="min-w-0">+ <p className="truncate text-sm font-medium text-neutral-900">{backup.filename ?? backup.id}</p>+ <p className="truncate text-xs text-neutral-500">+ {backup.trigger === "manual" ? "Manual" : "Scheduled"}+ {backup.error ? `: ${backup.error}` : ""}+ </p>+ </div>+ <Badge variant="outline" className={getStatusClass(backup.status)}>{backup.status}</Badge>+ <span className="text-sm text-neutral-600">{formatBackupSize(backup.size)}</span>+ <span className="text-sm text-neutral-600">{formatBackupDate(backup.createdAt)}</span>+ <div className="flex gap-1">+ <Button+ size="sm"+ variant="ghost"+ title="Download backup"+ disabled={backup.status !== "completed" || download.isPending}+ onClick={() => download.mutate(backup)}+ >+ <Download className="h-4 w-4" />+ </Button>+ <Button+ size="sm"+ variant="ghost"+ title="Delete backup"+ disabled={+ deleteBackup.isPending+ || backup.status === "queued"+ || backup.status === "running"+ }+ onClick={() => deleteBackup.mutate(backup.id)}+ >+ <Trash2 className="h-4 w-4 text-red-600" />+ </Button>+ </div>+ </div>+ ))}+ </section>+ </div>+ );+}diff --git a/src/app/(admin)/backups/types.d.ts b/src/app/(admin)/backups/types.d.tsnew file mode 100644index 0000000..5ec602f--- /dev/null+++ b/src/app/(admin)/backups/types.d.ts@@ -0,0 +1,29 @@+export type BackupScheduleType = "daily" | "weekly" | "monthly";+export type BackupStatus = "queued" | "running" | "completed" | "failed";++export type BackupSettings = {+ id: string;+ enabled: boolean;+ scheduleType: BackupScheduleType;+ scheduleValue: number | null;+ retentionEnabled: boolean;+ retentionDays: number;+ updatedAt: string;+};++export type BackupItem = {+ id: string;+ status: BackupStatus;+ trigger: "manual" | "scheduled";+ filename: string | null;+ size: number | null;+ error: string | null;+ createdAt: string;+ startedAt: string | null;+ completedAt: string | null;+};++export type BackupsResponse = {+ settings: BackupSettings;+ backups: BackupItem[];+};diff --git a/src/app/(admin)/backups/utils.ts b/src/app/(admin)/backups/utils.tsnew file mode 100644index 0000000..4afb0ba--- /dev/null+++ b/src/app/(admin)/backups/utils.ts@@ -0,0 +1,80 @@+import { authFetch } from "@/lib/auth/client";+import type { BackupItem, BackupsResponse, BackupSettings } from "./types";++export const WEEKDAYS = [+ { value: 0, label: "Sunday" },+ { value: 1, label: "Monday" },+ { value: 2, label: "Tuesday" },+ { value: 3, label: "Wednesday" },+ { value: 4, label: "Thursday" },+ { value: 5, label: "Friday" },+ { value: 6, label: "Saturday" },+];++export async function fetchBackups(): Promise<BackupsResponse> {+ const response = await authFetch("/api/backups");+ const data = (await response.json()) as BackupsResponse & { error?: string };+ if (!response.ok) throw new Error(data.error ?? "Failed to load backups");+ return data;+}++export async function saveBackupSettings(settings: BackupSettings): Promise<void> {+ const response = await authFetch("/api/backups", {+ method: "PUT",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify(settings),+ });+ const data = (await response.json()) as { error?: string };+ if (!response.ok) throw new Error(data.error ?? "Failed to save backup settings");+}++export async function startBackup(): Promise<void> {+ const response = await authFetch("/api/backups", { method: "POST" });+ const data = (await response.json()) as { error?: string };+ if (!response.ok) throw new Error(data.error ?? "Failed to start backup");+}++export async function removeBackup(id: string): Promise<void> {+ const response = await authFetch(`/api/backups/${id}`, { method: "DELETE" });+ const data = (await response.json()) as { error?: string };+ if (!response.ok) throw new Error(data.error ?? "Failed to delete backup");+}++export async function downloadBackup(backup: BackupItem): Promise<void> {+ const response = await authFetch(`/api/backups/${backup.id}/download`);+ if (!response.ok) {+ const data = (await response.json()) as { error?: string };+ throw new Error(data.error ?? "Failed to download backup");+ }+ const blob = await response.blob();+ const url = URL.createObjectURL(blob);+ const link = document.createElement("a");+ link.href = url;+ link.download = backup.filename ?? `${backup.id}.sql`;+ document.body.appendChild(link);+ link.click();+ link.remove();+ URL.revokeObjectURL(url);+}++export function formatBackupDate(value: string | null): string {+ if (!value) return "-";+ return new Intl.DateTimeFormat(undefined, {+ dateStyle: "medium",+ timeStyle: "short",+ }).format(new Date(value));+}++export function formatBackupSize(value: number | null): string {+ if (value === null) return "-";+ if (value < 1024) return `${value} B`;+ if (value < 1024 * 1024) return `${(value / 1024).toFixed(1)} KB`;+ return `${(value / (1024 * 1024)).toFixed(1)} MB`;+}++export function getStatusClass(status: BackupItem["status"]): string {+ if (status === "completed") return "border-green-200 bg-green-50 text-green-700";+ if (status === "failed") return "border-red-200 bg-red-50 text-red-700";+ if (status === "running") return "border-blue-200 bg-blue-50 text-blue-700";+ return "border-amber-200 bg-amber-50 text-amber-700";+}diff --git a/src/app/(admin)/domains/DomainItemCard.tsx b/src/app/(admin)/domains/DomainItemCard.tsxnew file mode 100644index 0000000..f0f753f--- /dev/null+++ b/src/app/(admin)/domains/DomainItemCard.tsx@@ -0,0 +1,91 @@+import { Button } from "@/components/ui/button";+import { Badge } from "@/components/ui/badge";+import {+ Check,+ X,+ AlertTriangle,+ ArrowRight,+ Globe2,+ Trash2,+} from "lucide-react";++export default function DomainItemCard({ item, dns, remove, loadDns }: any) {++ return (+ <div+ key={item.id}+ className="flex flex-col gap-3 rounded-lg border border-neutral-200 bg-white p-4 shadow-sm shadow-neutral-100"+ >+ <div className="flex items-start gap-3">+ <span className="flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-neutral-100 text-neutral-600">+ <Globe2 className="h-5 w-5" />+ </span>+ <div className="min-w-0 flex-1">+ <span className="block truncate text-sm font-semibold text-neutral-900">+ {item.hostname}+ </span>+ <div className="mt-2 flex flex-wrap gap-2">+ <Badge variant={item.status === "active" ? "success" : "secondary"}>+ {item.status}+ </Badge>+ {item.routingEnabled && <Badge variant="outline">routing</Badge>}+ {item.sendingEnabled && <Badge variant="outline">sending</Badge>}+ </div>+ </div>+ <div className="flex gap-2">+ <Button variant="outline" size="sm" onClick={() => loadDns(item.id)}>+ DNS+ </Button>+ <Button+ variant="destructive"+ size="sm"+ onClick={() => remove.mutate(item.id)}+ disabled={remove.isPending}+ aria-label={`Remove ${item.hostname}`}+ >+ <Trash2 className="h-4 w-4" />+ </Button>+ </div>+ </div>+ {dns && (+ <div className="flex flex-wrap items-center gap-3 text-xs">+ <span className="flex items-center gap-1 text-neutral-500">+ Routing{" "}+ {dns.routing.configured ? (+ <Check className="h-3.5 w-3.5 text-green-600" />+ ) : (+ <AlertTriangle className="h-3.5 w-3.5 text-amber-500" />+ )}+ </span>+ {dns.routing.missing.length > 0 && (+ <span className="text-red-600 flex items-center gap-1">+ <X className="h-3 w-3" />+ Missing: {dns.routing.missing.join(", ")}+ </span>+ )}+ <span className="text-neutral-300">|</span>+ <span className="flex items-center gap-1 text-neutral-500">+ Sending{" "}+ {dns.sending.configured ? (+ <Check className="h-3.5 w-3.5 text-green-600" />+ ) : (+ <AlertTriangle className="h-3.5 w-3.5 text-amber-500" />+ )}+ </span>+ {dns.sending.records.length > 0 && (+ <span className="text-neutral-500">+ {dns.sending.records.join(", ")}+ </span>+ )}+ <button+ onClick={() => loadDns(item.id)}+ className="flex items-center gap-0.5 text-blue-600 hover:text-blue-800"+ >+ <ArrowRight className="h-3 w-3" />+ details+ </button>+ </div>+ )}+ </div>+ );+}diff --git a/src/app/(admin)/domains/page.tsx b/src/app/(admin)/domains/page.tsxindex 806bae0..ff9b105 100644--- a/src/app/(admin)/domains/page.tsx+++ b/src/app/(admin)/domains/page.tsx@@ -26,6 +26,8 @@ import {} from "lucide-react";import { authFetch } from "@/lib/auth/client";import type { DnsRecord, DnsStatusSummary, Domain } from "./types";+import DomainItemCard from "./DomainItemCard";+import { CardGridSkeleton } from "@/components/page-skeletons";export default function DomainsPage() {const qc = useQueryClient();@@ -138,9 +140,7 @@ export default function DomainsPage() {<span className="text-sm text-neutral-500">{(data?.domains ?? []).length} total</span></div> */}{isLoading && (- <p className="rounded-lg border border-neutral-200 bg-white px-4 py-3 text-sm text-neutral-500">- Loading DNS status...- </p>+ <CardGridSkeleton />)}{!isLoading && (data?.domains ?? []).length === 0 && (<p className="rounded-lg border border-neutral-200 bg-white px-4 py-3 text-sm text-neutral-500">@@ -151,93 +151,13 @@ export default function DomainsPage() {{(data?.domains ?? []).map((d) => {const dns = data?.dns?.[d.id];return (- <div+ <DomainItemCardkey={d.id}- className="flex min-h-36 flex-col gap-3 rounded-lg border border-neutral-200 bg-white p-4 shadow-sm shadow-neutral-100"- >- <div className="flex items-start gap-3">- <span className="flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-neutral-100 text-neutral-600">- <Globe2 className="h-5 w-5" />- </span>- <div className="min-w-0 flex-1">- <span className="block truncate font-mono text-sm font-semibold text-neutral-900">- {d.hostname}- </span>- <div className="mt-2 flex flex-wrap gap-2">- <Badge- variant={- d.status === "active" ? "success" : "secondary"- }- >- {d.status}- </Badge>- {d.routingEnabled && (- <Badge variant="outline">routing</Badge>- )}- {d.sendingEnabled && (- <Badge variant="outline">sending</Badge>- )}- </div>- </div>- <div className="flex gap-2">- <Button- variant="outline"- size="sm"- onClick={() => loadDns(d.id)}- >- DNS- </Button>- <Button- variant="destructive"- size="sm"- onClick={() => remove.mutate(d.id)}- disabled={remove.isPending}- aria-label={`Remove ${d.hostname}`}- >- <Trash2 className="h-4 w-4" />- </Button>- </div>- </div>- {dns && (- <div className="flex flex-wrap items-center gap-3 text-xs">- <span className="flex items-center gap-1 text-neutral-500">- Routing{" "}- {dns.routing.configured ? (- <Check className="h-3.5 w-3.5 text-green-600" />- ) : (- <AlertTriangle className="h-3.5 w-3.5 text-amber-500" />- )}- </span>- {dns.routing.missing.length > 0 && (- <span className="text-red-600 flex items-center gap-1">- <X className="h-3 w-3" />- Missing: {dns.routing.missing.join(", ")}- </span>- )}- <span className="text-neutral-300">|</span>- <span className="flex items-center gap-1 text-neutral-500">- Sending{" "}- {dns.sending.configured ? (- <Check className="h-3.5 w-3.5 text-green-600" />- ) : (- <AlertTriangle className="h-3.5 w-3.5 text-amber-500" />- )}- </span>- {dns.sending.records.length > 0 && (- <span className="text-neutral-500">- {dns.sending.records.join(", ")}- </span>- )}- <button- onClick={() => loadDns(d.id)}- className="flex items-center gap-0.5 text-blue-600 hover:text-blue-800"- >- <ArrowRight className="h-3 w-3" />- details- </button>- </div>- )}- </div>+ dns={dns}+ loadDns={loadDns}+ item={d}+ remove={remove}+ />);})}</div>@@ -247,7 +167,7 @@ export default function DomainsPage() {<CardHeader><CardTitle>DNS — {dnsView.domain.hostname}</CardTitle></CardHeader>- <CardContent className="space-y-4 text-xs font-mono">+ <CardContent className="space-y-4 text-xs no-font-mono"><div><p className="font-sans font-medium text-sm mb-2">Email Routingdiff --git a/src/app/(admin)/layout.tsx b/src/app/(admin)/layout.tsxindex e0326ee..95512f3 100644--- a/src/app/(admin)/layout.tsx+++ b/src/app/(admin)/layout.tsx@@ -15,19 +15,20 @@ export default function DashboardLayout({children: React.ReactNode;}) {return (- <AuthGuard requireMailbox>+ <AuthGuard requireMailbox requireRole="admin"><MailboxProvider><ComposeProvider>- <div className="grid min-h-screen grid-cols-[256px_1fr] bg-[#f6f8fc]">- <aside className="flex flex-col gap-4 px-3 py-4">+ <div className="grid h-[100dvh] grid-cols-[256px_minmax(0,1fr)] overflow-hidden bg-[#f6f8fc]">+ <aside className="min-h-0 overflow-y-auto overscroll-contain px-3 py-4 [scrollbar-gutter:stable]"><AdminNav /></aside>- <div className="flex min-h-screen flex-col">- <header className="flex h-16 items-center gap-4 pr-4 text-sm">- <div className="flex h-12 flex-1 max-w-3xl items-center gap-3 rounded-full bg-[#eaf1fb] px-4 text-neutral-600">+ <div className="flex min-h-0 min-w-0 flex-col">+ <header className="flex h-16 w-full shrink-0 items-center gap-4 pr-4 text-sm">+ <div className="flex h-12 flex-1 items-center gap-3 rounded-full bg-[#eaf1fb] px-4 text-neutral-600"><Search className="h-5 w-5" /><span className="text-[15px]">Search mail</span></div>+<Linkhref="/settings"className="flex h-10 w-10 items-center justify-center rounded-full text-neutral-600 hover:bg-neutral-200"@@ -36,7 +37,7 @@ export default function DashboardLayout({</Link><MailboxSelector /></header>- <main className="flex-1 overflow-hidden rounded-t-3xl bg-white px-12 py-8 w-fit min-w-172">+ <main className="min-h-0 min-w-0 flex-1 overflow-y-auto overscroll-contain rounded-t-3xl bg-white px-12 py-8 [scrollbar-gutter:stable]">{children}</main></div>diff --git a/src/app/(admin)/loading.tsx b/src/app/(admin)/loading.tsxnew file mode 100644index 0000000..daebc9f--- /dev/null+++ b/src/app/(admin)/loading.tsx@@ -0,0 +1,3 @@+import { PageSkeleton } from "@/components/page-skeletons";++export default PageSkeleton;diff --git a/src/app/(admin)/mailboxes/[id]/page.tsx b/src/app/(admin)/mailboxes/[id]/page.tsxindex 5d526b1..a739259 100644--- a/src/app/(admin)/mailboxes/[id]/page.tsx+++ b/src/app/(admin)/mailboxes/[id]/page.tsx@@ -16,7 +16,12 @@ import {} from "@/components/ui/card";import { Input } from "@/components/ui/input";import { Label } from "@/components/ui/label";-import { fetchMailbox, getMailboxAddress, updateMailboxName } from "./utils";+import { Skeleton } from "@/components/ui/skeleton";+import {+ fetchMailbox,+ getMailboxAddress,+ updateMailboxName,+} from "./utils";export default function MailboxSettingsPage() {const params = useParams<{ id: string }>();@@ -60,11 +65,18 @@ export default function MailboxSettingsPage() {<h1 className="truncate text-2xl font-semibold text-neutral-900">{mailbox.data?.displayName || mailbox.data?.localPart || "Mailbox"}</h1>- <p className="mt-1 truncate font-mono text-sm text-neutral-500">- {address || "Loading mailbox..."}- </p>+ {address ? (+ <p className="mt-1 truncate no-font-mono text-sm text-neutral-500">+ {address}+ </p>+ ) : (+ <Skeleton className="mt-2 h-4 w-52" />+ )}+ </div>+ <div className="flex shrink-0 items-center gap-2">+ {mailbox.data?.type === "shared" && <Badge variant="secondary">Shared</Badge>}+ {mailbox.data?.isPrimary && <Badge variant="secondary">Primary</Badge>}</div>- {mailbox.data?.isPrimary && <Badge variant="secondary">Primary</Badge>}</div>{mailbox.isError && (@@ -121,17 +133,17 @@ export default function MailboxSettingsPage() {<CardContent className="grid gap-4 sm:grid-cols-2"><div className="space-y-1"><p className="text-xs font-medium uppercase tracking-wide text-neutral-500">Email</p>- <p className="truncate font-mono text-sm text-neutral-900">{address || "-"}</p>+ <p className="truncate no-font-mono text-sm text-neutral-900">{address || "-"}</p></div><div className="space-y-1"><p className="text-xs font-medium uppercase tracking-wide text-neutral-500">Username</p>- <p className="truncate font-mono text-sm text-neutral-900">+ <p className="truncate no-font-mono text-sm text-neutral-900">{mailbox.data?.localPart ?? "-"}</p></div><div className="space-y-1"><p className="text-xs font-medium uppercase tracking-wide text-neutral-500">Domain</p>- <p className="truncate font-mono text-sm text-neutral-900">+ <p className="truncate no-font-mono text-sm text-neutral-900">{mailbox.data?.hostname ?? "-"}</p></div>diff --git a/src/app/(admin)/mailboxes/[id]/types.d.ts b/src/app/(admin)/mailboxes/[id]/types.d.tsindex c040c00..1f302c3 100644--- a/src/app/(admin)/mailboxes/[id]/types.d.ts+++ b/src/app/(admin)/mailboxes/[id]/types.d.ts@@ -4,6 +4,9 @@ export type MailboxDetail = {domainId: string;localPart: string;displayName: string | null;+ type?: "personal" | "shared";+ permission?: "read_only" | "send_as" | "send_on_behalf" | "full_access";+ disabled?: boolean;createdAt: string;hostname: string;isPrimary?: boolean;diff --git a/src/app/(admin)/mailboxes/page.tsx b/src/app/(admin)/mailboxes/page.tsxindex b02f71a..606a2cc 100644--- a/src/app/(admin)/mailboxes/page.tsx+++ b/src/app/(admin)/mailboxes/page.tsx@@ -15,6 +15,7 @@ import {} from "@/components/ui/dialog";import { Input } from "@/components/ui/input";import { Label } from "@/components/ui/label";+import { CardGridSkeleton } from "@/components/page-skeletons";import { authFetch } from "@/lib/auth/client";import type { Domain, Mailbox } from "./types";import { getMailboxAddress, getMailboxName } from "./utils";@@ -77,7 +78,7 @@ export default function MailboxesPage() {<DialogContent><DialogHeader><DialogTitle>Create mailbox</DialogTitle>- <DialogDescription>Add a mailbox and provision its routing rule automatically.</DialogDescription>+ <DialogDescription>Add an address and provision its routing rule automatically.</DialogDescription></DialogHeader><div className="space-y-4"><div className="space-y-2">@@ -128,9 +129,7 @@ export default function MailboxesPage() {</span></div> */}{mailboxes.isLoading && (- <p className="rounded-lg border border-neutral-200 bg-white px-4 py-3 text-sm text-neutral-500">- Loading mailboxes...- </p>+ <CardGridSkeleton />)}{!mailboxes.isLoading && (mailboxes.data?.mailboxes ?? []).length === 0 && (<p className="rounded-lg border border-neutral-200 bg-white px-4 py-3 text-sm text-neutral-500">@@ -154,10 +153,18 @@ export default function MailboxesPage() {<Mail className="h-5 w-5" /></span><span className="min-w-0 space-y-1">- <span className="block truncate text-sm font-semibold text-neutral-900">- {getMailboxName(mailboxWithHostname)}+ <span className="flex min-w-0 items-center gap-2">+ <span className="block truncate text-sm font-semibold text-neutral-900">+ {getMailboxName(mailboxWithHostname)}+ </span>+ {/* {mailbox.type === "shared" && (+ <span className="inline-flex shrink-0 items-center gap-1 rounded-full bg-blue-50 px-2 py-0.5 text-xs font-medium text-blue-700">+ <UsersRound className="h-3 w-3" />+ Shared+ </span>+ )} */}</span>- <span className="block truncate font-mono text-sm text-neutral-500">+ <span className="block truncate no-font-mono text-sm text-neutral-500">{getMailboxAddress(mailboxWithHostname)}</span></span>diff --git a/src/app/(admin)/mailboxes/types.d.ts b/src/app/(admin)/mailboxes/types.d.tsindex 576e4a1..6fef876 100644--- a/src/app/(admin)/mailboxes/types.d.ts+++ b/src/app/(admin)/mailboxes/types.d.ts@@ -4,6 +4,8 @@ export type Mailbox = {displayName: string | null;domainId: string;hostname: string;+ type?: "personal" | "shared";+ permission?: "read_only" | "send_as" | "send_on_behalf" | "full_access";isPrimary?: boolean;};diff --git a/src/app/(admin)/routing/page.tsx b/src/app/(admin)/routing/page.tsxindex 048cfa1..4a3d555 100644--- a/src/app/(admin)/routing/page.tsx+++ b/src/app/(admin)/routing/page.tsx@@ -1,90 +1,5 @@-"use client";--import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";-import { useState } from "react";-import { Button } from "@/components/ui/button";-import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";-import { Input } from "@/components/ui/input";-import { Label } from "@/components/ui/label";-import { authFetch } from "@/lib/auth/client";+import { redirect } from "next/navigation";export default function RoutingPage() {- const qc = useQueryClient();- const [pattern, setPattern] = useState("*");- const [domainId, setDomainId] = useState("");-- const domains = useQuery({- queryKey: ["domains"],- queryFn: async () => {- const res = await authFetch("/api/domains");- return (await res.json()) as { domains: { id: string; hostname: string }[] };- },- });-- const rules = useQuery({- queryKey: ["routing-rules"],- queryFn: async () => {- const res = await authFetch("/api/routing-rules");- return (await res.json()) as { rules: { id: string; pattern: string; action: string }[] };- },- });-- const create = useMutation({- mutationFn: async () => {- const res = await authFetch("/api/routing-rules", {- method: "POST",- headers: { "Content-Type": "application/json" },- body: JSON.stringify({ domainId, pattern, action: "store", priority: 10 }),- });- if (!res.ok) throw new Error("Failed");- },- onSuccess: () => qc.invalidateQueries({ queryKey: ["routing-rules"] }),- });-- return (- <div className="space-y-6 max-w-2xl">- <h1 className="text-2xl font-semibold">Routing rules</h1>- <Card>- <CardHeader>- <CardTitle>Add rule</CardTitle>- </CardHeader>- <CardContent className="space-y-4">- <div className="space-y-2">- <Label>Domain</Label>- <select- className="w-full h-10 rounded-md border border-neutral-200 px-3 text-sm"- value={domainId}- onChange={(e) => setDomainId(e.target.value)}- >- <option value="">Select</option>- {(domains.data?.domains ?? []).map((d) => (- <option key={d.id} value={d.id}>- {d.hostname}- </option>- ))}- </select>- </div>- <div className="space-y-2">- <Label>Pattern</Label>- <Input value={pattern} onChange={(e) => setPattern(e.target.value)} />- </div>- <Button onClick={() => create.mutate()} disabled={!domainId || create.isPending}>- Add- </Button>- </CardContent>- </Card>- <Card>- <CardHeader>- <CardTitle>Rules</CardTitle>- </CardHeader>- <CardContent className="text-sm font-mono space-y-1">- {(rules.data?.rules ?? []).map((r) => (- <p key={r.id}>- {r.pattern} → {r.action}- </p>- ))}- </CardContent>- </Card>- </div>- );+ redirect("/settings");}diff --git a/src/app/(admin)/webhooks/page.tsx b/src/app/(admin)/webhooks/page.tsxindex 6b234c9..6739262 100644--- a/src/app/(admin)/webhooks/page.tsx+++ b/src/app/(admin)/webhooks/page.tsx@@ -68,7 +68,7 @@ export default function WebhooksPage() {<CardHeader><CardTitle>Endpoints</CardTitle></CardHeader>- <CardContent className="text-sm font-mono space-y-1">+ <CardContent className="text-sm no-font-mono space-y-1">{(data?.webhooks ?? []).map((w) => (<p key={w.id} className="truncate">{w.url}diff --git a/src/app/(dashboard)/archived/[messageId]/page.tsx b/src/app/(dashboard)/archived/[messageId]/page.tsxnew file mode 100644index 0000000..74baa6e--- /dev/null+++ b/src/app/(dashboard)/archived/[messageId]/page.tsx@@ -0,0 +1,3 @@+import Page from "@/app/(dashboard)/inbox/[messageId]/page";++export default Page;diff --git a/src/app/(dashboard)/archived/layout.tsx b/src/app/(dashboard)/archived/layout.tsxnew file mode 100644index 0000000..6edbe8f--- /dev/null+++ b/src/app/(dashboard)/archived/layout.tsx@@ -0,0 +1,16 @@+"use client";++import { archivedFolderConfig } from "@/components/messages/message-folder-configs";+import { MessageSplitLayout } from "@/components/messages/message-split-layout";++export default function ArchivedLayout({+ children,+}: {+ children: React.ReactNode;+}) {+ return (+ <MessageSplitLayout config={archivedFolderConfig}>+ {children}+ </MessageSplitLayout>+ );+}diff --git a/src/app/(dashboard)/archived/page.tsx b/src/app/(dashboard)/archived/page.tsxnew file mode 100644index 0000000..9a29159--- /dev/null+++ b/src/app/(dashboard)/archived/page.tsx@@ -0,0 +1,8 @@+"use client";++import { archivedFolderConfig } from "@/components/messages/message-folder-configs";+import { MessageFolderPage } from "@/components/messages/message-folder-page";++export default function ArchivedPage() {+ return <MessageFolderPage config={archivedFolderConfig} />;+}diff --git a/src/app/(dashboard)/folders/[folderId]/[messageId]/page.tsx b/src/app/(dashboard)/folders/[folderId]/[messageId]/page.tsxnew file mode 100644index 0000000..74baa6e--- /dev/null+++ b/src/app/(dashboard)/folders/[folderId]/[messageId]/page.tsx@@ -0,0 +1,3 @@+import Page from "@/app/(dashboard)/inbox/[messageId]/page";++export default Page;diff --git a/src/app/(dashboard)/folders/[folderId]/layout.tsx b/src/app/(dashboard)/folders/[folderId]/layout.tsxnew file mode 100644index 0000000..c96ef8d--- /dev/null+++ b/src/app/(dashboard)/folders/[folderId]/layout.tsx@@ -0,0 +1,16 @@+"use client";++import { useParams } from "next/navigation";+import { MessageSplitLayout } from "@/components/messages/message-split-layout";+import { useCustomFolderConfig } from "@/components/messages/use-custom-folder-config";++export default function CustomFolderLayout({+ children,+}: {+ children: React.ReactNode;+}) {+ const params = useParams<{ folderId: string }>();+ const config = useCustomFolderConfig(params.folderId);++ return <MessageSplitLayout config={config}>{children}</MessageSplitLayout>;+}diff --git a/src/app/(dashboard)/folders/[folderId]/page.tsx b/src/app/(dashboard)/folders/[folderId]/page.tsxnew file mode 100644index 0000000..85cbf8d--- /dev/null+++ b/src/app/(dashboard)/folders/[folderId]/page.tsx@@ -0,0 +1,12 @@+"use client";++import { useParams } from "next/navigation";+import { MessageFolderPage } from "@/components/messages/message-folder-page";+import { useCustomFolderConfig } from "@/components/messages/use-custom-folder-config";++export default function CustomFolderPage() {+ const params = useParams<{ folderId: string }>();+ const config = useCustomFolderConfig(params.folderId);++ return <MessageFolderPage config={config} />;+}diff --git a/src/app/(dashboard)/folders/[folderId]/types.d.ts b/src/app/(dashboard)/folders/[folderId]/types.d.tsnew file mode 100644index 0000000..daae00e--- /dev/null+++ b/src/app/(dashboard)/folders/[folderId]/types.d.ts@@ -0,0 +1,4 @@+export type FolderItem = {+ id: string;+ name: string;+};diff --git a/src/app/(dashboard)/import-export/page.tsx b/src/app/(dashboard)/import-export/page.tsxnew file mode 100644index 0000000..70b1a2c--- /dev/null+++ b/src/app/(dashboard)/import-export/page.tsx@@ -0,0 +1,5 @@+import { redirect } from "next/navigation";++export default function ImportExportRedirectPage() {+ redirect("/settings/import");+}diff --git a/src/app/(dashboard)/inbox/[messageId]/cloud-attachment-types.d.ts b/src/app/(dashboard)/inbox/[messageId]/cloud-attachment-types.d.tsnew file mode 100644index 0000000..8f87dba--- /dev/null+++ b/src/app/(dashboard)/inbox/[messageId]/cloud-attachment-types.d.ts@@ -0,0 +1,11 @@+export interface CloudAttachment {+ filename: string;+ id: string;+ provider: "OneDrive";+ url: string;+}++export interface CloudAttachmentExtraction {+ attachments: CloudAttachment[];+ content: string;+}diff --git a/src/app/(dashboard)/inbox/[messageId]/cloud-attachment-utils.ts b/src/app/(dashboard)/inbox/[messageId]/cloud-attachment-utils.tsnew file mode 100644index 0000000..daf647e--- /dev/null+++ b/src/app/(dashboard)/inbox/[messageId]/cloud-attachment-utils.ts@@ -0,0 +1,49 @@+import type {+ CloudAttachment,+ CloudAttachmentExtraction,+} from "./cloud-attachment-types";++const ZERO_WIDTH_RE = /[\u200B-\u200D\u2060\uFEFF]/g;+const OUTLOOK_CLOUD_ATTACHMENT_RE =+ /^\s*\[(https?:\/\/[^\]\s]+)\]([^<\r\n]+)<(https?:\/\/[^>\s]+)>\s*$/gm;++function isMicrosoftCloudFileUrl(value: string): boolean {+ try {+ const hostname = new URL(value).hostname.toLowerCase();+ return (+ hostname === "1drv.ms" ||+ hostname === "onedrive.live.com" ||+ hostname.endsWith(".sharepoint.com")+ );+ } catch {+ return false;+ }+}++export function extractCloudAttachments(content: string): CloudAttachmentExtraction {+ const normalized = content.replace(ZERO_WIDTH_RE, "");+ const attachments: CloudAttachment[] = [];++ const body = normalized.replace(+ OUTLOOK_CLOUD_ATTACHMENT_RE,+ (fullMatch, _iconUrl: string, rawFilename: string, fileUrl: string) => {+ if (!isMicrosoftCloudFileUrl(fileUrl)) return fullMatch;++ const filename = rawFilename.trim();+ if (!filename) return fullMatch;++ attachments.push({+ id: `${fileUrl}-${attachments.length}`,+ filename,+ provider: "OneDrive",+ url: fileUrl,+ });+ return "";+ },+ );++ return {+ attachments,+ content: body.replace(/\n{3,}/g, "\n\n").trim(),+ };+}diff --git a/src/app/(dashboard)/inbox/[messageId]/email-html-sanitizer.ts b/src/app/(dashboard)/inbox/[messageId]/email-html-sanitizer.tsnew file mode 100644index 0000000..b65ac5e--- /dev/null+++ b/src/app/(dashboard)/inbox/[messageId]/email-html-sanitizer.ts@@ -0,0 +1,211 @@+const ALLOWED_TAGS = new Set([+ "a",+ "abbr",+ "address",+ "b",+ "blockquote",+ "br",+ "caption",+ "code",+ "col",+ "colgroup",+ "dd",+ "del",+ "div",+ "dl",+ "dt",+ "em",+ "figcaption",+ "figure",+ "h1",+ "h2",+ "h3",+ "h4",+ "h5",+ "h6",+ "hr",+ "i",+ "img",+ "ins",+ "kbd",+ "li",+ "ol",+ "p",+ "pre",+ "q",+ "s",+ "samp",+ "small",+ "span",+ "strong",+ "sub",+ "sup",+ "table",+ "tbody",+ "td",+ "tfoot",+ "th",+ "thead",+ "tr",+ "u",+ "ul",+]);++const DROP_CONTENT_TAGS = new Set([+ "base",+ "button",+ "embed",+ "form",+ "iframe",+ "input",+ "link",+ "math",+ "meta",+ "object",+ "option",+ "script",+ "select",+ "style",+ "svg",+ "textarea",+]);++const GLOBAL_ATTRIBUTES = new Set(["dir", "lang", "style", "title"]);+const TAG_ATTRIBUTES: Record<string, Set<string>> = {+ a: new Set(["href"]),+ blockquote: new Set(["cite"]),+ col: new Set(["span", "width"]),+ img: new Set(["alt", "height", "src", "width"]),+ li: new Set(["value"]),+ ol: new Set(["start", "type"]),+ table: new Set(["border", "cellpadding", "cellspacing", "width"]),+ td: new Set(["align", "colspan", "rowspan", "valign", "width"]),+ th: new Set(["align", "colspan", "rowspan", "scope", "valign", "width"]),+};++const ALLOWED_STYLE_PROPERTIES = new Set([+ "background-color",+ "border",+ "border-bottom",+ "border-color",+ "border-left",+ "border-radius",+ "border-right",+ "border-style",+ "border-top",+ "border-width",+ "color",+ "display",+ "font-family",+ "font-size",+ "font-style",+ "font-weight",+ "height",+ "letter-spacing",+ "line-height",+ "margin",+ "margin-bottom",+ "margin-left",+ "margin-right",+ "margin-top",+ "max-width",+ "min-width",+ "padding",+ "padding-bottom",+ "padding-left",+ "padding-right",+ "padding-top",+ "text-align",+ "text-decoration",+ "text-indent",+ "text-transform",+ "vertical-align",+ "white-space",+ "width",+ "word-break",+ "word-wrap",+]);++function isSafeLinkUrl(value: string): boolean {+ try {+ const url = new URL(value, window.location.origin);+ return ["http:", "https:", "mailto:", "tel:"].includes(url.protocol);+ } catch {+ return false;+ }+}++function isSafeImageUrl(value: string): boolean {+ if (value.startsWith("/api/messages/")) return true;+ if (/^data:image\/(?:gif|jpeg|png|webp);base64,/i.test(value)) return true;+ try {+ const url = new URL(value, window.location.origin);+ return url.protocol === "http:" || url.protocol === "https:";+ } catch {+ return false;+ }+}++function sanitizeStyle(element: HTMLElement): void {+ const safeDeclarations: string[] = [];+ for (const property of Array.from(element.style)) {+ if (!ALLOWED_STYLE_PROPERTIES.has(property)) continue;+ const value = element.style.getPropertyValue(property);+ if (/url\s*\(|expression\s*\(|javascript:|@import|behavior\s*:|-moz-binding/i.test(value)) continue;+ safeDeclarations.push(`${property}: ${value}`);+ }+ if (safeDeclarations.length) {+ element.setAttribute("style", safeDeclarations.join("; "));+ } else {+ element.removeAttribute("style");+ }+}++function sanitizeElement(element: Element): void {+ const tag = element.tagName.toLowerCase();+ if (!ALLOWED_TAGS.has(tag)) {+ if (DROP_CONTENT_TAGS.has(tag)) {+ element.remove();+ return;+ }+ element.replaceWith(...Array.from(element.childNodes));+ return;+ }++ for (const attribute of Array.from(element.attributes)) {+ const name = attribute.name.toLowerCase();+ const allowed = GLOBAL_ATTRIBUTES.has(name) || TAG_ATTRIBUTES[tag]?.has(name);+ if (!allowed || name.startsWith("on")) element.removeAttribute(attribute.name);+ }++ if (element instanceof HTMLElement) sanitizeStyle(element);++ if (tag === "a") {+ const href = element.getAttribute("href");+ if (!href || !isSafeLinkUrl(href)) {+ element.removeAttribute("href");+ } else {+ element.setAttribute("target", "_blank");+ element.setAttribute("rel", "noopener noreferrer");+ }+ }++ if (tag === "img") {+ const src = element.getAttribute("src");+ if (!src || !isSafeImageUrl(src)) {+ element.remove();+ return;+ }+ element.setAttribute("loading", "lazy");+ element.setAttribute("referrerpolicy", "no-referrer");+ }+}++export function sanitizeEmailHtml(html: string | null): string | null {+ if (!html) return null;+ const document = new DOMParser().parseFromString(html, "text/html");+ for (const element of Array.from(document.body.querySelectorAll("*"))) {+ sanitizeElement(element);+ }+ return document.body.innerHTML;+}diff --git a/src/app/(dashboard)/inbox/[messageId]/page.tsx b/src/app/(dashboard)/inbox/[messageId]/page.tsxindex 40fd44b..6c7499b 100644--- a/src/app/(dashboard)/inbox/[messageId]/page.tsx+++ b/src/app/(dashboard)/inbox/[messageId]/page.tsx@@ -3,112 +3,192 @@import Link from "next/link";import { useParams } from "next/navigation";import { useEffect, useState } from "react";-import { ArrowLeft } from "lucide-react";+import { ArrowLeft, Cloud, ExternalLink } from "lucide-react";import dayjs from "dayjs";import { MarkAsRead } from "@/components/mark-read";import { MessageActions } from "@/components/message-actions/message-actions";+import { MessageAttachmentViewer } from "@/components/message-attachment-viewer";+import { MessageAttachmentCard } from "@/components/message-attachment-card";+import { MessageDetailSkeleton } from "@/components/page-skeletons";+import { PreviousMessage } from "@/components/previous-message";import { getMessageBackHref } from "@/components/message-actions/utils";-import type { MessageDetailResponse } from "./types";-import { fetchMessageDetail, getMessageBodyDisplay, getMessageHeaderParties } from "./utils";+import type { MessageAttachment, MessageDetailResponse } from "./types";+import {+ fetchMessageDetail,+ getMessageBodyDisplay,+ getMessageHeaderParties,+ resolveInlineAttachmentUrls,+} from "./utils";+import { extractCloudAttachments } from "./cloud-attachment-utils";+import { sanitizeEmailHtml } from "./email-html-sanitizer";export default function MessageDetailPage() {- const params = useParams<{ messageId: string }>();- const messageId = params.messageId;- const [data, setData] = useState<MessageDetailResponse | null>(null);- const [loading, setLoading] = useState(true);+ const params = useParams<{ messageId: string }>();+ const messageId = params.messageId;+ const [data, setData] = useState<MessageDetailResponse | null>(null);+ const [loading, setLoading] = useState(true);+ const [previewAttachment, setPreviewAttachment] =+ useState<MessageAttachment | null>(null);- useEffect(() => {- let cancelled = false;+ useEffect(() => {+ let cancelled = false;- async function loadMessage() {- setLoading(true);- const nextData = await fetchMessageDetail(messageId);- if (!cancelled) {- setData(nextData);- setLoading(false);- }- }+ async function loadMessage() {+ setLoading(true);+ const nextData = await fetchMessageDetail(messageId);+ if (!cancelled) {+ setData(nextData);+ setLoading(false);+ }+ }- void loadMessage();- return () => {- cancelled = true;- };- }, [messageId]);+ void loadMessage();+ return () => {+ cancelled = true;+ };+ }, [messageId]);- if (loading) {- return <p className="px-6 py-4 text-sm text-neutral-500">Loading...</p>;- }+ if (loading) {+ return <MessageDetailSkeleton />;+ }- if (!data?.message) {- return <p className="px-6 py-4 text-sm text-neutral-500">{data?.error ?? "Message not found"}</p>;- }+ if (!data?.message) {+ return (+ <p className="px-6 py-4 text-sm text-neutral-500">+ {data?.error ?? "Message not found"}+ </p>+ );+ }- const { message, body } = data;- const { fromName, fromAddress, toName } = getMessageHeaderParties(message);- const bodyDisplay = getMessageBodyDisplay(body?.textBody, body?.htmlBody, message.snippet);+ const { message, body, attachments = [] } = data;+ const { fromName, fromAddress, toName } = getMessageHeaderParties(message);+ const ownAddress =+ message.direction === "inbound" ? message.toAddr : message.fromAddr;+ const bodyDisplay = getMessageBodyDisplay(+ body?.textBody,+ body?.htmlBody,+ message.snippet,+ ownAddress,+ );+ const htmlBody = sanitizeEmailHtml(+ resolveInlineAttachmentUrls(bodyDisplay.htmlBody, message.id, attachments),+ );+ const cloudAttachmentResult = extractCloudAttachments(+ bodyDisplay.latestContent,+ );- return (- <div className="h-full overflow-auto">- {message.direction === "inbound" && !message.read && (- <MarkAsRead messageId={message.id} />- )}- <div className="flex py-2 items-center justify-between px-2">- <div className="flex items-center flex-row gap-6">+ return (+ <div className="h-full overflow-y-auto overscroll-contain scrollbar-gutter-stable">+ {message.direction === "inbound" && !message.read && (+ <MarkAsRead messageId={message.id} />+ )}+ <div className="flex pt-3 pb-2.75 items-center justify-between px-2 border-b border-neutral-200 sticky top-0 bg-white">+ <div className="flex-1" />+ {/* <div className="flex items-center flex-row gap-6"><Linkhref={getMessageBackHref(message.direction, message.status)}className="rounded-full p-2 text-neutral-600 hover:bg-neutral-100"><ArrowLeft className="h-5 w-5" /></Link>- </div>- <MessageActions- messageId={message.id}- direction={message.direction}- status={message.status}- read={message.read}- />- </div>- <article className="px-6">- <h1 className="text-2xl text-neutral-900 mb-4">- {message.subject ?? "(no subject)"}- </h1>+ </div> */}+ <MessageActions+ messageId={message.id}+ mailboxId={message.mailboxId}+ senderAddress={message.fromAddr}+ direction={message.direction}+ status={message.status}+ read={message.read}+ unsubscribeUrl={data.unsubscribeUrl}+ />+ </div>+ <article className="px-6 py-4">+ <h1 className="text-2xl text-neutral-900 mb-4">+ {message.subject ?? "(no subject)"}+ </h1>- <div className="mb-6 flex items-start justify-between border-b border-neutral-100 pb-5">- <div>- <p className="text-sm text-neutral-900">- <b>{fromName}</b> <span className="text-neutral-500"><{fromAddress}></span>- </p>- <p className="text-xs text-neutral-500">- to {toName}- </p>- </div>- <p className="text-xs text-neutral-400">- {dayjs(message.createdAt).format("MMM DD, YYYY, hh:mmA")}- </p>- </div>- <div className="prose max-w-none text-neutral-900">- {bodyDisplay.htmlBody ? (- <div dangerouslySetInnerHTML={{ __html: bodyDisplay.htmlBody }} />- ) : (- <pre className="whitespace-pre-wrap text-sm">- {bodyDisplay.latestContent}- </pre>- )}- {bodyDisplay.quotedContent.map((quotedContent) => (- <blockquote- key={`${quotedContent.dateLine}-${quotedContent.content.slice(0, 24)}`}- className="mt-6 border-l-2 border-neutral-300 pl-4 text-neutral-500"- >- <p className="mb-3 text-xs font-medium text-neutral-400">- {quotedContent.dateLine}- </p>- <pre className="whitespace-pre-wrap text-sm font-sans">- {quotedContent.content}- </pre>- </blockquote>- ))}- </div>- </article>- </div>- );+ <div className="mb-6 flex items-start justify-between border-b border-neutral-100 pb-5">+ <div>+ <p className="text-sm text-neutral-900">+ <b>{fromName}</b>{" "}+ <span className="text-neutral-500"><{fromAddress}></span>+ </p>+ <p className="text-xs text-neutral-500">to {toName}</p>+ </div>+ <p className="text-xs text-neutral-400">+ {dayjs(message.createdAt).format("MMM DD, YYYY, hh:mmA")}+ </p>+ </div>+ <div className="prose max-w-none text-neutral-900">+ {htmlBody ? (+ <div dangerouslySetInnerHTML={{ __html: htmlBody }} />+ ) : (+ <pre className="whitespace-pre-wrap text-sm text">+ {cloudAttachmentResult.content}+ </pre>+ )}+ {bodyDisplay.quotedContent.map((quotedContent) => (+ <PreviousMessage+ key={`${quotedContent.dateLine}-${quotedContent.content.slice(0, 24)}`}+ message={quotedContent}+ />+ ))}+ </div>+ {cloudAttachmentResult.attachments.length > 0 && (+ <section className="mt-8 border-t border-neutral-100 py-6">+ <h2 className="mb-3 text-sm font-semibold text-neutral-900">+ Cloud files ({cloudAttachmentResult.attachments.length})+ </h2>+ <div className="grid gap-2 sm:grid-cols-2">+ {cloudAttachmentResult.attachments.map((attachment) => (+ <a+ key={attachment.id}+ href={attachment.url}+ target="_blank"+ rel="noreferrer"+ className="flex items-center gap-3 rounded-lg border border-neutral-200 p-3 text-left hover:border-blue-200 hover:bg-blue-50/40"+ >+ <Cloud className="h-5 w-5 shrink-0 text-blue-600" />+ <span className="min-w-0 flex-1">+ <span className="block truncate text-sm font-medium text-neutral-900">+ {attachment.filename}+ </span>+ <span className="block text-xs text-neutral-500">+ Open from {attachment.provider}+ </span>+ </span>+ <ExternalLink className="h-4 w-4 shrink-0 text-neutral-400" />+ </a>+ ))}+ </div>+ </section>+ )}+ {attachments.length > 0 && (+ <section className="mt-8 border-t border-neutral-100 py-6">+ <h2 className="mb-3 text-sm font-semibold text-neutral-900">+ Attachments ({attachments.length})+ </h2>+ <div className="grid gap-2 sm:grid-cols-2">+ {attachments.map((attachment) => (+ <MessageAttachmentCard+ key={attachment.id}+ attachment={attachment}+ messageId={message.id}+ onPreview={setPreviewAttachment}+ />+ ))}+ </div>+ </section>+ )}+ </article>+ <MessageAttachmentViewer+ attachment={previewAttachment}+ messageId={message.id}+ open={previewAttachment !== null}+ onOpenChange={(open) => {+ if (!open) setPreviewAttachment(null);+ }}+ />+ </div>+ );}diff --git a/src/app/(dashboard)/inbox/[messageId]/types.d.ts b/src/app/(dashboard)/inbox/[messageId]/types.d.tsindex abfba67..caa501a 100644--- a/src/app/(dashboard)/inbox/[messageId]/types.d.ts+++ b/src/app/(dashboard)/inbox/[messageId]/types.d.ts@@ -7,9 +7,21 @@ export type MessageDetailResponse = {htmlBody: string | null;textBody: string | null;} | null;+ attachments?: MessageAttachment[];+ unsubscribeUrl?: string | null;error?: string;};+export type MessageAttachment = {+ contentId: string | null;+ disposition: "attachment" | "inline";+ filename: string;+ id: string;+ messageId: string;+ size: number;+ type: string;+};+export type MessageBodyDisplay = ReplyContentParts & {htmlBody: string | null;hasQuotedContent: boolean;diff --git a/src/app/(dashboard)/inbox/[messageId]/utils.ts b/src/app/(dashboard)/inbox/[messageId]/utils.tsindex 27a2831..72b868a 100644--- a/src/app/(dashboard)/inbox/[messageId]/utils.ts+++ b/src/app/(dashboard)/inbox/[messageId]/utils.ts@@ -3,7 +3,7 @@ import { getEmailAddress } from "@/lib/email/address";import { getDisplayNameForAddress } from "@/lib/contacts/utils";import { htmlToReadableText, splitRepliedEmailContent } from "@/lib/email/reply-content-utils";import type { Message } from "@/hooks/types";-import type { MessageBodyDisplay, MessageDetailResponse } from "./types";+import type { MessageAttachment, MessageBodyDisplay, MessageDetailResponse } from "./types";export async function fetchMessageDetail(messageId: string): Promise<MessageDetailResponse> {const response = await authFetch(`/api/messages/${messageId}`);@@ -22,9 +22,10 @@ export function getMessageBodyDisplay(textBody: string | null | undefined,htmlBody: string | null | undefined,fallback: string | null | undefined,+ ownAddress?: string,): MessageBodyDisplay {const textSource = textBody ?? (htmlToReadableText(htmlBody) || fallback || "");- const parts = splitRepliedEmailContent(textSource);+ const parts = splitRepliedEmailContent(textSource, { ownAddress });return {...parts,@@ -32,3 +33,30 @@ export function getMessageBodyDisplay(hasQuotedContent: parts.quotedContent.length > 0,};}++export function getAttachmentUrl(messageId: string, attachmentId: string): string {+ return `/api/messages/${messageId}/attachments/${attachmentId}?preview=1`;+}++export function resolveInlineAttachmentUrls(+ htmlBody: string | null,+ messageId: string,+ attachments: MessageAttachment[],+): string | null {+ if (!htmlBody) return null;++ return attachments.reduce((html, attachment) => {+ if (!attachment.contentId) return html;+ const contentId = attachment.contentId.replace(/^<|>$/g, "");+ return html.replaceAll(+ `cid:${contentId}`,+ getAttachmentUrl(messageId, attachment.id),+ );+ }, htmlBody);+}++export function formatAttachmentSize(size: number): string {+ if (size < 1024) return `${size} B`;+ if (size < 1024 * 1024) return `${Math.ceil(size / 1024)} KB`;+ return `${(size / (1024 * 1024)).toFixed(1)} MB`;+}diff --git a/src/app/(dashboard)/inbox/layout.tsx b/src/app/(dashboard)/inbox/layout.tsxnew file mode 100644index 0000000..e7b0aaf--- /dev/null+++ b/src/app/(dashboard)/inbox/layout.tsx@@ -0,0 +1,16 @@+"use client";++import { inboxFolderConfig } from "@/components/messages/message-folder-configs";+import { MessageSplitLayout } from "@/components/messages/message-split-layout";++export default function InboxLayout({+ children,+}: {+ children: React.ReactNode;+}) {+ return (+ <MessageSplitLayout config={inboxFolderConfig}>+ {children}+ </MessageSplitLayout>+ );+}diff --git a/src/app/(dashboard)/inbox/page.tsx b/src/app/(dashboard)/inbox/page.tsxindex e2dd25c..d5cfbd9 100644--- a/src/app/(dashboard)/inbox/page.tsx+++ b/src/app/(dashboard)/inbox/page.tsx@@ -1,20 +1,8 @@"use client";-import { Clock, MailOpen, Star } from "lucide-react";+import { inboxFolderConfig } from "@/components/messages/message-folder-configs";import { MessageFolderPage } from "@/components/messages/message-folder-page";export default function InboxPage() {- return (- <MessageFolderPage- config={{- folder: "inbox",- title: "Inbox",- emptyText: "No emails",- hrefPrefix: "/inbox",- icon: Star,- headerIcons: [MailOpen, Clock],- showRowBadge: false,- }}- />- );+ return <MessageFolderPage config={inboxFolderConfig} />;}diff --git a/src/app/(dashboard)/layout.tsx b/src/app/(dashboard)/layout.tsxindex d47ef25..e42d89d 100644--- a/src/app/(dashboard)/layout.tsx+++ b/src/app/(dashboard)/layout.tsx@@ -11,34 +11,40 @@ import { MailboxProvider } from "@/components/mailbox-provider";import { MailboxSelector } from "@/components/mailbox-selector";import { DashboardNav } from "@/components/dashboard-nav";-export default function DashboardLayout({ children }: { children: React.ReactNode }) {- return (- <AuthGuard requireMailbox>- <MailboxProvider>- <ComposeProvider>- <MailSearchProvider>- <div className="grid min-h-screen grid-cols-[256px_1fr] bg-[#f6f8fc]">- <aside className="flex flex-col gap-4 px-3 py-4">- <DashboardNav />- </aside>- <div className="flex min-h-screen flex-col">- <header className="flex h-16 items-center gap-4 pr-4 text-sm">- <MailSearchInput />- <Link- href="/settings"- className="flex h-10 w-10 items-center justify-center rounded-full text-neutral-600 hover:bg-neutral-200"- >- <HelpCircle className="h-5 w-5" />- </Link>- <MailboxSelector />- </header>- <main className="flex-1 overflow-hidden rounded-tl-3xl bg-white">{children}</main>- </div>- <FloatingComposer />- </div>- </MailSearchProvider>- </ComposeProvider>- </MailboxProvider>- </AuthGuard>- );+export default function DashboardLayout({+ children,+}: {+ children: React.ReactNode;+}) {+ return (+ <AuthGuard requireMailbox>+ <MailboxProvider>+ <ComposeProvider>+ <MailSearchProvider>+ <div className="grid h-[100dvh] grid-cols-[256px_minmax(0,1fr)] overflow-hidden bg-[#f6f8fc]">+ <aside className="min-h-0 overflow-y-auto overscroll-contain px-3 py-4 [scrollbar-gutter:stable]">+ <DashboardNav />+ </aside>+ <div className="flex min-h-0 min-w-0 flex-col">+ <header className="flex h-16 w-full shrink-0 items-center gap-4 pr-4 text-sm">+ <MailSearchInput />+ <Link+ href="/settings"+ className="flex h-10 w-10 items-center justify-center rounded-full text-neutral-600 hover:bg-neutral-200"+ >+ <HelpCircle className="h-5 w-5" />+ </Link>+ <MailboxSelector />+ </header>+ <main className="min-h-0 flex-1 overflow-y-auto overscroll-contain rounded-tl-3xl bg-white [scrollbar-gutter:stable]">+ {children}+ </main>+ </div>+ <FloatingComposer />+ </div>+ </MailSearchProvider>+ </ComposeProvider>+ </MailboxProvider>+ </AuthGuard>+ );}diff --git a/src/app/(dashboard)/loading.tsx b/src/app/(dashboard)/loading.tsxnew file mode 100644index 0000000..3bcf39d--- /dev/null+++ b/src/app/(dashboard)/loading.tsx@@ -0,0 +1,3 @@+import { ListPageSkeleton } from "@/components/page-skeletons";++export default ListPageSkeleton;diff --git a/src/app/(dashboard)/rules/page.tsx b/src/app/(dashboard)/rules/page.tsxnew file mode 100644index 0000000..dec0ad4--- /dev/null+++ b/src/app/(dashboard)/rules/page.tsx@@ -0,0 +1,5 @@+import { redirect } from "next/navigation";++export default function RulesPage() {+ redirect("/settings");+}diff --git a/src/app/(dashboard)/sent/layout.tsx b/src/app/(dashboard)/sent/layout.tsxnew file mode 100644index 0000000..7b935ad--- /dev/null+++ b/src/app/(dashboard)/sent/layout.tsx@@ -0,0 +1,16 @@+"use client";++import { sentFolderConfig } from "@/components/messages/message-folder-configs";+import { MessageSplitLayout } from "@/components/messages/message-split-layout";++export default function SentLayout({+ children,+}: {+ children: React.ReactNode;+}) {+ return (+ <MessageSplitLayout config={sentFolderConfig}>+ {children}+ </MessageSplitLayout>+ );+}diff --git a/src/app/(dashboard)/sent/page.tsx b/src/app/(dashboard)/sent/page.tsxindex 19e7dc8..0cae6e5 100644--- a/src/app/(dashboard)/sent/page.tsx+++ b/src/app/(dashboard)/sent/page.tsx@@ -1,20 +1,8 @@"use client";-import { Clock, MailOpen, Send } from "lucide-react";+import { sentFolderConfig } from "@/components/messages/message-folder-configs";import { MessageFolderPage } from "@/components/messages/message-folder-page";export default function SentPage() {- return (- <MessageFolderPage- config={{- folder: "sent",- title: "Sent",- emptyText: "No emails",- hrefPrefix: "/sent",- icon: Send,- headerIcons: [MailOpen, Clock],- badgeVariant: "outline",- }}- />- );+ return <MessageFolderPage config={sentFolderConfig} />;}diff --git a/src/app/(dashboard)/settings/export/page.tsx b/src/app/(dashboard)/settings/export/page.tsxnew file mode 100644index 0000000..a4f78db--- /dev/null+++ b/src/app/(dashboard)/settings/export/page.tsx@@ -0,0 +1,56 @@+"use client";++import { useState } from "react";+import { Download } from "lucide-react";+import { useSelectedMailbox } from "@/components/mailbox-provider";+import { Button } from "@/components/ui/button";+import { Card, CardContent, CardDescription, CardHeader } from "@/components/ui/card";+import type { ExportState } from "./types";+import { exportMailbox } from "./utils";++export default function SettingsExportPage() {+ const { selectedMailbox } = useSelectedMailbox();+ const [exportState, setExportState] = useState<ExportState>({ error: null, loading: false });++ async function onExport() {+ if (!selectedMailbox?.id) return;+ setExportState({ error: null, loading: true });+ try {+ await exportMailbox(selectedMailbox.id, `${selectedMailbox.localPart}.mbox`);+ } catch (error) {+ setExportState({ error: error instanceof Error ? error.message : "Export failed", loading: false });+ return;+ }+ setExportState({ error: null, loading: false });+ }++ return (+ <div className="max-w-3xl space-y-6 p-8">+ <div>+ <h1 className="text-2xl font-semibold text-neutral-900">Export</h1>+ <p className="mt-1 text-sm text-neutral-500">+ Download mail from the currently selected mailbox.+ </p>+ </div>++ <Card>+ <CardHeader>+ <CardDescription>+ Download message headers and bodies from the selected mailbox as an .mbox file.+ Attachments are not included in this export.+ </CardDescription>+ </CardHeader>+ <CardContent className="space-y-3">+ <Button type="button" variant="outline" disabled={!selectedMailbox || exportState.loading} onClick={onExport}>+ {exportState.loading ? "Preparing..." : "Download .mbox"}+ </Button>+ {exportState.error && (+ <p className="rounded-lg border border-red-100 bg-red-50 px-4 py-3 text-sm text-red-700">+ {exportState.error}+ </p>+ )}+ </CardContent>+ </Card>+ </div>+ );+}diff --git a/src/app/(dashboard)/settings/export/types.d.ts b/src/app/(dashboard)/settings/export/types.d.tsnew file mode 100644index 0000000..c97ed89--- /dev/null+++ b/src/app/(dashboard)/settings/export/types.d.ts@@ -0,0 +1,4 @@+export type ExportState = {+ error: string | null;+ loading: boolean;+};diff --git a/src/app/(dashboard)/settings/export/utils.ts b/src/app/(dashboard)/settings/export/utils.tsnew file mode 100644index 0000000..6a83098--- /dev/null+++ b/src/app/(dashboard)/settings/export/utils.ts@@ -0,0 +1,20 @@+import { authFetch } from "@/lib/auth/client";++export async function exportMailbox(mailboxId: string, filename: string): Promise<void> {+ const params = new URLSearchParams({ mailboxId });+ const response = await authFetch(`/api/export/messages?${params.toString()}`);+ if (!response.ok) {+ const data = (await response.json()) as { error?: string };+ throw new Error(data.error ?? "Export failed");+ }++ const blob = await response.blob();+ const url = URL.createObjectURL(blob);+ const link = document.createElement("a");+ link.href = url;+ link.download = filename;+ document.body.appendChild(link);+ link.click();+ link.remove();+ URL.revokeObjectURL(url);+}diff --git a/src/app/(dashboard)/settings/import-export/page.tsx b/src/app/(dashboard)/settings/import-export/page.tsxnew file mode 100644index 0000000..b243d42--- /dev/null+++ b/src/app/(dashboard)/settings/import-export/page.tsx@@ -0,0 +1,5 @@+import { redirect } from "next/navigation";++export default function SettingsImportExportRedirectPage() {+ redirect("/settings/import");+}diff --git a/src/app/(dashboard)/settings/import/page.tsx b/src/app/(dashboard)/settings/import/page.tsxnew file mode 100644index 0000000..d421779--- /dev/null+++ b/src/app/(dashboard)/settings/import/page.tsx@@ -0,0 +1,406 @@+"use client";++import type { FormEvent } from "react";+import { useMemo, useState } from "react";+import { Folder, Server, Upload } from "lucide-react";+import { useSelectedMailbox } from "@/components/mailbox-provider";+import { Button } from "@/components/ui/button";+import {+ Card,+ CardContent,+ CardDescription,+ CardHeader,+ CardTitle,+} from "@/components/ui/card";+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";+import { importMessageFiles } from "@/components/settings/import-messages-utils";+import { cn } from "@/lib/utils";+import type {+ ImapFormState,+ ImportResult,+ ImportSourceItem,+ ImportSourceSection,+ ImportTab,+} from "./types";+import {+ ensureImportDestination,+ fetchImapFolders,+ filterCustomImapFolders,+ formatImportResult,+ getFileImportSource,+ getFolderImportSource,+ getSelectedImportSources,+ importFromImap,+ importSourceOptions,+ resolveImapSourceFolder,+} from "./utils";++const initialImapForm: ImapFormState = {+ host: "",+ port: "993",+ secure: true,+ username: "",+ password: "",+ folder: "INBOX",+ limit: "25",+};++const defaultSections = importSourceOptions.map((option) => option.value);++export default function SettingsImportPage() {+ const { selectedMailbox } = useSelectedMailbox();+ const [activeTab, setActiveTab] = useState<ImportTab>("file");+ const [selectedSections, setSelectedSections] =+ useState<ImportSourceSection[]>(defaultSections);+ const [sourceDropdownOpen, setSourceDropdownOpen] = useState(false);+ const [files, setFiles] = useState<File[]>([]);+ const [fileResult, setFileResult] = useState<ImportResult | null>(null);+ const [fileError, setFileError] = useState<string | null>(null);+ const [fileLoading, setFileLoading] = useState(false);+ const [imapForm, setImapForm] = useState<ImapFormState>(initialImapForm);+ const [imapResult, setImapResult] = useState<ImportResult | null>(null);+ const [imapError, setImapError] = useState<string | null>(null);+ const [imapLoading, setImapLoading] = useState(false);+ const selectedSources = useMemo(+ () => getSelectedImportSources(selectedSections),+ [selectedSections],+ );+ const fileImportSource = getFileImportSource(selectedSources);+ const sourceSummary =+ selectedSources.length > 0+ ? selectedSources.map((source) => source.label).join(", ")+ : "Select source sections";++ function toggleSection(section: ImportSourceSection, checked: boolean) {+ setSelectedSections((current) => {+ if (checked)+ return current.includes(section) ? current : [...current, section];+ return current.filter((item) => item !== section);+ });+ }++ async function getDestination(source: ImportSourceItem): Promise<string> {+ if (!selectedMailbox?.id) throw new Error("Select a mailbox first");+ return ensureImportDestination(selectedMailbox.id, source);+ }++ async function onFileSubmit(event: FormEvent<HTMLFormElement>) {+ event.preventDefault();+ if (!selectedMailbox?.id || selectedSources.length === 0) return;++ setFileLoading(true);+ setFileError(null);+ setFileResult(null);+ try {+ const destination = await getDestination(fileImportSource);+ const result = await importMessageFiles(+ selectedMailbox.id,+ files,+ destination,+ );+ setFileResult(result);+ window.dispatchEvent(new Event("mailflare:messages-changed"));+ } catch (error) {+ setFileError(+ error instanceof Error ? error.message : "File import failed",+ );+ } finally {+ setFileLoading(false);+ }+ }++ async function onImapSubmit(event: FormEvent<HTMLFormElement>) {+ event.preventDefault();+ if (!selectedMailbox?.id || selectedSources.length === 0) return;+ setImapLoading(true);+ setImapError(null);+ setImapResult(null);+ try {+ const total: ImportResult = { imported: 0, skipped: 0, errors: [] };+ const discoveredFolders = await fetchImapFolders(imapForm);+ const expandedSources: ImportSourceItem[] = [];+ for (const source of selectedSources) {+ if (source.id === "system:folders") {+ expandedSources.push(+ ...filterCustomImapFolders(discoveredFolders, selectedSources).map(+ getFolderImportSource,+ ),+ );+ } else {+ expandedSources.push(source);+ }+ }++ for (const source of expandedSources) {+ const destination = await getDestination(source);+ const folder = resolveImapSourceFolder(source, discoveredFolders);+ const result = await importFromImap(+ selectedMailbox.id,+ { ...imapForm, folder },+ destination,+ );+ total.imported = (total.imported ?? 0) + (result.imported ?? 0);+ total.skipped = (total.skipped ?? 0) + (result.skipped ?? 0);+ total.errors = [...(total.errors ?? []), ...(result.errors ?? [])];+ }+ setImapResult(total);+ setImapForm((current) => ({ ...current, password: "" }));+ window.dispatchEvent(new Event("mailflare:messages-changed"));+ } catch (error) {+ setImapError(+ error instanceof Error ? error.message : "IMAP import failed",+ );+ } finally {+ setImapLoading(false);+ }+ }++ return (+ <div className="max-w-3xl space-y-6 p-8">+ <div>+ <h1 className="text-2xl font-semibold text-neutral-900">Import</h1>+ <p className="mt-1 text-sm text-neutral-500">+ Move mail from selected source sections into the matching sections of+ the current mailbox.+ </p>+ </div>+ <Card>+ <div className="flex rounded-xl border border-neutral-200 bg-neutral-50 p-1 m-2">+ {(["file", "imap"] as ImportTab[]).map((tab) => (+ <button+ key={tab}+ type="button"+ onClick={() => setActiveTab(tab)}+ className={cn(+ "flex-1 rounded-lg px-4 py-2 text-sm font-medium transition-colors",+ activeTab === tab+ ? "bg-white text-neutral-900 shadow-sm"+ : "text-neutral-500 hover:text-neutral-900",+ )}+ >+ {tab === "file" ? "Backup File" : "IMAP"}+ </button>+ ))}+ </div>+ {/* <Card className="m-2">+ <CardContent className="space-y-2 py-4"> */}+ <div className="p-6 space-y-2">+ <h2 className="font-semibold">Choose import sections</h2>++ <div className="relative">+ <button+ type="button"+ onClick={() => setSourceDropdownOpen((open) => !open)}+ className="flex w-full items-center justify-between rounded-md border border-neutral-200 bg-white px-3 py-2 text-left text-sm shadow-sm shadow-neutral-200/50"+ >+ <label className="flex-1">Selected</label>+ <span className="truncate">{sourceSummary}</span>+ <span className="text-neutral-400 px-2">▾</span>+ </button>+ {sourceDropdownOpen && (+ <div className="absolute z-20 mt-2 w-full rounded-xl border border-neutral-200 bg-white p-2 shadow-lg">+ {importSourceOptions.map((option) => (+ <label+ key={option.value}+ className="flex items-center gap-2 rounded-lg px-3 py-2 text-sm text-neutral-700 hover:bg-neutral-50"+ >+ <input+ type="checkbox"+ checked={selectedSections.includes(option.value)}+ onChange={(event) =>+ toggleSection(option.value, event.target.checked)+ }+ />+ {option.label}+ </label>+ ))}+ </div>+ )}+ </div>+ {/* <p className="text-xs leading-5 text-neutral-500">+ Select Folders to import every source IMAP folder into matching+ Mailflare folders.+ </p> */}+ </div>+ {/* </CardContent>+ </Card> */}++ {activeTab === "file" ? (+ <>+ <CardContent>+ <form onSubmit={onFileSubmit} className="space-y-4">+ <div className="space-y-2">+ <h2 className="font-semibold">Select Backup File</h2>+ <input+ id="import-files"+ type="file"+ accept=".eml,.mbox,.mbx,message/rfc822,application/mbox"+ multiple+ onChange={(event) =>+ setFiles(Array.from(event.target.files ?? []))+ }+ className="block w-full rounded-md border border-neutral-200 bg-white px-3 py-2 text-sm shadow-sm shadow-neutral-200/50 file:mr-3 file:rounded-md file:border-0 file:bg-neutral-100 file:px-3 file:py-1.5 file:text-sm file:font-medium"+ />+ <p className="text-xs leading-5 text-neutral-500">+ Upload exported .eml or .mbox files. File exports do not+ reliably include source section metadata, so files are+ imported once into {fileImportSource.label}+ </p>+ </div>+ {selectedSections.includes("folders") && (+ <p className="rounded-lg border border-amber-100 bg-amber-50 px-4 py-3 text-sm text-amber-700">+ Folders can be imported automatically from IMAP. File import+ cannot discover source folders.+ </p>+ )}+ <Button+ type="submit"+ disabled={+ !selectedMailbox ||+ selectedSources.length === 0 ||+ files.length === 0 ||+ fileLoading+ }+ >+ {fileLoading ? "Importing..." : "Import selected files"}+ </Button>+ {fileResult && (+ <p className="rounded-lg border border-green-100 bg-green-50 px-4 py-3 text-sm text-green-700">+ {formatImportResult(fileResult)}+ </p>+ )}+ {fileError && (+ <p className="rounded-lg border border-red-100 bg-red-50 px-4 py-3 text-sm text-red-700">+ {fileError}+ </p>+ )}+ </form>+ </CardContent>+ </>+ ) : (+ <>+ <CardContent>+ <form onSubmit={onImapSubmit} className="space-y-4">+ <div className="grid gap-3 md:grid-cols-[1fr_110px]">+ <div className="space-y-2">+ <Label htmlFor="imap-host">Host</Label>+ <Input+ id="imap-host"+ value={imapForm.host}+ onChange={(event) =>+ setImapForm({ ...imapForm, host: event.target.value })+ }+ placeholder="imap.gmail.com"+ />+ </div>+ <div className="space-y-2">+ <Label htmlFor="imap-port">Port</Label>+ <Input+ id="imap-port"+ type="number"+ value={imapForm.port}+ onChange={(event) =>+ setImapForm({ ...imapForm, port: event.target.value })+ }+ />+ </div>+ </div>+ <div className="grid gap-3 md:grid-cols-2">+ <div className="space-y-2">+ <Label htmlFor="imap-username">Username</Label>+ <Input+ id="imap-username"+ value={imapForm.username}+ onChange={(event) =>+ setImapForm({+ ...imapForm,+ username: event.target.value,+ })+ }+ placeholder="[email protected]"+ />+ </div>+ <div className="space-y-2">+ <Label htmlFor="imap-password">+ Password or app password+ </Label>+ <Input+ id="imap-password"+ type="password"+ value={imapForm.password}+ onChange={(event) =>+ setImapForm({+ ...imapForm,+ password: event.target.value,+ })+ }+ autoComplete="off"+ />+ </div>+ </div>+ <div className="grid gap-3 md:grid-cols-2">+ <div className="space-y-2">+ <Label htmlFor="imap-limit">Message limit per source</Label>+ <Input+ id="imap-limit"+ type="number"+ min={1}+ max={100}+ value={imapForm.limit}+ onChange={(event) =>+ setImapForm({ ...imapForm, limit: event.target.value })+ }+ />+ </div>+ <label className="flex items-end gap-2 pb-2 text-sm text-neutral-700">+ <input+ type="checkbox"+ checked={imapForm.secure}+ onChange={(event) =>+ setImapForm({+ ...imapForm,+ secure: event.target.checked,+ })+ }+ />+ Use TLS+ </label>+ </div>+ <p className="rounded-lg border border-neutral-200 bg-neutral-50 px-4 py-3 text-xs leading-5 text-neutral-500">+ IMAP imports selected source sections automatically. Folders+ are discovered from the source account and imported into+ matching new or existing Mailflare folders.+ </p>+ <Button+ type="submit"+ disabled={+ !selectedMailbox ||+ selectedSources.length === 0 ||+ !imapForm.host ||+ !imapForm.username ||+ !imapForm.password ||+ imapLoading+ }+ >+ <Upload className="h-4 w-4" />+ {imapLoading ? "Importing..." : "Import selected sources"}+ </Button>+ {imapResult && (+ <p className="rounded-lg border border-green-100 bg-green-50 px-4 py-3 text-sm text-green-700">+ {formatImportResult(imapResult)}+ </p>+ )}+ {imapError && (+ <p className="rounded-lg border border-red-100 bg-red-50 px-4 py-3 text-sm text-red-700">+ {imapError}+ </p>+ )}+ </form>+ </CardContent>+ </>+ )}+ </Card>+ </div>+ );+}diff --git a/src/app/(dashboard)/settings/import/types.d.ts b/src/app/(dashboard)/settings/import/types.d.tsnew file mode 100644index 0000000..75abef6--- /dev/null+++ b/src/app/(dashboard)/settings/import/types.d.ts@@ -0,0 +1,42 @@+export type ImportResult = {+ imported?: number;+ skipped?: number;+ errors?: string[];+ error?: string;+};++export type ImapFormState = {+ host: string;+ port: string;+ secure: boolean;+ username: string;+ password: string;+ folder: string;+ limit: string;+};++export type ImportSourceSection = "inbox" | "sent" | "drafts" | "archived" | "spam" | "trash" | "folders";++export type ImportSourceOption = {+ value: ImportSourceSection;+ label: string;+ imapFolder: string;+ destination: string;+ system?: boolean;+};++export type ImportTab = "file" | "imap";++export type ImportSourceItem = {+ id: string;+ label: string;+ imapFolder: string;+ destination: string;+ folderName?: string;+ sourceSection?: ImportSourceSection;+};++export type ImportFolderSummary = {+ id: string;+ name: string;+};diff --git a/src/app/(dashboard)/settings/import/utils.ts b/src/app/(dashboard)/settings/import/utils.tsnew file mode 100644index 0000000..2653b75--- /dev/null+++ b/src/app/(dashboard)/settings/import/utils.ts@@ -0,0 +1,162 @@+import { authFetch } from "@/lib/auth/client";+import type {+ ImapFormState,+ ImportFolderSummary,+ ImportResult,+ ImportSourceItem,+ ImportSourceOption,+ ImportSourceSection,+} from "./types";++export const importSourceOptions: ImportSourceOption[] = [+ { value: "inbox", label: "Inbox", imapFolder: "INBOX", destination: "system:inbox", system: true },+ { value: "sent", label: "Sent", imapFolder: "Sent", destination: "system:sent", system: true },+ { value: "drafts", label: "Drafts", imapFolder: "Drafts", destination: "system:drafts", system: true },+ { value: "archived", label: "Archived", imapFolder: "Archive", destination: "system:archived", system: true },+ { value: "spam", label: "Spam", imapFolder: "Spam", destination: "system:spam", system: true },+ { value: "trash", label: "Trash", imapFolder: "Trash", destination: "system:trash", system: true },+ { value: "folders", label: "Folders", imapFolder: "", destination: "" },+];++export function getImportSourceOption(section: ImportSourceSection): ImportSourceOption {+ return importSourceOptions.find((option) => option.value === section) ?? importSourceOptions[0];+}++export function getSelectedImportSources(sections: ImportSourceSection[]): ImportSourceItem[] {+ return sections.map((section) => {+ const option = getImportSourceOption(section);+ return {+ id: `system:${option.value}`,+ label: option.label,+ imapFolder: option.imapFolder,+ destination: option.destination,+ sourceSection: option.value,+ };+ });+}++export function getFolderImportSource(folderName: string): ImportSourceItem {+ return {+ id: `folder:${folderName}`,+ label: folderName,+ imapFolder: folderName,+ destination: "",+ folderName,+ };+}++export function resolveImapSourceFolder(source: ImportSourceItem, folders: string[]): string {+ if (!source.sourceSection || source.sourceSection === "folders") return source.imapFolder;+ const match = findFolderMatch(folders, getFolderAliases(source.sourceSection));+ return match ?? source.imapFolder;+}++export function filterCustomImapFolders(folders: string[], selectedSources: ImportSourceItem[]): string[] {+ const systemAliases = new Set(+ (["inbox", "sent", "drafts", "archived", "spam", "trash"] as ImportSourceSection[])+ .flatMap(getFolderAliases)+ .map(normalizeFolderName),+ );+ for (const source of selectedSources) {+ const folder = resolveImapSourceFolder(source, folders);+ if (folder) systemAliases.add(normalizeFolderName(folder));+ }+ return folders.filter((folder) => !systemAliases.has(normalizeFolderName(folder)));+}++export function getFileImportSource(sources: ImportSourceItem[]): ImportSourceItem {+ return sources.find((source) => source.id !== "system:folders") ?? getSelectedImportSources(["inbox"])[0];+}++export async function ensureImportDestination(+ mailboxId: string,+ source: ImportSourceItem,+): Promise<string> {+ if (!source.folderName) return source.destination;+ const folders = await fetchMailboxFolders(mailboxId);+ const existing = folders.find((folder) => folder.name.toLowerCase() === source.folderName?.toLowerCase());+ if (existing) return `folder:${existing.id}`;++ const response = await authFetch("/api/folders", {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({ mailboxId, name: source.folderName }),+ });+ const data = (await response.json()) as ImportFolderSummary & { error?: string };+ if (!response.ok) throw new Error(data.error ?? `Unable to create folder ${source.folderName}`);+ return `folder:${data.id}`;+}++async function fetchMailboxFolders(mailboxId: string): Promise<ImportFolderSummary[]> {+ const params = new URLSearchParams({ mailboxId });+ const response = await authFetch(`/api/folders?${params.toString()}`);+ const data = (await response.json()) as { folders?: ImportFolderSummary[]; error?: string };+ if (!response.ok) throw new Error(data.error ?? "Unable to load folders");+ return data.folders ?? [];+}++export async function importFromImap(+ mailboxId: string,+ form: ImapFormState,+ destination: string,+): Promise<ImportResult> {+ const response = await authFetch("/api/import/imap", {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({+ mailboxId,+ destination,+ host: form.host,+ port: Number(form.port),+ secure: form.secure,+ username: form.username,+ password: form.password,+ folder: form.folder,+ limit: Number(form.limit),+ }),+ });+ const data = (await response.json()) as ImportResult;+ if (!response.ok) throw new Error(data.error ?? "IMAP import failed");+ return data;+}++export async function fetchImapFolders(form: ImapFormState): Promise<string[]> {+ const response = await authFetch("/api/import/imap/folders", {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({+ host: form.host,+ port: Number(form.port),+ secure: form.secure,+ username: form.username,+ password: form.password,+ }),+ });+ const data = (await response.json()) as { folders?: string[]; error?: string };+ if (!response.ok) throw new Error(data.error ?? "Unable to list IMAP folders");+ return data.folders ?? [];+}++export function formatImportResult(result: ImportResult | null): string {+ if (!result) return "";+ return `${result.imported ?? 0} imported, ${result.skipped ?? 0} skipped`;+}++function findFolderMatch(folders: string[], aliases: string[]): string | null {+ const normalizedAliases = aliases.map(normalizeFolderName);+ return folders.find((folder) => normalizedAliases.includes(normalizeFolderName(folder))) ?? null;+}++function getFolderAliases(section: ImportSourceSection): string[] {+ if (section === "inbox") return ["INBOX", "Inbox"];+ if (section === "sent") return ["Sent", "Sent Mail", "[Gmail]/Sent Mail", "Sent Items"];+ if (section === "drafts") return ["Drafts", "[Gmail]/Drafts"];+ if (section === "archived") return ["Archive", "Archived", "[Gmail]/All Mail"];+ if (section === "spam") return ["Spam", "Junk", "Junk Email", "[Gmail]/Spam"];+ if (section === "trash") return ["Trash", "Deleted", "Deleted Items", "[Gmail]/Trash"];+ return [];+}++function normalizeFolderName(value: string): string {+ return value.toLowerCase().replace(/^\[gmail\]\//, "").replace(/\s+/g, " ").trim();+}diff --git a/src/app/(dashboard)/settings/layout.tsx b/src/app/(dashboard)/settings/layout.tsxnew file mode 100644index 0000000..36e9e87--- /dev/null+++ b/src/app/(dashboard)/settings/layout.tsx@@ -0,0 +1,11 @@+import type { ReactNode } from "react";+import { SettingsNav } from "@/components/settings/settings-nav";++export default function SettingsLayout({ children }: { children: ReactNode }) {+ return (+ <div className="flex flex-row">+ <main className="flex-1">{children}</main>+ <SettingsNav />+ </div>+ );+}diff --git a/src/app/(dashboard)/settings/rules/page.tsx b/src/app/(dashboard)/settings/rules/page.tsxnew file mode 100644index 0000000..f7a9b78--- /dev/null+++ b/src/app/(dashboard)/settings/rules/page.tsx@@ -0,0 +1,15 @@+import { InboxRules } from "@/components/settings/inbox-rules";++export default function SettingsRulesPage() {+ return (+ <div className="max-w-3xl space-y-8 p-8">+ <div>+ <h1 className="text-2xl font-semibold text-neutral-900">Rules</h1>+ <p className="mt-1 text-sm text-neutral-500">+ Manage routing and filtering rules for the selected mailbox.+ </p>+ </div>+ <InboxRules />+ </div>+ );+}diff --git a/src/app/(dashboard)/spam/layout.tsx b/src/app/(dashboard)/spam/layout.tsxnew file mode 100644index 0000000..07d47c3--- /dev/null+++ b/src/app/(dashboard)/spam/layout.tsx@@ -0,0 +1,16 @@+"use client";++import { spamFolderConfig } from "@/components/messages/message-folder-configs";+import { MessageSplitLayout } from "@/components/messages/message-split-layout";++export default function SpamLayout({+ children,+}: {+ children: React.ReactNode;+}) {+ return (+ <MessageSplitLayout config={spamFolderConfig}>+ {children}+ </MessageSplitLayout>+ );+}diff --git a/src/app/(dashboard)/spam/page.tsx b/src/app/(dashboard)/spam/page.tsxindex f27ecda..ceb3713 100644--- a/src/app/(dashboard)/spam/page.tsx+++ b/src/app/(dashboard)/spam/page.tsx@@ -1,19 +1,8 @@-'use client'+"use client";-import { ShieldAlert } from "lucide-react";+import { spamFolderConfig } from "@/components/messages/message-folder-configs";import { MessageFolderPage } from "@/components/messages/message-folder-page";export default function SpamPage() {- return (- <MessageFolderPage- config={{- folder: "spam",- title: "Spam",- emptyText: "No spam",- hrefPrefix: "/spam",- icon: ShieldAlert,- badgeVariant: "outline",- }}- />- );+ return <MessageFolderPage config={spamFolderConfig} />;}diff --git a/src/app/(dashboard)/trash/layout.tsx b/src/app/(dashboard)/trash/layout.tsxnew file mode 100644index 0000000..d399e58--- /dev/null+++ b/src/app/(dashboard)/trash/layout.tsx@@ -0,0 +1,16 @@+"use client";++import { trashFolderConfig } from "@/components/messages/message-folder-configs";+import { MessageSplitLayout } from "@/components/messages/message-split-layout";++export default function TrashLayout({+ children,+}: {+ children: React.ReactNode;+}) {+ return (+ <MessageSplitLayout config={trashFolderConfig}>+ {children}+ </MessageSplitLayout>+ );+}diff --git a/src/app/(dashboard)/trash/page.tsx b/src/app/(dashboard)/trash/page.tsxindex cfe21c9..a3ce9d1 100644--- a/src/app/(dashboard)/trash/page.tsx+++ b/src/app/(dashboard)/trash/page.tsx@@ -1,19 +1,8 @@-'use client'+"use client";-import { Trash2 } from "lucide-react";+import { trashFolderConfig } from "@/components/messages/message-folder-configs";import { MessageFolderPage } from "@/components/messages/message-folder-page";export default function TrashPage() {- return (- <MessageFolderPage- config={{- folder: "trash",- title: "Trash",- emptyText: "No emails in trash",- hrefPrefix: "/trash",- icon: Trash2,- badgeVariant: "outline",- }}- />- );+ return <MessageFolderPage config={trashFolderConfig} />;}diff --git a/src/app/api/accounts/[id]/mailbox-access/route.ts b/src/app/api/accounts/[id]/mailbox-access/route.tsnew file mode 100644index 0000000..f6fec08--- /dev/null+++ b/src/app/api/accounts/[id]/mailbox-access/route.ts@@ -0,0 +1,16 @@+import { NextResponse } from "next/server";++const accountsRemovedResponse = () =>+ NextResponse.json({ error: "Multiple accounts are not available in this build" }, { status: 410 });++export async function GET() {+ return accountsRemovedResponse();+}++export async function POST() {+ return accountsRemovedResponse();+}++export async function DELETE() {+ return accountsRemovedResponse();+}diff --git a/src/app/api/accounts/[id]/mailbox-access/types.d.ts b/src/app/api/accounts/[id]/mailbox-access/types.d.tsnew file mode 100644index 0000000..6bfc20f--- /dev/null+++ b/src/app/api/accounts/[id]/mailbox-access/types.d.ts@@ -0,0 +1,11 @@+export type AccountMailboxAccessRouteParams = {+ params: Promise<{ id: string }>;+};++export type AccountMailboxAccessItem = {+ mailboxId: string;+ localPart: string;+ hostname: string;+ displayName: string | null;+ permission: "read_only" | "send_as" | "send_on_behalf" | "full_access" | null;+};diff --git a/src/app/api/accounts/[id]/mailboxes/route.ts b/src/app/api/accounts/[id]/mailboxes/route.tsnew file mode 100644index 0000000..e297367--- /dev/null+++ b/src/app/api/accounts/[id]/mailboxes/route.ts@@ -0,0 +1,12 @@+import { NextResponse } from "next/server";++const accountsRemovedResponse = () =>+ NextResponse.json({ error: "Multiple accounts are not available in this build" }, { status: 410 });++export async function GET() {+ return accountsRemovedResponse();+}++export async function POST() {+ return accountsRemovedResponse();+}diff --git a/src/app/api/accounts/[id]/mailboxes/types.d.ts b/src/app/api/accounts/[id]/mailboxes/types.d.tsnew file mode 100644index 0000000..ee0e3a4--- /dev/null+++ b/src/app/api/accounts/[id]/mailboxes/types.d.ts@@ -0,0 +1,13 @@+export type AccountMailboxesRouteParams = {+ params: Promise<{ id: string }>;+};++export type AccountMailboxItem = {+ id: string;+ domainId: string;+ localPart: string;+ hostname: string;+ displayName: string | null;+ type: "personal" | "shared";+ createdAt: Date;+};diff --git a/src/app/api/accounts/[id]/route.ts b/src/app/api/accounts/[id]/route.tsnew file mode 100644index 0000000..b74301c--- /dev/null+++ b/src/app/api/accounts/[id]/route.ts@@ -0,0 +1,12 @@+import { NextResponse } from "next/server";++const accountsRemovedResponse = () =>+ NextResponse.json({ error: "Multiple accounts are not available in this build" }, { status: 410 });++export async function GET() {+ return accountsRemovedResponse();+}++export async function PATCH() {+ return accountsRemovedResponse();+}diff --git a/src/app/api/accounts/[id]/types.d.ts b/src/app/api/accounts/[id]/types.d.tsnew file mode 100644index 0000000..1f261b6--- /dev/null+++ b/src/app/api/accounts/[id]/types.d.ts@@ -0,0 +1,3 @@+export type AccountRouteParams = {+ params: Promise<{ id: string }>;+};diff --git a/src/app/api/accounts/[id]/utils.ts b/src/app/api/accounts/[id]/utils.tsnew file mode 100644index 0000000..c97d768--- /dev/null+++ b/src/app/api/accounts/[id]/utils.ts@@ -0,0 +1,41 @@+import { and, eq, ne } from "drizzle-orm";+import type { getDb } from "@/db";+import { mailboxes, users } from "@/db/schema";+import { hashPassword } from "@/lib/auth/password";++type Db = ReturnType<typeof getDb>;++export async function selectAccountById(db: Db, id: string) {+ const [account] = await db.select().from(users).where(eq(users.id, id)).limit(1);+ return account ?? null;+}++export async function emailBelongsToAnotherAccount(db: Db, accountId: string, email: string) {+ const [account] = await db+ .select({ id: users.id })+ .from(users)+ .where(and(eq(users.email, email), ne(users.id, accountId)))+ .limit(1);+ return !!account;+}++export async function updateAccountCredentials(+ db: Db,+ id: string,+ input: { email?: string; name: string; password: string | null; disabled?: boolean },+) {+ await db+ .update(users)+ .set({+ ...(input.email ? { email: input.email.trim().toLowerCase() } : {}),+ name: input.name,+ ...(typeof input.disabled === "boolean" ? { disabled: input.disabled } : {}),+ ...(input.password ? { passwordHash: hashPassword(input.password) } : {}),+ })+ .where(eq(users.id, id));++ await db+ .update(mailboxes)+ .set({ displayName: input.name })+ .where(and(eq(mailboxes.userId, id), eq(mailboxes.type, "personal")));+}diff --git a/src/app/api/accounts/route.ts b/src/app/api/accounts/route.tsnew file mode 100644index 0000000..e297367--- /dev/null+++ b/src/app/api/accounts/route.ts@@ -0,0 +1,12 @@+import { NextResponse } from "next/server";++const accountsRemovedResponse = () =>+ NextResponse.json({ error: "Multiple accounts are not available in this build" }, { status: 410 });++export async function GET() {+ return accountsRemovedResponse();+}++export async function POST() {+ return accountsRemovedResponse();+}diff --git a/src/app/api/accounts/types.d.ts b/src/app/api/accounts/types.d.tsnew file mode 100644index 0000000..c74e320--- /dev/null+++ b/src/app/api/accounts/types.d.ts@@ -0,0 +1,18 @@+export type AccountListItem = {+ id: string;+ email: string;+ name: string;+ resetEmail: string | null;+ role: "admin" | "user";+ createdAt: Date;+ mailboxId: string | null;+ localPart: string | null;+ hostname: string | null;+};++export type CreateAccountResult = {+ id?: string;+ email?: string;+ mailboxId?: string;+ error?: unknown;+};diff --git a/src/app/api/accounts/utils.ts b/src/app/api/accounts/utils.tsnew file mode 100644index 0000000..d3552fe--- /dev/null+++ b/src/app/api/accounts/utils.ts@@ -0,0 +1,38 @@+import { and, desc, eq } from "drizzle-orm";+import type { getDb } from "@/db";+import { domains, mailboxes, users } from "@/db/schema";++type Db = ReturnType<typeof getDb>;++export function listAccountsForAdmin(db: Db) {+ return db+ .select({+ id: users.id,+ email: users.email,+ name: users.name,+ resetEmail: users.resetEmail,+ role: users.role,+ disabled: users.disabled,+ createdAt: users.createdAt,+ })+ .from(users)+ .orderBy(desc(users.createdAt));+}++export async function getDomainForAdmin(db: Db, adminUserId: string, domainId: string) {+ const [domain] = await db+ .select()+ .from(domains)+ .where(and(eq(domains.id, domainId), eq(domains.userId, adminUserId)))+ .limit(1);+ return domain ?? null;+}++export async function getExistingMailbox(db: Db, domainId: string, localPart: string) {+ const [mailbox] = await db+ .select()+ .from(mailboxes)+ .where(and(eq(mailboxes.domainId, domainId), eq(mailboxes.localPart, localPart)))+ .limit(1);+ return mailbox ?? null;+}diff --git a/src/app/api/activity/route.ts b/src/app/api/activity/route.tsnew file mode 100644index 0000000..8ce466b--- /dev/null+++ b/src/app/api/activity/route.ts@@ -0,0 +1,35 @@+import { desc, inArray, eq } from "drizzle-orm";+import { NextResponse } from "next/server";+import { getDb } from "@/db";+import { auditLogs, users } from "@/db/schema";+import { assertAdmin } from "@/lib/auth/admin";+import { requireUser } from "@/lib/auth/cookies";+import { getEnv } from "@/lib/cloudflare";++export async function GET(request: Request) {+ const env = getEnv();+ const admin = await requireUser(env, request);+ try {+ assertAdmin(admin);+ } catch {+ return NextResponse.json({ error: "Forbidden" }, { status: 403 });+ }++ const url = new URL(request.url);+ const limit = Math.min(Number(url.searchParams.get("limit") ?? 100), 200);+ const rows = await getDb(env)+ .select({+ id: auditLogs.id,+ action: auditLogs.action,+ metadata: auditLogs.metadata,+ createdAt: auditLogs.createdAt,+ actorEmail: users.email,+ })+ .from(auditLogs)+ .leftJoin(users, eq(users.id, auditLogs.actorUserId))+ .where(inArray(auditLogs.action, ["auth.login", "auth.logout"]))+ .orderBy(desc(auditLogs.createdAt))+ .limit(limit);++ return NextResponse.json({ activities: rows });+}diff --git a/src/app/api/activity/types.d.ts b/src/app/api/activity/types.d.tsnew file mode 100644index 0000000..372c715--- /dev/null+++ b/src/app/api/activity/types.d.ts@@ -0,0 +1,7 @@+export type ActivityLogRow = {+ id: string;+ action: string;+ metadata: string | null;+ createdAt: Date;+ actorEmail: string | null;+};diff --git a/src/app/api/admin/update/GET.ts b/src/app/api/admin/update/GET.tsnew file mode 100644index 0000000..e0e6ae1--- /dev/null+++ b/src/app/api/admin/update/GET.ts@@ -0,0 +1,15 @@+import { NextResponse } from "next/server";+import { authorizeAdminRequest, getUpdateStatus } from "./utils";++export async function GET(request: Request) {+ const authorization = await authorizeAdminRequest(request);+ if ("error" in authorization) return authorization.error;++ try {+ return NextResponse.json(await getUpdateStatus(authorization.env));+ } catch (error) {+ const message = error instanceof Error ? error.message : "Could not check for updates";+ const status = message.includes("must be configured") ? 503 : 502;+ return NextResponse.json({ error: message }, { status });+ }+}\ No newline at end of filediff --git a/src/app/api/admin/update/POST.ts b/src/app/api/admin/update/POST.tsnew file mode 100644index 0000000..dbb18fa--- /dev/null+++ b/src/app/api/admin/update/POST.ts@@ -0,0 +1,23 @@+import { NextResponse } from "next/server";+import { authorizeAdminRequest, dispatchUpdateWorkflow, getUpdateStatus } from "./utils";++export async function POST(request: Request) {+ const authorization = await authorizeAdminRequest(request);+ if ("error" in authorization) return authorization.error;++ try {+ // assume it's already passed+ // const status = await getUpdateStatus(authorization.env);+ // if (!status.available) {+ // return NextResponse.json({ error: "Mailflare is already up to date", ...status }, { status: 409 });+ // }++ const dispatch = await dispatchUpdateWorkflow();++ return NextResponse.json({ ok: true, ...dispatch }, { status: 202 });+ } catch (error) {+ const message = error instanceof Error ? error.message : "Could not trigger the update workflow";+ const status = message.includes("must be configured") ? 503 : 502;+ return NextResponse.json({ error: message }, { status });+ }+}\ No newline at end of filediff --git a/src/app/api/admin/update/route.ts b/src/app/api/admin/update/route.tsnew file mode 100644index 0000000..9687bbb--- /dev/null+++ b/src/app/api/admin/update/route.ts@@ -0,0 +1,2 @@+export { GET } from "./GET";+export { POST } from "./POST";diff --git a/src/app/api/admin/update/types.d.ts b/src/app/api/admin/update/types.d.tsnew file mode 100644index 0000000..e983917--- /dev/null+++ b/src/app/api/admin/update/types.d.ts@@ -0,0 +1,33 @@+export interface GitHubRepositoryResponse {+ default_branch?: string;+ message?: string;+}++export interface GitHubContentResponse {+ content?: string;+ encoding?: string;+ message?: string;+}++export interface GitHubWorkflowDispatchResponse {+ workflow_run_id?: number;+ html_url?: string;+ message?: string;+}++export interface PackageMetadata {+ version?: string;+}++export interface UpdateDispatchConfig {+ repository: string;+ ref?: string;+ token: string;+}++export interface UpdateStatus {+ available: boolean;+ currentVersion: string;+ repository: string;+ targetVersion: string;+}diff --git a/src/app/api/admin/update/utils.ts b/src/app/api/admin/update/utils.tsnew file mode 100644index 0000000..a326838--- /dev/null+++ b/src/app/api/admin/update/utils.ts@@ -0,0 +1,207 @@+import { NextResponse } from "next/server";+import { assertAdmin } from "@/lib/auth/admin";+import { requireUser } from "@/lib/auth/cookies";+import { getEnv } from "@/lib/cloudflare";+import type {+ GitHubContentResponse,+ GitHubRepositoryResponse,+ GitHubWorkflowDispatchResponse,+ PackageMetadata,+ UpdateDispatchConfig,+ UpdateStatus,+} from "./types";+import packageMetadata from "../../../../../package.json";+import { getCloudflareContext } from "@opennextjs/cloudflare";++const GITHUB_API_URL = "https://api.github.com";+const GITHUB_API_VERSION = "2026-03-10";+const UPDATE_WORKFLOW = "update.yml";+const UPDATE_SOURCE_REPOSITORY = "hieunc229/mailflare-team";++export async function authorizeAdminRequest(request: Request) {+ const env = getEnv();+ let user: Awaited<ReturnType<typeof requireUser>>;++ try {+ user = await requireUser(env, request);+ } catch {+ return {+ error: NextResponse.json({ error: "Unauthorized" }, { status: 401 }),+ };+ }++ try {+ assertAdmin(user);+ } catch {+ return {+ error: NextResponse.json({ error: "Forbidden" }, { status: 403 }),+ };+ }++ return { env };+}++function getDispatchConfig(env: CloudflareEnv): UpdateDispatchConfig {+ const token = env.GITHUB_UPDATE_TOKEN?.trim();+ const repository = `hieunc229/mailflare-team`;+ const ref = env.GITHUB_UPDATE_REF?.trim();++ if (!token) {+ throw new Error("GITHUB_UPDATE_TOKEN must be configured");+ }++ return { token, repository, ref: ref || undefined };+}++async function githubRequest<T>(+ path: string,+ init?: RequestInit,+): Promise<{ data?: T; response: Response }> {+ const { env } = getCloudflareContext();++ const response = await fetch(`${GITHUB_API_URL}${path}`, {+ cache: "no-store",+ ...init,+ headers: {+ Accept: "application/vnd.github+json",+ Authorization: `Bearer ${env.GITHUB_UPDATE_TOKEN || ""}`,+ "User-Agent": "mailflare",+ "Content-Type": "application/json",+ "X-GitHub-Api-Version": GITHUB_API_VERSION,+ ...init?.headers,+ },+ });++ console.log(`[gg]`, `${GITHUB_API_URL}${path}`);++ if (response.statusText === "Forbidden") {+ return {+ response,+ data: { error: response.statusText } as any,+ };+ }++ const data =+ response.status === 204 ? undefined : ((await response.json()) as T);++ return { data, response };+}++async function getDispatchRef(config: UpdateDispatchConfig): Promise<string> {+ if (config.ref) return config.ref;++ const { data, response } = await githubRequest<GitHubRepositoryResponse>(+ `/repos/${config.repository}`,+ );+ if (!response.ok || !data?.default_branch) {+ throw new Error(+ data?.message ?? "Could not determine the repository default branch",+ );+ }++ return data.default_branch;+}++function parseVersion(version: string): number[] {+ const normalized = version.trim().replace(/^v/, "").split("-")[0];+ const parts = normalized.split(".");++ if (+ parts.length < 1 ||+ parts.length > 3 ||+ parts.some((part) => !/^\d+$/.test(part))+ ) {+ throw new Error(`Invalid application version: ${version}`);+ }++ return [0, 1, 2].map((index) => Number(parts[index] ?? 0));+}++function isNewerVersion(+ targetVersion: string,+ currentVersion: string,+): boolean {+ const target = parseVersion(targetVersion);+ const current = parseVersion(currentVersion);++ for (let index = 0; index < target.length; index += 1) {+ if (target[index] !== current[index]) {+ return target[index] > current[index];+ }+ }++ return false;+}++async function getTargetVersion(): Promise<string> {+ // const sourceConfig: UpdateDispatchConfig = {+ // repository: UPDATE_SOURCE_REPOSITORY,+ // token,+ // };+ // const ref = await getDispatchRef(sourceConfig);+ const { data, response } = await githubRequest<GitHubContentResponse>(+ `/repos/${UPDATE_SOURCE_REPOSITORY}/contents/package.json`,+ );++ if (!response.ok || !data?.content || data.encoding !== "base64") {+ throw new Error(+ data?.message ?? "Could not read the target repository version",+ );+ }++ const dataStr = atob(data.content.replace(/\n/g, ""));++ const packageJson = JSON.parse(dataStr) as PackageMetadata;+ if (!packageJson.version) {+ throw new Error("The target repository package.json has no version");+ }++ return packageJson.version;+}++export async function getUpdateStatus(+ env: CloudflareEnv,+): Promise<UpdateStatus> {+ const config = getDispatchConfig(env);+ const currentVersion = packageMetadata.version;+ const targetVersion = await getTargetVersion();++ return {+ available: isNewerVersion(targetVersion, currentVersion),+ currentVersion,+ repository: UPDATE_SOURCE_REPOSITORY,+ targetVersion,+ };+}++export async function dispatchUpdateWorkflow() {+ const { env } = getCloudflareContext();++ const ref = `main`;+ const repository = env.GITHUB_UPDATE_REPO;++ const { data: wf } = await githubRequest<any>(+ `/repos/${repository}/actions/workflows`,+ );+ const item = wf.workflows.find((item) => item.name === "Update Mailflare");++ const { data, response } =+ await githubRequest<GitHubWorkflowDispatchResponse>(+ `/repos/${repository}/actions/workflows/${item.id}/dispatches`,+ {+ method: "POST",+ body: JSON.stringify({ ref: "main" }),+ },+ );++ if (!response.ok) {+ throw new Error(data?.message ?? `GitHub returned HTTP ${response.status}`);+ }++ return {+ ref,+ repository,+ runUrl: data?.html_url,+ workflowRunId: data?.workflow_run_id,+ };+}diff --git a/src/app/api/audit-logs/route.ts b/src/app/api/audit-logs/route.tsnew file mode 100644index 0000000..6183dbc--- /dev/null+++ b/src/app/api/audit-logs/route.ts@@ -0,0 +1,44 @@+import { desc, eq, inArray } from "drizzle-orm";+import { alias } from "drizzle-orm/sqlite-core";+import { NextResponse } from "next/server";+import { getDb } from "@/db";+import { auditLogs, domains, mailboxes, users } from "@/db/schema";+import { assertAdmin } from "@/lib/auth/admin";+import { requireUser } from "@/lib/auth/cookies";+import { getEnv } from "@/lib/cloudflare";++export async function GET(request: Request) {+ const env = getEnv();+ const admin = await requireUser(env, request);+ try {+ assertAdmin(admin);+ } catch {+ return NextResponse.json({ error: "Forbidden" }, { status: 403 });+ }++ const url = new URL(request.url);+ const limit = Math.min(Number(url.searchParams.get("limit") ?? 100), 200);+ const db = getDb(env);+ const targetUsers = alias(users, "target_users");+ const rows = await db+ .select({+ id: auditLogs.id,+ action: auditLogs.action,+ metadata: auditLogs.metadata,+ createdAt: auditLogs.createdAt,+ actorEmail: users.email,+ targetEmail: targetUsers.email,+ mailboxLocalPart: mailboxes.localPart,+ mailboxHostname: domains.hostname,+ })+ .from(auditLogs)+ .leftJoin(users, eq(users.id, auditLogs.actorUserId))+ .leftJoin(targetUsers, eq(targetUsers.id, auditLogs.targetUserId))+ .leftJoin(mailboxes, eq(mailboxes.id, auditLogs.mailboxId))+ .leftJoin(domains, eq(domains.id, mailboxes.domainId))+ .where(inArray(auditLogs.action, ["auth.login", "auth.logout"]))+ .orderBy(desc(auditLogs.createdAt))+ .limit(limit);++ return NextResponse.json({ auditLogs: rows });+}diff --git a/src/app/api/audit-logs/types.d.ts b/src/app/api/audit-logs/types.d.tsnew file mode 100644index 0000000..7bf2976--- /dev/null+++ b/src/app/api/audit-logs/types.d.ts@@ -0,0 +1,10 @@+export type AuditLogRow = {+ id: string;+ action: string;+ metadata: string | null;+ createdAt: Date;+ actorEmail: string | null;+ targetEmail: string | null;+ mailboxLocalPart: string | null;+ mailboxHostname: string | null;+};diff --git a/src/app/api/auth/login/route.ts b/src/app/api/auth/login/route.tsindex 8872cc8..34c5ab6 100644--- a/src/app/api/auth/login/route.ts+++ b/src/app/api/auth/login/route.ts@@ -6,31 +6,57 @@ import { users } from "@/db/schema";import { verifyPassword } from "@/lib/auth/password";import { createSession, SESSION_COOKIE } from "@/lib/auth/session";import { loginSchema } from "@/lib/validators";-import { userHasMailboxes } from "@/lib/user";+import { userHasAccessibleMailboxes } from "@/lib/user";+import { allowLoginAttempt } from "@/lib/auth/rate-limit";+import { verifyTurnstileToken } from "@/lib/auth/turnstile";+import { readJsonBody } from "@/lib/http/request";+import { RequestBodyTooLargeError } from "@/lib/http/errors";+import { recordAuthActivity } from "@/lib/auth/activity";export async function POST(request: Request) {const env = getEnv();- const body = await request.json();+ let body: unknown;+ try {+ body = await readJsonBody(request, 16 * 1024);+ } catch (error) {+ const status = error instanceof RequestBodyTooLargeError ? 413 : 400;+ return NextResponse.json({ error: "Invalid login request" }, { status });+ }const parsed = loginSchema.safeParse(body);if (!parsed.success) {return NextResponse.json({ error: parsed.error.flatten() }, { status: 400 });}+ if (!(await allowLoginAttempt(env, request))) {+ return NextResponse.json(+ { error: "Too many login attempts. Try again shortly." },+ { status: 429, headers: { "Retry-After": "60" } },+ );+ }+ if (!(await verifyTurnstileToken(env, request, (body as Record<string, unknown>).turnstileToken))) {+ return NextResponse.json({ error: "Verification failed. Please try again." }, { status: 400 });+ }const db = getDb(env);const [user] = await db.select().from(users).where(eq(users.email, parsed.data.email)).limit(1);if (!user || !verifyPassword(parsed.data.password, user.passwordHash)) {return NextResponse.json({ error: "Invalid credentials" }, { status: 401 });}+ if (user.disabled) {+ return NextResponse.json({ error: "Account disabled" }, { status: 403 });+ }- const hasMailboxes = await userHasMailboxes(env, user.id);+ const hasMailboxes = await userHasAccessibleMailboxes(env, user);const token = await createSession(env, user.id);+ await recordAuthActivity(env, { action: "auth.login", userId: user.id, request });const response = NextResponse.json({ok: true,token,redirect: hasMailboxes ? "/inbox" : "/onboarding",});+ response.headers.set("Cache-Control", "no-store");response.cookies.set(SESSION_COOKIE, token, {httpOnly: true,+ secure: process.env.NODE_ENV === "production",sameSite: "lax",path: "/",maxAge: 60 * 60 * 24 * 30,diff --git a/src/app/api/auth/logout/route.ts b/src/app/api/auth/logout/route.tsindex 6b4d4de..468afc2 100644--- a/src/app/api/auth/logout/route.ts+++ b/src/app/api/auth/logout/route.ts@@ -1,7 +1,8 @@import { NextResponse } from "next/server";import { cookies } from "next/headers";import { getEnv } from "@/lib/cloudflare";-import { deleteSession, SESSION_COOKIE } from "@/lib/auth/session";+import { deleteSession, getUserFromSession, SESSION_COOKIE } from "@/lib/auth/session";+import { recordAuthActivity } from "@/lib/auth/activity";export async function POST(request: Request) {const env = getEnv();@@ -9,9 +10,19 @@ export async function POST(request: Request) {const authorization = request.headers.get("Authorization");const bearerToken = authorization?.startsWith("Bearer ") ? authorization.slice(7).trim() : undefined;const token = bearerToken || jar.get(SESSION_COOKIE)?.value;- if (token) await deleteSession(env, token);+ if (token) {+ const user = await getUserFromSession(env, token);+ if (user) await recordAuthActivity(env, { action: "auth.logout", userId: user.id, request });+ await deleteSession(env, token);+ }const response = NextResponse.json({ ok: true });- response.cookies.set(SESSION_COOKIE, "", { httpOnly: true, path: "/", maxAge: 0 });+ response.cookies.set(SESSION_COOKIE, "", {+ httpOnly: true,+ secure: process.env.NODE_ENV === "production",+ sameSite: "lax",+ path: "/",+ maxAge: 0,+ });return response;}diff --git a/src/app/api/auth/me/route.ts b/src/app/api/auth/me/route.tsindex 9951da0..a91b43e 100644--- a/src/app/api/auth/me/route.ts+++ b/src/app/api/auth/me/route.ts@@ -17,6 +17,7 @@ export async function GET(request: Request) {email: user.email,name: user.name,resetEmail: user.resetEmail,+ role: user.role,},hasMailboxes,});diff --git a/src/app/api/auth/register/route.ts b/src/app/api/auth/register/route.tsindex 3d6ed6b..b3895ca 100644--- a/src/app/api/auth/register/route.ts+++ b/src/app/api/auth/register/route.ts@@ -1,42 +1,45 @@import { NextResponse } from "next/server";-import { and, eq } from "drizzle-orm";+import { eq } from "drizzle-orm";import { getEnv } from "@/lib/cloudflare";import { getDb } from "@/db";import { mailboxes, users } from "@/db/schema";import { hashPassword } from "@/lib/auth/password";+import { hasAdminAccount } from "@/lib/auth/setup";import { createSession, SESSION_COOKIE } from "@/lib/auth/session";import { newId } from "@/lib/ids";-import { firstRunRegisterSchema, primaryDomainRegisterSchema } from "@/lib/validators";+import { firstRunRegisterSchema } from "@/lib/validators";import { addDomainForUser } from "@/lib/domains/service";import { ensureEmailRoutingRuleToWorker } from "@/lib/cloudflare-api";-import { getPrimaryDomain } from "@/lib/user";+import { readJsonBody } from "@/lib/http/request";+import { RequestBodyTooLargeError } from "@/lib/http/errors";+import { verifyTurnstileToken } from "@/lib/auth/turnstile";export async function POST(request: Request) {const env = getEnv();- const body = await request.json();const db = getDb(env);- const primaryDomain = await getPrimaryDomain(env);- const primaryDomainExists = !!primaryDomain;- const isFirstRun = !primaryDomainExists;- const firstRunParsed = isFirstRun ? firstRunRegisterSchema.safeParse(body) : null;- const registerParsed = isFirstRun ? null : primaryDomainRegisterSchema.safeParse(body);+ if (await hasAdminAccount(env)) {+ return NextResponse.json({ error: "Registration is closed after the first account is created" }, { status: 403 });+ }- if (firstRunParsed && !firstRunParsed.success) {+ let body: unknown;+ try {+ body = await readJsonBody(request, 16 * 1024);+ } catch (error) {+ const status = error instanceof RequestBodyTooLargeError ? 413 : 400;+ return NextResponse.json({ error: "Invalid registration request" }, { status });+ }+ const firstRunParsed = firstRunRegisterSchema.safeParse(body);+ if (!firstRunParsed.success) {return NextResponse.json({ error: firstRunParsed.error.flatten() }, { status: 400 });}-- if (registerParsed && !registerParsed.success) {- return NextResponse.json({ error: registerParsed.error.flatten() }, { status: 400 });+ if (!(await verifyTurnstileToken(env, request, (body as Record<string, unknown>).turnstileToken))) {+ return NextResponse.json({ error: "Verification failed. Please try again." }, { status: 400 });}- const domainName = firstRunParsed?.success ? firstRunParsed.data.domain.toLowerCase().trim() : null;- const username = (firstRunParsed?.success ? firstRunParsed.data.username : registerParsed!.data.username)- .toLowerCase()- .trim();- const email = firstRunParsed?.success- ? `${username}@${domainName}`- : `${username}@${primaryDomain!.hostname}`;- const password = firstRunParsed?.success ? firstRunParsed.data.password : registerParsed!.data.password;+ const domainName = firstRunParsed.data.domain.toLowerCase().trim();+ const username = firstRunParsed.data.username.toLowerCase().trim();+ const email = `${username}@${domainName}`;+ const password = firstRunParsed.data.password;const name = username;const [existing] = await db.select().from(users).where(eq(users.email, email)).limit(1);@@ -48,63 +51,37 @@ export async function POST(request: Request) {await db.insert(users).values({id: userId,email,- resetEmail: firstRunParsed?.success ? firstRunParsed.data.resetEmail : registerParsed!.data.resetEmail,+ resetEmail: firstRunParsed.data.resetEmail,passwordHash: hashPassword(password),name,+ role: "admin",});- if (isFirstRun) {- try {- const { domain } = await addDomainForUser(env, userId, domainName!, {- enableRouting: true,- enableSending: true,- });- await ensureEmailRoutingRuleToWorker(env, domain.zoneId, email);- await db.insert(mailboxes).values({- id: newId("mbx"),- userId,- domainId: domain.id,- localPart: username!,- displayName: username!,- });- } catch (err) {- await db.delete(users).where(eq(users.id, userId));- const message = err instanceof Error ? err.message : "Domain setup failed";- return NextResponse.json({ error: message }, { status: 502 });- }- }-- if (!isFirstRun) {- const [existingMailbox] = await db- .select()- .from(mailboxes)- .where(and(eq(mailboxes.domainId, primaryDomain!.id), eq(mailboxes.localPart, username)))- .limit(1);- if (existingMailbox) {- await db.delete(users).where(eq(users.id, userId));- return NextResponse.json({ error: "Mailbox already exists" }, { status: 409 });- }-- try {- await ensureEmailRoutingRuleToWorker(env, primaryDomain!.zoneId, email);- await db.insert(mailboxes).values({- id: newId("mbx"),- userId,- domainId: primaryDomain!.id,- localPart: username,- displayName: username,- });- } catch (err) {- await db.delete(users).where(eq(users.id, userId));- const message = err instanceof Error ? err.message : "Mailbox setup failed";- return NextResponse.json({ error: message }, { status: 502 });- }+ try {+ const { domain } = await addDomainForUser(env, userId, domainName, {+ enableRouting: true,+ enableSending: true,+ });+ await ensureEmailRoutingRuleToWorker(env, domain.zoneId, email);+ await db.insert(mailboxes).values({+ id: newId("mbx"),+ userId,+ domainId: domain.id,+ localPart: username,+ displayName: username,+ });+ } catch (err) {+ await db.delete(users).where(eq(users.id, userId));+ const message = err instanceof Error ? err.message : "Domain setup failed";+ return NextResponse.json({ error: message }, { status: 502 });}const token = await createSession(env, userId);const response = NextResponse.json({ ok: true, token, redirect: "/inbox" });+ response.headers.set("Cache-Control", "no-store");response.cookies.set(SESSION_COOKIE, token, {httpOnly: true,+ secure: process.env.NODE_ENV === "production",sameSite: "lax",path: "/",maxAge: 60 * 60 * 24 * 30,diff --git a/src/app/api/backups/[id]/download/route.ts b/src/app/api/backups/[id]/download/route.tsnew file mode 100644index 0000000..d280e20--- /dev/null+++ b/src/app/api/backups/[id]/download/route.ts@@ -0,0 +1,32 @@+import { eq } from "drizzle-orm";+import { NextResponse } from "next/server";+import { getDb } from "@/db";+import { backups } from "@/db/schema";+import { assertAdmin } from "@/lib/auth/admin";+import { requireUser } from "@/lib/auth/cookies";+import { getEnv } from "@/lib/cloudflare";++export async function GET(+ request: Request,+ { params }: { params: Promise<{ id: string }> },+) {+ const env = getEnv();+ try {+ const user = await requireUser(env, request);+ assertAdmin(user);+ const { id } = await params;+ const [backup] = await getDb(env).select().from(backups).where(eq(backups.id, id)).limit(1);+ if (!backup?.r2Key) return NextResponse.json({ error: "Backup file not found" }, { status: 404 });+ const object = await env.BUCKET.get(backup.r2Key);+ if (!object) return NextResponse.json({ error: "Backup file not found" }, { status: 404 });+ return new Response(object.body, {+ headers: {+ "Content-Type": "application/sql",+ "Content-Disposition": `attachment; filename="${backup.filename ?? `${backup.id}.sql`}"`,+ "Content-Length": String(object.size),+ },+ });+ } catch {+ return NextResponse.json({ error: "Forbidden" }, { status: 403 });+ }+}diff --git a/src/app/api/backups/[id]/route.ts b/src/app/api/backups/[id]/route.tsnew file mode 100644index 0000000..fec64aa--- /dev/null+++ b/src/app/api/backups/[id]/route.ts@@ -0,0 +1,22 @@+import { NextResponse } from "next/server";+import { assertAdmin } from "@/lib/auth/admin";+import { requireUser } from "@/lib/auth/cookies";+import { deleteBackup } from "@/lib/backups/service";+import { getEnv } from "@/lib/cloudflare";++export async function DELETE(+ request: Request,+ { params }: { params: Promise<{ id: string }> },+) {+ const env = getEnv();+ try {+ const user = await requireUser(env, request);+ assertAdmin(user);+ const { id } = await params;+ const deleted = await deleteBackup(env, id);+ if (!deleted) return NextResponse.json({ error: "Backup not found" }, { status: 404 });+ return NextResponse.json({ ok: true });+ } catch {+ return NextResponse.json({ error: "Forbidden" }, { status: 403 });+ }+}diff --git a/src/app/api/backups/route.ts b/src/app/api/backups/route.tsnew file mode 100644index 0000000..b89a43d--- /dev/null+++ b/src/app/api/backups/route.ts@@ -0,0 +1,70 @@+import { NextResponse } from "next/server";+import { eq } from "drizzle-orm";+import { getDb } from "@/db";+import { backups } from "@/db/schema";+import { assertAdmin } from "@/lib/auth/admin";+import { requireUser } from "@/lib/auth/cookies";+import {+ createBackupRecord,+ getBackupSettings,+ listBackups,+ updateBackupSettings,+} from "@/lib/backups/service";+import { getEnv } from "@/lib/cloudflare";+import { parseBackupSettingsInput } from "./utils";++async function requireAdmin(request: Request) {+ const env = getEnv();+ const user = await requireUser(env, request);+ assertAdmin(user);+ return { env, user };+}++export async function GET(request: Request) {+ try {+ const { env } = await requireAdmin(request);+ const [settings, backupList] = await Promise.all([+ getBackupSettings(env),+ listBackups(env),+ ]);+ return NextResponse.json({ settings, backups: backupList });+ } catch {+ return NextResponse.json({ error: "Forbidden" }, { status: 403 });+ }+}++export async function PUT(request: Request) {+ try {+ const { env } = await requireAdmin(request);+ const input = parseBackupSettingsInput(await request.json());+ if (!input) return NextResponse.json({ error: "Invalid backup settings" }, { status: 400 });+ await updateBackupSettings(env, input);+ return NextResponse.json({ ok: true });+ } catch {+ return NextResponse.json({ error: "Forbidden" }, { status: 403 });+ }+}++export async function POST(request: Request) {+ try {+ const { env, user } = await requireAdmin(request);+ const backupId = await createBackupRecord(env, "manual", user.id);+ try {+ await env.DATABASE_BACKUP_WORKFLOW.create({+ id: `database-backup-${backupId}`,+ params: { backupId, force: true },+ });+ } catch (error) {+ const message = error instanceof Error ? error.message : "Failed to start backup";+ await getDb(env)+ .update(backups)+ .set({ status: "failed", error: message, completedAt: new Date() })+ .where(eq(backups.id, backupId));+ throw error;+ }+ return NextResponse.json({ backupId }, { status: 202 });+ } catch (error) {+ const message = error instanceof Error ? error.message : "Failed to start backup";+ return NextResponse.json({ error: message }, { status: 400 });+ }+}diff --git a/src/app/api/backups/types.d.ts b/src/app/api/backups/types.d.tsnew file mode 100644index 0000000..e9a443b--- /dev/null+++ b/src/app/api/backups/types.d.ts@@ -0,0 +1,9 @@+import type { BackupScheduleType } from "@/lib/backups/types";++export type BackupSettingsInput = {+ enabled: boolean;+ scheduleType: BackupScheduleType;+ scheduleValue: number | null;+ retentionEnabled: boolean;+ retentionDays: number;+};diff --git a/src/app/api/backups/utils.ts b/src/app/api/backups/utils.tsnew file mode 100644index 0000000..75c6728--- /dev/null+++ b/src/app/api/backups/utils.ts@@ -0,0 +1,32 @@+import type { BackupSettingsInput } from "./types";++const SCHEDULE_TYPES = new Set(["daily", "weekly", "monthly"]);++export function parseBackupSettingsInput(value: unknown): BackupSettingsInput | null {+ if (!value || typeof value !== "object") return null;+ const input = value as Record<string, unknown>;+ if (typeof input.enabled !== "boolean") return null;+ if (typeof input.scheduleType !== "string" || !SCHEDULE_TYPES.has(input.scheduleType)) return null;+ if (typeof input.retentionEnabled !== "boolean") return null;++ const retentionDays = Number(input.retentionDays);+ if (!Number.isInteger(retentionDays) || retentionDays < 1 || retentionDays > 3650) return null;++ let scheduleValue: number | null = null;+ if (input.scheduleType === "weekly") {+ scheduleValue = Number(input.scheduleValue);+ if (!Number.isInteger(scheduleValue) || scheduleValue < 0 || scheduleValue > 6) return null;+ }+ if (input.scheduleType === "monthly") {+ scheduleValue = Number(input.scheduleValue);+ if (!Number.isInteger(scheduleValue) || scheduleValue < 1 || scheduleValue > 28) return null;+ }++ return {+ enabled: input.enabled,+ scheduleType: input.scheduleType as BackupSettingsInput["scheduleType"],+ scheduleValue,+ retentionEnabled: input.retentionEnabled,+ retentionDays,+ };+}diff --git a/src/app/api/drafts/[id]/route.ts b/src/app/api/drafts/[id]/route.tsindex d16013a..cca36a4 100644--- a/src/app/api/drafts/[id]/route.ts+++ b/src/app/api/drafts/[id]/route.ts@@ -7,6 +7,9 @@ import { requireUser } from "@/lib/auth/cookies";import { buildSnippet } from "@/lib/email/parse";import type { DraftPayload, DraftRouteParams } from "./types";import { selectDraftWithBody } from "./utils";+import { readJsonBody } from "@/lib/http/request";+import { RequestBodyTooLargeError } from "@/lib/http/errors";+import { getDraftSender, userOwnsDraft } from "../utils";export async function GET(request: Request, { params }: DraftRouteParams) {const { id } = await params;@@ -26,21 +29,31 @@ export async function PATCH(request: Request, { params }: DraftRouteParams) {const { id } = await params;const env = getEnv();const user = await requireUser(env, request);- const input = (await request.json()) as DraftPayload;+ let input: DraftPayload;+ try {+ input = await readJsonBody<DraftPayload>(request, 1024 * 1024);+ } catch (error) {+ const status = error instanceof RequestBodyTooLargeError ? 413 : 400;+ return NextResponse.json({ error: "Invalid draft request" }, { status });+ }const db = getDb(env);const [draft] = await db.select().from(messages).where(eq(messages.id, id)).limit(1);- if (!draft || draft.userId !== user.id || draft.status !== "draft") {+ if (!userOwnsDraft(draft, user.id)) {return NextResponse.json({ error: "Draft not found" }, { status: 404 });}+ const sender = await getDraftSender(env, user.id, input);+ if ("error" in sender) {+ return NextResponse.json({ error: sender.error }, { status: 403 });+ }const text = input.text ?? "";const html = input.html ?? "";await db.update(messages).set({- mailboxId: input.mailboxId ?? null,- fromAddr: input.from ?? "",+ mailboxId: sender.mailboxId,+ fromAddr: sender.fromAddr,toAddr: input.to ?? "",subject: input.subject ?? null,snippet: buildSnippet(text || null, html || null),@@ -65,7 +78,7 @@ export async function DELETE(request: Request, { params }: DraftRouteParams) {const db = getDb(env);const [draft] = await db.select().from(messages).where(eq(messages.id, id)).limit(1);- if (!draft || draft.userId !== user.id || draft.status !== "draft") {+ if (!userOwnsDraft(draft, user.id)) {return NextResponse.json({ error: "Draft not found" }, { status: 404 });}diff --git a/src/app/api/drafts/[id]/types.d.ts b/src/app/api/drafts/[id]/types.d.tsindex 612176f..d1937a7 100644--- a/src/app/api/drafts/[id]/types.d.ts+++ b/src/app/api/drafts/[id]/types.d.ts@@ -2,11 +2,4 @@ export type DraftRouteParams = {params: Promise<{ id: string }>;};-export type DraftPayload = {- mailboxId?: string | null;- from?: string;- to?: string;- subject?: string;- text?: string;- html?: string;-};+export type { DraftPayload } from "../types";diff --git a/src/app/api/drafts/route.ts b/src/app/api/drafts/route.tsindex e289cef..418a1f2 100644--- a/src/app/api/drafts/route.ts+++ b/src/app/api/drafts/route.ts@@ -6,15 +6,10 @@ import { messageBodies, messages } from "@/db/schema";import { requireUser } from "@/lib/auth/cookies";import { newId } from "@/lib/ids";import { buildSnippet } from "@/lib/email/parse";--type DraftPayload = {- mailboxId?: string | null;- from?: string;- to?: string;- subject?: string;- text?: string;- html?: string;-};+import { readJsonBody } from "@/lib/http/request";+import { RequestBodyTooLargeError } from "@/lib/http/errors";+import type { DraftPayload } from "./types";+import { getDraftSender } from "./utils";export async function GET(request: Request) {const env = getEnv();@@ -42,8 +37,18 @@ export async function GET(request: Request) {export async function POST(request: Request) {const env = getEnv();const user = await requireUser(env, request);- const input = (await request.json()) as DraftPayload;+ let input: DraftPayload;+ try {+ input = await readJsonBody<DraftPayload>(request, 1024 * 1024);+ } catch (error) {+ const status = error instanceof RequestBodyTooLargeError ? 413 : 400;+ return NextResponse.json({ error: "Invalid draft request" }, { status });+ }const db = getDb(env);+ const sender = await getDraftSender(env, user.id, input);+ if ("error" in sender) {+ return NextResponse.json({ error: sender.error }, { status: 403 });+ }const draftId = newId("msg");const text = input.text ?? "";const html = input.html ?? "";@@ -51,9 +56,9 @@ export async function POST(request: Request) {await db.insert(messages).values({id: draftId,userId: user.id,- mailboxId: input.mailboxId ?? null,+ mailboxId: sender.mailboxId,direction: "outbound",- fromAddr: input.from ?? "",+ fromAddr: sender.fromAddr,toAddr: input.to ?? "",subject: input.subject ?? null,snippet: buildSnippet(text || null, html || null),diff --git a/src/app/api/drafts/types.d.ts b/src/app/api/drafts/types.d.tsnew file mode 100644index 0000000..cb49356--- /dev/null+++ b/src/app/api/drafts/types.d.ts@@ -0,0 +1,8 @@+export type DraftPayload = {+ mailboxId?: string | null;+ from?: string;+ to?: string;+ subject?: string;+ text?: string;+ html?: string;+};diff --git a/src/app/api/drafts/utils.ts b/src/app/api/drafts/utils.tsnew file mode 100644index 0000000..e03e546--- /dev/null+++ b/src/app/api/drafts/utils.ts@@ -0,0 +1,22 @@+import { getAuthorizedSenderAddress } from "@/lib/email/sender";+import type { DraftPayload } from "./types";++export async function getDraftSender(+ env: CloudflareEnv,+ userId: string,+ input: DraftPayload,+): Promise<{ fromAddr: string; mailboxId: string } | { error: string }> {+ try {+ return await getAuthorizedSenderAddress(env, {+ userId,+ from: input.from ?? "",+ mailboxId: input.mailboxId,+ });+ } catch (error) {+ return { error: error instanceof Error ? error.message : "Mailbox is not authorized" };+ }+}++export function userOwnsDraft(draft: { userId: string; status: string } | undefined, userId: string): boolean {+ return !!draft && draft.userId === userId && draft.status === "draft";+}diff --git a/src/app/api/export/messages/route.ts b/src/app/api/export/messages/route.tsnew file mode 100644index 0000000..c09a99e--- /dev/null+++ b/src/app/api/export/messages/route.ts@@ -0,0 +1,29 @@+import { NextResponse } from "next/server";+import { getDb } from "@/db";+import { requireUser } from "@/lib/auth/cookies";+import { getEnv } from "@/lib/cloudflare";+import { exportMailboxToMbox } from "@/lib/export/mbox";+import { getMailboxAccessLevel } from "@/lib/mailboxes/access";++export async function GET(request: Request) {+ const env = getEnv();+ const user = await requireUser(env, request);+ const url = new URL(request.url);+ const mailboxId = url.searchParams.get("mailboxId");+ if (!mailboxId) return NextResponse.json({ error: "Mailbox is required" }, { status: 400 });++ const access = await getMailboxAccessLevel(getDb(env), user, mailboxId);+ if (!access?.canRead) {+ return NextResponse.json({ error: "Mailbox not found" }, { status: 404 });+ }++ const mbox = await exportMailboxToMbox(env, mailboxId);+ const address = `${access.mailbox.localPart}.mbox`;+ return new Response(mbox, {+ headers: {+ "Content-Type": "application/mbox; charset=utf-8",+ "Content-Disposition": `attachment; filename="${address}"`,+ "Cache-Control": "no-store",+ },+ });+}diff --git a/src/app/api/folders/route.ts b/src/app/api/folders/route.tsnew file mode 100644index 0000000..85c16bd--- /dev/null+++ b/src/app/api/folders/route.ts@@ -0,0 +1,63 @@+import { and, eq } from "drizzle-orm";+import { NextResponse } from "next/server";+import { getDb } from "@/db";+import { folders } from "@/db/schema";+import { requireUser } from "@/lib/auth/cookies";+import { getEnv } from "@/lib/cloudflare";+import { newId } from "@/lib/ids";+import { folderSchema } from "@/lib/validators";+import { getMailboxFolderAccess, listFoldersForMailbox } from "./utils";++export async function GET(request: Request) {+ const env = getEnv();+ const user = await requireUser(env, request);+ const url = new URL(request.url);+ const mailboxId = url.searchParams.get("mailboxId");+ if (!mailboxId) {+ return NextResponse.json({ folders: [] });+ }++ const db = getDb(env);+ const access = await getMailboxFolderAccess(db, user, mailboxId);+ if (!access) {+ return NextResponse.json({ error: "Mailbox not found" }, { status: 404 });+ }++ const rows = await listFoldersForMailbox(db, mailboxId);+ return NextResponse.json({ folders: rows });+}++export async function POST(request: Request) {+ const env = getEnv();+ const user = await requireUser(env, request);+ const parsed = folderSchema.safeParse(await request.json());+ if (!parsed.success) {+ return NextResponse.json({ error: parsed.error.flatten() }, { status: 400 });+ }++ const db = getDb(env);+ const access = await getMailboxFolderAccess(db, user, parsed.data.mailboxId);+ if (!access?.canManage) {+ return NextResponse.json({ error: "Mailbox not found" }, { status: 404 });+ }++ const name = parsed.data.name.trim();+ const [existing] = await db+ .select()+ .from(folders)+ .where(and(eq(folders.mailboxId, parsed.data.mailboxId), eq(folders.name, name)))+ .limit(1);+ if (existing) {+ return NextResponse.json({ error: "Folder already exists" }, { status: 409 });+ }++ const id = newId("fld");+ await db.insert(folders).values({+ id,+ userId: access.mailboxUserId,+ mailboxId: parsed.data.mailboxId,+ name,+ });++ return NextResponse.json({ id, mailboxId: parsed.data.mailboxId, name });+}diff --git a/src/app/api/folders/types.d.ts b/src/app/api/folders/types.d.tsnew file mode 100644index 0000000..7f546cd--- /dev/null+++ b/src/app/api/folders/types.d.ts@@ -0,0 +1,7 @@+export type FolderListItem = {+ id: string;+ userId: string;+ mailboxId: string;+ name: string;+ createdAt: Date;+};diff --git a/src/app/api/folders/utils.ts b/src/app/api/folders/utils.tsnew file mode 100644index 0000000..34cfa4c--- /dev/null+++ b/src/app/api/folders/utils.ts@@ -0,0 +1,30 @@+import { and, asc, eq } from "drizzle-orm";+import type { getDb } from "@/db";+import { folders } from "@/db/schema";+import type { SessionUser } from "@/lib/auth/types";+import { getMailboxAccessLevel } from "@/lib/mailboxes/access";++type Db = ReturnType<typeof getDb>;++export async function getMailboxFolderAccess(db: Db, user: SessionUser, mailboxId: string) {+ const access = await getMailboxAccessLevel(db, user, mailboxId);+ if (!access?.canRead) return null;+ return { mailboxId: access.mailbox.id, mailboxUserId: access.mailbox.userId, canManage: access.canManage };+}++export function listFoldersForMailbox(db: Db, mailboxId: string) {+ return db+ .select()+ .from(folders)+ .where(eq(folders.mailboxId, mailboxId))+ .orderBy(asc(folders.name));+}++export async function getFolderForMailbox(db: Db, folderId: string, mailboxId: string) {+ const [folder] = await db+ .select()+ .from(folders)+ .where(and(eq(folders.id, folderId), eq(folders.mailboxId, mailboxId)))+ .limit(1);+ return folder ?? null;+}diff --git a/src/app/api/import/imap/folders/route.ts b/src/app/api/import/imap/folders/route.tsnew file mode 100644index 0000000..afd113e--- /dev/null+++ b/src/app/api/import/imap/folders/route.ts@@ -0,0 +1,31 @@+import { NextResponse } from "next/server";+import { requireUser } from "@/lib/auth/cookies";+import { getEnv } from "@/lib/cloudflare";+import { RequestBodyTooLargeError } from "@/lib/http/errors";+import { readJsonBody } from "@/lib/http/request";+import { listImapFolders } from "@/lib/import/imap";+import type { ImapFolderListRequest } from "./types";+import { parseImapFolderListRequest } from "./utils";++export async function POST(request: Request) {+ const env = getEnv();+ await requireUser(env, request);+ let input: ReturnType<typeof parseImapFolderListRequest>;+ try {+ const body = await readJsonBody<ImapFolderListRequest>(request, 16 * 1024);+ input = parseImapFolderListRequest(body);+ } catch (error) {+ const status = error instanceof RequestBodyTooLargeError ? 413 : 400;+ return NextResponse.json({ error: error instanceof Error ? error.message : "Invalid IMAP folder request" }, { status });+ }++ try {+ const folders = await listImapFolders(input);+ return NextResponse.json({ folders });+ } catch (error) {+ return NextResponse.json(+ { error: error instanceof Error ? error.message : "Unable to list IMAP folders" },+ { status: 502 },+ );+ }+}diff --git a/src/app/api/import/imap/folders/types.d.ts b/src/app/api/import/imap/folders/types.d.tsnew file mode 100644index 0000000..19497b5--- /dev/null+++ b/src/app/api/import/imap/folders/types.d.ts@@ -0,0 +1,7 @@+export type ImapFolderListRequest = {+ host?: string;+ port?: number;+ secure?: boolean;+ username?: string;+ password?: string;+};diff --git a/src/app/api/import/imap/folders/utils.ts b/src/app/api/import/imap/folders/utils.tsnew file mode 100644index 0000000..110d33e--- /dev/null+++ b/src/app/api/import/imap/folders/utils.ts@@ -0,0 +1,21 @@+import type { ImapImportInput } from "@/lib/import/imap-types";+import type { ImapFolderListRequest } from "./types";++export function parseImapFolderListRequest(input: ImapFolderListRequest): Omit<ImapImportInput, "folder" | "limit"> {+ const host = input.host?.trim() ?? "";+ const port = Number(input.port ?? 993);+ const username = input.username?.trim() ?? "";+ const password = input.password ?? "";++ if (!host) throw new Error("IMAP host is required");+ if (!Number.isInteger(port) || port < 1 || port > 65535) throw new Error("IMAP port is invalid");+ if (!username || !password) throw new Error("IMAP username and password are required");++ return {+ host,+ port,+ secure: input.secure ?? port === 993,+ username,+ password,+ };+}diff --git a/src/app/api/import/imap/route.ts b/src/app/api/import/imap/route.tsnew file mode 100644index 0000000..52520a5--- /dev/null+++ b/src/app/api/import/imap/route.ts@@ -0,0 +1,59 @@+import { NextResponse } from "next/server";+import { and, eq } from "drizzle-orm";+import { getDb } from "@/db";+import { folders } from "@/db/schema";+import { requireUser } from "@/lib/auth/cookies";+import { getEnv } from "@/lib/cloudflare";+import { RequestBodyTooLargeError } from "@/lib/http/errors";+import { readJsonBody } from "@/lib/http/request";+import { getImportMessageUserId } from "@/lib/import/destination";+import { fetchImapMessages } from "@/lib/import/imap";+import { importMessagesToMailbox } from "@/lib/import/service";+import { getMailboxAccessLevel } from "@/lib/mailboxes/access";+import type { ImapImportRequest } from "./types";+import { parseImapImportRequest } from "./utils";++export async function POST(request: Request) {+ const env = getEnv();+ const user = await requireUser(env, request);+ let input: ReturnType<typeof parseImapImportRequest>;+ try {+ const body = await readJsonBody<ImapImportRequest>(request, 16 * 1024);+ input = parseImapImportRequest(body);+ } catch (error) {+ const status = error instanceof RequestBodyTooLargeError ? 413 : 400;+ return NextResponse.json({ error: error instanceof Error ? error.message : "Invalid IMAP import request" }, { status });+ }++ const access = await getMailboxAccessLevel(getDb(env), user, input.mailboxId);+ if (!access?.canManage) {+ return NextResponse.json({ error: "Mailbox not found" }, { status: 404 });+ }+ if (input.destination.type === "folder") {+ const db = getDb(env);+ const [folder] = await db+ .select({ id: folders.id })+ .from(folders)+ .where(and(eq(folders.id, input.destination.folderId), eq(folders.mailboxId, access.mailbox.id)))+ .limit(1);+ if (!folder) {+ return NextResponse.json({ error: "Folder not found" }, { status: 404 });+ }+ }++ try {+ const rawMessages = await fetchImapMessages(input);+ const result = await importMessagesToMailbox(env, {+ userId: getImportMessageUserId(input.destination, user.id, access.mailbox.userId),+ mailboxId: access.mailbox.id,+ destination: input.destination,+ messages: rawMessages,+ });+ return NextResponse.json(result);+ } catch (error) {+ return NextResponse.json(+ { error: error instanceof Error ? error.message : "IMAP import failed" },+ { status: 502 },+ );+ }+}diff --git a/src/app/api/import/imap/types.d.ts b/src/app/api/import/imap/types.d.tsnew file mode 100644index 0000000..fdc014a--- /dev/null+++ b/src/app/api/import/imap/types.d.ts@@ -0,0 +1,11 @@+export type ImapImportRequest = {+ mailboxId?: string;+ host?: string;+ port?: number;+ secure?: boolean;+ username?: string;+ password?: string;+ folder?: string;+ limit?: number;+ destination?: string;+};diff --git a/src/app/api/import/imap/utils.ts b/src/app/api/import/imap/utils.tsnew file mode 100644index 0000000..617b9b7--- /dev/null+++ b/src/app/api/import/imap/utils.ts@@ -0,0 +1,34 @@+import type { ImapImportInput } from "@/lib/import/imap-types";+import { parseImportDestination } from "@/lib/import/destination";+import type { ImportDestination } from "@/lib/import/destination-types";+import type { ImapImportRequest } from "./types";++export function parseImapImportRequest(input: ImapImportRequest): ImapImportInput & {+ mailboxId: string;+ destination: ImportDestination;+} {+ const host = input.host?.trim() ?? "";+ const port = Number(input.port ?? 993);+ const username = input.username?.trim() ?? "";+ const password = input.password ?? "";+ const folder = input.folder?.trim() || "INBOX";+ const limit = Math.min(Math.max(Number(input.limit ?? 25), 1), 100);+ const destination = parseImportDestination(input.destination);++ if (!input.mailboxId) throw new Error("Mailbox is required");+ if (!host) throw new Error("IMAP host is required");+ if (!Number.isInteger(port) || port < 1 || port > 65535) throw new Error("IMAP port is invalid");+ if (!username || !password) throw new Error("IMAP username and password are required");++ return {+ mailboxId: input.mailboxId,+ host,+ port,+ secure: input.secure ?? port === 993,+ username,+ password,+ folder,+ limit,+ destination,+ };+}diff --git a/src/app/api/import/messages/route.ts b/src/app/api/import/messages/route.tsnew file mode 100644index 0000000..72cc6a8--- /dev/null+++ b/src/app/api/import/messages/route.ts@@ -0,0 +1,51 @@+import { NextResponse } from "next/server";+import { and, eq } from "drizzle-orm";+import { getDb } from "@/db";+import { folders } from "@/db/schema";+import { requireUser } from "@/lib/auth/cookies";+import { getEnv } from "@/lib/cloudflare";+import { RequestBodyTooLargeError } from "@/lib/http/errors";+import { getImportMessageUserId } from "@/lib/import/destination";+import { importMessagesToMailbox } from "@/lib/import/service";+import { getMailboxAccessLevel } from "@/lib/mailboxes/access";+import { parseImportForm } from "./utils";++export async function POST(request: Request) {+ const env = getEnv();+ const user = await requireUser(env, request);+ let input: Awaited<ReturnType<typeof parseImportForm>>;+ try {+ input = await parseImportForm(request);+ } catch (error) {+ const status = error instanceof RequestBodyTooLargeError ? 413 : 400;+ return NextResponse.json({ error: "Invalid import upload" }, { status });+ }++ if (!input.mailboxId || input.messages.length === 0) {+ return NextResponse.json({ error: "Select a mailbox and at least one .eml or .mbox file" }, { status: 400 });+ }++ const db = getDb(env);+ const access = await getMailboxAccessLevel(db, user, input.mailboxId);+ if (!access?.canManage) {+ return NextResponse.json({ error: "Mailbox not found" }, { status: 404 });+ }+ if (input.destination.type === "folder") {+ const [folder] = await db+ .select({ id: folders.id })+ .from(folders)+ .where(and(eq(folders.id, input.destination.folderId), eq(folders.mailboxId, access.mailbox.id)))+ .limit(1);+ if (!folder) {+ return NextResponse.json({ error: "Folder not found" }, { status: 404 });+ }+ }++ const result = await importMessagesToMailbox(env, {+ userId: getImportMessageUserId(input.destination, user.id, access.mailbox.userId),+ mailboxId: access.mailbox.id,+ destination: input.destination,+ messages: input.messages,+ });+ return NextResponse.json(result);+}diff --git a/src/app/api/import/messages/types.d.ts b/src/app/api/import/messages/types.d.tsnew file mode 100644index 0000000..934e9b9--- /dev/null+++ b/src/app/api/import/messages/types.d.ts@@ -0,0 +1,6 @@+export type ImportMessagesResponse = {+ imported?: number;+ skipped?: number;+ errors?: string[];+ error?: string;+};diff --git a/src/app/api/import/messages/utils.ts b/src/app/api/import/messages/utils.tsnew file mode 100644index 0000000..887ed74--- /dev/null+++ b/src/app/api/import/messages/utils.ts@@ -0,0 +1,54 @@+import { readFormDataBody } from "@/lib/http/request";+import { parseImportDestination } from "@/lib/import/destination";+import type { ImportDestination } from "@/lib/import/destination-types";+import { splitMboxMessages } from "@/lib/import/mbox";+import type { ImportMessageInput } from "@/lib/import/types";++const MAX_IMPORT_REQUEST_SIZE = 25 * 1024 * 1024;+const MAX_IMPORT_MESSAGES = 100;++function isMboxFile(filename: string, type: string): boolean {+ const name = filename.toLowerCase();+ return name.endsWith(".mbox") || name.endsWith(".mbx") || type === "application/mbox";+}++function isEmlFile(filename: string, type: string): boolean {+ const name = filename.toLowerCase();+ return name.endsWith(".eml") || type === "message/rfc822";+}++function stringToArrayBuffer(value: string): ArrayBuffer {+ const bytes = new TextEncoder().encode(value);+ return bytes.buffer.slice(bytes.byteOffset, bytes.byteOffset + bytes.byteLength) as ArrayBuffer;+}++export async function parseImportForm(request: Request): Promise<{+ mailboxId: string;+ destination: ImportDestination;+ messages: ImportMessageInput[];+}> {+ const form = await readFormDataBody(request, MAX_IMPORT_REQUEST_SIZE);+ const mailboxId = String(form.get("mailboxId") ?? "");+ const destination = parseImportDestination(form.get("destination"));+ const files = form.getAll("files").filter((value): value is File => value instanceof File && value.size > 0);+ const messages: ImportMessageInput[] = [];++ for (const file of files) {+ if (isMboxFile(file.name, file.type)) {+ const content = await file.text();+ for (const [index, raw] of splitMboxMessages(content).entries()) {+ messages.push({+ filename: `${file.name}#${index + 1}`,+ raw: stringToArrayBuffer(raw),+ });+ }+ continue;+ }++ if (isEmlFile(file.name, file.type) || file.type === "") {+ messages.push({ filename: file.name, raw: await file.arrayBuffer() });+ }+ }++ return { mailboxId, destination, messages: messages.slice(0, MAX_IMPORT_MESSAGES) };+}diff --git a/src/app/api/mailboxes/[id]/access/route.ts b/src/app/api/mailboxes/[id]/access/route.tsnew file mode 100644index 0000000..7c9e74d--- /dev/null+++ b/src/app/api/mailboxes/[id]/access/route.ts@@ -0,0 +1,16 @@+import { NextResponse } from "next/server";++const mailboxAccessRemovedResponse = () =>+ NextResponse.json({ error: "Delegated mailbox access is not available in this build" }, { status: 410 });++export async function GET() {+ return mailboxAccessRemovedResponse();+}++export async function POST() {+ return mailboxAccessRemovedResponse();+}++export async function DELETE() {+ return mailboxAccessRemovedResponse();+}diff --git a/src/app/api/mailboxes/[id]/access/types.d.ts b/src/app/api/mailboxes/[id]/access/types.d.tsnew file mode 100644index 0000000..0b89354--- /dev/null+++ b/src/app/api/mailboxes/[id]/access/types.d.ts@@ -0,0 +1,12 @@+export type MailboxAccessRouteParams = {+ params: Promise<{ id: string }>;+};++export type MailboxAccessResponseItem = {+ id: string;+ userId: string;+ userEmail: string;+ userName: string;+ permission: "read_only" | "send_as" | "send_on_behalf" | "full_access";+ createdAt: string;+};diff --git a/src/app/api/mailboxes/[id]/route.ts b/src/app/api/mailboxes/[id]/route.tsindex a5d09e8..3f39603 100644--- a/src/app/api/mailboxes/[id]/route.ts+++ b/src/app/api/mailboxes/[id]/route.ts@@ -4,6 +4,7 @@ import { getDb } from "@/db";import { mailboxes } from "@/db/schema";import { requireUser } from "@/lib/auth/cookies";import { getEnv } from "@/lib/cloudflare";+import { getMailboxAccessLevel } from "@/lib/mailboxes/access";import { updateMailboxSchema } from "@/lib/validators";import type { MailboxRouteParams } from "./types";import { getMailboxUpdateValues, selectMailboxForUser } from "./utils";@@ -13,6 +14,10 @@ export async function GET(request: Request, { params }: MailboxRouteParams) {const env = getEnv();const user = await requireUser(env, request);const db = getDb(env);+ const access = await getMailboxAccessLevel(db, user, id);+ if (!access?.canRead) {+ return NextResponse.json({ error: "Mailbox not found" }, { status: 404 });+ }const [mailbox] = await selectMailboxForUser(db, user.id, id);if (!mailbox) {@@ -22,6 +27,7 @@ export async function GET(request: Request, { params }: MailboxRouteParams) {return NextResponse.json({mailbox: {...mailbox,+ permission: access.permission,isPrimary: `${mailbox.localPart}@${mailbox.hostname}` === user.email,},});@@ -38,9 +44,10 @@ export async function PATCH(request: Request, { params }: MailboxRouteParams) {}const db = getDb(env);+ const access = await getMailboxAccessLevel(db, user, id);const [existing] = await selectMailboxForUser(db, user.id, id);- if (!existing) {+ if (!existing || !access?.canManage) {return NextResponse.json({ error: "Mailbox not found" }, { status: 404 });}@@ -57,6 +64,7 @@ export async function PATCH(request: Request, { params }: MailboxRouteParams) {return NextResponse.json({mailbox: {...mailbox,+ permission: access.permission,isPrimary: `${mailbox!.localPart}@${mailbox!.hostname}` === user.email,},});diff --git a/src/app/api/mailboxes/[id]/utils.ts b/src/app/api/mailboxes/[id]/utils.tsindex de4ed64..ec0e31d 100644--- a/src/app/api/mailboxes/[id]/utils.ts+++ b/src/app/api/mailboxes/[id]/utils.ts@@ -1,4 +1,4 @@-import { and, eq } from "drizzle-orm";+import { eq } from "drizzle-orm";import { domains, mailboxes } from "@/db/schema";import type { getDb } from "@/db";import type { MailboxUpdateValues } from "./types";@@ -13,12 +13,14 @@ export function selectMailboxForUser(db: Db, userId: string, mailboxId: string)domainId: mailboxes.domainId,localPart: mailboxes.localPart,displayName: mailboxes.displayName,+ type: mailboxes.type,+ disabled: mailboxes.disabled,createdAt: mailboxes.createdAt,hostname: domains.hostname,}).from(mailboxes).innerJoin(domains, eq(mailboxes.domainId, domains.id))- .where(and(eq(mailboxes.id, mailboxId), eq(mailboxes.userId, userId)))+ .where(eq(mailboxes.id, mailboxId)).limit(1);}diff --git a/src/app/api/mailboxes/route.ts b/src/app/api/mailboxes/route.tsindex 5eb3c7b..bbe9c4e 100644--- a/src/app/api/mailboxes/route.ts+++ b/src/app/api/mailboxes/route.ts@@ -7,30 +7,14 @@ import { requireUser } from "@/lib/auth/cookies";import { newId } from "@/lib/ids";import { mailboxSchema } from "@/lib/validators";import { ensureEmailRoutingRuleToWorker } from "@/lib/cloudflare-api";+import { listAccessibleMailboxes } from "@/lib/mailboxes/access";export async function GET(request: Request) {const env = getEnv();const user = await requireUser(env, request);const db = getDb(env);- const rows = await db- .select({- id: mailboxes.id,- userId: mailboxes.userId,- domainId: mailboxes.domainId,- localPart: mailboxes.localPart,- displayName: mailboxes.displayName,- createdAt: mailboxes.createdAt,- hostname: domains.hostname,- })- .from(mailboxes)- .innerJoin(domains, eq(mailboxes.domainId, domains.id))- .where(eq(mailboxes.userId, user.id));- return NextResponse.json({- mailboxes: rows.map((row) => ({- ...row,- isPrimary: `${row.localPart}@${row.hostname}` === user.email,- })),- });+ const rows = await listAccessibleMailboxes(db, user);+ return NextResponse.json({ mailboxes: rows });}export async function POST(request: Request) {@@ -42,6 +26,7 @@ export async function POST(request: Request) {}const db = getDb(env);+ const mailboxType = "personal";const [domain] = await db.select().from(domains)@@ -76,10 +61,12 @@ export async function POST(request: Request) {domainId: parsed.data.domainId,localPart,displayName: parsed.data.displayName,+ type: mailboxType,});return NextResponse.json({id,address,+ type: mailboxType,});}diff --git a/src/app/api/messages/[messageId]/attachments/[attachmentId]/route.ts b/src/app/api/messages/[messageId]/attachments/[attachmentId]/route.tsnew file mode 100644index 0000000..0949f06--- /dev/null+++ b/src/app/api/messages/[messageId]/attachments/[attachmentId]/route.ts@@ -0,0 +1,40 @@+import { getCurrentUser } from "@/lib/auth/cookies";+import { getEnv } from "@/lib/cloudflare";+import { getAttachmentForUser } from "@/lib/email/attachments";+import type { AttachmentRouteParams } from "./types";+import {+ getAttachmentContentDisposition,+ isPreviewableAttachmentType,+} from "./utils";++export async function GET(request: Request, { params }: AttachmentRouteParams) {+ const env = getEnv();+ const user = await getCurrentUser(env, request);+ if (!user) return new Response("Unauthorized", { status: 401 });++ const { attachmentId, messageId } = await params;+ const result = await getAttachmentForUser(env, user, messageId, attachmentId);+ if (!result) return new Response("Not found", { status: 404 });++ const { attachment, object } = result;+ const url = new URL(request.url);+ const previewRequested = url.searchParams.get("preview") === "1";+ const downloadRequested = url.searchParams.get("download") === "1";+ const inline =+ !downloadRequested &&+ (attachment.disposition === "inline" ||+ (previewRequested && isPreviewableAttachmentType(attachment.contentType)));+ const headers = new Headers();+ object.writeHttpMetadata(headers);+ headers.set("Content-Type", attachment.contentType);+ headers.set("Content-Length", String(attachment.size));+ headers.set("Content-Disposition", getAttachmentContentDisposition(attachment.filename, inline));+ headers.set("X-Content-Type-Options", "nosniff");+ headers.set(+ "Content-Security-Policy",+ "default-src 'none'; img-src 'self' data: blob:; media-src 'self' blob:; style-src 'unsafe-inline'; sandbox",+ );+ headers.set("Cache-Control", "private, max-age=3600");++ return new Response(object.body, { headers });+}diff --git a/src/app/api/messages/[messageId]/attachments/[attachmentId]/types.d.ts b/src/app/api/messages/[messageId]/attachments/[attachmentId]/types.d.tsnew file mode 100644index 0000000..baa4d5b--- /dev/null+++ b/src/app/api/messages/[messageId]/attachments/[attachmentId]/types.d.ts@@ -0,0 +1,6 @@+export interface AttachmentRouteParams {+ params: Promise<{+ attachmentId: string;+ messageId: string;+ }>;+}diff --git a/src/app/api/messages/[messageId]/attachments/[attachmentId]/utils.ts b/src/app/api/messages/[messageId]/attachments/[attachmentId]/utils.tsnew file mode 100644index 0000000..178c9ad--- /dev/null+++ b/src/app/api/messages/[messageId]/attachments/[attachmentId]/utils.ts@@ -0,0 +1,17 @@+export function getAttachmentContentDisposition(filename: string, inline: boolean): string {+ const safeFilename = filename.replace(/["\\\r\n]/g, "_");+ return `${inline ? "inline" : "attachment"}; filename="${safeFilename}"`;+}++export function isPreviewableAttachmentType(contentType: string): boolean {+ return (+ contentType === "application/pdf" ||+ contentType.startsWith("audio/") ||+ contentType.startsWith("video/") ||+ (contentType.startsWith("image/") && contentType !== "image/svg+xml") ||+ contentType.startsWith("text/plain") ||+ contentType === "application/json" ||+ contentType === "application/xml" ||+ contentType === "text/csv"+ );+}diff --git a/src/app/api/messages/[messageId]/read/route.ts b/src/app/api/messages/[messageId]/read/route.tsindex 6a23a14..346c09c 100644--- a/src/app/api/messages/[messageId]/read/route.ts+++ b/src/app/api/messages/[messageId]/read/route.ts@@ -1,7 +1,7 @@import { NextResponse } from "next/server";import { getEnv } from "@/lib/cloudflare";import { getCurrentUser } from "@/lib/auth/cookies";-import { markMessageAsRead } from "@/lib/user";+import { markMessageAsReadForUser } from "@/lib/user";export async function POST(request: Request,@@ -14,7 +14,7 @@ export async function POST(return NextResponse.json({ error: "Unauthorized" }, { status: 401 });}- const success = await markMessageAsRead(env, user.id, messageId);+ const success = await markMessageAsReadForUser(env, user, messageId);if (!success) {return NextResponse.json({ error: "Message not found" }, { status: 404 });}diff --git a/src/app/api/messages/[messageId]/route.ts b/src/app/api/messages/[messageId]/route.tsindex 6a6822d..09fe597 100644--- a/src/app/api/messages/[messageId]/route.ts+++ b/src/app/api/messages/[messageId]/route.ts@@ -1,7 +1,7 @@import { NextResponse } from "next/server";import { getCurrentUser } from "@/lib/auth/cookies";import { getEnv } from "@/lib/cloudflare";-import { getMessageWithBody } from "@/lib/email/inbound";+import { getMessageWithBodyForUser } from "@/lib/email/inbound";type MessageRouteParams = {params: Promise<{ messageId: string }>;@@ -15,7 +15,7 @@ export async function GET(request: Request, { params }: MessageRouteParams) {}const { messageId } = await params;- const data = await getMessageWithBody(env, user.id, messageId);+ const data = await getMessageWithBodyForUser(env, user, messageId);if (!data) {return NextResponse.json({ error: "Not found" }, { status: 404 });}diff --git a/src/app/api/messages/[messageId]/status/route.ts b/src/app/api/messages/[messageId]/status/route.tsindex 2499fc3..7fafb6e 100644--- a/src/app/api/messages/[messageId]/status/route.ts+++ b/src/app/api/messages/[messageId]/status/route.ts@@ -1,7 +1,7 @@import { NextResponse } from "next/server";import { getEnv } from "@/lib/cloudflare";import { getCurrentUser } from "@/lib/auth/cookies";-import { updateMessageStatus } from "@/lib/user";+import { updateMessageStatusForUser } from "@/lib/user";import type { MessageStatusPayload } from "./types";import { isAllowedMessageStatus } from "./utils";@@ -21,7 +21,7 @@ export async function POST(return NextResponse.json({ error: "Invalid message status" }, { status: 400 });}- const success = await updateMessageStatus(env, user.id, messageId, payload.status);+ const success = await updateMessageStatusForUser(env, user, messageId, payload.status);if (!success) {return NextResponse.json({ error: "Message not found" }, { status: 404 });}diff --git a/src/app/api/messages/bulk/route.ts b/src/app/api/messages/bulk/route.tsindex fbc4007..5a9bec1 100644--- a/src/app/api/messages/bulk/route.ts+++ b/src/app/api/messages/bulk/route.ts@@ -1,9 +1,11 @@-import { and, eq, inArray } from "drizzle-orm";+import { eq, inArray } from "drizzle-orm";import { NextResponse } from "next/server";import { getDb } from "@/db";-import { messages } from "@/db/schema";+import { folders, messages } from "@/db/schema";import { getCurrentUser } from "@/lib/auth/cookies";import { getEnv } from "@/lib/cloudflare";+import { getMailboxAccessLevel } from "@/lib/mailboxes/access";+import { createAuditLog } from "@/lib/mailboxes/audit";import type { BulkMessagePayload } from "./types";import {getReadValueForBulkAction,@@ -26,20 +28,66 @@ export async function POST(request: Request) {const status = getStatusForBulkAction(payload.action);const read = getReadValueForBulkAction(payload.action);+ const db = getDb(env);+ let folderId: string | null | undefined;++ if (payload.action === "folder") {+ if (!payload.folderId) {+ return NextResponse.json({ error: "Folder is required" }, { status: 400 });+ }+ const [folder] = await db+ .select({ id: folders.id, mailboxId: folders.mailboxId })+ .from(folders)+ .where(eq(folders.id, payload.folderId))+ .limit(1);+ if (!folder) {+ return NextResponse.json({ error: "Folder not found" }, { status: 404 });+ }+ const folderAccess = await getMailboxAccessLevel(db, user, folder.mailboxId);+ if (!folderAccess?.canManage) {+ return NextResponse.json({ error: "Folder not found" }, { status: 404 });+ }+ folderId = folder.id;+ } else if (payload.action === "spam" || payload.action === "trash" || payload.action === "inbox" || payload.action === "archive") {+ folderId = null;+ }+const values = {...(status ? { status } : {}),...(read !== null ? { read } : {}),+ ...(folderId !== undefined ? { folderId } : {}),};if (Object.keys(values).length === 0) {return NextResponse.json({ error: "No changes requested" }, { status: 400 });}- const db = getDb(env);- await db- .update(messages)- .set(values)- .where(and(eq(messages.userId, user.id), inArray(messages.id, messageIds)));+ const selectedMessages = await db.select().from(messages).where(inArray(messages.id, messageIds));+ const allowedMessageIds: string[] = [];++ for (const message of selectedMessages) {+ if (!message.mailboxId) continue;+ const access = await getMailboxAccessLevel(db, user, message.mailboxId);+ const canUpdate = payload.action === "read" || payload.action === "unread" ? access?.canRead : access?.canManage;+ if (!canUpdate) continue;+ allowedMessageIds.push(message.id);+ }++ if (allowedMessageIds.length === 0) {+ return NextResponse.json({ error: "No accessible messages" }, { status: 404 });+ }++ await db.update(messages).set(values).where(inArray(messages.id, allowedMessageIds));+ await Promise.all(+ allowedMessageIds.map((messageId) =>+ createAuditLog(env, {+ actorUserId: user.id,+ messageId,+ action: payload.action === "read" || payload.action === "unread" ? "email.read" : "email.delete",+ metadata: { bulkAction: payload.action },+ }),+ ),+ );return NextResponse.json({ ok: true });}diff --git a/src/app/api/messages/bulk/types.d.ts b/src/app/api/messages/bulk/types.d.tsindex 8da1d10..95de860 100644--- a/src/app/api/messages/bulk/types.d.ts+++ b/src/app/api/messages/bulk/types.d.ts@@ -1,6 +1,7 @@-export type BulkMessageAction = "archive" | "trash" | "spam" | "read" | "unread" | "inbox";+export type BulkMessageAction = "archive" | "trash" | "spam" | "read" | "unread" | "inbox" | "folder";export type BulkMessagePayload = {messageIds?: string[];action?: BulkMessageAction;+ folderId?: string;};diff --git a/src/app/api/messages/bulk/utils.ts b/src/app/api/messages/bulk/utils.tsindex 17df126..71a9175 100644--- a/src/app/api/messages/bulk/utils.ts+++ b/src/app/api/messages/bulk/utils.ts@@ -7,6 +7,7 @@ const allowedBulkActions = new Set<BulkMessageAction>(["read","unread","inbox",+ "folder",]);export function isAllowedBulkMessageAction(action: unknown): action is BulkMessageAction {@@ -18,6 +19,7 @@ export function getStatusForBulkAction(action: BulkMessageAction): string | nullif (action === "trash") return "trash";if (action === "spam") return "spam";if (action === "inbox") return "received";+ if (action === "folder") return "received";return null;}diff --git a/src/app/api/messages/counts/route.ts b/src/app/api/messages/counts/route.tsindex f86d442..18064ea 100644--- a/src/app/api/messages/counts/route.ts+++ b/src/app/api/messages/counts/route.ts@@ -1,10 +1,12 @@-import { and, eq } from "drizzle-orm";+import { and, eq, inArray } from "drizzle-orm";+import type { SQL } from "drizzle-orm";import { NextResponse } from "next/server";import { getDb } from "@/db";import { messages } from "@/db/schema";import { getCurrentUser } from "@/lib/auth/cookies";import { getEnv } from "@/lib/cloudflare";import { buildMessageCounts } from "./utils";+import { getMailboxAccessLevel, listAccessibleMailboxIds } from "@/lib/mailboxes/access";export async function GET(request: Request) {const env = getEnv();@@ -16,15 +18,27 @@ export async function GET(request: Request) {const url = new URL(request.url);const mailboxId = url.searchParams.get("mailboxId");const db = getDb(env);- const conditions = [eq(messages.userId, user.id)];+ const conditions: SQL[] = [];if (mailboxId) {+ const access = await getMailboxAccessLevel(db, user, mailboxId);+ if (!access?.canRead) {+ return NextResponse.json({ error: "Mailbox not found" }, { status: 404 });+ }conditions.push(eq(messages.mailboxId, mailboxId));+ } else {+ const accessibleMailboxIds = await listAccessibleMailboxIds(db, user);+ if (accessibleMailboxIds.length > 0) {+ conditions.push(inArray(messages.mailboxId, accessibleMailboxIds));+ } else {+ conditions.push(eq(messages.userId, user.id));+ }}const rows = await db.select({mailboxId: messages.mailboxId,+ folderId: messages.folderId,direction: messages.direction,status: messages.status,read: messages.read,diff --git a/src/app/api/messages/counts/types.d.ts b/src/app/api/messages/counts/types.d.tsindex 5329222..02fd726 100644--- a/src/app/api/messages/counts/types.d.ts+++ b/src/app/api/messages/counts/types.d.ts@@ -3,7 +3,7 @@ import type { messages } from "@/db/schema";export type MessageCountRow = Pick<typeof messages.$inferSelect,- "mailboxId" | "direction" | "status" | "read"+ "mailboxId" | "folderId" | "direction" | "status" | "read">;export type FolderAccumulator = MessageCounts["folders"];diff --git a/src/app/api/messages/counts/utils.ts b/src/app/api/messages/counts/utils.tsindex 48e066c..0421889 100644--- a/src/app/api/messages/counts/utils.ts+++ b/src/app/api/messages/counts/utils.ts@@ -4,7 +4,8 @@ import type { CountableFolder, MessageCountRow } from "./types";export function getMessageFolder(row: MessageCountRow): CountableFolder {if (row.status === "trash") return "trash";if (row.status === "spam") return "spam";- if (row.direction === "inbound" && row.status === "received") return "inbox";+ if (row.status === "archived") return "archived";+ if (row.direction === "inbound" && row.status === "received" && !row.folderId) return "inbox";if (row.direction === "outbound" && row.status === "sent") return "sent";if (row.direction === "outbound" && row.status === "draft") return "drafts";return null;@@ -15,6 +16,7 @@ export function createEmptyFolderCounts(): MessageCounts["folders"] {inbox: { total: 0, unread: 0 },sent: { total: 0, unread: 0 },drafts: { total: 0, unread: 0 },+ archived: { total: 0, unread: 0 },spam: { total: 0, unread: 0 },trash: { total: 0, unread: 0 },};@@ -22,13 +24,22 @@ export function createEmptyFolderCounts(): MessageCounts["folders"] {export function buildMessageCounts(rows: MessageCountRow[]): MessageCounts {const folders = createEmptyFolderCounts();+ const customFolders: MessageCounts["customFolders"] = {};const mailboxMap = new Map<string, { mailboxId: string; total: number; unread: number; inbox: number }>();for (const row of rows) {const folder = getMessageFolder(row);+ const unread = row.direction === "inbound" && !row.read;if (folder) {folders[folder].total += 1;- if (!row.read) folders[folder].unread += 1;+ if (unread) folders[folder].unread += 1;+ }++ if (row.folderId) {+ const folderCount = customFolders[row.folderId] ?? { total: 0, unread: 0 };+ folderCount.total += 1;+ if (unread) folderCount.unread += 1;+ customFolders[row.folderId] = folderCount;}if (!row.mailboxId) continue;@@ -40,19 +51,18 @@ export function buildMessageCounts(rows: MessageCountRow[]): MessageCounts {inbox: 0,};mailboxCount.total += 1;- if (!row.read) mailboxCount.unread += 1;+ if (unread) mailboxCount.unread += 1;if (folder === "inbox") mailboxCount.inbox += 1;mailboxMap.set(row.mailboxId, mailboxCount);}return {folders,- mailboxes: [...mailboxMap.values()],+ customFolders,+ mailboxes: Array.from(mailboxMap.values()),};}export function getFolderLabelCount(folder: MessageFolder, counts: MessageCounts["folders"]) {- const count = counts[folder];- if (folder === "inbox" || folder === "spam") return count.unread || count.total;- return count.total;+ return counts[folder].unread;}diff --git a/src/app/api/messages/route.ts b/src/app/api/messages/route.tsindex 931b9d8..6d40e95 100644--- a/src/app/api/messages/route.ts+++ b/src/app/api/messages/route.ts@@ -1,5 +1,6 @@import { NextResponse } from "next/server";-import { eq, desc, and, like, or, count } from "drizzle-orm";+import { eq, desc, and, like, or, count, isNull, inArray } from "drizzle-orm";+import type { SQL } from "drizzle-orm";import { getEnv } from "@/lib/cloudflare";import { getCurrentUser } from "@/lib/auth/cookies";import { getDb } from "@/db";@@ -7,6 +8,7 @@ import { messages } from "@/db/schema";import { getContactDisplayNameMap } from "@/lib/contacts/service";import { normalizeEmailAddress } from "@/lib/email/address";import { getLatestEmailContent } from "@/lib/email/reply-content-utils";+import { getMailboxAccessLevel, listAccessibleMailboxIds } from "@/lib/mailboxes/access";export async function GET(request: Request) {const env = getEnv();@@ -18,6 +20,7 @@ export async function GET(request: Request) {const url = new URL(request.url);const direction = url.searchParams.get("direction");const mailboxId = url.searchParams.get("mailboxId");+ const folderId = url.searchParams.get("folderId");const status = url.searchParams.get("status");const query = url.searchParams.get("q")?.trim();const title = url.searchParams.get("title")?.trim();@@ -26,16 +29,31 @@ export async function GET(request: Request) {const offset = Math.max(Number(url.searchParams.get("offset") ?? 0), 0);const db = getDb(env);- const conditions = [eq(messages.userId, user.id)];+ const accessibleMailboxIds = await listAccessibleMailboxIds(db, user);+ const conditions: SQL[] = [];+ if (mailboxId) {+ const access = await getMailboxAccessLevel(db, user, mailboxId);+ if (!access?.canRead) {+ return NextResponse.json({ error: "Mailbox not found" }, { status: 404 });+ }+ conditions.push(eq(messages.mailboxId, mailboxId));+ } else if (accessibleMailboxIds.length > 0) {+ conditions.push(inArray(messages.mailboxId, accessibleMailboxIds));+ } else {+ conditions.push(eq(messages.userId, user.id));+ }if (direction === "inbound" || direction === "outbound") {conditions.push(eq(messages.direction, direction));}- if (mailboxId) {- conditions.push(eq(messages.mailboxId, mailboxId));+ if (folderId) {+ conditions.push(eq(messages.folderId, folderId));}if (status) {conditions.push(eq(messages.status, status));}+ if (status === "received" && !folderId) {+ conditions.push(isNull(messages.folderId));+ }if (read === "read") {conditions.push(eq(messages.read, true));}diff --git a/src/app/api/routing-rules/[id]/route.ts b/src/app/api/routing-rules/[id]/route.tsnew file mode 100644index 0000000..dd9a670--- /dev/null+++ b/src/app/api/routing-rules/[id]/route.ts@@ -0,0 +1,27 @@+import { eq } from "drizzle-orm";+import { NextResponse } from "next/server";+import { getDb } from "@/db";+import { routingRules } from "@/db/schema";+import { requireUser } from "@/lib/auth/cookies";+import { getEnv } from "@/lib/cloudflare";+import { getMailboxAccessLevel } from "@/lib/mailboxes/access";+import type { RoutingRuleRouteParams } from "./types";++export async function DELETE(request: Request, { params }: RoutingRuleRouteParams) {+ const { id } = await params;+ const env = getEnv();+ const user = await requireUser(env, request);+ const db = getDb(env);+ const [rule] = await db.select().from(routingRules).where(eq(routingRules.id, id)).limit(1);+ if (!rule?.mailboxId) {+ return NextResponse.json({ error: "Rule not found" }, { status: 404 });+ }+ const access = await getMailboxAccessLevel(db, user, rule.mailboxId);+ if (!access?.canManage) {+ return NextResponse.json({ error: "Rule not found" }, { status: 404 });+ }++ await db.delete(routingRules).where(eq(routingRules.id, id));++ return NextResponse.json({ ok: true });+}diff --git a/src/app/api/routing-rules/[id]/types.d.ts b/src/app/api/routing-rules/[id]/types.d.tsnew file mode 100644index 0000000..e6ae9d6--- /dev/null+++ b/src/app/api/routing-rules/[id]/types.d.ts@@ -0,0 +1,3 @@+export type RoutingRuleRouteParams = {+ params: Promise<{ id: string }>;+};diff --git a/src/app/api/routing-rules/route.ts b/src/app/api/routing-rules/route.tsindex c640706..50730a8 100644--- a/src/app/api/routing-rules/route.ts+++ b/src/app/api/routing-rules/route.ts@@ -1,17 +1,32 @@import { NextResponse } from "next/server";-import { eq } from "drizzle-orm";+import { and, eq } from "drizzle-orm";import { getEnv } from "@/lib/cloudflare";import { getDb } from "@/db";-import { domains, routingRules } from "@/db/schema";+import { folders, routingRules } from "@/db/schema";import { requireUser } from "@/lib/auth/cookies";import { newId } from "@/lib/ids";+import { getMailboxAccessLevel } from "@/lib/mailboxes/access";import { routingRuleSchema } from "@/lib/validators";export async function GET(request: Request) {const env = getEnv();const user = await requireUser(env, request);+ const url = new URL(request.url);+ const mailboxId = url.searchParams.get("mailboxId");+ if (!mailboxId) {+ return NextResponse.json({ rules: [] });+ }+const db = getDb(env);- const rows = await db.select().from(routingRules).where(eq(routingRules.userId, user.id));+ const access = await getMailboxAccessLevel(db, user, mailboxId);+ if (!access?.canManage) {+ return NextResponse.json({ error: "Mailbox not found" }, { status: 404 });+ }++ const rows = await db+ .select()+ .from(routingRules)+ .where(eq(routingRules.mailboxId, mailboxId));return NextResponse.json({ rules: rows });}@@ -24,20 +39,44 @@ export async function POST(request: Request) {}const db = getDb(env);- const [domain] = await db.select().from(domains).where(eq(domains.id, parsed.data.domainId)).limit(1);- if (!domain || domain.userId !== user.id) {- return NextResponse.json({ error: "Domain not found" }, { status: 404 });+ const access = await getMailboxAccessLevel(db, user, parsed.data.mailboxId);+ if (!access?.canManage) {+ return NextResponse.json({ error: "Mailbox not found" }, { status: 404 });+ }+ const mailbox = access.mailbox;++ const destination = parsed.data.destination ?? (parsed.data.folderId ? `folder:${parsed.data.folderId}` : "");+ const systemAction = destination === "spam" || destination === "trash" ? destination : null;+ const folderId = destination.startsWith("folder:") ? destination.slice("folder:".length) : null;++ if (!systemAction && !folderId) {+ return NextResponse.json({ error: "Destination is required" }, { status: 400 });+ }++ if (folderId) {+ const [folder] = await db+ .select()+ .from(folders)+ .where(and(eq(folders.id, folderId), eq(folders.mailboxId, mailbox.id)))+ .limit(1);+ if (!folder) {+ return NextResponse.json({ error: "Folder not found" }, { status: 404 });+ }}const id = newId("rule");await db.insert(routingRules).values({id,userId: user.id,- domainId: parsed.data.domainId,- pattern: parsed.data.pattern,- action: parsed.data.action,- mailboxId: parsed.data.mailboxId ?? null,- forwardTo: parsed.data.forwardTo ?? null,+ domainId: mailbox.domainId,+ pattern: parsed.data.matchValue.trim(),+ matchField: parsed.data.matchField,+ matchOperator: parsed.data.matchOperator,+ matchValue: parsed.data.matchValue.trim(),+ action: systemAction ?? "store",+ mailboxId: mailbox.id,+ folderId,+ forwardTo: null,priority: parsed.data.priority,});diff --git a/src/app/api/send/error-utils.ts b/src/app/api/send/error-utils.tsnew file mode 100644index 0000000..afbef9b--- /dev/null+++ b/src/app/api/send/error-utils.ts@@ -0,0 +1,12 @@+export function getSendErrorStatus(message: string): number {+ if (message === "Mailbox is required") return 400;+ if (+ message === "Mailbox not found" ||+ message === "Sender account not found" ||+ message === "You do not have permission to send from this mailbox" ||+ message === "Sender address does not match the selected mailbox"+ ) {+ return 403;+ }+ return 500;+}diff --git a/src/app/api/send/route.ts b/src/app/api/send/route.tsindex f32bf47..4742552 100644--- a/src/app/api/send/route.ts+++ b/src/app/api/send/route.ts@@ -3,20 +3,35 @@ import { getEnv } from "@/lib/cloudflare";import { requireUser } from "@/lib/auth/cookies";import { sendEmailSchema } from "@/lib/validators";import { sendEmail } from "@/lib/email/send";+import { parseSendRequest } from "./utils";+import { RequestBodyTooLargeError } from "@/lib/http/errors";+import { getSendErrorStatus } from "./error-utils";export async function POST(request: Request) {const env = getEnv();const user = await requireUser(env, request);- const parsed = sendEmailSchema.safeParse(await request.json());+ let input;+ try {+ input = await parseSendRequest(request);+ } catch (error) {+ const status = error instanceof RequestBodyTooLargeError ? 413 : 400;+ return NextResponse.json({ error: "Invalid send request" }, { status });+ }+ const { attachments, ...fields } = input;+ const parsed = sendEmailSchema.omit({ attachments: true }).safeParse(fields);if (!parsed.success) {return NextResponse.json({ error: parsed.error.flatten() }, { status: 400 });}try {- const result = await sendEmail(env, { userId: user.id, ...parsed.data });+ const result = await sendEmail(env, {+ userId: user.id,+ ...parsed.data,+ attachments,+ });return NextResponse.json(result);} catch (err) {const message = err instanceof Error ? err.message : "Send failed";- return NextResponse.json({ error: message }, { status: 500 });+ return NextResponse.json({ error: message }, { status: getSendErrorStatus(message) });}}diff --git a/src/app/api/send/types.d.ts b/src/app/api/send/types.d.tsnew file mode 100644index 0000000..437d388--- /dev/null+++ b/src/app/api/send/types.d.ts@@ -0,0 +1,11 @@+import type { AttachmentContent } from "@/lib/email/attachment-types";++export interface SendRequestPayload {+ attachments?: AttachmentContent[];+ from: string;+ html?: string;+ mailboxId?: string;+ subject: string;+ text?: string;+ to: string;+}diff --git a/src/app/api/send/utils.ts b/src/app/api/send/utils.tsnew file mode 100644index 0000000..cafb92b--- /dev/null+++ b/src/app/api/send/utils.ts@@ -0,0 +1,38 @@+import type { AttachmentContent } from "@/lib/email/attachment-types";+import { readFormDataBody, readJsonBody } from "@/lib/http/request";+import type { SendRequestPayload } from "./types";++const MAX_SEND_REQUEST_SIZE = 30 * 1024 * 1024;++function getOptionalFormValue(form: FormData, key: string): string | undefined {+ const value = form.get(key);+ return typeof value === "string" && value ? value : undefined;+}++export async function parseSendRequest(request: Request): Promise<SendRequestPayload> {+ if (!request.headers.get("content-type")?.includes("multipart/form-data")) {+ return readJsonBody<SendRequestPayload>(request, MAX_SEND_REQUEST_SIZE);+ }++ const form = await readFormDataBody(request, MAX_SEND_REQUEST_SIZE);+ const attachments: AttachmentContent[] = [];+ for (const value of form.getAll("attachments")) {+ if (!(value instanceof File) || value.size === 0) continue;+ attachments.push({+ filename: value.name,+ type: value.type || "application/octet-stream",+ content: await value.arrayBuffer(),+ disposition: "attachment",+ });+ }++ return {+ from: String(form.get("from") ?? ""),+ to: String(form.get("to") ?? ""),+ subject: String(form.get("subject") ?? ""),+ text: getOptionalFormValue(form, "text"),+ html: getOptionalFormValue(form, "html"),+ mailboxId: getOptionalFormValue(form, "mailboxId"),+ attachments,+ };+}diff --git a/src/app/api/setup/domain/route.ts b/src/app/api/setup/domain/route.tsindex d6e392d..a9cb494 100644--- a/src/app/api/setup/domain/route.ts+++ b/src/app/api/setup/domain/route.ts@@ -1,17 +1,31 @@import { NextResponse } from "next/server";+import { hasAdminAccount } from "@/lib/auth/setup";import { getEnv } from "@/lib/cloudflare";import { provisionDomainOnCloudflare } from "@/lib/domains/provision";import { getPrimaryDomain } from "@/lib/user";import { setupDomainSchema } from "@/lib/validators";+import { readJsonBody } from "@/lib/http/request";+import { RequestBodyTooLargeError } from "@/lib/http/errors";export async function POST(request: Request) {const env = getEnv();+ if (await hasAdminAccount(env)) {+ return NextResponse.json({ error: "Initial setup is already complete" }, { status: 403 });+ }+const existing = await getPrimaryDomain(env);if (existing) {return NextResponse.json({ error: "Primary domain already exists" }, { status: 409 });}- const parsed = setupDomainSchema.safeParse(await request.json());+ let body: unknown;+ try {+ body = await readJsonBody(request, 16 * 1024);+ } catch (error) {+ const status = error instanceof RequestBodyTooLargeError ? 413 : 400;+ return NextResponse.json({ error: "Invalid setup request" }, { status });+ }+ const parsed = setupDomainSchema.safeParse(body);if (!parsed.success) {return NextResponse.json({ error: parsed.error.flatten() }, { status: 400 });}diff --git a/src/app/api/setup/status/route.ts b/src/app/api/setup/status/route.tsindex b916859..af920c9 100644--- a/src/app/api/setup/status/route.ts+++ b/src/app/api/setup/status/route.ts@@ -1,12 +1,19 @@import { NextResponse } from "next/server";+import { hasAdminAccount } from "@/lib/auth/setup";import { getEnv } from "@/lib/cloudflare";import { getPrimaryDomain } from "@/lib/user";export async function GET() {const env = getEnv();- const domain = await getPrimaryDomain(env);+ const [adminAccountExists, domain] = await Promise.all([+ hasAdminAccount(env),+ getPrimaryDomain(env),+ ]);return NextResponse.json({+ hasAdminAccount: adminAccountExists,hasPrimaryDomain: !!domain,- primaryDomain: domain ? { id: domain.id, hostname: domain.hostname } : null,+ primaryDomain: domain ? { hostname: domain.hostname } : null,+ }, {+ headers: { "Cache-Control": "no-store" },});}diff --git a/src/app/api/v1/messages/route.ts b/src/app/api/v1/messages/route.tsindex ce76851..17b8504 100644--- a/src/app/api/v1/messages/route.ts+++ b/src/app/api/v1/messages/route.ts@@ -1,9 +1,11 @@import { NextResponse } from "next/server";-import { eq, desc, and } from "drizzle-orm";+import { eq, desc, and, inArray } from "drizzle-orm";+import type { SQL } from "drizzle-orm";import { getEnv } from "@/lib/cloudflare";import { authenticateApiKey, requireScope } from "@/lib/api/auth";import { getDb } from "@/db";-import { messages } from "@/db/schema";+import { messages, users } from "@/db/schema";+import { getMailboxAccessLevel, listAccessibleMailboxIds } from "@/lib/mailboxes/access";export async function GET(request: Request) {const env = getEnv();@@ -18,8 +20,25 @@ export async function GET(request: Request) {const limit = Math.min(Number(url.searchParams.get("limit") ?? 50), 100);const db = getDb(env);- const conditions = [eq(messages.userId, auth.userId)];- if (mailboxId) conditions.push(eq(messages.mailboxId, mailboxId));+ const [user] = await db.select().from(users).where(eq(users.id, auth.userId)).limit(1);+ if (!user || user.disabled) {+ return NextResponse.json({ error: "Unauthorized" }, { status: 401 });+ }+ const conditions: SQL[] = [];+ if (mailboxId) {+ const access = await getMailboxAccessLevel(db, user, mailboxId);+ if (!access?.canRead) {+ return NextResponse.json({ error: "Mailbox not found" }, { status: 404 });+ }+ conditions.push(eq(messages.mailboxId, mailboxId));+ } else {+ const accessibleMailboxIds = await listAccessibleMailboxIds(db, user);+ if (accessibleMailboxIds.length > 0) {+ conditions.push(inArray(messages.mailboxId, accessibleMailboxIds));+ } else {+ conditions.push(eq(messages.userId, auth.userId));+ }+ }if (direction === "inbound" || direction === "outbound") {conditions.push(eq(messages.direction, direction));}diff --git a/src/app/api/v1/send/route.ts b/src/app/api/v1/send/route.tsindex d88ac42..12173b5 100644--- a/src/app/api/v1/send/route.ts+++ b/src/app/api/v1/send/route.ts@@ -3,6 +3,10 @@ import { getEnv } from "@/lib/cloudflare";import { authenticateApiKey, requireScope } from "@/lib/api/auth";import { sendEmailSchema } from "@/lib/validators";import { sendEmail } from "@/lib/email/send";+import { decodeBase64Content } from "@/lib/email/attachments";+import { readJsonBody } from "@/lib/http/request";+import { RequestBodyTooLargeError } from "@/lib/http/errors";+import { getSendErrorStatus } from "@/app/api/send/error-utils";export async function POST(request: Request) {const env = getEnv();@@ -11,17 +15,33 @@ export async function POST(request: Request) {return NextResponse.json({ error: "Unauthorized" }, { status: 401 });}- const body = await request.json();+ let body: unknown;+ try {+ body = await readJsonBody(request, 30 * 1024 * 1024);+ } catch (error) {+ const status = error instanceof RequestBodyTooLargeError ? 413 : 400;+ return NextResponse.json({ error: "Invalid send request" }, { status });+ }const parsed = sendEmailSchema.safeParse(body);if (!parsed.success) {return NextResponse.json({ error: parsed.error.flatten() }, { status: 400 });}try {- const result = await sendEmail(env, { userId: auth.userId, ...parsed.data });+ const { attachments, ...fields } = parsed.data;+ const result = await sendEmail(env, {+ userId: auth.userId,+ ...fields,+ attachments: attachments?.map((attachment) => ({+ filename: attachment.filename,+ type: attachment.type,+ content: decodeBase64Content(attachment.contentBase64),+ disposition: "attachment",+ })),+ });return NextResponse.json(result);} catch (err) {const message = err instanceof Error ? err.message : "Send failed";- return NextResponse.json({ error: message }, { status: 500 });+ return NextResponse.json({ error: message }, { status: getSendErrorStatus(message) });}}diff --git a/src/app/api/webhooks/route.ts b/src/app/api/webhooks/route.tsindex 83933d2..bdfd890 100644--- a/src/app/api/webhooks/route.ts+++ b/src/app/api/webhooks/route.ts@@ -6,6 +6,8 @@ import { webhooks } from "@/db/schema";import { requireUser } from "@/lib/auth/cookies";import { newId } from "@/lib/ids";import { webhookSchema } from "@/lib/validators";+import { readJsonBody } from "@/lib/http/request";+import { RequestBodyTooLargeError } from "@/lib/http/errors";export async function GET(request: Request) {const env = getEnv();@@ -20,7 +22,14 @@ export async function GET(request: Request) {export async function POST(request: Request) {const env = getEnv();const user = await requireUser(env, request);- const parsed = webhookSchema.safeParse(await request.json());+ let body: unknown;+ try {+ body = await readJsonBody(request, 16 * 1024);+ } catch (error) {+ const status = error instanceof RequestBodyTooLargeError ? 413 : 400;+ return NextResponse.json({ error: "Invalid webhook request" }, { status });+ }+ const parsed = webhookSchema.safeParse(body);if (!parsed.success) {return NextResponse.json({ error: parsed.error.flatten() }, { status: 400 });}diff --git a/src/app/globals.css b/src/app/globals.cssindex 7866116..f856cf5 100644--- a/src/app/globals.css+++ b/src/app/globals.css@@ -16,7 +16,7 @@--color-background: var(--background);--color-foreground: var(--foreground);--font-sans: var(--font-geist-sans);- --font-mono: var(--font-geist-mono);+ --no-font-mono: var(--font-geist-mono);}body {@@ -24,3 +24,11 @@ body {color: var(--foreground);font-family: var(--font-geist-sans), system-ui, sans-serif;}++pre {+ font-family: var(--font-geist-sans), system-ui, sans-serif;+}++.text {+ font-family: var(--font-geist-sans), system-ui, sans-serif;+}\ No newline at end of filediff --git a/src/app/loading.tsx b/src/app/loading.tsxnew file mode 100644index 0000000..daebc9f--- /dev/null+++ b/src/app/loading.tsx@@ -0,0 +1,3 @@+import { PageSkeleton } from "@/components/page-skeletons";++export default PageSkeleton;diff --git a/src/app/login/login-client.tsx b/src/app/login/login-client.tsxindex 498bc24..8b08d8b 100644--- a/src/app/login/login-client.tsx+++ b/src/app/login/login-client.tsx@@ -2,18 +2,27 @@import Link from "next/link";import { useRouter } from "next/navigation";-import { useState } from "react";+import { useEffect, useState } from "react";import { ArrowRight, Mail } from "lucide-react";import { AuthShell } from "@/components/auth/auth-shell";import { Button } from "@/components/ui/button";import { Input } from "@/components/ui/input";import { Label } from "@/components/ui/label";-import { submitLogin } from "./utils";+import { TurnstileField } from "@/components/auth/turnstile";+import { getRegistrationStatus, submitLogin } from "./utils";export function LoginClient() {const router = useRouter();+ const [registrationOpen, setRegistrationOpen] = useState(false);const [error, setError] = useState<string | null>(null);const [loading, setLoading] = useState(false);+ const [turnstileReset, setTurnstileReset] = useState(0);++ useEffect(() => {+ void getRegistrationStatus()+ .then((status) => setRegistrationOpen(!status.hasAdminAccount))+ .catch(() => setRegistrationOpen(false));+ }, []);async function onSubmit(e: React.FormEvent<HTMLFormElement>) {e.preventDefault();@@ -24,9 +33,11 @@ export function LoginClient() {setLoading(false);if (!ok) {setError(data.error ?? "Login failed");+ setTurnstileReset((value) => value + 1);return;}- router.push(data.redirect ?? "/inbox");+ router.replace(data.redirect ?? "/inbox");+ router.refresh();}return (@@ -34,7 +45,7 @@ export function LoginClient() {icon={Mail}title="Sign in"description="Open your mailbox and continue from the same inbox workspace."- footer={+ footer={registrationOpen ? (<Linkhref="/register"className="inline-flex items-center gap-2 hover:underline"@@ -42,7 +53,7 @@ export function LoginClient() {Create account<ArrowRight className="h-4 w-4" /></Link>- }+ ) : undefined}><form onSubmit={onSubmit} className="space-y-5"><div className="space-y-2">@@ -70,6 +81,7 @@ export function LoginClient() {{error}</p>)}+ <TurnstileField resetSignal={turnstileReset} /><Buttontype="submit"className="h-11 w-full rounded-full px-6 active:scale-[0.98]"diff --git a/src/app/login/types.d.ts b/src/app/login/types.d.tsindex b0f1b7b..05446a0 100644--- a/src/app/login/types.d.ts+++ b/src/app/login/types.d.ts@@ -3,3 +3,7 @@ export type LoginResult = {redirect?: string;error?: string;};++export type RegistrationStatus = {+ hasAdminAccount: boolean;+};diff --git a/src/app/login/utils.ts b/src/app/login/utils.tsindex ed83ed8..df45476 100644--- a/src/app/login/utils.ts+++ b/src/app/login/utils.ts@@ -1,5 +1,14 @@import { persistAuthSession } from "@/lib/auth/client";-import type { LoginResult } from "./types";+import type { LoginResult, RegistrationStatus } from "./types";++export async function getRegistrationStatus(): Promise<RegistrationStatus> {+ const response = await fetch("/api/setup/status", { cache: "no-store" });+ if (!response.ok) {+ throw new Error("Could not load registration status");+ }++ return (await response.json()) as RegistrationStatus;+}export async function submitLogin(form: FormData): Promise<{ ok: boolean; data: LoginResult }> {const res = await fetch("/api/auth/login", {@@ -8,6 +17,7 @@ export async function submitLogin(form: FormData): Promise<{ ok: boolean; data:body: JSON.stringify({email: form.get("email"),password: form.get("password"),+ turnstileToken: form.get("turnstileToken"),}),});diff --git a/src/app/onboarding/onboarding-client.tsx b/src/app/onboarding/onboarding-client.tsxindex b115122..a3a3cf6 100644--- a/src/app/onboarding/onboarding-client.tsx+++ b/src/app/onboarding/onboarding-client.tsx@@ -82,7 +82,7 @@ export function OnboardingClient() {<><p className="rounded-2xl bg-[#eaf1fb] px-4 py-3 text-sm leading-6 text-neutral-700">Your domain must use Cloudflare DNS on the same account as{" "}- <code className="font-mono text-xs font-semibold text-blue-800">CF_TOKEN</code>.+ <code className="no-font-mono text-xs font-semibold text-blue-800">CF_TOKEN</code>.</p><div className="space-y-2"><Label htmlFor="domain">Domain</Label>diff --git a/src/app/page.tsx b/src/app/page.tsxindex ab88abe..cd3736f 100644--- a/src/app/page.tsx+++ b/src/app/page.tsx@@ -37,7 +37,7 @@ export default function HomePage() {className="flex items-center gap-3"aria-label="Email Platform home">- <img src="/icon-96.png" height={28} width={28} />+ <img src="/icon-96.png" height={32} width={32} /><span className="text-base font-semibold tracking-tight">Mailflare</span>@@ -72,8 +72,7 @@ export default function HomePage() {</h1><p className="mt-6 max-w-xl text-lg leading-8 text-neutral-600">Add domains, route inbound mail, send through API keys, and manage- team mailboxes from one quiet workspace built around the message- list.+ your mailboxes from one quiet workspace built around the message list.</p><div className="mt-8 flex flex-col gap-3 sm:flex-row"><Button size="lg" asChild className="rounded-full px-6">@@ -199,7 +198,7 @@ export default function HomePage() {<div className="grid gap-4 sm:grid-cols-3">{inboxStats.map((stat) => (<div key={stat.label} className="border-t border-neutral-200 pt-4">- <p className="font-mono text-2xl font-semibold text-neutral-950">{stat.value}</p>+ <p className="no-font-mono text-2xl font-semibold text-neutral-950">{stat.value}</p><p className="mt-1 text-sm text-neutral-500">{stat.label}</p></div>))}diff --git a/src/app/register/register-client.tsx b/src/app/register/register-client.tsxindex 61043f5..56293a6 100644--- a/src/app/register/register-client.tsx+++ b/src/app/register/register-client.tsx@@ -8,6 +8,7 @@ import { AuthShell } from "@/components/auth/auth-shell";import { Button } from "@/components/ui/button";import { Input } from "@/components/ui/input";import { Label } from "@/components/ui/label";+import { TurnstileField } from "@/components/auth/turnstile";import {getSetupStatus,submitPrimaryDomain,@@ -16,6 +17,7 @@ import {export function RegisterClient() {const router = useRouter();+ const [hasAdminAccount, setHasAdminAccount] = useState<boolean | null>(null);const [hasPrimaryDomain, setHasPrimaryDomain] = useState<boolean | null>(null,);@@ -24,14 +26,19 @@ export function RegisterClient() {const [step, setStep] = useState<1 | 2>(1);const [error, setError] = useState<string | null>(null);const [loading, setLoading] = useState(false);+ const [turnstileReset, setTurnstileReset] = useState(0);useEffect(() => {void getSetupStatus().then((data) => {+ setHasAdminAccount(data.hasAdminAccount);setHasPrimaryDomain(data.hasPrimaryDomain);setPrimaryDomain(data.primaryDomain?.hostname ?? null);})- .catch(() => setHasPrimaryDomain(true));+ .catch(() => {+ setHasAdminAccount(true);+ setHasPrimaryDomain(true);+ });}, []);async function onDomainSubmit(e: React.FormEvent<HTMLFormElement>) {@@ -59,28 +66,58 @@ export function RegisterClient() {setError(null);const form = new FormData(e.currentTarget);- const firstRun = hasPrimaryDomain === false;- const domain = firstRun ? setupDomain : primaryDomain;+ const domain = setupDomain ?? primaryDomain;if (!domain) {setLoading(false);setError("Domain setup is not complete");return;}- const { ok, data } = await submitRegistration(form, { firstRun, domain });+ const { ok, data } = await submitRegistration(form, { firstRun: true, domain });setLoading(false);if (!ok) {setError(typeof data.error === "string" ? data.error : "Registration failed",);+ setTurnstileReset((value) => value + 1);return;}router.push(data.redirect ?? "/inbox");}- const firstRun = hasPrimaryDomain === false;- const accountDomain = firstRun ? setupDomain : primaryDomain;- const showDomainStep = firstRun && step === 1;+ const accountDomain = setupDomain ?? primaryDomain;+ const showDomainStep = hasPrimaryDomain === false && step === 1;++ if (hasAdminAccount === true) {+ return (+ <AuthShell+ icon={MailPlus}+ title="Account registration is closed"+ footer={+ <Link+ href="/login"+ className="inline-flex items-center gap-2 hover:underline"+ >+ Sign in instead+ <ArrowRight className="h-4 w-4" />+ </Link>+ }+ >+ <div className="space-y-5">+ <p className="text-sm leading-6 text-neutral-600">+ This installation already has an account for {primaryDomain ?? "this workspace"}.+ </p>+ <Button+ type="button"+ className="h-11 w-full rounded-full px-6 active:scale-[0.98]"+ onClick={() => router.push("/login")}+ >+ Go to login+ </Button>+ </div>+ </AuthShell>+ );+ }return (<AuthShell@@ -92,7 +129,7 @@ export function RegisterClient() {// : `Choose a mailbox username on ${accountDomain ?? "the primary domain"} and add a recovery email.`// }steps={- firstRun+ hasAdminAccount === false && hasPrimaryDomain === false? [{ label: "Domain", active: step === 1 },{ label: "Account", active: step === 2 },@@ -184,10 +221,11 @@ export function RegisterClient() {{error}</p>)}+ <TurnstileField resetSignal={turnstileReset} /><Buttontype="submit"className="h-11 w-full rounded-full px-6 active:scale-[0.98] mt-8"- disabled={loading || hasPrimaryDomain === null}+ disabled={loading || hasAdminAccount === null || hasPrimaryDomain === null}>{loading ? "Creating..." : "Create account"}</Button>diff --git a/src/app/register/types.d.ts b/src/app/register/types.d.tsindex bffbe28..a7f00f7 100644--- a/src/app/register/types.d.ts+++ b/src/app/register/types.d.ts@@ -1,4 +1,5 @@export type SetupStatus = {+ hasAdminAccount: boolean;hasPrimaryDomain: boolean;primaryDomain?: { hostname: string } | null;};diff --git a/src/app/register/utils.ts b/src/app/register/utils.tsindex e30a909..7021e0d 100644--- a/src/app/register/utils.ts+++ b/src/app/register/utils.ts@@ -33,11 +33,13 @@ export async function submitRegistration(username: form.get("username"),password: form.get("password"),resetEmail: form.get("resetEmail"),+ turnstileToken: form.get("turnstileToken"),}: {username: form.get("username"),password: form.get("password"),resetEmail: form.get("resetEmail"),+ turnstileToken: form.get("turnstileToken"),},),});diff --git a/src/components/admin-nav.tsx b/src/components/admin-nav.tsxindex 64d2caf..cbb1ff1 100644--- a/src/components/admin-nav.tsx+++ b/src/components/admin-nav.tsx@@ -3,19 +3,23 @@import Link from "next/link";import { usePathname } from "next/navigation";import {+ DatabaseBackup,Globe2,- KeyRound,+ Activity,Mail,Settings,} from "lucide-react";import { cn } from "@/lib/utils";import { NavItem } from "./components-nav";+import { SidebarFooter } from "./sidebar-footer";const links = [{ href: "/admin", label: "Overview", icon: Settings },{ href: "/mailboxes", label: "Mailboxes", icon: Mail },{ href: "/domains", label: "Domains", icon: Globe2 },- { href: "/api-keys", label: "API Keys", icon: KeyRound },+ { href: "/activity", label: "Activity", icon: Activity },+ { href: "/backups", label: "Backups", icon: DatabaseBackup },+ // { href: "/api-keys", label: "API Keys", icon: KeyRound },// { href: "/webhooks", label: "Webhooks", icon: Webhook }];@@ -23,7 +27,7 @@ export function AdminNav({ className }: { className?: string }) {const pathname = usePathname();return (- <nav className={cn("flex flex-col gap-1", className)}>+ <nav className={cn("flex min-h-full flex-col gap-1", className)}><Linkhref="/inbox"className="mb-3 flex h-10 items-center gap-3 px-3 text-neutral-600"@@ -32,6 +36,8 @@ export function AdminNav({ className }: { className?: string }) {<span className="text-lg font-semibold text-neutral-800">Admin</span></Link>{links.map((link) => <NavItem link={link} key={link.href} />)}+ <span className="flex-1" />+ <SidebarFooter /></nav>);}diff --git a/src/components/admin-update-card-types.d.ts b/src/components/admin-update-card-types.d.tsnew file mode 100644index 0000000..a9cbbcf--- /dev/null+++ b/src/components/admin-update-card-types.d.ts@@ -0,0 +1,16 @@+export interface UpdateStatusResponse {+ available?: boolean;+ currentVersion?: string;+ error?: string;+ repository?: string;+ targetVersion?: string;+}++export interface UpdateWorkflowResponse {+ error?: string;+ ok?: boolean;+ ref?: string;+ repository?: string;+ runUrl?: string;+ workflowRunId?: number;+}diff --git a/src/components/admin-update-card-utils.ts b/src/components/admin-update-card-utils.tsnew file mode 100644index 0000000..a35b361--- /dev/null+++ b/src/components/admin-update-card-utils.ts@@ -0,0 +1,23 @@+import type { UpdateStatusResponse, UpdateWorkflowResponse } from "./admin-update-card-types";++export async function getApplicationUpdateStatus(): Promise<UpdateStatusResponse> {+ const response = await fetch("/api/admin/update", { cache: "no-store" });+ const data = (await response.json()) as UpdateStatusResponse;++ if (!response.ok) {+ throw new Error(data.error ?? "Could not check for updates");+ }++ return data;+}++export async function triggerApplicationUpdate(): Promise<UpdateWorkflowResponse> {+ const response = await fetch("/api/admin/update", { method: "POST" });+ const data = (await response.json()) as UpdateWorkflowResponse;++ if (!response.ok) {+ throw new Error(data.error ?? "Could not start the update");+ }++ return data;+}diff --git a/src/components/admin-update-card.tsx b/src/components/admin-update-card.tsxnew file mode 100644index 0000000..f5f7206--- /dev/null+++ b/src/components/admin-update-card.tsx@@ -0,0 +1,94 @@+"use client";++import { useEffect, useState } from "react";+import { RefreshCw } from "lucide-react";+import { Button } from "@/components/ui/button";+import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";+import { Skeleton } from "@/components/ui/skeleton";+import { getApplicationUpdateStatus, triggerApplicationUpdate } from "./admin-update-card-utils";+import type { UpdateStatusResponse, UpdateWorkflowResponse } from "./admin-update-card-types";++export function AdminUpdateCard() {+ const [status, setStatus] = useState<UpdateStatusResponse>();+ const [result, setResult] = useState<UpdateWorkflowResponse>();+ const [error, setError] = useState("");+ const [isChecking, setIsChecking] = useState(true);+ const [isPending, setIsPending] = useState(false);++ useEffect(() => {+ let isActive = true;++ getApplicationUpdateStatus()+ .then((updateStatus) => {+ if (isActive) setStatus(updateStatus);+ })+ .catch((statusError) => {+ if (isActive) {+ setError(statusError instanceof Error ? statusError.message : "Could not check for updates");+ }+ })+ .finally(() => {+ if (isActive) setIsChecking(false);+ });++ return () => {+ isActive = false;+ };+ }, []);++ async function handleUpdate() {+ setError("");+ setResult(undefined);+ setIsPending(true);++ try {+ setResult(await triggerApplicationUpdate());+ } catch (updateError) {+ setError(updateError instanceof Error ? updateError.message : "Could not start the update");+ } finally {+ setIsPending(false);+ }+ }++ return (+ <Card className="max-w-5xl">+ <CardHeader className="flex-row items-center gap-4 space-y-0">+ <div className="flex h-10 w-10 items-center justify-center rounded-full bg-blue-100 text-blue-700">+ <RefreshCw className="h-5 w-5" />+ </div>+ <div>+ <CardTitle className="text-base">Application update</CardTitle>+ <p className="mt-1 text-sm text-neutral-500">+ Sync the latest Mailflare release, apply D1 migrations, and deploy the Worker.+ </p>+ </div>+ </CardHeader>+ <CardContent className="flex items-center gap-4">+ <Button type="button" onClick={handleUpdate} disabled={isChecking || isPending || !status?.available}>+ <RefreshCw className={isPending ? "h-4 w-4 animate-spin" : "h-4 w-4"} />+ {isPending ? "Starting update..." : "Update Mailflare"}+ </Button>+ {isChecking && <Skeleton className="h-4 w-44" />}+ {!isChecking && status?.available && (+ <p className="text-sm text-amber-700">+ Update available: v{status.currentVersion} → v{status.targetVersion}+ </p>+ )}+ {!isChecking && status && !status.available && (+ <p className="text-sm text-green-700">Mailflare v{status.currentVersion} is up to date.</p>+ )}+ {result?.ok && (+ <p className="text-sm text-green-700">+ Update started for {result.repository}@{result.ref}.{" "}+ {result.runUrl && (+ <a className="font-medium underline" href={result.runUrl} target="_blank" rel="noreferrer">+ View workflow+ </a>+ )}+ </p>+ )}+ {error && <p className="text-sm text-red-600">{error}</p>}+ </CardContent>+ </Card>+ );+}diff --git a/src/components/auth/auth-guard-types.d.ts b/src/components/auth/auth-guard-types.d.tsindex a0fa697..ed46fcb 100644--- a/src/components/auth/auth-guard-types.d.ts+++ b/src/components/auth/auth-guard-types.d.ts@@ -6,4 +6,5 @@ export type AuthGuardProps = {children: ReactNode;mode?: AuthGuardMode;requireMailbox?: boolean;+ requireRole?: "admin";};diff --git a/src/components/auth/auth-guard.tsx b/src/components/auth/auth-guard.tsxindex f300e7d..6eed7f5 100644--- a/src/components/auth/auth-guard.tsx+++ b/src/components/auth/auth-guard.tsx@@ -4,8 +4,9 @@ import { usePathname, useRouter } from "next/navigation";import { useEffect, useState } from "react";import { authFetch, getClientSessionToken } from "@/lib/auth/client";import type { AuthGuardProps } from "./auth-guard-types";+import { PageSkeleton } from "@/components/page-skeletons";-export function AuthGuard({ children, mode = "protected", requireMailbox }: AuthGuardProps) {+export function AuthGuard({ children, mode = "protected", requireMailbox, requireRole }: AuthGuardProps) {const pathname = usePathname();const router = useRouter();const [authorized, setAuthorized] = useState(mode === "public");@@ -28,7 +29,7 @@ export function AuthGuard({ children, mode = "protected", requireMailbox }: Authreturn;}- const data = (await response.json()) as { hasMailboxes?: boolean };+ const data = (await response.json()) as { hasMailboxes?: boolean; user?: { role?: string } };if (mode === "public") {router.replace(data.hasMailboxes === false ? "/onboarding" : "/inbox");return;@@ -44,6 +45,11 @@ export function AuthGuard({ children, mode = "protected", requireMailbox }: Authreturn;}+ if (requireRole && data.user?.role !== requireRole) {+ router.replace("/inbox");+ return;+ }+setAuthorized(true);}@@ -52,8 +58,8 @@ export function AuthGuard({ children, mode = "protected", requireMailbox }: Authreturn () => {cancelled = true;};- }, [mode, pathname, requireMailbox, router]);+ }, [mode, pathname, requireMailbox, requireRole, router]);- if (!authorized) return null;+ if (!authorized) return <PageSkeleton />;return <>{children}</>;}diff --git a/src/components/auth/turnstile.tsx b/src/components/auth/turnstile.tsxnew file mode 100644index 0000000..674fd14--- /dev/null+++ b/src/components/auth/turnstile.tsx@@ -0,0 +1,95 @@+"use client";++import { useEffect, useRef, useState } from "react";++type TurnstileWindow = Window & {+ turnstile?: {+ render: (+ container: HTMLElement,+ options: {+ sitekey: string;+ callback: (token: string) => void;+ "expired-callback": () => void;+ "error-callback": () => void;+ },+ ) => string;+ reset: (widgetId?: string) => void;+ remove: (widgetId?: string) => void;+ };+};++const TURNSTILE_SITE_KEY = process.env.NEXT_PUBLIC_TURNSTILE_SITE_KEY;++function loadTurnstileScript(): Promise<void> {+ const existing = document.querySelector<HTMLScriptElement>("script[data-turnstile]");+ if (existing) {+ return existing.dataset.loaded === "true"+ ? Promise.resolve()+ : new Promise((resolve) => existing.addEventListener("load", () => resolve(), { once: true }));+ }++ return new Promise((resolve, reject) => {+ const script = document.createElement("script");+ script.src = "https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit";+ script.async = true;+ script.defer = true;+ script.dataset.turnstile = "true";+ script.addEventListener("load", () => {+ script.dataset.loaded = "true";+ resolve();+ });+ script.addEventListener("error", () => reject(new Error("Turnstile failed to load")));+ document.head.appendChild(script);+ });+}++export function TurnstileField({+ name = "turnstileToken",+ resetSignal,+}: {+ name?: string;+ resetSignal?: number;+}) {+ const containerRef = useRef<HTMLDivElement | null>(null);+ const widgetId = useRef<string | undefined>(undefined);+ const [token, setToken] = useState("");++ useEffect(() => {+ if (!TURNSTILE_SITE_KEY || !containerRef.current) return;+ let cancelled = false;++ void loadTurnstileScript().then(() => {+ if (cancelled || !containerRef.current) return;+ const turnstile = (window as TurnstileWindow).turnstile;+ if (!turnstile || widgetId.current) return;+ widgetId.current = turnstile.render(containerRef.current, {+ sitekey: TURNSTILE_SITE_KEY,+ callback: setToken,+ "expired-callback": () => setToken(""),+ "error-callback": () => setToken(""),+ });+ });++ return () => {+ cancelled = true;+ const turnstile = (window as TurnstileWindow).turnstile;+ if (turnstile && widgetId.current) turnstile.remove(widgetId.current);+ widgetId.current = undefined;+ };+ }, []);++ useEffect(() => {+ if (!resetSignal || !widgetId.current) return;+ (window as TurnstileWindow).turnstile?.reset(widgetId.current);+ setToken("");+ }, [resetSignal]);++ if (!TURNSTILE_SITE_KEY) return null;++ return (+ <div className="space-y-2">+ <div ref={containerRef} />+ <input type="hidden" name={name} value={token} />+ </div>+ );+}diff --git a/src/components/components-nav-types.d.ts b/src/components/components-nav-types.d.tsnew file mode 100644index 0000000..bd842e2--- /dev/null+++ b/src/components/components-nav-types.d.ts@@ -0,0 +1,10 @@+import type { LucideIcon } from "lucide-react";++export type NavLink = {+ href?: string;+ label?: string;+ icon?: LucideIcon;+ primary?: boolean;+ count?: number;+ onMessageDrop?: (messageIds: string[]) => void;+};diff --git a/src/components/components-nav.tsx b/src/components/components-nav.tsxindex 2c8bc5b..d40ab3b 100644--- a/src/components/components-nav.tsx+++ b/src/components/components-nav.tsx@@ -1,26 +1,50 @@import Link from "next/link";+import type { DragEvent } from "react";+import { useState } from "react";import { cn } from "@/lib/utils";import { usePathname } from "next/navigation";+import { getMessageDragData } from "@/lib/messages/drag-utils";import { useCompose } from "./compose/compose-context";+import type { NavLink } from "./components-nav-types";-export function NavItem({ link }:{ link: any }) {+export function NavItem({ link }:{ link: NavLink }) {const pathname = usePathname();const { openComposer } = useCompose();+ const [dragOver, setDragOver] = useState(false);if (!link.href) {return <span className="flex-1" />;}const Icon = link.icon;+ if (!Icon) return null;const active = pathname === link.href || pathname.startsWith(`${link.href}/`);const classes = cn("flex h-9 items-center gap-3 rounded-r-full text-sm font-medium text-neutral-700 transition-colors hover:bg-blue-50",active && "bg-blue-100 text-blue-900",+ dragOver && "bg-blue-50 text-blue-900 ring-1 ring-blue-200",link.primary &&"mb-3 h-12 w-fit rounded-2xl bg-blue-100 px-5 text-blue-950 shadow-sm hover:bg-blue-200",);+ const dropProps = link.onMessageDrop+ ? {+ onDragOver: (event: DragEvent) => {+ event.preventDefault();+ event.dataTransfer.dropEffect = "move";+ setDragOver(true);+ },+ onDragLeave: () => setDragOver(false),+ onDrop: (event: DragEvent) => {+ const payload = getMessageDragData(event.dataTransfer);+ setDragOver(false);+ if (!payload) return;+ event.preventDefault();+ link.onMessageDrop?.(payload.messageIds);+ },+ }+ : {};if (link.href === "/compose") {return (@@ -28,6 +52,7 @@ export function NavItem({ link }:{ link: any }) {type="button"onClick={openComposer}className={classes}+ {...dropProps}><Icon className="h-4 w-4" /><span className="flex-1">{link.label}</span>@@ -44,6 +69,7 @@ export function NavItem({ link }:{ link: any }) {<Linkhref={link.href}className={cn("-ml-3 pl-6", classes)}+ {...dropProps}><Icon className="h-4 w-4" /><span className="flex-1">{link.label}</span>diff --git a/src/components/compose/compose-form.tsx b/src/components/compose/compose-form.tsxindex 09f82fd..185ffe7 100644--- a/src/components/compose/compose-form.tsx+++ b/src/components/compose/compose-form.tsx@@ -1,7 +1,7 @@"use client";import { useEffect, useMemo, useRef, useState } from "react";-import { Minimize2, Send, X } from "lucide-react";+import { FileText, Minimize2, Paperclip, Send, X } from "lucide-react";import { Button } from "@/components/ui/button";import { Input } from "@/components/ui/input";import { Label } from "@/components/ui/label";@@ -10,7 +10,8 @@ import { useSelectedMailbox } from "@/components/mailbox-provider";import { authFetch } from "@/lib/auth/client";import { formatEmailAddress } from "@/lib/email/address";import { cn } from "@/lib/utils";-import { fetchDraft } from "./utils";+import { buildSendFormData, fetchDraft, formatAttachmentSize } from "./utils";+import type { ComposeAttachment } from "./types";type Toast = { type: "success" | "error"; message: string } | null;@@ -28,18 +29,20 @@ export function ComposeForm({const [to, setTo] = useState("");const [subject, setSubject] = useState("");const [text, setText] = useState("");+ const [attachments, setAttachments] = useState<ComposeAttachment[]>([]);const [toast, setToast] = useState<Toast>(null);const [loading, setLoading] = useState(false);const [loadingDraft, setLoadingDraft] = useState(false);const [loadedDraftMailboxId, setLoadedDraftMailboxId] = useState<string | null>(null);const saveTimer = useRef<ReturnType<typeof setTimeout> | null>(null);+ const attachmentInput = useRef<HTMLInputElement | null>(null);const fromAddr = useMemo(() =>selectedMailbox? formatEmailAddress(`${selectedMailbox.localPart}@${selectedMailbox.hostname}`,- selectedMailbox.displayName ?? selectedMailbox.localPart,+ selectedMailbox.displayName,): "",[selectedMailbox],@@ -82,10 +85,11 @@ export function ComposeForm({useEffect(() => {if (!loadedDraftMailboxId) return;+ if (selectedMailbox?.id === loadedDraftMailboxId) return;const draftMailbox = mailboxes.find((mailbox) => mailbox.id === loadedDraftMailboxId);if (draftMailbox) setSelectedMailbox(draftMailbox);- }, [loadedDraftMailboxId, mailboxes, setSelectedMailbox]);+ }, [loadedDraftMailboxId, mailboxes, selectedMailbox?.id, setSelectedMailbox]);useEffect(() => {const hasContent = to.trim() || subject.trim() || text.trim();@@ -119,8 +123,8 @@ export function ComposeForm({setLoading(true);const res = await authFetch("/api/send", {method: "POST",- headers: { "Content-Type": "application/json" },- body: JSON.stringify({+ body: buildSendFormData({+ attachments,from: fromAddr,to,subject,@@ -145,10 +149,40 @@ export function ComposeForm({setTo("");setSubject("");setText("");+ setAttachments([]);setToast({ type: "success", message: "Message sent" });window.dispatchEvent(new Event("mailflare:messages-changed"));}+ function addAttachments(files: FileList | null) {+ if (!files) return;+ const nextFiles = Array.from(files);+ const nextCount = attachments.length + nextFiles.length;+ const totalSize = [...attachments.map((attachment) => attachment.file), ...nextFiles].reduce(+ (total, file) => total + file.size,+ 0,+ );++ if (nextCount > 10) {+ setToast({ type: "error", message: "A message can include at most 10 attachments" });+ return;+ }+ if (nextFiles.some((file) => file.size > 10 * 1024 * 1024)) {+ setToast({ type: "error", message: "Each attachment must be 10 MB or smaller" });+ return;+ }+ if (totalSize > 20 * 1024 * 1024) {+ setToast({ type: "error", message: "Attachments must total 20 MB or less" });+ return;+ }++ setAttachments((current) => [+ ...current,+ ...nextFiles.map((file) => ({ id: crypto.randomUUID(), file })),+ ]);+ if (attachmentInput.current) attachmentInput.current.value = "";+ }+const frameClass =mode === "popup"? "fixed bottom-4 right-4 z-40 flex h-[min(520px,calc(100vh-88px))] w-[min(560px,calc(100vw-32px))] flex-col overflow-hidden rounded-lg border border-neutral-200 bg-white shadow-2xl"@@ -220,12 +254,56 @@ export function ComposeForm({id={`${mode}-text`}value={text}onChange={(event) => setText(event.target.value)}- requireddisabled={loadingDraft}className="h-full min-h-full resize-none border-0 px-0 shadow-none focus-visible:ring-0"/></div>+ {attachments.length > 0 && (+ <div className="flex flex-wrap gap-2 border-t border-neutral-100 px-4 py-3">+ {attachments.map((attachment) => (+ <div+ key={attachment.id}+ className="flex max-w-full items-center gap-2 rounded-lg border border-neutral-200 bg-neutral-50 px-3 py-2 text-sm"+ >+ <FileText className="h-4 w-4 shrink-0 text-neutral-500" />+ <span className="max-w-48 truncate">{attachment.file.name}</span>+ <span className="text-xs text-neutral-400">+ {formatAttachmentSize(attachment.file.size)}+ </span>+ <button+ type="button"+ onClick={() =>+ setAttachments((current) =>+ current.filter((item) => item.id !== attachment.id),+ )+ }+ className="rounded-full p-1 text-neutral-400 hover:bg-neutral-200 hover:text-neutral-700"+ >+ <X className="h-3.5 w-3.5" />+ <span className="sr-only">Remove attachment</span>+ </button>+ </div>+ ))}+ </div>+ )}<div className="flex items-center gap-3 border-t border-neutral-100 px-4 py-3">+ <input+ ref={attachmentInput}+ type="file"+ multiple+ className="hidden"+ onChange={(event) => addAttachments(event.target.files)}+ />+ <Button+ type="button"+ variant="ghost"+ size="sm"+ onClick={() => attachmentInput.current?.click()}+ disabled={loading || loadingDraft}+ >+ <Paperclip className="h-4 w-4" />+ Attach+ </Button><span className="flex-1" /><p className="text-xs text-neutral-500">{draftId ? "Saved to drafts" : "Autosaves as draft"}</p><Button type="submit" disabled={loading || loadingDraft || !fromAddr} className="rounded-full px-5">diff --git a/src/components/compose/types.d.ts b/src/components/compose/types.d.tsindex 41b21a6..2c4c088 100644--- a/src/components/compose/types.d.ts+++ b/src/components/compose/types.d.ts@@ -12,3 +12,8 @@ export type DraftResponse = {draft?: ComposeDraft;error?: string;};++export type ComposeAttachment = {+ id: string;+ file: File;+};diff --git a/src/components/compose/utils.ts b/src/components/compose/utils.tsindex e221cb6..92a4d5f 100644--- a/src/components/compose/utils.ts+++ b/src/components/compose/utils.ts@@ -1,5 +1,5 @@import { authFetch } from "@/lib/auth/client";-import type { ComposeDraft, DraftResponse } from "./types";+import type { ComposeAttachment, ComposeDraft, DraftResponse } from "./types";export async function fetchDraft(draftId: string): Promise<ComposeDraft> {const res = await authFetch(`/api/drafts/${draftId}`);@@ -11,3 +11,29 @@ export async function fetchDraft(draftId: string): Promise<ComposeDraft> {return json.draft;}++export function buildSendFormData(input: {+ attachments: ComposeAttachment[];+ from: string;+ mailboxId?: string;+ subject: string;+ text: string;+ to: string;+}): FormData {+ const form = new FormData();+ form.set("from", input.from);+ form.set("to", input.to);+ form.set("subject", input.subject);+ form.set("text", input.text);+ if (input.mailboxId) form.set("mailboxId", input.mailboxId);+ for (const attachment of input.attachments) {+ form.append("attachments", attachment.file);+ }+ return form;+}++export function formatAttachmentSize(size: number): string {+ if (size < 1024) return `${size} B`;+ if (size < 1024 * 1024) return `${Math.ceil(size / 1024)} KB`;+ return `${(size / (1024 * 1024)).toFixed(1)} MB`;+}diff --git a/src/components/dashboard-nav-types.d.ts b/src/components/dashboard-nav-types.d.tsnew file mode 100644index 0000000..ee29ea6--- /dev/null+++ b/src/components/dashboard-nav-types.d.ts@@ -0,0 +1,4 @@+export type CustomFolder = {+ id: string;+ name: string;+};diff --git a/src/components/dashboard-nav-utils.ts b/src/components/dashboard-nav-utils.tsindex 9a6330d..aef03b8 100644--- a/src/components/dashboard-nav-utils.ts+++ b/src/components/dashboard-nav-utils.ts@@ -1,7 +1,26 @@+import type { BulkMessageAction } from "@/app/api/messages/bulk/types";import type { MessageCounts, MessageFolder } from "@/hooks/types";+import { authFetch } from "@/lib/auth/client";export function getFolderNavCount(folder: MessageFolder, counts: MessageCounts["folders"]): number | undefined {- const count = counts[folder];- if (folder === "inbox" || folder === "spam") return count.unread;- return undefined;+ return counts[folder].unread;+}++async function moveMessages(payload: { messageIds: string[]; action: BulkMessageAction; folderId?: string }) {+ const response = await authFetch("/api/messages/bulk", {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify(payload),+ });++ if (!response.ok) throw new Error("Unable to move messages");+ window.dispatchEvent(new Event("mailflare:messages-changed"));+}++export function moveMessagesToSystemFolder(messageIds: string[], action: "archive" | "spam" | "trash") {+ return moveMessages({ messageIds, action });+}++export function moveMessagesToCustomFolder(messageIds: string[], folderId: string) {+ return moveMessages({ messageIds, action: "folder", folderId });}diff --git a/src/components/dashboard-nav.tsx b/src/components/dashboard-nav.tsxindex 09e1a4c..53f7c62 100644--- a/src/components/dashboard-nav.tsx+++ b/src/components/dashboard-nav.tsx@@ -1,51 +1,206 @@"use client";import Link from "next/link";+import type { FormEvent } from "react";+import { useEffect, useState } from "react";import {+ Archive,FileText,+ Folder,Inbox,MailPlus,+ Plus,Send,Settings,ShieldAlert,Trash2,} from "lucide-react";import { useSelectedMailbox } from "@/components/mailbox-provider";+import { Button } from "@/components/ui/button";+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogHeader,+ DialogTitle,+ DialogTrigger,+} from "@/components/ui/dialog";+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";import { useMessageCounts } from "@/hooks/use-message-counts";+import { authFetch } from "@/lib/auth/client";import { cn } from "@/lib/utils";import { NavItem } from "./components-nav";-import { getFolderNavCount } from "./dashboard-nav-utils";+import type { NavLink } from "./components-nav-types";+import type { CustomFolder } from "./dashboard-nav-types";+import { getFolderNavCount, moveMessagesToCustomFolder, moveMessagesToSystemFolder } from "./dashboard-nav-utils";+import { SidebarFooter } from "./sidebar-footer";const links = [{ href: "/compose", label: "Compose", icon: MailPlus, primary: true },{ href: "/inbox", label: "Inbox", icon: Inbox },{ href: "/sent", label: "Sent", icon: Send },{ href: "/drafts", label: "Drafts", icon: FileText },+ { href: "/archived", label: "Archived", icon: Archive },{ href: "/spam", label: "Spam", icon: ShieldAlert },{ href: "/trash", label: "Trash", icon: Trash2 },- { break: true },+];++const secondaryLinks = [{ href: "/settings", label: "Settings", icon: Settings },];export function DashboardNav({ className }: { className?: string }) {const { selectedMailbox, isLoading } = useSelectedMailbox();const { counts } = useMessageCounts(selectedMailbox?.id, !isLoading);- const linksWithCounts = links.map((link) => {- if (link.href === "/inbox") return { ...link, count: getFolderNavCount("inbox", counts.folders) };- if (link.href === "/spam") return { ...link, count: getFolderNavCount("spam", counts.folders) };+ const [folders, setFolders] = useState<CustomFolder[]>([]);+ const [newFolderName, setNewFolderName] = useState("");+ const [addingFolder, setAddingFolder] = useState(false);+ const [folderDialogOpen, setFolderDialogOpen] = useState(false);+ const linksWithCounts: NavLink[] = links.map((link): NavLink => {+ if (link.href === "/inbox") {+ return { ...link, count: getFolderNavCount("inbox", counts.folders) };+ }+ if (link.href === "/sent") {+ return { ...link, count: getFolderNavCount("sent", counts.folders) };+ }+ if (link.href === "/drafts") {+ return { ...link, count: getFolderNavCount("drafts", counts.folders) };+ }+ if (link.href === "/archived") {+ return {+ ...link,+ count: getFolderNavCount("archived", counts.folders),+ onMessageDrop: (messageIds: string[]) => void moveMessagesToSystemFolder(messageIds, "archive"),+ };+ }+ if (link.href === "/spam") {+ return {+ ...link,+ count: getFolderNavCount("spam", counts.folders),+ onMessageDrop: (messageIds: string[]) => void moveMessagesToSystemFolder(messageIds, "spam"),+ };+ }+ if (link.href === "/trash") {+ return {+ ...link,+ count: getFolderNavCount("trash", counts.folders),+ onMessageDrop: (messageIds: string[]) => void moveMessagesToSystemFolder(messageIds, "trash"),+ };+ }return link;});+ useEffect(() => {+ if (!selectedMailbox?.id) {+ setFolders([]);+ return;+ }++ let cancelled = false;+ const params = new URLSearchParams({ mailboxId: selectedMailbox.id });+ authFetch(`/api/folders?${params.toString()}`)+ .then((response) => response.json() as Promise<{ folders?: CustomFolder[] }>)+ .then((data) => {+ if (!cancelled) setFolders(data.folders ?? []);+ })+ .catch(() => {+ if (!cancelled) setFolders([]);+ });++ return () => {+ cancelled = true;+ };+ }, [selectedMailbox?.id]);++ async function createFolder(event: FormEvent<HTMLFormElement>) {+ event.preventDefault();+ if (!selectedMailbox?.id || !newFolderName.trim()) return;++ setAddingFolder(true);+ try {+ const response = await authFetch("/api/folders", {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({ mailboxId: selectedMailbox.id, name: newFolderName }),+ });+ if (!response.ok) return;+ const folder = (await response.json()) as CustomFolder;+ setFolders((items) => [...items, folder].sort((a, b) => a.name.localeCompare(b.name)));+ setNewFolderName("");+ setFolderDialogOpen(false);+ } finally {+ setAddingFolder(false);+ }+ }+return (- <nav className={cn("flex flex-col gap-1 flex-1", className)}>+ <nav className={cn("flex min-h-full flex-col gap-1", className)}><Linkhref="/inbox"className="mb-3 flex h-10 items-center gap-3 px-3 text-neutral-600"><img src="/icon-96.png" height={28} width={28} />- <span className="text-lg font-semibold text-neutral-800">Mail</span>+ <span className="text-lg font-semibold text-neutral-800">Mailflare</span></Link>{linksWithCounts.map((link, i) => <NavItem link={link} key={`nav-${link.href || i}`} />)}+ <div className="mt-2 flex h-8 items-center justify-between px-3">+ <span className="text-xs font-medium uppercase tracking-wide text-neutral-400">Folders</span>+ {selectedMailbox && (+ <Dialog open={folderDialogOpen} onOpenChange={setFolderDialogOpen}>+ <DialogTrigger asChild>+ <button+ type="button"+ className="flex h-7 w-7 items-center justify-center rounded-lg text-neutral-500 hover:bg-blue-50 hover:text-blue-700"+ aria-label="Create folder"+ >+ <Plus className="h-4 w-4" />+ </button>+ </DialogTrigger>+ <DialogContent>+ <DialogHeader>+ <DialogTitle>Create folder</DialogTitle>+ <DialogDescription>Add a folder to the selected mailbox.</DialogDescription>+ </DialogHeader>+ <form onSubmit={createFolder} className="space-y-4">+ <div className="space-y-2">+ <Label htmlFor="folderName">Folder name</Label>+ <Input+ id="folderName"+ value={newFolderName}+ onChange={(event) => setNewFolderName(event.target.value)}+ placeholder="Receipts"+ autoFocus+ />+ </div>+ <Button type="submit" disabled={addingFolder || !newFolderName.trim()}>+ {addingFolder ? "Creating..." : "Create folder"}+ </Button>+ </form>+ </DialogContent>+ </Dialog>+ )}+ </div>+ {folders.length === 0 && (+ <div className="mx-3 rounded-lg border border-dashed border-neutral-200 px-3 py-3 text-xs text-neutral-400">+ No folders yet+ </div>+ )}+ {folders.map((folder) => (+ <NavItem+ key={folder.id}+ link={{+ href: `/folders/${folder.id}`,+ label: folder.name,+ icon: Folder,+ count: counts.customFolders[folder.id]?.unread,+ onMessageDrop: (messageIds: string[]) => void moveMessagesToCustomFolder(messageIds, folder.id),+ }}+ />+ ))}+ <span className="flex-1" />+ {secondaryLinks.map((link) => <NavItem link={link} key={link.href} />)}+ <SidebarFooter /></nav>);}diff --git a/src/components/dashboard-shell.tsx b/src/components/dashboard-shell.tsxindex 102eaca..eefd72d 100644--- a/src/components/dashboard-shell.tsx+++ b/src/components/dashboard-shell.tsx@@ -4,7 +4,7 @@ import { usePathname } from "next/navigation";import { AdminNav } from "@/components/admin-nav";import { DashboardNav } from "@/components/dashboard-nav";-const adminPrefixes = ["/admin", "/mailboxes", "/domains", "/routing", "/api-keys", "/webhooks"];+const adminPrefixes = ["/admin", "/mailboxes", "/domains", "/api-keys", "/activity", "/audit-logs", "/webhooks"];export function DashboardShellNav() {const pathname = usePathname();diff --git a/src/components/logout-button.tsx b/src/components/logout-button.tsxindex 0130112..3ce61a2 100644--- a/src/components/logout-button.tsx+++ b/src/components/logout-button.tsx@@ -2,7 +2,7 @@import { useRouter } from "next/navigation";import { Button } from "@/components/ui/button";-import { authFetch, clearClientSessionToken } from "@/lib/auth/client";+import { logoutClientSession } from "@/lib/auth/logout";export function LogoutButton() {const router = useRouter();@@ -11,9 +11,9 @@ export function LogoutButton() {variant="outline"className="w-full"onClick={async () => {- await authFetch("/api/auth/logout", { method: "POST", redirectOnUnauthorized: false });- clearClientSessionToken();- router.push("/login");+ await logoutClientSession();+ router.replace("/login");+ router.refresh();}}>Log outdiff --git a/src/components/mail-search/mail-search-input.tsx b/src/components/mail-search/mail-search-input.tsxindex 956410e..b2f86b9 100644--- a/src/components/mail-search/mail-search-input.tsx+++ b/src/components/mail-search/mail-search-input.tsx@@ -7,7 +7,7 @@ export function MailSearchInput() {const { query, setQuery } = useMailSearch();return (- <div className="flex h-12 flex-1 max-w-3xl items-center gap-3 rounded-full bg-[#eaf1fb] px-4 text-neutral-600">+ <div className="flex h-12 flex-1 items-center gap-3 rounded-full bg-[#eaf1fb] px-4 text-neutral-600"><Search className="h-5 w-5 shrink-0" /><inputvalue={query}diff --git a/src/components/mailbox-provider-utils.ts b/src/components/mailbox-provider-utils.tsindex ab0856e..2db3eea 100644--- a/src/components/mailbox-provider-utils.ts+++ b/src/components/mailbox-provider-utils.ts@@ -3,16 +3,27 @@ import type { MailboxOption } from "./mailbox-provider";let mailboxesCache: MailboxOption[] | null = null;let mailboxesRequest: Promise<MailboxOption[]> | null = null;+let cacheGeneration = 0;+export const SELECTED_MAILBOX_STORAGE_KEY = "selected-mailbox-id";export function clearMailboxesCache() {+ cacheGeneration += 1;mailboxesCache = null;mailboxesRequest = null;}+export function clearMailboxClientState() {+ clearMailboxesCache();+ if (typeof window !== "undefined") {+ localStorage.removeItem(SELECTED_MAILBOX_STORAGE_KEY);+ }+}+export async function fetchMailboxOptions(force = false): Promise<MailboxOption[]> {if (!force && mailboxesCache) return mailboxesCache;if (!force && mailboxesRequest) return mailboxesRequest;+ const requestGeneration = cacheGeneration;mailboxesRequest = authFetch("/api/mailboxes").then((res) => res.json()).then((data) => {@@ -21,13 +32,15 @@ export async function fetchMailboxOptions(force = false): Promise<MailboxOption[localPart: m.localPart,hostname: m.hostname,displayName: m.displayName,+ type: m.type,+ permission: m.permission,isPrimary: m.isPrimary,}));- mailboxesCache = items;+ if (requestGeneration === cacheGeneration) mailboxesCache = items;return items;}).finally(() => {- mailboxesRequest = null;+ if (requestGeneration === cacheGeneration) mailboxesRequest = null;});return mailboxesRequest;diff --git a/src/components/mailbox-provider.tsx b/src/components/mailbox-provider.tsxindex c99601e..f51a1eb 100644--- a/src/components/mailbox-provider.tsx+++ b/src/components/mailbox-provider.tsx@@ -8,13 +8,22 @@ import {useState,} from "react";import type { ReactNode } from "react";-import { fetchMailboxOptions } from "./mailbox-provider-utils";+import {+ fetchMailboxOptions,+ SELECTED_MAILBOX_STORAGE_KEY,+} from "./mailbox-provider-utils";+import {+ AUTH_SESSION_CHANGED_EVENT,+ getClientSessionToken,+} from "@/lib/auth/client";export type MailboxOption = {id: string;localPart: string;hostname: string;displayName: string | null;+ type?: "personal" | "shared";+ permission?: "read_only" | "send_as" | "send_on_behalf" | "full_access";isPrimary?: boolean;};@@ -33,8 +42,6 @@ export function useSelectedMailbox() {return ctx;}-const STORAGE_KEY = "selected-mailbox-id";-export function MailboxProvider({ children }: { children: ReactNode }) {const [mailboxes, setMailboxes] = useState<MailboxOption[]>([]);const [selectedMailbox, setSelectedMailboxState] = useState<MailboxOption | null>(null);@@ -42,13 +49,14 @@ export function MailboxProvider({ children }: { children: ReactNode }) {useEffect(() => {let cancelled = false;+ const sessionToken = getClientSessionToken();fetchMailboxOptions().then((items) => {- if (cancelled) return;+ if (cancelled || sessionToken !== getClientSessionToken()) return;setMailboxes(items);- const storedId = localStorage.getItem(STORAGE_KEY);+ const storedId = localStorage.getItem(SELECTED_MAILBOX_STORAGE_KEY);if (storedId) {const found = items.find((mb) => mb.id === storedId);if (found) {@@ -60,12 +68,12 @@ export function MailboxProvider({ children }: { children: ReactNode }) {const primary = items.find((mb) => mb.isPrimary) ?? items[0] ?? null;if (primary) {setSelectedMailboxState(primary);- localStorage.setItem(STORAGE_KEY, primary.id);+ localStorage.setItem(SELECTED_MAILBOX_STORAGE_KEY, primary.id);}}).catch(() => {}).finally(() => {- if (!cancelled) setIsLoading(false);+ if (!cancelled && sessionToken === getClientSessionToken()) setIsLoading(false);});return () => {@@ -73,13 +81,24 @@ export function MailboxProvider({ children }: { children: ReactNode }) {};}, []);+ useEffect(() => {+ function resetMailboxState() {+ setMailboxes([]);+ setSelectedMailboxState(null);+ setIsLoading(true);+ }++ window.addEventListener(AUTH_SESSION_CHANGED_EVENT, resetMailboxState);+ return () => window.removeEventListener(AUTH_SESSION_CHANGED_EVENT, resetMailboxState);+ }, []);+const setSelectedMailbox = useCallback((mb: MailboxOption | null) => {- setSelectedMailboxState(mb);+ setSelectedMailboxState((current) => (current?.id === mb?.id ? current : mb));if (mb) {- setMailboxes((items) => items.map((item) => (item.id === mb.id ? mb : item)));- localStorage.setItem(STORAGE_KEY, mb.id);+ setMailboxes((items) => items.map((item) => (item.id === mb.id && item !== mb ? mb : item)));+ localStorage.setItem(SELECTED_MAILBOX_STORAGE_KEY, mb.id);} else {- localStorage.removeItem(STORAGE_KEY);+ localStorage.removeItem(SELECTED_MAILBOX_STORAGE_KEY);}}, []);diff --git a/src/components/mailbox-selector.tsx b/src/components/mailbox-selector.tsxindex f543d2d..fef780b 100644--- a/src/components/mailbox-selector.tsx+++ b/src/components/mailbox-selector.tsx@@ -6,8 +6,10 @@ import { Check, LogOut, Mail, Settings } from "lucide-react";import { useEffect, useRef, useState } from "react";import { useSelectedMailbox } from "@/components/mailbox-provider";import { useMessageCounts } from "@/hooks/use-message-counts";-import { authFetch, clearClientSessionToken } from "@/lib/auth/client";+import { authFetch } from "@/lib/auth/client";+import { logoutClientSession } from "@/lib/auth/logout";import { cn } from "@/lib/utils";+import { Skeleton } from "@/components/ui/skeleton";export function MailboxSelector() {const { selectedMailbox, setSelectedMailbox, mailboxes, isLoading } =@@ -15,6 +17,7 @@ export function MailboxSelector() {const pathname = usePathname();const router = useRouter();const [open, setOpen] = useState(false);+ const [isAdmin, setIsAdmin] = useState(false);const ref = useRef<HTMLDivElement>(null);const { counts } = useMessageCounts(null, open);@@ -27,7 +30,27 @@ export function MailboxSelector() {return () => document.removeEventListener("pointerdown", onPointerDown);}, []);- if (isLoading) return null;+ useEffect(() => {+ authFetch("/api/auth/me", { redirectOnUnauthorized: false })+ .then((response) => response.ok ? response.json() : null)+ .then((data) => {+ const authData = data as { user?: { role?: string } } | null;+ setIsAdmin(authData?.user?.role === "admin");+ })+ .catch(() => setIsAdmin(false));+ }, []);++ if (isLoading) {+ return (+ <div className="flex items-center gap-3 px-2">+ <div className="space-y-1.5">+ <Skeleton className="h-3.5 w-24" />+ <Skeleton className="h-2.5 w-16" />+ </div>+ <Skeleton className="h-8 w-8 rounded-full" />+ </div>+ );+ }const selectedName = selectedMailbox?.displayName ?? selectedMailbox?.localPart ?? "All mailboxes";const selectedEmail = selectedMailbox@@ -37,15 +60,14 @@ export function MailboxSelector() {pathname === "/admin" ||pathname.startsWith("/mailboxes") ||pathname.startsWith("/domains") ||- pathname.startsWith("/routing") ||pathname.startsWith("/api-keys") ||pathname.startsWith("/webhooks");async function logout() {- await authFetch("/api/auth/logout", { method: "POST", redirectOnUnauthorized: false });- clearClientSessionToken();+ await logoutClientSession();setOpen(false);- router.push("/login");+ router.replace("/login");+ router.refresh();}return (@@ -78,7 +100,6 @@ export function MailboxSelector() {const active = !adminActive && selectedMailbox?.id === mb.id;const mailboxCount = counts.mailboxes.find((count) => count.mailboxId === mb.id);const unread = mailboxCount?.unread ?? 0;- const inbox = mailboxCount?.inbox ?? 0;return (<button@@ -106,10 +127,7 @@ export function MailboxSelector() {</span>)}</div>- <p className="truncate text-xs text-neutral-500">- {email}- {inbox > 0 && ` · ${inbox} inbox`}- </p>+ <p className="truncate text-xs text-neutral-500">{email}</p></div>{unread > 0 && (<span className="rounded-full bg-blue-100 px-2 py-0.5 text-[11px] font-semibold text-blue-700">@@ -121,23 +139,25 @@ export function MailboxSelector() {);})}<div className="mt-2 border-t divide-y divide-neutral-100 border-neutral-100 pt-2">- <Link- href="/admin"- onClick={() => setOpen(false)}- className={cn(- "flex items-center gap-3 px-4 py-3 text-sm font-medium text-neutral-700 hover:bg-[#f2f6fc]",- adminActive && "bg-blue-50",- )}- >- <div className="flex h-9 w-9 items-center justify-center rounded-full bg-neutral-100 text-neutral-700">- <Settings className="h-4 w-4" />- </div>- <div>- <p className="text-sm font-medium text-neutral-900">Admin settings</p>- <p className="text-xs text-neutral-500">Domains, mailboxes, API keys</p>- </div>- {adminActive && <Check className="ml-auto h-4 w-4 text-blue-600" />}- </Link>+ {isAdmin && (+ <Link+ href="/admin"+ onClick={() => setOpen(false)}+ className={cn(+ "flex items-center gap-3 px-4 py-3 text-sm font-medium text-neutral-700 hover:bg-[#f2f6fc]",+ adminActive && "bg-blue-50",+ )}+ >+ <div className="flex h-9 w-9 items-center justify-center rounded-full bg-neutral-100 text-neutral-700">+ <Settings className="h-4 w-4" />+ </div>+ <div>+ <p className="text-sm font-medium text-neutral-900">Admin settings</p>+ <p className="text-xs text-neutral-500">Domains, mailboxes, API keys</p>+ </div>+ {adminActive && <Check className="ml-auto h-4 w-4 text-blue-600" />}+ </Link>+ )}<buttontype="button"onClick={logout}diff --git a/src/components/message-actions/message-actions.tsx b/src/components/message-actions/message-actions.tsxindex d14befd..647d2e2 100644--- a/src/components/message-actions/message-actions.tsx+++ b/src/components/message-actions/message-actions.tsx@@ -7,14 +7,30 @@ import { Button } from "@/components/ui/button";import { Tooltip } from "@/components/ui/tooltip";import type { BulkMessageAction } from "@/app/api/messages/bulk/types";import type { MessageActionsProps } from "./types";-import { getMessageActionRedirect, runSingleMessageAction } from "./utils";+import {+ confirmTrashWithoutUnsubscribe,+ createTrashSenderRule,+ getMessageActionRedirect,+ openUnsubscribeUrl,+ runSingleMessageAction,+} from "./utils";-export function MessageActions({ messageId, direction, status, read }: MessageActionsProps) {+export function MessageActions({+ messageId,+ mailboxId,+ senderAddress,+ direction,+ status,+ read,+ unsubscribeUrl,+}: MessageActionsProps) {const router = useRouter();- const [pendingAction, setPendingAction] = useState<BulkMessageAction | null>(null);+ const [pendingAction, setPendingAction] = useState<BulkMessageAction | "unsubscribe" | null>(null);const [error, setError] = useState<string | null>(null);+ const [moreOpen, setMoreOpen] = useState(false);async function runAction(action: BulkMessageAction) {+ setMoreOpen(false);setPendingAction(action);setError(null);try {@@ -29,6 +45,31 @@ export function MessageActions({ messageId, direction, status, read }: MessageAc}}+ async function onUnsubscribe() {+ setMoreOpen(false);+ setError(null);+ if (unsubscribeUrl) {+ openUnsubscribeUrl(unsubscribeUrl);+ return;+ }++ if (!confirmTrashWithoutUnsubscribe()) return;+ setPendingAction("unsubscribe");+ if (!mailboxId) {+ setError("Could not create trash rule");+ setPendingAction(null);+ return;+ }++ try {+ await createTrashSenderRule({ mailboxId, senderAddress });+ await runAction("trash");+ } catch {+ setError("Could not create trash rule");+ setPendingAction(null);+ }+ }+const disabled = pendingAction !== null;const markAction: BulkMessageAction = read ? "unread" : "read";@@ -46,7 +87,7 @@ export function MessageActions({ messageId, direction, status, read }: MessageAcvariant="ghost"size="sm"aria-label="Archive"- disabled={disabled}+ disabled={disabled || status === "archived"}onClick={() => runAction("archive")}><Archive className="h-5 w-5" />@@ -85,28 +126,57 @@ export function MessageActions({ messageId, direction, status, read }: MessageAc{read ? <Mail className="h-5 w-5" /> : <MailOpen className="h-5 w-5" />}</Button></Tooltip>- <Tooltip label="Move message">- <select- className="h-8 rounded-lg border border-neutral-200 bg-white px-2 text-xs text-neutral-700"- disabled={disabled}- defaultValue=""- aria-label="Move message"- onChange={(event) => {- if (!event.target.value) return;- void runAction(event.target.value as BulkMessageAction);- event.target.value = "";- }}- >- <option value="">Move to...</option>- <option value="spam">Spam</option>- <option value="trash">Trash</option>- </select>- </Tooltip>- <Tooltip label="More actions">- <span aria-label="More actions" className="rounded-full p-1 text-neutral-400">- <MoreVertical className="h-5 w-5" />- </span>- </Tooltip>+ <div className="relative">+ <Tooltip label="More actions">+ <Button+ type="button"+ variant="ghost"+ size="sm"+ aria-label="More actions"+ aria-expanded={moreOpen}+ disabled={disabled}+ onClick={() => setMoreOpen((open) => !open)}+ >+ <MoreVertical className="h-5 w-5" />+ </Button>+ </Tooltip>+ {moreOpen && (+ <div className="absolute right-0 z-20 mt-2 w-44 rounded-xl border border-neutral-200 bg-white p-2 shadow-lg">+ {direction === "inbound" && (+ <button+ type="button"+ className="w-full rounded-lg px-3 py-2 text-left text-sm text-neutral-700 hover:bg-neutral-100 disabled:cursor-not-allowed disabled:text-neutral-400"+ disabled={!unsubscribeUrl && status === "trash"}+ onClick={() => void onUnsubscribe()}+ >+ Unsubscribe+ </button>+ )}+ <label className="mt-1 block px-3 text-xs font-medium text-neutral-500" htmlFor={`move-message-${messageId}`}>+ Move to+ </label>+ <select+ id={`move-message-${messageId}`}+ className="mt-1 h-8 w-full rounded-lg border border-neutral-200 bg-white px-2 text-xs text-neutral-700"+ defaultValue=""+ aria-label="Move message"+ onChange={(event) => {+ if (!event.target.value) return;+ void runAction(event.target.value as BulkMessageAction);+ event.target.value = "";+ }}+ >+ <option value="">Select folder...</option>+ {status === "archived" && direction === "inbound" && (+ <option value="inbox">Inbox</option>+ )}+ {status !== "archived" && <option value="archive">Archived</option>}+ <option value="spam">Spam</option>+ <option value="trash">Trash</option>+ </select>+ </div>+ )}+ </div></div></div>);diff --git a/src/components/message-actions/types.d.ts b/src/components/message-actions/types.d.tsindex b31ddba..36a636e 100644--- a/src/components/message-actions/types.d.ts+++ b/src/components/message-actions/types.d.ts@@ -3,9 +3,17 @@ import type { MessageDirection } from "@/hooks/types";export type MessageActionsProps = {messageId: string;+ mailboxId: string | null;+ senderAddress: string;direction: MessageDirection;status: string;read: boolean;+ unsubscribeUrl?: string | null;};export type SingleMessageAction = BulkMessageAction | "reply";++export type TrashSenderRuleInput = {+ mailboxId: string;+ senderAddress: string;+};diff --git a/src/components/message-actions/utils.ts b/src/components/message-actions/utils.tsindex edc161a..2fee77f 100644--- a/src/components/message-actions/utils.ts+++ b/src/components/message-actions/utils.ts@@ -1,9 +1,12 @@import type { BulkMessageAction } from "@/app/api/messages/bulk/types";import { authFetch } from "@/lib/auth/client";+import { getEmailAddress } from "@/lib/email/address";+import type { TrashSenderRuleInput } from "./types";export function getMessageBackHref(direction: "inbound" | "outbound", status: string) {if (status === "trash") return "/trash";if (status === "spam") return "/spam";+ if (status === "archived") return "/archived";if (status === "draft") return "/drafts";return direction === "inbound" ? "/inbox" : "/sent";}@@ -22,9 +25,40 @@ export async function runSingleMessageAction(messageId: string, action: BulkMesswindow.dispatchEvent(new Event("mailflare:messages-changed"));}+export function openUnsubscribeUrl(url: string) {+ window.open(url, "_blank", "noopener,noreferrer");+}++export function confirmTrashWithoutUnsubscribe() {+ return window.confirm(+ "This email does not provide an unsubscribe link. It will be moved to Trash, and future emails from this sender will also be moved to Trash.",+ );+}++export async function createTrashSenderRule({ mailboxId, senderAddress }: TrashSenderRuleInput) {+ const sender = getEmailAddress(senderAddress).trim().toLowerCase();+ if (!sender) throw new Error("Sender address is required");++ const response = await authFetch("/api/routing-rules", {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({+ mailboxId,+ matchField: "email",+ matchOperator: "exact",+ matchValue: sender,+ destination: "trash",+ priority: 0,+ }),+ });+ const data = (await response.json()) as { error?: string };+ if (!response.ok) throw new Error(data.error ?? "Unable to create trash rule");+}+export function getMessageActionRedirect(action: BulkMessageAction, direction: "inbound" | "outbound") {if (action === "trash") return "/trash";if (action === "spam") return "/spam";- if (action === "archive") return direction === "inbound" ? "/inbox" : "/sent";+ if (action === "archive") return "/archived";+ if (action === "inbox") return "/inbox";return null;}diff --git a/src/components/message-attachment-card-types.d.ts b/src/components/message-attachment-card-types.d.tsnew file mode 100644index 0000000..0cabb93--- /dev/null+++ b/src/components/message-attachment-card-types.d.ts@@ -0,0 +1,15 @@+import type { MessageAttachment } from "@/app/(dashboard)/inbox/[messageId]/types";+import type { LucideIcon } from "lucide-react";++export interface MessageAttachmentCardProps {+ attachment: MessageAttachment;+ messageId: string;+ onPreview: (attachment: MessageAttachment) => void;+}++export type AttachmentVisual = {+ icon: LucideIcon;+ iconClassName: string;+ label: string;+ thumbnail: "image" | "video" | null;+};diff --git a/src/components/message-attachment-card-utils.ts b/src/components/message-attachment-card-utils.tsnew file mode 100644index 0000000..a3617c2--- /dev/null+++ b/src/components/message-attachment-card-utils.ts@@ -0,0 +1,122 @@+import {+ FileArchive,+ FileCode,+ FileSpreadsheet,+ FileText,+ FileType,+ FileVideoCamera,+ Image,+ Music,+ Presentation,+} from "lucide-react";+import type { MessageAttachment } from "@/app/(dashboard)/inbox/[messageId]/types";+import type { AttachmentVisual } from "./message-attachment-card-types";+import { getAttachmentPreviewKind } from "./message-attachment-viewer-utils";++export function getAttachmentVisual(+ attachment: Pick<MessageAttachment, "filename" | "type">,+): AttachmentVisual {+ const type = attachment.type.toLowerCase();+ const filename = attachment.filename.toLowerCase();+ const previewKind = getAttachmentPreviewKind(attachment);++ if (previewKind === "image") {+ return {+ icon: Image,+ iconClassName: "bg-blue-50 text-blue-700",+ label: "Image",+ thumbnail: "image",+ };+ }+ if (previewKind === "video") {+ return {+ icon: FileVideoCamera,+ iconClassName: "bg-rose-50 text-rose-700",+ label: "Video",+ thumbnail: "video",+ };+ }+ if (previewKind === "audio") {+ return {+ icon: Music,+ iconClassName: "bg-orange-50 text-orange-700",+ label: "Audio",+ thumbnail: null,+ };+ }+ if (previewKind === "pdf") {+ return {+ icon: FileText,+ iconClassName: "bg-red-50 text-red-700",+ label: "PDF",+ thumbnail: null,+ };+ }+ if (+ type.includes("spreadsheet") ||+ type.includes("excel") ||+ type === "text/csv" ||+ /\.(csv|xls|xlsx|ods)$/.test(filename)+ ) {+ return {+ icon: FileSpreadsheet,+ iconClassName: "bg-emerald-50 text-emerald-700",+ label: "Spreadsheet",+ thumbnail: null,+ };+ }+ if (+ type.includes("presentation") ||+ type.includes("powerpoint") ||+ /\.(ppt|pptx|odp)$/.test(filename)+ ) {+ return {+ icon: Presentation,+ iconClassName: "bg-amber-50 text-amber-700",+ label: "Presentation",+ thumbnail: null,+ };+ }+ if (+ type.includes("zip") ||+ type.includes("compressed") ||+ type.includes("archive") ||+ /\.(zip|rar|7z|tar|gz|bz2)$/.test(filename)+ ) {+ return {+ icon: FileArchive,+ iconClassName: "bg-violet-50 text-violet-700",+ label: "Archive",+ thumbnail: null,+ };+ }+ if (+ type.includes("json") ||+ type.includes("xml") ||+ type.includes("javascript") ||+ type.includes("typescript") ||+ /\.(js|jsx|ts|tsx|json|xml|html|css|md|yml|yaml)$/.test(filename)+ ) {+ return {+ icon: FileCode,+ iconClassName: "bg-cyan-50 text-cyan-700",+ label: "Code",+ thumbnail: null,+ };+ }+ if (previewKind === "text" || type.includes("word") || /\.(doc|docx|odt|rtf|txt)$/.test(filename)) {+ return {+ icon: FileType,+ iconClassName: "bg-sky-50 text-sky-700",+ label: "Document",+ thumbnail: null,+ };+ }++ return {+ icon: FileText,+ iconClassName: "bg-neutral-100 text-neutral-600",+ label: "File",+ thumbnail: null,+ };+}diff --git a/src/components/message-attachment-card.tsx b/src/components/message-attachment-card.tsxnew file mode 100644index 0000000..8f89a18--- /dev/null+++ b/src/components/message-attachment-card.tsx@@ -0,0 +1,62 @@+"use client";++import { ArrowDownToLine, Play } from "lucide-react";+import { formatAttachmentSize } from "@/app/(dashboard)/inbox/[messageId]/utils";+import type { MessageAttachmentCardProps } from "./message-attachment-card-types";+import { getAttachmentFileUrl } from "./message-attachment-viewer-utils";+import { getAttachmentVisual } from "./message-attachment-card-utils";++export function MessageAttachmentCard({+ attachment,+ messageId,+ onPreview,+}: MessageAttachmentCardProps) {+ const visual = getAttachmentVisual(attachment);+ const Icon = visual.icon;+ const previewUrl = getAttachmentFileUrl(messageId, attachment.id, "preview");++ return (+ <button+ type="button"+ onClick={() => onPreview(attachment)}+ className="group flex w-full items-center gap-3 rounded-lg border border-neutral-200 p-2.5 text-left transition-colors hover:border-blue-200 hover:bg-blue-50/40"+ >+ {visual.thumbnail === "image" && (+ <img+ src={previewUrl}+ alt=""+ loading="lazy"+ className="h-14 w-14 shrink-0 rounded-md bg-neutral-100 object-cover"+ />+ )}+ {visual.thumbnail === "video" && (+ <span className="relative h-14 w-14 shrink-0 overflow-hidden rounded-md bg-neutral-900">+ <video+ src={previewUrl}+ muted+ preload="metadata"+ playsInline+ className="h-full w-full object-cover"+ />+ <span className="absolute inset-0 flex items-center justify-center bg-neutral-950/20">+ <Play className="h-5 w-5 fill-white text-white" />+ </span>+ </span>+ )}+ {visual.thumbnail === null && (+ <span className={`flex h-14 w-14 shrink-0 items-center justify-center rounded-md ${visual.iconClassName}`}>+ <Icon className="h-6 w-6" />+ </span>+ )}+ <span className="min-w-0 flex-1 text-left">+ <span className="block truncate text-sm font-medium text-neutral-900">+ {attachment.filename}+ </span>+ <span className="mt-0.5 block truncate text-xs text-neutral-500">+ {visual.label} · {formatAttachmentSize(attachment.size)}+ </span>+ </span>+ <ArrowDownToLine className="h-4 w-4 shrink-0 text-neutral-400 transition-colors group-hover:text-blue-600" />+ </button>+ );+}diff --git a/src/components/message-attachment-viewer-types.d.ts b/src/components/message-attachment-viewer-types.d.tsnew file mode 100644index 0000000..82ff70d--- /dev/null+++ b/src/components/message-attachment-viewer-types.d.ts@@ -0,0 +1,16 @@+import type { MessageAttachment } from "@/app/(dashboard)/inbox/[messageId]/types";++export interface MessageAttachmentViewerProps {+ attachment: MessageAttachment | null;+ messageId: string;+ onOpenChange: (open: boolean) => void;+ open: boolean;+}++export type AttachmentPreviewKind =+ | "audio"+ | "image"+ | "pdf"+ | "text"+ | "unsupported"+ | "video";diff --git a/src/components/message-attachment-viewer-utils.ts b/src/components/message-attachment-viewer-utils.tsnew file mode 100644index 0000000..ae6816f--- /dev/null+++ b/src/components/message-attachment-viewer-utils.ts@@ -0,0 +1,29 @@+import type { MessageAttachment } from "@/app/(dashboard)/inbox/[messageId]/types";+import type { AttachmentPreviewKind } from "./message-attachment-viewer-types";++export function getAttachmentFileUrl(+ messageId: string,+ attachmentId: string,+ mode: "download" | "preview" = "download",+): string {+ const suffix = mode === "preview" ? "?preview=1" : "?download=1";+ return `/api/messages/${messageId}/attachments/${attachmentId}${suffix}`;+}++export function getAttachmentPreviewKind(+ attachment: Pick<MessageAttachment, "type">,+): AttachmentPreviewKind {+ if (attachment.type === "application/pdf") return "pdf";+ if (attachment.type.startsWith("audio/")) return "audio";+ if (attachment.type.startsWith("video/")) return "video";+ if (attachment.type.startsWith("image/") && attachment.type !== "image/svg+xml") return "image";+ if (+ attachment.type.startsWith("text/plain") ||+ attachment.type === "application/json" ||+ attachment.type === "application/xml" ||+ attachment.type === "text/csv"+ ) {+ return "text";+ }+ return "unsupported";+}diff --git a/src/components/message-attachment-viewer.tsx b/src/components/message-attachment-viewer.tsxnew file mode 100644index 0000000..ecaeb79--- /dev/null+++ b/src/components/message-attachment-viewer.tsx@@ -0,0 +1,126 @@+"use client";++import { useEffect, useState } from "react";+import { ArrowDownToLine, FileWarning } from "lucide-react";+import { Button } from "@/components/ui/button";+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogHeader,+ DialogTitle,+} from "@/components/ui/dialog";+import { authFetch } from "@/lib/auth/client";+import { Skeleton } from "@/components/ui/skeleton";+import type { MessageAttachmentViewerProps } from "./message-attachment-viewer-types";+import {+ getAttachmentFileUrl,+ getAttachmentPreviewKind,+} from "./message-attachment-viewer-utils";++export function MessageAttachmentViewer({+ attachment,+ messageId,+ onOpenChange,+ open,+}: MessageAttachmentViewerProps) {+ const [textContent, setTextContent] = useState("");+ const [textError, setTextError] = useState("");++ const previewKind = attachment ? getAttachmentPreviewKind(attachment) : "unsupported";+ const previewUrl = attachment+ ? getAttachmentFileUrl(messageId, attachment.id, "preview")+ : "";+ const downloadUrl = attachment+ ? getAttachmentFileUrl(messageId, attachment.id, "download")+ : "";++ useEffect(() => {+ if (!open || !attachment || previewKind !== "text") return;+ let cancelled = false;+ setTextContent("");+ setTextError("");++ authFetch(previewUrl)+ .then(async (response) => {+ if (!response.ok) throw new Error("Could not load this attachment");+ const content = await response.text();+ if (!cancelled) setTextContent(content);+ })+ .catch((error) => {+ if (!cancelled) {+ setTextError(error instanceof Error ? error.message : "Could not load this attachment");+ }+ });++ return () => {+ cancelled = true;+ };+ }, [attachment, open, previewKind, previewUrl]);++ if (!attachment) return null;++ return (+ <Dialog open={open} onOpenChange={onOpenChange}>+ <DialogContent className="flex h-[min(88vh,900px)] w-[min(1100px,calc(100vw-32px))] flex-col overflow-hidden">+ <DialogHeader className="shrink-0 pr-10">+ <DialogTitle className="truncate">{attachment.filename}</DialogTitle>+ <DialogDescription>{attachment.type}</DialogDescription>+ </DialogHeader>++ <div className="flex min-h-0 flex-1 items-center justify-center overflow-auto rounded-lg bg-neutral-100">+ {previewKind === "image" && (+ <img+ src={previewUrl}+ alt={attachment.filename}+ className="max-h-full max-w-full object-contain"+ />+ )}+ {previewKind === "pdf" && (+ <iframe+ src={previewUrl}+ title={attachment.filename}+ className="h-full w-full border-0 bg-white"+ />+ )}+ {previewKind === "audio" && (+ <audio src={previewUrl} controls className="w-[min(560px,90%)]" />+ )}+ {previewKind === "video" && (+ <video src={previewUrl} controls className="max-h-full max-w-full" />+ )}+ {previewKind === "text" && (+ textError || textContent ? (+ <pre className="h-full w-full overflow-auto whitespace-pre-wrap p-5 text-sm text-neutral-800">+ {textError || textContent}+ </pre>+ ) : (+ <div className="h-full w-full space-y-3 bg-white p-5">+ <Skeleton className="h-4 w-full" />+ <Skeleton className="h-4 w-11/12" />+ <Skeleton className="h-4 w-4/5" />+ </div>+ )+ )}+ {previewKind === "unsupported" && (+ <div className="flex flex-col items-center gap-3 px-6 text-center">+ <FileWarning className="h-10 w-10 text-neutral-400" />+ <p className="text-sm text-neutral-600">+ This file type cannot be previewed safely in the browser.+ </p>+ </div>+ )}+ </div>++ <div className="flex shrink-0 justify-end">+ <Button asChild>+ <a href={downloadUrl} download={attachment.filename}>+ <ArrowDownToLine className="h-4 w-4" />+ Download+ </a>+ </Button>+ </div>+ </DialogContent>+ </Dialog>+ );+}diff --git a/src/components/messages/bulk-message-selection-pane.tsx b/src/components/messages/bulk-message-selection-pane.tsxnew file mode 100644index 0000000..bea24d4--- /dev/null+++ b/src/components/messages/bulk-message-selection-pane.tsx@@ -0,0 +1,57 @@+"use client";++import { CheckSquare2 } from "lucide-react";+import { useState } from "react";+import type { BulkMessageAction } from "@/app/api/messages/bulk/types";+import { BulkMessageToolbar } from "./bulk-message-toolbar";+import type { BulkMessageSelectionPaneProps } from "./types";+import { runBulkMessageAction } from "./utils";++export function BulkMessageSelectionPane({+ selectedMessages,+ onClearSelection,+}: BulkMessageSelectionPaneProps) {+ const [pending, setPending] = useState(false);+ const hasUnreadSelection = selectedMessages.some((message) => !message.read);++ async function runAction(action: BulkMessageAction) {+ if (selectedMessages.length === 0) return;++ setPending(true);+ try {+ await runBulkMessageAction(+ selectedMessages.map((message) => message.id),+ action,+ );+ onClearSelection();+ } finally {+ setPending(false);+ }+ }++ return (+ <div className="flex h-full items-center justify-center p-8">+ <div className="w-full max-w-xl text-center">+ <div className="mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-blue-50 text-blue-700">+ <CheckSquare2 className="h-6 w-6" />+ </div>+ <h2 className="mt-4 text-lg font-semibold text-neutral-900">+ {selectedMessages.length} selected+ </h2>+ <p className="mt-1 text-sm text-neutral-500">+ Choose an action to apply to the selected emails.+ </p>+ <div className="mt-5 rounded-xl border border-neutral-200 bg-white p-3 shadow-sm">+ <BulkMessageToolbar+ selectedCount={selectedMessages.length}+ hasUnreadSelection={hasUnreadSelection}+ onAction={runAction}+ onClearSelection={onClearSelection}+ pending={pending}+ hideSelectedCount+ />+ </div>+ </div>+ </div>+ );+}diff --git a/src/components/messages/bulk-message-toolbar.tsx b/src/components/messages/bulk-message-toolbar.tsxindex b5410b6..1d68c97 100644--- a/src/components/messages/bulk-message-toolbar.tsx+++ b/src/components/messages/bulk-message-toolbar.tsx@@ -9,13 +9,18 @@ import type { BulkMessageToolbarProps } from "./types";export function BulkMessageToolbar({selectedCount,hasUnreadSelection,+ hideSelectedCount = false,onAction,onClearSelection,pending,}: BulkMessageToolbarProps) {return (<div className="flex min-w-0 items-center gap-2 text-neutral-600 w-full">- <span className="mr-2 text-sm font-medium text-neutral-800">{selectedCount} selected</span>+ {!hideSelectedCount && (+ <span className="mr-2 text-sm font-medium text-neutral-800">+ {selectedCount} selected+ </span>+ )}<Tooltip label="Archive"><Button variant="ghost" size="sm" onClick={() => onAction("archive")} disabled={pending} aria-label="Archive"><Archive className="h-4 w-4" />@@ -42,6 +47,7 @@ export function BulkMessageToolbar({{hasUnreadSelection ? <MailOpen className="h-4 w-4" /> : <Mail className="h-4 w-4" />}</Button></Tooltip>+ <span className="flex-1" /><Tooltip label="Move selected messages"><span className="rounded-lg border border-neutral-200 px-2"><select@@ -56,12 +62,12 @@ export function BulkMessageToolbar({}}><option value="">Move to</option>+ <option value="archive">Archived</option><option value="spam">Spam</option><option value="trash">Trash</option></select></span></Tooltip>- <span className="flex-1" /><Tooltip label="Clear selection"><Button variant="ghost" size="sm" onClick={onClearSelection} disabled={pending} aria-label="Clear selection"><X className="h-4 w-4" />diff --git a/src/components/messages/custom-folder-config-types.d.ts b/src/components/messages/custom-folder-config-types.d.tsnew file mode 100644index 0000000..f3ee071--- /dev/null+++ b/src/components/messages/custom-folder-config-types.d.ts@@ -0,0 +1,4 @@+export type CustomFolderSummary = {+ id: string;+ name: string;+};diff --git a/src/components/messages/message-folder-configs.ts b/src/components/messages/message-folder-configs.tsnew file mode 100644index 0000000..00976b1--- /dev/null+++ b/src/components/messages/message-folder-configs.ts@@ -0,0 +1,49 @@+import { Archive, Clock, MailOpen, Send, ShieldAlert, Star, Trash2 } from "lucide-react";+import type { MessageFolderConfig } from "./types";++export const inboxFolderConfig: MessageFolderConfig = {+ folder: "inbox",+ title: "Inbox",+ emptyText: "No emails",+ hrefPrefix: "/inbox",+ icon: Star,+ headerIcons: [MailOpen, Clock],+ showRowBadge: false,+};++export const sentFolderConfig: MessageFolderConfig = {+ folder: "sent",+ title: "Sent",+ emptyText: "No emails",+ hrefPrefix: "/sent",+ icon: Send,+ headerIcons: [MailOpen, Clock],+ badgeVariant: "outline",+};++export const archivedFolderConfig: MessageFolderConfig = {+ folder: "archived",+ title: "Archived",+ emptyText: "No archived emails",+ hrefPrefix: "/archived",+ icon: Archive,+ badgeVariant: "outline",+};++export const spamFolderConfig: MessageFolderConfig = {+ folder: "spam",+ title: "Spam",+ emptyText: "No spam",+ hrefPrefix: "/spam",+ icon: ShieldAlert,+ badgeVariant: "outline",+};++export const trashFolderConfig: MessageFolderConfig = {+ folder: "trash",+ title: "Trash",+ emptyText: "No emails in trash",+ hrefPrefix: "/trash",+ icon: Trash2,+ badgeVariant: "outline",+};diff --git a/src/components/messages/message-folder-page.tsx b/src/components/messages/message-folder-page.tsxindex ee6d6b6..f30d8a6 100644--- a/src/components/messages/message-folder-page.tsx+++ b/src/components/messages/message-folder-page.tsx@@ -6,32 +6,98 @@ import { ChevronLeft, ChevronRight } from "lucide-react";import { Badge } from "@/components/ui/badge";import { Button } from "@/components/ui/button";import { Tooltip } from "@/components/ui/tooltip";+import { SkeletonRows } from "@/components/ui/skeleton";import { useCompose } from "@/components/compose/compose-context";import { useMailSearch } from "@/components/mail-search/mail-search-context";import { useSelectedMailbox } from "@/components/mailbox-provider";+import { useMessageCounts } from "@/hooks/use-message-counts";import { useMessages } from "@/hooks/use-messages";import type { BulkMessageAction } from "@/app/api/messages/bulk/types";+import { setMessageDragData } from "@/lib/messages/drag-utils";import { BulkMessageToolbar } from "./bulk-message-toolbar";-import type { MessageListRowProps, MessageFolderConfig } from "./types";+import type { MessageFolderPageProps, MessageListRowProps } from "./types";import {+ formatMessageListTimestamp,getPageRange,getMessageBadge,getMessageParty,getMessagePartyClassName,getMessagePreview,+ formatEmailPageTitle,+ getMailboxAddress,runBulkMessageAction,} from "./utils";const pageSize = 25;-function MessageListRow({ message, config, selected, onSelectedChange }: MessageListRowProps) {+function MessageListRow({+ message,+ config,+ selected,+ active = false,+ compact = false,+ onSelectedChange,+ dragMessageIds,+}: MessageListRowProps) {const Icon = config.icon;const { openDraftComposer } = useCompose();const unread = message.direction === "inbound" && !message.read;+ const draggable = config.folder === "inbox" && message.direction === "inbound";+ const party = getMessageParty(message, config.folder);+ const preview = getMessagePreview(message, config.folder);+ const href = `${config.hrefPrefix}/${message.id}`;++ if (compact && config.folder !== "drafts") {+ return (+ <div+ className={`group grid grid-cols-[20px_minmax(0,1fr)] gap-3 border-l-2 px-4 py-3 transition-colors ${+ active+ ? "border-l-blue-600 bg-blue-50"+ : selected+ ? "border-l-transparent bg-neutral-50"+ : "border-l-transparent hover:bg-neutral-50"+ } ${draggable ? "cursor-grab active:cursor-grabbing" : ""}`}+ draggable={draggable}+ onDragStart={(event) => {+ if (!draggable) return;+ setMessageDragData(event.dataTransfer, { messageIds: dragMessageIds });+ }}+ >+ <input+ type="checkbox"+ checked={selected}+ onChange={(event) => onSelectedChange(message.id, event.target.checked)}+ className="mt-1 h-4 w-4 rounded border-neutral-300"+ aria-label={`Select message from ${party}`}+ />+ <Link href={href} className="min-w-0">+ <span className="flex items-baseline justify-between gap-3">+ <span className={getMessagePartyClassName(message, config.folder)}>+ {party}+ </span>+ <span className="shrink-0 text-[11px] text-neutral-400">+ {formatMessageListTimestamp(message.createdAt)}+ </span>+ </span>+ <span+ className={`mt-1 block truncate text-sm ${+ unread ? "font-semibold text-neutral-900" : "text-neutral-700"+ }`}+ >+ {message.subject ?? "(no subject)"}+ </span>+ <span className="mt-0.5 block truncate text-xs leading-5 text-neutral-500">+ {preview}+ </span>+ </Link>+ </div>+ );+ }+const className =`grid min-h-12 w-full grid-cols-[24px_32px_minmax(160px,240px)_1fr_auto] items-center gap-3 px-6 text-left text-sm hover:relative hover:z-10 hover:bg-[#f2f6fc] hover:shadow-sm ${- selected ? "bg-blue-50" : ""- }`;+ active || selected ? "bg-blue-50" : ""+ } ${draggable ? "cursor-grab active:cursor-grabbing" : ""}`;const content = (<><Icon className="h-4 w-4 text-neutral-300" />@@ -70,7 +136,14 @@ function MessageListRow({ message, config, selected, onSelectedChange }: Message}return (- <div className={className}>+ <div+ className={className}+ draggable={draggable}+ onDragStart={(event) => {+ if (!draggable) return;+ setMessageDragData(event.dataTransfer, { messageIds: dragMessageIds });+ }}+ ><inputtype="checkbox"checked={selected}@@ -78,54 +151,93 @@ function MessageListRow({ message, config, selected, onSelectedChange }: MessageclassName="h-4 w-4 rounded border-neutral-300"aria-label="Select message"/>- <Link href={`${config.hrefPrefix}/${message.id}`} className="contents">+ <Link href={href} className="contents">{content}</Link></div>);}-export function MessageFolderPage({ config }: { config: MessageFolderConfig }) {+export function MessageFolderPage({+ config,+ compact = false,+ selectedMessageId,+ selection,+}: MessageFolderPageProps) {const { selectedMailbox, isLoading: mailboxesLoading } = useSelectedMailbox();const { query } = useMailSearch();const [offset, setOffset] = useState(0);- const [selectedIds, setSelectedIds] = useState<string[]>([]);+ const [internalSelectedMessages, setInternalSelectedMessages] = useState<+ Array<{ id: string; read: boolean }>+ >([]);const [pendingBulkAction, setPendingBulkAction] = useState(false);const { messages, isLoading, total, limit } = useMessages(config.folder, selectedMailbox?.id, {query,limit: pageSize,offset,- }, !mailboxesLoading);+ }, !mailboxesLoading, config.folderId);+ const { counts } = useMessageCounts(selectedMailbox?.id, !mailboxesLoading);const headerIcons = config.headerIcons ?? [];const hasActiveFilters = !!query.trim();+ const folderCount = config.folderId+ ? counts.customFolders[config.folderId]+ : counts.folders[config.folder];+ const titleTotal = folderCount?.total ?? total;+ const titleUnread = folderCount?.unread ?? 0;+ const mailboxAddress = getMailboxAddress(selectedMailbox);const pageRange = getPageRange(offset, messages.length, total);- const selectedMessages = useMemo(- () => messages.filter((message) => selectedIds.includes(message.id)),- [messages, selectedIds],+ const selectedMessages = selection?.selectedMessages ?? internalSelectedMessages;+ const setSelectedMessages =+ selection?.setSelectedMessages ?? setInternalSelectedMessages;+ const selectedIds = useMemo(+ () => selectedMessages.map((message) => message.id),+ [selectedMessages],);const hasUnreadSelection = selectedMessages.some((message) => !message.read);const allVisibleSelected = messages.length > 0 && messages.every((message) => selectedIds.includes(message.id));useEffect(() => {setOffset(0);- setSelectedIds([]);- }, [query, selectedMailbox?.id, config.folder]);+ setSelectedMessages([]);+ }, [query, selectedMailbox?.id, config.folder, config.folderId]);useEffect(() => {- setSelectedIds([]);+ setSelectedMessages([]);}, [offset]);+ useEffect(() => {+ if (mailboxesLoading) return;+ document.title = formatEmailPageTitle({+ location: config.title,+ total: titleTotal,+ unread: titleUnread,+ emailAddress: mailboxAddress,+ });+ }, [config.title, mailboxAddress, mailboxesLoading, titleTotal, titleUnread]);+function updateSelectedMessage(messageId: string, selected: boolean) {- setSelectedIds((current) =>- selected ? [...new Set([...current, messageId])] : current.filter((id) => id !== messageId),- );+ const message = messages.find((item) => item.id === messageId);+ if (!message) return;++ setSelectedMessages((current) => {+ if (!selected) return current.filter((item) => item.id !== messageId);+ if (current.some((item) => item.id === messageId)) return current;+ return [...current, { id: message.id, read: message.read }];+ });}function toggleAllVisible(selected: boolean) {- const visibleIds = messages.map((message) => message.id);- setSelectedIds((current) => {- if (!selected) return current.filter((id) => !visibleIds.includes(id));- return [...new Set([...current, ...visibleIds])];+ const visibleIds = new Set(messages.map((message) => message.id));+ setSelectedMessages((current) => {+ if (!selected) {+ return current.filter((message) => !visibleIds.has(message.id));+ }++ const next = new Map(current.map((message) => [message.id, message]));+ for (const message of messages) {+ next.set(message.id, { id: message.id, read: message.read });+ }+ return Array.from(next.values());});}@@ -135,15 +247,15 @@ export function MessageFolderPage({ config }: { config: MessageFolderConfig }) {setPendingBulkAction(true);try {await runBulkMessageAction(selectedIds, action);- setSelectedIds([]);+ setSelectedMessages([]);} finally {setPendingBulkAction(false);}}return (- <div className="flex h-full flex-col">- <div className="flex h-14 items-center justify-between border-b border-neutral-200 px-6">+ <div className="flex h-full min-h-0 flex-col">+ <div className={`flex h-14 shrink-0 items-center justify-between border-b border-neutral-200 ${compact ? "px-4" : "px-6"}`}><div className="flex items-center gap-3 w-full"><Tooltip label="Select all visible messages"><input@@ -155,26 +267,29 @@ export function MessageFolderPage({ config }: { config: MessageFolderConfig }) {aria-label="Select all visible messages"/></Tooltip>- {selectedIds.length > 0 ? (+ {selectedIds.length > 0 && !compact ? (<BulkMessageToolbarselectedCount={selectedIds.length}hasUnreadSelection={hasUnreadSelection}onAction={runSelectedAction}- onClearSelection={() => setSelectedIds([])}+ onClearSelection={() => setSelectedMessages([])}pending={pendingBulkAction}/>) : (- null- // <>- // <h1 className="text-xl font-medium text-neutral-800">{config.title}</h1>- // <Badge variant="secondary">{total}</Badge>- // </>+ compact && (+ <>+ {/* <h1 className="truncate text-sm font-semibold text-neutral-900">+ {config.title}+ </h1>+ <Badge variant="secondary">{total}</Badge> */}+ </>+ ))}</div>- {selectedIds.length === 0 && (+ {(selectedIds.length === 0 || compact) && (<div className="flex items-center gap-2 text-neutral-500"><span className="text-xs text-neutral-500 whitespace-nowrap">- {pageRange.start}-{pageRange.end} of {pageRange.total}+ {pageRange.start} - {pageRange.end} of {pageRange.total}</span><Tooltip label="Previous page"><Button@@ -198,24 +313,27 @@ export function MessageFolderPage({ config }: { config: MessageFolderConfig }) {<ChevronRight className="h-4 w-4" /></Button></Tooltip>- {headerIcons.map((Icon, index) => (+ {!compact && headerIcons.map((Icon, index) => (<Icon key={index} className="h-4 w-4" />))}</div>)}</div>- <div className="divide-y divide-neutral-100">+ <div className="min-h-0 flex-1 divide-y divide-neutral-100 overflow-y-auto overscroll-contain scrollbar-gutter-stable">{messages.map((message) => (<MessageListRowkey={message.id}message={message}config={config}selected={selectedIds.includes(message.id)}+ active={message.id === selectedMessageId}+ compact={compact}onSelectedChange={updateSelectedMessage}+ dragMessageIds={selectedIds.includes(message.id) ? selectedIds : [message.id]}/>))}- {isLoading && <p className="px-6 py-4 text-sm text-neutral-500">Loading...</p>}+ {isLoading && <SkeletonRows count={7} compact={compact} />}{!isLoading && messages.length === 0 && (<p className="px-6 py-4 text-sm text-neutral-500">{hasActiveFilters ? "No messages match these filters" : config.emptyText}diff --git a/src/components/messages/message-split-layout.tsx b/src/components/messages/message-split-layout.tsxnew file mode 100644index 0000000..fa3c819--- /dev/null+++ b/src/components/messages/message-split-layout.tsx@@ -0,0 +1,44 @@+"use client";++import { usePathname } from "next/navigation";+import { useState } from "react";+import { BulkMessageSelectionPane } from "./bulk-message-selection-pane";+import { MessageFolderPage } from "./message-folder-page";+import type { MessageSplitLayoutProps, SelectedMessage } from "./types";++export function MessageSplitLayout({+ children,+ config,+}: MessageSplitLayoutProps) {+ const pathname = usePathname();+ const [selectedMessages, setSelectedMessages] = useState<SelectedMessage[]>([]);+ const detailPrefix = `${config.hrefPrefix}/`;+ const selectedMessageId = pathname.startsWith(detailPrefix)+ ? pathname.slice(detailPrefix.length).split("/")[0]+ : undefined;++ if (!selectedMessageId) return children;++ return (+ <div className="h-full min-h-0 overflow-hidden lg:grid lg:grid-cols-[minmax(300px,380px)_minmax(0,1fr)]">+ <aside className="hidden min-h-0 overflow-hidden border-r border-neutral-200 bg-white lg:block">+ <MessageFolderPage+ config={config}+ compact+ selectedMessageId={selectedMessageId}+ selection={{ selectedMessages, setSelectedMessages }}+ />+ </aside>+ <section className="min-h-0 min-w-0 overflow-hidden bg-white">+ {selectedMessages.length > 0 ? (+ <BulkMessageSelectionPane+ selectedMessages={selectedMessages}+ onClearSelection={() => setSelectedMessages([])}+ />+ ) : (+ children+ )}+ </section>+ </div>+ );+}diff --git a/src/components/messages/types.d.ts b/src/components/messages/types.d.tsindex 69258ff..7f1ac51 100644--- a/src/components/messages/types.d.ts+++ b/src/components/messages/types.d.ts@@ -1,4 +1,5 @@import type { LucideIcon } from "lucide-react";+import type { Dispatch, ReactNode, SetStateAction } from "react";import type { Message, MessageFolder } from "@/hooks/types";import type { BulkMessageAction } from "@/app/api/messages/bulk/types";@@ -7,6 +8,7 @@ export type MessageFolderConfig = {title: string;emptyText: string;hrefPrefix: string;+ folderId?: string;icon: LucideIcon;headerIcons?: LucideIcon[];badgeVariant?: "default" | "secondary" | "outline";@@ -17,19 +19,54 @@ export type MessageListRowProps = {message: Message;config: MessageFolderConfig;selected: boolean;+ active?: boolean;+ compact?: boolean;onSelectedChange: (messageId: string, selected: boolean) => void;+ dragMessageIds: string[];+};++export type MessageFolderPageProps = {+ config: MessageFolderConfig;+ compact?: boolean;+ selectedMessageId?: string;+ selection?: MessageSelectionControl;+};++export type MessageSplitLayoutProps = {+ children: ReactNode;+ config: MessageFolderConfig;};export type BulkMessageToolbarProps = {selectedCount: number;hasUnreadSelection: boolean;+ hideSelectedCount?: boolean;onAction: (action: BulkMessageAction) => void;onClearSelection: () => void;pending: boolean;};+export type SelectedMessage = Pick<Message, "id" | "read">;++export type MessageSelectionControl = {+ selectedMessages: SelectedMessage[];+ setSelectedMessages: Dispatch<SetStateAction<SelectedMessage[]>>;+};++export type BulkMessageSelectionPaneProps = {+ selectedMessages: SelectedMessage[];+ onClearSelection: () => void;+};+export type PageRange = {start: number;end: number;total: number;};++export type EmailPageTitleInput = {+ location: string;+ total: number;+ unread: number;+ emailAddress: string | null;+};diff --git a/src/components/messages/use-custom-folder-config.ts b/src/components/messages/use-custom-folder-config.tsnew file mode 100644index 0000000..99c6c3c--- /dev/null+++ b/src/components/messages/use-custom-folder-config.ts@@ -0,0 +1,45 @@+"use client";++import { Folder } from "lucide-react";+import { useEffect, useMemo, useState } from "react";+import { useSelectedMailbox } from "@/components/mailbox-provider";+import { authFetch } from "@/lib/auth/client";+import type { CustomFolderSummary } from "./custom-folder-config-types";+import type { MessageFolderConfig } from "./types";++export function useCustomFolderConfig(folderId: string): MessageFolderConfig {+ const { selectedMailbox } = useSelectedMailbox();+ const [folderName, setFolderName] = useState("Folder");++ useEffect(() => {+ if (!selectedMailbox?.id) return;+ let cancelled = false;+ const search = new URLSearchParams({ mailboxId: selectedMailbox.id });++ authFetch(`/api/folders?${search.toString()}`)+ .then((response) => response.json() as Promise<{ folders?: CustomFolderSummary[] }>)+ .then((data) => {+ if (cancelled) return;+ const folder = data.folders?.find((item) => item.id === folderId);+ if (folder) setFolderName(folder.name);+ })+ .catch(() => {});++ return () => {+ cancelled = true;+ };+ }, [folderId, selectedMailbox?.id]);++ return useMemo(+ () => ({+ folder: "inbox",+ folderId,+ title: folderName,+ emptyText: "No emails in this folder",+ hrefPrefix: `/folders/${folderId}`,+ icon: Folder,+ showRowBadge: false,+ }),+ [folderId, folderName],+ );+}diff --git a/src/components/messages/utils.ts b/src/components/messages/utils.tsindex fd4d7fe..6679ca5 100644--- a/src/components/messages/utils.ts+++ b/src/components/messages/utils.ts@@ -1,6 +1,9 @@import type { Message } from "@/hooks/types";import { authFetch } from "@/lib/auth/client";import { getEmailDisplayName } from "@/lib/email/address";+import dayjs from "dayjs";+import type { MailboxOption } from "@/components/mailbox-provider";+import type { EmailPageTitleInput } from "./types";import type { MessageFolderConfig } from "./types";import type { PageRange } from "./types";@@ -24,10 +27,17 @@ export function getMessagePreview(message: Message, folder: MessageFolderConfig[export function getMessageBadge(message: Message, folder: MessageFolderConfig["folder"]) {if (folder === "drafts") return "draft";- if (folder === "trash" || folder === "spam") return message.status;+ if (folder === "archived" || folder === "trash" || folder === "spam") return message.status;return message.direction;}+export function formatMessageListTimestamp(createdAt: string): string {+ const date = dayjs(createdAt);+ if (date.isSame(dayjs(), "day")) return date.format("h:mm A");+ if (date.isSame(dayjs(), "year")) return date.format("MMM D");+ return date.format("M/D/YY");+}+export function getPageRange(offset: number, count: number, total: number): PageRange {if (total === 0 || count === 0) return { start: 0, end: 0, total };@@ -38,6 +48,21 @@ export function getPageRange(offset: number, count: number, total: number): Page};}+export function getMailboxAddress(mailbox: Pick<MailboxOption, "localPart" | "hostname"> | null | undefined): string | null {+ if (!mailbox) return null;+ return `${mailbox.localPart}@${mailbox.hostname}`;+}++export function getEmailPageTitleCount(total: number, unread: number): number {+ return unread > 0 ? unread : total;+}++export function formatEmailPageTitle({ location, total, unread, emailAddress }: EmailPageTitleInput): string {+ const count = getEmailPageTitleCount(total, unread);+ const suffix = emailAddress ? ` - ${emailAddress}` : "";+ return `${location} (${count})${suffix}`;+}+export async function runBulkMessageAction(messageIds: string[], action: string) {const response = await authFetch("/api/messages/bulk", {method: "POST",diff --git a/src/components/new-message-popup-types.d.ts b/src/components/new-message-popup-types.d.tsnew file mode 100644index 0000000..c82d981--- /dev/null+++ b/src/components/new-message-popup-types.d.ts@@ -0,0 +1,6 @@+import type { NewMessageEvent } from "@/hooks/message-realtime-types";++export interface NewMessagePopupProps {+ notification: NewMessageEvent;+ onDismiss: () => void;+}diff --git a/src/components/new-message-popup.tsx b/src/components/new-message-popup.tsxnew file mode 100644index 0000000..6bf5e0a--- /dev/null+++ b/src/components/new-message-popup.tsx@@ -0,0 +1,43 @@+"use client";++import Link from "next/link";+import { Mail, X } from "lucide-react";+import type { NewMessagePopupProps } from "./new-message-popup-types";++export function NewMessagePopup({+ notification,+ onDismiss,+}: NewMessagePopupProps) {+ return (+ <div className="fixed right-5 top-5 z-[100] w-[min(380px,calc(100vw-40px))] rounded-xl border border-blue-200 bg-white p-4 shadow-xl">+ <div className="flex items-start gap-3">+ <div className="flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-blue-100 text-blue-700">+ <Mail className="h-5 w-5" />+ </div>+ <Link+ href={`/inbox/${notification.messageId}`}+ onClick={onDismiss}+ className="min-w-0 flex-1"+ >+ <p className="text-sm font-semibold text-neutral-900">+ New email+ </p>+ <p className="mt-0.5 truncate text-sm text-neutral-800">+ {notification.subject || "(no subject)"}+ </p>+ <p className="mt-1 truncate text-xs text-neutral-500">+ From {notification.from}+ </p>+ </Link>+ <button+ type="button"+ onClick={onDismiss}+ className="rounded-full p-1 text-neutral-400 hover:bg-neutral-100 hover:text-neutral-700"+ >+ <X className="h-4 w-4" />+ <span className="sr-only">Dismiss notification</span>+ </button>+ </div>+ </div>+ );+}diff --git a/src/components/page-skeletons.tsx b/src/components/page-skeletons.tsxnew file mode 100644index 0000000..7abfa0f--- /dev/null+++ b/src/components/page-skeletons.tsx@@ -0,0 +1,90 @@+import { Skeleton, SkeletonRows } from "@/components/ui/skeleton";+import { MailOpen } from "lucide-react";++export function PageSkeleton() {+ return (+ <div className="space-y-7 p-8 flex flex-row items-center justify-center h-dvh w-dvw flex-1">+ <div className="space-y-2">+ <MailOpen size={86} className="animate-pulse text-blue-600/10" />+ <Skeleton className="h-7 w-48" />+ <Skeleton className="h-4 w-80 max-w-full" />+ </div>+ {/* <div className="grid gap-4 md:grid-cols-2">+ {Array.from({ length: 4 }, (_, index) => (+ <div key={index} className="rounded-lg border border-neutral-200 p-5">+ <Skeleton className="h-10 w-10 rounded-lg" />+ <Skeleton className="mt-4 h-4 w-32" />+ <Skeleton className="mt-2 h-3 w-4/5" />+ </div>+ ))}+ </div> */}+ </div>+ );+}++export function ListPageSkeleton() {+ return (+ <div className="h-full min-h-0">+ <div className="flex h-14 items-center justify-between border-b border-neutral-200 px-6">+ <Skeleton className="h-4 w-36" />+ <Skeleton className="h-4 w-24" />+ </div>+ <SkeletonRows count={8} />+ </div>+ );+}++export function MessageDetailSkeleton() {+ return (+ <div className="h-full space-y-6 p-6">+ <div className="flex justify-between">+ <Skeleton className="h-9 w-9 rounded-full" />+ <Skeleton className="h-9 w-48" />+ </div>+ <Skeleton className="h-8 w-3/5" />+ <div className="flex items-start gap-3 border-b border-neutral-100 pb-5">+ <Skeleton className="h-10 w-10 rounded-full" />+ <div className="flex-1 space-y-2">+ <Skeleton className="h-4 w-48" />+ <Skeleton className="h-3 w-32" />+ </div>+ <Skeleton className="h-3 w-28" />+ </div>+ <div className="space-y-3">+ <Skeleton className="h-4 w-full" />+ <Skeleton className="h-4 w-11/12" />+ <Skeleton className="h-4 w-4/5" />+ <Skeleton className="h-4 w-5/6" />+ </div>+ </div>+ );+}++export function TableSkeleton() {+ return (+ <div className="overflow-hidden rounded-lg border border-neutral-200 bg-white">+ <Skeleton className="h-10 w-full rounded-none" />+ <SkeletonRows count={6} />+ </div>+ );+}++export function CardGridSkeleton() {+ return (+ <div className="grid gap-3 md:grid-cols-2">+ {Array.from({ length: 4 }, (_, index) => (+ <div+ key={index}+ className="flex min-h-24 items-start gap-3 rounded-lg border border-neutral-200 bg-white p-4"+ >+ <Skeleton className="h-10 w-10 shrink-0 rounded-lg" />+ <div className="min-w-0 flex-1 space-y-2">+ <Skeleton className="h-4 w-2/5" />+ <Skeleton className="h-3.5 w-4/5" />+ <Skeleton className="h-3 w-1/3" />+ </div>+ </div>+ ))}+ </div>+ );+}diff --git a/src/components/previous-message-types.d.ts b/src/components/previous-message-types.d.tsnew file mode 100644index 0000000..7f62d1b--- /dev/null+++ b/src/components/previous-message-types.d.ts@@ -0,0 +1,5 @@+import type { QuotedEmailContent } from "@/lib/email/reply-content-types";++export interface PreviousMessageProps {+ message: QuotedEmailContent;+}diff --git a/src/components/previous-message.tsx b/src/components/previous-message.tsxnew file mode 100644index 0000000..d2e0496--- /dev/null+++ b/src/components/previous-message.tsx@@ -0,0 +1,28 @@+import { ChevronRight } from "lucide-react";+import type { PreviousMessageProps } from "./previous-message-types";++export function PreviousMessage({ message }: PreviousMessageProps) {+ return (+ <details className="group mt-4 border-l-2 border-neutral-200 pl-4">+ <summary className="flex cursor-pointer list-none items-center gap-2 rounded-md py-2 text-xs font-medium text-neutral-500 hover:text-neutral-800">+ <ChevronRight className="h-3.5 w-3.5 shrink-0 transition-transform group-open:rotate-90" />+ <span>+ Previous message {message.direction} at {message.dateLine}+ </span>+ </summary>+ <div className="pb-2 pl-5 text-neutral-600">+ {message.content && (+ <pre className="whitespace-pre-wrap text-sm font-sans">+ {message.content}+ </pre>+ )}+ {message.quotedContent.map((nestedMessage, index) => (+ <PreviousMessage+ key={`${nestedMessage.dateLine}-${nestedMessage.content.slice(0, 24)}-${index}`}+ message={nestedMessage}+ />+ ))}+ </div>+ </details>+ );+}diff --git a/src/components/providers.tsx b/src/components/providers.tsxindex 49b30ab..9899809 100644--- a/src/components/providers.tsx+++ b/src/components/providers.tsx@@ -1,9 +1,16 @@"use client";import { QueryClient, QueryClientProvider } from "@tanstack/react-query";-import { useState } from "react";+import { useEffect, useState } from "react";+import { clearMailboxClientState } from "@/components/mailbox-provider-utils";+import { NewMessagePopup } from "@/components/new-message-popup";+import { useMessagePolling } from "@/hooks/use-message-polling";+import { clearMessageClientState } from "@/hooks/utils";+import { AUTH_SESSION_CHANGED_EVENT } from "@/lib/auth/client";export function Providers({ children }: { children: React.ReactNode }) {+ const realtime = useMessagePolling();+const [client] = useState(() =>new QueryClient({@@ -17,5 +24,27 @@ export function Providers({ children }: { children: React.ReactNode }) {},}),);- return <QueryClientProvider client={client}>{children}</QueryClientProvider>;++ useEffect(() => {+ function resetUserScopedState() {+ client.clear();+ clearMailboxClientState();+ clearMessageClientState();+ }++ window.addEventListener(AUTH_SESSION_CHANGED_EVENT, resetUserScopedState);+ return () => window.removeEventListener(AUTH_SESSION_CHANGED_EVENT, resetUserScopedState);+ }, [client]);++ return (+ <QueryClientProvider client={client}>+ {children}+ {realtime.notification && (+ <NewMessagePopup+ notification={realtime.notification}+ onDismiss={realtime.dismissNotification}+ />+ )}+ </QueryClientProvider>+ );}diff --git a/src/components/settings/current-mailbox-form.tsx b/src/components/settings/current-mailbox-form.tsxindex 14c4f76..68e24ae 100644--- a/src/components/settings/current-mailbox-form.tsx+++ b/src/components/settings/current-mailbox-form.tsx@@ -1,5 +1,6 @@"use client";+import type { FormEvent } from "react";import { useEffect, useState } from "react";import { Save } from "lucide-react";import { useSelectedMailbox } from "@/components/mailbox-provider";@@ -7,6 +8,7 @@ import { Button } from "@/components/ui/button";import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";import { Input } from "@/components/ui/input";import { Label } from "@/components/ui/label";+import { Skeleton } from "@/components/ui/skeleton";import { getMailboxAddress, updateCurrentMailboxName } from "./utils";export function CurrentMailboxForm() {@@ -23,7 +25,7 @@ export function CurrentMailboxForm() {setStatus(null);}, [selectedMailbox?.id, selectedMailbox?.displayName]);- async function onSubmit(event: React.FormEvent<HTMLFormElement>) {+ async function onSubmit(event: FormEvent<HTMLFormElement>) {event.preventDefault();if (!selectedMailbox) return;@@ -45,9 +47,13 @@ export function CurrentMailboxForm() {if (isLoading) {return (<div className="max-w-2xl space-y-6 p-8">- <h1 className="text-2xl font-semibold text-neutral-900">Settings</h1>+ <Skeleton className="h-8 w-32" /><Card>- <CardContent className="p-6 text-sm text-neutral-500">Loading mailbox...</CardContent>+ <CardContent className="space-y-4 p-6">+ <Skeleton className="h-4 w-24" />+ <Skeleton className="h-10 w-full" />+ <Skeleton className="h-9 w-28" />+ </CardContent></Card></div>);@@ -70,7 +76,7 @@ export function CurrentMailboxForm() {const hasChanges = displayName.trim() !== savedDisplayName;return (- <div className="max-w-2xl space-y-6 p-8">+ <div className="max-w-3xl space-y-8 p-8"><div><h1 className="text-2xl font-semibold text-neutral-900">Settings</h1><p className="mt-1 text-sm text-neutral-500">{address}</p>@@ -96,11 +102,11 @@ export function CurrentMailboxForm() {<div className="grid gap-4 rounded-md border border-neutral-200 bg-neutral-50 px-3 py-3 sm:grid-cols-2"><div className="space-y-1"><p className="text-xs font-medium uppercase text-neutral-500">Email</p>- <p className="truncate font-mono text-sm text-neutral-900">{address}</p>+ <p className="truncate no-font-mono text-sm text-neutral-900">{address}</p></div><div className="space-y-1"><p className="text-xs font-medium uppercase text-neutral-500">Domain</p>- <p className="truncate font-mono text-sm text-neutral-900">{selectedMailbox.hostname}</p>+ <p className="truncate no-font-mono text-sm text-neutral-900">{selectedMailbox.hostname}</p></div></div><div className="flex items-center gap-3">diff --git a/src/components/settings/import-messages-types.d.ts b/src/components/settings/import-messages-types.d.tsnew file mode 100644index 0000000..cfe1f86--- /dev/null+++ b/src/components/settings/import-messages-types.d.ts@@ -0,0 +1,11 @@+export type ImportMessagesResult = {+ imported?: number;+ skipped?: number;+ errors?: string[];+ error?: string;+};++export type ImportMessagesProps = {+ destination: string;+ sourceLabel: string;+};diff --git a/src/components/settings/import-messages-utils.ts b/src/components/settings/import-messages-utils.tsnew file mode 100644index 0000000..f53254c--- /dev/null+++ b/src/components/settings/import-messages-utils.ts@@ -0,0 +1,28 @@+import { authFetch } from "@/lib/auth/client";+import type { ImportMessagesResult } from "./import-messages-types";++export async function importMessageFiles(+ mailboxId: string,+ files: File[],+ destination: string,+): Promise<ImportMessagesResult> {+ const form = new FormData();+ form.set("mailboxId", mailboxId);+ form.set("destination", destination);+ for (const file of files) {+ form.append("files", file);+ }++ const response = await authFetch("/api/import/messages", {+ method: "POST",+ body: form,+ });+ const data = (await response.json()) as ImportMessagesResult;+ if (!response.ok) throw new Error(data.error ?? "Import failed");+ return data;+}++export function getImportSummary(result: ImportMessagesResult | null): string {+ if (!result) return "";+ return `${result.imported ?? 0} imported, ${result.skipped ?? 0} skipped`;+}diff --git a/src/components/settings/import-messages.tsx b/src/components/settings/import-messages.tsxnew file mode 100644index 0000000..060980a--- /dev/null+++ b/src/components/settings/import-messages.tsx@@ -0,0 +1,93 @@+"use client";++import type { FormEvent } from "react";+import { useState } from "react";+import { Upload } from "lucide-react";+import { useSelectedMailbox } from "@/components/mailbox-provider";+import { Button } from "@/components/ui/button";+import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";+import { Label } from "@/components/ui/label";+import type { ImportMessagesProps, ImportMessagesResult } from "./import-messages-types";+import { getImportSummary, importMessageFiles } from "./import-messages-utils";++export function ImportMessages({ destination, sourceLabel }: ImportMessagesProps) {+ const { selectedMailbox } = useSelectedMailbox();+ const [files, setFiles] = useState<File[]>([]);+ const [loading, setLoading] = useState(false);+ const [result, setResult] = useState<ImportMessagesResult | null>(null);+ const [error, setError] = useState<string | null>(null);++ async function onSubmit(event: FormEvent<HTMLFormElement>) {+ event.preventDefault();+ if (!selectedMailbox?.id || files.length === 0) return;++ setLoading(true);+ setError(null);+ setResult(null);+ try {+ const nextResult = await importMessageFiles(selectedMailbox.id, files, destination);+ setResult(nextResult);+ window.dispatchEvent(new Event("mailflare:messages-changed"));+ } catch (err) {+ setError(err instanceof Error ? err.message : "Import failed");+ } finally {+ setLoading(false);+ }+ }++ return (+ <Card>+ <CardHeader>+ <CardTitle className="flex items-center gap-2">+ <Upload className="h-4 w-4" />+ Import mail+ </CardTitle>+ <CardDescription>+ Upload exported .eml or .mbox files from source {sourceLabel}. They will be saved to the+ matching section in the selected mailbox.+ </CardDescription>+ </CardHeader>+ <CardContent>+ <form onSubmit={onSubmit} className="space-y-4">+ <div className="space-y-2">+ <Label htmlFor="mail-import">Mail export files</Label>+ <input+ id="mail-import"+ type="file"+ accept=".eml,.mbox,.mbx,message/rfc822,application/mbox"+ multiple+ onChange={(event) => setFiles(Array.from(event.target.files ?? []))}+ className="block w-full rounded-md border border-neutral-200 bg-white px-3 py-2 text-sm shadow-sm shadow-neutral-200/50 file:mr-3 file:rounded-md file:border-0 file:bg-neutral-100 file:px-3 file:py-1.5 file:text-sm file:font-medium"+ />+ <p className="text-xs leading-5 text-neutral-500">+ Imports up to 100 messages and 25 MB per upload. Duplicate Message-ID values are skipped.+ </p>+ </div>++ <Button type="submit" disabled={!selectedMailbox || files.length === 0 || loading}>+ {loading ? "Importing..." : "Import messages"}+ </Button>++ {result && (+ <div className="rounded-lg border border-green-100 bg-green-50 px-4 py-3 text-sm text-green-700">+ <p className="font-medium">{getImportSummary(result)}</p>+ {(result.errors ?? []).length > 0 && (+ <ul className="mt-2 list-disc space-y-1 pl-5 text-xs">+ {result.errors.slice(0, 5).map((item) => (+ <li key={item}>{item}</li>+ ))}+ </ul>+ )}+ </div>+ )}++ {error && (+ <p className="rounded-lg border border-red-100 bg-red-50 px-4 py-3 text-sm text-red-700">+ {error}+ </p>+ )}+ </form>+ </CardContent>+ </Card>+ );+}diff --git a/src/components/settings/inbox-rules-types.d.ts b/src/components/settings/inbox-rules-types.d.tsnew file mode 100644index 0000000..7a1c325--- /dev/null+++ b/src/components/settings/inbox-rules-types.d.ts@@ -0,0 +1,25 @@+export type RuleFolder = {+ id: string;+ name: string;+};++export type InboxRule = {+ id: string;+ pattern: string;+ matchField: "email" | "content" | "title";+ matchOperator: "contains" | "exact";+ matchValue: string;+ action: "store" | "forward" | "reject" | "spam" | "trash";+ folderId: string | null;+ priority: number;+};++export type InboxRulesResponse = {+ rules: InboxRule[];+ error?: string;+};++export type RuleFoldersResponse = {+ folders: RuleFolder[];+ error?: string;+};diff --git a/src/components/settings/inbox-rules-utils.ts b/src/components/settings/inbox-rules-utils.tsnew file mode 100644index 0000000..3454df4--- /dev/null+++ b/src/components/settings/inbox-rules-utils.ts@@ -0,0 +1,49 @@+import { authFetch } from "@/lib/auth/client";+import type { InboxRulesResponse, RuleFoldersResponse } from "./inbox-rules-types";++export async function fetchInboxRules(mailboxId: string): Promise<InboxRulesResponse> {+ const params = new URLSearchParams({ mailboxId });+ const response = await authFetch(`/api/routing-rules?${params.toString()}`);+ return (await response.json()) as InboxRulesResponse;+}++export async function fetchRuleFolders(mailboxId: string): Promise<RuleFoldersResponse> {+ const params = new URLSearchParams({ mailboxId });+ const response = await authFetch(`/api/folders?${params.toString()}`);+ return (await response.json()) as RuleFoldersResponse;+}++export async function createInboxRule(input: {+ mailboxId: string;+ matchField: "email" | "content" | "title";+ matchOperator: "contains" | "exact";+ matchValue: string;+ destination: string;+ priority: number;+}) {+ const response = await authFetch("/api/routing-rules", {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify(input),+ });+ const data = (await response.json()) as { error?: string };+ if (!response.ok) throw new Error(data.error ?? "Failed to create rule");+ return data;+}++export async function deleteInboxRule(ruleId: string) {+ const response = await authFetch(`/api/routing-rules/${ruleId}`, {+ method: "DELETE",+ });+ if (!response.ok) throw new Error("Failed to delete rule");+}++export function getRuleFieldLabel(field: string): string {+ if (field === "content") return "Content";+ if (field === "title") return "Title";+ return "Email address";+}++export function getRuleOperatorLabel(operator: string): string {+ return operator === "exact" ? "exact match" : "contains";+}diff --git a/src/components/settings/inbox-rules.tsx b/src/components/settings/inbox-rules.tsxnew file mode 100644index 0000000..c659abf--- /dev/null+++ b/src/components/settings/inbox-rules.tsx@@ -0,0 +1,191 @@+"use client";++import { useState } from "react";+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";+import { Folder, Route, ShieldAlert, Trash2 } from "lucide-react";+import { useSelectedMailbox } from "@/components/mailbox-provider";+import { Button } from "@/components/ui/button";+import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";+import {+ createInboxRule,+ deleteInboxRule,+ fetchInboxRules,+ fetchRuleFolders,+ getRuleFieldLabel,+ getRuleOperatorLabel,+} from "./inbox-rules-utils";++export function InboxRules() {+ const queryClient = useQueryClient();+ const { selectedMailbox } = useSelectedMailbox();+ const [matchField, setMatchField] = useState<"email" | "content" | "title">("email");+ const [matchOperator, setMatchOperator] = useState<"contains" | "exact">("contains");+ const [matchValue, setMatchValue] = useState("");+ const [destination, setDestination] = useState("");+ const mailboxId = selectedMailbox?.id ?? "";++ const folders = useQuery({+ queryKey: ["folders", mailboxId],+ enabled: !!mailboxId,+ queryFn: () => fetchRuleFolders(mailboxId),+ });+ const rules = useQuery({+ queryKey: ["routing-rules", mailboxId],+ enabled: !!mailboxId,+ queryFn: () => fetchInboxRules(mailboxId),+ });++ const create = useMutation({+ mutationFn: () => createInboxRule({+ mailboxId,+ matchField,+ matchOperator,+ matchValue,+ destination,+ priority: 10,+ }),+ onSuccess: () => {+ setMatchField("email");+ setMatchOperator("contains");+ setMatchValue("");+ setDestination("");+ queryClient.invalidateQueries({ queryKey: ["routing-rules", mailboxId] });+ },+ });+ const remove = useMutation({+ mutationFn: deleteInboxRule,+ onSuccess: () => queryClient.invalidateQueries({ queryKey: ["routing-rules", mailboxId] }),+ });++ const folderMap = new Map((folders.data?.folders ?? []).map((folder) => [folder.id, folder.name]));++ function getRuleDestination(rule: { action: string; folderId: string | null }) {+ if (rule.action === "spam") return "Spam";+ if (rule.action === "trash") return "Trash";+ return folderMap.get(rule.folderId ?? "") ?? "Unknown folder";+ }++ return (+ <section>+ <Card>+ <CardHeader>+ <CardTitle className="flex items-center gap-2 text-base">+ <Route className="h-4 w-4" />+ New rule+ </CardTitle>+ <CardDescription>Choose what to match and where the message should go.</CardDescription>+ </CardHeader>+ <CardContent className="space-y-4">+ <div className="grid gap-3 md:grid-cols-[1fr_1fr_2fr]">+ <div className="space-y-2">+ <Label htmlFor="matchField">Field</Label>+ <select+ id="matchField"+ className="h-10 w-full rounded-md border border-neutral-200 px-3 text-sm"+ value={matchField}+ onChange={(event) => setMatchField(event.target.value as "email" | "content" | "title")}+ >+ <option value="email">Email address</option>+ <option value="content">Content</option>+ <option value="title">Title</option>+ </select>+ </div>+ <div className="space-y-2">+ <Label htmlFor="matchOperator">Match</Label>+ <select+ id="matchOperator"+ className="h-10 w-full rounded-md border border-neutral-200 px-3 text-sm"+ value={matchOperator}+ onChange={(event) => setMatchOperator(event.target.value as "contains" | "exact")}+ >+ <option value="contains">Contains</option>+ <option value="exact">Exact match</option>+ </select>+ </div>+ <div className="space-y-2">+ <Label htmlFor="matchValue">Value</Label>+ <Input+ id="matchValue"+ value={matchValue}+ onChange={(event) => setMatchValue(event.target.value)}+ placeholder={matchField === "email" ? "[email protected]" : "Invoice"}+ />+ </div>+ </div>+ <div className="space-y-2">+ <Label htmlFor="destination">Destination</Label>+ <select+ id="destination"+ className="h-10 w-full rounded-md border border-neutral-200 px-3 text-sm"+ value={destination}+ onChange={(event) => setDestination(event.target.value)}+ >+ <option value="">Select destination</option>+ <option value="spam">Spam</option>+ <option value="trash">Trash</option>+ {(folders.data?.folders ?? []).map((folder) => (+ <option key={folder.id} value={`folder:${folder.id}`}>+ {folder.name}+ </option>+ ))}+ </select>+ </div>+ {create.isError && <p className="text-sm text-red-600">{create.error.message}</p>}+ <Button+ onClick={() => create.mutate()}+ disabled={!mailboxId || !destination || !matchValue.trim() || create.isPending}+ >+ {create.isPending ? "Adding..." : "Add rule"}+ </Button>+ </CardContent>+ </Card>++ <Card>+ <CardHeader>+ <CardTitle className="text-base">Existing rules</CardTitle>+ </CardHeader>+ <CardContent>+ {(rules.data?.rules ?? []).length === 0 && (+ <p className="rounded-lg border border-dashed border-neutral-200 px-4 py-5 text-sm text-neutral-500">+ No rules yet+ </p>+ )}+ <div className="divide-y divide-neutral-100">+ {(rules.data?.rules ?? []).map((rule) => (+ <div key={rule.id} className="flex items-center gap-3 py-3">+ <div className="flex h-9 w-9 items-center justify-center rounded-lg bg-blue-50 text-blue-700">+ {rule.action === "spam" ? (+ <ShieldAlert className="h-4 w-4" />+ ) : rule.action === "trash" ? (+ <Trash2 className="h-4 w-4" />+ ) : (+ <Folder className="h-4 w-4" />+ )}+ </div>+ <div className="min-w-0 flex-1">+ <p className="truncate text-sm font-medium text-neutral-900">+ {getRuleFieldLabel(rule.matchField)} {getRuleOperatorLabel(rule.matchOperator)}{" "}+ {rule.matchValue || rule.pattern}+ </p>+ <p className="truncate text-xs text-neutral-500">{getRuleDestination(rule)}</p>+ </div>+ <Button+ type="button"+ variant="ghost"+ size="sm"+ disabled={remove.isPending}+ onClick={() => remove.mutate(rule.id)}+ aria-label="Delete rule"+ >+ <Trash2 className="h-4 w-4" />+ </Button>+ </div>+ ))}+ </div>+ </CardContent>+ </Card>+ </section>+ );+}diff --git a/src/components/settings/settings-nav-types.d.ts b/src/components/settings/settings-nav-types.d.tsnew file mode 100644index 0000000..f0fa602--- /dev/null+++ b/src/components/settings/settings-nav-types.d.ts@@ -0,0 +1,4 @@+export type SettingsNavItem = {+ href: string;+ label: string;+};diff --git a/src/components/settings/settings-nav-utils.ts b/src/components/settings/settings-nav-utils.tsnew file mode 100644index 0000000..7c23d04--- /dev/null+++ b/src/components/settings/settings-nav-utils.ts@@ -0,0 +1,25 @@+import type { SettingsNavItem } from "./settings-nav-types";++export const settingsNavItems: SettingsNavItem[] = [+ {+ href: "/settings",+ label: "Account",+ },+ {+ href: "/settings/rules",+ label: "Rules",+ },+ {+ href: "/settings/import",+ label: "Import",+ },+ {+ href: "/settings/export",+ label: "Export",+ },+];++export function isActiveSettingsPath(pathname: string, href: string): boolean {+ if (href === "/settings") return pathname === href;+ return pathname === href || pathname.startsWith(`${href}/`);+}diff --git a/src/components/settings/settings-nav.tsx b/src/components/settings/settings-nav.tsxnew file mode 100644index 0000000..3716772--- /dev/null+++ b/src/components/settings/settings-nav.tsx@@ -0,0 +1,37 @@+"use client";++import Link from "next/link";+import { usePathname } from "next/navigation";+import { cn } from "@/lib/utils";+import { isActiveSettingsPath, settingsNavItems } from "./settings-nav-utils";++export function SettingsNav() {+ const pathname = usePathname();++ return (+ <aside className="px-4 py-5 w-60">+ <div className="sticky top-6 space-y-2 bg-neutral-100/60 p-4 rounded-2xl">+ <h2 className="px-2 text-xs uppercase font-semibold text-neutral-400">Settings</h2>+ <nav className="">+ {settingsNavItems.map((item) => {+ const active = isActiveSettingsPath(pathname, item.href);+ return (+ <Link+ key={item.href}+ href={item.href}+ className={cn(+ "block rounded-lg px-2 py-1.5 text-sm font-medium transition-colors",+ active+ ? "text-blue-700"+ : "text-neutral-500 hover:bg-neutral-50 hover:text-neutral-900",+ )}+ >+ {item.label}+ </Link>+ );+ })}+ </nav>+ </div>+ </aside>+ );+}diff --git a/src/components/sidebar-footer.tsx b/src/components/sidebar-footer.tsxnew file mode 100644index 0000000..efc781f--- /dev/null+++ b/src/components/sidebar-footer.tsx@@ -0,0 +1,12 @@+import packageJson from "../../package.json";++export function SidebarFooter() {+ return (+ <p className="px-3 pt-3 text-xs text-neutral-400">+ Powered by{" "}+ <a href={`https://mailflare.co/?ref=app&v=${packageJson.version}`} target="_blank">+ Mailflare v{packageJson.version}+ </a>+ </p>+ );+}diff --git a/src/components/ui/badge.tsx b/src/components/ui/badge.tsxindex e2a51cf..a03239f 100644--- a/src/components/ui/badge.tsx+++ b/src/components/ui/badge.tsx@@ -2,24 +2,31 @@ import { cva, type VariantProps } from "class-variance-authority";import { cn } from "@/lib/utils";const badgeVariants = cva(- "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors",- {- variants: {- variant: {- success: "border-transparent bg-green-600/10 text-green-600",- default: "border-transparent bg-neutral-900 text-neutral-50 dark:bg-neutral-50 dark:text-neutral-900",- secondary: "border-transparent bg-neutral-100 text-neutral-900 dark:bg-neutral-800 dark:text-neutral-50",- outline: "border-neutral-200",- },- },- defaultVariants: { variant: "default" },- },+ "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors",+ {+ variants: {+ variant: {+ success: "border-transparent bg-green-600/10 text-green-600",+ default:+ "border-transparent bg-neutral-900 text-neutral-50 dark:bg-neutral-50 dark:text-neutral-900",+ secondary:+ "border-transparent bg-neutral-100 text-neutral-900 dark:bg-neutral-800 dark:text-neutral-50",+ outline: "bg-neutral-100 border-transparent",+ },+ },+ defaultVariants: { variant: "default" },+ },);export function Badge({- className,- variant,- ...props+ className,+ variant,+ ...props}: React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof badgeVariants>) {- return <div className={cn(badgeVariants({ variant }), className)} {...props} />;+ return (+ <div+ className={cn(badgeVariants({ variant }), "text-[9px] uppercase", className)}+ {...props}+ />+ );}diff --git a/src/components/ui/skeleton-types.d.ts b/src/components/ui/skeleton-types.d.tsnew file mode 100644index 0000000..aab4a0a--- /dev/null+++ b/src/components/ui/skeleton-types.d.ts@@ -0,0 +1,8 @@+import type { HTMLAttributes } from "react";++export type SkeletonProps = HTMLAttributes<HTMLDivElement>;++export type SkeletonRowsProps = {+ count?: number;+ compact?: boolean;+};diff --git a/src/components/ui/skeleton.tsx b/src/components/ui/skeleton.tsxnew file mode 100644index 0000000..a2e129b--- /dev/null+++ b/src/components/ui/skeleton.tsx@@ -0,0 +1,39 @@+import { cn } from "@/lib/utils";+import type { SkeletonProps, SkeletonRowsProps } from "./skeleton-types";++export function Skeleton({ className, ...props }: SkeletonProps) {+ return (+ <div+ aria-hidden="true"+ className={cn("animate-pulse rounded-md bg-neutral-200/80", className)}+ {...props}+ />+ );+}++export function SkeletonRows({+ count = 5,+ compact = false,+}: SkeletonRowsProps) {+ return (+ <div className="divide-y divide-neutral-100">+ {Array.from({ length: count }, (_, index) => (+ <div+ key={index}+ className={cn(+ "flex items-center gap-3",+ compact ? "px-4 py-3" : "px-6 py-4",+ )}+ >+ <Skeleton className="h-4 w-4 shrink-0" />+ <Skeleton className={cn("shrink-0", compact ? "h-9 w-9 rounded-full" : "h-5 w-36")} />+ <div className="min-w-0 flex-1 space-y-2">+ <Skeleton className="h-3.5 w-2/3" />+ {compact && <Skeleton className="h-3 w-5/6" />}+ </div>+ <Skeleton className="h-3 w-12 shrink-0" />+ </div>+ ))}+ </div>+ );+}diff --git a/src/db/schema/index.ts b/src/db/schema/index.tsindex f8c6d4e..2b06243 100644--- a/src/db/schema/index.ts+++ b/src/db/schema/index.ts@@ -1,4 +1,5 @@import { sqliteTable, text, integer, index, uniqueIndex } from "drizzle-orm/sqlite-core";+import type { AnySQLiteColumn } from "drizzle-orm/sqlite-core";export const users = sqliteTable("users", {id: text("id").primaryKey(),@@ -6,6 +7,9 @@ export const users = sqliteTable("users", {resetEmail: text("reset_email"),passwordHash: text("password_hash").notNull(),name: text("name").notNull(),+ role: text("role", { enum: ["admin", "user"] }).notNull().default("user"),+ disabled: integer("disabled", { mode: "boolean" }).notNull().default(false),+ createdByUserId: text("created_by_user_id").references((): AnySQLiteColumn => users.id, { onDelete: "set null" }),createdAt: integer("created_at", { mode: "timestamp" }).notNull().$defaultFn(() => new Date()),@@ -49,6 +53,8 @@ export const mailboxes = sqliteTable(.references(() => domains.id, { onDelete: "cascade" }),localPart: text("local_part").notNull(),displayName: text("display_name"),+ type: text("type", { enum: ["personal", "shared"] }).notNull().default("personal"),+ disabled: integer("disabled", { mode: "boolean" }).notNull().default(false),createdAt: integer("created_at", { mode: "timestamp" }).notNull().$defaultFn(() => new Date()),@@ -56,6 +62,31 @@ export const mailboxes = sqliteTable((t) => [uniqueIndex("mailboxes_address_idx").on(t.domainId, t.localPart)],);+export const mailboxAccess = sqliteTable(+ "mailbox_access",+ {+ id: text("id").primaryKey(),+ mailboxId: text("mailbox_id")+ .notNull()+ .references(() => mailboxes.id, { onDelete: "cascade" }),+ userId: text("user_id")+ .notNull()+ .references(() => users.id, { onDelete: "cascade" }),+ permission: text("permission", { enum: ["read_only", "send_as", "send_on_behalf", "full_access"] })+ .notNull()+ .default("read_only"),+ createdByUserId: text("created_by_user_id").references(() => users.id, { onDelete: "set null" }),+ createdAt: integer("created_at", { mode: "timestamp" })+ .notNull()+ .$defaultFn(() => new Date()),+ },+ (t) => [+ uniqueIndex("mailbox_access_mailbox_user_idx").on(t.mailboxId, t.userId),+ index("mailbox_access_user_idx").on(t.userId),+ index("mailbox_access_mailbox_idx").on(t.mailboxId),+ ],+);+export const contacts = sqliteTable("contacts",{@@ -79,6 +110,28 @@ export const contacts = sqliteTable(],);+export const folders = sqliteTable(+ "folders",+ {+ id: text("id").primaryKey(),+ userId: text("user_id")+ .notNull()+ .references(() => users.id, { onDelete: "cascade" }),+ mailboxId: text("mailbox_id")+ .notNull()+ .references(() => mailboxes.id, { onDelete: "cascade" }),+ name: text("name").notNull(),+ createdAt: integer("created_at", { mode: "timestamp" })+ .notNull()+ .$defaultFn(() => new Date()),+ },+ (t) => [+ uniqueIndex("folders_mailbox_name_idx").on(t.mailboxId, t.name),+ index("folders_user_idx").on(t.userId),+ index("folders_mailbox_idx").on(t.mailboxId),+ ],+);+export const apiKeys = sqliteTable("api_keys", {id: text("id").primaryKey(),userId: text("user_id")@@ -104,6 +157,7 @@ export const messages = sqliteTable(mailboxId: text("mailbox_id").references(() => mailboxes.id, { onDelete: "set null" }),direction: text("direction", { enum: ["inbound", "outbound"] }).notNull(),providerMessageId: text("provider_message_id"),+ folderId: text("folder_id").references(() => folders.id, { onDelete: "set null" }),fromAddr: text("from_addr").notNull(),toAddr: text("to_addr").notNull(),subject: text("subject"),@@ -118,6 +172,7 @@ export const messages = sqliteTable((t) => [index("messages_user_created_idx").on(t.userId, t.createdAt),index("messages_mailbox_idx").on(t.mailboxId),+ index("messages_folder_idx").on(t.folderId),],);@@ -132,6 +187,28 @@ export const messageBodies = sqliteTable("message_bodies", {rawR2Key: text("raw_r2_key"),});+export const messageAttachments = sqliteTable(+ "message_attachments",+ {+ id: text("id").primaryKey(),+ messageId: text("message_id")+ .notNull()+ .references(() => messages.id, { onDelete: "cascade" }),+ filename: text("filename").notNull(),+ contentType: text("content_type").notNull(),+ size: integer("size").notNull(),+ disposition: text("disposition", { enum: ["attachment", "inline"] })+ .notNull()+ .default("attachment"),+ contentId: text("content_id"),+ r2Key: text("r2_key").notNull().unique(),+ createdAt: integer("created_at", { mode: "timestamp" })+ .notNull()+ .$defaultFn(() => new Date()),+ },+ (t) => [index("message_attachments_message_idx").on(t.messageId)],+);+export const outboundJobs = sqliteTable("outbound_jobs", {id: text("id").primaryKey(),userId: text("user_id")@@ -158,8 +235,12 @@ export const routingRules = sqliteTable("routing_rules", {.notNull().references(() => domains.id, { onDelete: "cascade" }),pattern: text("pattern").notNull(),+ matchField: text("match_field", { enum: ["email", "content", "title"] }).notNull().default("email"),+ matchOperator: text("match_operator", { enum: ["contains", "exact"] }).notNull().default("contains"),+ matchValue: text("match_value").notNull().default(""),mailboxId: text("mailbox_id").references(() => mailboxes.id, { onDelete: "set null" }),- action: text("action", { enum: ["store", "forward", "reject"] }).notNull().default("store"),+ folderId: text("folder_id").references(() => folders.id, { onDelete: "set null" }),+ action: text("action", { enum: ["store", "forward", "reject", "spam", "trash"] }).notNull().default("store"),forwardTo: text("forward_to"),priority: integer("priority").notNull().default(0),createdAt: integer("created_at", { mode: "timestamp" })@@ -207,17 +288,83 @@ export const sessions = sqliteTable("sessions", {.$defaultFn(() => new Date()),});+export const auditLogs = sqliteTable(+ "audit_logs",+ {+ id: text("id").primaryKey(),+ actorUserId: text("actor_user_id").references(() => users.id, { onDelete: "set null" }),+ targetUserId: text("target_user_id").references(() => users.id, { onDelete: "set null" }),+ mailboxId: text("mailbox_id").references(() => mailboxes.id, { onDelete: "set null" }),+ messageId: text("message_id").references(() => messages.id, { onDelete: "set null" }),+ action: text("action").notNull(),+ metadata: text("metadata"),+ createdAt: integer("created_at", { mode: "timestamp" })+ .notNull()+ .$defaultFn(() => new Date()),+ },+ (t) => [+ index("audit_logs_actor_idx").on(t.actorUserId),+ index("audit_logs_mailbox_idx").on(t.mailboxId),+ index("audit_logs_created_idx").on(t.createdAt),+ ],+);++export const backupSettings = sqliteTable("backup_settings", {+ id: text("id").primaryKey(),+ enabled: integer("enabled", { mode: "boolean" }).notNull().default(false),+ scheduleType: text("schedule_type", { enum: ["daily", "weekly", "monthly"] })+ .notNull()+ .default("daily"),+ scheduleValue: integer("schedule_value"),+ retentionEnabled: integer("retention_enabled", { mode: "boolean" }).notNull().default(false),+ retentionDays: integer("retention_days").notNull().default(30),+ updatedAt: integer("updated_at", { mode: "timestamp" })+ .notNull()+ .$defaultFn(() => new Date()),+});++export const backups = sqliteTable(+ "backups",+ {+ id: text("id").primaryKey(),+ status: text("status", { enum: ["queued", "running", "completed", "failed"] })+ .notNull()+ .default("queued"),+ trigger: text("trigger", { enum: ["manual", "scheduled"] }).notNull(),+ r2Key: text("r2_key"),+ filename: text("filename"),+ size: integer("size"),+ error: text("error"),+ createdByUserId: text("created_by_user_id").references(() => users.id, { onDelete: "set null" }),+ createdAt: integer("created_at", { mode: "timestamp" })+ .notNull()+ .$defaultFn(() => new Date()),+ startedAt: integer("started_at", { mode: "timestamp" }),+ completedAt: integer("completed_at", { mode: "timestamp" }),+ },+ (t) => [+ index("backups_created_idx").on(t.createdAt),+ index("backups_status_idx").on(t.status),+ ],+);+export const schema = {users,domains,mailboxes,+ mailboxAccess,contacts,+ folders,apiKeys,messages,messageBodies,+ messageAttachments,outboundJobs,routingRules,webhooks,webhookDeliveries,sessions,+ auditLogs,+ backupSettings,+ backups,};diff --git a/src/hooks/message-realtime-types.d.ts b/src/hooks/message-realtime-types.d.tsnew file mode 100644index 0000000..6b72d6b--- /dev/null+++ b/src/hooks/message-realtime-types.d.ts@@ -0,0 +1,12 @@+export interface NewMessageEvent {+ from: string;+ mailboxId: string;+ messageId: string;+ subject: string | null;+ type: "new_message";+}++export interface MessageRealtimeState {+ dismissNotification: () => void;+ notification: NewMessageEvent | null;+}diff --git a/src/hooks/message-realtime-utils.ts b/src/hooks/message-realtime-utils.tsnew file mode 100644index 0000000..91b71a2--- /dev/null+++ b/src/hooks/message-realtime-utils.ts@@ -0,0 +1,59 @@+import type { NewMessageEvent } from "./message-realtime-types";++export const REALTIME_FALLBACK_INTERVAL_MS = 60_000;+export const REALTIME_HEARTBEAT_INTERVAL_MS = 25_000;+export const REALTIME_RECONNECT_MAX_MS = 30_000;++export function getRealtimeWebSocketUrl(): string {+ const protocol = window.location.protocol === "https:" ? "wss:" : "ws:";+ return `${protocol}//${window.location.host}/api/realtime`;+}++export function getReconnectDelay(attempt: number): number {+ return Math.min(1_000 * 2 ** attempt, REALTIME_RECONNECT_MAX_MS);+}++export function parseNewMessageEvent(value: string): NewMessageEvent | null {+ try {+ const payload = JSON.parse(value) as Partial<NewMessageEvent>;+ if (+ payload.type !== "new_message" ||+ typeof payload.messageId !== "string" ||+ typeof payload.mailboxId !== "string" ||+ typeof payload.from !== "string"+ ) {+ return null;+ }++ return {+ type: "new_message",+ messageId: payload.messageId,+ mailboxId: payload.mailboxId,+ from: payload.from,+ subject: typeof payload.subject === "string" ? payload.subject : null,+ };+ } catch {+ return null;+ }+}++export function showBrowserNewMessageNotification(event: NewMessageEvent): void {+ if (+ typeof Notification === "undefined" ||+ Notification.permission !== "granted" ||+ document.visibilityState === "visible"+ ) {+ return;+ }++ const notification = new Notification(event.subject || "New email", {+ body: `From ${event.from}`,+ icon: "/icon-96.png",+ tag: event.messageId,+ });+ notification.onclick = () => {+ window.focus();+ window.location.assign(`/inbox/${event.messageId}`);+ notification.close();+ };+}diff --git a/src/hooks/types.d.ts b/src/hooks/types.d.tsindex 97f4de4..9d05e30 100644--- a/src/hooks/types.d.ts+++ b/src/hooks/types.d.ts@@ -1,6 +1,6 @@-export type MessageStatus = "received" | "sent" | "draft" | "queued" | "failed" | "trash" | "spam";+export type MessageStatus = "received" | "sent" | "draft" | "queued" | "failed" | "archived" | "trash" | "spam";-export type MessageFolder = "inbox" | "sent" | "drafts" | "trash" | "spam";+export type MessageFolder = "inbox" | "sent" | "drafts" | "archived" | "trash" | "spam";export type MessageDirection = "inbound" | "outbound";@@ -8,6 +8,7 @@ export type Message = {id: string;userId: string;mailboxId: string | null;+ folderId: string | null;direction: MessageDirection;providerMessageId: string | null;fromAddr: string;@@ -53,5 +54,6 @@ export type MailboxCount = {export type MessageCounts = {folders: Record<MessageFolder, FolderCount>;+ customFolders: Record<string, FolderCount>;mailboxes: MailboxCount[];};diff --git a/src/hooks/use-message-counts.ts b/src/hooks/use-message-counts.tsindex 393047a..71a5411 100644--- a/src/hooks/use-message-counts.ts+++ b/src/hooks/use-message-counts.ts@@ -7,9 +7,11 @@ const emptyCounts: MessageCounts = {inbox: { total: 0, unread: 0 },sent: { total: 0, unread: 0 },drafts: { total: 0, unread: 0 },+ archived: { total: 0, unread: 0 },spam: { total: 0, unread: 0 },trash: { total: 0, unread: 0 },},+ customFolders: {},mailboxes: [],};diff --git a/src/hooks/use-message-polling.ts b/src/hooks/use-message-polling.tsnew file mode 100644index 0000000..43c3289--- /dev/null+++ b/src/hooks/use-message-polling.ts@@ -0,0 +1,116 @@+import { useCallback, useEffect, useState } from "react";+import {+ AUTH_SESSION_CHANGED_EVENT,+ getClientSessionToken,+} from "@/lib/auth/client";+import type {+ MessageRealtimeState,+ NewMessageEvent,+} from "./message-realtime-types";+import {+ getRealtimeWebSocketUrl,+ getReconnectDelay,+ parseNewMessageEvent,+ REALTIME_FALLBACK_INTERVAL_MS,+ REALTIME_HEARTBEAT_INTERVAL_MS,+ showBrowserNewMessageNotification,+} from "./message-realtime-utils";++export function useMessagePolling(): MessageRealtimeState {+ const [notification, setNotification] = useState<NewMessageEvent | null>(null);+ const dismissNotification = useCallback(() => setNotification(null), []);++ useEffect(() => {+ let socket: WebSocket | null = null;+ let reconnectTimer: number | null = null;+ let heartbeatTimer: number | null = null;+ let fallbackTimer: number | null = null;+ let reconnectAttempt = 0;+ let stopped = false;++ function dispatchMessagesChanged() {+ window.dispatchEvent(new Event("mailflare:messages-changed"));+ }++ function clearConnectionTimers() {+ if (reconnectTimer) window.clearTimeout(reconnectTimer);+ if (heartbeatTimer) window.clearInterval(heartbeatTimer);+ if (fallbackTimer) window.clearInterval(fallbackTimer);+ reconnectTimer = null;+ heartbeatTimer = null;+ fallbackTimer = null;+ }++ function startFallbackRefresh() {+ if (fallbackTimer) return;+ fallbackTimer = window.setInterval(+ dispatchMessagesChanged,+ REALTIME_FALLBACK_INTERVAL_MS,+ );+ }++ function scheduleReconnect() {+ if (stopped || !getClientSessionToken()) return;+ startFallbackRefresh();+ const delay = getReconnectDelay(reconnectAttempt);+ reconnectAttempt += 1;+ reconnectTimer = window.setTimeout(connect, delay);+ }++ function connect() {+ clearConnectionTimers();+ if (stopped || !getClientSessionToken()) return;++ socket = new WebSocket(getRealtimeWebSocketUrl());+ socket.onopen = () => {+ reconnectAttempt = 0;+ heartbeatTimer = window.setInterval(() => {+ if (socket?.readyState === WebSocket.OPEN) socket.send("ping");+ }, REALTIME_HEARTBEAT_INTERVAL_MS);+ };+ socket.onmessage = (message) => {+ if (message.data === "pong" || typeof message.data !== "string") return;+ const event = parseNewMessageEvent(message.data);+ if (!event) return;+ dispatchMessagesChanged();+ setNotification(event);+ showBrowserNewMessageNotification(event);+ };+ socket.onerror = () => socket?.close();+ socket.onclose = scheduleReconnect;+ }++ function restartForSessionChange() {+ if (socket) {+ socket.onclose = null;+ socket.close(1000, "Session changed");+ socket = null;+ }+ clearConnectionTimers();+ reconnectAttempt = 0;+ setNotification(null);+ if (getClientSessionToken()) connect();+ }++ window.addEventListener(AUTH_SESSION_CHANGED_EVENT, restartForSessionChange);+ connect();++ return () => {+ stopped = true;+ window.removeEventListener(AUTH_SESSION_CHANGED_EVENT, restartForSessionChange);+ clearConnectionTimers();+ if (socket) {+ socket.onclose = null;+ socket.close(1000, "Client closed");+ }+ };+ }, []);++ useEffect(() => {+ if (!notification) return;+ const timer = window.setTimeout(() => setNotification(null), 8_000);+ return () => window.clearTimeout(timer);+ }, [notification]);++ return { notification, dismissNotification };+}diff --git a/src/hooks/use-messages.ts b/src/hooks/use-messages.tsindex 70caeb6..da0c182 100644--- a/src/hooks/use-messages.ts+++ b/src/hooks/use-messages.ts@@ -1,12 +1,18 @@import { useEffect, useState } from "react";import type { Message, MessageFilterOptions, MessageFolder } from "./types";-import { clearMessageCountsCache, clearMessageListCache, fetchMessageList, getMessageQueryParams } from "./utils";+import {+ clearMessageCountsCache,+ clearMessageListCache,+ fetchMessageList,+ getMessageQueryParams,+} from "./utils";export function useMessages(folder: MessageFolder,mailboxId?: string | null,filters?: MessageFilterOptions,enabled = true,+ folderId?: string | null,) {const [messages, setMessages] = useState<Message[]>([]);const [isLoading, setIsLoading] = useState(true);@@ -22,7 +28,7 @@ export function useMessages(async function loadMessages(force = false) {setIsLoading(true);try {- const params = getMessageQueryParams(folder, mailboxId, filters);+ const params = getMessageQueryParams(folder, mailboxId, filters, folderId);const data = await fetchMessageList(params, force);if (!cancelled) {setMessages(data.messages ?? []);@@ -47,7 +53,7 @@ export function useMessages(cancelled = true;window.removeEventListener("mailflare:messages-changed", onMessagesChanged);};- }, [enabled, filters?.limit, filters?.offset, filters?.query, filters?.read, filters?.title, folder, mailboxId]);+ }, [enabled, filters?.limit, filters?.offset, filters?.query, filters?.read, filters?.title, folder, folderId, mailboxId]);return { messages, unreadCount, isLoading, total, limit, offset };}diff --git a/src/hooks/utils.ts b/src/hooks/utils.tsindex ffc6975..347bc58 100644--- a/src/hooks/utils.ts+++ b/src/hooks/utils.ts@@ -2,6 +2,8 @@ import { authFetch } from "@/lib/auth/client";import type { MessageFilterOptions, MessageFolder } from "./types";import type { MessageCounts, MessageListResponse } from "./types";+export const MESSAGE_POLL_INTERVAL_MS = 15_000;+export function parseMessageSearchQuery(query: string): MessageFilterOptions {let remaining = query;const filters: MessageFilterOptions = {};@@ -30,6 +32,7 @@ export function getMessageQueryParams(folder: MessageFolder,mailboxId?: string | null,filters?: MessageFilterOptions,+ folderId?: string | null,) {const params = new URLSearchParams();@@ -48,10 +51,11 @@ export function getMessageQueryParams(params.set("status", "draft");}- if (folder === "trash" || folder === "spam") {+ if (folder === "archived" || folder === "trash" || folder === "spam") {params.set("status", folder);}+ if (folderId) params.set("folderId", folderId);if (mailboxId) params.set("mailboxId", mailboxId);const parsedFilters = filters?.query ? { ...filters, ...parseMessageSearchQuery(filters.query) } : filters;if (parsedFilters?.query?.trim()) params.set("q", parsedFilters.query.trim());@@ -67,20 +71,35 @@ const messageCountsCache = new Map<string, MessageCounts>();const messageCountsRequests = new Map<string, Promise<MessageCounts | undefined>>();const messageListCache = new Map<string, MessageListResponse>();const messageListRequests = new Map<string, Promise<MessageListResponse>>();+let messageCacheGeneration = 0;+let messageCountsGeneration = 0;export function clearMessageCountsCache() {+ messageCountsGeneration += 1;messageCountsCache.clear();+ messageCountsRequests.clear();}export function clearMessageListCache() {messageListCache.clear();}+export function clearMessageClientState() {+ messageCacheGeneration += 1;+ messageCountsGeneration += 1;+ messageCountsCache.clear();+ messageCountsRequests.clear();+ messageListCache.clear();+ messageListRequests.clear();+}+export async function fetchMessageCounts(mailboxId?: string | null, force = false): Promise<MessageCounts | undefined> {const key = mailboxId ?? "all";if (!force && messageCountsCache.has(key)) return messageCountsCache.get(key);- if (messageCountsRequests.has(key)) return messageCountsRequests.get(key);+ if (!force && messageCountsRequests.has(key)) return messageCountsRequests.get(key);+ const requestGeneration = messageCacheGeneration;+ const countsGeneration = messageCountsGeneration;const request = (async () => {const params = new URLSearchParams();if (mailboxId) params.set("mailboxId", mailboxId);@@ -88,10 +107,18 @@ export async function fetchMessageCounts(mailboxId?: string | null, force = falsconst res = await authFetch(`/api/messages/counts${query ? `?${query}` : ""}`);const data = (await res.json()) as { counts?: MessageCounts };const counts = data.counts;- if (counts) messageCountsCache.set(key, counts);+ if (+ counts &&+ requestGeneration === messageCacheGeneration &&+ countsGeneration === messageCountsGeneration+ ) {+ messageCountsCache.set(key, counts);+ }return counts;})().finally(() => {- messageCountsRequests.delete(key);+ if (messageCountsRequests.get(key) === request) {+ messageCountsRequests.delete(key);+ }});messageCountsRequests.set(key, request);@@ -103,15 +130,20 @@ export async function fetchMessageList(params: URLSearchParams, force = false):if (!force && messageListCache.has(key)) return messageListCache.get(key) ?? {};if (messageListRequests.has(key)) return messageListRequests.get(key) ?? {};+ const requestGeneration = messageCacheGeneration;const request = authFetch(`/api/messages?${key}`).then((res) => res.json()).then((data) => {const response = data as MessageListResponse;- messageListCache.set(key, response);+ if (requestGeneration === messageCacheGeneration) {+ messageListCache.set(key, response);+ }return response;}).finally(() => {- messageListRequests.delete(key);+ if (requestGeneration === messageCacheGeneration) {+ messageListRequests.delete(key);+ }});messageListRequests.set(key, request);diff --git a/src/lib/api/auth.ts b/src/lib/api/auth.tsindex 04f8d18..1a0ef9a 100644--- a/src/lib/api/auth.ts+++ b/src/lib/api/auth.ts@@ -24,7 +24,7 @@ export async function authenticateApiKey(for (const candidate of candidates) {if (!verifyApiKey(key, candidate.keyHash)) continue;const [user] = await db.select().from(users).where(eq(users.id, candidate.userId)).limit(1);- if (!user) continue;+ if (!user || user.disabled) continue;await db.update(apiKeys)diff --git a/src/lib/auth/activity-types.d.ts b/src/lib/auth/activity-types.d.tsnew file mode 100644index 0000000..8a3b7cc--- /dev/null+++ b/src/lib/auth/activity-types.d.ts@@ -0,0 +1,10 @@+export type AuthActivityAction = "auth.login" | "auth.logout";++export type AuthActivityMetadata = {+ ipAddress: string;+ city: string | null;+ country: string | null;+ device: string;+ platform: string;+ userAgent: string;+};diff --git a/src/lib/auth/activity.ts b/src/lib/auth/activity.tsnew file mode 100644index 0000000..4abaff5--- /dev/null+++ b/src/lib/auth/activity.ts@@ -0,0 +1,61 @@+import { createAuditLog } from "@/lib/mailboxes/audit";+import type { AuthActivityAction, AuthActivityMetadata } from "./activity-types";++export async function recordAuthActivity(+ env: CloudflareEnv,+ input: {+ action: AuthActivityAction;+ userId: string;+ request: Request;+ },+): Promise<void> {+ try {+ await createAuditLog(env, {+ actorUserId: input.userId,+ targetUserId: input.userId,+ action: input.action,+ metadata: getAuthActivityMetadata(input.request),+ });+ } catch {+ // Authentication should not fail because activity logging is unavailable.+ }+}++export function getAuthActivityMetadata(request: Request): AuthActivityMetadata {+ const userAgent = request.headers.get("user-agent") ?? "";+ return {+ ipAddress: getRequestIpAddress(request),+ city: getHeaderValue(request, "cf-ipcity"),+ country: getHeaderValue(request, "cf-ipcountry"),+ device: getDevice(userAgent),+ platform: getPlatform(userAgent),+ userAgent,+ };+}++function getRequestIpAddress(request: Request): string {+ const cfIp = getHeaderValue(request, "cf-connecting-ip");+ if (cfIp) return cfIp;+ const forwardedFor = getHeaderValue(request, "x-forwarded-for");+ return forwardedFor?.split(",")[0]?.trim() || "Unknown";+}++function getHeaderValue(request: Request, name: string): string | null {+ const value = request.headers.get(name)?.trim();+ return value || null;+}++function getDevice(userAgent: string): string {+ if (/ipad|tablet/i.test(userAgent)) return "Tablet";+ if (/mobi|iphone|android/i.test(userAgent)) return "Mobile";+ return "Desktop";+}++function getPlatform(userAgent: string): string {+ if (/windows/i.test(userAgent)) return "Windows";+ if (/iphone|ipad|ios/i.test(userAgent)) return "iOS";+ if (/android/i.test(userAgent)) return "Android";+ if (/mac os|macintosh/i.test(userAgent)) return "macOS";+ if (/linux/i.test(userAgent)) return "Linux";+ return "Unknown";+}diff --git a/src/lib/auth/admin.ts b/src/lib/auth/admin.tsnew file mode 100644index 0000000..bb1c1bf--- /dev/null+++ b/src/lib/auth/admin.ts@@ -0,0 +1,11 @@+import type { SessionUser } from "./types";++export function isAdmin(user: Pick<SessionUser, "role">): boolean {+ return user.role === "admin";+}++export function assertAdmin(user: Pick<SessionUser, "role">): void {+ if (!isAdmin(user)) {+ throw new Error("Forbidden");+ }+}diff --git a/src/lib/auth/client-types.d.ts b/src/lib/auth/client-types.d.tsindex b550ff8..8f35fb7 100644--- a/src/lib/auth/client-types.d.ts+++ b/src/lib/auth/client-types.d.ts@@ -8,3 +8,7 @@ export type AuthSessionResponse = {redirect?: string;error?: string;};++export type AuthSessionChangedDetail = {+ authenticated: boolean;+};diff --git a/src/lib/auth/client.ts b/src/lib/auth/client.tsindex 4102e1b..4a27fcc 100644--- a/src/lib/auth/client.ts+++ b/src/lib/auth/client.ts@@ -1,8 +1,22 @@"use client";-import type { AuthFetchOptions, AuthSessionResponse } from "./client-types";+import type {+ AuthFetchOptions,+ AuthSessionChangedDetail,+ AuthSessionResponse,+} from "./client-types";const SESSION_STORAGE_KEY = "mailflare-session-token";+export const AUTH_SESSION_CHANGED_EVENT = "mailflare:auth-session-changed";++function dispatchAuthSessionChanged(authenticated: boolean): void {+ if (typeof window === "undefined") return;+ window.dispatchEvent(+ new CustomEvent<AuthSessionChangedDetail>(AUTH_SESSION_CHANGED_EVENT, {+ detail: { authenticated },+ }),+ );+}export function getClientSessionToken(): string | null {if (typeof window === "undefined") return null;@@ -10,11 +24,14 @@ export function getClientSessionToken(): string | null {}export function setClientSessionToken(token: string): void {+ const previousToken = localStorage.getItem(SESSION_STORAGE_KEY);localStorage.setItem(SESSION_STORAGE_KEY, token);+ if (previousToken !== token) dispatchAuthSessionChanged(true);}export function clearClientSessionToken(): void {localStorage.removeItem(SESSION_STORAGE_KEY);+ dispatchAuthSessionChanged(false);}export function getAuthHeaders(headers?: HeadersInit): Headers {diff --git a/src/lib/auth/cookies.ts b/src/lib/auth/cookies.tsindex 8193d71..7762d3b 100644--- a/src/lib/auth/cookies.ts+++ b/src/lib/auth/cookies.ts@@ -10,11 +10,15 @@ function getBearerToken(request?: Request): string | undefined {export async function getCurrentUser(env: CloudflareEnv, request?: Request) {const bearerToken = getBearerToken(request);- if (bearerToken) return getUserFromSession(env, bearerToken);+ if (bearerToken) {+ const user = await getUserFromSession(env, bearerToken);+ return user?.disabled ? null : user;+ }const jar = await cookies();const token = jar.get(SESSION_COOKIE)?.value;- return getUserFromSession(env, token);+ const user = await getUserFromSession(env, token);+ return user?.disabled ? null : user;}export async function requireUser(env: CloudflareEnv, request?: Request) {diff --git a/src/lib/auth/logout.ts b/src/lib/auth/logout.tsnew file mode 100644index 0000000..12dcd0b--- /dev/null+++ b/src/lib/auth/logout.ts@@ -0,0 +1,14 @@+import { authFetch, clearClientSessionToken } from "@/lib/auth/client";++export async function logoutClientSession(): Promise<void> {+ try {+ await authFetch("/api/auth/logout", {+ method: "POST",+ redirectOnUnauthorized: false,+ });+ } catch {+ // Local logout must complete even when the server request is unavailable.+ } finally {+ clearClientSessionToken();+ }+}diff --git a/src/lib/auth/rate-limit.ts b/src/lib/auth/rate-limit.tsnew file mode 100644index 0000000..dfd29ae--- /dev/null+++ b/src/lib/auth/rate-limit.ts@@ -0,0 +1,11 @@+export async function allowLoginAttempt(env: CloudflareEnv, request: Request): Promise<boolean> {+ if (!env.LOGIN_RATE_LIMIT) return true;+ const ip = request.headers.get("cf-connecting-ip")?.trim() || "unknown";+ try {+ const outcome = await env.LOGIN_RATE_LIMIT.limit({ key: ip });+ return outcome.success;+ } catch (error) {+ console.warn("Login rate limiter unavailable", error);+ return true;+ }+}diff --git a/src/lib/auth/session.ts b/src/lib/auth/session.tsindex d00a6f8..a795a95 100644--- a/src/lib/auth/session.ts+++ b/src/lib/auth/session.ts@@ -1,5 +1,4 @@-import { eq, gt } from "drizzle-orm";-import bcrypt from "bcryptjs";+import { and, eq, gt } from "drizzle-orm";import { newId } from "@/lib/ids";import { getDb } from "@/db";import { sessions, users } from "@/db/schema";@@ -11,18 +10,17 @@ export function generateSessionToken(): string {return newId("sess");}-export function hashSessionToken(token: string): string {- return bcrypt.hashSync(token, 10);-}--export function verifySessionToken(token: string, hash: string): boolean {- return bcrypt.compareSync(token, hash);+export async function hashSessionToken(token: string): Promise<string> {+ const digest = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(token));+ return Array.from(new Uint8Array(digest))+ .map((byte) => byte.toString(16).padStart(2, "0"))+ .join("");}export async function createSession(env: CloudflareEnv, userId: string): Promise<string> {const db = getDb(env);const token = generateSessionToken();- const tokenHash = hashSessionToken(token);+ const tokenHash = await hashSessionToken(token);const expiresAt = new Date();expiresAt.setDate(expiresAt.getDate() + SESSION_DAYS);@@ -42,22 +40,19 @@ export async function getUserFromSession(): Promise<typeof users.$inferSelect | null> {if (!token) return null;const db = getDb(env);- const rows = await db.select().from(sessions).where(gt(sessions.expiresAt, new Date()));- for (const row of rows) {- if (verifySessionToken(token, row.tokenHash)) {- const [user] = await db.select().from(users).where(eq(users.id, row.userId)).limit(1);- return user ?? null;- }- }- return null;+ const tokenHash = await hashSessionToken(token);+ const [session] = await db+ .select()+ .from(sessions)+ .where(and(eq(sessions.tokenHash, tokenHash), gt(sessions.expiresAt, new Date())))+ .limit(1);+ if (!session) return null;+ const [user] = await db.select().from(users).where(eq(users.id, session.userId)).limit(1);+ return user ?? null;}export async function deleteSession(env: CloudflareEnv, token: string): Promise<void> {const db = getDb(env);- const rows = await db.select().from(sessions).where(gt(sessions.expiresAt, new Date()));- for (const row of rows) {- if (verifySessionToken(token, row.tokenHash)) {- await db.delete(sessions).where(eq(sessions.id, row.id));- }- }+ const tokenHash = await hashSessionToken(token);+ await db.delete(sessions).where(eq(sessions.tokenHash, tokenHash));}diff --git a/src/lib/auth/setup.ts b/src/lib/auth/setup.tsnew file mode 100644index 0000000..851c90d--- /dev/null+++ b/src/lib/auth/setup.ts@@ -0,0 +1,14 @@+import { eq } from "drizzle-orm";+import { getDb } from "@/db";+import { users } from "@/db/schema";++export async function hasAdminAccount(env: CloudflareEnv): Promise<boolean> {+ const db = getDb(env);+ const [admin] = await db+ .select({ id: users.id })+ .from(users)+ .where(eq(users.role, "admin"))+ .limit(1);++ return !!admin;+}diff --git a/src/lib/auth/turnstile.ts b/src/lib/auth/turnstile.tsnew file mode 100644index 0000000..220c3d5--- /dev/null+++ b/src/lib/auth/turnstile.ts@@ -0,0 +1,31 @@+import { newId } from "@/lib/ids";++type TurnstileResponse = {+ success: boolean;+ "error-codes"?: string[];+};++export async function verifyTurnstileToken(+ env: Pick<CloudflareEnv, "TURNSTILE_SECRET_KEY">,+ request: Request,+ token: unknown,+): Promise<boolean> {+ const secret = env.TURNSTILE_SECRET_KEY?.trim();+ if (!secret) return true;+ if (typeof token !== "string" || !token.trim() || token.length > 2048) return false;++ const response = await fetch("https://challenges.cloudflare.com/turnstile/v0/siteverify", {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({+ secret,+ response: token,+ remoteip: request.headers.get("cf-connecting-ip") ?? undefined,+ idempotency_key: newId("ts"),+ }),+ });++ if (!response.ok) return false;+ const result = (await response.json()) as TurnstileResponse;+ return result.success;+}diff --git a/src/lib/auth/types.d.ts b/src/lib/auth/types.d.tsnew file mode 100644index 0000000..0db405a--- /dev/null+++ b/src/lib/auth/types.d.ts@@ -0,0 +1,13 @@+export type UserRole = "admin" | "user";++export type SessionUser = {+ id: string;+ email: string;+ resetEmail: string | null;+ passwordHash: string;+ name: string;+ role: UserRole;+ disabled: boolean;+ createdByUserId: string | null;+ createdAt: Date;+};diff --git a/src/lib/backups/service.ts b/src/lib/backups/service.tsnew file mode 100644index 0000000..a7f86ed--- /dev/null+++ b/src/lib/backups/service.ts@@ -0,0 +1,83 @@+import { and, desc, eq, gte, lt } from "drizzle-orm";+import { getDb } from "@/db";+import { backups, backupSettings } from "@/db/schema";+import { newId } from "@/lib/ids";+import type { BackupScheduleType } from "./types";+import { BACKUP_SETTINGS_ID, getUtcDayBounds, isBackupDue } from "./utils";++export async function getBackupSettings(env: CloudflareEnv) {+ const db = getDb(env);+ const [settings] = await db+ .select()+ .from(backupSettings)+ .where(eq(backupSettings.id, BACKUP_SETTINGS_ID))+ .limit(1);+ return settings;+}++export async function listBackups(env: CloudflareEnv) {+ return getDb(env).select().from(backups).orderBy(desc(backups.createdAt)).limit(100);+}++export async function createBackupRecord(+ env: CloudflareEnv,+ trigger: "manual" | "scheduled",+ createdByUserId?: string,+) {+ const id = newId("bak");+ await getDb(env).insert(backups).values({+ id,+ trigger,+ createdByUserId: createdByUserId ?? null,+ });+ return id;+}++export async function createScheduledBackupIfDue(env: CloudflareEnv, now: Date): Promise<string | null> {+ const settings = await getBackupSettings(env);+ if (!settings?.enabled) return null;+ if (!isBackupDue(settings.scheduleType as BackupScheduleType, settings.scheduleValue, now)) return null;++ const { start, end } = getUtcDayBounds(now);+ const existing = await getDb(env)+ .select({ id: backups.id })+ .from(backups)+ .where(+ and(+ eq(backups.trigger, "scheduled"),+ gte(backups.createdAt, new Date(start)),+ lt(backups.createdAt, new Date(end)),+ ),+ )+ .limit(1);+ if (existing.length) return null;+ return createBackupRecord(env, "scheduled");+}++export async function updateBackupSettings(+ env: CloudflareEnv,+ input: {+ enabled: boolean;+ scheduleType: BackupScheduleType;+ scheduleValue: number | null;+ retentionEnabled: boolean;+ retentionDays: number;+ },+) {+ await getDb(env)+ .update(backupSettings)+ .set({ ...input, updatedAt: new Date() })+ .where(eq(backupSettings.id, BACKUP_SETTINGS_ID));+}++export async function deleteBackup(env: CloudflareEnv, id: string): Promise<boolean> {+ const db = getDb(env);+ const [backup] = await db.select().from(backups).where(eq(backups.id, id)).limit(1);+ if (!backup) return false;+ if (backup.status === "queued" || backup.status === "running") {+ throw new Error("A backup in progress cannot be deleted");+ }+ if (backup.r2Key) await env.BUCKET.delete(backup.r2Key);+ await db.delete(backups).where(eq(backups.id, id));+ return true;+}diff --git a/src/lib/backups/types.d.ts b/src/lib/backups/types.d.tsnew file mode 100644index 0000000..9a7847a--- /dev/null+++ b/src/lib/backups/types.d.ts@@ -0,0 +1,18 @@+export type BackupScheduleType = "daily" | "weekly" | "monthly";++export type BackupWorkflowParams = {+ backupId?: string;+ force?: boolean;+};++export type D1ExportResult = {+ at_bookmark?: string;+ signed_url?: string;+ filename?: string;+};++export type D1ExportResponse = {+ success: boolean;+ errors?: Array<{ message?: string }>;+ result?: D1ExportResult;+};diff --git a/src/lib/backups/utils.ts b/src/lib/backups/utils.tsnew file mode 100644index 0000000..3a85277--- /dev/null+++ b/src/lib/backups/utils.ts@@ -0,0 +1,28 @@+import type { BackupScheduleType, D1ExportResponse } from "./types";++export const BACKUP_SETTINGS_ID = "default";+export const BACKUP_PREFIX = "backups/database";++export function isBackupDue(+ scheduleType: BackupScheduleType,+ scheduleValue: number | null,+ now: Date,+): boolean {+ if (scheduleType === "daily") return true;+ if (scheduleType === "weekly") return now.getUTCDay() === scheduleValue;+ return now.getUTCDate() === scheduleValue;+}++export function getUtcDayBounds(now: Date): { start: number; end: number } {+ const start = Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate());+ return { start, end: start + 86_400_000 };+}++export function getExportError(response: D1ExportResponse): string {+ return response.errors?.map((error) => error.message).filter(Boolean).join(", ")+ || "Cloudflare D1 export failed";+}++export function createBackupFilename(now: Date): string {+ return `mailflare-${now.toISOString().replace(/[:.]/g, "-")}.sql`;+}diff --git a/src/lib/backups/workflow.ts b/src/lib/backups/workflow.tsnew file mode 100644index 0000000..a97cc9a--- /dev/null+++ b/src/lib/backups/workflow.ts@@ -0,0 +1,137 @@+import { WorkflowEntrypoint, type WorkflowEvent, type WorkflowStep } from "cloudflare:workers";+import { and, eq, inArray, lt } from "drizzle-orm";+import { getDb } from "@/db";+import { backups } from "@/db/schema";+import { createScheduledBackupIfDue, getBackupSettings } from "./service";+import type { BackupWorkflowParams, D1ExportResponse } from "./types";+import {+ BACKUP_PREFIX,+ createBackupFilename,+ getExportError,+} from "./utils";++const EXPORT_RETRIES = 20;++export class DatabaseBackupWorkflow extends WorkflowEntrypoint<CloudflareEnv, BackupWorkflowParams> {+ async run(event: Readonly<WorkflowEvent<BackupWorkflowParams>>, step: WorkflowStep) {+ let backupId = event.payload?.backupId;+ if (!backupId) {+ backupId = await step.do("Check backup schedule", async () =>+ createScheduledBackupIfDue(this.env, event.timestamp),+ );+ }+ if (!backupId) {+ const retention = await step.do("Delete expired backups", async () => this.deleteExpiredBackups());+ return { skipped: true, ...retention };+ }++ try {+ await step.do("Mark backup running", async () => {+ await getDb(this.env)+ .update(backups)+ .set({ status: "running", startedAt: new Date() })+ .where(eq(backups.id, backupId));+ });++ const exportUrl = this.getExportUrl();+ const bookmark = await step.do("Start D1 export", async () => {+ const response = await this.callExportApi(exportUrl, { output_format: "polling" });+ if (!response.result?.at_bookmark) throw new Error(getExportError(response));+ return response.result.at_bookmark;+ });++ let signedUrl = "";+ let exportFilename = "";+ for (let attempt = 1; attempt <= EXPORT_RETRIES; attempt += 1) {+ const result = await step.do(`Poll D1 export ${attempt}`, async () =>+ this.callExportApi(exportUrl, { current_bookmark: bookmark }),+ );+ if (result.result?.signed_url) {+ signedUrl = result.result.signed_url;+ exportFilename = result.result.filename ?? "";+ break;+ }+ if (attempt < EXPORT_RETRIES) await step.sleep(`Wait for D1 export ${attempt}`, "15 seconds");+ }+ if (!signedUrl) throw new Error("D1 export did not finish before the polling limit");++ const stored = await step.do("Store backup in R2", async () => {+ const response = await fetch(signedUrl);+ if (!response.ok || !response.body) throw new Error("Failed to download the D1 export");+ const filename = exportFilename || createBackupFilename(new Date());+ const r2Key = `${BACKUP_PREFIX}/${backupId}/${filename}`;+ const object = await this.env.BUCKET.put(r2Key, response.body, {+ httpMetadata: { contentType: "application/sql" },+ customMetadata: { backupId },+ });+ return { filename, r2Key, size: object.size };+ });++ await step.do("Complete backup", async () => {+ await getDb(this.env)+ .update(backups)+ .set({+ status: "completed",+ filename: stored.filename,+ r2Key: stored.r2Key,+ size: stored.size,+ completedAt: new Date(),+ error: null,+ })+ .where(eq(backups.id, backupId));+ });++ await step.do("Delete expired backups", async () => this.deleteExpiredBackups());+ return { backupId, ...stored };+ } catch (error) {+ const message = error instanceof Error ? error.message : "Backup failed";+ await getDb(this.env)+ .update(backups)+ .set({ status: "failed", error: message, completedAt: new Date() })+ .where(eq(backups.id, backupId));+ throw error;+ }+ }++ private getExportUrl(): string {+ if (!this.env.CF_AID || !this.env.D1_DATABASE_ID || !this.env.D1_BACKUP_TOKEN) {+ throw new Error("CF_AID, D1_DATABASE_ID, and D1_BACKUP_TOKEN must be configured");+ }+ return `https://api.cloudflare.com/client/v4/accounts/${this.env.CF_AID}/d1/database/${this.env.D1_DATABASE_ID}/export`;+ }++ private async callExportApi(url: string, payload: object): Promise<D1ExportResponse> {+ const response = await fetch(url, {+ method: "POST",+ headers: {+ Authorization: `Bearer ${this.env.D1_BACKUP_TOKEN}`,+ "Content-Type": "application/json",+ },+ body: JSON.stringify(payload),+ });+ const result = (await response.json()) as D1ExportResponse;+ if (!response.ok || !result.success) throw new Error(getExportError(result));+ return result;+ }++ private async deleteExpiredBackups(): Promise<{ deleted: number }> {+ const settings = await getBackupSettings(this.env);+ if (!settings?.retentionEnabled) return { deleted: 0 };+ const cutoff = new Date(Date.now() - settings.retentionDays * 86_400_000);+ const db = getDb(this.env);+ const expired = await db+ .select()+ .from(backups)+ .where(+ and(+ lt(backups.createdAt, cutoff),+ inArray(backups.status, ["completed", "failed"]),+ ),+ );+ for (const backup of expired) {+ if (backup.r2Key) await this.env.BUCKET.delete(backup.r2Key);+ await db.delete(backups).where(eq(backups.id, backup.id));+ }+ return { deleted: expired.length };+ }+}diff --git a/src/lib/cloudflare-api-utils.ts b/src/lib/cloudflare-api-utils.tsindex 0eef8cb..441a361 100644--- a/src/lib/cloudflare-api-utils.ts+++ b/src/lib/cloudflare-api-utils.ts@@ -59,5 +59,9 @@ export function getCloudflareAuthHint(errors: CfApiError[]) {}export function getEmailWorkerName(env: CloudflareEnv): string {- return env.CF_EMAIL_WORKER_NAME?.trim() || "mailflare";+ const workerName = env.CF_EMAIL_WORKER_NAME?.trim();+ if (!workerName) {+ throw new Error("CF_EMAIL_WORKER_NAME is required and must match the deployed Worker name.");+ }+ return workerName;}diff --git a/src/lib/contacts/service.ts b/src/lib/contacts/service.tsindex 7dbbeec..5a41448 100644--- a/src/lib/contacts/service.ts+++ b/src/lib/contacts/service.ts@@ -48,7 +48,7 @@ export async function upsertContactFromAddress(env: CloudflareEnv, input: Contac}export async function getContactDisplayNameMap(env: CloudflareEnv, userId: string, addresses: string[]) {- const emails = [...new Set(addresses.map(normalizeEmailAddress).filter(Boolean))];+ const emails = Array.from(new Set(addresses.map(normalizeEmailAddress).filter(Boolean)));if (emails.length === 0) return new Map<string, string>();const db = getDb(env);diff --git a/src/lib/dns-status.ts b/src/lib/dns-status.tsindex b53b577..205bc65 100644--- a/src/lib/dns-status.ts+++ b/src/lib/dns-status.ts@@ -25,7 +25,7 @@ export function summariseDns(: type === "routing-missing"? routingMissing: sendingRecords;- return [...new Set(list.map((r) => r.type).filter(Boolean))] as string[];+ return Array.from(new Set(list.map((r) => r.type).filter(Boolean))) as string[];};return {diff --git a/src/lib/email/attachment-types.d.ts b/src/lib/email/attachment-types.d.tsnew file mode 100644index 0000000..ccb888e--- /dev/null+++ b/src/lib/email/attachment-types.d.ts@@ -0,0 +1,21 @@+export interface AttachmentContent {+ content: ArrayBuffer;+ contentId?: string | null;+ disposition?: "attachment" | "inline";+ filename: string;+ type: string;+}++export interface AttachmentMetadata {+ contentId: string | null;+ disposition: "attachment" | "inline";+ filename: string;+ id: string;+ messageId: string;+ size: number;+ type: string;+}++export interface StoredAttachment extends AttachmentMetadata {+ r2Key: string;+}diff --git a/src/lib/email/attachments.ts b/src/lib/email/attachments.tsnew file mode 100644index 0000000..9b3a797--- /dev/null+++ b/src/lib/email/attachments.ts@@ -0,0 +1,165 @@+import { and, eq } from "drizzle-orm";+import { getDb } from "@/db";+import { messageAttachments, messages } from "@/db/schema";+import { newId } from "@/lib/ids";+import { getMailboxAccessLevel } from "@/lib/mailboxes/access";+import type { SessionUser } from "@/lib/auth/types";+import type {+ AttachmentContent,+ AttachmentMetadata,+ StoredAttachment,+} from "./attachment-types";++export const MAX_ATTACHMENT_SIZE = 10 * 1024 * 1024;+export const MAX_TOTAL_ATTACHMENT_SIZE = 20 * 1024 * 1024;+export const MAX_ATTACHMENT_COUNT = 10;++export function decodeBase64Content(content: string): ArrayBuffer {+ const binary = atob(content.replace(/\s/g, ""));+ const bytes = new Uint8Array(binary.length);+ for (let index = 0; index < binary.length; index += 1) {+ bytes[index] = binary.charCodeAt(index);+ }+ return bytes.buffer;+}++export function normalizeAttachmentContent(+ content: ArrayBuffer | Uint8Array | string,+ encoding?: "base64" | "utf8",+): ArrayBuffer {+ if (content instanceof ArrayBuffer) return content;+ if (content instanceof Uint8Array) {+ return content.buffer.slice(content.byteOffset, content.byteOffset + content.byteLength) as ArrayBuffer;+ }+ if (encoding === "base64") return decodeBase64Content(content);+ return new TextEncoder().encode(content).buffer;+}++function sanitizeFilename(filename: string): string {+ const normalized = filename.trim().replace(/[/\\\0]/g, "_");+ return normalized || "attachment";+}++export function validateAttachments(attachments: AttachmentContent[]): void {+ if (attachments.length > MAX_ATTACHMENT_COUNT) {+ throw new Error(`A message can include at most ${MAX_ATTACHMENT_COUNT} attachments`);+ }++ let totalSize = 0;+ for (const attachment of attachments) {+ const size = attachment.content.byteLength;+ if (size > MAX_ATTACHMENT_SIZE) {+ throw new Error(`${attachment.filename} exceeds the 10 MB attachment limit`);+ }+ totalSize += size;+ }++ if (totalSize > MAX_TOTAL_ATTACHMENT_SIZE) {+ throw new Error("Attachments exceed the 20 MB total limit");+ }+}++export async function storeMessageAttachments(+ env: CloudflareEnv,+ messageId: string,+ attachments: AttachmentContent[],+ options?: { validate?: boolean },+): Promise<StoredAttachment[]> {+ if (options?.validate !== false) validateAttachments(attachments);+ const db = getDb(env);+ const stored: StoredAttachment[] = [];++ try {+ for (const attachment of attachments) {+ const id = newId("att");+ const filename = sanitizeFilename(attachment.filename);+ const r2Key = `attachments/${messageId}/${id}/${filename}`;+ const disposition = attachment.disposition ?? "attachment";++ await env.BUCKET.put(r2Key, attachment.content, {+ httpMetadata: { contentType: attachment.type },+ customMetadata: { filename, messageId },+ });+ stored.push({+ id,+ messageId,+ filename,+ type: attachment.type,+ size: attachment.content.byteLength,+ disposition,+ contentId: attachment.contentId ?? null,+ r2Key,+ });+ await db.insert(messageAttachments).values({+ id,+ messageId,+ filename,+ contentType: attachment.type,+ size: attachment.content.byteLength,+ disposition,+ contentId: attachment.contentId ?? null,+ r2Key,+ });+ }+ } catch (error) {+ await Promise.all(stored.map((attachment) => env.BUCKET.delete(attachment.r2Key)));+ throw error;+ }++ return stored;+}++export async function listMessageAttachments(+ env: CloudflareEnv,+ messageId: string,+): Promise<AttachmentMetadata[]> {+ const db = getDb(env);+ const rows = await db+ .select()+ .from(messageAttachments)+ .where(eq(messageAttachments.messageId, messageId));++ return rows.map((attachment) => ({+ id: attachment.id,+ messageId: attachment.messageId,+ filename: attachment.filename,+ type: attachment.contentType,+ size: attachment.size,+ disposition: attachment.disposition as "attachment" | "inline",+ contentId: attachment.contentId,+ }));+}++export async function getAttachmentForUser(+ env: CloudflareEnv,+ user: SessionUser,+ messageId: string,+ attachmentId: string,+) {+ const db = getDb(env);+ const [message] = await db.select().from(messages).where(eq(messages.id, messageId)).limit(1);+ if (!message) return null;++ if (message.mailboxId) {+ const access = await getMailboxAccessLevel(db, user, message.mailboxId);+ if (!access?.canRead) return null;+ } else if (message.userId !== user.id) {+ return null;+ }++ const [attachment] = await db+ .select()+ .from(messageAttachments)+ .where(+ and(+ eq(messageAttachments.id, attachmentId),+ eq(messageAttachments.messageId, messageId),+ ),+ )+ .limit(1);+ if (!attachment) return null;++ const object = await env.BUCKET.get(attachment.r2Key);+ if (!object) return null;+ return { attachment, object };+}diff --git a/src/lib/email/inbound.ts b/src/lib/email/inbound.tsindex 8e7f2d6..eb92ba5 100644--- a/src/lib/email/inbound.ts+++ b/src/lib/email/inbound.ts@@ -3,10 +3,18 @@ import { getDb } from "@/db";import { messageBodies, messages } from "@/db/schema";import { newId } from "@/lib/ids";import { buildSnippet, parseRawMime } from "@/lib/email/parse";-import { resolveInboundAddress } from "@/lib/email/routing";+import { resolveInboundAddress, resolveInboxRuleDestination } from "@/lib/email/routing";import { dispatchWebhooks } from "@/lib/email/webhooks";import { getMessageContactNames, upsertContactFromAddress } from "@/lib/contacts/service";import { formatEmailAddress, getEmailAddress } from "@/lib/email/address";+import { getMailboxAccessLevel } from "@/lib/mailboxes/access";+import { listMessageAttachments, storeMessageAttachments } from "@/lib/email/attachments";+import { getUnsubscribeUrlFromRawR2Key } from "@/lib/email/unsubscribe";+import type { SessionUser } from "@/lib/auth/types";+import {+ getMailboxNotificationUserIds,+ notifyUsersOfNewMessage,+} from "@/lib/realtime/utils";export type InboundQueueMessage = {from: string;@@ -55,34 +63,60 @@ export async function processInboundMessage(? parsed.toAddr: mailboxHeader;const fromAddr = parsed.fromAddr ?? payload.from;+ const destination = await resolveInboxRuleDestination(db, {+ mailboxId: decision.mailbox.mailboxId,+ toAddress: toAddr,+ fromAddress: fromAddr,+ subject: parsed.subject,+ content: [parsed.text, parsed.html, snippet].filter(Boolean).join(" "),+ });await upsertContactFromAddress(env, {userId: decision.mailbox.userId,address: fromAddr,source: "inbound",});- await db.insert(messages).values({- id: messageId,- userId: decision.mailbox.userId,- mailboxId: decision.mailbox.mailboxId,- direction: "inbound",- providerMessageId: parsed.messageId,- fromAddr,- toAddr,- subject: parsed.subject,- snippet,- status: "received",- threadId: parsed.messageId,- });+ try {+ await db.insert(messages).values({+ id: messageId,+ userId: decision.mailbox.userId,+ mailboxId: decision.mailbox.mailboxId,+ folderId: destination.folderId,+ direction: "inbound",+ providerMessageId: parsed.messageId,+ fromAddr,+ toAddr,+ subject: parsed.subject,+ snippet,+ status: destination.status,+ threadId: parsed.messageId,+ });++ await db.insert(messageBodies).values({+ id: newId(),+ messageId,+ textBody: parsed.text,+ htmlBody: parsed.html,+ rawR2Key: payload.rawR2Key,+ });+ await storeMessageAttachments(env, messageId, parsed.attachments, { validate: false });+ } catch (error) {+ await db.delete(messages).where(eq(messages.id, messageId));+ throw error;+ }- await db.insert(messageBodies).values({- id: newId(),+ const notificationUserIds = await getMailboxNotificationUserIds(+ env,+ decision.mailbox.mailboxId,+ decision.mailbox.userId,+ );+ await notifyUsersOfNewMessage(env, notificationUserIds, {+ type: "new_message",messageId,- textBody: parsed.text,- htmlBody: parsed.html,- rawR2Key: payload.rawR2Key,+ mailboxId: decision.mailbox.mailboxId,+ from: fromAddr,+ subject: parsed.subject,});-await dispatchWebhooks(env, decision.mailbox.userId, "message.inbound", {messageId,from: fromAddr,@@ -120,5 +154,24 @@ export async function getMessageWithBody(env: CloudflareEnv, userId: string, mes.where(eq(messageBodies.messageId, messageId)).limit(1);const contactNames = await getMessageContactNames(env, userId, message.fromAddr, message.toAddr);- return { message: { ...message, ...contactNames }, body };+ const attachments = await listMessageAttachments(env, messageId);+ const unsubscribeUrl = await getUnsubscribeUrlFromRawR2Key(env, body?.rawR2Key ?? null);+ return { message: { ...message, ...contactNames }, body, attachments, unsubscribeUrl };+}++export async function getMessageWithBodyForUser(env: CloudflareEnv, user: SessionUser, messageId: string) {+ const db = getDb(env);+ const [message] = await db.select().from(messages).where(eq(messages.id, messageId)).limit(1);+ if (!message?.mailboxId) return null;+ const access = await getMailboxAccessLevel(db, user, message.mailboxId);+ if (!access?.canRead) return null;+ const [body] = await db+ .select()+ .from(messageBodies)+ .where(eq(messageBodies.messageId, messageId))+ .limit(1);+ const contactNames = await getMessageContactNames(env, user.id, message.fromAddr, message.toAddr);+ const attachments = await listMessageAttachments(env, messageId);+ const unsubscribeUrl = await getUnsubscribeUrlFromRawR2Key(env, body?.rawR2Key ?? null);+ return { message: { ...message, ...contactNames }, body, attachments, unsubscribeUrl };}diff --git a/src/lib/email/parse.ts b/src/lib/email/parse.tsindex da3a949..e52549e 100644--- a/src/lib/email/parse.ts+++ b/src/lib/email/parse.ts@@ -1,6 +1,8 @@import PostalMime from "postal-mime";import { formatPostalAddress, formatPostalAddressList } from "@/lib/email/address";+import { normalizeAttachmentContent } from "@/lib/email/attachments";import { getLatestEmailContent, htmlToReadableText } from "@/lib/email/reply-content-utils";+import type { AttachmentContent } from "@/lib/email/attachment-types";export type ParsedEmail = {subject: string | null;@@ -9,10 +11,13 @@ export type ParsedEmail = {messageId: string | null;fromAddr: string | null;toAddr: string | null;+ date: Date | null;+ attachments: AttachmentContent[];};export async function parseRawMime(raw: ArrayBuffer): Promise<ParsedEmail> {const email = await PostalMime.parse(raw);+ const date = email.date ? new Date(email.date) : null;return {subject: email.subject ?? null,text: email.text ?? null,@@ -20,6 +25,14 @@ export async function parseRawMime(raw: ArrayBuffer): Promise<ParsedEmail> {messageId: email.messageId ?? null,fromAddr: formatPostalAddress(email.from, null),toAddr: formatPostalAddressList(email.to, null),+ date: date && !Number.isNaN(date.getTime()) ? date : null,+ attachments: email.attachments.map((attachment, index) => ({+ filename: attachment.filename ?? `attachment-${index + 1}`,+ type: attachment.mimeType || "application/octet-stream",+ content: normalizeAttachmentContent(attachment.content, attachment.encoding),+ disposition: attachment.disposition === "inline" ? "inline" : "attachment",+ contentId: attachment.contentId ?? null,+ })),};}diff --git a/src/lib/email/reply-content-types.d.ts b/src/lib/email/reply-content-types.d.tsindex bf9e6b5..6c590b4 100644--- a/src/lib/email/reply-content-types.d.ts+++ b/src/lib/email/reply-content-types.d.ts@@ -1,9 +1,17 @@+export type PreviousMessageDirection = "received" | "sent";+export type QuotedEmailContent = {dateLine: string;+ direction: PreviousMessageDirection;content: string;+ quotedContent: QuotedEmailContent[];};export type ReplyContentParts = {latestContent: string;quotedContent: QuotedEmailContent[];};++export type SplitReplyContentOptions = {+ ownAddress?: string;+};diff --git a/src/lib/email/reply-content-utils.ts b/src/lib/email/reply-content-utils.tsindex 63a048d..8b6dd0f 100644--- a/src/lib/email/reply-content-utils.ts+++ b/src/lib/email/reply-content-utils.ts@@ -1,46 +1,57 @@-import type { ReplyContentParts, QuotedEmailContent } from "./reply-content-types";+import type {+ PreviousMessageDirection,+ ReplyContentParts,+ QuotedEmailContent,+ SplitReplyContentOptions,+} from "./reply-content-types";+import { normalizeEmailAddress } from "./address";const ORIGINAL_MESSAGE_RE = /^-{2,}\s*Original Message\s*-{2,}$/i;const UNDERSCORE_SEPARATOR_RE = /^_{8,}$/;const WROTE_RE = /^On\s+(.+?)\s+wrote:\s*$/i;const HEADER_RE = /^(From|To|Cc|Subject|Date|Sent):\s*(.*)$/i;-export function splitRepliedEmailContent(content: string | null | undefined): ReplyContentParts {+export function splitRepliedEmailContent(+ content: string | null | undefined,+ options: SplitReplyContentOptions = {},+): ReplyContentParts {const lines = normalizeContent(content).split("\n");const originalMessageIndex = lines.findIndex((line) => ORIGINAL_MESSAGE_RE.test(line.trim()));if (originalMessageIndex >= 0) {- return splitOriginalMessage(lines, originalMessageIndex);+ return splitOriginalMessage(lines, originalMessageIndex, options);}const underscoreSeparatorIndex = lines.findIndex((line) => UNDERSCORE_SEPARATOR_RE.test(line.trim()));if (underscoreSeparatorIndex >= 0) {- return splitSeparatorQuotedContent(lines, underscoreSeparatorIndex);+ return splitSeparatorQuotedContent(lines, underscoreSeparatorIndex, options);}const wroteIndex = lines.findIndex((line) => WROTE_RE.test(line.trim()));if (wroteIndex >= 0) {const markerLine = lines[wroteIndex]?.trim() ?? "";+ const quotedLines = stripSingleQuotePrefix(lines.slice(wroteIndex + 1));return {latestContent: trimEmptyLines(lines.slice(0, wroteIndex)).join("\n").trim(),- quotedContent: [- {- dateLine: getWroteDateLine(markerLine),- content: stripQuotePrefixes(lines.slice(wroteIndex + 1)).join("\n").trim(),- },- ].filter(hasQuotedContent),+ quotedContent: buildQuotedContent(+ quotedLines,+ getWroteDateLine(markerLine),+ getPreviousMessageDirection(getWroteAddress(markerLine), options.ownAddress),+ options,+ ),};}const quoteIndex = lines.findIndex((line) => line.trim().startsWith(">"));if (quoteIndex >= 0) {+ const quotedLines = stripSingleQuotePrefix(lines.slice(quoteIndex));return {latestContent: trimEmptyLines(lines.slice(0, quoteIndex)).join("\n").trim(),- quotedContent: [- {- dateLine: "Previous message",- content: stripQuotePrefixes(lines.slice(quoteIndex)).join("\n").trim(),- },- ].filter(hasQuotedContent),+ quotedContent: buildQuotedContent(+ quotedLines,+ "Unknown time",+ "received",+ options,+ ),};}@@ -64,7 +75,11 @@ export function htmlToReadableText(html: string | null | undefined): string {.replace(/'/g, "'");}-function splitOriginalMessage(lines: string[], markerIndex: number): ReplyContentParts {+function splitOriginalMessage(+ lines: string[],+ markerIndex: number,+ options: SplitReplyContentOptions,+): ReplyContentParts {const latestContent = trimEmptyLines(lines.slice(0, markerIndex)).join("\n").trim();const quotedLines = lines.slice(markerIndex + 1);const headers = new Map<string, string>();@@ -84,25 +99,30 @@ function splitOriginalMessage(lines: string[], markerIndex: number): ReplyConten}}- const quotedContent: QuotedEmailContent[] = [- {- dateLine: headers.get("date") ?? headers.get("sent") ?? "Previous message",- content: stripQuotePrefixes(quotedLines.slice(contentStartIndex)).join("\n").trim(),- },- ].filter(hasQuotedContent);+ const quotedContent = buildQuotedContent(+ stripSingleQuotePrefix(quotedLines.slice(contentStartIndex)),+ headers.get("date") ?? headers.get("sent") ?? "Unknown time",+ getPreviousMessageDirection(headers.get("from"), options.ownAddress),+ options,+ );return { latestContent, quotedContent };}-function splitSeparatorQuotedContent(lines: string[], separatorIndex: number): ReplyContentParts {+function splitSeparatorQuotedContent(+ lines: string[],+ separatorIndex: number,+ options: SplitReplyContentOptions,+): ReplyContentParts {+ const quotedLines = trimEmptyLines(lines.slice(separatorIndex + 1));return {latestContent: trimEmptyLines(lines.slice(0, separatorIndex)).join("\n").trim(),- quotedContent: [- {- dateLine: "Previous message",- content: trimEmptyLines(lines.slice(separatorIndex + 1)).join("\n").trim(),- },- ].filter(hasQuotedContent),+ quotedContent: buildQuotedContent(+ quotedLines,+ getHeaderValue(quotedLines, "sent") ?? getHeaderValue(quotedLines, "date") ?? "Unknown time",+ getPreviousMessageDirection(getHeaderValue(quotedLines, "from"), options.ownAddress),+ options,+ ),};}@@ -112,15 +132,19 @@ function getWroteDateLine(line: string): string {return rawDateLine.replace(/,\s*["']?[^,<"]+["']?\s*<[^>]+>\s*$/i, "").replace(/\b([0-9]{1,2}:[0-9]{2}\s?(?:AM|PM))(?:,?\s+.*)?$/i, "$1")- .trim() || "Previous message";+ .trim() || "Unknown time";+}++function getWroteAddress(line: string): string | undefined {+ return line.match(/<([^>]+@[^>]+)>/)?.[1];}function normalizeContent(content: string | null | undefined): string {return (content ?? "").replace(/\r\n?/g, "\n");}-function stripQuotePrefixes(lines: string[]): string[] {- return trimEmptyLines(lines.map((line) => line.replace(/^\s*>+\s?/, "")));+function stripSingleQuotePrefix(lines: string[]): string[] {+ return trimEmptyLines(lines.map((line) => line.replace(/^\s*>\s?/, "")));}function trimEmptyLines(lines: string[]): string[] {@@ -134,5 +158,47 @@ function trimEmptyLines(lines: string[]): string[] {}function hasQuotedContent(quotedContent: QuotedEmailContent): boolean {- return quotedContent.content.trim().length > 0;+ return (+ quotedContent.content.trim().length > 0 ||+ quotedContent.quotedContent.length > 0+ );+}++function buildQuotedContent(+ lines: string[],+ dateLine: string,+ direction: PreviousMessageDirection,+ options: SplitReplyContentOptions,+): QuotedEmailContent[] {+ const rawContent = trimEmptyLines(lines).join("\n").trim();+ if (!rawContent) return [];++ const nested = splitRepliedEmailContent(rawContent, options);+ const quotedContent: QuotedEmailContent = {+ dateLine,+ direction,+ content: nested.latestContent,+ quotedContent: nested.quotedContent,+ };++ return hasQuotedContent(quotedContent) ? [quotedContent] : [];+}++function getPreviousMessageDirection(+ from: string | undefined,+ ownAddress: string | undefined,+): PreviousMessageDirection {+ if (!from || !ownAddress) return "received";+ const fromAddress = normalizeEmailAddress(+ from.match(/<([^>]+)>/)?.[1] ?? from,+ );+ return fromAddress === normalizeEmailAddress(ownAddress) ? "sent" : "received";+}++function getHeaderValue(lines: string[], name: string): string | undefined {+ for (const line of lines) {+ const match = line.match(HEADER_RE);+ if (match?.[1].toLowerCase() === name) return match[2].trim();+ }+ return undefined;}diff --git a/src/lib/email/routing.ts b/src/lib/email/routing.tsindex 970d6f0..d995c70 100644--- a/src/lib/email/routing.ts+++ b/src/lib/email/routing.ts@@ -1,10 +1,12 @@import { eq, and, desc } from "drizzle-orm";import type { AppDatabase } from "@/db";-import { domains, mailboxes, routingRules } from "@/db/schema";+import { domains, folders, mailboxes, routingRules } from "@/db/schema";+import { getEmailAddress } from "@/lib/email/address";import { parseAddress } from "@/lib/utils";export type ResolvedMailbox = {mailboxId: string;+ folderId: string | null;userId: string;domainId: string;localPart: string;@@ -18,6 +20,11 @@ export type RoutingDecision = {forwardTo?: string;};+export type InboxRuleDestination = {+ status: "received" | "spam" | "trash";+ folderId: string | null;+};+export async function resolveInboundAddress(db: AppDatabase,toAddress: string,@@ -33,41 +40,6 @@ export async function resolveInboundAddress(if (!domain) return null;- const rules = await db- .select()- .from(routingRules)- .where(eq(routingRules.domainId, domain.id))- .orderBy(desc(routingRules.priority));-- for (const rule of rules) {- if (rule.pattern === "*" || rule.pattern === parsed.local || rule.pattern === toAddress) {- if (rule.action === "reject") return { action: "reject" };- if (rule.action === "forward" && rule.forwardTo) {- return { action: "forward", forwardTo: rule.forwardTo };- }- if (rule.mailboxId) {- const [mailbox] = await db- .select()- .from(mailboxes)- .where(and(eq(mailboxes.id, rule.mailboxId), eq(mailboxes.domainId, domain.id)))- .limit(1);- if (!mailbox) return null;-- return {- action: "store",- mailbox: {- mailboxId: mailbox.id,- userId: mailbox.userId,- domainId: domain.id,- localPart: mailbox.localPart,- hostname: domain.hostname,- displayName: mailbox.displayName,- },- };- }- }- }-const [mailbox] = await db.select().from(mailboxes)@@ -80,6 +52,7 @@ export async function resolveInboundAddress(action: "store",mailbox: {mailboxId: mailbox.id,+ folderId: null,userId: mailbox.userId,domainId: domain.id,localPart: mailbox.localPart,@@ -88,3 +61,95 @@ export async function resolveInboundAddress(},};}++export async function resolveInboxRuleDestination(+ db: AppDatabase,+ input: {+ mailboxId: string;+ toAddress: string;+ fromAddress?: string | null;+ subject?: string | null;+ content?: string | null;+ },+): Promise<InboxRuleDestination> {+ const rules = await db+ .select()+ .from(routingRules)+ .where(eq(routingRules.mailboxId, input.mailboxId))+ .orderBy(desc(routingRules.priority));++ for (const rule of rules) {+ if (!matchesInboxRule(rule, input)) continue;++ if (rule.action === "spam" || rule.action === "trash") {+ return { status: rule.action, folderId: null };+ }++ if (!rule.folderId) continue;+ const folderId = await getRuleFolderId(db, rule.folderId, input.mailboxId);+ if (!folderId) continue;+ return { status: "received", folderId };+ }++ return { status: "received", folderId: null };+}++function matchesInboxRule(+ rule: {+ pattern: string;+ matchField?: "email" | "content" | "title" | string;+ matchOperator?: "contains" | "exact" | string;+ matchValue?: string | null;+ },+ input: {+ toAddress: string;+ fromAddress?: string | null;+ subject?: string | null;+ content?: string | null;+ },+): boolean {+ const rawValue = (rule.matchValue || rule.pattern).trim();+ const normalizedRuleValue = normalizeRuleComparisonValue(rule.matchField, rawValue);+ if (!normalizedRuleValue) return false;+ if (normalizedRuleValue === "*") return true;++ const values = getRuleFieldValues(rule.matchField, input);+ return values.some((value) => {+ const normalizedValue = normalizeRuleComparisonValue(rule.matchField, value);+ if (rule.matchOperator === "exact") return normalizedValue === normalizedRuleValue;+ return normalizedValue.includes(normalizedRuleValue);+ });+}++function normalizeRuleComparisonValue(field: string | undefined, value: string | null | undefined): string {+ if (!value) return "";+ if (field !== "email") return value.toLowerCase();+ return getEmailAddress(value).trim().toLowerCase();+}++function getRuleFieldValues(+ field: string | undefined,+ input: {+ toAddress: string;+ fromAddress?: string | null;+ subject?: string | null;+ content?: string | null;+ },+) {+ if (field === "content") return [input.content];+ if (field === "title") return [input.subject];+ return [input.fromAddress, input.toAddress];+}++async function getRuleFolderId(+ db: AppDatabase,+ folderId: string,+ mailboxId: string,+): Promise<string | null> {+ const [folder] = await db+ .select({ id: folders.id })+ .from(folders)+ .where(and(eq(folders.id, folderId), eq(folders.mailboxId, mailboxId)))+ .limit(1);+ return folder?.id ?? null;+}diff --git a/src/lib/email/send.ts b/src/lib/email/send.tsindex e42bc49..c03bc50 100644--- a/src/lib/email/send.ts+++ b/src/lib/email/send.ts@@ -1,13 +1,14 @@-import { eq, and } from "drizzle-orm";+import { eq } from "drizzle-orm";import { getDb } from "@/db";-import { domains, mailboxes, messageBodies, messages, outboundJobs } from "@/db/schema";+import { messageBodies, messages, outboundJobs } from "@/db/schema";import { newId } from "@/lib/ids";import { buildSnippet } from "@/lib/email/parse";import { dispatchWebhooks } from "@/lib/email/webhooks";-import { ensureEmailRoutingRuleToWorker } from "@/lib/cloudflare-api";import { upsertContactFromAddress } from "@/lib/contacts/service";-import { formatEmailAddress, getEmailAddress } from "@/lib/email/address";-import { parseAddress } from "@/lib/utils";+import { getAuthorizedSenderAddress } from "@/lib/email/sender";+import { createAuditLog } from "@/lib/mailboxes/audit";+import { storeMessageAttachments, validateAttachments } from "@/lib/email/attachments";+import type { AttachmentContent } from "@/lib/email/attachment-types";export type SendEmailInput = {userId: string;@@ -16,44 +17,15 @@ export type SendEmailInput = {subject: string;html?: string;text?: string;- mailboxId?: string;+ mailboxId: string;+ attachments?: AttachmentContent[];};-export async function validateSenderDomain(- env: CloudflareEnv,- userId: string,- from: string,-): Promise<boolean> {- const parsed = parseAddress(from);- if (!parsed) return false;- const db = getDb(env);- const [domain] = await db- .select()- .from(domains)- .where(and(eq(domains.hostname, parsed.domain), eq(domains.status, "active")))- .limit(1);- if (!domain) return false;-- const [mailbox] = await db- .select()- .from(mailboxes)- .where(and(eq(mailboxes.domainId, domain.id), eq(mailboxes.localPart, parsed.local), eq(mailboxes.userId, userId)))- .limit(1);-- if (!mailbox) return false;-- await ensureEmailRoutingRuleToWorker(env, domain.zoneId, `${parsed.local}@${parsed.domain}`);- return true;-}-export async function sendEmail(env: CloudflareEnv, input: SendEmailInput): Promise<{ messageId: string }> {const db = getDb(env);- // const allowed = await validateSenderDomain(env, input.userId, input.from);- // if (!allowed) {- // throw new Error(`Sender address is not an active mailbox for your account: ${input.from}`);- // }-- const fromAddr = await getFormattedSenderAddress(env, input);+ const sender = await getAuthorizedSenderAddress(env, input);+ const attachments = input.attachments ?? [];+ validateAttachments(attachments);await upsertContactFromAddress(env, {userId: input.userId,address: input.to,@@ -65,9 +37,9 @@ export async function sendEmail(env: CloudflareEnv, input: SendEmailInput): Promawait db.insert(messages).values({id: messageId,userId: input.userId,- mailboxId: input.mailboxId ?? null,+ mailboxId: sender.mailboxId,direction: "outbound",- fromAddr,+ fromAddr: sender.fromAddr,toAddr: input.to,subject: input.subject,snippet,@@ -80,6 +52,12 @@ export async function sendEmail(env: CloudflareEnv, input: SendEmailInput): PromtextBody: input.text ?? null,htmlBody: input.html ?? null,});+ try {+ await storeMessageAttachments(env, messageId, attachments);+ } catch (error) {+ await db.delete(messages).where(eq(messages.id, messageId));+ throw error;+ }const jobId = newId("job");await db.insert(outboundJobs).values({@@ -87,16 +65,37 @@ export async function sendEmail(env: CloudflareEnv, input: SendEmailInput): PromuserId: input.userId,messageId,status: "queued",- payload: JSON.stringify(input),+ payload: JSON.stringify({+ ...input,+ from: sender.fromAddr,+ mailboxId: sender.mailboxId,+ attachments: attachments.map(({ content: _content, ...attachment }) => attachment),+ }),});try {const response = await env.EMAIL.send({- from: fromAddr,+ from: sender.fromAddr,to: input.to,subject: input.subject,html: input.html,text: input.text,+ attachments: attachments.map((attachment) =>+ attachment.disposition === "inline" && attachment.contentId+ ? {+ filename: attachment.filename,+ type: attachment.type,+ content: attachment.content,+ disposition: "inline" as const,+ contentId: attachment.contentId,+ }+ : {+ filename: attachment.filename,+ type: attachment.type,+ content: attachment.content,+ disposition: "attachment" as const,+ },+ ),});await db@@ -110,6 +109,13 @@ export async function sendEmail(env: CloudflareEnv, input: SendEmailInput): PromproviderMessageId: response.messageId,to: input.to,});+ await createAuditLog(env, {+ actorUserId: input.userId,+ mailboxId: sender.mailboxId,+ messageId,+ action: "email.send",+ metadata: { to: input.to, subject: input.subject },+ });return { messageId };} catch (err) {@@ -124,30 +130,6 @@ export async function sendEmail(env: CloudflareEnv, input: SendEmailInput): Prom}}-async function getFormattedSenderAddress(env: CloudflareEnv, input: SendEmailInput): Promise<string> {- if (!input.mailboxId) return input.from;-- const db = getDb(env);- const [mailbox] = await db- .select({- localPart: mailboxes.localPart,- displayName: mailboxes.displayName,- hostname: domains.hostname,- })- .from(mailboxes)- .innerJoin(domains, eq(mailboxes.domainId, domains.id))- .where(and(eq(mailboxes.id, input.mailboxId), eq(mailboxes.userId, input.userId)))- .limit(1);-- if (!mailbox) return input.from;-- const requestedAddress = getEmailAddress(input.from);- const mailboxAddress = `${mailbox.localPart}@${mailbox.hostname}`;- if (requestedAddress.toLowerCase() !== mailboxAddress.toLowerCase()) return input.from;-- return formatEmailAddress(mailboxAddress, mailbox.displayName ?? mailbox.localPart);-}-export type OutboundQueueMessage = SendEmailInput & { jobId?: string };export async function processOutboundQueue(diff --git a/src/lib/email/sender.ts b/src/lib/email/sender.tsnew file mode 100644index 0000000..684482d--- /dev/null+++ b/src/lib/email/sender.ts@@ -0,0 +1,57 @@+import { eq } from "drizzle-orm";+import { getDb } from "@/db";+import { domains, mailboxes, users } from "@/db/schema";+import { getMailboxAccessLevel } from "@/lib/mailboxes/access";+import { formatEmailAddress, getEmailAddress } from "@/lib/email/address";++export async function getAuthorizedSenderAddress(+ env: CloudflareEnv,+ input: {+ userId: string;+ from: string;+ mailboxId?: string | null;+ },+): Promise<{ fromAddr: string; mailboxId: string }> {+ if (!input.mailboxId) throw new Error("Mailbox is required");++ const db = getDb(env);+ const [mailbox] = await db+ .select({+ localPart: mailboxes.localPart,+ displayName: mailboxes.displayName,+ hostname: domains.hostname,+ id: mailboxes.id,+ })+ .from(mailboxes)+ .innerJoin(domains, eq(mailboxes.domainId, domains.id))+ .where(eq(mailboxes.id, input.mailboxId))+ .limit(1);++ if (!mailbox) throw new Error("Mailbox not found");+ const [actor] = await db.select().from(users).where(eq(users.id, input.userId)).limit(1);+ if (!actor || actor.disabled) throw new Error("Sender account not found");++ const access = await getMailboxAccessLevel(db, actor, mailbox.id);+ if (!access?.canSendOnBehalf) {+ throw new Error("You do not have permission to send from this mailbox");+ }++ const requestedAddress = getEmailAddress(input.from);+ const mailboxAddress = `${mailbox.localPart}@${mailbox.hostname}`;+ if (requestedAddress.toLowerCase() !== mailboxAddress.toLowerCase()) {+ throw new Error("Sender address does not match the selected mailbox");+ }++ if (access.canSendAs) {+ return {+ fromAddr: formatEmailAddress(mailboxAddress, mailbox.displayName),+ mailboxId: mailbox.id,+ };+ }++ const mailboxName = mailbox.displayName || mailboxAddress;+ return {+ fromAddr: formatEmailAddress(mailboxAddress, `${actor.name} on behalf of ${mailboxName}`),+ mailboxId: mailbox.id,+ };+}diff --git a/src/lib/email/unsubscribe-types.d.ts b/src/lib/email/unsubscribe-types.d.tsnew file mode 100644index 0000000..c2cf16f--- /dev/null+++ b/src/lib/email/unsubscribe-types.d.ts@@ -0,0 +1 @@+export type UnsubscribeUrl = string | null;diff --git a/src/lib/email/unsubscribe.ts b/src/lib/email/unsubscribe.tsnew file mode 100644index 0000000..de14199--- /dev/null+++ b/src/lib/email/unsubscribe.ts@@ -0,0 +1,70 @@+import type { UnsubscribeUrl } from "@/lib/email/unsubscribe-types";++const maxHeaderBytes = 64 * 1024;+const allowedUnsubscribeProtocols = new Set(["http:", "https:", "mailto:"]);++function getHeaderBlock(raw: ArrayBuffer): string {+ const slice = raw.slice(0, Math.min(raw.byteLength, maxHeaderBytes));+ const text = new TextDecoder("utf-8", { fatal: false }).decode(slice);+ const headerEnd = text.search(/\r?\n\r?\n/);+ return headerEnd === -1 ? text : text.slice(0, headerEnd);+}++function parseHeaders(headerBlock: string): Map<string, string[]> {+ const headers = new Map<string, string[]>();+ let currentName: string | null = null;++ for (const line of headerBlock.split(/\r?\n/)) {+ if (/^[\t ]/.test(line) && currentName) {+ const values = headers.get(currentName);+ if (values?.length) values[values.length - 1] += ` ${line.trim()}`;+ continue;+ }++ const separator = line.indexOf(":");+ if (separator <= 0) {+ currentName = null;+ continue;+ }++ currentName = line.slice(0, separator).trim().toLowerCase();+ const value = line.slice(separator + 1).trim();+ headers.set(currentName, [...(headers.get(currentName) ?? []), value]);+ }++ return headers;+}++function normalizeCandidate(value: string): string {+ return value.trim().replace(/^<|>$/g, "").replace(/^"|"$/g, "");+}++function isAllowedUnsubscribeUrl(value: string): boolean {+ try {+ return allowedUnsubscribeProtocols.has(new URL(value).protocol);+ } catch {+ return false;+ }+}++function getCandidates(value: string): string[] {+ const bracketed = [...value.matchAll(/<([^>]+)>/g)].map((match) => normalizeCandidate(match[1] ?? ""));+ const bare = value.split(",").map(normalizeCandidate);+ return [...bracketed, ...bare].filter(Boolean);+}++export function extractUnsubscribeUrlFromRaw(raw: ArrayBuffer): UnsubscribeUrl {+ const headers = parseHeaders(getHeaderBlock(raw));+ const values = headers.get("list-unsubscribe") ?? [];+ const candidates = values.flatMap(getCandidates).filter(isAllowedUnsubscribeUrl);+ return candidates.find((candidate) => candidate.startsWith("https://") || candidate.startsWith("http://"))+ ?? candidates.find((candidate) => candidate.startsWith("mailto:"))+ ?? null;+}++export async function getUnsubscribeUrlFromRawR2Key(env: CloudflareEnv, rawR2Key: string | null): Promise<UnsubscribeUrl> {+ if (!rawR2Key) return null;+ const raw = await env.BUCKET.get(rawR2Key, { range: { offset: 0, length: maxHeaderBytes } });+ if (!raw) return null;+ return extractUnsubscribeUrlFromRaw(await raw.arrayBuffer());+}diff --git a/src/lib/email/webhooks.ts b/src/lib/email/webhooks.tsindex bcc24e0..d2c0689 100644--- a/src/lib/email/webhooks.ts+++ b/src/lib/email/webhooks.ts@@ -39,6 +39,8 @@ export async function dispatchWebhooks(const signature = await signPayload(hook.secret, body);const res = await fetch(hook.url, {method: "POST",+ redirect: "manual",+ signal: AbortSignal.timeout(10_000),headers: {"Content-Type": "application/json","X-Email-Platform-Signature": signature,diff --git a/src/lib/export/mbox.ts b/src/lib/export/mbox.tsnew file mode 100644index 0000000..69e2c54--- /dev/null+++ b/src/lib/export/mbox.ts@@ -0,0 +1,58 @@+import { asc, eq } from "drizzle-orm";+import { getDb } from "@/db";+import { messageBodies, messages } from "@/db/schema";++function escapeHeader(value: string | null): string {+ return (value ?? "").replace(/\r?\n/g, " ").trim();+}++function escapeMboxBody(value: string): string {+ return value.replace(/\nFrom /g, "\n>From ");+}++function getMboxFromLine(date: Date): string {+ return `From MAILER-DAEMON ${date.toUTCString()}`;+}++export async function exportMailboxToMbox(env: CloudflareEnv, mailboxId: string): Promise<string> {+ const db = getDb(env);+ const rows = await db+ .select({+ id: messages.id,+ fromAddr: messages.fromAddr,+ toAddr: messages.toAddr,+ subject: messages.subject,+ providerMessageId: messages.providerMessageId,+ direction: messages.direction,+ status: messages.status,+ createdAt: messages.createdAt,+ textBody: messageBodies.textBody,+ htmlBody: messageBodies.htmlBody,+ })+ .from(messages)+ .leftJoin(messageBodies, eq(messageBodies.messageId, messages.id))+ .where(eq(messages.mailboxId, mailboxId))+ .orderBy(asc(messages.createdAt));++ return rows.map((message) => {+ const date = new Date(message.createdAt);+ const body = message.htmlBody ?? message.textBody ?? "";+ const contentType = message.htmlBody ? "text/html" : "text/plain";+ return [+ getMboxFromLine(date),+ `Message-ID: ${escapeHeader(message.providerMessageId || `<${message.id}@mailflare.local>`)}`,+ `Date: ${date.toUTCString()}`,+ `From: ${escapeHeader(message.fromAddr)}`,+ `To: ${escapeHeader(message.toAddr)}`,+ `Subject: ${escapeHeader(message.subject)}`,+ `X-Mailflare-Direction: ${escapeHeader(message.direction)}`,+ `X-Mailflare-Status: ${escapeHeader(message.status)}`,+ "MIME-Version: 1.0",+ `Content-Type: ${contentType}; charset=utf-8`,+ "Content-Transfer-Encoding: 8bit",+ "",+ escapeMboxBody(body),+ "",+ ].join("\r\n");+ }).join("\r\n");+}diff --git a/src/lib/http/errors.ts b/src/lib/http/errors.tsnew file mode 100644index 0000000..e0b84e3--- /dev/null+++ b/src/lib/http/errors.ts@@ -0,0 +1 @@+export class RequestBodyTooLargeError extends Error {}diff --git a/src/lib/http/request.ts b/src/lib/http/request.tsnew file mode 100644index 0000000..3cf3f7c--- /dev/null+++ b/src/lib/http/request.ts@@ -0,0 +1,29 @@+import { RequestBodyTooLargeError } from "./errors";++export async function readJsonBody<T>(request: Request, maxBytes: number): Promise<T> {+ const contentLength = Number(request.headers.get("content-length") ?? 0);+ if (contentLength > maxBytes) throw new RequestBodyTooLargeError("Request body is too large");++ const body = await request.arrayBuffer();+ if (body.byteLength > maxBytes) throw new RequestBodyTooLargeError("Request body is too large");+ if (body.byteLength === 0) return {} as T;++ return JSON.parse(new TextDecoder().decode(body)) as T;+}++export function assertRequestSize(request: Request, maxBytes: number): void {+ const contentLength = Number(request.headers.get("content-length") ?? 0);+ if (contentLength > maxBytes) throw new RequestBodyTooLargeError("Request body is too large");+}++export async function readFormDataBody(request: Request, maxBytes: number): Promise<FormData> {+ assertRequestSize(request, maxBytes);+ const body = await request.arrayBuffer();+ if (body.byteLength > maxBytes) throw new RequestBodyTooLargeError("Request body is too large");++ return new Request(request.url, {+ method: request.method,+ headers: request.headers,+ body,+ }).formData();+}diff --git a/src/lib/import/destination-types.d.ts b/src/lib/import/destination-types.d.tsnew file mode 100644index 0000000..b133c50--- /dev/null+++ b/src/lib/import/destination-types.d.ts@@ -0,0 +1,17 @@+export type ImportSystemSection = "inbox" | "sent" | "drafts" | "archived" | "spam" | "trash";++export type ImportDestination =+ | {+ type: "system";+ section: ImportSystemSection;+ }+ | {+ type: "folder";+ folderId: string;+ };++export type ImportMessagePlacement = {+ direction: "inbound" | "outbound";+ status: string;+ folderId: string | null;+};diff --git a/src/lib/import/destination.ts b/src/lib/import/destination.tsnew file mode 100644index 0000000..1cbf13e--- /dev/null+++ b/src/lib/import/destination.ts@@ -0,0 +1,58 @@+import type { ImportDestination, ImportMessagePlacement, ImportSystemSection } from "./destination-types";++const systemSections = new Set<ImportSystemSection>(["inbox", "sent", "drafts", "archived", "spam", "trash"]);++export const DEFAULT_IMPORT_DESTINATION = "system:inbox";++export function parseImportDestination(value: unknown): ImportDestination {+ const destination = typeof value === "string" && value.trim() ? value.trim() : DEFAULT_IMPORT_DESTINATION;+ if (destination.startsWith("folder:")) {+ const folderId = destination.slice("folder:".length).trim();+ if (!folderId) throw new Error("Import folder is required");+ return { type: "folder", folderId };+ }++ const section = destination.startsWith("system:")+ ? destination.slice("system:".length)+ : destination;+ if (systemSections.has(section as ImportSystemSection)) {+ return { type: "system", section: section as ImportSystemSection };+ }++ throw new Error("Import destination is invalid");+}++export function getImportMessagePlacement(destination: ImportDestination): ImportMessagePlacement {+ if (destination.type === "folder") {+ return { direction: "inbound", status: "received", folderId: destination.folderId };+ }++ if (destination.section === "sent") {+ return { direction: "outbound", status: "sent", folderId: null };+ }++ if (destination.section === "drafts") {+ return { direction: "outbound", status: "draft", folderId: null };+ }++ if (destination.section === "archived") {+ return { direction: "inbound", status: "archived", folderId: null };+ }++ if (destination.section === "spam" || destination.section === "trash") {+ return { direction: "inbound", status: destination.section, folderId: null };+ }++ return { direction: "inbound", status: "received", folderId: null };+}++export function getImportMessageUserId(+ destination: ImportDestination,+ currentUserId: string,+ mailboxUserId: string,+): string {+ if (destination.type === "system" && (destination.section === "sent" || destination.section === "drafts")) {+ return currentUserId;+ }+ return mailboxUserId;+}diff --git a/src/lib/import/imap-types.d.ts b/src/lib/import/imap-types.d.tsnew file mode 100644index 0000000..578d5c3--- /dev/null+++ b/src/lib/import/imap-types.d.ts@@ -0,0 +1,9 @@+export type ImapImportInput = {+ host: string;+ port: number;+ secure: boolean;+ username: string;+ password: string;+ folder: string;+ limit: number;+};diff --git a/src/lib/import/imap-utils.ts b/src/lib/import/imap-utils.tsnew file mode 100644index 0000000..5c244bb--- /dev/null+++ b/src/lib/import/imap-utils.ts@@ -0,0 +1,47 @@+export function quoteImapString(value: string): string {+ return `"${value.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`;+}++export function parseSearchUids(line: string): string[] {+ const match = line.match(/^\* SEARCH(?:\s+(.+))?$/i);+ if (!match?.[1]) return [];+ return match[1].trim().split(/\s+/).filter((value) => /^\d+$/.test(value));+}++export function getLiteralLength(line: string): number | null {+ const match = line.match(/\{(\d+)\}$/);+ return match ? Number(match[1]) : null;+}++export function isTaggedCompletion(line: string, tag: string): boolean {+ return line.toUpperCase().startsWith(`${tag.toUpperCase()} `);+}++export function parseListMailboxName(line: string): string | null {+ const match = line.match(/^\* LIST\s+\([^\)]*\)\s+(?:"[^"]*"|NIL)\s+(.+)$/i);+ if (!match?.[1]) return null;+ const value = match[1].trim();+ if (value.startsWith('"') && value.endsWith('"')) {+ return value.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, "\\");+ }+ return value || null;+}++export function assertSafeImapHost(host: string): void {+ const value = host.trim().toLowerCase();+ if (!value || value === "localhost" || value.endsWith(".local")) {+ throw new Error("IMAP host is not allowed");+ }+ if (/^\d+\.\d+\.\d+\.\d+$/.test(value)) {+ const parts = value.split(".").map(Number);+ if (+ parts[0] === 10 ||+ parts[0] === 127 ||+ (parts[0] === 172 && parts[1] >= 16 && parts[1] <= 31) ||+ (parts[0] === 192 && parts[1] === 168) ||+ (parts[0] === 169 && parts[1] === 254)+ ) {+ throw new Error("Private IMAP hosts are not allowed");+ }+ }+}diff --git a/src/lib/import/imap.ts b/src/lib/import/imap.tsnew file mode 100644index 0000000..0a19868--- /dev/null+++ b/src/lib/import/imap.ts@@ -0,0 +1,187 @@+import type { ImportMessageInput } from "./types";+import type { ImapImportInput } from "./imap-types";+import {+ assertSafeImapHost,+ getLiteralLength,+ isTaggedCompletion,+ parseListMailboxName,+ parseSearchUids,+ quoteImapString,+} from "./imap-utils";++type CloudflareSocketConnect = (+ address: { hostname: string; port: number },+ options: { secureTransport: "on" | "off"; allowHalfOpen: boolean },+) => Socket;++async function getCloudflareSocketConnect(): Promise<CloudflareSocketConnect> {+ try {+ const moduleName = "cloudflare:sockets";+ const sockets = await import(+ /* webpackIgnore: true */+ /* @vite-ignore */+ moduleName+ ) as { connect: CloudflareSocketConnect };+ return sockets.connect;+ } catch {+ throw new Error("IMAP import requires the Cloudflare Workers socket runtime");+ }+}++class ImapConnection {+ private reader: ReadableStreamDefaultReader<Uint8Array>;+ private writer: WritableStreamDefaultWriter<Uint8Array>;+ private decoder = new TextDecoder();+ private encoder = new TextEncoder();+ private buffer = new Uint8Array();+ private tagCounter = 0;++ constructor(socket: Socket) {+ this.reader = socket.readable.getReader();+ this.writer = socket.writable.getWriter();+ }++ async close(): Promise<void> {+ try {+ await this.writer.close();+ } catch {+ // Socket may already be closed by the server.+ }+ }++ async readGreeting(): Promise<void> {+ const line = await this.readLine();+ if (!line.startsWith("* OK")) throw new Error("IMAP server did not send an OK greeting");+ }++ async command(command: string): Promise<string[]> {+ const tag = this.nextTag();+ await this.write(`${tag} ${command}\r\n`);+ const lines: string[] = [];+ while (true) {+ const line = await this.readLine();+ lines.push(line);+ if (isTaggedCompletion(line, tag)) {+ if (!line.toUpperCase().includes(" OK")) {+ throw new Error(`IMAP command failed: ${line}`);+ }+ return lines;+ }+ }+ }++ async fetchMessage(uid: string): Promise<ArrayBuffer> {+ const tag = this.nextTag();+ await this.write(`${tag} UID FETCH ${uid} (RFC822)\r\n`);+ let raw: ArrayBuffer | null = null;++ while (true) {+ const line = await this.readLine();+ const literalLength = getLiteralLength(line);+ if (literalLength !== null) {+ raw = await this.readBytes(literalLength);+ continue;+ }+ if (isTaggedCompletion(line, tag)) {+ if (!line.toUpperCase().includes(" OK")) {+ throw new Error(`IMAP fetch failed: ${line}`);+ }+ if (!raw) throw new Error("IMAP fetch returned no message");+ return raw;+ }+ }+ }++ private nextTag(): string {+ this.tagCounter += 1;+ return `A${String(this.tagCounter).padStart(4, "0")}`;+ }++ private async write(value: string): Promise<void> {+ await this.writer.write(this.encoder.encode(value));+ }++ private async readLine(): Promise<string> {+ while (true) {+ const index = findCrlf(this.buffer);+ if (index >= 0) {+ const lineBytes = this.buffer.slice(0, index);+ this.buffer = this.buffer.slice(index + 2);+ return this.decoder.decode(lineBytes);+ }+ await this.readMore();+ }+ }++ private async readBytes(length: number): Promise<ArrayBuffer> {+ while (this.buffer.byteLength < length) {+ await this.readMore();+ }+ const bytes = this.buffer.slice(0, length);+ this.buffer = this.buffer.slice(length);+ return bytes.buffer.slice(bytes.byteOffset, bytes.byteOffset + bytes.byteLength) as ArrayBuffer;+ }++ private async readMore(): Promise<void> {+ const { value, done } = await this.reader.read();+ if (done || !value) throw new Error("IMAP connection closed unexpectedly");+ const next = new Uint8Array(this.buffer.byteLength + value.byteLength);+ next.set(this.buffer);+ next.set(value, this.buffer.byteLength);+ this.buffer = next;+ }+}++function findCrlf(buffer: Uint8Array): number {+ for (let index = 0; index < buffer.byteLength - 1; index += 1) {+ if (buffer[index] === 13 && buffer[index + 1] === 10) return index;+ }+ return -1;+}++export async function fetchImapMessages(input: ImapImportInput): Promise<ImportMessageInput[]> {+ assertSafeImapHost(input.host);+ const connect = await getCloudflareSocketConnect();+ const socket = connect(+ { hostname: input.host, port: input.port },+ { secureTransport: input.secure ? "on" : "off", allowHalfOpen: false },+ );+ const imap = new ImapConnection(socket);+ try {+ await imap.readGreeting();+ await imap.command(`LOGIN ${quoteImapString(input.username)} ${quoteImapString(input.password)}`);+ await imap.command(`SELECT ${quoteImapString(input.folder)}`);+ const searchLines = await imap.command("UID SEARCH ALL");+ const uids = searchLines.flatMap(parseSearchUids).slice(-input.limit);+ const messages: ImportMessageInput[] = [];+ for (const uid of uids) {+ messages.push({+ filename: `${input.folder}-${uid}.eml`,+ raw: await imap.fetchMessage(uid),+ });+ }+ await imap.command("LOGOUT").catch(() => undefined);+ return messages;+ } finally {+ await imap.close();+ }+}++export async function listImapFolders(input: Omit<ImapImportInput, "folder" | "limit">): Promise<string[]> {+ assertSafeImapHost(input.host);+ const connect = await getCloudflareSocketConnect();+ const socket = connect(+ { hostname: input.host, port: input.port },+ { secureTransport: input.secure ? "on" : "off", allowHalfOpen: false },+ );+ const imap = new ImapConnection(socket);+ try {+ await imap.readGreeting();+ await imap.command(`LOGIN ${quoteImapString(input.username)} ${quoteImapString(input.password)}`);+ const lines = await imap.command('LIST "" "*"');+ await imap.command("LOGOUT").catch(() => undefined);+ return Array.from(new Set(lines.map(parseListMailboxName).filter((name): name is string => !!name)));+ } finally {+ await imap.close();+ }+}diff --git a/src/lib/import/mbox.ts b/src/lib/import/mbox.tsnew file mode 100644index 0000000..c0fb5e6--- /dev/null+++ b/src/lib/import/mbox.ts@@ -0,0 +1,33 @@+const FROM_LINE = /^From /;++function trimTrailingLineBreaks(value: string): string {+ return value.replace(/\r?\n$/, "");+}++function unescapeMboxBody(value: string): string {+ return value.replace(/\n>From /g, "\nFrom ");+}++export function splitMboxMessages(content: string): string[] {+ const normalized = content.replace(/\r\n/g, "\n");+ const lines = normalized.split("\n");+ const messages: string[] = [];+ let current: string[] = [];++ for (const line of lines) {+ if (FROM_LINE.test(line)) {+ if (current.length > 0) {+ messages.push(unescapeMboxBody(trimTrailingLineBreaks(current.join("\n"))));+ current = [];+ }+ continue;+ }+ current.push(line);+ }++ if (current.length > 0) {+ messages.push(unescapeMboxBody(trimTrailingLineBreaks(current.join("\n"))));+ }++ return messages.filter((message) => message.trim().length > 0);+}diff --git a/src/lib/import/service.ts b/src/lib/import/service.tsnew file mode 100644index 0000000..bde21f3--- /dev/null+++ b/src/lib/import/service.ts@@ -0,0 +1,108 @@+import { and, eq } from "drizzle-orm";+import { getDb } from "@/db";+import { messageBodies, messages } from "@/db/schema";+import { storeMessageAttachments } from "@/lib/email/attachments";+import { buildSnippet, parseRawMime } from "@/lib/email/parse";+import { upsertContactFromAddress } from "@/lib/contacts/service";+import { newId } from "@/lib/ids";+import { getImportMessagePlacement } from "./destination";+import type { ImportDestination } from "./destination-types";+import type { ImportMailboxResult, ImportMessageInput } from "./types";++export async function importMessagesToMailbox(+ env: CloudflareEnv,+ input: {+ userId: string;+ mailboxId: string;+ destination: ImportDestination;+ messages: ImportMessageInput[];+ },+): Promise<ImportMailboxResult> {+ const result: ImportMailboxResult = { imported: 0, skipped: 0, errors: [] };+ for (const message of input.messages) {+ try {+ const imported = await importMessageToMailbox(env, {+ userId: input.userId,+ mailboxId: input.mailboxId,+ destination: input.destination,+ filename: message.filename,+ raw: message.raw,+ });+ if (imported) {+ result.imported += 1;+ } else {+ result.skipped += 1;+ }+ } catch (error) {+ result.skipped += 1;+ result.errors.push(`${message.filename}: ${error instanceof Error ? error.message : "Import failed"}`);+ }+ }+ return result;+}++async function importMessageToMailbox(+ env: CloudflareEnv,+ input: {+ userId: string;+ mailboxId: string;+ destination: ImportDestination;+ filename: string;+ raw: ArrayBuffer;+ },+): Promise<boolean> {+ const parsed = await parseRawMime(input.raw);+ const db = getDb(env);+ const providerMessageId = parsed.messageId ?? `import:${input.filename}:${input.raw.byteLength}`;++ const [existing] = await db+ .select({ id: messages.id })+ .from(messages)+ .where(and(eq(messages.mailboxId, input.mailboxId), eq(messages.providerMessageId, providerMessageId)))+ .limit(1);+ if (existing) return false;++ const messageId = newId("msg");+ const fromAddr = parsed.fromAddr ?? "unknown";+ const toAddr = parsed.toAddr ?? "";+ const createdAt = parsed.date ?? new Date();+ const placement = getImportMessagePlacement(input.destination);++ await db.insert(messages).values({+ id: messageId,+ userId: input.userId,+ mailboxId: input.mailboxId,+ folderId: placement.folderId,+ direction: placement.direction,+ providerMessageId,+ fromAddr,+ toAddr,+ subject: parsed.subject,+ snippet: buildSnippet(parsed.text, parsed.html),+ status: placement.status,+ read: placement.direction === "outbound",+ threadId: parsed.messageId,+ createdAt,+ });++ try {+ await db.insert(messageBodies).values({+ id: newId(),+ messageId,+ textBody: parsed.text,+ htmlBody: parsed.html,+ });+ await storeMessageAttachments(env, messageId, parsed.attachments, { validate: false });+ const contactAddress = placement.direction === "outbound" ? toAddr : fromAddr;+ await upsertContactFromAddress(env, {+ userId: input.userId,+ address: contactAddress,+ source: placement.direction === "outbound" ? "outbound" : "inbound",+ });+ } catch (error) {+ await db.delete(messages).where(eq(messages.id, messageId));+ throw error;+ }++ return true;+}diff --git a/src/lib/import/types.d.ts b/src/lib/import/types.d.tsnew file mode 100644index 0000000..7558c9f--- /dev/null+++ b/src/lib/import/types.d.ts@@ -0,0 +1,10 @@+export type ImportMailboxResult = {+ imported: number;+ skipped: number;+ errors: string[];+};++export type ImportMessageInput = {+ filename: string;+ raw: ArrayBuffer;+};diff --git a/src/lib/mailboxes/access.ts b/src/lib/mailboxes/access.tsnew file mode 100644index 0000000..92d4b26--- /dev/null+++ b/src/lib/mailboxes/access.ts@@ -0,0 +1,83 @@+import { and, eq } from "drizzle-orm";+import type { AppDatabase } from "@/db";+import { domains, mailboxes } from "@/db/schema";+import { isAdmin } from "@/lib/auth/admin";+import type { SessionUser } from "@/lib/auth/types";+import type { MailboxAccessLevel, MailboxPermission } from "./types";++const permissionRank: Record<MailboxPermission, number> = {+ read_only: 1,+ send_on_behalf: 2,+ send_as: 3,+ full_access: 4,+};++export function hasMailboxPermission(permission: MailboxPermission, required: MailboxPermission): boolean {+ return permissionRank[permission] >= permissionRank[required];+}++export async function getMailboxAccessLevel(+ db: AppDatabase,+ user: Pick<SessionUser, "id" | "role">,+ mailboxId: string,+): Promise<MailboxAccessLevel | null> {+ const [mailbox] = await db.select().from(mailboxes).where(eq(mailboxes.id, mailboxId)).limit(1);+ if (!mailbox || mailbox.disabled) return null;++ const [domain] = await db.select().from(domains).where(eq(domains.id, mailbox.domainId)).limit(1);+ const isOwner = mailbox.userId === user.id || (isAdmin(user) && domain?.userId === user.id);+ if (isOwner) return buildAccess(mailbox, "full_access", true);++ return null;+}++export async function listAccessibleMailboxes(db: AppDatabase, user: Pick<SessionUser, "id" | "email" | "role">) {+ const rows = await db+ .select({+ id: mailboxes.id,+ userId: mailboxes.userId,+ domainId: mailboxes.domainId,+ localPart: mailboxes.localPart,+ displayName: mailboxes.displayName,+ type: mailboxes.type,+ disabled: mailboxes.disabled,+ createdAt: mailboxes.createdAt,+ hostname: domains.hostname,+ domainUserId: domains.userId,+ })+ .from(mailboxes)+ .innerJoin(domains, eq(mailboxes.domainId, domains.id));+ return rows+ .filter((row) => {+ if (row.disabled) return false;+ if (row.userId === user.id) return true;+ if (isAdmin(user) && row.domainUserId === user.id) return true;+ return false;+ })+ .map((row) => ({+ ...row,+ permission: "full_access" as MailboxPermission,+ isPrimary: `${row.localPart}@${row.hostname}` === user.email,+ }));+}++export async function listAccessibleMailboxIds(db: AppDatabase, user: Pick<SessionUser, "id" | "email" | "role">) {+ const rows = await listAccessibleMailboxes(db, user);+ return rows.map((row) => row.id);+}++function buildAccess(+ mailbox: MailboxAccessLevel["mailbox"],+ permission: MailboxPermission,+ isOwner: boolean,+): MailboxAccessLevel {+ return {+ mailbox,+ permission,+ isOwner,+ canRead: hasMailboxPermission(permission, "read_only"),+ canSendAs: hasMailboxPermission(permission, "send_as"),+ canSendOnBehalf: hasMailboxPermission(permission, "send_on_behalf"),+ canManage: hasMailboxPermission(permission, "full_access"),+ };+}diff --git a/src/lib/mailboxes/audit.ts b/src/lib/mailboxes/audit.tsnew file mode 100644index 0000000..784fef6--- /dev/null+++ b/src/lib/mailboxes/audit.ts@@ -0,0 +1,17 @@+import { getDb } from "@/db";+import { auditLogs } from "@/db/schema";+import { newId } from "@/lib/ids";+import type { AuditLogInput } from "./types";++export async function createAuditLog(env: CloudflareEnv, input: AuditLogInput): Promise<void> {+ const db = getDb(env);+ await db.insert(auditLogs).values({+ id: newId("aud"),+ actorUserId: input.actorUserId ?? null,+ targetUserId: input.targetUserId ?? null,+ mailboxId: input.mailboxId ?? null,+ messageId: input.messageId ?? null,+ action: input.action,+ metadata: input.metadata ? JSON.stringify(input.metadata) : null,+ });+}diff --git a/src/lib/mailboxes/types.d.ts b/src/lib/mailboxes/types.d.tsnew file mode 100644index 0000000..e0c07fc--- /dev/null+++ b/src/lib/mailboxes/types.d.ts@@ -0,0 +1,33 @@+import type { mailboxes } from "@/db/schema";++export type MailboxPermission = "read_only" | "send_as" | "send_on_behalf" | "full_access";++export type MailboxType = "personal" | "shared";++export type MailboxAccessLevel = {+ mailbox: typeof mailboxes.$inferSelect;+ permission: MailboxPermission;+ isOwner: boolean;+ canRead: boolean;+ canSendAs: boolean;+ canSendOnBehalf: boolean;+ canManage: boolean;+};++export type AuditAction =+ | "auth.login"+ | "auth.logout"+ | "email.send"+ | "email.read"+ | "email.delete"+ | "permission.change"+ | "mailbox.access";++export type AuditLogInput = {+ actorUserId?: string | null;+ targetUserId?: string | null;+ mailboxId?: string | null;+ messageId?: string | null;+ action: AuditAction | string;+ metadata?: Record<string, unknown>;+};diff --git a/src/lib/messages/drag-types.d.ts b/src/lib/messages/drag-types.d.tsnew file mode 100644index 0000000..239e722--- /dev/null+++ b/src/lib/messages/drag-types.d.ts@@ -0,0 +1,3 @@+export type MessageDragPayload = {+ messageIds: string[];+};diff --git a/src/lib/messages/drag-utils.ts b/src/lib/messages/drag-utils.tsnew file mode 100644index 0000000..789a3ca--- /dev/null+++ b/src/lib/messages/drag-utils.ts@@ -0,0 +1,22 @@+import type { MessageDragPayload } from "./drag-types";++export const MESSAGE_DRAG_MIME = "application/x-mailflare-message-ids";++export function setMessageDragData(dataTransfer: DataTransfer, payload: MessageDragPayload): void {+ dataTransfer.effectAllowed = "move";+ dataTransfer.setData(MESSAGE_DRAG_MIME, JSON.stringify(payload));+ dataTransfer.setData("text/plain", payload.messageIds.join(","));+}++export function getMessageDragData(dataTransfer: DataTransfer): MessageDragPayload | null {+ const raw = dataTransfer.getData(MESSAGE_DRAG_MIME);+ if (!raw) return null;++ try {+ const payload = JSON.parse(raw) as Partial<MessageDragPayload>;+ const messageIds = payload.messageIds?.filter(Boolean) ?? [];+ return messageIds.length > 0 ? { messageIds } : null;+ } catch {+ return null;+ }+}diff --git a/src/lib/realtime/hub.ts b/src/lib/realtime/hub.tsnew file mode 100644index 0000000..7c19d4f--- /dev/null+++ b/src/lib/realtime/hub.ts@@ -0,0 +1,42 @@+import { DurableObject } from "cloudflare:workers";+import type { NewMessageNotification } from "./types";++export class RealtimeHub extends DurableObject<CloudflareEnv> {+ async fetch(request: Request): Promise<Response> {+ const url = new URL(request.url);++ if (url.pathname === "/connect") {+ if (request.headers.get("Upgrade")?.toLowerCase() !== "websocket") {+ return new Response("Expected WebSocket upgrade", { status: 426 });+ }++ const pair = new WebSocketPair();+ const client = pair[0];+ const server = pair[1];+ this.ctx.acceptWebSocket(server);++ return new Response(null, { status: 101, webSocket: client });+ }++ if (url.pathname === "/notify" && request.method === "POST") {+ const payload = (await request.json()) as NewMessageNotification;+ const message = JSON.stringify(payload);++ for (const socket of this.ctx.getWebSockets()) {+ try {+ socket.send(message);+ } catch {+ socket.close(1011, "Delivery failed");+ }+ }++ return new Response(null, { status: 204 });+ }++ return new Response("Not found", { status: 404 });+ }++ webSocketMessage(socket: WebSocket, message: string | ArrayBuffer): void {+ if (message === "ping") socket.send("pong");+ }+}diff --git a/src/lib/realtime/types.d.ts b/src/lib/realtime/types.d.tsnew file mode 100644index 0000000..64ed9f9--- /dev/null+++ b/src/lib/realtime/types.d.ts@@ -0,0 +1,12 @@+export interface NewMessageNotification {+ from: string;+ mailboxId: string;+ messageId: string;+ subject: string | null;+ type: "new_message";+}++export interface RealtimeNotificationRequest {+ userIds: string[];+ payload: NewMessageNotification;+}diff --git a/src/lib/realtime/utils.ts b/src/lib/realtime/utils.tsnew file mode 100644index 0000000..18a3159--- /dev/null+++ b/src/lib/realtime/utils.ts@@ -0,0 +1,57 @@+import { eq } from "drizzle-orm";+import { getDb } from "@/db";+import { domains, mailboxes } from "@/db/schema";+import type { NewMessageNotification } from "./types";++export function getSessionTokenFromRequest(request: Request): string | undefined {+ const cookie = request.headers.get("Cookie");+ if (!cookie) return undefined;++ for (const part of cookie.split(";")) {+ const [name, ...valueParts] = part.trim().split("=");+ if (name === "ep_session") {+ const value = valueParts.join("=");+ return value ? decodeURIComponent(value) : undefined;+ }+ }++ return undefined;+}++export async function getMailboxNotificationUserIds(+ env: CloudflareEnv,+ mailboxId: string,+ ownerUserId: string,+): Promise<string[]> {+ const db = getDb(env);+ const mailboxRows = await db+ .select({ domainOwnerUserId: domains.userId })+ .from(mailboxes)+ .innerJoin(domains, eq(mailboxes.domainId, domains.id))+ .where(eq(mailboxes.id, mailboxId))+ .limit(1);++ return [+ ...new Set([+ ownerUserId,+ mailboxRows[0]?.domainOwnerUserId,+ ].filter((userId): userId is string => !!userId)),+ ];+}++export async function notifyUsersOfNewMessage(+ env: CloudflareEnv,+ userIds: string[],+ payload: NewMessageNotification,+): Promise<void> {+ await Promise.allSettled(+ userIds.map((userId) => {+ const hub = env.REALTIME.getByName(userId);+ return hub.fetch("https://mailflare-realtime/notify", {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify(payload),+ });+ }),+ );+}diff --git a/src/lib/security/headers.ts b/src/lib/security/headers.tsnew file mode 100644index 0000000..8503b6d--- /dev/null+++ b/src/lib/security/headers.ts@@ -0,0 +1,28 @@+const csp = [+ "default-src 'self'",+ "script-src 'self' 'unsafe-inline' 'unsafe-eval' https://challenges.cloudflare.com",+ "style-src 'self' 'unsafe-inline'",+ "img-src 'self' data: blob: https:",+ "font-src 'self' data:",+ "connect-src 'self' ws: wss: https://challenges.cloudflare.com",+ "frame-src https://challenges.cloudflare.com",+ "object-src 'none'",+ "base-uri 'self'",+ "form-action 'self'",+ "frame-ancestors 'self'",+ "upgrade-insecure-requests",+].join("; ");++export function getSecurityHeaders() {+ return [+ { key: "Content-Security-Policy", value: csp },+ { key: "Strict-Transport-Security", value: "max-age=31536000; includeSubDomains" },+ { key: "X-Content-Type-Options", value: "nosniff" },+ { key: "X-Frame-Options", value: "SAMEORIGIN" },+ { key: "Referrer-Policy", value: "strict-origin-when-cross-origin" },+ {+ key: "Permissions-Policy",+ value: "camera=(), microphone=(), geolocation=(), payment=(), usb=()",+ },+ ];+}diff --git a/src/lib/user.ts b/src/lib/user.tsindex 5d5b062..a8a9f2d 100644--- a/src/lib/user.ts+++ b/src/lib/user.ts@@ -1,6 +1,9 @@import { eq, desc, and } from "drizzle-orm";import { getDb } from "@/db";import { messages, domains, mailboxes } from "@/db/schema";+import { getMailboxAccessLevel, listAccessibleMailboxIds } from "@/lib/mailboxes/access";+import { createAuditLog } from "@/lib/mailboxes/audit";+import type { SessionUser } from "@/lib/auth/types";export async function listMessagesForUser(env: CloudflareEnv,@@ -28,10 +31,16 @@ export async function listMailboxesForUser(env: CloudflareEnv, userId: string) {export async function userHasMailboxes(env: CloudflareEnv, userId: string): Promise<boolean> {const db = getDb(env);- const [row] = await db.select({ id: mailboxes.id }).from(mailboxes).where(eq(mailboxes.userId, userId)).limit(1);+ const [row] = await db.select({ id: mailboxes.id }).from(mailboxes).where(and(eq(mailboxes.userId, userId), eq(mailboxes.disabled, false))).limit(1);return !!row;}+export async function userHasAccessibleMailboxes(env: CloudflareEnv, user: SessionUser): Promise<boolean> {+ const db = getDb(env);+ const ids = await listAccessibleMailboxIds(db, user);+ return ids.length > 0;+}+export async function hasPrimaryDomain(env: CloudflareEnv): Promise<boolean> {const db = getDb(env);const [row] = await db.select({ id: domains.id }).from(domains).limit(1);@@ -69,6 +78,44 @@ export async function markMessageAsRead(env: CloudflareEnv, userId: string, messreturn true;}+export async function markMessageAsReadForUser(env: CloudflareEnv, user: SessionUser, messageId: string) {+ const db = getDb(env);+ const [message] = await db.select().from(messages).where(eq(messages.id, messageId)).limit(1);+ if (!message?.mailboxId) return false;+ const access = await getMailboxAccessLevel(db, user, message.mailboxId);+ if (!access?.canRead) return false;+ await db.update(messages).set({ read: true }).where(eq(messages.id, messageId));+ await createAuditLog(env, {+ actorUserId: user.id,+ mailboxId: message.mailboxId,+ messageId,+ action: "email.read",+ });+ return true;+}++export async function updateMessageStatusForUser(+ env: CloudflareEnv,+ user: SessionUser,+ messageId: string,+ status: string,+) {+ const db = getDb(env);+ const [message] = await db.select().from(messages).where(eq(messages.id, messageId)).limit(1);+ if (!message?.mailboxId) return false;+ const access = await getMailboxAccessLevel(db, user, message.mailboxId);+ if (!access?.canManage) return false;+ await db.update(messages).set({ status }).where(eq(messages.id, messageId));+ await createAuditLog(env, {+ actorUserId: user.id,+ mailboxId: message.mailboxId,+ messageId,+ action: "email.delete",+ metadata: { status },+ });+ return true;+}+export async function updateMessageStatus(env: CloudflareEnv,userId: string,diff --git a/src/lib/validators.ts b/src/lib/validators.tsindex 159eef7..301f17b 100644--- a/src/lib/validators.ts+++ b/src/lib/validators.ts@@ -1,12 +1,22 @@import { z } from "zod";export const sendEmailSchema = z.object({- from: z.string().min(3),- to: z.string().min(3),+ from: z.string().min(3).max(500),+ to: z.string().min(3).max(500),subject: z.string().min(1).max(500),- html: z.string().optional(),- text: z.string().optional(),- mailboxId: z.string().optional(),+ html: z.string().max(2 * 1024 * 1024).optional(),+ text: z.string().max(2 * 1024 * 1024).optional(),+ mailboxId: z.string().min(1).max(200),+ attachments: z+ .array(+ z.object({+ filename: z.string().min(1).max(255),+ type: z.string().min(1).max(255).default("application/octet-stream"),+ contentBase64: z.string().min(1).max(14 * 1024 * 1024),+ }),+ )+ .max(10)+ .optional(),});export const registerSchema = z.object({@@ -51,12 +61,55 @@ export const mailboxSchema = z.object({domainId: z.string().min(1),localPart: z.string().min(1).max(64),displayName: z.string().optional(),+ type: z.enum(["personal", "shared"]).optional(),+});++export const createAccountSchema = z.object({+ domainId: z.string().min(1),+ username: z.string().min(1).max(64).regex(/^[a-zA-Z0-9._%+-]+$/),+ password: z.string().min(8),+ name: z.string().trim().min(1).max(100).optional(),+ resetEmail: z.preprocess(+ (value) => (typeof value === "string" ? value.trim() : value),+ z.string().email().or(z.literal("")).optional().transform((value) => value || null),+ ),+});++export const updateAccountSchema = z.object({+ email: z.string().email().optional(),+ name: z.string().trim().min(1).max(100),+ disabled: z.boolean().optional(),+ password: z.preprocess(+ (value) => (typeof value === "string" ? value.trim() : value),+ z.string().min(8).or(z.literal("")).optional().transform((value) => value || null),+ ),+});++export const mailboxAccessSchema = z.object({+ userId: z.string().min(1),+ permission: z.enum(["read_only", "send_as", "send_on_behalf", "full_access"]),+});++export const accountMailboxAccessSchema = z.object({+ mailboxId: z.string().min(1),+ permission: z.enum(["read_only", "send_as", "send_on_behalf", "full_access"]),+});++export const accountMailboxSchema = z.object({+ domainId: z.string().min(1),+ localPart: z.string().min(1).max(64).regex(/^[a-zA-Z0-9._%+-]+$/),+ displayName: z.string().trim().max(100).optional(),});export const updateMailboxSchema = z.object({displayName: z.string().max(100).nullable().optional(),});+export const folderSchema = z.object({+ mailboxId: z.string().min(1),+ name: z.string().trim().min(1).max(80),+});+export const updateProfileSchema = z.object({name: z.string().trim().min(1).max(100),resetEmail: z.preprocess(@@ -66,15 +119,23 @@ export const updateProfileSchema = z.object({});export const routingRuleSchema = z.object({- domainId: z.string().min(1),- pattern: z.string().min(1),- action: z.enum(["store", "forward", "reject"]),- mailboxId: z.string().optional(),+ domainId: z.string().optional(),+ pattern: z.string().trim().min(1).max(200).optional(),+ matchField: z.enum(["email", "content", "title"]).default("email"),+ matchOperator: z.enum(["contains", "exact"]).default("contains"),+ matchValue: z.string().trim().min(1).max(500),+ action: z.enum(["store", "forward", "reject", "spam", "trash"]).optional(),+ mailboxId: z.string().min(1),+ folderId: z.string().optional(),+ destination: z.string().min(1).optional(),forwardTo: z.string().email().optional(),priority: z.number().int().default(0),});export const webhookSchema = z.object({- url: z.string().url(),- events: z.array(z.string()).min(1),+ url: z.string().url().max(2048),+ events: z+ .array(z.enum(["message.inbound", "message.outbound", "message.failed"]))+ .min(1)+ .max(3),});diff --git a/tsconfig.json b/tsconfig.jsonindex 03500f0..4ac794e 100644--- a/tsconfig.json+++ b/tsconfig.json@@ -1,6 +1,6 @@{"compilerOptions": {- "target": "es2024",+ "target": "esnext","lib": ["dom", "dom.iterable", "esnext"],"allowJs": true,"skipLibCheck": true,@@ -12,6 +12,7 @@"resolveJsonModule": true,"isolatedModules": true,"jsx": "react-jsx",+ "noImplicitAny": false,"incremental": true,"plugins": [{diff --git a/worker.ts b/worker.tsindex 8c24d02..642a8c0 100644--- a/worker.ts+++ b/worker.ts@@ -7,9 +7,30 @@ import {} from "./src/lib/email/inbound";import { processOutboundQueue, type OutboundQueueMessage } from "./src/lib/email/send";import { isInboundQueueMessage } from "./worker-utils";+import { getUserFromSession } from "./src/lib/auth/session";+import { getSessionTokenFromRequest } from "./src/lib/realtime/utils";+export { RealtimeHub } from "./src/lib/realtime/hub";+export { DatabaseBackupWorkflow } from "./src/lib/backups/workflow";export default {- fetch: nextHandler.fetch,+ async fetch(request: Request, env: CloudflareEnv, ctx: ExecutionContext) {+ const url = new URL(request.url);+ if (url.pathname === "/api/realtime") {+ if (request.headers.get("Upgrade")?.toLowerCase() !== "websocket") {+ return new Response("Expected WebSocket upgrade", { status: 426 });+ }++ const user = await getUserFromSession(env, getSessionTokenFromRequest(request));+ if (!user || user.disabled) {+ return new Response("Unauthorized", { status: 401 });+ }++ const hub = env.REALTIME.getByName(user.id);+ return hub.fetch(new Request("https://mailflare-realtime/connect", request));+ }++ return nextHandler.fetch(request, env, ctx);+ },async email(message: ForwardableEmailMessage, env: CloudflareEnv, ctx: ExecutionContext) {try {diff --git a/wrangler.jsonc b/wrangler.jsoncindex 0e40326..6bf960e 100644--- a/wrangler.jsonc+++ b/wrangler.jsonc@@ -3,6 +3,7 @@"name": "mailflare","main": "./worker.ts","compatibility_date": "2026-05-20",+ "keep_vars": true,"compatibility_flags": ["nodejs_compat","global_fetch_strictly_public"@@ -20,9 +21,40 @@"service": "mailflare",},],- "vars": {- "CF_EMAIL_WORKER_NAME": "mailflare",+ "durable_objects": {+ "bindings": [+ {+ "name": "REALTIME",+ "class_name": "RealtimeHub",+ },+ ],},+ "migrations": [+ {+ "tag": "v1",+ "new_sqlite_classes": [+ "RealtimeHub",+ ],+ },+ ],+ "workflows": [+ {+ "name": "mailflare-database-backup",+ "binding": "DATABASE_BACKUP_WORKFLOW",+ "class_name": "DatabaseBackupWorkflow",+ "schedules": ["0 2 * * *"],+ },+ ],+ "ratelimits": [+ {+ "name": "LOGIN_RATE_LIMIT",+ "namespace_id": "1001",+ "simple": {+ "limit": 20,+ "period": 60,+ },+ },+ ],"observability": {"enabled": true,},@@ -37,7 +69,6 @@{"binding": "DB","database_name": "mailflare",- "database_id": "f865ab42-f602-45b4-ad72-cac3e21c7834","migrations_dir": "drizzle/migrations",},],diff --git a/wrangler.jsonc.example b/wrangler.jsonc.exampleindex 9bda498..b47f7dc 100644--- a/wrangler.jsonc.example+++ b/wrangler.jsonc.example@@ -20,10 +20,24 @@"service": "mailflare",},],- "vars": {- "CF_TOKEN": "cf-token",- "CF_ACCOUNT_ID": "cf-account-id",- },+ "workflows": [+ {+ "name": "mailflare-database-backup",+ "binding": "DATABASE_BACKUP_WORKFLOW",+ "class_name": "DatabaseBackupWorkflow",+ "schedules": ["0 2 * * *"],+ },+ ],+ "ratelimits": [+ {+ "name": "LOGIN_RATE_LIMIT",+ "namespace_id": "1001",+ "simple": {+ "limit": 20,+ "period": 60,+ },+ },+ ],"observability": {"enabled": true,},@@ -38,7 +52,6 @@{"binding": "DB","database_name": "mailflare",- "database_id": "your-d1-db-id","migrations_dir": "drizzle/migrations",},],@@ -72,4 +85,4 @@},],},-}\ No newline at end of file+}