diff --git a/.github/workflows/quality-gate.yml b/.github/workflows/quality-gate.yml
new file mode 100644
index 0000000..f2aafbb
--- /dev/null
+++ b/.github/workflows/quality-gate.yml
@@ -0,0 +1,73 @@
+name: Quality Gate
+
+on:
+ pull_request:
+ push:
+ branches:
+ - main
+
+jobs:
+ quality-gate:
+ name: quality-gate
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Setup Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: 22
+ cache: npm
+
+ - name: Install dependencies
+ run: npm ci
+
+ - name: Run unit tests
+ run: npm run test:unit
+
+ - name: Run integration tests
+ run: npm run test:integration
+
+ - name: Build app
+ run: npm run build
+
+ - name: Install Playwright (Chromium)
+ run: npx playwright install --with-deps chromium
+
+ - name: Run E2E smoke tests
+ run: npm run test:e2e:smoke
+
+ known-issues:
+ name: known-issues
+ runs-on: ubuntu-latest
+ continue-on-error: true
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Setup Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: 22
+ cache: npm
+
+ - name: Install dependencies
+ run: npm ci
+
+ - name: Run known issues suite
+ run: |
+ mkdir -p test-results
+ set -o pipefail
+ npm run test:known-issues 2>&1 | tee test-results/known-issues.log
+
+ - name: Upload known-issues artifacts
+ if: always()
+ uses: actions/upload-artifact@v4
+ with:
+ name: known-issues-report
+ path: |
+ test-results/known-issues.log
+ test-results/known-issues-junit.xml
diff --git a/.gitignore b/.gitignore
index f7dc7d5..2f60ae3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,4 +6,6 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
.DS_Store
-.env
\ No newline at end of file
+.env
+playwright-report
+test-results
diff --git a/BRANCH_IMPLEMENTATION_NOTES.md b/BRANCH_IMPLEMENTATION_NOTES.md
new file mode 100644
index 0000000..6ca3d53
--- /dev/null
+++ b/BRANCH_IMPLEMENTATION_NOTES.md
@@ -0,0 +1,34 @@
+# Branch implementation notes
+
+## Context
+This branch consolidates the test contract stabilization work for the admin catalog flow and the full test gate setup used by this project.
+
+## What was implemented
+- Standardized admin mutator return contract in CatalogProvider with explicit `ok`/`error` responses.
+- Fixed false negative responses in product mutators caused by state updater timing.
+- Updated product mutation actions to validate existence using `productMap` before scheduling state updates:
+ - `updateProduct`
+ - `removeProduct`
+ - `toggleProductVisibility`
+ - `toggleProductAvailability`
+- Preserved existing state update behavior while making API responses deterministic for UI and tests.
+- Added/updated automated test layers for gate execution:
+ - unit tests (Vitest)
+ - integration tests (provider contracts)
+ - smoke e2e tests (Playwright)
+- Added test configuration files and test documentation used by CI/local gate execution.
+
+## Why this change
+- The UI/admin layer expects stable return objects from provider actions.
+- Previous implementation could return `{"ok":false,"error":"Produto nao encontrado."}` even when state updates were actually applied.
+- This mismatch was breaking integration tests and could create unreliable feedback in admin screens.
+
+## Validation performed
+- `npm run test:unit` passed.
+- `npm run test:integration` passed.
+- `npm test` (unit + integration + build + smoke e2e) passed.
+
+## Impact
+- Deterministic contract for admin product mutations.
+- Integration suite no longer fails on false negatives.
+- Full test gate is green with the current implementation.
diff --git a/TESTING.md b/TESTING.md
new file mode 100644
index 0000000..88df3e3
--- /dev/null
+++ b/TESTING.md
@@ -0,0 +1,26 @@
+# Testing and Deployment Gate
+
+## Stack
+- Unit/Integration: Vitest + Testing Library
+- E2E smoke: Playwright (Chromium)
+- CI pipeline: GitHub Actions (`.github/workflows/quality-gate.yml`)
+
+## Commands
+- `npm run test:unit`
+- `npm run test:integration`
+- `npm run test:e2e:smoke`
+- `npm run test:known-issues`
+- `npm run test:gate` (unit + integration + build + e2e smoke)
+
+## Gate policy
+`test:gate` is the blocking suite for important deploys (push/merge to `main`).
+
+## Known issues policy
+`test:known-issues` intentionally tracks unresolved risks and may fail.
+In CI it runs in a non-blocking job (`known-issues`) and uploads artifacts.
+
+## Suite layout
+- `tests/unit`: deterministic domain/server tests
+- `tests/integration`: provider behavior with jsdom
+- `tests/e2e/smoke`: user journey smoke coverage
+- `tests/known-issues`: regression risks tracked outside gate
diff --git a/app/carrinho/page.js b/app/carrinho/page.js
index eed3500..f69cc8e 100644
--- a/app/carrinho/page.js
+++ b/app/carrinho/page.js
@@ -7,7 +7,7 @@ import { useCart } from "@/components/providers/cart-provider";
import { useToast } from "@/components/providers/toast-provider";
import TransitionLink from "@/components/transition-link";
import WhatsAppAttendantPicker from "@/components/whatsapp-attendant-picker";
-import { defaultAttendants, resolveAttendantFlow } from "@/lib/attendants-data";
+import { resolveAttendantFlow } from "@/lib/attendants-data";
import { buildAttendantWhatsAppLink, buildWhatsAppMessage, formatCurrency } from "@/lib/store-utils";
import { openWhatsAppLink, resolveWhatsAppAttendantAction } from "@/lib/whatsapp-attendant-flow";
@@ -17,7 +17,8 @@ export default function CartPage() {
const { showToast } = useToast();
const [isPickerOpen, setIsPickerOpen] = useState(false);
const [pendingMessage, setPendingMessage] = useState("");
- const attendantFlow = resolveAttendantFlow(defaultAttendants);
+ const attendantFlow = resolveAttendantFlow();
+ const attendants = attendantFlow.attendants;
const message = buildWhatsAppMessage(items, siteSettings);
@@ -78,7 +79,7 @@ export default function CartPage() {
}
const checkoutMessage = buildWhatsAppMessage(items, siteSettings);
- const action = resolveWhatsAppAttendantAction(defaultAttendants, checkoutMessage);
+ const action = resolveWhatsAppAttendantAction(attendants, checkoutMessage);
if (action.mode === "blocked") {
showToast({
@@ -221,7 +222,7 @@ export default function CartPage() {
diff --git a/app/contato/page.js b/app/contato/page.js
index c9fad55..0073fad 100644
--- a/app/contato/page.js
+++ b/app/contato/page.js
@@ -6,7 +6,7 @@ import WhatsAppAttendantPicker from "@/components/whatsapp-attendant-picker";
import { useCatalog } from "@/components/providers/catalog-provider";
import { useCart } from "@/components/providers/cart-provider";
import { useToast } from "@/components/providers/toast-provider";
-import { defaultAttendants, resolveAttendantFlow } from "@/lib/attendants-data";
+import { resolveAttendantFlow } from "@/lib/attendants-data";
import { buildAttendantWhatsAppLink, buildWhatsAppMessage } from "@/lib/store-utils";
import { openWhatsAppLink, resolveWhatsAppAttendantAction } from "@/lib/whatsapp-attendant-flow";
@@ -16,7 +16,7 @@ export default function ContactPage() {
const { showToast } = useToast();
const [isPickerOpen, setIsPickerOpen] = useState(false);
const [pendingMessage, setPendingMessage] = useState("");
- const attendantFlow = resolveAttendantFlow(defaultAttendants);
+ const attendantFlow = resolveAttendantFlow();
const attendants = attendantFlow.attendants;
const message = buildWhatsAppMessage(items, siteSettings);
diff --git a/components/providers/catalog-provider.js b/components/providers/catalog-provider.js
index 9de7537..483c78a 100644
--- a/components/providers/catalog-provider.js
+++ b/components/providers/catalog-provider.js
@@ -7,6 +7,14 @@ const CATALOG_STORAGE_KEY = "li-rilko-catalog-v1";
const CatalogContext = createContext(null);
+function okResult(extra = {}) {
+ return { ok: true, ...extra };
+}
+
+function errorResult(error) {
+ return { ok: false, error };
+}
+
function normalizeText(value, fallback = "") {
const normalized = String(value ?? "").trim();
return normalized || fallback;
@@ -350,13 +358,13 @@ export function CatalogProvider({ children }) {
const addProduct = useCallback((input) => {
const normalized = normalizeProductInput(input);
if (!normalized.name) {
- return { ok: false, error: "Nome do produto é obrigatório." };
+ return errorResult("Nome do produto é obrigatório.");
}
if (!normalized.category) {
- return { ok: false, error: "Categoria é obrigatória." };
+ return errorResult("Categoria é obrigatória.");
}
if (!normalized.sub) {
- return { ok: false, error: "Subcategoria é obrigatória." };
+ return errorResult("Subcategoria é obrigatória.");
}
let createdId = "";
@@ -382,89 +390,102 @@ export function CatalogProvider({ children }) {
};
});
- return { ok: true, id: createdId };
+ return okResult({ id: createdId });
}, []);
- const updateProduct = useCallback((productId, input) => {
- let updated = false;
- let error = "";
-
- setCatalog((prev) => {
- const current = prev.products.find((product) => product.id === productId);
+ const updateProduct = useCallback(
+ (productId, input) => {
+ const current = productMap.get(productId);
if (!current) {
- error = "Produto não encontrado.";
- return prev;
+ return errorResult("Produto não encontrado.");
}
const normalized = normalizeProductInput(input, current);
if (!normalized.name || !normalized.category || !normalized.sub) {
- error = "Nome, categoria e subcategoria são obrigatórios.";
- return prev;
+ return errorResult("Nome, categoria e subcategoria são obrigatórios.");
}
- updated = true;
- const nextCategories = ensureCategoryAndSub(prev.categories, normalized.category, normalized.sub);
-
- return {
+ setCatalog((prev) => ({
...prev,
- categories: nextCategories,
+ categories: ensureCategoryAndSub(prev.categories, normalized.category, normalized.sub),
products: prev.products.map((product) => (product.id === productId ? { ...product, ...normalized } : product)),
- };
- });
+ }));
- if (!updated) {
- return { ok: false, error: error || "Não foi possível atualizar o produto." };
- }
+ return okResult();
+ },
+ [productMap],
+ );
- return { ok: true };
- }, []);
+ const removeProduct = useCallback(
+ (productId) => {
+ if (!productMap.has(productId)) {
+ return errorResult("Produto não encontrado.");
+ }
- const removeProduct = useCallback((productId) => {
- let removed = false;
+ setCatalog((prev) => ({
+ ...prev,
+ products: prev.products.filter((product) => product.id !== productId),
+ }));
- setCatalog((prev) => {
- const nextProducts = prev.products.filter((product) => product.id !== productId);
- removed = nextProducts.length < prev.products.length;
+ return okResult();
+ },
+ [productMap],
+ );
- if (!removed) {
- return prev;
+ const toggleProductVisibility = useCallback(
+ (productId) => {
+ if (!productMap.has(productId)) {
+ return errorResult("Produto não encontrado.");
}
- return {
+ setCatalog((prev) => ({
...prev,
- products: nextProducts,
- };
- });
-
- return removed;
- }, []);
+ products: prev.products.map((product) =>
+ product.id === productId ? { ...product, isVisible: !product.isVisible } : product,
+ ),
+ }));
+
+ return okResult();
+ },
+ [productMap],
+ );
- const toggleProductVisibility = useCallback((productId) => {
- setCatalog((prev) => ({
- ...prev,
- products: prev.products.map((product) =>
- product.id === productId ? { ...product, isVisible: !product.isVisible } : product,
- ),
- }));
- }, []);
+ const toggleProductAvailability = useCallback(
+ (productId) => {
+ if (!productMap.has(productId)) {
+ return errorResult("Produto não encontrado.");
+ }
- const toggleProductAvailability = useCallback((productId) => {
- setCatalog((prev) => ({
- ...prev,
- products: prev.products.map((product) =>
- product.id === productId ? { ...product, isAvailable: !product.isAvailable } : product,
- ),
- }));
- }, []);
+ setCatalog((prev) => ({
+ ...prev,
+ products: prev.products.map((product) =>
+ product.id === productId ? { ...product, isAvailable: !product.isAvailable } : product,
+ ),
+ }));
+
+ return okResult();
+ },
+ [productMap],
+ );
const saveCategories = useCallback((nextCategories) => {
+ if (!Array.isArray(nextCategories)) {
+ return errorResult("Formato de categorias inválido.");
+ }
+
setCatalog((prev) => ({
...prev,
categories: sanitizeCategories(nextCategories, prev.categories),
}));
+
+ return okResult();
}, []);
const saveSiteSettings = useCallback((nextSettings) => {
+ if (!nextSettings || typeof nextSettings !== "object") {
+ return errorResult("Formato de configurações inválido.");
+ }
+
setCatalog((prev) => ({
...prev,
siteSettings: sanitizeSiteSettings({
@@ -472,17 +493,27 @@ export function CatalogProvider({ children }) {
...nextSettings,
}),
}));
+
+ return okResult();
}, []);
const saveContactChannels = useCallback((nextChannels) => {
+ if (!Array.isArray(nextChannels)) {
+ return errorResult("Formato de canais inválido.");
+ }
+
setCatalog((prev) => ({
...prev,
contactChannels: sanitizeContactChannels(nextChannels),
}));
+
+ return okResult();
}, []);
const resetCatalog = useCallback(() => {
setCatalog(createDefaultCatalog());
+
+ return okResult();
}, []);
const value = useMemo(
diff --git a/components/whatsapp-float-widget.js b/components/whatsapp-float-widget.js
index 6b4a813..3bd80f4 100644
--- a/components/whatsapp-float-widget.js
+++ b/components/whatsapp-float-widget.js
@@ -6,7 +6,7 @@ import WhatsAppAttendantPicker from "@/components/whatsapp-attendant-picker";
import { useCatalog } from "@/components/providers/catalog-provider";
import { useCart } from "@/components/providers/cart-provider";
import { useToast } from "@/components/providers/toast-provider";
-import { defaultAttendants, resolveAttendantFlow } from "@/lib/attendants-data";
+import { resolveAttendantFlow } from "@/lib/attendants-data";
import { buildAttendantWhatsAppLink } from "@/lib/store-utils";
import { openWhatsAppLink, resolveWhatsAppAttendantAction } from "@/lib/whatsapp-attendant-flow";
@@ -17,7 +17,7 @@ export default function WhatsAppFloatWidget() {
const { siteSettings } = useCatalog();
const { count } = useCart();
const { showToast } = useToast();
- const attendantFlow = resolveAttendantFlow(defaultAttendants);
+ const attendantFlow = resolveAttendantFlow();
const attendants = attendantFlow.attendants;
const directAttendant = attendantFlow.mode === "direct" ? attendantFlow.attendant : null;
diff --git a/lib/attendants-data.js b/lib/attendants-data.js
index cc0b903..915f4d7 100644
--- a/lib/attendants-data.js
+++ b/lib/attendants-data.js
@@ -3,8 +3,18 @@ import { sanitizeAttendants } from "@/lib/attendants-utils";
export const defaultAttendants = sanitizeAttendants(attendantsSource?.attendants);
+function resolveRuntimeAttendantsOverride() {
+ if (process.env.NODE_ENV === "production" || typeof window === "undefined") {
+ return null;
+ }
+
+ const override = window.__LI_RILKO_TEST_ATTENDANTS__;
+ return Array.isArray(override) ? override : null;
+}
+
export function getValidAttendants(attendants = defaultAttendants) {
- return sanitizeAttendants(attendants);
+ const source = attendants === defaultAttendants ? resolveRuntimeAttendantsOverride() || attendants : attendants;
+ return sanitizeAttendants(source);
}
export function resolveAttendantFlow(attendants = defaultAttendants) {
diff --git a/lib/attendants-utils.js b/lib/attendants-utils.js
index 97452b4..ed82257 100644
--- a/lib/attendants-utils.js
+++ b/lib/attendants-utils.js
@@ -38,9 +38,21 @@ export function sanitizeAttendants(rawAttendants, options = {}) {
return requireOne ? fallback : [];
}
+ const seenPhones = new Set();
const normalized = rawAttendants
.map(toNormalizedAttendant)
- .filter((attendant) => isValidName(attendant.name) && isValidPhone(attendant.phone))
+ .filter((attendant) => {
+ if (!isValidName(attendant.name) || !isValidPhone(attendant.phone)) {
+ return false;
+ }
+
+ if (seenPhones.has(attendant.phone)) {
+ return false;
+ }
+
+ seenPhones.add(attendant.phone);
+ return true;
+ })
.slice(0, MAX_ATTENDANTS);
if (requireOne && normalized.length === 0) {
@@ -64,6 +76,7 @@ export function validateAttendantsInput(rawAttendants) {
}
const normalized = rawAttendants.map(toNormalizedAttendant);
+ const seenPhones = new Map();
for (let index = 0; index < normalized.length; index += 1) {
const attendant = normalized[index];
@@ -82,6 +95,16 @@ export function validateAttendantsInput(rawAttendants) {
error: `O número do atendente ${position} deve ser brasileiro válido com DDD (10 ou 11 dígitos).`,
};
}
+
+ if (seenPhones.has(attendant.phone)) {
+ const duplicateOf = seenPhones.get(attendant.phone);
+ return {
+ ok: false,
+ error: `O número do atendente ${position} está duplicado com o atendente ${duplicateOf}.`,
+ };
+ }
+
+ seenPhones.set(attendant.phone, position);
}
return {
diff --git a/lib/store-utils.js b/lib/store-utils.js
index 1b8d9b8..a871850 100644
--- a/lib/store-utils.js
+++ b/lib/store-utils.js
@@ -45,8 +45,15 @@ export function buildWhatsAppMessage(cartItems, settings) {
});
const totalCash = cartItems.reduce((acc, item) => acc + Number(item.subtotalCash ?? 0), 0);
const totalInstallment = cartItems.reduce((acc, item) => acc + Number(item.subtotalInstallment ?? item.subtotal ?? 0), 0);
-
- return `${intro}\n\n${lines.join("\n")}\n\nTotal à vista: ${formatCurrency(totalCash)}\nTotal a prazo: ${formatCurrency(totalInstallment)}`;
+ const unavailableItems = cartItems
+ .filter((item) => item?.isAvailable === false)
+ .map((item) => `• ${item.name}`)
+ .join("\n");
+ const unavailableWarning = unavailableItems
+ ? `\n\n⚠️ Itens indisponíveis no momento:\n${unavailableItems}\nPor favor, confirme a disponibilidade antes de fechar o pedido.`
+ : "";
+
+ return `${intro}\n\n${lines.join("\n")}\n\nTotal à vista: ${formatCurrency(totalCash)}\nTotal a prazo: ${formatCurrency(totalInstallment)}${unavailableWarning}`;
}
function buildWhatsAppLinkFromText(text, phone) {
diff --git a/package-lock.json b/package-lock.json
index 8998780..9cb2ac5 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -12,6 +12,312 @@
"next": "^16.1.6",
"react": "^19.2.4",
"react-dom": "^19.2.4"
+ },
+ "devDependencies": {
+ "@playwright/test": "^1.58.2",
+ "@testing-library/jest-dom": "^6.9.1",
+ "@testing-library/react": "^16.3.2",
+ "@testing-library/user-event": "^14.6.1",
+ "@vitejs/plugin-react": "^6.0.0",
+ "@vitest/coverage-v8": "^4.1.0",
+ "jsdom": "^28.1.0",
+ "server-only": "^0.0.1",
+ "vitest": "^4.1.0"
+ }
+ },
+ "node_modules/@acemir/cssom": {
+ "version": "0.9.31",
+ "resolved": "https://registry.npmjs.org/@acemir/cssom/-/cssom-0.9.31.tgz",
+ "integrity": "sha512-ZnR3GSaH+/vJ0YlHau21FjfLYjMpYVIzTD8M8vIEQvIGxeOXyXdzCI140rrCY862p/C/BbzWsjc1dgnM9mkoTA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@adobe/css-tools": {
+ "version": "4.4.4",
+ "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.4.4.tgz",
+ "integrity": "sha512-Elp+iwUx5rN5+Y8xLt5/GRoG20WGoDCQ/1Fb+1LiGtvwbDavuSk0jhD/eZdckHAuzcDzccnkv+rEjyWfRx18gg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@asamuzakjp/css-color": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/@asamuzakjp/css-color/-/css-color-5.0.1.tgz",
+ "integrity": "sha512-2SZFvqMyvboVV1d15lMf7XiI3m7SDqXUuKaTymJYLN6dSGadqp+fVojqJlVoMlbZnlTmu3S0TLwLTJpvBMO1Aw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@csstools/css-calc": "^3.1.1",
+ "@csstools/css-color-parser": "^4.0.2",
+ "@csstools/css-parser-algorithms": "^4.0.0",
+ "@csstools/css-tokenizer": "^4.0.0",
+ "lru-cache": "^11.2.6"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
+ }
+ },
+ "node_modules/@asamuzakjp/dom-selector": {
+ "version": "6.8.1",
+ "resolved": "https://registry.npmjs.org/@asamuzakjp/dom-selector/-/dom-selector-6.8.1.tgz",
+ "integrity": "sha512-MvRz1nCqW0fsy8Qz4dnLIvhOlMzqDVBabZx6lH+YywFDdjXhMY37SmpV1XFX3JzG5GWHn63j6HX6QPr3lZXHvQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@asamuzakjp/nwsapi": "^2.3.9",
+ "bidi-js": "^1.0.3",
+ "css-tree": "^3.1.0",
+ "is-potential-custom-element-name": "^1.0.1",
+ "lru-cache": "^11.2.6"
+ }
+ },
+ "node_modules/@asamuzakjp/nwsapi": {
+ "version": "2.3.9",
+ "resolved": "https://registry.npmjs.org/@asamuzakjp/nwsapi/-/nwsapi-2.3.9.tgz",
+ "integrity": "sha512-n8GuYSrI9bF7FFZ/SjhwevlHc8xaVlb/7HmHelnc/PZXBD2ZR49NnN9sMMuDdEGPeeRQ5d0hqlSlEpgCX3Wl0Q==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "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",
+ "peer": true,
+ "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/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/parser": {
+ "version": "7.29.0",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.0.tgz",
+ "integrity": "sha512-IyDgFV5GeDUVX4YdF/3CPULtVGSXXMLh1xVIgdCgxApktqnQV0r7/8Nqthg+8YLGaAtdyIlo2qIdZrbCv4+7ww==",
+ "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.28.6",
+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.28.6.tgz",
+ "integrity": "sha512-05WQkdpL9COIMz4LjTxGpPNCdlpyimKppYNoJ5Di5EUObifl8t4tuLuUBBZEpoLYOmfvIWrsp9fCl0HoPRVTdA==",
+ "dev": true,
+ "license": "MIT",
+ "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/@bcoe/v8-coverage": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-1.0.2.tgz",
+ "integrity": "sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@bramus/specificity": {
+ "version": "2.4.2",
+ "resolved": "https://registry.npmjs.org/@bramus/specificity/-/specificity-2.4.2.tgz",
+ "integrity": "sha512-ctxtJ/eA+t+6q2++vj5j7FYX3nRu311q1wfYH3xjlLOsczhlhxAg2FWNUXhpGvAw3BWo1xBcvOV6/YLc2r5FJw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "css-tree": "^3.0.0"
+ },
+ "bin": {
+ "specificity": "bin/cli.js"
+ }
+ },
+ "node_modules/@csstools/color-helpers": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/@csstools/color-helpers/-/color-helpers-6.0.2.tgz",
+ "integrity": "sha512-LMGQLS9EuADloEFkcTBR3BwV/CGHV7zyDxVRtVDTwdI2Ca4it0CCVTT9wCkxSgokjE5Ho41hEPgb8OEUwoXr6Q==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/csstools"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/csstools"
+ }
+ ],
+ "license": "MIT-0",
+ "engines": {
+ "node": ">=20.19.0"
+ }
+ },
+ "node_modules/@csstools/css-calc": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/@csstools/css-calc/-/css-calc-3.1.1.tgz",
+ "integrity": "sha512-HJ26Z/vmsZQqs/o3a6bgKslXGFAungXGbinULZO3eMsOyNJHeBBZfup5FiZInOghgoM4Hwnmw+OgbJCNg1wwUQ==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/csstools"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/csstools"
+ }
+ ],
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.19.0"
+ },
+ "peerDependencies": {
+ "@csstools/css-parser-algorithms": "^4.0.0",
+ "@csstools/css-tokenizer": "^4.0.0"
+ }
+ },
+ "node_modules/@csstools/css-color-parser": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/@csstools/css-color-parser/-/css-color-parser-4.0.2.tgz",
+ "integrity": "sha512-0GEfbBLmTFf0dJlpsNU7zwxRIH0/BGEMuXLTCvFYxuL1tNhqzTbtnFICyJLTNK4a+RechKP75e7w42ClXSnJQw==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/csstools"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/csstools"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "@csstools/color-helpers": "^6.0.2",
+ "@csstools/css-calc": "^3.1.1"
+ },
+ "engines": {
+ "node": ">=20.19.0"
+ },
+ "peerDependencies": {
+ "@csstools/css-parser-algorithms": "^4.0.0",
+ "@csstools/css-tokenizer": "^4.0.0"
+ }
+ },
+ "node_modules/@csstools/css-parser-algorithms": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-4.0.0.tgz",
+ "integrity": "sha512-+B87qS7fIG3L5h3qwJ/IFbjoVoOe/bpOdh9hAjXbvx0o8ImEmUsGXN0inFOnk2ChCFgqkkGFQ+TpM5rbhkKe4w==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/csstools"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/csstools"
+ }
+ ],
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.19.0"
+ },
+ "peerDependencies": {
+ "@csstools/css-tokenizer": "^4.0.0"
+ }
+ },
+ "node_modules/@csstools/css-syntax-patches-for-csstree": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@csstools/css-syntax-patches-for-csstree/-/css-syntax-patches-for-csstree-1.1.0.tgz",
+ "integrity": "sha512-H4tuz2nhWgNKLt1inYpoVCfbJbMwX/lQKp3g69rrrIMIYlFD9+zTykOKhNR8uGrAmbS/kT9n6hTFkmDkxLgeTA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/csstools"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/csstools"
+ }
+ ],
+ "license": "MIT-0"
+ },
+ "node_modules/@csstools/css-tokenizer": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-4.0.0.tgz",
+ "integrity": "sha512-QxULHAm7cNu72w97JUNCBFODFaXpbDg+dP8b/oWFAZ2MTRppA3U00Y2L1HqaS4J6yBqxwa/Y3nMBaxVKbB/NsA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/csstools"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/csstools"
+ }
+ ],
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.19.0"
+ }
+ },
+ "node_modules/@emnapi/core": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.9.0.tgz",
+ "integrity": "sha512-0DQ98G9ZQZOxfUcQn1waV2yS8aWdZ6kJMbYCJB3oUBecjWYO1fqJ+a1DRfPF3O5JEkwqwP1A9QEN/9mYm2Yd0w==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@emnapi/wasi-threads": "1.2.0",
+ "tslib": "^2.4.0"
}
},
"node_modules/@emnapi/runtime": {
@@ -24,6 +330,35 @@
"tslib": "^2.4.0"
}
},
+ "node_modules/@emnapi/wasi-threads": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.0.tgz",
+ "integrity": "sha512-N10dEJNSsUx41Z6pZsXU8FjPjpBEplgH24sfkmITrBED1/U2Esum9F3lfLrMjKHHjmi557zQn7kR9R+XWXu5Rg==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@exodus/bytes": {
+ "version": "1.15.0",
+ "resolved": "https://registry.npmjs.org/@exodus/bytes/-/bytes-1.15.0.tgz",
+ "integrity": "sha512-UY0nlA+feH81UGSHv92sLEPLCeZFjXOuHhrIo0HQydScuQc8s0A7kL/UdgwgDq8g8ilksmuoF35YVTNphV2aBQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
+ },
+ "peerDependencies": {
+ "@noble/hashes": "^1.8.0 || ^2.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@noble/hashes": {
+ "optional": true
+ }
+ }
+ },
"node_modules/@img/colour": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.0.0.tgz",
@@ -490,6 +825,51 @@
"url": "https://opencollective.com/libvips"
}
},
+ "node_modules/@jridgewell/resolve-uri": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@jridgewell/sourcemap-codec": {
+ "version": "1.5.5",
+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
+ "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@jridgewell/trace-mapping": {
+ "version": "0.3.31",
+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
+ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/resolve-uri": "^3.1.0",
+ "@jridgewell/sourcemap-codec": "^1.4.14"
+ }
+ },
+ "node_modules/@napi-rs/wasm-runtime": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.1.tgz",
+ "integrity": "sha512-p64ah1M1ld8xjWv3qbvFwHiFVWrq1yFvV4f7w+mzaqiR4IlSgkqhcRdHwsGgomwzBH51sRY4NEowLxnaBjcW/A==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@emnapi/core": "^1.7.1",
+ "@emnapi/runtime": "^1.7.1",
+ "@tybys/wasm-util": "^0.10.1"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/Brooooooklyn"
+ }
+ },
"node_modules/@next/env": {
"version": "16.1.6",
"resolved": "https://registry.npmjs.org/@next/env/-/env-16.1.6.tgz",
@@ -624,79 +1004,1499 @@
"node": ">= 10"
}
},
- "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/@oxc-project/runtime": {
+ "version": "0.115.0",
+ "resolved": "https://registry.npmjs.org/@oxc-project/runtime/-/runtime-0.115.0.tgz",
+ "integrity": "sha512-Rg8Wlt5dCbXhQnsXPrkOjL1DTSvXLgb2R/KYfnf1/K+R0k6UMLEmbQXPM+kwrWqSmWA2t0B1EtHy2/3zikQpvQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
}
},
- "node_modules/baseline-browser-mapping": {
- "version": "2.9.19",
- "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.19.tgz",
- "integrity": "sha512-ipDqC8FrAl/76p2SSWKSI+H9tFwm7vYqXQrItCuiVPt26Km0jS+NzSsBWAaBusvSbQcfJG+JitdMm+wZAgTYqg==",
+ "node_modules/@oxc-project/types": {
+ "version": "0.115.0",
+ "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.115.0.tgz",
+ "integrity": "sha512-4n91DKnebUS4yjUHl2g3/b2T+IUdCfmoZGhmwsovZCDaJSs+QkVAM+0AqqTxHSsHfeiMuueT75cZaZcT/m0pSw==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/Boshen"
+ }
+ },
+ "node_modules/@playwright/test": {
+ "version": "1.58.2",
+ "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.58.2.tgz",
+ "integrity": "sha512-akea+6bHYBBfA9uQqSYmlJXn61cTa+jbO87xVLCWbTqbWadRVmhxlXATaOjOgcBaWU4ePo0wB41KMFv3o35IXA==",
+ "devOptional": true,
"license": "Apache-2.0",
+ "dependencies": {
+ "playwright": "1.58.2"
+ },
"bin": {
- "baseline-browser-mapping": "dist/cli.js"
+ "playwright": "cli.js"
+ },
+ "engines": {
+ "node": ">=18"
}
},
- "node_modules/caniuse-lite": {
- "version": "1.0.30001769",
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001769.tgz",
- "integrity": "sha512-BCfFL1sHijQlBGWBMuJyhZUhzo7wer5sVj9hqekB/7xn0Ypy+pER/edCYQm4exbXj4WiySGp40P8UuTh6w1srg==",
- "funding": [
- {
- "type": "opencollective",
- "url": "https://opencollective.com/browserslist"
- },
- {
- "type": "tidelift",
- "url": "https://tidelift.com/funding/github/npm/caniuse-lite"
- },
- {
- "type": "github",
- "url": "https://github.com/sponsors/ai"
- }
+ "node_modules/@rolldown/binding-android-arm64": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.0.0-rc.9.tgz",
+ "integrity": "sha512-lcJL0bN5hpgJfSIz/8PIf02irmyL43P+j1pTCfbD1DbLkmGRuFIA4DD3B3ZOvGqG0XiVvRznbKtN0COQVaKUTg==",
+ "cpu": [
+ "arm64"
],
- "license": "CC-BY-4.0"
- },
- "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/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",
+ "dev": true,
+ "license": "MIT",
"optional": true,
+ "os": [
+ "android"
+ ],
"engines": {
- "node": ">=8"
+ "node": "^20.19.0 || >=22.12.0"
}
},
- "node_modules/nanoid": {
- "version": "3.3.11",
- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",
- "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/ai"
- }
+ "node_modules/@rolldown/binding-darwin-arm64": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.0.0-rc.9.tgz",
+ "integrity": "sha512-J7Zk3kLYFsLtuH6U+F4pS2sYVzac0qkjcO5QxHS7OS7yZu2LRs+IXo+uvJ/mvpyUljDJ3LROZPoQfgBIpCMhdQ==",
+ "cpu": [
+ "arm64"
],
+ "dev": true,
"license": "MIT",
- "bin": {
- "nanoid": "bin/nanoid.cjs"
- },
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
"engines": {
- "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
+ "node": "^20.19.0 || >=22.12.0"
}
},
- "node_modules/next": {
+ "node_modules/@rolldown/binding-darwin-x64": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.0.0-rc.9.tgz",
+ "integrity": "sha512-iwtmmghy8nhfRGeNAIltcNXzD0QMNaaA5U/NyZc1Ia4bxrzFByNMDoppoC+hl7cDiUq5/1CnFthpT9n+UtfFyg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-freebsd-x64": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.0.0-rc.9.tgz",
+ "integrity": "sha512-DLFYI78SCiZr5VvdEplsVC2Vx53lnA4/Ga5C65iyldMVaErr86aiqCoNBLl92PXPfDtUYjUh+xFFor40ueNs4Q==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-linux-arm-gnueabihf": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.0.0-rc.9.tgz",
+ "integrity": "sha512-CsjTmTwd0Hri6iTw/DRMK7kOZ7FwAkrO4h8YWKoX/kcj833e4coqo2wzIFywtch/8Eb5enQ/lwLM7w6JX1W5RQ==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-linux-arm64-gnu": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.0-rc.9.tgz",
+ "integrity": "sha512-2x9O2JbSPxpxMDhP9Z74mahAStibTlrBMW0520+epJH5sac7/LwZW5Bmg/E6CXuEF53JJFW509uP+lSedaUNxg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-linux-arm64-musl": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.0-rc.9.tgz",
+ "integrity": "sha512-JA1QRW31ogheAIRhIg9tjMfsYbglXXYGNPLdPEYrwFxdbkQCAzvpSCSHCDWNl4hTtrol8WeboCSEpjdZK8qrCg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-linux-ppc64-gnu": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.0.0-rc.9.tgz",
+ "integrity": "sha512-aOKU9dJheda8Kj8Y3w9gnt9QFOO+qKPAl8SWd7JPHP+Cu0EuDAE5wokQubLzIDQWg2myXq2XhTpOVS07qqvT+w==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-linux-s390x-gnu": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.0.0-rc.9.tgz",
+ "integrity": "sha512-OalO94fqj7IWRn3VdXWty75jC5dk4C197AWEuMhIpvVv2lw9fiPhud0+bW2ctCxb3YoBZor71QHbY+9/WToadA==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-linux-x64-gnu": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.0-rc.9.tgz",
+ "integrity": "sha512-cVEl1vZtBsBZna3YMjGXNvnYYrOJ7RzuWvZU0ffvJUexWkukMaDuGhUXn0rjnV0ptzGVkvc+vW9Yqy6h8YX4pg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-linux-x64-musl": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.0-rc.9.tgz",
+ "integrity": "sha512-UzYnKCIIc4heAKgI4PZ3dfBGUZefGCJ1TPDuLHoCzgrMYPb5Rv6TLFuYtyM4rWyHM7hymNdsg5ik2C+UD9VDbA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-openharmony-arm64": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.0.0-rc.9.tgz",
+ "integrity": "sha512-+6zoiF+RRyf5cdlFQP7nm58mq7+/2PFaY2DNQeD4B87N36JzfF/l9mdBkkmTvSYcYPE8tMh/o3cRlsx1ldLfog==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-wasm32-wasi": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.0.0-rc.9.tgz",
+ "integrity": "sha512-rgFN6sA/dyebil3YTlL2evvi/M+ivhfnyxec7AccTpRPccno/rPoNlqybEZQBkcbZu8Hy+eqNJCqfBR8P7Pg8g==",
+ "cpu": [
+ "wasm32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@napi-rs/wasm-runtime": "^1.1.1"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@rolldown/binding-win32-arm64-msvc": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.0-rc.9.tgz",
+ "integrity": "sha512-lHVNUG/8nlF1IQk1C0Ci574qKYyty2goMiPlRqkC5R+3LkXDkL5Dhx8ytbxq35m+pkHVIvIxviD+TWLdfeuadA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-win32-x64-msvc": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.0-rc.9.tgz",
+ "integrity": "sha512-G0oA4+w1iY5AGi5HcDTxWsoxF509hrFIPB2rduV5aDqS9FtDg1CAfa7V34qImbjfhIcA8C+RekocJZA96EarwQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/pluginutils": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.9.tgz",
+ "integrity": "sha512-w6oiRWgEBl04QkFZgmW+jnU1EC9b57Oihi2ot3HNWIQRqgHp5PnYDia5iZ5FF7rpa4EQdiqMDXjlqKGXBhsoXw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@standard-schema/spec": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz",
+ "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "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/@testing-library/dom": {
+ "version": "10.4.1",
+ "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-10.4.1.tgz",
+ "integrity": "sha512-o4PXJQidqJl82ckFaXUeoAW+XysPLauYI43Abki5hABd853iMhitooc6znOnczgbTYmEP6U6/y1ZyKAIsvMKGg==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "@babel/code-frame": "^7.10.4",
+ "@babel/runtime": "^7.12.5",
+ "@types/aria-query": "^5.0.1",
+ "aria-query": "5.3.0",
+ "dom-accessibility-api": "^0.5.9",
+ "lz-string": "^1.5.0",
+ "picocolors": "1.1.1",
+ "pretty-format": "^27.0.2"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@testing-library/jest-dom": {
+ "version": "6.9.1",
+ "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-6.9.1.tgz",
+ "integrity": "sha512-zIcONa+hVtVSSep9UT3jZ5rizo2BsxgyDYU7WFD5eICBE7no3881HGeb/QkGfsJs6JTkY1aQhT7rIPC7e+0nnA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@adobe/css-tools": "^4.4.0",
+ "aria-query": "^5.0.0",
+ "css.escape": "^1.5.1",
+ "dom-accessibility-api": "^0.6.3",
+ "picocolors": "^1.1.1",
+ "redent": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=14",
+ "npm": ">=6",
+ "yarn": ">=1"
+ }
+ },
+ "node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api": {
+ "version": "0.6.3",
+ "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz",
+ "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@testing-library/react": {
+ "version": "16.3.2",
+ "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-16.3.2.tgz",
+ "integrity": "sha512-XU5/SytQM+ykqMnAnvB2umaJNIOsLF3PVv//1Ew4CTcpz0/BRyy/af40qqrt7SjKpDdT1saBMc42CUok5gaw+g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.12.5"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "@testing-library/dom": "^10.0.0",
+ "@types/react": "^18.0.0 || ^19.0.0",
+ "@types/react-dom": "^18.0.0 || ^19.0.0",
+ "react": "^18.0.0 || ^19.0.0",
+ "react-dom": "^18.0.0 || ^19.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@testing-library/user-event": {
+ "version": "14.6.1",
+ "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-14.6.1.tgz",
+ "integrity": "sha512-vq7fv0rnt+QTXgPxr5Hjc210p6YKq2kmdziLgnsZGgLJ9e6VAShx1pACLuRjd/AS/sr7phAR58OIIpf0LlmQNw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12",
+ "npm": ">=6"
+ },
+ "peerDependencies": {
+ "@testing-library/dom": ">=7.21.4"
+ }
+ },
+ "node_modules/@tybys/wasm-util": {
+ "version": "0.10.1",
+ "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.1.tgz",
+ "integrity": "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@types/aria-query": {
+ "version": "5.0.4",
+ "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.4.tgz",
+ "integrity": "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/@types/chai": {
+ "version": "5.2.3",
+ "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz",
+ "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/deep-eql": "*",
+ "assertion-error": "^2.0.1"
+ }
+ },
+ "node_modules/@types/deep-eql": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz",
+ "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/estree": {
+ "version": "1.0.8",
+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",
+ "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@vitejs/plugin-react": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.0.0.tgz",
+ "integrity": "sha512-Bu5/eP6td3WI654+tRq+ryW1PbgA90y5pqMKpb3U7UpNk6VjI53P/ncPUd192U9dSrepLy7DHnq1XEMDz5H++w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@rolldown/pluginutils": "1.0.0-rc.7"
+ },
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ },
+ "peerDependencies": {
+ "@rolldown/plugin-babel": "^0.1.7",
+ "babel-plugin-react-compiler": "^1.0.0",
+ "vite": "^8.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@rolldown/plugin-babel": {
+ "optional": true
+ },
+ "babel-plugin-react-compiler": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@vitejs/plugin-react/node_modules/@rolldown/pluginutils": {
+ "version": "1.0.0-rc.7",
+ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.7.tgz",
+ "integrity": "sha512-qujRfC8sFVInYSPPMLQByRh7zhwkGFS4+tyMQ83srV1qrxL4g8E2tyxVVyxd0+8QeBM1mIk9KbWxkegRr76XzA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@vitest/coverage-v8": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/@vitest/coverage-v8/-/coverage-v8-4.1.0.tgz",
+ "integrity": "sha512-nDWulKeik2bL2Va/Wl4x7DLuTKAXa906iRFooIRPR+huHkcvp9QDkPQ2RJdmjOFrqOqvNfoSQLF68deE3xC3CQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@bcoe/v8-coverage": "^1.0.2",
+ "@vitest/utils": "4.1.0",
+ "ast-v8-to-istanbul": "^1.0.0",
+ "istanbul-lib-coverage": "^3.2.2",
+ "istanbul-lib-report": "^3.0.1",
+ "istanbul-reports": "^3.2.0",
+ "magicast": "^0.5.2",
+ "obug": "^2.1.1",
+ "std-env": "^4.0.0-rc.1",
+ "tinyrainbow": "^3.0.3"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ },
+ "peerDependencies": {
+ "@vitest/browser": "4.1.0",
+ "vitest": "4.1.0"
+ },
+ "peerDependenciesMeta": {
+ "@vitest/browser": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@vitest/expect": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-4.1.0.tgz",
+ "integrity": "sha512-EIxG7k4wlWweuCLG9Y5InKFwpMEOyrMb6ZJ1ihYu02LVj/bzUwn2VMU+13PinsjRW75XnITeFrQBMH5+dLvCDA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@standard-schema/spec": "^1.1.0",
+ "@types/chai": "^5.2.2",
+ "@vitest/spy": "4.1.0",
+ "@vitest/utils": "4.1.0",
+ "chai": "^6.2.2",
+ "tinyrainbow": "^3.0.3"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@vitest/mocker": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-4.1.0.tgz",
+ "integrity": "sha512-evxREh+Hork43+Y4IOhTo+h5lGmVRyjqI739Rz4RlUPqwrkFFDF6EMvOOYjTx4E8Tl6gyCLRL8Mu7Ry12a13Tw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/spy": "4.1.0",
+ "estree-walker": "^3.0.3",
+ "magic-string": "^0.30.21"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ },
+ "peerDependencies": {
+ "msw": "^2.4.9",
+ "vite": "^6.0.0 || ^7.0.0 || ^8.0.0-0"
+ },
+ "peerDependenciesMeta": {
+ "msw": {
+ "optional": true
+ },
+ "vite": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@vitest/pretty-format": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-4.1.0.tgz",
+ "integrity": "sha512-3RZLZlh88Ib0J7NQTRATfc/3ZPOnSUn2uDBUoGNn5T36+bALixmzphN26OUD3LRXWkJu4H0s5vvUeqBiw+kS0A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "tinyrainbow": "^3.0.3"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@vitest/runner": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-4.1.0.tgz",
+ "integrity": "sha512-Duvx2OzQ7d6OjchL+trw+aSrb9idh7pnNfxrklo14p3zmNL4qPCDeIJAK+eBKYjkIwG96Bc6vYuxhqDXQOWpoQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/utils": "4.1.0",
+ "pathe": "^2.0.3"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@vitest/snapshot": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-4.1.0.tgz",
+ "integrity": "sha512-0Vy9euT1kgsnj1CHttwi9i9o+4rRLEaPRSOJ5gyv579GJkNpgJK+B4HSv/rAWixx2wdAFci1X4CEPjiu2bXIMg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/pretty-format": "4.1.0",
+ "@vitest/utils": "4.1.0",
+ "magic-string": "^0.30.21",
+ "pathe": "^2.0.3"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@vitest/spy": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-4.1.0.tgz",
+ "integrity": "sha512-pz77k+PgNpyMDv2FV6qmk5ZVau6c3R8HC8v342T2xlFxQKTrSeYw9waIJG8KgV9fFwAtTu4ceRzMivPTH6wSxw==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@vitest/utils": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-4.1.0.tgz",
+ "integrity": "sha512-XfPXT6a8TZY3dcGY8EdwsBulFCIw+BeeX0RZn2x/BtiY/75YGh8FeWGG8QISN/WhaqSrE2OrlDgtF8q5uhOTmw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/pretty-format": "4.1.0",
+ "convert-source-map": "^2.0.0",
+ "tinyrainbow": "^3.0.3"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/agent-base": {
+ "version": "7.1.4",
+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz",
+ "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 14"
+ }
+ },
+ "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==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/ansi-styles": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz",
+ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/aria-query": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz",
+ "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "dequal": "^2.0.3"
+ }
+ },
+ "node_modules/assertion-error": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz",
+ "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/ast-v8-to-istanbul": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/ast-v8-to-istanbul/-/ast-v8-to-istanbul-1.0.0.tgz",
+ "integrity": "sha512-1fSfIwuDICFA4LKkCzRPO7F0hzFf0B7+Xqrl27ynQaa+Rh0e1Es0v6kWHPott3lU10AyAr7oKHa65OppjLn3Rg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/trace-mapping": "^0.3.31",
+ "estree-walker": "^3.0.3",
+ "js-tokens": "^10.0.0"
+ }
+ },
+ "node_modules/ast-v8-to-istanbul/node_modules/js-tokens": {
+ "version": "10.0.0",
+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-10.0.0.tgz",
+ "integrity": "sha512-lM/UBzQmfJRo9ABXbPWemivdCW8V2G8FHaHdypQaIy523snUjog0W71ayWXTjiR+ixeMyVHN2XcpnTd/liPg/Q==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/baseline-browser-mapping": {
+ "version": "2.9.19",
+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.19.tgz",
+ "integrity": "sha512-ipDqC8FrAl/76p2SSWKSI+H9tFwm7vYqXQrItCuiVPt26Km0jS+NzSsBWAaBusvSbQcfJG+JitdMm+wZAgTYqg==",
+ "license": "Apache-2.0",
+ "bin": {
+ "baseline-browser-mapping": "dist/cli.js"
+ }
+ },
+ "node_modules/bidi-js": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/bidi-js/-/bidi-js-1.0.3.tgz",
+ "integrity": "sha512-RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "require-from-string": "^2.0.2"
+ }
+ },
+ "node_modules/caniuse-lite": {
+ "version": "1.0.30001769",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001769.tgz",
+ "integrity": "sha512-BCfFL1sHijQlBGWBMuJyhZUhzo7wer5sVj9hqekB/7xn0Ypy+pER/edCYQm4exbXj4WiySGp40P8UuTh6w1srg==",
+ "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/chai": {
+ "version": "6.2.2",
+ "resolved": "https://registry.npmjs.org/chai/-/chai-6.2.2.tgz",
+ "integrity": "sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "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/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/css-tree": {
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.2.1.tgz",
+ "integrity": "sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "mdn-data": "2.27.1",
+ "source-map-js": "^1.2.1"
+ },
+ "engines": {
+ "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0"
+ }
+ },
+ "node_modules/css.escape": {
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz",
+ "integrity": "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/cssstyle": {
+ "version": "6.2.0",
+ "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-6.2.0.tgz",
+ "integrity": "sha512-Fm5NvhYathRnXNVndkUsCCuR63DCLVVwGOOwQw782coXFi5HhkXdu289l59HlXZBawsyNccXfWRYvLzcDCdDig==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@asamuzakjp/css-color": "^5.0.1",
+ "@csstools/css-syntax-patches-for-csstree": "^1.0.28",
+ "css-tree": "^3.1.0",
+ "lru-cache": "^11.2.6"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/data-urls": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-7.0.0.tgz",
+ "integrity": "sha512-23XHcCF+coGYevirZceTVD7NdJOqVn+49IHyxgszm+JIiHLoB2TkmPtsYkNWT1pvRSGkc35L6NHs0yHkN2SumA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "whatwg-mimetype": "^5.0.0",
+ "whatwg-url": "^16.0.0"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
+ }
+ },
+ "node_modules/debug": {
+ "version": "4.4.3",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/decimal.js": {
+ "version": "10.6.0",
+ "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.6.0.tgz",
+ "integrity": "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/dequal": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",
+ "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/detect-libc": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
+ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
+ "devOptional": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/dom-accessibility-api": {
+ "version": "0.5.16",
+ "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz",
+ "integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/entities": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz",
+ "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=0.12"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/entities?sponsor=1"
+ }
+ },
+ "node_modules/es-module-lexer": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.0.0.tgz",
+ "integrity": "sha512-5POEcUuZybH7IdmGsD8wlf0AI55wMecM9rVBTI/qEAy2c1kTOm3DjFYjrBdI2K3BaJjJYfYFeRtM0t9ssnRuxw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/estree-walker": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",
+ "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree": "^1.0.0"
+ }
+ },
+ "node_modules/expect-type": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.3.0.tgz",
+ "integrity": "sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=12.0.0"
+ }
+ },
+ "node_modules/fdir": {
+ "version": "6.5.0",
+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "peerDependencies": {
+ "picomatch": "^3 || ^4"
+ },
+ "peerDependenciesMeta": {
+ "picomatch": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/fsevents": {
+ "version": "2.3.2",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
+ "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
+ "hasInstallScript": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ }
+ },
+ "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/html-encoding-sniffer": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-6.0.0.tgz",
+ "integrity": "sha512-CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@exodus/bytes": "^1.6.0"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
+ }
+ },
+ "node_modules/html-escaper": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz",
+ "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/http-proxy-agent": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",
+ "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "agent-base": "^7.1.0",
+ "debug": "^4.3.4"
+ },
+ "engines": {
+ "node": ">= 14"
+ }
+ },
+ "node_modules/https-proxy-agent": {
+ "version": "7.0.6",
+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",
+ "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "agent-base": "^7.1.2",
+ "debug": "4"
+ },
+ "engines": {
+ "node": ">= 14"
+ }
+ },
+ "node_modules/indent-string": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz",
+ "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-potential-custom-element-name": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz",
+ "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/istanbul-lib-coverage": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz",
+ "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/istanbul-lib-report": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz",
+ "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "istanbul-lib-coverage": "^3.0.0",
+ "make-dir": "^4.0.0",
+ "supports-color": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/istanbul-reports": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.2.0.tgz",
+ "integrity": "sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "html-escaper": "^2.0.0",
+ "istanbul-lib-report": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "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",
+ "peer": true
+ },
+ "node_modules/jsdom": {
+ "version": "28.1.0",
+ "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-28.1.0.tgz",
+ "integrity": "sha512-0+MoQNYyr2rBHqO1xilltfDjV9G7ymYGlAUazgcDLQaUf8JDHbuGwsxN6U9qWaElZ4w1B2r7yEGIL3GdeW3Rug==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@acemir/cssom": "^0.9.31",
+ "@asamuzakjp/dom-selector": "^6.8.1",
+ "@bramus/specificity": "^2.4.2",
+ "@exodus/bytes": "^1.11.0",
+ "cssstyle": "^6.0.1",
+ "data-urls": "^7.0.0",
+ "decimal.js": "^10.6.0",
+ "html-encoding-sniffer": "^6.0.0",
+ "http-proxy-agent": "^7.0.2",
+ "https-proxy-agent": "^7.0.6",
+ "is-potential-custom-element-name": "^1.0.1",
+ "parse5": "^8.0.0",
+ "saxes": "^6.0.0",
+ "symbol-tree": "^3.2.4",
+ "tough-cookie": "^6.0.0",
+ "undici": "^7.21.0",
+ "w3c-xmlserializer": "^5.0.0",
+ "webidl-conversions": "^8.0.1",
+ "whatwg-mimetype": "^5.0.0",
+ "whatwg-url": "^16.0.0",
+ "xml-name-validator": "^5.0.0"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
+ },
+ "peerDependencies": {
+ "canvas": "^3.0.0"
+ },
+ "peerDependenciesMeta": {
+ "canvas": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/lightningcss": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz",
+ "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==",
+ "dev": true,
+ "license": "MPL-2.0",
+ "dependencies": {
+ "detect-libc": "^2.0.3"
+ },
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ },
+ "optionalDependencies": {
+ "lightningcss-android-arm64": "1.32.0",
+ "lightningcss-darwin-arm64": "1.32.0",
+ "lightningcss-darwin-x64": "1.32.0",
+ "lightningcss-freebsd-x64": "1.32.0",
+ "lightningcss-linux-arm-gnueabihf": "1.32.0",
+ "lightningcss-linux-arm64-gnu": "1.32.0",
+ "lightningcss-linux-arm64-musl": "1.32.0",
+ "lightningcss-linux-x64-gnu": "1.32.0",
+ "lightningcss-linux-x64-musl": "1.32.0",
+ "lightningcss-win32-arm64-msvc": "1.32.0",
+ "lightningcss-win32-x64-msvc": "1.32.0"
+ }
+ },
+ "node_modules/lightningcss-android-arm64": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz",
+ "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-darwin-arm64": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz",
+ "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-darwin-x64": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz",
+ "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-freebsd-x64": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz",
+ "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-arm-gnueabihf": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz",
+ "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-arm64-gnu": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz",
+ "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-arm64-musl": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz",
+ "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-x64-gnu": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz",
+ "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-x64-musl": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz",
+ "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-win32-arm64-msvc": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz",
+ "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-win32-x64-msvc": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz",
+ "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lru-cache": {
+ "version": "11.2.6",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.6.tgz",
+ "integrity": "sha512-ESL2CrkS/2wTPfuend7Zhkzo2u0daGJ/A2VucJOgQ/C48S/zB8MMeMHSGKYpXhIjbPxfuezITkaBH1wqv00DDQ==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "engines": {
+ "node": "20 || >=22"
+ }
+ },
+ "node_modules/lz-string": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmjs.org/lz-string/-/lz-string-1.5.0.tgz",
+ "integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "bin": {
+ "lz-string": "bin/bin.js"
+ }
+ },
+ "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/magicast": {
+ "version": "0.5.2",
+ "resolved": "https://registry.npmjs.org/magicast/-/magicast-0.5.2.tgz",
+ "integrity": "sha512-E3ZJh4J3S9KfwdjZhe2afj6R9lGIN5Pher1pF39UGrXRqq/VDaGVIGN13BjHd2u8B61hArAGOnso7nBOouW3TQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.29.0",
+ "@babel/types": "^7.29.0",
+ "source-map-js": "^1.2.1"
+ }
+ },
+ "node_modules/make-dir": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz",
+ "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "semver": "^7.5.3"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/mdn-data": {
+ "version": "2.27.1",
+ "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.27.1.tgz",
+ "integrity": "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==",
+ "dev": true,
+ "license": "CC0-1.0"
+ },
+ "node_modules/min-indent": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz",
+ "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/nanoid": {
+ "version": "3.3.11",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",
+ "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "bin": {
+ "nanoid": "bin/nanoid.cjs"
+ },
+ "engines": {
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
+ }
+ },
+ "node_modules/next": {
"version": "16.1.6",
"resolved": "https://registry.npmjs.org/next/-/next-16.1.6.tgz",
"integrity": "sha512-hkyRkcu5x/41KoqnROkfTm2pZVbKxvbZRuNvKXLRXxs3VfyO0WhY50TQS40EuKO9SW3rBj/sF3WbVwDACeMZyw==",
@@ -749,12 +2549,88 @@
}
}
},
+ "node_modules/obug": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/obug/-/obug-2.1.1.tgz",
+ "integrity": "sha512-uTqF9MuPraAQ+IsnPf366RG4cP9RtUi7MLO1N3KEc+wb0a6yKpeL0lmk2IB1jY5KHPAlTc6T/JRdC/YqxHNwkQ==",
+ "dev": true,
+ "funding": [
+ "https://github.com/sponsors/sxzz",
+ "https://opencollective.com/debug"
+ ],
+ "license": "MIT"
+ },
+ "node_modules/parse5": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/parse5/-/parse5-8.0.0.tgz",
+ "integrity": "sha512-9m4m5GSgXjL4AjumKzq1Fgfp3Z8rsvjRNbnkVwfu2ImRqE5D0LnY2QfDen18FSY9C573YU5XxSapdHZTZ2WolA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "entities": "^6.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/inikulin/parse5?sponsor=1"
+ }
+ },
+ "node_modules/pathe": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",
+ "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/picocolors": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
"integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
"license": "ISC"
},
+ "node_modules/picomatch": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",
+ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/playwright": {
+ "version": "1.58.2",
+ "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.58.2.tgz",
+ "integrity": "sha512-vA30H8Nvkq/cPBnNw4Q8TWz1EJyqgpuinBcHET0YVJVFldr8JDNiU9LaWAE1KqSkRYazuaBhTpB5ZzShOezQ6A==",
+ "devOptional": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "playwright-core": "1.58.2"
+ },
+ "bin": {
+ "playwright": "cli.js"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "optionalDependencies": {
+ "fsevents": "2.3.2"
+ }
+ },
+ "node_modules/playwright-core": {
+ "version": "1.58.2",
+ "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.58.2.tgz",
+ "integrity": "sha512-yZkEtftgwS8CsfYo7nm0KE8jsvm6i/PTgVtB8DL726wNf6H2IMsDuxCpJj59KDaxCtSnrWan2AeDqM7JBaultg==",
+ "devOptional": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "playwright-core": "cli.js"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
"node_modules/postcss": {
"version": "8.4.31",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz",
@@ -783,12 +2659,37 @@
"node": "^10 || ^12 || >=14"
}
},
+ "node_modules/pretty-format": {
+ "version": "27.5.1",
+ "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz",
+ "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "ansi-regex": "^5.0.1",
+ "ansi-styles": "^5.0.0",
+ "react-is": "^17.0.1"
+ },
+ "engines": {
+ "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0"
+ }
+ },
+ "node_modules/punycode": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
+ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
"node_modules/react": {
"version": "19.2.4",
"resolved": "https://registry.npmjs.org/react/-/react-19.2.4.tgz",
"integrity": "sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ==",
"license": "MIT",
- "peer": true,
"engines": {
"node": ">=0.10.0"
}
@@ -798,7 +2699,6 @@
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.4.tgz",
"integrity": "sha512-AXJdLo8kgMbimY95O2aKQqsz2iWi9jMgKJhRBAxECE4IFxfcazB2LmzloIoibJI3C12IlY20+KFaLv+71bUJeQ==",
"license": "MIT",
- "peer": true,
"dependencies": {
"scheduler": "^0.27.0"
},
@@ -806,6 +2706,85 @@
"react": "^19.2.4"
}
},
+ "node_modules/react-is": {
+ "version": "17.0.2",
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz",
+ "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/redent": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz",
+ "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "indent-string": "^4.0.0",
+ "strip-indent": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/require-from-string": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/rolldown": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.0.0-rc.9.tgz",
+ "integrity": "sha512-9EbgWge7ZH+yqb4d2EnELAntgPTWbfL8ajiTW+SyhJEC4qhBbkCKbqFV4Ge4zmu5ziQuVbWxb/XwLZ+RIO7E8Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@oxc-project/types": "=0.115.0",
+ "@rolldown/pluginutils": "1.0.0-rc.9"
+ },
+ "bin": {
+ "rolldown": "bin/cli.mjs"
+ },
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ },
+ "optionalDependencies": {
+ "@rolldown/binding-android-arm64": "1.0.0-rc.9",
+ "@rolldown/binding-darwin-arm64": "1.0.0-rc.9",
+ "@rolldown/binding-darwin-x64": "1.0.0-rc.9",
+ "@rolldown/binding-freebsd-x64": "1.0.0-rc.9",
+ "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-rc.9",
+ "@rolldown/binding-linux-arm64-gnu": "1.0.0-rc.9",
+ "@rolldown/binding-linux-arm64-musl": "1.0.0-rc.9",
+ "@rolldown/binding-linux-ppc64-gnu": "1.0.0-rc.9",
+ "@rolldown/binding-linux-s390x-gnu": "1.0.0-rc.9",
+ "@rolldown/binding-linux-x64-gnu": "1.0.0-rc.9",
+ "@rolldown/binding-linux-x64-musl": "1.0.0-rc.9",
+ "@rolldown/binding-openharmony-arm64": "1.0.0-rc.9",
+ "@rolldown/binding-wasm32-wasi": "1.0.0-rc.9",
+ "@rolldown/binding-win32-arm64-msvc": "1.0.0-rc.9",
+ "@rolldown/binding-win32-x64-msvc": "1.0.0-rc.9"
+ }
+ },
+ "node_modules/saxes": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz",
+ "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "xmlchars": "^2.2.0"
+ },
+ "engines": {
+ "node": ">=v12.22.7"
+ }
+ },
"node_modules/scheduler": {
"version": "0.27.0",
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",
@@ -816,8 +2795,8 @@
"version": "7.7.4",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz",
"integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==",
+ "devOptional": true,
"license": "ISC",
- "optional": true,
"bin": {
"semver": "bin/semver.js"
},
@@ -825,6 +2804,13 @@
"node": ">=10"
}
},
+ "node_modules/server-only": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/server-only/-/server-only-0.0.1.tgz",
+ "integrity": "sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/sharp": {
"version": "0.34.5",
"resolved": "https://registry.npmjs.org/sharp/-/sharp-0.34.5.tgz",
@@ -870,6 +2856,13 @@
"@img/sharp-win32-x64": "0.34.5"
}
},
+ "node_modules/siginfo": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz",
+ "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==",
+ "dev": true,
+ "license": "ISC"
+ },
"node_modules/source-map-js": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
@@ -879,6 +2872,33 @@
"node": ">=0.10.0"
}
},
+ "node_modules/stackback": {
+ "version": "0.0.2",
+ "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz",
+ "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/std-env": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/std-env/-/std-env-4.0.0.tgz",
+ "integrity": "sha512-zUMPtQ/HBY3/50VbpkupYHbRroTRZJPRLvreamgErJVys0ceuzMkD44J/QjqhHjOzK42GQ3QZIeFG1OYfOtKqQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/strip-indent": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz",
+ "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "min-indent": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/styled-jsx": {
"version": "5.1.6",
"resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.1.6.tgz",
@@ -902,11 +2922,418 @@
}
}
},
+ "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/symbol-tree": {
+ "version": "3.2.4",
+ "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz",
+ "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/tinybench": {
+ "version": "2.9.0",
+ "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz",
+ "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/tinyexec": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.0.2.tgz",
+ "integrity": "sha512-W/KYk+NFhkmsYpuHq5JykngiOCnxeVL8v8dFnqxSD8qEEdRfXk1SDM6JzNqcERbcGYj9tMrDQBYV9cjgnunFIg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tinyglobby": {
+ "version": "0.2.15",
+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz",
+ "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fdir": "^6.5.0",
+ "picomatch": "^4.0.3"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/SuperchupuDev"
+ }
+ },
+ "node_modules/tinyrainbow": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-3.1.0.tgz",
+ "integrity": "sha512-Bf+ILmBgretUrdJxzXM0SgXLZ3XfiaUuOj/IKQHuTXip+05Xn+uyEYdVg0kYDipTBcLrCVyUzAPz7QmArb0mmw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/tldts": {
+ "version": "7.0.25",
+ "resolved": "https://registry.npmjs.org/tldts/-/tldts-7.0.25.tgz",
+ "integrity": "sha512-keinCnPbwXEUG3ilrWQZU+CqcTTzHq9m2HhoUP2l7Xmi8l1LuijAXLpAJ5zRW+ifKTNscs4NdCkfkDCBYm352w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "tldts-core": "^7.0.25"
+ },
+ "bin": {
+ "tldts": "bin/cli.js"
+ }
+ },
+ "node_modules/tldts-core": {
+ "version": "7.0.25",
+ "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-7.0.25.tgz",
+ "integrity": "sha512-ZjCZK0rppSBu7rjHYDYsEaMOIbbT+nWF57hKkv4IUmZWBNrBWBOjIElc0mKRgLM8bm7x/BBlof6t2gi/Oq/Asw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/tough-cookie": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-6.0.1.tgz",
+ "integrity": "sha512-LktZQb3IeoUWB9lqR5EWTHgW/VTITCXg4D21M+lvybRVdylLrRMnqaIONLVb5mav8vM19m44HIcGq4qASeu2Qw==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "tldts": "^7.0.5"
+ },
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/tr46": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-6.0.0.tgz",
+ "integrity": "sha512-bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "punycode": "^2.3.1"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
"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/undici": {
+ "version": "7.24.0",
+ "resolved": "https://registry.npmjs.org/undici/-/undici-7.24.0.tgz",
+ "integrity": "sha512-jxytwMHhsbdpBXxLAcuu0fzlQeXCNnWdDyRHpvWsUl8vd98UwYdl9YTyn8/HcpcJPC3pwUveefsa3zTxyD/ERg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.18.1"
+ }
+ },
+ "node_modules/vite": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/vite/-/vite-8.0.0.tgz",
+ "integrity": "sha512-fPGaRNj9Zytaf8LEiBhY7Z6ijnFKdzU/+mL8EFBaKr7Vw1/FWcTBAMW0wLPJAGMPX38ZPVCVgLceWiEqeoqL2Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@oxc-project/runtime": "0.115.0",
+ "lightningcss": "^1.32.0",
+ "picomatch": "^4.0.3",
+ "postcss": "^8.5.8",
+ "rolldown": "1.0.0-rc.9",
+ "tinyglobby": "^0.2.15"
+ },
+ "bin": {
+ "vite": "bin/vite.js"
+ },
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ },
+ "funding": {
+ "url": "https://github.com/vitejs/vite?sponsor=1"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.3"
+ },
+ "peerDependencies": {
+ "@types/node": "^20.19.0 || >=22.12.0",
+ "@vitejs/devtools": "^0.0.0-alpha.31",
+ "esbuild": "^0.27.0",
+ "jiti": ">=1.21.0",
+ "less": "^4.0.0",
+ "sass": "^1.70.0",
+ "sass-embedded": "^1.70.0",
+ "stylus": ">=0.54.8",
+ "sugarss": "^5.0.0",
+ "terser": "^5.16.0",
+ "tsx": "^4.8.1",
+ "yaml": "^2.4.2"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ },
+ "@vitejs/devtools": {
+ "optional": true
+ },
+ "esbuild": {
+ "optional": true
+ },
+ "jiti": {
+ "optional": true
+ },
+ "less": {
+ "optional": true
+ },
+ "sass": {
+ "optional": true
+ },
+ "sass-embedded": {
+ "optional": true
+ },
+ "stylus": {
+ "optional": true
+ },
+ "sugarss": {
+ "optional": true
+ },
+ "terser": {
+ "optional": true
+ },
+ "tsx": {
+ "optional": true
+ },
+ "yaml": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/vite/node_modules/fsevents": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ }
+ },
+ "node_modules/vite/node_modules/postcss": {
+ "version": "8.5.8",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.8.tgz",
+ "integrity": "sha512-OW/rX8O/jXnm82Ey1k44pObPtdblfiuWnrd8X7GJ7emImCOstunGbXUpp7HdBrFQX6rJzn3sPT397Wp5aCwCHg==",
+ "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.11",
+ "picocolors": "^1.1.1",
+ "source-map-js": "^1.2.1"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ }
+ },
+ "node_modules/vitest": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/vitest/-/vitest-4.1.0.tgz",
+ "integrity": "sha512-YbDrMF9jM2Lqc++2530UourxZHmkKLxrs4+mYhEwqWS97WJ7wOYEkcr+QfRgJ3PW9wz3odRijLZjHEaRLTNbqw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/expect": "4.1.0",
+ "@vitest/mocker": "4.1.0",
+ "@vitest/pretty-format": "4.1.0",
+ "@vitest/runner": "4.1.0",
+ "@vitest/snapshot": "4.1.0",
+ "@vitest/spy": "4.1.0",
+ "@vitest/utils": "4.1.0",
+ "es-module-lexer": "^2.0.0",
+ "expect-type": "^1.3.0",
+ "magic-string": "^0.30.21",
+ "obug": "^2.1.1",
+ "pathe": "^2.0.3",
+ "picomatch": "^4.0.3",
+ "std-env": "^4.0.0-rc.1",
+ "tinybench": "^2.9.0",
+ "tinyexec": "^1.0.2",
+ "tinyglobby": "^0.2.15",
+ "tinyrainbow": "^3.0.3",
+ "vite": "^6.0.0 || ^7.0.0 || ^8.0.0-0",
+ "why-is-node-running": "^2.3.0"
+ },
+ "bin": {
+ "vitest": "vitest.mjs"
+ },
+ "engines": {
+ "node": "^20.0.0 || ^22.0.0 || >=24.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ },
+ "peerDependencies": {
+ "@edge-runtime/vm": "*",
+ "@opentelemetry/api": "^1.9.0",
+ "@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0",
+ "@vitest/browser-playwright": "4.1.0",
+ "@vitest/browser-preview": "4.1.0",
+ "@vitest/browser-webdriverio": "4.1.0",
+ "@vitest/ui": "4.1.0",
+ "happy-dom": "*",
+ "jsdom": "*",
+ "vite": "^6.0.0 || ^7.0.0 || ^8.0.0-0"
+ },
+ "peerDependenciesMeta": {
+ "@edge-runtime/vm": {
+ "optional": true
+ },
+ "@opentelemetry/api": {
+ "optional": true
+ },
+ "@types/node": {
+ "optional": true
+ },
+ "@vitest/browser-playwright": {
+ "optional": true
+ },
+ "@vitest/browser-preview": {
+ "optional": true
+ },
+ "@vitest/browser-webdriverio": {
+ "optional": true
+ },
+ "@vitest/ui": {
+ "optional": true
+ },
+ "happy-dom": {
+ "optional": true
+ },
+ "jsdom": {
+ "optional": true
+ },
+ "vite": {
+ "optional": false
+ }
+ }
+ },
+ "node_modules/w3c-xmlserializer": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-5.0.0.tgz",
+ "integrity": "sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "xml-name-validator": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/webidl-conversions": {
+ "version": "8.0.1",
+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-8.0.1.tgz",
+ "integrity": "sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/whatwg-mimetype": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-5.0.0.tgz",
+ "integrity": "sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/whatwg-url": {
+ "version": "16.0.1",
+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-16.0.1.tgz",
+ "integrity": "sha512-1to4zXBxmXHV3IiSSEInrreIlu02vUOvrhxJJH5vcxYTBDAx51cqZiKdyTxlecdKNSjj8EcxGBxNf6Vg+945gw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@exodus/bytes": "^1.11.0",
+ "tr46": "^6.0.0",
+ "webidl-conversions": "^8.0.1"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
+ }
+ },
+ "node_modules/why-is-node-running": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz",
+ "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "siginfo": "^2.0.0",
+ "stackback": "0.0.2"
+ },
+ "bin": {
+ "why-is-node-running": "cli.js"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/xml-name-validator": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz",
+ "integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/xmlchars": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz",
+ "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==",
+ "dev": true,
+ "license": "MIT"
}
}
}
diff --git a/package.json b/package.json
index eaebc12..ecf9a2b 100644
--- a/package.json
+++ b/package.json
@@ -5,7 +5,13 @@
"scripts": {
"dev": "next dev",
"build": "next build",
- "start": "next start"
+ "start": "next start",
+ "test": "npm run test:gate",
+ "test:unit": "vitest run --config vitest.unit.config.js",
+ "test:integration": "vitest run --config vitest.integration.config.js",
+ "test:e2e:smoke": "playwright test --config=playwright.smoke.config.js",
+ "test:known-issues": "vitest run --config vitest.known-issues.config.js",
+ "test:gate": "npm run test:unit && npm run test:integration && npm run build && npm run test:e2e:smoke"
},
"keywords": [
"nextjs",
@@ -19,5 +25,16 @@
"next": "^16.1.6",
"react": "^19.2.4",
"react-dom": "^19.2.4"
+ },
+ "devDependencies": {
+ "@playwright/test": "^1.58.2",
+ "@testing-library/jest-dom": "^6.9.1",
+ "@testing-library/react": "^16.3.2",
+ "@testing-library/user-event": "^14.6.1",
+ "@vitejs/plugin-react": "^6.0.0",
+ "@vitest/coverage-v8": "^4.1.0",
+ "jsdom": "^28.1.0",
+ "server-only": "^0.0.1",
+ "vitest": "^4.1.0"
}
}
diff --git a/playwright.smoke.config.js b/playwright.smoke.config.js
new file mode 100644
index 0000000..f235a63
--- /dev/null
+++ b/playwright.smoke.config.js
@@ -0,0 +1,35 @@
+import { defineConfig, devices } from "@playwright/test";
+
+const baseURL = process.env.PLAYWRIGHT_BASE_URL || "http://127.0.0.1:3100";
+
+export default defineConfig({
+ testDir: "tests/e2e/smoke",
+ timeout: 30_000,
+ expect: {
+ timeout: 10_000,
+ },
+ fullyParallel: false,
+ retries: process.env.CI ? 1 : 0,
+ reporter: process.env.CI ? [["github"], ["html", { open: "never", outputFolder: "playwright-report" }]] : "list",
+ use: {
+ baseURL,
+ trace: "on-first-retry",
+ screenshot: "only-on-failure",
+ video: "retain-on-failure",
+ ...devices["Desktop Chrome"],
+ },
+ projects: [
+ {
+ name: "chromium",
+ use: {
+ ...devices["Desktop Chrome"],
+ },
+ },
+ ],
+ webServer: {
+ command: "npm run dev -- --hostname 127.0.0.1 --port 3100",
+ url: baseURL,
+ reuseExistingServer: !process.env.CI,
+ timeout: 120_000,
+ },
+});
diff --git a/tests/e2e/smoke/checkout.smoke.spec.js b/tests/e2e/smoke/checkout.smoke.spec.js
new file mode 100644
index 0000000..1bab38f
--- /dev/null
+++ b/tests/e2e/smoke/checkout.smoke.spec.js
@@ -0,0 +1,44 @@
+import { test, expect } from "@playwright/test";
+import { applyRuntimeMocks, getOpenedLinks } from "./runtime-mocks";
+
+test.describe("Smoke: jornada de compra", () => {
+ test("adiciona item, ajusta quantidade e finaliza no WhatsApp", async ({ page }) => {
+ await applyRuntimeMocks(page, {
+ attendants: [{ name: "Ari", phone: "5517999991111" }],
+ });
+
+ await page.goto("/catalogo");
+
+ await page.getByRole("button", { name: /Adicionar/ }).first().click();
+ await page.getByRole("link", { name: "Ir para o carrinho" }).first().click();
+
+ await expect(page.getByRole("heading", { name: "Seu carrinho" })).toBeVisible();
+
+ await page.getByRole("button", { name: /Aumentar/ }).first().click();
+ await page.getByRole("link", { name: "Finalizar no WhatsApp" }).click();
+
+ const links = await getOpenedLinks(page);
+ expect(links).toHaveLength(1);
+
+ const waUrl = new URL(links[0]);
+ const text = decodeURIComponent(waUrl.searchParams.get("text") || "");
+
+ expect(waUrl.hostname).toBe("wa.me");
+ expect(text).toContain("Total à vista");
+ expect(text).toContain("Total a prazo");
+ });
+
+ test("bloqueia finalização quando carrinho está vazio", async ({ page }) => {
+ await applyRuntimeMocks(page, {
+ attendants: [{ name: "Ari", phone: "5517999991111" }],
+ });
+
+ await page.goto("/carrinho");
+ await page.getByRole("link", { name: "Finalizar no WhatsApp" }).click();
+
+ await expect(page.getByText("Carrinho vazio")).toBeVisible();
+
+ const links = await getOpenedLinks(page);
+ expect(links).toHaveLength(0);
+ });
+});
diff --git a/tests/e2e/smoke/contact-flow.smoke.spec.js b/tests/e2e/smoke/contact-flow.smoke.spec.js
new file mode 100644
index 0000000..221a060
--- /dev/null
+++ b/tests/e2e/smoke/contact-flow.smoke.spec.js
@@ -0,0 +1,56 @@
+import { test, expect } from "@playwright/test";
+import { applyRuntimeMocks, getOpenedLinks } from "./runtime-mocks";
+
+test.describe("Smoke: fluxo de atendimento", () => {
+ test("modo blocked mantém WhatsApp indisponível", async ({ page }) => {
+ await applyRuntimeMocks(page, {
+ attendants: [],
+ });
+
+ await page.goto("/contato");
+
+ const primaryBlockedLink = page.getByRole("main").getByRole("link", { name: "WhatsApp indisponível" });
+
+ await expect(primaryBlockedLink).toBeVisible();
+ await primaryBlockedLink.click();
+ await expect(page.getByText("Nenhum atendente com número válido")).toBeVisible();
+
+ const links = await getOpenedLinks(page);
+ expect(links).toHaveLength(0);
+ });
+
+ test("modo direct abre WhatsApp sem picker", async ({ page }) => {
+ await applyRuntimeMocks(page, {
+ attendants: [{ name: "Ari", phone: "5517999991111" }],
+ });
+
+ await page.goto("/contato");
+
+ await page.getByRole("link", { name: "Iniciar conversa no WhatsApp" }).click();
+ await expect(page.getByText("Abrindo atendimento")).toBeVisible();
+
+ const links = await getOpenedLinks(page);
+ expect(links).toHaveLength(1);
+ expect(links[0]).toContain("https://wa.me/5517999991111");
+ });
+
+ test("modo picker exige escolha de atendente antes de abrir WhatsApp", async ({ page }) => {
+ await applyRuntimeMocks(page, {
+ attendants: [
+ { name: "Ari", phone: "5517999991111" },
+ { name: "Siconeli", phone: "5517999992222" },
+ ],
+ });
+
+ await page.goto("/contato");
+
+ await page.getByRole("link", { name: "Iniciar conversa no WhatsApp" }).click();
+ await expect(page.getByRole("dialog", { name: "Escolher atendente do WhatsApp" })).toBeVisible();
+
+ await page.getByRole("button", { name: /Iniciar conversa/ }).first().click();
+
+ const links = await getOpenedLinks(page);
+ expect(links).toHaveLength(1);
+ expect(links[0]).toContain("https://wa.me/");
+ });
+});
diff --git a/tests/e2e/smoke/runtime-mocks.js b/tests/e2e/smoke/runtime-mocks.js
new file mode 100644
index 0000000..fe4cc95
--- /dev/null
+++ b/tests/e2e/smoke/runtime-mocks.js
@@ -0,0 +1,36 @@
+const CATALOG_STORAGE_KEY = "li-rilko-catalog-v1";
+const CART_STORAGE_KEY = "li-rilko-cart-v1";
+
+export async function applyRuntimeMocks(page, { attendants = [], cartMap = {}, catalog = null } = {}) {
+ await page.addInitScript(
+ ({ attendants: runtimeAttendants, cartMap: runtimeCartMap, catalog: runtimeCatalog, keys }) => {
+ window.localStorage.clear();
+
+ if (runtimeCatalog) {
+ window.localStorage.setItem(keys.catalog, JSON.stringify(runtimeCatalog));
+ }
+
+ window.localStorage.setItem(keys.cart, JSON.stringify(runtimeCartMap || {}));
+
+ window.__LI_RILKO_TEST_ATTENDANTS__ = runtimeAttendants;
+ window.__LI_RILKO_OPENED_LINKS__ = [];
+ window.open = (url) => {
+ window.__LI_RILKO_OPENED_LINKS__.push(String(url));
+ return {};
+ };
+ },
+ {
+ attendants,
+ cartMap,
+ catalog,
+ keys: {
+ catalog: CATALOG_STORAGE_KEY,
+ cart: CART_STORAGE_KEY,
+ },
+ },
+ );
+}
+
+export async function getOpenedLinks(page) {
+ return page.evaluate(() => window.__LI_RILKO_OPENED_LINKS__ || []);
+}
diff --git a/tests/fixtures/attendants.fixture.js b/tests/fixtures/attendants.fixture.js
new file mode 100644
index 0000000..3a5f68d
--- /dev/null
+++ b/tests/fixtures/attendants.fixture.js
@@ -0,0 +1,19 @@
+export const blockedAttendants = [];
+
+export const directAttendants = [
+ {
+ name: "Ari",
+ phone: "5517999991111",
+ },
+];
+
+export const pickerAttendants = [
+ {
+ name: "Ari",
+ phone: "5517999991111",
+ },
+ {
+ name: "Siconeli",
+ phone: "5517999992222",
+ },
+];
diff --git a/tests/fixtures/catalog.fixture.js b/tests/fixtures/catalog.fixture.js
new file mode 100644
index 0000000..ee1cacc
--- /dev/null
+++ b/tests/fixtures/catalog.fixture.js
@@ -0,0 +1,22 @@
+import { createDefaultCatalog } from "@/lib/catalog-data";
+
+export const CATALOG_STORAGE_KEY = "li-rilko-catalog-v1";
+export const CART_STORAGE_KEY = "li-rilko-cart-v1";
+
+export function createCatalogFixture(mutator) {
+ const catalog = createDefaultCatalog();
+
+ if (typeof mutator === "function") {
+ mutator(catalog);
+ }
+
+ return catalog;
+}
+
+export function persistCatalog(catalog) {
+ window.localStorage.setItem(CATALOG_STORAGE_KEY, JSON.stringify(catalog));
+}
+
+export function persistCart(cartMap) {
+ window.localStorage.setItem(CART_STORAGE_KEY, JSON.stringify(cartMap));
+}
diff --git a/tests/integration/providers/cart-provider.integration.test.jsx b/tests/integration/providers/cart-provider.integration.test.jsx
new file mode 100644
index 0000000..696e05f
--- /dev/null
+++ b/tests/integration/providers/cart-provider.integration.test.jsx
@@ -0,0 +1,167 @@
+import { useState } from "react";
+import { fireEvent, render, screen, waitFor } from "@testing-library/react";
+import { describe, expect, it } from "vitest";
+import { CartProvider, useCart } from "@/components/providers/cart-provider";
+import { CatalogProvider, useCatalog } from "@/components/providers/catalog-provider";
+import {
+ CART_STORAGE_KEY,
+ createCatalogFixture,
+ persistCatalog,
+ persistCart,
+} from "@/tests/fixtures/catalog.fixture";
+
+function ProvidersHarness({ children }) {
+ return (
+
+ {children}
+
+ );
+}
+
+function CartProbe({ targetProductId }) {
+ const { isHydrated } = useCatalog();
+ const { count, items, addItem, getItemQty } = useCart();
+ const [lastAction, setLastAction] = useState("idle");
+
+ return (
+
+
{isHydrated ? "yes" : "no"}
+
{count}
+
{items.map((item) => `${item.id}:${item.qty}`).join(",")}
+
{getItemQty(targetProductId)}
+
{lastAction}
+
+
+
+ );
+}
+
+describe("CartProvider integration", () => {
+ it("hidrata e sanitiza o carrinho com base no catálogo", async () => {
+ const catalog = createCatalogFixture();
+ const validId = catalog.products[0].id;
+ const invalidId = "produto-inexistente";
+
+ persistCatalog(catalog);
+ persistCart({
+ [validId]: 2,
+ [invalidId]: 5,
+ [catalog.products[1].id]: 0,
+ });
+
+ render(
+
+
+ ,
+ );
+
+ await waitFor(() => expect(screen.getByTestId("hydrated")).toHaveTextContent("yes"));
+ await waitFor(() => expect(screen.getByTestId("count")).toHaveTextContent("2"));
+
+ expect(screen.getByTestId("items")).toHaveTextContent(`${validId}:2`);
+ expect(screen.getByTestId("items")).not.toHaveTextContent(invalidId);
+
+ await waitFor(() => {
+ const serialized = window.localStorage.getItem(CART_STORAGE_KEY) || "{}";
+ expect(JSON.parse(serialized)).toEqual({ [validId]: 2 });
+ });
+ });
+
+ it("bloqueia adição quando produto está indisponível", async () => {
+ const catalog = createCatalogFixture((draft) => {
+ draft.products[0].isAvailable = false;
+ });
+ const targetProductId = catalog.products[0].id;
+
+ persistCatalog(catalog);
+ persistCart({});
+
+ render(
+
+
+ ,
+ );
+
+ await waitFor(() => expect(screen.getByTestId("hydrated")).toHaveTextContent("yes"));
+
+ fireEvent.click(screen.getByRole("button", { name: "add-one" }));
+
+ expect(screen.getByTestId("last-action")).toHaveTextContent("blocked");
+ expect(screen.getByTestId("count")).toHaveTextContent("0");
+ });
+
+ it("aplica limite máximo de quantidade (99) e persiste", async () => {
+ const catalog = createCatalogFixture();
+ const targetProductId = catalog.products[0].id;
+
+ persistCatalog(catalog);
+ persistCart({});
+
+ render(
+
+
+ ,
+ );
+
+ await waitFor(() => expect(screen.getByTestId("hydrated")).toHaveTextContent("yes"));
+
+ fireEvent.click(screen.getByRole("button", { name: "add-many" }));
+ fireEvent.click(screen.getByRole("button", { name: "add-one" }));
+
+ await waitFor(() => expect(screen.getByTestId("target-qty")).toHaveTextContent("99"));
+
+ await waitFor(() => {
+ const serialized = window.localStorage.getItem(CART_STORAGE_KEY) || "{}";
+ expect(JSON.parse(serialized)[targetProductId]).toBe(99);
+ });
+ });
+
+ it("mantém carrinho após remount (persistência localStorage)", async () => {
+ const catalog = createCatalogFixture();
+ const targetProductId = catalog.products[0].id;
+
+ persistCatalog(catalog);
+ persistCart({});
+
+ const firstRender = render(
+
+
+ ,
+ );
+
+ await waitFor(() => expect(screen.getByTestId("hydrated")).toHaveTextContent("yes"));
+
+ fireEvent.click(screen.getByRole("button", { name: "add-one" }));
+ fireEvent.click(screen.getByRole("button", { name: "add-one" }));
+ fireEvent.click(screen.getByRole("button", { name: "add-one" }));
+
+ await waitFor(() => expect(screen.getByTestId("count")).toHaveTextContent("3"));
+
+ firstRender.unmount();
+
+ render(
+
+
+ ,
+ );
+
+ await waitFor(() => expect(screen.getByTestId("hydrated")).toHaveTextContent("yes"));
+ await waitFor(() => expect(screen.getByTestId("count")).toHaveTextContent("3"));
+ });
+});
diff --git a/tests/integration/providers/catalog-provider-admin-contract.integration.test.jsx b/tests/integration/providers/catalog-provider-admin-contract.integration.test.jsx
new file mode 100644
index 0000000..cbba1e0
--- /dev/null
+++ b/tests/integration/providers/catalog-provider-admin-contract.integration.test.jsx
@@ -0,0 +1,279 @@
+import { useState } from "react";
+import { fireEvent, render, screen, waitFor } from "@testing-library/react";
+import { describe, expect, it } from "vitest";
+import { CatalogProvider, useCatalog } from "@/components/providers/catalog-provider";
+
+function ContractProbe() {
+ const {
+ products,
+ categories,
+ contactChannels,
+ saveCategories,
+ removeProduct,
+ resetCatalog,
+ toggleProductVisibility,
+ toggleProductAvailability,
+ saveContactChannels,
+ saveSiteSettings,
+ } = useCatalog();
+
+ const [result, setResult] = useState("idle");
+ const firstProduct = products[0] || null;
+
+ return (
+
+
{result}
+
{products.length}
+
{String(firstProduct?.isVisible ?? "none")}
+
{String(firstProduct?.isAvailable ?? "none")}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+}
+
+describe("CatalogProvider admin mutator contract", () => {
+ it("retorna { ok: true } em saveCategories sucesso", async () => {
+ render(
+
+
+ ,
+ );
+
+ fireEvent.click(screen.getByRole("button", { name: "save-categories-success" }));
+
+ await waitFor(() => {
+ expect(screen.getByTestId("result")).toHaveTextContent('{"ok":true}');
+ });
+ });
+
+ it("retorna erro em saveCategories inválido", async () => {
+ render(
+
+
+ ,
+ );
+
+ fireEvent.click(screen.getByRole("button", { name: "save-categories-invalid" }));
+
+ await waitFor(() => {
+ expect(screen.getByTestId("result")).toHaveTextContent('"ok":false');
+ expect(screen.getByTestId("result")).toHaveTextContent("Formato de categorias inválido");
+ });
+ });
+
+ it("retorna { ok: true } em removeProduct e diminui lista", async () => {
+ render(
+
+
+ ,
+ );
+
+ const before = Number(screen.getByTestId("products-count").textContent);
+
+ fireEvent.click(screen.getByRole("button", { name: "remove-product-success" }));
+
+ await waitFor(() => {
+ expect(screen.getByTestId("result")).toHaveTextContent('{"ok":true}');
+ expect(Number(screen.getByTestId("products-count").textContent)).toBe(before - 1);
+ });
+ });
+
+ it("retorna erro em removeProduct ausente", async () => {
+ render(
+
+
+ ,
+ );
+
+ fireEvent.click(screen.getByRole("button", { name: "remove-product-missing" }));
+
+ await waitFor(() => {
+ expect(screen.getByTestId("result")).toHaveTextContent('"ok":false');
+ expect(screen.getByTestId("result")).toHaveTextContent("Produto não encontrado");
+ });
+ });
+
+ it("retorna { ok: true } em resetCatalog", async () => {
+ render(
+
+
+ ,
+ );
+
+ fireEvent.click(screen.getByRole("button", { name: "reset-catalog-success" }));
+
+ await waitFor(() => {
+ expect(screen.getByTestId("result")).toHaveTextContent('{"ok":true}');
+ });
+ });
+
+ it("retorna { ok: true } ao alternar visibilidade e disponibilidade", async () => {
+ render(
+
+
+ ,
+ );
+
+ const visibleBefore = screen.getByTestId("first-visible").textContent;
+ const availableBefore = screen.getByTestId("first-available").textContent;
+
+ fireEvent.click(screen.getByRole("button", { name: "toggle-visibility-success" }));
+ await waitFor(() => {
+ expect(screen.getByTestId("result")).toHaveTextContent('{"ok":true}');
+ expect(screen.getByTestId("first-visible").textContent).not.toBe(visibleBefore);
+ });
+
+ fireEvent.click(screen.getByRole("button", { name: "toggle-availability-success" }));
+ await waitFor(() => {
+ expect(screen.getByTestId("result")).toHaveTextContent('{"ok":true}');
+ expect(screen.getByTestId("first-available").textContent).not.toBe(availableBefore);
+ });
+ });
+
+ it("retorna erro ao alternar produto ausente", async () => {
+ render(
+
+
+ ,
+ );
+
+ fireEvent.click(screen.getByRole("button", { name: "toggle-visibility-missing" }));
+ await waitFor(() => {
+ expect(screen.getByTestId("result")).toHaveTextContent('"ok":false');
+ expect(screen.getByTestId("result")).toHaveTextContent("Produto não encontrado");
+ });
+
+ fireEvent.click(screen.getByRole("button", { name: "toggle-availability-missing" }));
+ await waitFor(() => {
+ expect(screen.getByTestId("result")).toHaveTextContent('"ok":false');
+ expect(screen.getByTestId("result")).toHaveTextContent("Produto não encontrado");
+ });
+ });
+
+ it("retorna { ok: true } em saveContactChannels e saveSiteSettings", async () => {
+ render(
+
+
+ ,
+ );
+
+ fireEvent.click(screen.getByRole("button", { name: "save-contact-channels-success" }));
+ await waitFor(() => {
+ expect(screen.getByTestId("result")).toHaveTextContent('{"ok":true}');
+ });
+
+ fireEvent.click(screen.getByRole("button", { name: "save-site-settings-success" }));
+ await waitFor(() => {
+ expect(screen.getByTestId("result")).toHaveTextContent('{"ok":true}');
+ });
+ });
+});
diff --git a/tests/integration/providers/catalog-provider.integration.test.jsx b/tests/integration/providers/catalog-provider.integration.test.jsx
new file mode 100644
index 0000000..10f5ac3
--- /dev/null
+++ b/tests/integration/providers/catalog-provider.integration.test.jsx
@@ -0,0 +1,110 @@
+import { useState } from "react";
+import { fireEvent, render, screen, waitFor } from "@testing-library/react";
+import { describe, expect, it } from "vitest";
+import { CatalogProvider, useCatalog } from "@/components/providers/catalog-provider";
+import { CATALOG_STORAGE_KEY } from "@/tests/fixtures/catalog.fixture";
+
+function CatalogProbe() {
+ const { isHydrated, categories, products, addProduct } = useCatalog();
+ const [lastResult, setLastResult] = useState("");
+
+ return (
+
+
{isHydrated ? "yes" : "no"}
+
{categories.length}
+
{products.length}
+
{lastResult}
+
+
+
+
+
+ );
+}
+
+describe("CatalogProvider integration", () => {
+ it("faz fallback para catálogo padrão quando storage é inválido", async () => {
+ window.localStorage.setItem(CATALOG_STORAGE_KEY, JSON.stringify({ categories: [] }));
+
+ render(
+
+
+ ,
+ );
+
+ await waitFor(() => expect(screen.getByTestId("hydrated")).toHaveTextContent("yes"));
+ expect(Number(screen.getByTestId("categories-count").textContent)).toBeGreaterThan(0);
+ expect(Number(screen.getByTestId("products-count").textContent)).toBeGreaterThan(0);
+ });
+
+ it("retorna erro ao tentar criar produto sem campos obrigatórios", async () => {
+ render(
+
+
+ ,
+ );
+
+ await waitFor(() => expect(screen.getByTestId("hydrated")).toHaveTextContent("yes"));
+
+ fireEvent.click(screen.getByRole("button", { name: "add-invalid" }));
+
+ expect(screen.getByTestId("last-result").textContent).toContain("\"ok\":false");
+ expect(screen.getByTestId("last-result").textContent).toContain("obrigatório");
+ });
+
+ it("cria produto válido e persiste no storage", async () => {
+ render(
+
+
+ ,
+ );
+
+ await waitFor(() => expect(screen.getByTestId("hydrated")).toHaveTextContent("yes"));
+ const initialCount = Number(screen.getByTestId("products-count").textContent);
+
+ fireEvent.click(screen.getByRole("button", { name: "add-valid" }));
+
+ await waitFor(() => {
+ const resultText = screen.getByTestId("last-result").textContent || "";
+ expect(resultText).toContain("\"ok\":true");
+ });
+
+ await waitFor(() => {
+ const nextCount = Number(screen.getByTestId("products-count").textContent);
+ expect(nextCount).toBe(initialCount + 1);
+ });
+
+ await waitFor(() => {
+ const serialized = window.localStorage.getItem(CATALOG_STORAGE_KEY) || "{}";
+ const parsed = JSON.parse(serialized);
+ expect(Array.isArray(parsed.products)).toBe(true);
+ expect(parsed.products.length).toBeGreaterThan(initialCount);
+ });
+ });
+});
diff --git a/tests/known-issues/admin-contracts.test.jsx b/tests/known-issues/admin-contracts.test.jsx
new file mode 100644
index 0000000..893bffb
--- /dev/null
+++ b/tests/known-issues/admin-contracts.test.jsx
@@ -0,0 +1,86 @@
+import { useState } from "react";
+import { fireEvent, render, screen, waitFor } from "@testing-library/react";
+import { describe, expect, it } from "vitest";
+import { CatalogProvider, useCatalog } from "@/components/providers/catalog-provider";
+
+function AdminContractProbe() {
+ const { categories, products, saveCategories, removeProduct, resetCatalog } = useCatalog();
+ const [result, setResult] = useState("");
+
+ return (
+
+
{result}
+
+
+
+
+ );
+}
+
+describe("KNOWN ISSUE: contratos do admin vs provider", () => {
+ it("saveCategories deveria retornar { ok: true } para o manager", async () => {
+ render(
+
+
+ ,
+ );
+
+ fireEvent.click(screen.getByRole("button", { name: "call-save-categories" }));
+
+ await waitFor(() => {
+ expect(screen.getByTestId("result")).toHaveTextContent('{"ok":true}');
+ });
+ });
+
+ it("removeProduct deveria retornar objeto com status para o manager", async () => {
+ render(
+
+
+ ,
+ );
+
+ fireEvent.click(screen.getByRole("button", { name: "call-remove-product" }));
+
+ await waitFor(() => {
+ expect(screen.getByTestId("result")).toHaveTextContent('{"ok":true}');
+ });
+ });
+
+ it("resetCatalog deveria retornar objeto com status para o manager", async () => {
+ render(
+
+
+ ,
+ );
+
+ fireEvent.click(screen.getByRole("button", { name: "call-reset-catalog" }));
+
+ await waitFor(() => {
+ expect(screen.getByTestId("result")).toHaveTextContent('{"ok":true}');
+ });
+ });
+});
diff --git a/tests/known-issues/attendants-duplicates-policy.test.js b/tests/known-issues/attendants-duplicates-policy.test.js
new file mode 100644
index 0000000..a21a1d8
--- /dev/null
+++ b/tests/known-issues/attendants-duplicates-policy.test.js
@@ -0,0 +1,13 @@
+import { describe, expect, it } from "vitest";
+import { sanitizeAttendants } from "@/lib/attendants-utils";
+
+describe("KNOWN ISSUE: política de duplicidade de atendentes", () => {
+ it("não deveria permitir dois atendentes com mesmo número", () => {
+ const attendants = sanitizeAttendants([
+ { name: "Ari", phone: "5517999991111" },
+ { name: "Siconeli", phone: "(17) 99999-1111" },
+ ]);
+
+ expect(attendants).toHaveLength(1);
+ });
+});
diff --git a/tests/known-issues/unavailable-item-warning.test.js b/tests/known-issues/unavailable-item-warning.test.js
new file mode 100644
index 0000000..2ae2772
--- /dev/null
+++ b/tests/known-issues/unavailable-item-warning.test.js
@@ -0,0 +1,24 @@
+import { describe, expect, it } from "vitest";
+import { buildWhatsAppMessage } from "@/lib/store-utils";
+
+describe("KNOWN ISSUE: aviso no checkout para item indisponível já no carrinho", () => {
+ it("deveria incluir alerta explícito na mensagem quando item está indisponível", () => {
+ const message = buildWhatsAppMessage(
+ [
+ {
+ name: "Produto indisponível",
+ qty: 1,
+ isAvailable: false,
+ subtotalCash: 100,
+ subtotalInstallment: 120,
+ },
+ ],
+ {
+ whatsappIntro: "Olá",
+ },
+ );
+
+ expect(message.toLowerCase()).toContain("indisponível");
+ expect(message.toLowerCase()).toContain("confirm");
+ });
+});
diff --git a/tests/setup/jsdom.setup.js b/tests/setup/jsdom.setup.js
new file mode 100644
index 0000000..f7974da
--- /dev/null
+++ b/tests/setup/jsdom.setup.js
@@ -0,0 +1,65 @@
+import "@testing-library/jest-dom/vitest";
+import { cleanup } from "@testing-library/react";
+import { afterEach, beforeAll, vi } from "vitest";
+
+function createMemoryStorage() {
+ const store = new Map();
+
+ return {
+ getItem(key) {
+ return store.has(key) ? store.get(key) : null;
+ },
+ setItem(key, value) {
+ store.set(String(key), String(value));
+ },
+ removeItem(key) {
+ store.delete(String(key));
+ },
+ clear() {
+ store.clear();
+ },
+ key(index) {
+ return Array.from(store.keys())[index] || null;
+ },
+ get length() {
+ return store.size;
+ },
+ };
+}
+
+beforeAll(() => {
+ if (!window.localStorage || typeof window.localStorage.setItem !== "function") {
+ Object.defineProperty(window, "localStorage", {
+ configurable: true,
+ writable: true,
+ value: createMemoryStorage(),
+ });
+ }
+
+ if (!window.matchMedia) {
+ Object.defineProperty(window, "matchMedia", {
+ writable: true,
+ value: (query) => ({
+ matches: false,
+ media: query,
+ onchange: null,
+ addEventListener: vi.fn(),
+ removeEventListener: vi.fn(),
+ addListener: vi.fn(),
+ removeListener: vi.fn(),
+ dispatchEvent: vi.fn(),
+ }),
+ });
+ }
+
+ if (!window.scrollTo) {
+ window.scrollTo = vi.fn();
+ }
+});
+
+afterEach(() => {
+ cleanup();
+ window.localStorage.clear();
+ vi.restoreAllMocks();
+ vi.unstubAllEnvs();
+});
diff --git a/tests/setup/unit.setup.js b/tests/setup/unit.setup.js
new file mode 100644
index 0000000..402e56f
--- /dev/null
+++ b/tests/setup/unit.setup.js
@@ -0,0 +1,8 @@
+import { afterEach, vi } from "vitest";
+
+vi.mock("server-only", () => ({}));
+
+afterEach(() => {
+ vi.restoreAllMocks();
+ vi.unstubAllEnvs();
+});
diff --git a/tests/unit/api/admin-attendants-route.test.js b/tests/unit/api/admin-attendants-route.test.js
new file mode 100644
index 0000000..027a843
--- /dev/null
+++ b/tests/unit/api/admin-attendants-route.test.js
@@ -0,0 +1,160 @@
+import { beforeEach, describe, expect, it, vi } from "vitest";
+import { NextRequest } from "next/server";
+
+const {
+ isAdminSessionValidMock,
+ readAttendantsFromRepositoryFileMock,
+ updateAttendantsInRepositoryMock,
+ AttendantsValidationError,
+ AttendantsGitHubSyncError,
+} = vi.hoisted(() => ({
+ isAdminSessionValidMock: vi.fn(),
+ readAttendantsFromRepositoryFileMock: vi.fn(),
+ updateAttendantsInRepositoryMock: vi.fn(),
+ AttendantsValidationError: class AttendantsValidationError extends Error {},
+ AttendantsGitHubSyncError: class AttendantsGitHubSyncError extends Error {},
+}));
+
+vi.mock("@/lib/admin-auth", () => ({
+ ADMIN_SESSION_COOKIE: "li_rilko_admin_session",
+ isAdminSessionValid: isAdminSessionValidMock,
+}));
+
+vi.mock("@/lib/attendants-store", () => ({
+ AttendantsValidationError,
+ AttendantsGitHubSyncError,
+ readAttendantsFromRepositoryFile: readAttendantsFromRepositoryFileMock,
+ updateAttendantsInRepository: updateAttendantsInRepositoryMock,
+}));
+
+import { GET, PUT } from "@/app/api/admin/attendants/route";
+
+function makeRequest(method, body) {
+ return new NextRequest("http://localhost:3000/api/admin/attendants", {
+ method,
+ headers: {
+ cookie: "li_rilko_admin_session=valid-token",
+ "content-type": "application/json",
+ },
+ body,
+ });
+}
+
+describe("/api/admin/attendants", () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ });
+
+ it("retorna 401 sem autenticação válida", async () => {
+ isAdminSessionValidMock.mockReturnValue(false);
+
+ const response = await GET(makeRequest("GET"));
+ const payload = await response.json();
+
+ expect(response.status).toBe(401);
+ expect(payload.error).toContain("Acesso negado");
+ });
+
+ it("retorna atendentes no GET autenticado", async () => {
+ isAdminSessionValidMock.mockReturnValue(true);
+ readAttendantsFromRepositoryFileMock.mockResolvedValue([
+ {
+ name: "Ari",
+ phone: "5517999991111",
+ },
+ ]);
+
+ const response = await GET(makeRequest("GET"));
+ const payload = await response.json();
+
+ expect(response.status).toBe(200);
+ expect(payload.attendants).toHaveLength(1);
+ });
+
+ it("retorna 400 para JSON inválido no PUT", async () => {
+ isAdminSessionValidMock.mockReturnValue(true);
+
+ const response = await PUT(makeRequest("PUT", "{invalid-json"));
+ const payload = await response.json();
+
+ expect(response.status).toBe(400);
+ expect(payload.error).toContain("Payload inválido");
+ });
+
+ it("retorna 400 para erro de validação", async () => {
+ isAdminSessionValidMock.mockReturnValue(true);
+ updateAttendantsInRepositoryMock.mockRejectedValue(new AttendantsValidationError("Cadastre pelo menos 1 atendente."));
+
+ const response = await PUT(
+ makeRequest(
+ "PUT",
+ JSON.stringify({
+ attendants: [],
+ }),
+ ),
+ );
+ const payload = await response.json();
+
+ expect(response.status).toBe(400);
+ expect(payload.error).toContain("Cadastre pelo menos 1 atendente");
+ });
+
+ it("retorna 400 para telefone duplicado", async () => {
+ isAdminSessionValidMock.mockReturnValue(true);
+ updateAttendantsInRepositoryMock.mockRejectedValue(
+ new AttendantsValidationError("O número do atendente 2 está duplicado com o atendente 1."),
+ );
+
+ const response = await PUT(
+ makeRequest(
+ "PUT",
+ JSON.stringify({
+ attendants: [
+ { name: "Ari", phone: "5517999991111" },
+ { name: "Siconeli", phone: "5517999991111" },
+ ],
+ }),
+ ),
+ );
+ const payload = await response.json();
+
+ expect(response.status).toBe(400);
+ expect(payload.error).toContain("duplicado");
+ });
+
+ it("retorna 502 para erro de sync com GitHub", async () => {
+ isAdminSessionValidMock.mockReturnValue(true);
+ updateAttendantsInRepositoryMock.mockRejectedValue(new AttendantsGitHubSyncError("Falha na API do GitHub"));
+
+ const response = await PUT(
+ makeRequest(
+ "PUT",
+ JSON.stringify({
+ attendants: [{ name: "Ari", phone: "5517999991111" }],
+ }),
+ ),
+ );
+ const payload = await response.json();
+
+ expect(response.status).toBe(502);
+ expect(payload.error).toContain("Falha na API do GitHub");
+ });
+
+ it("retorna 500 para erro inesperado", async () => {
+ isAdminSessionValidMock.mockReturnValue(true);
+ updateAttendantsInRepositoryMock.mockRejectedValue(new Error("boom"));
+
+ const response = await PUT(
+ makeRequest(
+ "PUT",
+ JSON.stringify({
+ attendants: [{ name: "Ari", phone: "5517999991111" }],
+ }),
+ ),
+ );
+ const payload = await response.json();
+
+ expect(response.status).toBe(500);
+ expect(payload.error).toContain("Erro interno");
+ });
+});
diff --git a/tests/unit/lib/admin-auth.test.js b/tests/unit/lib/admin-auth.test.js
new file mode 100644
index 0000000..050d7e8
--- /dev/null
+++ b/tests/unit/lib/admin-auth.test.js
@@ -0,0 +1,51 @@
+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
+import {
+ createAdminSessionToken,
+ isAdminSessionValid,
+ validateAdminLogin,
+} from "@/lib/admin-auth";
+
+describe("lib/admin-auth", () => {
+ beforeEach(() => {
+ vi.stubEnv("ADMIN_USERNAME", "admin");
+ vi.stubEnv("ADMIN_PASSWORD", "secret-123");
+ vi.stubEnv("ADMIN_SESSION_SECRET", "super-secret");
+ vi.stubEnv("NODE_ENV", "test");
+ });
+
+ afterEach(() => {
+ vi.useRealTimers();
+ });
+
+ it("valida login com credenciais corretas", () => {
+ expect(validateAdminLogin("admin", "secret-123")).toBe(true);
+ expect(validateAdminLogin("admin", "wrong")).toBe(false);
+ });
+
+ it("em produção bloqueia fallback de credenciais", () => {
+ vi.stubEnv("NODE_ENV", "production");
+ vi.stubEnv("ADMIN_USERNAME", "");
+ vi.stubEnv("ADMIN_PASSWORD", "");
+
+ expect(validateAdminLogin("admin", "admin123")).toBe(false);
+ });
+
+ it("cria sessão válida e expira após max age", () => {
+ vi.useFakeTimers();
+ vi.setSystemTime(new Date("2026-01-01T00:00:00.000Z"));
+
+ const token = createAdminSessionToken("admin");
+ expect(isAdminSessionValid(token)).toBe(true);
+
+ vi.setSystemTime(new Date("2026-01-01T13:00:00.000Z"));
+ expect(isAdminSessionValid(token)).toBe(false);
+ });
+
+ it("invalida token adulterado", () => {
+ const token = createAdminSessionToken("admin");
+ const parts = token.split("|");
+ const tampered = `${parts[0]}|${parts[1]}|signature-invalida`;
+
+ expect(isAdminSessionValid(tampered)).toBe(false);
+ });
+});
diff --git a/tests/unit/lib/admin-input-formatters.test.js b/tests/unit/lib/admin-input-formatters.test.js
new file mode 100644
index 0000000..6de99bd
--- /dev/null
+++ b/tests/unit/lib/admin-input-formatters.test.js
@@ -0,0 +1,32 @@
+import { describe, expect, it } from "vitest";
+import {
+ formatBrazilPhoneInput,
+ formatCurrencyInput,
+ formatCurrencyInputForEdit,
+ parseCurrencyInputToNumber,
+ toCanonicalBrazilWhatsAppPhone,
+} from "@/lib/admin-input-formatters";
+
+describe("lib/admin-input-formatters", () => {
+ it("faz parse de moeda pt-BR", () => {
+ expect(parseCurrencyInputToNumber("R$ 1.234,56")).toBe(1234.56);
+ expect(parseCurrencyInputToNumber("89,9")).toBe(89.9);
+ expect(parseCurrencyInputToNumber("")).toBe(0);
+ });
+
+ it("formata moeda para exibição e edição", () => {
+ expect(formatCurrencyInput("1234.5")).toContain("1.234,50");
+ expect(formatCurrencyInputForEdit("R$ 99,00")).toBe("99,00");
+ });
+
+ it("normaliza WhatsApp para formato canônico", () => {
+ expect(toCanonicalBrazilWhatsAppPhone("(17) 99999-1234")).toBe("5517999991234");
+ expect(toCanonicalBrazilWhatsAppPhone("5517999991234")).toBe("5517999991234");
+ expect(toCanonicalBrazilWhatsAppPhone("123")).toBe("");
+ });
+
+ it("formata telefone brasileiro para input", () => {
+ expect(formatBrazilPhoneInput("5517999991234")).toBe("(17) 99999-1234");
+ expect(formatBrazilPhoneInput("1799991234")).toBe("(17) 9999-1234");
+ });
+});
diff --git a/tests/unit/lib/attendants-flow.test.js b/tests/unit/lib/attendants-flow.test.js
new file mode 100644
index 0000000..2a0a029
--- /dev/null
+++ b/tests/unit/lib/attendants-flow.test.js
@@ -0,0 +1,71 @@
+import { describe, expect, it } from "vitest";
+import { resolveAttendantFlow } from "@/lib/attendants-data";
+import { resolveWhatsAppAttendantAction } from "@/lib/whatsapp-attendant-flow";
+
+describe("attendant flow", () => {
+ it("retorna blocked sem atendentes válidos", () => {
+ const flow = resolveAttendantFlow([]);
+
+ expect(flow.mode).toBe("blocked");
+ expect(flow.attendants).toEqual([]);
+ });
+
+ it("retorna direct com um atendente", () => {
+ const flow = resolveAttendantFlow([
+ {
+ name: "Ari",
+ phone: "5517999991111",
+ },
+ ]);
+
+ expect(flow.mode).toBe("direct");
+ expect(flow.attendant?.name).toBe("Ari");
+ });
+
+ it("retorna picker com múltiplos atendentes", () => {
+ const flow = resolveAttendantFlow([
+ {
+ name: "Ari",
+ phone: "5517999991111",
+ },
+ {
+ name: "Siconeli",
+ phone: "5517999992222",
+ },
+ ]);
+
+ expect(flow.mode).toBe("picker");
+ expect(flow.attendants).toHaveLength(2);
+ });
+
+ it("resolve ação direta com link válido", () => {
+ const action = resolveWhatsAppAttendantAction(
+ [
+ {
+ name: "Ari",
+ phone: "5517999991111",
+ },
+ ],
+ "Olá, pedido de teste",
+ );
+
+ expect(action.mode).toBe("direct");
+ expect(action.link).toContain("https://wa.me/5517999991111");
+ expect(action.link).toContain("text=Ol%C3%A1%2C%20pedido%20de%20teste");
+ });
+
+ it("bloqueia ação direta quando telefone é inválido", () => {
+ const action = resolveWhatsAppAttendantAction(
+ [
+ {
+ name: "Ari",
+ phone: "123",
+ },
+ ],
+ "mensagem",
+ );
+
+ expect(action.mode).toBe("blocked");
+ expect(action.link).toBeNull();
+ });
+});
diff --git a/tests/unit/lib/attendants-utils.test.js b/tests/unit/lib/attendants-utils.test.js
new file mode 100644
index 0000000..5288a8a
--- /dev/null
+++ b/tests/unit/lib/attendants-utils.test.js
@@ -0,0 +1,36 @@
+import { describe, expect, it } from "vitest";
+import { sanitizeAttendants, validateAttendantsInput } from "@/lib/attendants-utils";
+
+describe("lib/attendants-utils", () => {
+ it("deduplica atendentes com mesmo telefone canônico", () => {
+ const attendants = sanitizeAttendants([
+ { name: "Ari", phone: "5517999991111" },
+ { name: "Siconeli", phone: "(17) 99999-1111" },
+ { name: "Maria", phone: "5517999992222" },
+ ]);
+
+ expect(attendants).toHaveLength(2);
+ expect(attendants.map((item) => item.phone)).toEqual(["5517999991111", "5517999992222"]);
+ });
+
+ it("bloqueia validação com telefone duplicado", () => {
+ const result = validateAttendantsInput([
+ { name: "Ari", phone: "5517999991111" },
+ { name: "Siconeli", phone: "(17) 99999-1111" },
+ ]);
+
+ expect(result.ok).toBe(false);
+ expect(result.error).toContain("duplicado");
+ expect(result.error).toContain("2");
+ });
+
+ it("aceita lista válida sem duplicidade", () => {
+ const result = validateAttendantsInput([
+ { name: "Ari", phone: "5517999991111" },
+ { name: "Siconeli", phone: "5517999992222" },
+ ]);
+
+ expect(result.ok).toBe(true);
+ expect(result.attendants).toHaveLength(2);
+ });
+});
diff --git a/tests/unit/lib/store-utils.test.js b/tests/unit/lib/store-utils.test.js
new file mode 100644
index 0000000..73c6ec7
--- /dev/null
+++ b/tests/unit/lib/store-utils.test.js
@@ -0,0 +1,136 @@
+import { describe, expect, it } from "vitest";
+import {
+ buildAttendantWhatsAppLink,
+ buildFloatingWhatsAppLink,
+ buildWhatsAppMessage,
+ formatCurrency,
+ resolveProductPrices,
+} from "@/lib/store-utils";
+
+describe("lib/store-utils", () => {
+ it("formata moeda em BRL", () => {
+ const formatted = formatCurrency(1234.56);
+
+ expect(formatted).toContain("1.234,56");
+ expect(formatted).toContain("R$");
+ });
+
+ it("resolve preços com fallback seguro", () => {
+ expect(resolveProductPrices({ priceInstallment: 199, priceCash: 179 })).toEqual({
+ priceCash: 179,
+ priceInstallment: 199,
+ });
+
+ expect(resolveProductPrices({ price: 99 })).toEqual({
+ priceCash: 99,
+ priceInstallment: 99,
+ });
+
+ expect(resolveProductPrices({ priceInstallment: "invalid" })).toEqual({
+ priceCash: 0,
+ priceInstallment: 0,
+ });
+ });
+
+ it("gera mensagem de carrinho vazio", () => {
+ const message = buildWhatsAppMessage([], {
+ whatsappIntro: "Olá!",
+ });
+
+ expect(message).toContain("Olá!");
+ expect(message).toContain("(sem itens selecionados ainda)");
+ });
+
+ it("gera mensagem com itens e totais", () => {
+ const message = buildWhatsAppMessage(
+ [
+ {
+ name: "Produto A",
+ qty: 2,
+ subtotalCash: 200,
+ subtotalInstallment: 220,
+ },
+ {
+ name: "Produto B",
+ qty: 1,
+ subtotalCash: 50,
+ subtotalInstallment: 60,
+ },
+ ],
+ {
+ whatsappIntro: "Olá, quero fechar esse pedido",
+ },
+ );
+
+ expect(message).toContain("• Produto A (2x)");
+ expect(message).toContain("• Produto B (1x)");
+ expect(message).toContain("Total à vista:");
+ expect(message).toContain("Total a prazo:");
+ });
+
+ it("inclui aviso quando há item indisponível", () => {
+ const message = buildWhatsAppMessage(
+ [
+ {
+ name: "Produto indisponível",
+ qty: 1,
+ isAvailable: false,
+ subtotalCash: 100,
+ subtotalInstallment: 120,
+ },
+ ],
+ {
+ whatsappIntro: "Olá",
+ },
+ );
+
+ expect(message.toLowerCase()).toContain("indisponível");
+ expect(message.toLowerCase()).toContain("confirm");
+ });
+
+ it("não inclui alerta quando todos os itens estão disponíveis", () => {
+ const message = buildWhatsAppMessage(
+ [
+ {
+ name: "Produto disponível",
+ qty: 1,
+ isAvailable: true,
+ subtotalCash: 100,
+ subtotalInstallment: 120,
+ },
+ ],
+ {
+ whatsappIntro: "Olá",
+ },
+ );
+
+ expect(message.toLowerCase()).not.toContain("itens indisponíveis");
+ });
+
+ it("gera link do atendente apenas com número válido", () => {
+ const validLink = buildAttendantWhatsAppLink("Oi teste", {
+ phone: "(17) 99999-1234",
+ });
+
+ expect(validLink).toContain("https://wa.me/5517999991234");
+ expect(validLink).toContain("text=Oi%20teste");
+
+ const invalidLink = buildAttendantWhatsAppLink("Oi", {
+ phone: "123",
+ });
+
+ expect(invalidLink).toBeNull();
+ });
+
+ it("gera link do widget flutuante com mensagem configurada", () => {
+ const link = buildFloatingWhatsAppLink(
+ {
+ whatsappFloatingMessage: "Olá, vim do site",
+ },
+ "+55 (17) 99888-0000",
+ );
+
+ expect(link).toContain("https://wa.me/5517998880000");
+ expect(link).toContain("text=Ol%C3%A1%2C%20vim%20do%20site");
+ });
+});
diff --git a/tests/unit/lib/whatsapp-attendant-open.test.js b/tests/unit/lib/whatsapp-attendant-open.test.js
new file mode 100644
index 0000000..eb23d78
--- /dev/null
+++ b/tests/unit/lib/whatsapp-attendant-open.test.js
@@ -0,0 +1,19 @@
+// @vitest-environment jsdom
+
+import { describe, expect, it, vi } from "vitest";
+import { openWhatsAppLink } from "@/lib/whatsapp-attendant-flow";
+
+describe("openWhatsAppLink", () => {
+ it("não abre quando link é inválido", () => {
+ expect(openWhatsAppLink("")).toBe(false);
+ });
+
+ it("abre nova aba quando link é válido", () => {
+ const openSpy = vi.spyOn(window, "open").mockReturnValue({});
+
+ const result = openWhatsAppLink("https://wa.me/5517999991111?text=Oi");
+
+ expect(result).toBe(true);
+ expect(openSpy).toHaveBeenCalledTimes(1);
+ });
+});
diff --git a/vitest.integration.config.js b/vitest.integration.config.js
new file mode 100644
index 0000000..8892b36
--- /dev/null
+++ b/vitest.integration.config.js
@@ -0,0 +1,13 @@
+import { defineConfig } from "vitest/config";
+import { createBaseConfig } from "./vitest.shared";
+
+export default defineConfig({
+ ...createBaseConfig(),
+ test: {
+ environment: "jsdom",
+ include: ["tests/integration/**/*.test.{js,jsx}"],
+ setupFiles: ["tests/setup/jsdom.setup.js"],
+ restoreMocks: true,
+ clearMocks: true,
+ },
+});
diff --git a/vitest.known-issues.config.js b/vitest.known-issues.config.js
new file mode 100644
index 0000000..a9d7e10
--- /dev/null
+++ b/vitest.known-issues.config.js
@@ -0,0 +1,15 @@
+import { defineConfig } from "vitest/config";
+import { createBaseConfig } from "./vitest.shared";
+
+export default defineConfig({
+ ...createBaseConfig(),
+ test: {
+ environment: "jsdom",
+ include: ["tests/known-issues/**/*.test.{js,jsx}"],
+ setupFiles: ["tests/setup/jsdom.setup.js"],
+ restoreMocks: true,
+ clearMocks: true,
+ reporters: process.env.CI ? ["default", "junit"] : ["default"],
+ outputFile: process.env.CI ? { junit: "./test-results/known-issues-junit.xml" } : undefined,
+ },
+});
diff --git a/vitest.shared.js b/vitest.shared.js
new file mode 100644
index 0000000..b2ab91e
--- /dev/null
+++ b/vitest.shared.js
@@ -0,0 +1,20 @@
+import path from "node:path";
+import react from "@vitejs/plugin-react";
+
+export function createBaseConfig() {
+ return {
+ plugins: [react()],
+ oxc: {
+ include: /.*\.(js|jsx)$/,
+ lang: "jsx",
+ jsx: {
+ runtime: "automatic",
+ },
+ },
+ resolve: {
+ alias: {
+ "@": path.resolve(process.cwd()),
+ },
+ },
+ };
+}
diff --git a/vitest.unit.config.js b/vitest.unit.config.js
new file mode 100644
index 0000000..e6c1c9f
--- /dev/null
+++ b/vitest.unit.config.js
@@ -0,0 +1,13 @@
+import { defineConfig } from "vitest/config";
+import { createBaseConfig } from "./vitest.shared";
+
+export default defineConfig({
+ ...createBaseConfig(),
+ test: {
+ environment: "node",
+ include: ["tests/unit/**/*.test.js"],
+ setupFiles: ["tests/setup/unit.setup.js"],
+ restoreMocks: true,
+ clearMocks: true,
+ },
+});