diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..3bf624f
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,49 @@
+name: CI
+
+on:
+ push:
+ branches: [ main, develop ]
+ pull_request:
+ branches: [ main, develop ]
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4
+
+ - name: Setup Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: '20'
+ cache: 'pnpm'
+
+ - name: Install dependencies
+ run: pnpm install --frozen-lockfile
+
+ - name: Lint
+ run: pnpm run lint
+
+ - name: Typecheck
+ run: pnpm run typecheck
+
+ - name: Run unit tests
+ run: pnpm run test
+
+ - name: Build
+ run: pnpm run build
+
+ - name: Install Playwright browsers
+ run: npx playwright install --with-deps
+
+ - name: Run E2E tests
+ run: pnpm run test:e2e
+
+ - name: Health check
+ run: |
+ pnpm run start &
+ sleep 10
+ curl -f http://localhost:3000/api/health || exit 1
+ pkill -f "next start" || true
\ No newline at end of file
diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 0000000..1b52559
--- /dev/null
+++ b/.vscode/launch.json
@@ -0,0 +1,15 @@
+{
+ // Use IntelliSense to learn about possible attributes.
+ // Hover to view descriptions of existing attributes.
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
+ "version": "0.2.0",
+ "configurations": [
+ {
+ "type": "chrome",
+ "request": "launch",
+ "name": "Launch Chrome against localhost",
+ "url": "http://localhost:3000",
+ "webRoot": "${workspaceFolder}"
+ }
+ ]
+}
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000..eb66b02
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,3 @@
+{
+ "chatgpt.openOnStartup": true
+}
diff --git a/AI_INTEGRATION_README.md b/AI_INTEGRATION_README.md
new file mode 100644
index 0000000..3026adf
--- /dev/null
+++ b/AI_INTEGRATION_README.md
@@ -0,0 +1,246 @@
+# AI Services Integration for AiM
+
+This document describes the AI services integration implemented in the AiM (AI Marketing) platform.
+
+## Overview
+
+The AI integration provides the following services:
+
+- **Content Generation**: Generate new content based on prompts
+- **Content Summarization**: Summarize long-form content
+- **Content Translation**: Translate content to different languages
+- **Idea Generation**: Generate creative ideas for content topics
+
+## Setup
+
+### Environment Variables
+
+Add the following to your `.env` file:
+
+```env
+# OpenAI
+OPENAI_API_KEY="your-openai-api-key-here"
+```
+
+### Dependencies
+
+The following packages are required:
+
+- `openai`: OpenAI SDK for API integration
+
+Install with:
+
+```bash
+pnpm add openai
+```
+
+## API Endpoints
+
+### Content Generation
+
+**POST** `/api/[orgId]/content/generate`
+
+Generates new content using AI based on a prompt.
+
+**Request Body:**
+
+```json
+{
+ "prompt": "Write a social media post about summer fashion",
+ "campaignId": "campaign-uuid"
+}
+```
+
+**Response:**
+
+```json
+{
+ "id": "content-uuid",
+ "title": "AI Generated: Write a social media post about summer fashion...",
+ "body": "Generated content here...",
+ "campaignId": "campaign-uuid",
+ "createdAt": "2024-01-01T00:00:00.000Z"
+}
+```
+
+### Content Summarization
+
+**POST** `/api/[orgId]/content/summarize`
+
+Summarizes provided content.
+
+**Request Body:**
+
+```json
+{
+ "content": "Long text to summarize...",
+ "length": "brief" | "detailed"
+}
+```
+
+**Response:**
+
+```json
+{
+ "summary": "Summarized content here..."
+}
+```
+
+### Content Translation
+
+**POST** `/api/[orgId]/content/translate`
+
+Translates content to a target language.
+
+**Request Body:**
+
+```json
+{
+ "content": "Text to translate",
+ "targetLanguage": "Spanish",
+ "sourceLanguage": "English" // optional
+}
+```
+
+**Response:**
+
+```json
+{
+ "translatedContent": "Texto traducido"
+}
+```
+
+### Idea Generation
+
+**POST** `/api/[orgId]/content/ideas`
+
+Generates creative ideas for content topics.
+
+**Request Body:**
+
+```json
+{
+ "topic": "social media marketing",
+ "count": 5,
+ "type": "general" | "titles" | "hashtags" | "campaigns"
+}
+```
+
+**Response:**
+
+```json
+{
+ "ideas": ["Idea 1", "Idea 2", "Idea 3"]
+}
+```
+
+## UI Integration
+
+### Creator Dashboard
+
+The AI features are integrated into the Creator Dashboard with three main sections:
+
+1. **AI Assistant Tab**: Contains forms for all AI services
+2. **Content Studio**: AI-powered content creation dialog
+3. **Idea Generation**: Generate content ideas based on topics
+
+### Features
+
+- **Real-time AI Generation**: Generate content instantly
+- **Campaign Integration**: Associate generated content with campaigns
+- **Multi-language Support**: Translate content to various languages
+- **Idea Brainstorming**: Generate multiple ideas for content topics
+- **Content Optimization**: Summarize and improve existing content
+
+## Usage Examples
+
+### Generating Content
+
+```typescript
+import { generateContent } from '@/lib/openai';
+
+const content = await generateContent({
+ prompt: 'Write a blog post about AI in marketing',
+ type: 'blog',
+ tone: 'professional',
+ length: 'medium',
+});
+```
+
+### Summarizing Content
+
+```typescript
+import { summarizeContent } from '@/lib/openai';
+
+const summary = await summarizeContent({
+ content: 'Long article text...',
+ length: 'brief',
+});
+```
+
+### Translating Content
+
+```typescript
+import { translateContent } from '@/lib/openai';
+
+const translation = await translateContent({
+ content: 'Hello world',
+ targetLanguage: 'Spanish',
+});
+```
+
+### Generating Ideas
+
+```typescript
+import { generateIdeas } from '@/lib/openai';
+
+const ideas = await generateIdeas({
+ topic: 'content marketing',
+ count: 5,
+ type: 'general',
+});
+```
+
+## Error Handling
+
+All AI functions include proper error handling:
+
+- API key validation
+- Network error handling
+- Rate limiting considerations
+- Fallback responses for failed requests
+
+## Security
+
+- API keys are stored as environment variables
+- All endpoints require authentication
+- RBAC permissions are enforced
+- Input validation using Zod schemas
+
+## Testing
+
+Run the AI integration tests:
+
+```typescript
+import { runAITests } from '@/lib/ai-test';
+
+// Run all tests
+const results = await runAITests();
+```
+
+## Future Enhancements
+
+- Support for additional AI models
+- Batch processing for multiple content items
+- Advanced content optimization features
+- Integration with other AI services
+- Custom AI model training
+
+## Support
+
+For issues or questions about the AI integration:
+
+1. Check the API key is valid and has sufficient credits
+2. Verify network connectivity
+3. Review error logs in the console
+4. Ensure proper permissions are set for the user
diff --git a/DEPLOYMENT_README.md b/DEPLOYMENT_README.md
new file mode 100644
index 0000000..21a09a4
--- /dev/null
+++ b/DEPLOYMENT_README.md
@@ -0,0 +1,57 @@
+# Deployment and Monitoring Guide
+
+## Containerization
+
+### Docker
+
+- Build: `docker build -t aim-platform .`
+- Run: `docker run -p 3000:3000 aim-platform`
+
+### Docker Compose (Development)
+
+- Start: `docker-compose up`
+- Stop: `docker-compose down`
+
+## Deployment
+
+### Vercel
+
+1. Connect repository to Vercel
+2. Set environment variables in Vercel dashboard:
+ - `DATABASE_URL`
+ - `NEXTAUTH_SECRET`
+ - `NEXTAUTH_URL`
+ - `OPENAI_API_KEY`
+3. Deploy
+
+### AWS Amplify
+
+1. Connect repository to Amplify
+2. Configure build settings (amplify.yml provided)
+3. Set environment variables
+4. Deploy
+
+## Environment Variables
+
+### Production (.env.production)
+
+- Update with production values
+- Use secure secrets for sensitive data
+
+## Monitoring
+
+### Health Check
+
+- Endpoint: `/api/health`
+- Returns status of services (database, OpenAI)
+- Use for load balancer health checks
+
+### Logs
+
+- Application logs available in deployment platform
+- Database logs via PostgreSQL
+
+### Performance
+
+- Next.js analytics in production
+- Monitor API response times
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..4da00ea
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,29 @@
+# Use the official Node.js 20 image as the base image
+FROM node:20-alpine
+
+# Set the working directory inside the container
+WORKDIR /app
+
+# Copy package.json and package-lock.json (or pnpm-lock.yaml)
+COPY package.json pnpm-lock.yaml ./
+
+# Install dependencies
+RUN npm install -g pnpm && pnpm install --frozen-lockfile
+
+# Copy the rest of the application code
+COPY . .
+
+# Generate Prisma client
+RUN pnpm run db:generate
+
+# Build the Next.js application
+RUN pnpm run build
+
+# Expose the port the app runs on
+EXPOSE 3000
+
+# Set environment variables
+ENV NODE_ENV=production
+
+# Start the application
+CMD ["pnpm", "start"]
\ No newline at end of file
diff --git a/README.md b/README.md
index 5e73163..aa75f35 100644
--- a/README.md
+++ b/README.md
@@ -45,3 +45,36 @@ pnpm dev
+
+## Auth + DB + Onboarding
+
+- Credentials login for development only (NextAuth v5)
+- Prisma + Postgres schema for User/Organization/Brand/Membership/CreatorProfile
+- Health check at /api/health
+- Onboarding flow to choose Creator or Brand and set internal role
+- Seed script with demo org, brand, and users
+
+### Environment
+
+Copy .env.example to .env.local and adjust values:
+
+`DATABASE_URL="postgresql://postgres:postgres@localhost:5432/circle_dev?schema=public"
+NEXTAUTH_URL="http://localhost:3000"
+NEXTAUTH_SECRET="changeme-in-local"
+DEV_LOGIN_PASSWORD="dev"`
+
+Ensure Postgres is running and accessible by DATABASE_URL.
+
+### Database
+
+Generate and push schema, then seed (optional):
+
+`pnpm db:generate
+pnpm db:push
+pnpm db:seed`
+
+### Dev Login
+
+- Visit /auth/signin
+- Use any email and password equal to DEV_LOGIN_PASSWORD
+- After first login, go to /onboarding to set role
diff --git a/Repo analysis and plan.docx b/Repo analysis and plan.docx
new file mode 100644
index 0000000..d4097e6
Binary files /dev/null and b/Repo analysis and plan.docx differ
diff --git a/__mocks__/next-intl.ts b/__mocks__/next-intl.ts
new file mode 100644
index 0000000..c09b69e
--- /dev/null
+++ b/__mocks__/next-intl.ts
@@ -0,0 +1,26 @@
+export const useTranslations = () => (key: string) => {
+ const translations: Record = {
+ admin_title: 'Admin Dashboard',
+ admin_description: 'Manage your organization and users',
+ total_users: 'Total Users',
+ active_users: 'active',
+ active_campaigns: 'Active Campaigns',
+ total_campaigns: 'of',
+ total: 'total',
+ content_pieces: 'Content Pieces',
+ pending_approvals: 'Pending Approvals',
+ user_management: 'User Management',
+ organization: 'Organization',
+ system: 'System',
+ system_settings: 'System Settings',
+ };
+
+ return translations[key] || key;
+};
+
+export const useFormatter = () => ({
+ dateTime: (date: Date) => date.toISOString(),
+ number: (num: number) => num.toString(),
+});
+
+export const NextIntlClientProvider = ({ children }: { children: React.ReactNode }) => children;
diff --git a/amplify.yml b/amplify.yml
new file mode 100644
index 0000000..a5d35f3
--- /dev/null
+++ b/amplify.yml
@@ -0,0 +1,19 @@
+version: 1
+frontend:
+ phases:
+ preBuild:
+ commands:
+ - npm install -g pnpm
+ - pnpm install
+ - pnpm run db:generate
+ build:
+ commands:
+ - pnpm run build
+ artifacts:
+ baseDirectory: .next
+ files:
+ - '**/*'
+ cache:
+ paths:
+ - node_modules/**/*
+ - .next/cache/**/*
\ No newline at end of file
diff --git a/app/[orgId]/assets/page.tsx b/app/[orgId]/assets/page.tsx
new file mode 100644
index 0000000..f4d5bad
--- /dev/null
+++ b/app/[orgId]/assets/page.tsx
@@ -0,0 +1,17 @@
+import { AssetLibrary } from '@/components/assets/asset-library';
+
+interface AssetsPageProps {
+ params: {
+ orgId: string;
+ };
+}
+
+export default function AssetsPage({ params }: AssetsPageProps) {
+ const { orgId } = params;
+
+ return (
+
+ );
+}
diff --git a/app/[orgId]/content/page.tsx b/app/[orgId]/content/page.tsx
new file mode 100644
index 0000000..ed1b580
--- /dev/null
+++ b/app/[orgId]/content/page.tsx
@@ -0,0 +1,17 @@
+import { ContentEditor } from '@/components/content/content-editor';
+
+interface ContentPageProps {
+ params: {
+ orgId: string;
+ };
+}
+
+export default function ContentPage({ params }: ContentPageProps) {
+ const { orgId } = params;
+
+ return (
+
+
+
+ );
+}
diff --git a/app/[orgId]/page.tsx b/app/[orgId]/page.tsx
index afd7d1b..e684177 100644
--- a/app/[orgId]/page.tsx
+++ b/app/[orgId]/page.tsx
@@ -1,5 +1,55 @@
+import { Suspense } from 'react';
+import { getUserRole } from '@/lib/rbac';
+import { CreatorDashboard } from '@/components/dashboards/creator-dashboard';
+import { BrandDashboard } from '@/components/dashboards/brand-dashboard';
+import { AdminDashboard } from '@/components/dashboards/admin-dashboard';
import { redirect } from 'next/navigation';
+import { OrgRole } from '@prisma/client';
-export default function OrgIdPage() {
- redirect('lndev-ui/team/CORE/all');
+interface OrgIdPageProps {
+ params: Promise<{
+ orgId: string;
+ }>;
+}
+
+async function DashboardContent({ orgId }: { orgId: string }) {
+ const userRole = await getUserRole(orgId);
+
+ if (!userRole) {
+ // User doesn't have access to this organization
+ redirect('/auth/signin');
+ }
+
+ switch (userRole) {
+ case OrgRole.CREATOR:
+ return ;
+ case OrgRole.BRAND_OWNER:
+ return ;
+ case OrgRole.ADMIN:
+ return ;
+ default:
+ redirect('/auth/signin');
+ }
+}
+
+export default async function OrgIdPage({ params }: OrgIdPageProps) {
+ const resolvedParams = await params;
+
+ return (
+
+
+
+
Loading dashboard...
+
+ Please wait while we set up your workspace
+
+
+
+ }
+ >
+
+
+ );
}
diff --git a/app/[orgId]/schedules/page.tsx b/app/[orgId]/schedules/page.tsx
new file mode 100644
index 0000000..2972be9
--- /dev/null
+++ b/app/[orgId]/schedules/page.tsx
@@ -0,0 +1,27 @@
+import { Suspense } from 'react';
+import { ScheduleCalendar } from '@/components/schedules/schedule-calendar';
+
+interface SchedulesPageProps {
+ params: {
+ orgId: string;
+ };
+}
+
+export default function SchedulesPage({ params }: SchedulesPageProps) {
+ const { orgId } = params;
+
+ return (
+
+
+
Content Scheduling
+
+ Schedule your content for publication and manage your posting calendar.
+
+
+
+
Loading calendar... }>
+
+
+
+ );
+}
diff --git a/app/api/[orgId]/analytics/events/route.ts b/app/api/[orgId]/analytics/events/route.ts
new file mode 100644
index 0000000..79d1b24
--- /dev/null
+++ b/app/api/[orgId]/analytics/events/route.ts
@@ -0,0 +1,66 @@
+import { NextRequest, NextResponse } from 'next/server';
+import { auth } from '@/lib/auth';
+import prisma from '@/lib/prisma';
+import { createAnalyticsEventSchema } from '@/lib/schemas';
+import { requirePermission, PERMISSIONS } from '@/lib/rbac';
+
+export async function GET(request: NextRequest, { params }: { params: { orgId: string } }) {
+ try {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ }
+
+ const { orgId } = params;
+
+ await requirePermission(session.user.id, orgId, PERMISSIONS.VIEW_ANALYTICS);
+
+ const events = await (prisma as any).analyticsEvent.findMany({
+ where: { userId: session.user.id },
+ orderBy: { createdAt: 'desc' },
+ });
+
+ return NextResponse.json(events);
+ } catch (error) {
+ console.error('Error fetching analytics events:', error);
+ return NextResponse.json(
+ { error: error instanceof Error ? error.message : 'Internal server error' },
+ { status: 500 }
+ );
+ }
+}
+
+export async function POST(request: NextRequest, { params }: { params: { orgId: string } }) {
+ try {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ }
+
+ const { orgId } = params;
+
+ await requirePermission(session.user.id, orgId, PERMISSIONS.VIEW_ANALYTICS);
+
+ const body = await request.json();
+ const validatedData = createAnalyticsEventSchema.parse(body);
+
+ const event = await (prisma as any).analyticsEvent.create({
+ data: {
+ ...validatedData,
+ userId: session.user.id,
+ organizationId: params.orgId,
+ },
+ });
+
+ return NextResponse.json(event, { status: 201 });
+ } catch (error) {
+ console.error('Error creating analytics event:', error);
+ if (error instanceof Error && error.message === 'Insufficient permissions') {
+ return NextResponse.json({ error: 'Forbidden' }, { status: 403 });
+ }
+ return NextResponse.json(
+ { error: error instanceof Error ? error.message : 'Internal server error' },
+ { status: 500 }
+ );
+ }
+}
diff --git a/app/api/[orgId]/analytics/metrics/route.ts b/app/api/[orgId]/analytics/metrics/route.ts
new file mode 100644
index 0000000..03f0e45
--- /dev/null
+++ b/app/api/[orgId]/analytics/metrics/route.ts
@@ -0,0 +1,88 @@
+import { NextRequest, NextResponse } from 'next/server';
+import { auth } from '@/lib/auth';
+import prisma from '@/lib/prisma';
+import { requirePermission, PERMISSIONS } from '@/lib/rbac';
+
+export async function GET(request: NextRequest, { params }: { params: { orgId: string } }) {
+ try {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ }
+
+ const { orgId } = params;
+
+ await requirePermission(session.user.id, orgId, PERMISSIONS.VIEW_ANALYTICS);
+
+ // Get metrics for the org - count events by type
+ const eventCounts = await prisma.analyticsEvent.groupBy({
+ by: ['event'],
+ where: { organizationId: params.orgId },
+ _count: {
+ event: true,
+ },
+ });
+
+ // Get campaign-specific metrics
+ const campaignMetrics = await prisma.campaign.findMany({
+ where: { organizationId: params.orgId },
+ include: {
+ contents: {
+ include: {
+ analyticsEvents: true,
+ },
+ },
+ analyticsEvents: true,
+ },
+ });
+
+ // Calculate aggregated metrics
+ const totalImpressions = eventCounts.find((e) => e.event === 'impression')?._count.event || 0;
+ const totalClicks = eventCounts.find((e) => e.event === 'click')?._count.event || 0;
+ const totalViews = eventCounts.find((e) => e.event === 'view')?._count.event || 0;
+
+ const ctr = totalImpressions > 0 ? (totalClicks / totalImpressions) * 100 : 0;
+
+ // Calculate ROI (simplified - assuming some conversion value)
+ const conversions = eventCounts.find((e) => e.event === 'conversion')?._count.event || 0;
+ const roi = conversions > 0 ? ((conversions * 100) / totalClicks) * 100 : 0; // Assuming $100 per conversion
+
+ const metrics = {
+ totalEvents: eventCounts.reduce((sum, item) => sum + item._count.event, 0),
+ eventsByType: eventCounts.reduce(
+ (acc, item) => {
+ acc[item.event] = item._count.event;
+ return acc;
+ },
+ {} as Record
+ ),
+ impressions: totalImpressions,
+ clicks: totalClicks,
+ views: totalViews,
+ ctr: ctr,
+ roi: roi,
+ campaignMetrics: campaignMetrics.map((campaign) => ({
+ id: campaign.id,
+ name: campaign.name,
+ totalEvents: campaign.analyticsEvents.length,
+ contentCount: campaign.contents.length,
+ contentMetrics: campaign.contents.map((content) => ({
+ id: content.id,
+ title: content.title,
+ events: content.analyticsEvents.length,
+ impressions: content.analyticsEvents.filter((e) => e.event === 'impression').length,
+ clicks: content.analyticsEvents.filter((e) => e.event === 'click').length,
+ views: content.analyticsEvents.filter((e) => e.event === 'view').length,
+ })),
+ })),
+ };
+
+ return NextResponse.json(metrics);
+ } catch (error) {
+ console.error('Error fetching analytics metrics:', error);
+ return NextResponse.json(
+ { error: error instanceof Error ? error.message : 'Internal server error' },
+ { status: 500 }
+ );
+ }
+}
diff --git a/app/api/[orgId]/analytics/track/route.ts b/app/api/[orgId]/analytics/track/route.ts
new file mode 100644
index 0000000..e4c2fd2
--- /dev/null
+++ b/app/api/[orgId]/analytics/track/route.ts
@@ -0,0 +1,73 @@
+import { NextRequest, NextResponse } from 'next/server';
+import { auth } from '@/lib/auth';
+import prisma from '@/lib/prisma';
+import { requirePermission, PERMISSIONS } from '@/lib/rbac';
+
+export async function POST(request: NextRequest, { params }: { params: { orgId: string } }) {
+ try {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ }
+
+ const { orgId } = params;
+
+ await requirePermission(session.user.id, orgId, PERMISSIONS.VIEW_ANALYTICS);
+
+ const body = await request.json();
+ const { event, campaignId, contentId, data } = body;
+
+ if (!event) {
+ return NextResponse.json({ error: 'Event type is required' }, { status: 400 });
+ }
+
+ // Validate that campaign and content belong to the organization
+ if (campaignId) {
+ const campaign = await prisma.campaign.findFirst({
+ where: {
+ id: campaignId,
+ organizationId: orgId,
+ },
+ });
+ if (!campaign) {
+ return NextResponse.json({ error: 'Campaign not found' }, { status: 404 });
+ }
+ }
+
+ if (contentId) {
+ const content = await prisma.content.findFirst({
+ where: {
+ id: contentId,
+ campaign: {
+ organizationId: orgId,
+ },
+ },
+ });
+ if (!content) {
+ return NextResponse.json({ error: 'Content not found' }, { status: 404 });
+ }
+ }
+
+ const analyticsEvent = await prisma.analyticsEvent.create({
+ data: {
+ event,
+ data,
+ userId: session.user.id,
+ organizationId: orgId,
+ campaignId: campaignId || null,
+ contentId: contentId || null,
+ },
+ });
+
+ return NextResponse.json(analyticsEvent, { status: 201 });
+ } catch (error) {
+ console.error('Error tracking analytics event:', error);
+ if (error instanceof Error && error.message === 'Insufficient permissions') {
+ return NextResponse.json({ error: 'Forbidden' }, { status: 403 });
+ }
+ return NextResponse.json(
+ { error: error instanceof Error ? error.message : 'Internal server error' },
+ { status: 500 }
+ );
+ }
+}
diff --git a/app/api/[orgId]/assets/[id]/route.ts b/app/api/[orgId]/assets/[id]/route.ts
new file mode 100644
index 0000000..bdf4772
--- /dev/null
+++ b/app/api/[orgId]/assets/[id]/route.ts
@@ -0,0 +1,136 @@
+import { NextRequest, NextResponse } from 'next/server';
+import { auth } from '@/lib/auth';
+import prisma from '@/lib/prisma';
+import { requirePermission, PERMISSIONS } from '@/lib/rbac';
+
+export async function GET(
+ request: NextRequest,
+ { params }: { params: { orgId: string; id: string } }
+) {
+ try {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ }
+
+ const { orgId, id } = params;
+
+ await requirePermission(session.user.id, orgId, PERMISSIONS.MANAGE_CONTENT);
+
+ const asset = await prisma.asset.findFirst({
+ where: {
+ id,
+ content: { campaign: { organizationId: orgId } },
+ },
+ include: {
+ content: true,
+ },
+ });
+
+ if (!asset) {
+ return NextResponse.json({ error: 'Asset not found' }, { status: 404 });
+ }
+
+ return NextResponse.json(asset);
+ } catch (error) {
+ console.error('Error fetching asset:', error);
+ return NextResponse.json(
+ { error: error instanceof Error ? error.message : 'Internal server error' },
+ { status: 500 }
+ );
+ }
+}
+
+export async function PUT(
+ request: NextRequest,
+ { params }: { params: { orgId: string; id: string } }
+) {
+ try {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ }
+
+ const { orgId, id } = params;
+ const body = await request.json();
+
+ await requirePermission(session.user.id, orgId, PERMISSIONS.MANAGE_CONTENT);
+
+ // Verify asset belongs to org
+ const existingAsset = await prisma.asset.findFirst({
+ where: {
+ id,
+ content: { campaign: { organizationId: orgId } },
+ },
+ });
+
+ if (!existingAsset) {
+ return NextResponse.json({ error: 'Asset not found' }, { status: 404 });
+ }
+
+ const updatedAsset = await prisma.asset.update({
+ where: { id },
+ data: {
+ url: body.url,
+ type: body.type,
+ },
+ include: {
+ content: true,
+ },
+ });
+
+ return NextResponse.json(updatedAsset);
+ } catch (error) {
+ console.error('Error updating asset:', error);
+ if (error instanceof Error && error.message === 'Insufficient permissions') {
+ return NextResponse.json({ error: 'Forbidden' }, { status: 403 });
+ }
+ return NextResponse.json(
+ { error: error instanceof Error ? error.message : 'Internal server error' },
+ { status: 500 }
+ );
+ }
+}
+
+export async function DELETE(
+ request: NextRequest,
+ { params }: { params: { orgId: string; id: string } }
+) {
+ try {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ }
+
+ const { orgId, id } = params;
+
+ await requirePermission(session.user.id, orgId, PERMISSIONS.MANAGE_CONTENT);
+
+ // Verify asset belongs to org
+ const existingAsset = await prisma.asset.findFirst({
+ where: {
+ id,
+ content: { campaign: { organizationId: orgId } },
+ },
+ });
+
+ if (!existingAsset) {
+ return NextResponse.json({ error: 'Asset not found' }, { status: 404 });
+ }
+
+ await prisma.asset.delete({
+ where: { id },
+ });
+
+ return NextResponse.json({ message: 'Asset deleted successfully' });
+ } catch (error) {
+ console.error('Error deleting asset:', error);
+ if (error instanceof Error && error.message === 'Insufficient permissions') {
+ return NextResponse.json({ error: 'Forbidden' }, { status: 403 });
+ }
+ return NextResponse.json(
+ { error: error instanceof Error ? error.message : 'Internal server error' },
+ { status: 500 }
+ );
+ }
+}
diff --git a/app/api/[orgId]/assets/route.ts b/app/api/[orgId]/assets/route.ts
new file mode 100644
index 0000000..9a5d6c9
--- /dev/null
+++ b/app/api/[orgId]/assets/route.ts
@@ -0,0 +1,38 @@
+import { NextRequest, NextResponse } from 'next/server';
+import { auth } from '@/lib/auth';
+import prisma from '@/lib/prisma';
+import { requirePermission, PERMISSIONS } from '@/lib/rbac';
+
+export async function GET(request: NextRequest, { params }: { params: { orgId: string } }) {
+ try {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ }
+
+ const { orgId } = params;
+ const { searchParams } = new URL(request.url);
+ const contentId = searchParams.get('contentId');
+
+ await requirePermission(session.user.id, orgId, PERMISSIONS.MANAGE_CONTENT);
+
+ const where = contentId
+ ? { content: { campaign: { organizationId: orgId } }, contentId }
+ : { content: { campaign: { organizationId: orgId } } };
+
+ const assets = await prisma.asset.findMany({
+ where,
+ include: {
+ content: true,
+ },
+ });
+
+ return NextResponse.json(assets);
+ } catch (error) {
+ console.error('Error fetching assets:', error);
+ return NextResponse.json(
+ { error: error instanceof Error ? error.message : 'Internal server error' },
+ { status: 500 }
+ );
+ }
+}
diff --git a/app/api/[orgId]/assets/upload/route.ts b/app/api/[orgId]/assets/upload/route.ts
new file mode 100644
index 0000000..fec30c4
--- /dev/null
+++ b/app/api/[orgId]/assets/upload/route.ts
@@ -0,0 +1,69 @@
+import { NextRequest, NextResponse } from 'next/server';
+import { auth } from '@/lib/auth';
+import prisma from '@/lib/prisma';
+import { requirePermission, PERMISSIONS } from '@/lib/rbac';
+import formidable from 'formidable';
+import { promises as fs } from 'fs';
+import path from 'path';
+
+export async function POST(request: NextRequest, { params }: { params: { orgId: string } }) {
+ try {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ }
+
+ const { orgId } = params;
+
+ await requirePermission(session.user.id, orgId, PERMISSIONS.MANAGE_CONTENT);
+
+ // Parse multipart form data
+ const form = formidable({
+ uploadDir: path.join(process.cwd(), 'public/uploads'),
+ keepExtensions: true,
+ });
+
+ const [fields, files] = await form.parse(request as any);
+
+ const contentId = fields.contentId?.[0];
+ const file = files.file?.[0];
+
+ if (!contentId || !file) {
+ return NextResponse.json({ error: 'Missing contentId or file' }, { status: 400 });
+ }
+
+ // Verify content belongs to org
+ const content = await prisma.content.findFirst({
+ where: { id: contentId, campaign: { organizationId: orgId } },
+ });
+ if (!content) {
+ return NextResponse.json({ error: 'Content not found' }, { status: 404 });
+ }
+
+ // Mock URL - in real implementation, upload to cloud storage
+ const mockUrl = `/uploads/${file.newFilename}`;
+
+ const asset = await prisma.asset.create({
+ data: {
+ url: mockUrl,
+ name: fields.name?.[0] || file.originalFilename || 'Untitled',
+ type: file.mimetype || 'unknown',
+ size: file.size,
+ description: fields.description?.[0],
+ tags: fields.tags?.[0] ? JSON.parse(fields.tags[0]) : [],
+ contentId,
+ },
+ });
+
+ return NextResponse.json(asset, { status: 201 });
+ } catch (error) {
+ console.error('Error uploading asset:', error);
+ if (error instanceof Error && error.message === 'Insufficient permissions') {
+ return NextResponse.json({ error: 'Forbidden' }, { status: 403 });
+ }
+ return NextResponse.json(
+ { error: error instanceof Error ? error.message : 'Internal server error' },
+ { status: 500 }
+ );
+ }
+}
diff --git a/app/api/[orgId]/campaigns/[id]/route.ts b/app/api/[orgId]/campaigns/[id]/route.ts
new file mode 100644
index 0000000..291c2fb
--- /dev/null
+++ b/app/api/[orgId]/campaigns/[id]/route.ts
@@ -0,0 +1,110 @@
+import { NextRequest, NextResponse } from 'next/server';
+import { auth } from '@/lib/auth';
+import prisma from '@/lib/prisma';
+import { updateCampaignSchema } from '@/lib/schemas';
+import { requirePermission, PERMISSIONS } from '@/lib/rbac';
+
+export async function GET(
+ request: NextRequest,
+ { params }: { params: { orgId: string; id: string } }
+) {
+ try {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ }
+
+ const { orgId, id } = params;
+
+ // Check access
+ await requirePermission(session.user.id, orgId, PERMISSIONS.MANAGE_CONTENT);
+
+ const campaign = await prisma.campaign.findFirst({
+ where: { id, organizationId: orgId },
+ include: {
+ contents: true,
+ schedules: true,
+ },
+ });
+
+ if (!campaign) {
+ return NextResponse.json({ error: 'Campaign not found' }, { status: 404 });
+ }
+
+ return NextResponse.json(campaign);
+ } catch (error) {
+ console.error('Error fetching campaign:', error);
+ return NextResponse.json(
+ { error: error instanceof Error ? error.message : 'Internal server error' },
+ { status: 500 }
+ );
+ }
+}
+
+export async function PUT(
+ request: NextRequest,
+ { params }: { params: { orgId: string; id: string } }
+) {
+ try {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ }
+
+ const { orgId, id } = params;
+
+ // Require permission
+ await requirePermission(session.user.id, orgId, PERMISSIONS.MANAGE_CAMPAIGNS);
+
+ const body = await request.json();
+ const validatedData = updateCampaignSchema.parse(body);
+
+ const campaign = await prisma.campaign.update({
+ where: { id },
+ data: validatedData,
+ });
+
+ return NextResponse.json(campaign);
+ } catch (error) {
+ console.error('Error updating campaign:', error);
+ if (error instanceof Error && error.message === 'Insufficient permissions') {
+ return NextResponse.json({ error: 'Forbidden' }, { status: 403 });
+ }
+ return NextResponse.json(
+ { error: error instanceof Error ? error.message : 'Internal server error' },
+ { status: 500 }
+ );
+ }
+}
+
+export async function DELETE(
+ request: NextRequest,
+ { params }: { params: { orgId: string; id: string } }
+) {
+ try {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ }
+
+ const { orgId, id } = params;
+
+ // Require permission
+ await requirePermission(session.user.id, orgId, PERMISSIONS.MANAGE_CAMPAIGNS);
+
+ await prisma.campaign.delete({
+ where: { id },
+ });
+
+ return NextResponse.json({ message: 'Campaign deleted' });
+ } catch (error) {
+ console.error('Error deleting campaign:', error);
+ if (error instanceof Error && error.message === 'Insufficient permissions') {
+ return NextResponse.json({ error: 'Forbidden' }, { status: 403 });
+ }
+ return NextResponse.json(
+ { error: error instanceof Error ? error.message : 'Internal server error' },
+ { status: 500 }
+ );
+ }
+}
diff --git a/app/api/[orgId]/campaigns/route.ts b/app/api/[orgId]/campaigns/route.ts
new file mode 100644
index 0000000..f88462d
--- /dev/null
+++ b/app/api/[orgId]/campaigns/route.ts
@@ -0,0 +1,70 @@
+import { NextRequest, NextResponse } from 'next/server';
+import { auth } from '@/lib/auth';
+import prisma from '@/lib/prisma';
+import { createCampaignSchema } from '@/lib/schemas';
+import { requirePermission, PERMISSIONS } from '@/lib/rbac';
+
+export async function GET(request: NextRequest, { params }: { params: { orgId: string } }) {
+ try {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ }
+
+ const { orgId } = params;
+
+ // Check if user has access to the org (at least CREATOR)
+ await requirePermission(session.user.id, orgId, PERMISSIONS.MANAGE_CONTENT);
+
+ const campaigns = await prisma.campaign.findMany({
+ where: { organizationId: orgId },
+ include: {
+ contents: true,
+ schedules: true,
+ },
+ });
+
+ return NextResponse.json(campaigns);
+ } catch (error) {
+ console.error('Error fetching campaigns:', error);
+ return NextResponse.json(
+ { error: error instanceof Error ? error.message : 'Internal server error' },
+ { status: 500 }
+ );
+ }
+}
+
+export async function POST(request: NextRequest, { params }: { params: { orgId: string } }) {
+ try {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ }
+
+ const { orgId } = params;
+
+ // Require BRAND_OWNER or ADMIN to create campaigns
+ await requirePermission(session.user.id, orgId, PERMISSIONS.MANAGE_CAMPAIGNS);
+
+ const body = await request.json();
+ const validatedData = createCampaignSchema.parse(body);
+
+ const campaign = await prisma.campaign.create({
+ data: {
+ ...validatedData,
+ organizationId: orgId,
+ },
+ });
+
+ return NextResponse.json(campaign, { status: 201 });
+ } catch (error) {
+ console.error('Error creating campaign:', error);
+ if (error instanceof Error && error.message === 'Insufficient permissions') {
+ return NextResponse.json({ error: 'Forbidden' }, { status: 403 });
+ }
+ return NextResponse.json(
+ { error: error instanceof Error ? error.message : 'Internal server error' },
+ { status: 500 }
+ );
+ }
+}
diff --git a/app/api/[orgId]/content/[id]/route.ts b/app/api/[orgId]/content/[id]/route.ts
new file mode 100644
index 0000000..9c4ce17
--- /dev/null
+++ b/app/api/[orgId]/content/[id]/route.ts
@@ -0,0 +1,111 @@
+import { NextRequest, NextResponse } from 'next/server';
+import { auth } from '@/lib/auth';
+import prisma from '@/lib/prisma';
+import { updateContentSchema } from '@/lib/schemas';
+import { requirePermission, PERMISSIONS } from '@/lib/rbac';
+
+export async function GET(
+ request: NextRequest,
+ { params }: { params: { orgId: string; id: string } }
+) {
+ try {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ }
+
+ const { orgId, id } = params;
+
+ await requirePermission(session.user.id, orgId, PERMISSIONS.MANAGE_CONTENT);
+
+ const content = await prisma.content.findFirst({
+ where: { id, campaign: { organizationId: orgId } },
+ include: {
+ campaign: true,
+ assets: true,
+ },
+ });
+
+ if (!content) {
+ return NextResponse.json({ error: 'Content not found' }, { status: 404 });
+ }
+
+ return NextResponse.json(content);
+ } catch (error) {
+ console.error('Error fetching content:', error);
+ return NextResponse.json(
+ { error: error instanceof Error ? error.message : 'Internal server error' },
+ { status: 500 }
+ );
+ }
+}
+
+export async function PUT(
+ request: NextRequest,
+ { params }: { params: { orgId: string; id: string } }
+) {
+ try {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ }
+
+ const { orgId, id } = params;
+
+ await requirePermission(session.user.id, orgId, PERMISSIONS.MANAGE_CONTENT);
+
+ const body = await request.json();
+ const validatedData = updateContentSchema.parse(body);
+
+ const content = await prisma.content.update({
+ where: { id },
+ data: validatedData,
+ include: {
+ campaign: true,
+ assets: true,
+ },
+ });
+
+ return NextResponse.json(content);
+ } catch (error) {
+ console.error('Error updating content:', error);
+ if (error instanceof Error && error.message === 'Insufficient permissions') {
+ return NextResponse.json({ error: 'Forbidden' }, { status: 403 });
+ }
+ return NextResponse.json(
+ { error: error instanceof Error ? error.message : 'Internal server error' },
+ { status: 500 }
+ );
+ }
+}
+
+export async function DELETE(
+ request: NextRequest,
+ { params }: { params: { orgId: string; id: string } }
+) {
+ try {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ }
+
+ const { orgId, id } = params;
+
+ await requirePermission(session.user.id, orgId, PERMISSIONS.MANAGE_CONTENT);
+
+ await prisma.content.delete({
+ where: { id },
+ });
+
+ return NextResponse.json({ message: 'Content deleted' });
+ } catch (error) {
+ console.error('Error deleting content:', error);
+ if (error instanceof Error && error.message === 'Insufficient permissions') {
+ return NextResponse.json({ error: 'Forbidden' }, { status: 403 });
+ }
+ return NextResponse.json(
+ { error: error instanceof Error ? error.message : 'Internal server error' },
+ { status: 500 }
+ );
+ }
+}
diff --git a/app/api/[orgId]/content/generate/route.ts b/app/api/[orgId]/content/generate/route.ts
new file mode 100644
index 0000000..0ccb686
--- /dev/null
+++ b/app/api/[orgId]/content/generate/route.ts
@@ -0,0 +1,61 @@
+import { NextRequest, NextResponse } from 'next/server';
+import { auth } from '@/lib/auth';
+import prisma from '@/lib/prisma';
+import { generateContentSchema } from '@/lib/schemas';
+import { requirePermission, PERMISSIONS } from '@/lib/rbac';
+import { generateContent } from '@/lib/openai';
+
+export async function POST(request: NextRequest, { params }: { params: { orgId: string } }) {
+ try {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ }
+
+ const { orgId } = params;
+
+ await requirePermission(session.user.id, orgId, PERMISSIONS.MANAGE_CONTENT);
+
+ const body = await request.json();
+ const validatedData = generateContentSchema.parse(body);
+
+ // Verify campaign belongs to org
+ const campaign = await prisma.campaign.findFirst({
+ where: { id: validatedData.campaignId, organizationId: orgId },
+ });
+ if (!campaign) {
+ return NextResponse.json({ error: 'Campaign not found' }, { status: 404 });
+ }
+
+ // Generate content using OpenAI
+ const generatedBody = await generateContent({
+ prompt: validatedData.prompt,
+ type: 'general',
+ tone: 'professional',
+ length: 'medium',
+ });
+
+ const content = await prisma.content.create({
+ data: {
+ title: `AI Generated: ${validatedData.prompt.slice(0, 50)}...`,
+ body: generatedBody,
+ campaignId: validatedData.campaignId,
+ },
+ include: {
+ campaign: true,
+ assets: true,
+ },
+ });
+
+ return NextResponse.json(content, { status: 201 });
+ } catch (error) {
+ console.error('Error generating content:', error);
+ if (error instanceof Error && error.message === 'Insufficient permissions') {
+ return NextResponse.json({ error: 'Forbidden' }, { status: 403 });
+ }
+ return NextResponse.json(
+ { error: error instanceof Error ? error.message : 'Internal server error' },
+ { status: 500 }
+ );
+ }
+}
diff --git a/app/api/[orgId]/content/ideas/route.ts b/app/api/[orgId]/content/ideas/route.ts
new file mode 100644
index 0000000..18f83c1
--- /dev/null
+++ b/app/api/[orgId]/content/ideas/route.ts
@@ -0,0 +1,41 @@
+import { NextRequest, NextResponse } from 'next/server';
+import { auth } from '@/lib/auth';
+import { generateIdeas } from '@/lib/openai';
+import { requirePermission, PERMISSIONS } from '@/lib/rbac';
+
+export async function POST(request: NextRequest, { params }: { params: { orgId: string } }) {
+ try {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ }
+
+ const { orgId } = params;
+
+ await requirePermission(session.user.id, orgId, PERMISSIONS.MANAGE_CONTENT);
+
+ const body = await request.json();
+ const { topic, count = 5, type = 'general' } = body;
+
+ if (!topic) {
+ return NextResponse.json({ error: 'Topic is required' }, { status: 400 });
+ }
+
+ const ideas = await generateIdeas({
+ topic,
+ count,
+ type,
+ });
+
+ return NextResponse.json({ ideas }, { status: 200 });
+ } catch (error) {
+ console.error('Error generating ideas:', error);
+ if (error instanceof Error && error.message === 'Insufficient permissions') {
+ return NextResponse.json({ error: 'Forbidden' }, { status: 403 });
+ }
+ return NextResponse.json(
+ { error: error instanceof Error ? error.message : 'Internal server error' },
+ { status: 500 }
+ );
+ }
+}
diff --git a/app/api/[orgId]/content/route.ts b/app/api/[orgId]/content/route.ts
new file mode 100644
index 0000000..a912ddc
--- /dev/null
+++ b/app/api/[orgId]/content/route.ts
@@ -0,0 +1,83 @@
+import { NextRequest, NextResponse } from 'next/server';
+import { auth } from '@/lib/auth';
+import prisma from '@/lib/prisma';
+import { createContentSchema } from '@/lib/schemas';
+import { requirePermission, PERMISSIONS } from '@/lib/rbac';
+
+export async function GET(request: NextRequest, { params }: { params: { orgId: string } }) {
+ try {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ }
+
+ const { orgId } = params;
+ const { searchParams } = new URL(request.url);
+ const campaignId = searchParams.get('campaignId');
+
+ await requirePermission(session.user.id, orgId, PERMISSIONS.MANAGE_CONTENT);
+
+ const where = campaignId
+ ? { campaign: { organizationId: orgId }, campaignId }
+ : { campaign: { organizationId: orgId } };
+
+ const contents = await prisma.content.findMany({
+ where,
+ include: {
+ campaign: true,
+ assets: true,
+ },
+ });
+
+ return NextResponse.json(contents);
+ } catch (error) {
+ console.error('Error fetching contents:', error);
+ return NextResponse.json(
+ { error: error instanceof Error ? error.message : 'Internal server error' },
+ { status: 500 }
+ );
+ }
+}
+
+export async function POST(request: NextRequest, { params }: { params: { orgId: string } }) {
+ try {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ }
+
+ const { orgId } = params;
+
+ await requirePermission(session.user.id, orgId, PERMISSIONS.MANAGE_CONTENT);
+
+ const body = await request.json();
+ const validatedData = createContentSchema.parse(body);
+
+ // Verify campaign belongs to org
+ const campaign = await prisma.campaign.findFirst({
+ where: { id: validatedData.campaignId, organizationId: orgId },
+ });
+ if (!campaign) {
+ return NextResponse.json({ error: 'Campaign not found' }, { status: 404 });
+ }
+
+ const content = await prisma.content.create({
+ data: validatedData,
+ include: {
+ campaign: true,
+ assets: true,
+ },
+ });
+
+ return NextResponse.json(content, { status: 201 });
+ } catch (error) {
+ console.error('Error creating content:', error);
+ if (error instanceof Error && error.message === 'Insufficient permissions') {
+ return NextResponse.json({ error: 'Forbidden' }, { status: 403 });
+ }
+ return NextResponse.json(
+ { error: error instanceof Error ? error.message : 'Internal server error' },
+ { status: 500 }
+ );
+ }
+}
diff --git a/app/api/[orgId]/content/summarize/route.ts b/app/api/[orgId]/content/summarize/route.ts
new file mode 100644
index 0000000..e6de906
--- /dev/null
+++ b/app/api/[orgId]/content/summarize/route.ts
@@ -0,0 +1,40 @@
+import { NextRequest, NextResponse } from 'next/server';
+import { auth } from '@/lib/auth';
+import { summarizeContent } from '@/lib/openai';
+import { requirePermission, PERMISSIONS } from '@/lib/rbac';
+
+export async function POST(request: NextRequest, { params }: { params: { orgId: string } }) {
+ try {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ }
+
+ const { orgId } = params;
+
+ await requirePermission(session.user.id, orgId, PERMISSIONS.MANAGE_CONTENT);
+
+ const body = await request.json();
+ const { content, length = 'brief' } = body;
+
+ if (!content) {
+ return NextResponse.json({ error: 'Content is required' }, { status: 400 });
+ }
+
+ const summary = await summarizeContent({
+ content,
+ length,
+ });
+
+ return NextResponse.json({ summary }, { status: 200 });
+ } catch (error) {
+ console.error('Error summarizing content:', error);
+ if (error instanceof Error && error.message === 'Insufficient permissions') {
+ return NextResponse.json({ error: 'Forbidden' }, { status: 403 });
+ }
+ return NextResponse.json(
+ { error: error instanceof Error ? error.message : 'Internal server error' },
+ { status: 500 }
+ );
+ }
+}
diff --git a/app/api/[orgId]/content/translate/route.ts b/app/api/[orgId]/content/translate/route.ts
new file mode 100644
index 0000000..29c528a
--- /dev/null
+++ b/app/api/[orgId]/content/translate/route.ts
@@ -0,0 +1,44 @@
+import { NextRequest, NextResponse } from 'next/server';
+import { auth } from '@/lib/auth';
+import { translateContent } from '@/lib/openai';
+import { requirePermission, PERMISSIONS } from '@/lib/rbac';
+
+export async function POST(request: NextRequest, { params }: { params: { orgId: string } }) {
+ try {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ }
+
+ const { orgId } = params;
+
+ await requirePermission(session.user.id, orgId, PERMISSIONS.MANAGE_CONTENT);
+
+ const body = await request.json();
+ const { content, targetLanguage, sourceLanguage } = body;
+
+ if (!content || !targetLanguage) {
+ return NextResponse.json(
+ { error: 'Content and target language are required' },
+ { status: 400 }
+ );
+ }
+
+ const translatedContent = await translateContent({
+ content,
+ targetLanguage,
+ sourceLanguage,
+ });
+
+ return NextResponse.json({ translatedContent }, { status: 200 });
+ } catch (error) {
+ console.error('Error translating content:', error);
+ if (error instanceof Error && error.message === 'Insufficient permissions') {
+ return NextResponse.json({ error: 'Forbidden' }, { status: 403 });
+ }
+ return NextResponse.json(
+ { error: error instanceof Error ? error.message : 'Internal server error' },
+ { status: 500 }
+ );
+ }
+}
diff --git a/app/api/[orgId]/schedules/[id]/route.ts b/app/api/[orgId]/schedules/[id]/route.ts
new file mode 100644
index 0000000..ff8e691
--- /dev/null
+++ b/app/api/[orgId]/schedules/[id]/route.ts
@@ -0,0 +1,110 @@
+import { NextRequest, NextResponse } from 'next/server';
+import { auth } from '@/lib/auth';
+import prisma from '@/lib/prisma';
+import { updateScheduleSchema } from '@/lib/schemas';
+import { requirePermission, PERMISSIONS } from '@/lib/rbac';
+
+export async function GET(
+ request: NextRequest,
+ { params }: { params: { orgId: string; id: string } }
+) {
+ try {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ }
+
+ const { orgId, id } = params;
+
+ await requirePermission(session.user.id, orgId, PERMISSIONS.MANAGE_SCHEDULES);
+
+ const schedule = await prisma.schedule.findFirst({
+ where: { id, campaign: { organizationId: orgId } },
+ include: {
+ campaign: true,
+ content: true,
+ },
+ });
+
+ if (!schedule) {
+ return NextResponse.json({ error: 'Schedule not found' }, { status: 404 });
+ }
+
+ return NextResponse.json(schedule);
+ } catch (error) {
+ console.error('Error fetching schedule:', error);
+ return NextResponse.json(
+ { error: error instanceof Error ? error.message : 'Internal server error' },
+ { status: 500 }
+ );
+ }
+}
+
+export async function PUT(
+ request: NextRequest,
+ { params }: { params: { orgId: string; id: string } }
+) {
+ try {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ }
+
+ const { orgId, id } = params;
+
+ await requirePermission(session.user.id, orgId, PERMISSIONS.MANAGE_SCHEDULES);
+
+ const body = await request.json();
+ const validatedData = updateScheduleSchema.parse(body);
+
+ const schedule = await prisma.schedule.update({
+ where: { id },
+ data: validatedData,
+ include: {
+ campaign: true,
+ },
+ });
+
+ return NextResponse.json(schedule);
+ } catch (error) {
+ console.error('Error updating schedule:', error);
+ if (error instanceof Error && error.message === 'Insufficient permissions') {
+ return NextResponse.json({ error: 'Forbidden' }, { status: 403 });
+ }
+ return NextResponse.json(
+ { error: error instanceof Error ? error.message : 'Internal server error' },
+ { status: 500 }
+ );
+ }
+}
+
+export async function DELETE(
+ request: NextRequest,
+ { params }: { params: { orgId: string; id: string } }
+) {
+ try {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ }
+
+ const { orgId, id } = params;
+
+ await requirePermission(session.user.id, orgId, PERMISSIONS.MANAGE_SCHEDULES);
+
+ await prisma.schedule.delete({
+ where: { id },
+ });
+
+ return NextResponse.json({ message: 'Schedule deleted' });
+ } catch (error) {
+ console.error('Error deleting schedule:', error);
+ if (error instanceof Error && error.message === 'Insufficient permissions') {
+ return NextResponse.json({ error: 'Forbidden' }, { status: 403 });
+ }
+ return NextResponse.json(
+ { error: error instanceof Error ? error.message : 'Internal server error' },
+ { status: 500 }
+ );
+ }
+}
diff --git a/app/api/[orgId]/schedules/route.ts b/app/api/[orgId]/schedules/route.ts
new file mode 100644
index 0000000..af9afec
--- /dev/null
+++ b/app/api/[orgId]/schedules/route.ts
@@ -0,0 +1,82 @@
+import { NextRequest, NextResponse } from 'next/server';
+import { auth } from '@/lib/auth';
+import prisma from '@/lib/prisma';
+import { createScheduleSchema } from '@/lib/schemas';
+import { requirePermission, PERMISSIONS } from '@/lib/rbac';
+
+export async function GET(request: NextRequest, { params }: { params: { orgId: string } }) {
+ try {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ }
+
+ const { orgId } = params;
+ const { searchParams } = new URL(request.url);
+ const campaignId = searchParams.get('campaignId');
+
+ await requirePermission(session.user.id, orgId, PERMISSIONS.MANAGE_SCHEDULES);
+
+ const where = campaignId
+ ? { campaign: { organizationId: orgId }, campaignId }
+ : { campaign: { organizationId: orgId } };
+
+ const schedules = await prisma.schedule.findMany({
+ where,
+ include: {
+ campaign: true,
+ content: true,
+ },
+ });
+
+ return NextResponse.json(schedules);
+ } catch (error) {
+ console.error('Error fetching schedules:', error);
+ return NextResponse.json(
+ { error: error instanceof Error ? error.message : 'Internal server error' },
+ { status: 500 }
+ );
+ }
+}
+
+export async function POST(request: NextRequest, { params }: { params: { orgId: string } }) {
+ try {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ }
+
+ const { orgId } = params;
+
+ await requirePermission(session.user.id, orgId, PERMISSIONS.MANAGE_SCHEDULES);
+
+ const body = await request.json();
+ const validatedData = createScheduleSchema.parse(body);
+
+ // Verify campaign belongs to org
+ const campaign = await prisma.campaign.findFirst({
+ where: { id: validatedData.campaignId, organizationId: orgId },
+ });
+ if (!campaign) {
+ return NextResponse.json({ error: 'Campaign not found' }, { status: 404 });
+ }
+
+ const schedule = await prisma.schedule.create({
+ data: validatedData,
+ include: {
+ campaign: true,
+ },
+ });
+
+ return NextResponse.json(schedule, { status: 201 });
+ } catch (error) {
+ console.error('Error creating schedule:', error);
+ if (error instanceof Error && error.message === 'Insufficient permissions') {
+ return NextResponse.json({ error: 'Forbidden' }, { status: 403 });
+ }
+ return NextResponse.json(
+ { error: error instanceof Error ? error.message : 'Internal server error' },
+ { status: 500 }
+ );
+ }
+}
diff --git a/app/api/auth/[...nextauth]/route.ts b/app/api/auth/[...nextauth]/route.ts
new file mode 100644
index 0000000..bf39beb
--- /dev/null
+++ b/app/api/auth/[...nextauth]/route.ts
@@ -0,0 +1,3 @@
+import { authHandlers } from '@/lib/auth';
+
+export const { GET, POST } = authHandlers;
diff --git a/app/api/cron/publish/route.ts b/app/api/cron/publish/route.ts
new file mode 100644
index 0000000..d423438
--- /dev/null
+++ b/app/api/cron/publish/route.ts
@@ -0,0 +1,32 @@
+import { NextRequest, NextResponse } from 'next/server';
+import { runCronJob } from '@/lib/cron-worker';
+
+export async function POST(request: NextRequest) {
+ try {
+ // You might want to add authentication/authorization here
+ // to prevent unauthorized access to the cron endpoint
+
+ const result = await runCronJob();
+
+ if (result.success) {
+ return NextResponse.json({
+ message: 'Cron job executed successfully',
+ published: result.published,
+ });
+ } else {
+ return NextResponse.json({ error: result.error }, { status: 500 });
+ }
+ } catch (error) {
+ console.error('Error running cron job:', error);
+ return NextResponse.json({ error: 'Internal server error' }, { status: 500 });
+ }
+}
+
+// Optional: GET endpoint to check cron status
+export async function GET() {
+ return NextResponse.json({
+ message: 'Cron endpoint is available',
+ endpoint: '/api/cron/publish',
+ method: 'POST',
+ });
+}
diff --git a/app/api/health/route.ts b/app/api/health/route.ts
new file mode 100644
index 0000000..ec94527
--- /dev/null
+++ b/app/api/health/route.ts
@@ -0,0 +1,38 @@
+import { NextResponse } from 'next/server';
+import { PrismaClient } from '@prisma/client';
+
+const prisma = new PrismaClient();
+
+export async function GET() {
+ try {
+ // Check database connection
+ await prisma.$queryRaw`SELECT 1`;
+
+ // Check OpenAI API key (basic check)
+ const openaiKey = process.env.OPENAI_API_KEY;
+ const openaiOk = openaiKey && openaiKey.startsWith('sk-');
+
+ return NextResponse.json({
+ ok: true,
+ status: 'healthy',
+ timestamp: new Date().toISOString(),
+ services: {
+ database: 'connected',
+ openai: openaiOk ? 'configured' : 'not configured',
+ },
+ });
+ } catch (error) {
+ console.error('Health check failed:', error);
+ return NextResponse.json(
+ {
+ ok: false,
+ status: 'unhealthy',
+ timestamp: new Date().toISOString(),
+ error: error instanceof Error ? error.message : 'Unknown error',
+ },
+ { status: 503 }
+ );
+ } finally {
+ await prisma.$disconnect();
+ }
+}
diff --git a/app/api/me/role/route.ts b/app/api/me/role/route.ts
new file mode 100644
index 0000000..39c390b
--- /dev/null
+++ b/app/api/me/role/route.ts
@@ -0,0 +1,36 @@
+import { NextRequest, NextResponse } from 'next/server';
+import { auth } from '@/lib/auth';
+import { getUserRole } from '@/lib/rbac';
+
+export async function GET(request: NextRequest) {
+ try {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ }
+
+ const { searchParams } = new URL(request.url);
+ const orgId = searchParams.get('orgId');
+
+ if (!orgId) {
+ return NextResponse.json({ error: 'Organization ID required' }, { status: 400 });
+ }
+
+ const userRole = await getUserRole(orgId);
+
+ if (!userRole) {
+ return NextResponse.json(
+ { error: 'No role found for this organization' },
+ { status: 403 }
+ );
+ }
+
+ return NextResponse.json({ role: userRole });
+ } catch (error) {
+ console.error('Error fetching user role:', error);
+ return NextResponse.json(
+ { error: error instanceof Error ? error.message : 'Internal server error' },
+ { status: 500 }
+ );
+ }
+}
diff --git a/app/api/me/route.ts b/app/api/me/route.ts
new file mode 100644
index 0000000..cef8894
--- /dev/null
+++ b/app/api/me/route.ts
@@ -0,0 +1,13 @@
+import { NextResponse } from 'next/server';
+import prisma from '@/lib/prisma';
+import { auth } from '@/lib/auth';
+
+export async function GET() {
+ const session = await auth();
+ if (!session?.user?.id) return NextResponse.json({ hasMembership: false });
+ const membership = await prisma.membership.findFirst({ where: { userId: session.user.id } });
+ return NextResponse.json({
+ hasMembership: !!membership,
+ organizationId: membership?.organizationId,
+ });
+}
diff --git a/app/api/onboarding/brand/route.ts b/app/api/onboarding/brand/route.ts
new file mode 100644
index 0000000..e5ebb9a
--- /dev/null
+++ b/app/api/onboarding/brand/route.ts
@@ -0,0 +1,88 @@
+import { NextResponse } from 'next/server';
+import { z } from 'zod';
+import prisma from '@/lib/prisma';
+import type { InternalRole } from '@prisma/client';
+import { auth } from '@/lib/auth';
+
+const bodySchema = z.object({
+ brandName: z.string().min(2).max(100),
+ inviteCreatorEmail: z.string().email().optional(),
+ internalRole: z
+ .union([
+ z.literal('DESIGNER'),
+ z.literal('CONTENT'),
+ z.literal('ACCOUNT'),
+ z.literal('MANAGER'),
+ ])
+ .nullish(),
+});
+
+export async function POST(req: Request) {
+ const session = await auth();
+ if (!session?.user?.id) return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ const userId = session.user.id;
+
+ const json = await req.json().catch(() => ({}));
+ const parsed = bodySchema.safeParse(json);
+ if (!parsed.success) {
+ return NextResponse.json({ error: 'Invalid request' }, { status: 400 });
+ }
+ const { brandName, inviteCreatorEmail, internalRole } = parsed.data;
+
+ // Resolve or create default organization
+ const existingMembership = await prisma.membership.findFirst({ where: { userId } });
+ let organizationId: string;
+ if (existingMembership) {
+ organizationId = existingMembership.organizationId;
+ } else {
+ const user = await prisma.user.findUnique({ where: { id: userId } });
+ const org = await prisma.organization.create({
+ data: { name: `Workspace for ${user?.name || user?.email || 'user'}` },
+ });
+ organizationId = org.id;
+ }
+
+ const brand = await prisma.brand.create({ data: { name: brandName, organizationId } });
+
+ // Ensure membership for current user as BRAND_OWNER
+ await prisma.membership.upsert({
+ where: { userId_organizationId: { userId, organizationId } },
+ update: { role: 'BRAND_OWNER', internalRole: (internalRole as InternalRole | null) ?? null },
+ create: {
+ userId,
+ organizationId,
+ role: 'BRAND_OWNER',
+ internalRole: (internalRole as InternalRole | null) ?? null,
+ },
+ });
+
+ if (inviteCreatorEmail) {
+ // Create or find creator user
+ let invited = await prisma.user.findUnique({ where: { email: inviteCreatorEmail } });
+ if (!invited) {
+ invited = await prisma.user.create({
+ data: { email: inviteCreatorEmail, name: inviteCreatorEmail.split('@')[0] },
+ });
+ }
+ // Ensure creator profile
+ const creator = await prisma.creatorProfile.upsert({
+ where: { userId: invited.id },
+ update: {},
+ create: { userId: invited.id },
+ });
+ // Ensure membership of invited creator to org
+ await prisma.membership.upsert({
+ where: { userId_organizationId: { userId: invited.id, organizationId } },
+ update: { role: 'CREATOR' },
+ create: { userId: invited.id, organizationId, role: 'CREATOR' },
+ });
+ // Link creator to brand
+ await prisma.creatorBrand.upsert({
+ where: { brandId_creatorProfileId: { brandId: brand.id, creatorProfileId: creator.id } },
+ update: {},
+ create: { brandId: brand.id, creatorProfileId: creator.id },
+ });
+ }
+
+ return NextResponse.json({ ok: true, organizationId });
+}
diff --git a/app/api/onboarding/creator/route.ts b/app/api/onboarding/creator/route.ts
new file mode 100644
index 0000000..456e849
--- /dev/null
+++ b/app/api/onboarding/creator/route.ts
@@ -0,0 +1,77 @@
+import { NextResponse } from 'next/server';
+import { z } from 'zod';
+import prisma from '@/lib/prisma';
+import type { InternalRole } from '@prisma/client';
+import { auth } from '@/lib/auth';
+
+const bodySchema = z.object({
+ createBrand: z
+ .object({
+ name: z.string().min(2).max(100),
+ })
+ .optional(),
+ internalRole: z
+ .union([
+ z.literal('DESIGNER'),
+ z.literal('CONTENT'),
+ z.literal('ACCOUNT'),
+ z.literal('MANAGER'),
+ ])
+ .nullish(),
+});
+
+export async function POST(req: Request) {
+ const session = await auth();
+ if (!session?.user?.id) return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
+ const userId = session.user.id;
+
+ const json = await req.json().catch(() => ({}));
+ const parsed = bodySchema.safeParse(json);
+ if (!parsed.success) {
+ return NextResponse.json({ error: 'Invalid request' }, { status: 400 });
+ }
+ const { createBrand, internalRole } = parsed.data;
+
+ // Resolve or create default organization
+ const existingMembership = await prisma.membership.findFirst({ where: { userId } });
+ let organizationId: string;
+ if (existingMembership) {
+ organizationId = existingMembership.organizationId;
+ } else {
+ const user = await prisma.user.findUnique({ where: { id: userId } });
+ const org = await prisma.organization.create({
+ data: { name: `Workspace for ${user?.name || user?.email || 'user'}` },
+ });
+ organizationId = org.id;
+ }
+
+ const creator = await prisma.creatorProfile.upsert({
+ where: { userId },
+ update: {},
+ create: { userId },
+ });
+
+ // Ensure membership with CREATOR role
+ await prisma.membership.upsert({
+ where: { userId_organizationId: { userId, organizationId } },
+ update: { role: 'CREATOR', internalRole: (internalRole as InternalRole | null) ?? null },
+ create: {
+ userId,
+ organizationId,
+ role: 'CREATOR',
+ internalRole: (internalRole as InternalRole | null) ?? null,
+ },
+ });
+
+ if (createBrand) {
+ const brand = await prisma.brand.create({ data: { name: createBrand.name, organizationId } });
+ // Link creator to brand
+ await prisma.creatorBrand.upsert({
+ where: { brandId_creatorProfileId: { brandId: brand.id, creatorProfileId: creator.id } },
+ update: {},
+ create: { brandId: brand.id, creatorProfileId: creator.id },
+ });
+ }
+
+ return NextResponse.json({ ok: true, organizationId });
+}
diff --git a/app/auth/signin/page.tsx b/app/auth/signin/page.tsx
new file mode 100644
index 0000000..47d4f1e
--- /dev/null
+++ b/app/auth/signin/page.tsx
@@ -0,0 +1,110 @@
+'use client';
+
+import { useEffect, useState } from 'react';
+import { useRouter } from 'next/navigation';
+import { signIn } from 'next-auth/react';
+import { Input } from '@/components/ui/input';
+import { Button } from '@/components/ui/button';
+
+export default function SignInPage() {
+ const [email, setEmail] = useState('');
+ const [password, setPassword] = useState('');
+ const [loading, setLoading] = useState(false);
+ const [callbackUrl, setCallbackUrl] = useState('/');
+ const router = useRouter();
+
+ useEffect(() => {
+ if (typeof window !== 'undefined') {
+ try {
+ const url = new URL(window.location.href);
+ const cb = url.searchParams.get('callbackUrl');
+ if (cb) setCallbackUrl(cb);
+ } catch {}
+ }
+ }, []);
+
+ async function onSubmit(e: React.FormEvent) {
+ e.preventDefault();
+ setLoading(true);
+ const res = await signIn('credentials', {
+ email,
+ password,
+ redirect: false,
+ callbackUrl,
+ });
+ setLoading(false);
+ if (res?.ok) {
+ try {
+ const me = await fetch('/api/me').then((r) =>
+ r.ok ? r.json() : { hasMembership: false }
+ );
+
+ if (!me.hasMembership) {
+ router.push('/onboarding');
+ return;
+ }
+
+ // If user has membership, check if callbackUrl is valid
+ // If callbackUrl is from an org route but user doesn't have access, use their actual org
+ let targetUrl = callbackUrl;
+
+ if (callbackUrl) {
+ // Check if callbackUrl is an org route (contains orgId)
+ const urlParts = callbackUrl.split('/').filter(Boolean);
+ if (
+ urlParts.length >= 1 &&
+ urlParts[0] !== 'auth' &&
+ urlParts[0] !== 'api' &&
+ urlParts[0] !== '_next'
+ ) {
+ // This looks like an org route, verify it matches user's org
+ const callbackOrgId = urlParts[0];
+ if (callbackOrgId !== me.organizationId) {
+ targetUrl = `/${me.organizationId}/projects`;
+ }
+ }
+ }
+
+ targetUrl = targetUrl || `/${me.organizationId}/projects`;
+ router.push(targetUrl);
+ } catch (error) {
+ router.push('/onboarding');
+ }
+ } else {
+ alert('Invalid credentials (dev: check DEV_LOGIN_PASSWORD)');
+ }
+ }
+
+ return (
+
+
+
+ );
+}
diff --git a/app/layout.tsx b/app/layout.tsx
index 5572a57..e8c7441 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -1,6 +1,9 @@
import type { Metadata } from 'next';
import { Geist, Geist_Mono } from 'next/font/google';
import { Toaster } from '@/components/ui/sonner';
+import { NextIntlClientProvider } from 'next-intl';
+import { getMessages } from 'next-intl/server';
+import { SessionProvider } from 'next-auth/react';
import './globals.css';
const geistSans = Geist({
@@ -55,21 +58,30 @@ export const metadata: Metadata = {
import { ThemeProvider } from '@/components/layout/theme-provider';
-export default function RootLayout({
+export default async function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
+ const messages = await getMessages();
+
return (
-
-
- {children}
-
-
+
+
+
+
+ {children}
+
+
+
+
);
diff --git a/app/onboarding/page.tsx b/app/onboarding/page.tsx
new file mode 100644
index 0000000..025460a
--- /dev/null
+++ b/app/onboarding/page.tsx
@@ -0,0 +1,127 @@
+import { redirect } from 'next/navigation';
+import { auth } from '@/lib/auth';
+import prisma from '@/lib/prisma';
+
+export default async function OnboardingPage() {
+ try {
+ const session = await auth();
+
+ if (!session?.user?.id) {
+ redirect('/auth/signin');
+ }
+
+ console.log('Onboarding - User ID:', session.user.id);
+ console.log('Onboarding - User email:', session.user.email);
+
+ // First, check if user exists by ID
+ let user = await prisma.user.findUnique({
+ where: { id: session.user.id },
+ });
+
+ if (!user) {
+ // Check if user exists by email (might have different ID)
+ const existingUserByEmail = await prisma.user.findUnique({
+ where: { email: session.user.email! },
+ });
+
+ if (existingUserByEmail) {
+ console.log('Onboarding - User found by email with different ID:', existingUserByEmail);
+
+ // Check if this user already has membership
+ const existingMembership = await prisma.membership.findFirst({
+ where: { userId: existingUserByEmail.id },
+ });
+
+ if (existingMembership) {
+ console.log('Onboarding - Existing user has membership, redirecting');
+ redirect(`/${existingMembership.organizationId}/projects`);
+ }
+
+ // Use the existing user ID for membership creation
+ user = existingUserByEmail;
+ } else {
+ console.log('Onboarding - User not found in DB, creating...');
+ // Create user if it doesn't exist
+ user = await prisma.user.create({
+ data: {
+ id: session.user.id,
+ email: session.user.email!,
+ name: session.user.name || 'Unknown User',
+ },
+ });
+ console.log('Onboarding - User created:', user);
+ }
+ } else {
+ console.log('Onboarding - User found in DB:', user);
+ }
+
+ // Check if user already has membership
+ const membership = await prisma.membership.findFirst({
+ where: { userId: user.id },
+ });
+
+ if (membership) {
+ console.log('Onboarding - User already has membership, redirecting');
+ // User already has membership, redirect to their org
+ redirect(`/${membership.organizationId}/projects`);
+ }
+
+ console.log('Onboarding - Creating organization and membership...');
+
+ // Create default organization and membership for the user
+ const org = await prisma.organization.create({
+ data: {
+ name: `${user.name || 'My'}'s Organization`,
+ },
+ });
+
+ console.log('Onboarding - Organization created:', org);
+
+ const newMembership = await prisma.membership.create({
+ data: {
+ userId: user.id,
+ organizationId: org.id,
+ role: 'ADMIN',
+ },
+ });
+
+ console.log('Onboarding - Membership created:', newMembership);
+
+ // Redirect to the new organization
+ redirect(`/${org.id}/projects`);
+ } catch (error) {
+ console.error('Onboarding error:', error);
+ return (
+
+
+
🎯 Welcome to AiM!
+
+
+
+
❌ Setup Error
+
+ {error instanceof Error ? error.message : 'Unknown error occurred'}
+
+
+
+
+
🔍 Debug Info
+
+ Check the server console for detailed error information.
+
+
+
+
+
+
+
+ );
+ }
+}
diff --git a/app/page.tsx b/app/page.tsx
index 62fccc7..9527b67 100644
--- a/app/page.tsx
+++ b/app/page.tsx
@@ -1,5 +1,77 @@
import { redirect } from 'next/navigation';
+import { auth } from '@/lib/auth';
+import prisma from '@/lib/prisma';
-export default function Home() {
- redirect('lndev-ui/team/CORE/all');
+export default async function Home() {
+ try {
+ const session = await auth();
+ console.log('Home page - Session:', session);
+
+ if (!session?.user?.id) {
+ console.log('Home page - No session, redirecting to signin');
+ redirect('/auth/signin');
+ }
+
+ // Check if user has membership by session user ID first
+ let membership = await prisma.membership.findFirst({
+ where: { userId: session.user.id },
+ });
+
+ // If no membership found by session ID, check by email
+ if (!membership && session.user.email) {
+ console.log('Home page - No membership by ID, checking by email...');
+ const userByEmail = await prisma.user.findUnique({
+ where: { email: session.user.email },
+ });
+
+ if (userByEmail) {
+ console.log('Home page - User found by email:', userByEmail);
+ membership = await prisma.membership.findFirst({
+ where: { userId: userByEmail.id },
+ });
+ }
+ }
+
+ console.log('Home page - Membership:', membership);
+
+ if (!membership) {
+ console.log('Home page - No membership, redirecting to onboarding');
+ redirect('/onboarding');
+ }
+
+ // User has membership, redirect to their organization
+ const redirectUrl = `/${membership.organizationId}/projects`;
+ console.log('Home page - Redirecting to:', redirectUrl);
+ redirect(redirectUrl);
+ } catch (error) {
+ // Don't log NEXT_REDIRECT errors as they are expected
+ if (error instanceof Error && error.message.includes('NEXT_REDIRECT')) {
+ // This is expected behavior, not an error
+ throw error; // Re-throw to let Next.js handle the redirect
+ }
+
+ console.error('Home page - Actual error:', error);
+ return (
+
+
+
❌ Error Loading Page
+
+
+
+
Error Details
+
+ {error instanceof Error ? error.message : 'Unknown error'}
+
+
+ Try Again
+
+
+
+
+
+ );
+ }
}
diff --git a/app/test/page.tsx b/app/test/page.tsx
new file mode 100644
index 0000000..f09d843
--- /dev/null
+++ b/app/test/page.tsx
@@ -0,0 +1,33 @@
+export default function TestPage() {
+ return (
+
+
+
Test Page
+
+ This page bypasses authentication to test if the app works.
+
+
+
+
✅ App is Working
+
The basic Next.js app is functioning correctly.
+
+
+
🔐 Authentication Issue
+
+ The problem is likely in the authentication flow or redirects.
+
+
+
+
📝 Next Steps
+
Check the browser console for error messages.
+
+
+
+
+
+ );
+}
diff --git a/components/__tests__/admin-dashboard.test.tsx b/components/__tests__/admin-dashboard.test.tsx
new file mode 100644
index 0000000..35439d8
--- /dev/null
+++ b/components/__tests__/admin-dashboard.test.tsx
@@ -0,0 +1,45 @@
+import React from 'react';
+import { render, screen } from '@testing-library/react';
+import '@testing-library/jest-dom';
+import { AdminDashboard } from '../dashboards/admin-dashboard';
+
+describe('AdminDashboard', () => {
+ const mockOrgId = 'test-org-123';
+
+ it('renders the dashboard title', () => {
+ render();
+ expect(screen.getByText('Admin Dashboard')).toBeInTheDocument();
+ });
+
+ it('renders organization statistics', () => {
+ render();
+
+ expect(screen.getByText('Total Users')).toBeInTheDocument();
+ expect(screen.getByText('45')).toBeInTheDocument(); // totalUsers
+ expect(screen.getByText('38 active')).toBeInTheDocument(); // activeUsers
+
+ expect(screen.getByText('Active Campaigns')).toBeInTheDocument();
+ expect(screen.getByText('8')).toBeInTheDocument(); // activeCampaigns
+ expect(screen.getByText('of 12 total')).toBeInTheDocument(); // totalCampaigns
+
+ expect(screen.getByText('Content Pieces')).toBeInTheDocument();
+ expect(screen.getByText('156')).toBeInTheDocument(); // totalContent
+
+ expect(screen.getByText('Pending Approvals')).toBeInTheDocument();
+ expect(screen.getByText('23')).toBeInTheDocument(); // pendingApprovals
+ });
+
+ it('renders tabs', () => {
+ render();
+
+ expect(screen.getByText('User Management')).toBeInTheDocument();
+ expect(screen.getByText('Organization')).toBeInTheDocument();
+ expect(screen.getByText('System')).toBeInTheDocument();
+ });
+
+ it('renders system settings button', () => {
+ render();
+
+ expect(screen.getByText('System Settings')).toBeInTheDocument();
+ });
+});
diff --git a/components/analytics/analytics-charts.tsx b/components/analytics/analytics-charts.tsx
new file mode 100644
index 0000000..a98da55
--- /dev/null
+++ b/components/analytics/analytics-charts.tsx
@@ -0,0 +1,149 @@
+'use client';
+
+import React from 'react';
+import {
+ BarChart,
+ Bar,
+ XAxis,
+ YAxis,
+ CartesianGrid,
+ Tooltip,
+ ResponsiveContainer,
+ PieChart,
+ Pie,
+ Cell,
+ LineChart,
+ Line,
+} from 'recharts';
+
+interface AnalyticsChartsProps {
+ metrics: {
+ totalEvents: number;
+ eventsByType: Record;
+ impressions: number;
+ clicks: number;
+ views: number;
+ ctr: number;
+ roi: number;
+ campaignMetrics: Array<{
+ id: string;
+ name: string;
+ totalEvents: number;
+ contentCount: number;
+ contentMetrics: Array<{
+ id: string;
+ title: string;
+ events: number;
+ impressions: number;
+ clicks: number;
+ views: number;
+ }>;
+ }>;
+ };
+}
+
+const COLORS = ['#0088FE', '#00C49F', '#FFBB28', '#FF8042', '#8884D8'];
+
+export function AnalyticsCharts({ metrics }: AnalyticsChartsProps) {
+ // Prepare data for event types pie chart
+ const eventTypesData = Object.entries(metrics.eventsByType).map(([type, count]) => ({
+ name: type.charAt(0).toUpperCase() + type.slice(1),
+ value: count,
+ }));
+
+ // Prepare data for campaign performance bar chart
+ const campaignData = metrics.campaignMetrics.map((campaign) => ({
+ name: campaign.name.length > 15 ? campaign.name.substring(0, 15) + '...' : campaign.name,
+ events: campaign.totalEvents,
+ content: campaign.contentCount,
+ }));
+
+ // Prepare data for performance metrics line chart
+ const performanceData = [
+ { name: 'Impressions', value: metrics.impressions },
+ { name: 'Clicks', value: metrics.clicks },
+ { name: 'Views', value: metrics.views },
+ ];
+
+ return (
+
+ {/* Event Types Distribution */}
+
+
Event Types Distribution
+
+
+ `${name} ${(percent * 100).toFixed(0)}%`}
+ outerRadius={80}
+ fill="#8884d8"
+ dataKey="value"
+ >
+ {eventTypesData.map((entry, index) => (
+ |
+ ))}
+
+
+
+
+
+
+ {/* Campaign Performance */}
+
+
Campaign Performance
+
+
+
+
+
+
+
+
+
+
+
+ {/* Performance Metrics */}
+
+
Key Performance Metrics
+
+
+
+ {metrics.impressions.toLocaleString()}
+
+
Impressions
+
+
+
+ {metrics.clicks.toLocaleString()}
+
+
Clicks
+
+
+
+ {metrics.ctr.toFixed(2)}%
+
+
CTR
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/components/analytics/analytics-example.tsx b/components/analytics/analytics-example.tsx
new file mode 100644
index 0000000..b38adfc
--- /dev/null
+++ b/components/analytics/analytics-example.tsx
@@ -0,0 +1,119 @@
+'use client';
+
+import React from 'react';
+import { Button } from '@/components/ui/button';
+import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
+import { useAnalytics } from '@/hooks/use-analytics';
+import { Eye, MousePointer, ThumbsUp, Share2 } from 'lucide-react';
+
+interface AnalyticsExampleProps {
+ orgId: string;
+ campaignId?: string;
+ contentId?: string;
+}
+
+export function AnalyticsExample({ orgId, campaignId, contentId }: AnalyticsExampleProps) {
+ const { trackEvent } = useAnalytics(orgId);
+
+ const handleView = async () => {
+ try {
+ await trackEvent('view', campaignId, contentId, {
+ source: 'example_component',
+ timestamp: new Date().toISOString(),
+ });
+ console.log('View event tracked');
+ } catch (error) {
+ console.error('Failed to track view:', error);
+ }
+ };
+
+ const handleClick = async () => {
+ try {
+ await trackEvent('click', campaignId, contentId, {
+ element: 'example_button',
+ position: 'center',
+ });
+ console.log('Click event tracked');
+ } catch (error) {
+ console.error('Failed to track click:', error);
+ }
+ };
+
+ const handleLike = async () => {
+ try {
+ await trackEvent('like', campaignId, contentId, {
+ reaction_type: 'thumbs_up',
+ });
+ console.log('Like event tracked');
+ } catch (error) {
+ console.error('Failed to track like:', error);
+ }
+ };
+
+ const handleShare = async () => {
+ try {
+ await trackEvent('share', campaignId, contentId, {
+ platform: 'social_media',
+ });
+ console.log('Share event tracked');
+ } catch (error) {
+ console.error('Failed to track share:', error);
+ }
+ };
+
+ return (
+
+
+ Analytics Event Tracking Example
+
+ Click buttons to track different types of analytics events
+
+
+
+
+
+
+
+
+
+
+
+
+ Campaign ID: {campaignId || 'Not set'}
+
+
+ Content ID: {contentId || 'Not set'}
+
+
+ Organization ID: {orgId}
+
+
+
+
+
+ Usage:
+
+
+ {`const { trackEvent } = useAnalytics(orgId);
+
+await trackEvent('event_type', campaignId, contentId, {
+ custom_data: 'value'
+});`}
+
+
+
+
+ );
+}
diff --git a/components/assets/asset-library.tsx b/components/assets/asset-library.tsx
new file mode 100644
index 0000000..e0d301b
--- /dev/null
+++ b/components/assets/asset-library.tsx
@@ -0,0 +1,312 @@
+'use client';
+
+import { useState, useEffect } from 'react';
+import { useSession } from 'next-auth/react';
+import { Button } from '@/components/ui/button';
+import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
+import { Badge } from '@/components/ui/badge';
+import { Input } from '@/components/ui/input';
+import {
+ Dialog,
+ DialogContent,
+ DialogHeader,
+ DialogTitle,
+ DialogTrigger,
+} from '@/components/ui/dialog';
+import { Upload, Search, Image, Video, FileText, Music, Trash2, Eye } from 'lucide-react';
+import { AssetUpload } from './asset-upload';
+import { AssetPreview } from './asset-preview';
+
+interface Asset {
+ id: string;
+ url: string;
+ name?: string;
+ type: string;
+ size?: number;
+ description?: string;
+ tags?: string[];
+ createdAt: string;
+ content: {
+ id: string;
+ title: string;
+ };
+}
+
+interface AssetLibraryProps {
+ orgId: string;
+ contentId?: string;
+ onAssetSelect?: (asset: Asset) => void;
+}
+
+export function AssetLibrary({ orgId, contentId, onAssetSelect }: AssetLibraryProps) {
+ const { data: session } = useSession();
+ const [assets, setAssets] = useState([]);
+ const [loading, setLoading] = useState(true);
+ const [searchTerm, setSearchTerm] = useState('');
+ const [selectedType, setSelectedType] = useState('all');
+ const [selectedTags, setSelectedTags] = useState([]);
+ const [sortBy, setSortBy] = useState('newest');
+ const [uploadDialogOpen, setUploadDialogOpen] = useState(false);
+ const [previewAsset, setPreviewAsset] = useState(null);
+
+ const fetchAssets = async () => {
+ try {
+ const params = new URLSearchParams();
+ if (contentId) params.append('contentId', contentId);
+
+ const response = await fetch(`/api/${orgId}/assets?${params}`);
+ if (response.ok) {
+ const data = await response.json();
+ setAssets(data);
+ }
+ } catch (error) {
+ console.error('Error fetching assets:', error);
+ } finally {
+ setLoading(false);
+ }
+ };
+
+ useEffect(() => {
+ if (session?.user) {
+ fetchAssets();
+ }
+ }, [session, orgId, contentId]);
+
+ const filteredAssets = assets
+ .filter((asset) => {
+ const matchesSearch =
+ !searchTerm ||
+ asset.name?.toLowerCase().includes(searchTerm.toLowerCase()) ||
+ asset.content.title.toLowerCase().includes(searchTerm.toLowerCase()) ||
+ asset.type.toLowerCase().includes(searchTerm.toLowerCase()) ||
+ asset.description?.toLowerCase().includes(searchTerm.toLowerCase()) ||
+ asset.tags?.some((tag) => tag.toLowerCase().includes(searchTerm.toLowerCase()));
+
+ const matchesType = selectedType === 'all' || asset.type.startsWith(selectedType);
+ const matchesTags =
+ selectedTags.length === 0 || selectedTags.every((tag) => asset.tags?.includes(tag));
+
+ return matchesSearch && matchesType && matchesTags;
+ })
+ .sort((a, b) => {
+ switch (sortBy) {
+ case 'newest':
+ return new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime();
+ case 'oldest':
+ return new Date(a.createdAt).getTime() - new Date(b.createdAt).getTime();
+ case 'name':
+ return (a.name || a.content.title).localeCompare(b.name || b.content.title);
+ case 'size':
+ return (b.size || 0) - (a.size || 0);
+ default:
+ return 0;
+ }
+ });
+
+ const getAssetIcon = (type: string) => {
+ if (type.startsWith('image/')) return ;
+ if (type.startsWith('video/')) return ;
+ if (type.startsWith('audio/')) return ;
+ if (type === 'application/pdf') return ;
+ return ;
+ };
+
+ const getTypeBadgeColor = (type: string) => {
+ if (type.startsWith('image/')) return 'bg-green-100 text-green-800';
+ if (type.startsWith('video/')) return 'bg-blue-100 text-blue-800';
+ if (type.startsWith('audio/')) return 'bg-purple-100 text-purple-800';
+ return 'bg-gray-100 text-gray-800';
+ };
+
+ const handleAssetUpload = () => {
+ setUploadDialogOpen(false);
+ fetchAssets();
+ };
+
+ const handleDeleteAsset = async (assetId: string) => {
+ if (!confirm('Are you sure you want to delete this asset?')) return;
+
+ try {
+ const response = await fetch(`/api/${orgId}/assets/${assetId}`, {
+ method: 'DELETE',
+ });
+
+ if (response.ok) {
+ setAssets(assets.filter((asset) => asset.id !== assetId));
+ }
+ } catch (error) {
+ console.error('Error deleting asset:', error);
+ }
+ };
+
+ if (loading) {
+ return (
+
+ );
+ }
+
+ return (
+
+
+
Asset Library
+
+
+
+
+
+
+
+ setSearchTerm(e.target.value)}
+ className="pl-10"
+ />
+
+
+
+
+
+ {/* Tag filters */}
+
+ {Array.from(new Set(assets.flatMap((asset) => asset.tags || []))).map((tag) => (
+
+ ))}
+
+
+
+
+ {filteredAssets.map((asset) => (
+
+
+
+
+ {getAssetIcon(asset.type)}
+
+ {asset.type.split('/')[0]}
+
+
+
+
+
+
+
+
+
+
+
+ {asset.name || asset.content.title}
+
+ {asset.description && (
+
{asset.description}
+ )}
+
+ {asset.tags?.slice(0, 2).map((tag) => (
+
+ {tag}
+
+ ))}
+ {asset.tags && asset.tags.length > 2 && (
+
+ +{asset.tags.length - 2}
+
+ )}
+
+
+ {new Date(asset.createdAt).toLocaleDateString()}
+ {asset.size && {(asset.size / 1024 / 1024).toFixed(1)} MB}
+
+ {onAssetSelect && (
+
+ )}
+
+
+
+ ))}
+
+
+ {filteredAssets.length === 0 && (
+
+
+
No assets found
+
+ {searchTerm || selectedType !== 'all'
+ ? 'Try adjusting your search or filter criteria.'
+ : 'Upload your first asset to get started.'}
+
+
+ )}
+
+ {previewAsset && (
+
setPreviewAsset(null)} />
+ )}
+
+ );
+}
diff --git a/components/assets/asset-preview.tsx b/components/assets/asset-preview.tsx
new file mode 100644
index 0000000..48db523
--- /dev/null
+++ b/components/assets/asset-preview.tsx
@@ -0,0 +1,129 @@
+'use client';
+
+import { Dialog, DialogContent, DialogHeader, DialogTitle } from '@/components/ui/dialog';
+import { Badge } from '@/components/ui/badge';
+import { Button } from '@/components/ui/button';
+import { Download, ExternalLink, Image, Video, FileText, Music } from 'lucide-react';
+
+interface Asset {
+ id: string;
+ url: string;
+ type: string;
+ createdAt: string;
+ content: {
+ id: string;
+ title: string;
+ };
+}
+
+interface AssetPreviewProps {
+ asset: Asset | null;
+ onClose: () => void;
+}
+
+export function AssetPreview({ asset, onClose }: AssetPreviewProps) {
+ if (!asset) return null;
+
+ const getAssetIcon = (type: string) => {
+ if (type.startsWith('image/')) return ;
+ if (type.startsWith('video/')) return ;
+ if (type.startsWith('audio/')) return ;
+ if (type === 'application/pdf') return ;
+ return ;
+ };
+
+ const getTypeBadgeColor = (type: string) => {
+ if (type.startsWith('image/')) return 'bg-green-100 text-green-800';
+ if (type.startsWith('video/')) return 'bg-blue-100 text-blue-800';
+ if (type.startsWith('audio/')) return 'bg-purple-100 text-purple-800';
+ return 'bg-gray-100 text-gray-800';
+ };
+
+ const renderAssetContent = () => {
+ if (asset.type.startsWith('image/')) {
+ return (
+
+ );
+ }
+
+ if (asset.type.startsWith('video/')) {
+ return ;
+ }
+
+ if (asset.type.startsWith('audio/')) {
+ return ;
+ }
+
+ if (asset.type === 'application/pdf') {
+ return (
+
+ );
+ }
+
+ return (
+
+ {getAssetIcon(asset.type)}
+
Preview not available for this file type
+
+ );
+ };
+
+ const handleDownload = () => {
+ const link = document.createElement('a');
+ link.href = asset.url;
+ link.download = asset.content.title;
+ link.click();
+ };
+
+ const handleOpenInNewTab = () => {
+ window.open(asset.url, '_blank');
+ };
+
+ return (
+
+ );
+}
diff --git a/components/assets/asset-upload.tsx b/components/assets/asset-upload.tsx
new file mode 100644
index 0000000..2b9edd4
--- /dev/null
+++ b/components/assets/asset-upload.tsx
@@ -0,0 +1,121 @@
+'use client';
+
+import { useState } from 'react';
+import { useSession } from 'next-auth/react';
+import { Button } from '@/components/ui/button';
+import { Input } from '@/components/ui/input';
+import { Label } from '@/components/ui/label';
+import {
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
+} from '@/components/ui/select';
+import { Upload, X } from 'lucide-react';
+
+interface AssetUploadProps {
+ orgId: string;
+ contentId?: string;
+ onUploadComplete: () => void;
+}
+
+export function AssetUpload({ orgId, contentId, onUploadComplete }: AssetUploadProps) {
+ const { data: session } = useSession();
+ const [file, setFile] = useState(null);
+ const [uploading, setUploading] = useState(false);
+ const [selectedContentId, setSelectedContentId] = useState(contentId || '');
+
+ const handleFileSelect = (e: React.ChangeEvent) => {
+ const selectedFile = e.target.files?.[0];
+ if (selectedFile) {
+ setFile(selectedFile);
+ }
+ };
+
+ const handleUpload = async () => {
+ if (!file || !selectedContentId) return;
+
+ setUploading(true);
+ try {
+ const formData = new FormData();
+ formData.append('file', file);
+ formData.append('contentId', selectedContentId);
+
+ const response = await fetch(`/api/${orgId}/assets/upload`, {
+ method: 'POST',
+ body: formData,
+ });
+
+ if (response.ok) {
+ onUploadComplete();
+ setFile(null);
+ setSelectedContentId('');
+ } else {
+ const error = await response.json();
+ alert(`Upload failed: ${error.error}`);
+ }
+ } catch (error) {
+ console.error('Upload error:', error);
+ alert('Upload failed. Please try again.');
+ } finally {
+ setUploading(false);
+ }
+ };
+
+ const removeFile = () => {
+ setFile(null);
+ };
+
+ return (
+
+
+
+
+
+
+ {file && (
+
+
+
+ {file.name}
+
+ ({(file.size / 1024 / 1024).toFixed(2)} MB)
+
+
+
+
+ )}
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/components/common/settings/language-switcher.tsx b/components/common/settings/language-switcher.tsx
new file mode 100644
index 0000000..5df1125
--- /dev/null
+++ b/components/common/settings/language-switcher.tsx
@@ -0,0 +1,64 @@
+'use client';
+
+import { useLocale, useTranslations } from 'next-intl';
+import { useRouter, usePathname } from 'next/navigation';
+import { Button } from '@/components/ui/button';
+import {
+ DropdownMenu,
+ DropdownMenuContent,
+ DropdownMenuItem,
+ DropdownMenuTrigger,
+} from '@/components/ui/dropdown-menu';
+import { Languages } from 'lucide-react';
+import { locales } from '@/lib/i18n';
+
+export default function LanguageSwitcher() {
+ const t = useTranslations('common');
+ const locale = useLocale();
+ const router = useRouter();
+ const pathname = usePathname();
+
+ const switchLocale = (newLocale: string) => {
+ // Store the locale preference
+ localStorage.setItem('locale', newLocale);
+
+ // For now, reload the page to apply the new locale
+ // In production, you might want to implement proper locale routing
+ window.location.reload();
+ };
+
+ return (
+
+
+
+
+
+
{t('language')}
+
Choose your preferred language
+
+
+
+
+
+
+
+ switchLocale('en')}
+ className={locale === 'en' ? 'bg-accent' : ''}
+ >
+ {t('english')}
+
+ switchLocale('vi')}
+ className={locale === 'vi' ? 'bg-accent' : ''}
+ >
+ {t('vietnamese')}
+
+
+
+
+
+ );
+}
diff --git a/components/common/settings/settings.tsx b/components/common/settings/settings.tsx
index 661be11..309ea11 100644
--- a/components/common/settings/settings.tsx
+++ b/components/common/settings/settings.tsx
@@ -24,6 +24,7 @@ import {
SiTablecheck,
} from 'react-icons/si';
import { Button } from '@/components/ui/button';
+import LanguageSwitcher from './language-switcher';
interface Feature {
icon: ReactNode;
@@ -243,6 +244,13 @@ export default function Settings() {
+
+
+
Language & Region
+
+
+
+
Explore features
diff --git a/components/content/content-editor.tsx b/components/content/content-editor.tsx
new file mode 100644
index 0000000..7cb057e
--- /dev/null
+++ b/components/content/content-editor.tsx
@@ -0,0 +1,322 @@
+'use client';
+
+import { useState, useEffect } from 'react';
+import { useSession } from 'next-auth/react';
+import { Button } from '@/components/ui/button';
+import { Input } from '@/components/ui/input';
+import { Textarea } from '@/components/ui/textarea';
+import { Label } from '@/components/ui/label';
+import {
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
+} from '@/components/ui/select';
+import {
+ Dialog,
+ DialogContent,
+ DialogHeader,
+ DialogTitle,
+ DialogTrigger,
+} from '@/components/ui/dialog';
+import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
+import { Badge } from '@/components/ui/badge';
+import { Save, Image, Plus, Calendar, Clock } from 'lucide-react';
+import { AssetLibrary } from '@/components/assets/asset-library';
+import { ScheduleContentModal } from '@/components/schedules/schedule-content-modal';
+
+interface Content {
+ id: string;
+ title: string;
+ body: string;
+ campaignId: string;
+}
+
+interface Campaign {
+ id: string;
+ name: string;
+}
+
+interface Asset {
+ id: string;
+ url: string;
+ type: string;
+ createdAt: string;
+ content: {
+ id: string;
+ title: string;
+ };
+}
+
+interface ContentEditorProps {
+ orgId: string;
+ contentId?: string;
+ onSave?: (content: Content) => void;
+}
+
+export function ContentEditor({ orgId, contentId, onSave }: ContentEditorProps) {
+ const { data: session } = useSession();
+ const [title, setTitle] = useState('');
+ const [body, setBody] = useState('');
+ const [campaignId, setCampaignId] = useState('');
+ const [campaigns, setCampaigns] = useState
([]);
+ const [assets, setAssets] = useState([]);
+ const [selectedAssets, setSelectedAssets] = useState([]);
+ const [loading, setLoading] = useState(false);
+ const [assetDialogOpen, setAssetDialogOpen] = useState(false);
+
+ // Fetch campaigns
+ useEffect(() => {
+ const fetchCampaigns = async () => {
+ try {
+ const response = await fetch(`/api/${orgId}/campaigns`);
+ if (response.ok) {
+ const data = await response.json();
+ setCampaigns(data);
+ }
+ } catch (error) {
+ console.error('Error fetching campaigns:', error);
+ }
+ };
+
+ if (session?.user) {
+ fetchCampaigns();
+ }
+ }, [session, orgId]);
+
+ // Fetch content if editing
+ useEffect(() => {
+ if (contentId) {
+ const fetchContent = async () => {
+ try {
+ const response = await fetch(`/api/${orgId}/content/${contentId}`);
+ if (response.ok) {
+ const content = await response.json();
+ setTitle(content.title);
+ setBody(content.body || '');
+ setCampaignId(content.campaignId);
+ setSelectedAssets(content.assets || []);
+ }
+ } catch (error) {
+ console.error('Error fetching content:', error);
+ }
+ };
+
+ fetchContent();
+ }
+ }, [contentId, orgId]);
+
+ // Fetch assets for the selected campaign
+ useEffect(() => {
+ if (campaignId) {
+ const fetchAssets = async () => {
+ try {
+ const response = await fetch(`/api/${orgId}/assets?contentId=${campaignId}`);
+ if (response.ok) {
+ const data = await response.json();
+ setAssets(data);
+ }
+ } catch (error) {
+ console.error('Error fetching assets:', error);
+ }
+ };
+
+ fetchAssets();
+ }
+ }, [campaignId, orgId]);
+
+ const handleSave = async () => {
+ if (!title.trim() || !campaignId) return;
+
+ setLoading(true);
+ try {
+ const contentData = {
+ title: title.trim(),
+ body: body.trim(),
+ campaignId,
+ };
+
+ const url = contentId ? `/api/${orgId}/content/${contentId}` : `/api/${orgId}/content`;
+
+ const response = await fetch(url, {
+ method: contentId ? 'PUT' : 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ body: JSON.stringify(contentData),
+ });
+
+ if (response.ok) {
+ const savedContent = await response.json();
+ onSave?.(savedContent);
+ } else {
+ const error = await response.json();
+ alert(`Failed to save content: ${error.error}`);
+ }
+ } catch (error) {
+ console.error('Error saving content:', error);
+ alert('Failed to save content. Please try again.');
+ } finally {
+ setLoading(false);
+ }
+ };
+
+ const handleAssetSelect = (asset: Asset) => {
+ if (!selectedAssets.find((a) => a.id === asset.id)) {
+ setSelectedAssets([...selectedAssets, asset]);
+ }
+ setAssetDialogOpen(false);
+ };
+
+ const removeAsset = (assetId: string) => {
+ setSelectedAssets(selectedAssets.filter((asset) => asset.id !== assetId));
+ };
+
+ return (
+
+
+
+ {contentId ? 'Edit Content' : 'Create New Content'}
+
+
+
+
+
+
+
+
+ setTitle(e.target.value)}
+ placeholder="Enter content title"
+ className="mt-1"
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Assets
+
+
+
+
+ {selectedAssets.length === 0 ? (
+
+ No assets selected. Click "Add Asset" to choose from your library.
+
+ ) : (
+
+ {selectedAssets.map((asset) => (
+
+
+
+ {asset.content.title}
+
+ {asset.type.split('/')[0]}
+
+
+
+
+ ))}
+
+ )}
+
+
+
+
+
+
+
+ Schedule Publication
+
+
+
+
+ Schedule this content for automatic publication at a specific date and time.
+
+
+
+ Schedule Content
+
+ }
+ onScheduleCreated={() => {
+ // Optional: Show success message or refresh data
+ console.log('Content scheduled successfully');
+ }}
+ />
+
+
+
+
+
+ );
+}
diff --git a/components/dashboards/admin-dashboard.tsx b/components/dashboards/admin-dashboard.tsx
new file mode 100644
index 0000000..e34bad6
--- /dev/null
+++ b/components/dashboards/admin-dashboard.tsx
@@ -0,0 +1,417 @@
+'use client';
+
+import React from 'react';
+import { useTranslations } from 'next-intl';
+import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
+import { Button } from '@/components/ui/button';
+import { Badge } from '@/components/ui/badge';
+import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
+import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar';
+import {
+ Table,
+ TableBody,
+ TableCell,
+ TableHead,
+ TableHeader,
+ TableRow,
+} from '@/components/ui/table';
+import {
+ Users,
+ Building,
+ Settings,
+ Shield,
+ Activity,
+ UserPlus,
+ Crown,
+ AlertTriangle,
+ CheckCircle,
+ Clock,
+} from 'lucide-react';
+
+interface AdminDashboardProps {
+ orgId: string;
+}
+
+export function AdminDashboard({ orgId }: AdminDashboardProps) {
+ const t = useTranslations('dashboard');
+
+ // Mock data - in real app, this would come from API
+ const organizationStats = {
+ totalUsers: 45,
+ activeUsers: 38,
+ totalCampaigns: 12,
+ activeCampaigns: 8,
+ totalContent: 156,
+ pendingApprovals: 23,
+ };
+
+ const users = [
+ {
+ id: '1',
+ name: 'Sarah Johnson',
+ email: 'sarah@company.com',
+ role: 'CREATOR',
+ status: 'active',
+ lastActive: '2024-07-10',
+ campaigns: 3,
+ },
+ {
+ id: '2',
+ name: 'Mike Chen',
+ email: 'mike@company.com',
+ role: 'BRAND_OWNER',
+ status: 'active',
+ lastActive: '2024-07-09',
+ campaigns: 5,
+ },
+ {
+ id: '3',
+ name: 'Emma Davis',
+ email: 'emma@company.com',
+ role: 'CREATOR',
+ status: 'inactive',
+ lastActive: '2024-06-15',
+ campaigns: 2,
+ },
+ ];
+
+ const pendingInvites = [
+ {
+ id: '1',
+ email: 'john.doe@company.com',
+ role: 'CREATOR',
+ invitedBy: 'Sarah Johnson',
+ invitedAt: '2024-07-08',
+ status: 'pending',
+ },
+ {
+ id: '2',
+ email: 'jane.smith@agency.com',
+ role: 'BRAND_OWNER',
+ invitedBy: 'Mike Chen',
+ invitedAt: '2024-07-07',
+ status: 'pending',
+ },
+ ];
+
+ const systemAlerts = [
+ {
+ id: '1',
+ type: 'warning',
+ message: '5 users have not logged in for 30+ days',
+ timestamp: '2024-07-10T10:30:00Z',
+ },
+ {
+ id: '2',
+ type: 'info',
+ message: 'Monthly analytics report is ready',
+ timestamp: '2024-07-10T09:00:00Z',
+ },
+ ];
+
+ return (
+
+ {/* Header */}
+
+
+
{t('admin_title')}
+
{t('admin_description')}
+
+
+
+
+ {/* Organization Overview */}
+
+
+
+ {t('total_users')}
+
+
+
+ {organizationStats.totalUsers}
+
+ {organizationStats.activeUsers} {t('active_users')}
+
+
+
+
+
+ {t('active_campaigns')}
+
+
+
+ {organizationStats.activeCampaigns}
+
+ of {organizationStats.totalCampaigns} total
+
+
+
+
+
+ {t('content_pieces')}
+
+
+
+ {organizationStats.totalContent}
+ +12% this month
+
+
+
+
+ {t('pending_approvals')}
+
+
+
+ {organizationStats.pendingApprovals}
+ {t('requires_attention')}
+
+
+
+
+ {/* Main Content */}
+
+
+ {t('user_management')}
+ {t('organization')}
+ {t('system')}
+
+
+
+
+
+
+ {t('team_members')}
+ {t('manage_user_roles')}
+
+
+
+
+
+ {t('user')}
+ {t('role')}
+ {t('status')}
+ {t('actions')}
+
+
+
+ {users.map((user) => (
+
+
+
+
+
+ {user.name
+ .split(' ')
+ .map((n) => n[0])
+ .join('')}
+
+
+
+
{user.name}
+
+ {user.email}
+
+
+
+
+
+
+ {user.role === 'BRAND_OWNER'
+ ? t('brand_owner')
+ : user.role === 'CREATOR'
+ ? t('creator')
+ : t('admin')}
+
+
+
+
+ {user.status}
+
+
+
+
+
+
+ ))}
+
+
+
+
+
+
+
+ {t('pending_invites')}
+ {t('users_waiting_join')}
+
+
+ {pendingInvites.map((invite) => (
+
+
+
{invite.email}
+
+ {t('invited_by')} {invite.invitedBy} • {invite.invitedAt}
+
+
+
+ {invite.role}
+
+
+
+ ))}
+
+
+
+
+
+
+
+
+
+
+ Organization Settings
+ Configure organization-wide settings
+
+
+
+
+
Acme Marketing Inc.
+
+
+
+
Creator
+
+
+
+
Yes
+
+
+
+
+
+
+
+ Role Permissions
+ Manage what each role can access
+
+
+
+
+
+
+ Admin
+
+
Full Access
+
+
+
+
+ Brand Owner
+
+
Limited Access
+
+
+
+
+ Creator
+
+
Content Access
+
+
+
+
+
+
+
+
+
+
+
+ System Alerts
+ Important notifications and system status
+
+
+ {systemAlerts.map((alert) => (
+
+ {alert.type === 'warning' ? (
+
+ ) : (
+
+ )}
+
+
{alert.message}
+
+ {new Date(alert.timestamp).toLocaleString()}
+
+
+
+
+ ))}
+
+
+
+
+
+
+ System Health
+
+
+
+
+ All systems operational
+
+
+
+
+
+ API Usage
+
+
+ 94%
+ of monthly limit
+
+
+
+
+ Storage
+
+
+ 67%
+ of allocated space
+
+
+
+
+
+
+ );
+}
diff --git a/components/dashboards/brand-dashboard.tsx b/components/dashboards/brand-dashboard.tsx
new file mode 100644
index 0000000..8967c0a
--- /dev/null
+++ b/components/dashboards/brand-dashboard.tsx
@@ -0,0 +1,303 @@
+'use client';
+
+import React from 'react';
+import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
+import { Button } from '@/components/ui/button';
+import { Badge } from '@/components/ui/badge';
+import { Progress } from '@/components/ui/progress';
+import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
+import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar';
+import { Skeleton } from '@/components/ui/skeleton';
+import {
+ BarChart3,
+ TrendingUp,
+ Users,
+ Calendar,
+ CheckCircle,
+ Clock,
+ AlertTriangle,
+ Eye,
+ ThumbsUp,
+ MessageSquare,
+ Target,
+ MousePointer,
+ Activity,
+} from 'lucide-react';
+import { useAnalytics } from '@/hooks/use-analytics';
+import { AnalyticsCharts } from '@/components/analytics/analytics-charts';
+
+interface BrandDashboardProps {
+ orgId: string;
+}
+
+export function BrandDashboard({ orgId }: BrandDashboardProps) {
+ const { metrics, loading, error, trackEvent } = useAnalytics(orgId);
+
+ // Mock data for campaigns and approvals (would come from separate APIs)
+ const campaigns = [
+ {
+ id: '1',
+ name: 'Summer Campaign 2024',
+ status: 'active',
+ progress: 75,
+ creators: 5,
+ contentCount: 24,
+ budget: 15000,
+ spent: 11250,
+ },
+ {
+ id: '2',
+ name: 'Product Launch',
+ status: 'planning',
+ progress: 30,
+ creators: 3,
+ contentCount: 8,
+ budget: 8000,
+ spent: 2400,
+ },
+ ];
+
+ const pendingApprovals = [
+ {
+ id: '1',
+ title: 'Social Media Post - Summer Vibes',
+ creator: 'Sarah Johnson',
+ creatorAvatar: '/avatars/sarah.jpg',
+ campaign: 'Summer Campaign 2024',
+ submittedAt: '2024-07-10',
+ type: 'social',
+ },
+ {
+ id: '2',
+ title: 'Blog Post - Product Features',
+ creator: 'Mike Chen',
+ creatorAvatar: '/avatars/mike.jpg',
+ campaign: 'Product Launch',
+ submittedAt: '2024-07-08',
+ type: 'blog',
+ },
+ ];
+
+ if (loading) {
+ return (
+
+
+
+ {[...Array(4)].map((_, i) => (
+
+
+
+
+
+
+
+
+
+
+ ))}
+
+
+ );
+ }
+
+ if (error) {
+ return (
+
+
+
+
Error loading analytics: {error}
+
+
+ );
+ }
+
+ return (
+
+ {/* Header */}
+
+
+
Brand Dashboard
+
+ Monitor campaigns, approve content, and track performance
+
+
+
+
+
+ {/* Key Metrics */}
+
+
+
+ Impressions
+
+
+
+
+ {metrics?.impressions.toLocaleString() || 0}
+
+ Total content impressions
+
+
+
+
+ Clicks
+
+
+
+ {metrics?.clicks.toLocaleString() || 0}
+ Total user interactions
+
+
+
+
+ CTR
+
+
+
+ {metrics?.ctr.toFixed(2) || 0}%
+ Click-through rate
+
+
+
+
+ ROI
+
+
+
+ {metrics?.roi.toFixed(1) || 0}%
+ Return on investment
+
+
+
+
+ {/* Main Content */}
+
+
+ Campaign Summaries
+ Approval Queue
+ Analytics
+
+
+
+
+
+ Campaign Performance
+
+ Overview of all active campaigns and their progress
+
+
+
+ {campaigns.map((campaign) => (
+
+
+
+
{campaign.name}
+
+ {campaign.creators} creators
+ {campaign.contentCount} pieces
+
+ {campaign.status}
+
+
+
+
+
+
+
+ Progress
+ {campaign.progress}%
+
+
+
+
+
+ Budget: ${campaign.spent.toLocaleString()} / $
+ {campaign.budget.toLocaleString()}
+
+
+ {((campaign.spent / campaign.budget) * 100).toFixed(1)}% spent
+
+
+
+
+ ))}
+
+
+
+
+
+
+
+ Content Approval Queue
+
+ Review and approve content submissions from creators
+
+
+
+ {pendingApprovals.map((item) => (
+
+
+
+
+ {item.creator
+ .split(' ')
+ .map((n) => n[0])
+ .join('')}
+
+
+
+
{item.title}
+
+ {item.creator} • {item.campaign} • Submitted {item.submittedAt}
+
+
+
{item.type}
+
+
+
+
+
+ ))}
+ {pendingApprovals.length === 0 && (
+
+
+
No pending approvals
+
+ )}
+
+
+
+
+
+ {metrics && }
+
+
+
+ );
+}
diff --git a/components/dashboards/creator-dashboard.tsx b/components/dashboards/creator-dashboard.tsx
new file mode 100644
index 0000000..5617580
--- /dev/null
+++ b/components/dashboards/creator-dashboard.tsx
@@ -0,0 +1,706 @@
+'use client';
+
+import React, { useState } from 'react';
+import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
+import { Button } from '@/components/ui/button';
+import { Badge } from '@/components/ui/badge';
+import { Progress } from '@/components/ui/progress';
+import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
+import { Input } from '@/components/ui/input';
+import { Label } from '@/components/ui/label';
+import { Textarea } from '@/components/ui/textarea';
+import {
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
+} from '@/components/ui/select';
+import {
+ Dialog,
+ DialogContent,
+ DialogDescription,
+ DialogHeader,
+ DialogTitle,
+ DialogTrigger,
+} from '@/components/ui/dialog';
+import {
+ Calendar,
+ FileText,
+ Sparkles,
+ TrendingUp,
+ Clock,
+ CheckCircle,
+ AlertCircle,
+ Loader2,
+ BarChart3,
+ Eye,
+ MousePointer,
+ Target,
+} from 'lucide-react';
+import { useAnalytics } from '@/hooks/use-analytics';
+
+interface CreatorDashboardProps {
+ orgId: string;
+}
+
+export function CreatorDashboard({ orgId }: CreatorDashboardProps) {
+ const [isLoading, setIsLoading] = useState(false);
+ const [ideas, setIdeas] = useState([]);
+ const [summary, setSummary] = useState('');
+ const [translatedContent, setTranslatedContent] = useState('');
+ const [ideaTopic, setIdeaTopic] = useState('');
+ const [contentToSummarize, setContentToSummarize] = useState('');
+ const [contentToTranslate, setContentToTranslate] = useState('');
+ const [targetLanguage, setTargetLanguage] = useState('Spanish');
+ const [isCreateDialogOpen, setIsCreateDialogOpen] = useState(false);
+ const [generationPrompt, setGenerationPrompt] = useState('');
+ const [selectedCampaign, setSelectedCampaign] = useState('');
+ const [generatedContent, setGeneratedContent] = useState('');
+
+ const { metrics, loading: analyticsLoading, trackEvent } = useAnalytics(orgId);
+
+ // Mock data - in real app, this would come from API
+ const campaigns = [
+ {
+ id: '1',
+ name: 'Summer Campaign 2024',
+ status: 'active',
+ progress: 75,
+ dueDate: '2024-08-15',
+ contentCount: 12,
+ },
+ {
+ id: '2',
+ name: 'Product Launch',
+ status: 'draft',
+ progress: 30,
+ dueDate: '2024-09-01',
+ contentCount: 5,
+ },
+ ];
+
+ const recentContent = [
+ {
+ id: '1',
+ title: 'Social Media Post - Summer Vibes',
+ status: 'approved',
+ campaign: 'Summer Campaign 2024',
+ createdAt: '2024-07-10',
+ },
+ {
+ id: '2',
+ title: 'Blog Post - Product Features',
+ status: 'pending',
+ campaign: 'Product Launch',
+ createdAt: '2024-07-08',
+ },
+ ];
+
+ const generateIdeas = async () => {
+ if (!ideaTopic.trim()) return;
+
+ setIsLoading(true);
+ try {
+ const response = await fetch(`/api/${orgId}/content/ideas`, {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify({ topic: ideaTopic, count: 5, type: 'general' }),
+ });
+
+ if (response.ok) {
+ const data = await response.json();
+ setIdeas(data.ideas);
+ }
+ } catch (error) {
+ console.error('Error generating ideas:', error);
+ } finally {
+ setIsLoading(false);
+ }
+ };
+
+ const summarizeContent = async () => {
+ if (!contentToSummarize.trim()) return;
+
+ setIsLoading(true);
+ try {
+ const response = await fetch(`/api/${orgId}/content/summarize`, {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify({ content: contentToSummarize, length: 'brief' }),
+ });
+
+ if (response.ok) {
+ const data = await response.json();
+ setSummary(data.summary);
+ }
+ } catch (error) {
+ console.error('Error summarizing content:', error);
+ } finally {
+ setIsLoading(false);
+ }
+ };
+
+ const translateContent = async () => {
+ if (!contentToTranslate.trim()) return;
+
+ setIsLoading(true);
+ try {
+ const response = await fetch(`/api/${orgId}/content/translate`, {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify({
+ content: contentToTranslate,
+ targetLanguage,
+ }),
+ });
+
+ if (response.ok) {
+ const data = await response.json();
+ setTranslatedContent(data.translatedContent);
+ }
+ } catch (error) {
+ console.error('Error translating content:', error);
+ } finally {
+ setIsLoading(false);
+ }
+ };
+
+ const generateNewContent = async () => {
+ if (!generationPrompt.trim() || !selectedCampaign) return;
+
+ setIsLoading(true);
+ try {
+ const response = await fetch(`/api/${orgId}/content/generate`, {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify({
+ prompt: generationPrompt,
+ campaignId: selectedCampaign,
+ }),
+ });
+
+ if (response.ok) {
+ const data = await response.json();
+ setGeneratedContent(data.body);
+ setIsCreateDialogOpen(false);
+ // Reset form
+ setGenerationPrompt('');
+ setSelectedCampaign('');
+ // Refresh the page or update the content list
+ window.location.reload();
+ }
+ } catch (error) {
+ console.error('Error generating content:', error);
+ } finally {
+ setIsLoading(false);
+ }
+ };
+
+ return (
+
+ {/* Header */}
+
+
+
Creator Dashboard
+
+ Manage your campaigns and create amazing content
+
+
+
+
+
+ {/* Quick Stats */}
+
+
+
+ Active Campaigns
+
+
+
+ 3
+ 2 due this month
+
+
+
+
+ Content Created
+
+
+
+ 24
+ +12% from last month
+
+
+
+
+ Approval Rate
+
+
+
+ 92%
+ +5% from last month
+
+
+
+
+ Pending Reviews
+
+
+
+ 5
+ 3 urgent
+
+
+
+
+ {/* Main Content */}
+
+
+ Campaign Overview
+ Content Studio
+ Analytics
+ AI Assistant
+
+
+
+
+
+ Active Campaigns
+
+ Track progress and deadlines for your campaigns
+
+
+
+ {campaigns.map((campaign) => (
+
+
+
+
{campaign.name}
+
+ {campaign.status}
+
+
+
+ {campaign.contentCount} pieces of content
+ Due: {campaign.dueDate}
+
+
+
+
+
+ ))}
+
+
+
+
+
+
+
+ Content Studio
+ Create and manage your content pieces
+
+
+
+
Recent Content
+
+
+ {recentContent.map((content) => (
+
+
+
{content.title}
+
{content.campaign}
+
+
+ {content.status === 'approved' ? (
+
+ ) : (
+
+ )}
+
+ {content.status}
+
+
+
+
+ ))}
+
+
+
+
+
+
+
+
+ Content Views
+
+
+
+
+ {metrics?.views.toLocaleString() || 0}
+
+ Total content views
+
+
+
+
+ Clicks
+
+
+
+
+ {metrics?.clicks.toLocaleString() || 0}
+
+ User interactions
+
+
+
+
+ CTR
+
+
+
+ {metrics?.ctr.toFixed(2) || 0}%
+ Click-through rate
+
+
+
+
+ Total Events
+
+
+
+
+ {metrics?.totalEvents.toLocaleString() || 0}
+
+ All tracked events
+
+
+
+
+
+
+ Content Performance
+ Analytics for your created content
+
+
+ {analyticsLoading ? (
+
+
+
Loading analytics...
+
+ ) : metrics?.campaignMetrics && metrics.campaignMetrics.length > 0 ? (
+
+ {metrics.campaignMetrics.map((campaign) => (
+
+
{campaign.name}
+
+
+
+ Campaign Events
+
+
+ {campaign.totalEvents}
+
+
+
+
+ Content Pieces
+
+
+ {campaign.contentCount}
+
+
+
+ {campaign.contentMetrics.length > 0 && (
+
+
+ Content Breakdown:
+
+
+ {campaign.contentMetrics.slice(0, 3).map((content) => (
+
+
+ {content.title}
+
+ {content.events} events
+
+ ))}
+
+
+ )}
+
+ ))}
+
+ ) : (
+
+
+
No analytics data available yet
+
+ Start creating content to see performance metrics
+
+
+ )}
+
+
+
+
+
+
+ {/* Content Ideas Generator */}
+
+
+ Content Ideas Generator
+
+ Generate creative content ideas for your campaigns
+
+
+
+
+
+ setIdeaTopic(e.target.value)}
+ />
+
+
+ {ideas.length > 0 && (
+
+
+
+ {ideas.map((idea, index) => (
+
+ {idea}
+
+ ))}
+
+
+ )}
+
+
+
+ {/* Content Summarizer */}
+
+
+ Content Summarizer
+
+ Summarize long content into concise versions
+
+
+
+
+
+
+
+ {summary && (
+
+ )}
+
+
+
+ {/* Content Translator */}
+
+
+ Content Translator
+ Translate content to different languages
+
+
+
+
+
+
+
+
+
+
+ {translatedContent && (
+
+
+
+ {translatedContent}
+
+
+ )}
+
+
+
+ {/* Content Generation */}
+
+
+ AI Content Generation
+ Generate new content based on prompts
+
+
+
+
+
+ Use the "Create New Content" button in the Content Studio tab to
+ generate AI-powered content for your campaigns.
+
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/components/layout/sidebar/app-sidebar.tsx b/components/layout/sidebar/app-sidebar.tsx
index f035e6d..6515f8b 100644
--- a/components/layout/sidebar/app-sidebar.tsx
+++ b/components/layout/sidebar/app-sidebar.tsx
@@ -2,6 +2,7 @@
import { RiGithubLine } from '@remixicon/react';
import * as React from 'react';
+import { useTranslations } from 'next-intl';
import { HelpButton } from '@/components/layout/sidebar/help-button';
import { NavInbox } from '@/components/layout/sidebar/nav-inbox';
@@ -22,6 +23,9 @@ export function AppSidebar({ ...props }: React.ComponentProps) {
const [open, setOpen] = React.useState(true);
const pathname = usePathname();
const isSettings = pathname.includes('/settings');
+ const isOrgPage = pathname.match(/^\/[^\/]+$/); // Matches /orgId pattern
+ const t = useTranslations('sidebar');
+
return (
{isSettings ? : }
@@ -32,6 +36,10 @@ export function AppSidebar({ ...props }: React.ComponentProps) {
>
+ ) : isOrgPage ? (
+ <>
+
+ >
) : (
<>
@@ -52,12 +60,9 @@ export function AppSidebar({ ...props }: React.ComponentProps) {
- Open-source layouts by lndev-ui
-
-
- Collection of beautifully crafted open-source layouts UI built with
- shadcn/ui.
+ {t('open_source_layouts')}
+
{t('layouts_description')}
) {
target="_blank"
rel="noopener noreferrer"
>
- square.lndev.me
+ {t('visit_square')}
diff --git a/components/layout/sidebar/nav-workspace.tsx b/components/layout/sidebar/nav-workspace.tsx
index 7f1396e..4c6ab03 100644
--- a/components/layout/sidebar/nav-workspace.tsx
+++ b/components/layout/sidebar/nav-workspace.tsx
@@ -1,6 +1,20 @@
'use client';
-import { Layers, LayoutList, MoreHorizontal } from 'lucide-react';
+import {
+ Layers,
+ LayoutList,
+ MoreHorizontal,
+ Home,
+ FileText,
+ BarChart3,
+ Users,
+ Settings,
+ Sparkles,
+ Image,
+ Calendar,
+} from 'lucide-react';
+import { useParams } from 'next/navigation';
+import { useTranslations } from 'next-intl';
import {
DropdownMenu,
@@ -17,18 +31,104 @@ import {
SidebarMenuItem,
} from '@/components/ui/sidebar';
import Link from 'next/link';
-import { workspaceItems } from '@/mock-data/side-bar-nav';
-import { RiPresentationLine } from '@remixicon/react';
+import { OrgRole } from '@prisma/client';
+import { useEffect, useState } from 'react';
+
+interface NavItem {
+ name: string;
+ url: string;
+ icon: React.ComponentType;
+ roles: OrgRole[];
+}
export function NavWorkspace() {
+ const params = useParams();
+ const orgId = params.orgId as string;
+ const [userRole, setUserRole] = useState(null);
+ const t = useTranslations('navigation');
+
+ useEffect(() => {
+ // Fetch user role - in a real app, this would be done server-side or through a context
+ const fetchUserRole = async () => {
+ try {
+ const response = await fetch(`/api/me/role?orgId=${orgId}`);
+ if (response.ok) {
+ const data = await response.json();
+ setUserRole(data.role);
+ }
+ } catch (error) {
+ console.error('Failed to fetch user role:', error);
+ }
+ };
+
+ if (orgId) {
+ fetchUserRole();
+ }
+ }, [orgId]);
+
+ const navigationItems: NavItem[] = [
+ {
+ name: t('dashboard'),
+ url: '',
+ icon: Home,
+ roles: [OrgRole.ADMIN, OrgRole.BRAND_OWNER, OrgRole.CREATOR],
+ },
+ {
+ name: t('campaigns'),
+ url: '/campaigns',
+ icon: FileText,
+ roles: [OrgRole.ADMIN, OrgRole.BRAND_OWNER, OrgRole.CREATOR],
+ },
+ {
+ name: t('content_studio'),
+ url: '/content',
+ icon: Sparkles,
+ roles: [OrgRole.ADMIN, OrgRole.BRAND_OWNER, OrgRole.CREATOR],
+ },
+ {
+ name: t('schedules'),
+ url: '/schedules',
+ icon: Calendar,
+ roles: [OrgRole.ADMIN, OrgRole.BRAND_OWNER, OrgRole.CREATOR],
+ },
+ {
+ name: t('assets'),
+ url: '/assets',
+ icon: Image,
+ roles: [OrgRole.ADMIN, OrgRole.BRAND_OWNER, OrgRole.CREATOR],
+ },
+ {
+ name: t('analytics'),
+ url: '/analytics',
+ icon: BarChart3,
+ roles: [OrgRole.ADMIN, OrgRole.BRAND_OWNER],
+ },
+ {
+ name: t('members'),
+ url: '/members',
+ icon: Users,
+ roles: [OrgRole.ADMIN, OrgRole.BRAND_OWNER],
+ },
+ {
+ name: t('settings'),
+ url: '/settings',
+ icon: Settings,
+ roles: [OrgRole.ADMIN],
+ },
+ ];
+
+ const filteredItems = navigationItems.filter(
+ (item) => userRole && item.roles.includes(userRole)
+ );
+
return (
- Workspace
+ {t('workspace')}
- {workspaceItems.map((item) => (
+ {filteredItems.map((item) => (
-
+
{item.name}
@@ -41,23 +141,19 @@ export function NavWorkspace() {
- More
+ {t('more')}
-
-
- Initiatives
-
- Views
+ {t('views')}
- Customize sidebar
+ {t('customize_sidebar')}
diff --git a/components/layout/sidebar/org-switcher.tsx b/components/layout/sidebar/org-switcher.tsx
index 873904a..3d6e61d 100644
--- a/components/layout/sidebar/org-switcher.tsx
+++ b/components/layout/sidebar/org-switcher.tsx
@@ -80,7 +80,9 @@ export function OrgSwitcher() {
lndev-ui
- Create or join workspace
+
+ Create or join workspace
+
Add an account
diff --git a/components/layout/theme-provider.tsx b/components/layout/theme-provider.tsx
index 7249aed..f68bc3e 100644
--- a/components/layout/theme-provider.tsx
+++ b/components/layout/theme-provider.tsx
@@ -3,10 +3,13 @@
import * as React from 'react';
import { ThemeProvider as NextThemesProvider, ThemeProviderProps } from 'next-themes';
-export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
+export const ThemeProvider = React.memo(function ThemeProvider({
+ children,
+ ...props
+}: ThemeProviderProps) {
return (
{children}
);
-}
+});
diff --git a/components/schedules/schedule-calendar.tsx b/components/schedules/schedule-calendar.tsx
new file mode 100644
index 0000000..e106b73
--- /dev/null
+++ b/components/schedules/schedule-calendar.tsx
@@ -0,0 +1,184 @@
+'use client';
+
+import { useState, useEffect } from 'react';
+import { DayPicker } from 'react-day-picker';
+import { format } from 'date-fns';
+import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
+import { Badge } from '@/components/ui/badge';
+import { Button } from '@/components/ui/button';
+import { Calendar, Clock, Plus } from 'lucide-react';
+import { ScheduleContentModal } from './schedule-content-modal';
+import 'react-day-picker/dist/style.css';
+
+interface Schedule {
+ id: string;
+ date: string;
+ status: string;
+ campaign: {
+ id: string;
+ name: string;
+ };
+ content?: {
+ id: string;
+ title: string;
+ };
+}
+
+interface ScheduleCalendarProps {
+ orgId: string;
+ onDateSelect?: (date: Date) => void;
+ onScheduleCreate?: (date: Date) => void;
+}
+
+export function ScheduleCalendar({ orgId, onDateSelect, onScheduleCreate }: ScheduleCalendarProps) {
+ const [schedules, setSchedules] = useState([]);
+ const [selectedDate, setSelectedDate] = useState();
+ const [loading, setLoading] = useState(true);
+
+ useEffect(() => {
+ fetchSchedules();
+ }, [orgId]);
+
+ const fetchSchedules = async () => {
+ try {
+ const response = await fetch(`/api/${orgId}/schedules`);
+ if (response.ok) {
+ const data = await response.json();
+ setSchedules(data);
+ }
+ } catch (error) {
+ console.error('Error fetching schedules:', error);
+ } finally {
+ setLoading(false);
+ }
+ };
+
+ const getScheduledDates = () => {
+ return schedules.map((schedule) => new Date(schedule.date));
+ };
+
+ const getSchedulesForDate = (date: Date) => {
+ return schedules.filter(
+ (schedule) => format(new Date(schedule.date), 'yyyy-MM-dd') === format(date, 'yyyy-MM-dd')
+ );
+ };
+
+ const handleDateSelect = (date: Date | undefined) => {
+ setSelectedDate(date);
+ if (date && onDateSelect) {
+ onDateSelect(date);
+ }
+ };
+
+ const handleScheduleCreated = () => {
+ fetchSchedules(); // Refresh the schedules
+ };
+
+ const modifiers = {
+ scheduled: getScheduledDates(),
+ };
+
+ const modifiersStyles = {
+ scheduled: {
+ backgroundColor: '#3b82f6',
+ color: 'white',
+ fontWeight: 'bold',
+ },
+ };
+
+ if (loading) {
+ return (
+
+
+
+
+ Schedule Calendar
+
+
+
+
+
+
+ );
+ }
+
+ return (
+
+
+
+
+
+ Schedule Calendar
+
+
+
+
+
+
+
+ Schedule Content
+
+ }
+ onScheduleCreated={handleScheduleCreated}
+ />
+
+
+
+
+
+
+
+
+ {selectedDate ? format(selectedDate, 'MMM dd, yyyy') : 'Select a Date'}
+
+
+
+ {selectedDate ? (
+
+ {getSchedulesForDate(selectedDate).length > 0 ? (
+ getSchedulesForDate(selectedDate).map((schedule) => (
+
+
+
+ {schedule.status}
+
+
+ {format(new Date(schedule.date), 'HH:mm')}
+
+
+
{schedule.campaign.name}
+ {schedule.content && (
+
+ {schedule.content.title}
+
+ )}
+
+ ))
+ ) : (
+
No schedules for this date
+ )}
+
+ ) : (
+ Select a date to view schedules
+ )}
+
+
+
+ );
+}
diff --git a/components/schedules/schedule-content-modal.tsx b/components/schedules/schedule-content-modal.tsx
new file mode 100644
index 0000000..2dda9b4
--- /dev/null
+++ b/components/schedules/schedule-content-modal.tsx
@@ -0,0 +1,296 @@
+'use client';
+
+import { useState, useEffect } from 'react';
+import { useForm } from 'react-hook-form';
+import { zodResolver } from '@hookform/resolvers/zod';
+import { format } from 'date-fns';
+import { CalendarIcon, Clock } from 'lucide-react';
+import { cn } from '@/lib/utils';
+import { Button } from '@/components/ui/button';
+import { Calendar } from '@/components/ui/calendar';
+import {
+ Dialog,
+ DialogContent,
+ DialogHeader,
+ DialogTitle,
+ DialogTrigger,
+} from '@/components/ui/dialog';
+import {
+ Form,
+ FormControl,
+ FormField,
+ FormItem,
+ FormLabel,
+ FormMessage,
+} from '@/components/ui/form';
+import { Input } from '@/components/ui/input';
+import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';
+import {
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
+} from '@/components/ui/select';
+import { createScheduleSchema } from '@/lib/schemas';
+
+interface Content {
+ id: string;
+ title: string;
+ campaign: {
+ id: string;
+ name: string;
+ };
+}
+
+interface Campaign {
+ id: string;
+ name: string;
+ contents: Content[];
+}
+
+interface ScheduleContentModalProps {
+ orgId: string;
+ trigger: React.ReactNode;
+ onScheduleCreated?: () => void;
+}
+
+export function ScheduleContentModal({
+ orgId,
+ trigger,
+ onScheduleCreated,
+}: ScheduleContentModalProps) {
+ const [open, setOpen] = useState(false);
+ const [campaigns, setCampaigns] = useState([]);
+ const [selectedCampaign, setSelectedCampaign] = useState(null);
+ const [loading, setLoading] = useState(false);
+
+ const form = useForm({
+ resolver: zodResolver(createScheduleSchema),
+ defaultValues: {
+ date: '',
+ status: 'scheduled',
+ campaignId: '',
+ contentId: '',
+ },
+ });
+
+ useEffect(() => {
+ if (open) {
+ fetchCampaigns();
+ }
+ }, [open]);
+
+ const fetchCampaigns = async () => {
+ try {
+ const response = await fetch(`/api/${orgId}/campaigns`);
+ if (response.ok) {
+ const data = await response.json();
+ setCampaigns(data);
+ }
+ } catch (error) {
+ console.error('Error fetching campaigns:', error);
+ }
+ };
+
+ const onSubmit = async (data: any) => {
+ setLoading(true);
+ try {
+ const response = await fetch(`/api/${orgId}/schedules`, {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ body: JSON.stringify(data),
+ });
+
+ if (response.ok) {
+ setOpen(false);
+ form.reset();
+ onScheduleCreated?.();
+ } else {
+ const error = await response.json();
+ console.error('Error creating schedule:', error);
+ }
+ } catch (error) {
+ console.error('Error creating schedule:', error);
+ } finally {
+ setLoading(false);
+ }
+ };
+
+ const handleCampaignChange = (campaignId: string) => {
+ const campaign = campaigns.find((c) => c.id === campaignId);
+ setSelectedCampaign(campaign || null);
+ form.setValue('campaignId', campaignId);
+ form.setValue('contentId', ''); // Reset content selection
+ };
+
+ return (
+
+ );
+}
diff --git a/db/seed.ts b/db/seed.ts
new file mode 100644
index 0000000..93af282
--- /dev/null
+++ b/db/seed.ts
@@ -0,0 +1,99 @@
+import prisma from '@/lib/prisma';
+
+async function main() {
+ console.log('Seeding database...');
+
+ // Default organization
+ const org = await prisma.organization.upsert({
+ where: { id: 'org_default_seed' },
+ update: {},
+ create: { id: 'org_default_seed', name: 'Circle Dev Org' },
+ });
+
+ // LNDev UI organization (the one user was trying to access)
+ const lndevOrg = await prisma.organization.upsert({
+ where: { id: 'lndev-ui' },
+ update: {},
+ create: { id: 'lndev-ui', name: 'LNDev UI' },
+ });
+
+ // Users
+ const admin = await prisma.user.upsert({
+ where: { email: 'admin@aim.local' },
+ update: {},
+ create: { email: 'admin@aim.local', name: 'Admin' },
+ });
+ const creatorUser = await prisma.user.upsert({
+ where: { email: 'creator@aim.local' },
+ update: {},
+ create: { email: 'creator@aim.local', name: 'Creator' },
+ });
+
+ // Add the user that's currently logged in
+ const rymleonUser = await prisma.user.upsert({
+ where: { email: 'rymleon24@gmail.com' },
+ update: {},
+ create: { email: 'rymleon24@gmail.com', name: 'rymleon24' },
+ });
+
+ // Memberships for default org
+ await prisma.membership.upsert({
+ where: { userId_organizationId: { userId: admin.id, organizationId: org.id } },
+ update: { role: 'ADMIN' },
+ create: { userId: admin.id, organizationId: org.id, role: 'ADMIN' },
+ });
+ await prisma.membership.upsert({
+ where: { userId_organizationId: { userId: creatorUser.id, organizationId: org.id } },
+ update: { role: 'CREATOR' },
+ create: { userId: creatorUser.id, organizationId: org.id, role: 'CREATOR' },
+ });
+
+ // Add membership for rymleon24 in default org
+ await prisma.membership.upsert({
+ where: { userId_organizationId: { userId: rymleonUser.id, organizationId: org.id } },
+ update: { role: 'ADMIN' },
+ create: { userId: rymleonUser.id, organizationId: org.id, role: 'ADMIN' },
+ });
+
+ // Add membership for rymleon24 in LNDev UI org
+ await prisma.membership.upsert({
+ where: { userId_organizationId: { userId: rymleonUser.id, organizationId: lndevOrg.id } },
+ update: { role: 'ADMIN' },
+ create: { userId: rymleonUser.id, organizationId: lndevOrg.id, role: 'ADMIN' },
+ });
+
+ // Demo campaign
+ const campaign = await prisma.campaign.upsert({
+ where: { id: 'campaign_default_seed' },
+ update: {},
+ create: {
+ id: 'campaign_default_seed',
+ name: 'Demo Campaign',
+ description: 'A sample campaign for testing',
+ organizationId: org.id,
+ },
+ });
+
+ // Demo content
+ await prisma.content.upsert({
+ where: { id: 'content_default_seed' },
+ update: {},
+ create: {
+ id: 'content_default_seed',
+ title: 'Welcome to AiM',
+ body: 'This is your first content piece. Start creating amazing campaigns!',
+ campaignId: campaign.id,
+ },
+ });
+
+ console.log('Seed complete.');
+}
+
+main()
+ .catch((e) => {
+ console.error(e);
+ process.exit(1);
+ })
+ .finally(async () => {
+ await prisma.$disconnect();
+ });
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..2ee90b2
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,33 @@
+version: '3.8'
+
+services:
+ app:
+ build: .
+ ports:
+ - "3000:3000"
+ environment:
+ - DATABASE_URL=postgresql://postgres:postgres@db:5432/circle_dev?schema=public
+ - NEXTAUTH_URL=http://localhost:3000
+ - NEXTAUTH_SECRET=changeme-in-production
+ - OPENAI_API_KEY=${OPENAI_API_KEY}
+ - NODE_ENV=production
+ depends_on:
+ - db
+ volumes:
+ - .:/app
+ - /app/node_modules
+ command: pnpm start
+
+ db:
+ image: postgres:15
+ environment:
+ - POSTGRES_USER=postgres
+ - POSTGRES_PASSWORD=postgres
+ - POSTGRES_DB=circle_dev
+ ports:
+ - "5432:5432"
+ volumes:
+ - postgres_data:/var/lib/postgresql/data
+
+volumes:
+ postgres_data:
\ No newline at end of file
diff --git a/hooks/use-analytics.ts b/hooks/use-analytics.ts
new file mode 100644
index 0000000..f85c00d
--- /dev/null
+++ b/hooks/use-analytics.ts
@@ -0,0 +1,91 @@
+import { useState, useEffect } from 'react';
+
+interface AnalyticsMetrics {
+ totalEvents: number;
+ eventsByType: Record;
+ impressions: number;
+ clicks: number;
+ views: number;
+ ctr: number;
+ roi: number;
+ campaignMetrics: Array<{
+ id: string;
+ name: string;
+ totalEvents: number;
+ contentCount: number;
+ contentMetrics: Array<{
+ id: string;
+ title: string;
+ events: number;
+ impressions: number;
+ clicks: number;
+ views: number;
+ }>;
+ }>;
+}
+
+export function useAnalytics(orgId: string) {
+ const [metrics, setMetrics] = useState(null);
+ const [loading, setLoading] = useState(true);
+ const [error, setError] = useState(null);
+
+ useEffect(() => {
+ const fetchAnalytics = async () => {
+ try {
+ setLoading(true);
+ const response = await fetch(`/api/${orgId}/analytics/metrics`);
+ if (!response.ok) {
+ throw new Error('Failed to fetch analytics');
+ }
+ const data = await response.json();
+ setMetrics(data);
+ } catch (err) {
+ setError(err instanceof Error ? err.message : 'Unknown error');
+ } finally {
+ setLoading(false);
+ }
+ };
+
+ if (orgId) {
+ fetchAnalytics();
+ }
+ }, [orgId]);
+
+ const trackEvent = async (
+ event: string,
+ campaignId?: string,
+ contentId?: string,
+ data?: any
+ ) => {
+ try {
+ const response = await fetch(`/api/${orgId}/analytics/track`, {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ body: JSON.stringify({
+ event,
+ campaignId,
+ contentId,
+ data,
+ }),
+ });
+
+ if (!response.ok) {
+ throw new Error('Failed to track event');
+ }
+
+ return await response.json();
+ } catch (err) {
+ console.error('Error tracking event:', err);
+ throw err;
+ }
+ };
+
+ return {
+ metrics,
+ loading,
+ error,
+ trackEvent,
+ };
+}
diff --git a/i18n.ts b/i18n.ts
new file mode 100644
index 0000000..7f88d81
--- /dev/null
+++ b/i18n.ts
@@ -0,0 +1,15 @@
+import { getRequestConfig } from 'next-intl/server';
+
+// Can be imported from a shared config
+export const locales = ['en', 'vi'] as const;
+export type Locale = (typeof locales)[number];
+
+export default getRequestConfig(async ({ locale }) => {
+ // Validate that the incoming `locale` parameter is valid
+ const validLocale = locales.includes(locale as any) ? locale : 'en';
+
+ return {
+ locale: validLocale as string,
+ messages: (await import(`./messages/${validLocale}.json`)).default,
+ };
+});
diff --git a/jest.config.js b/jest.config.js
new file mode 100644
index 0000000..0e3b295
--- /dev/null
+++ b/jest.config.js
@@ -0,0 +1,23 @@
+const nextJest = require('next/jest');
+
+const createJestConfig = nextJest({
+ // Provide the path to your Next.js app to load next.config.js and .env files
+ dir: './',
+});
+
+// Add any custom config to be passed to Jest
+const customJestConfig = {
+ setupFilesAfterEnv: ['/jest.setup.js'],
+ moduleNameMapper: {
+ // Handle module aliases (this will be automatically configured for you based on your tsconfig.json paths)
+ '^@/(.*)$': '/$1',
+ // Mock next-intl to avoid ES module issues
+ '^next-intl$': '/__mocks__/next-intl.ts',
+ },
+ testEnvironment: 'jest-environment-jsdom',
+ testPathIgnorePatterns: ['/tests/e2e/'],
+ transformIgnorePatterns: ['node_modules/(?!(next-intl)/)'],
+};
+
+// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async
+module.exports = createJestConfig(customJestConfig);
diff --git a/jest.setup.js b/jest.setup.js
new file mode 100644
index 0000000..7b0828b
--- /dev/null
+++ b/jest.setup.js
@@ -0,0 +1 @@
+import '@testing-library/jest-dom';
diff --git a/lib/__tests__/schemas.test.ts b/lib/__tests__/schemas.test.ts
new file mode 100644
index 0000000..a40ff0d
--- /dev/null
+++ b/lib/__tests__/schemas.test.ts
@@ -0,0 +1,155 @@
+import {
+ createCampaignSchema,
+ updateCampaignSchema,
+ createContentSchema,
+ updateContentSchema,
+ generateContentSchema,
+ createAssetSchema,
+ updateAssetSchema,
+ createScheduleSchema,
+ updateScheduleSchema,
+ createAnalyticsEventSchema,
+ orgRoleSchema,
+} from '../schemas';
+
+describe('Campaign Schemas', () => {
+ describe('createCampaignSchema', () => {
+ it('should validate valid campaign data', () => {
+ const data = { name: 'Test Campaign', description: 'Test description' };
+ expect(() => createCampaignSchema.parse(data)).not.toThrow();
+ });
+
+ it('should reject empty name', () => {
+ const data = { name: '', description: 'Test description' };
+ expect(() => createCampaignSchema.parse(data)).toThrow();
+ });
+
+ it('should accept campaign without description', () => {
+ const data = { name: 'Test Campaign' };
+ expect(() => createCampaignSchema.parse(data)).not.toThrow();
+ });
+ });
+
+ describe('updateCampaignSchema', () => {
+ it('should validate partial updates', () => {
+ const data = { name: 'Updated Campaign' };
+ expect(() => updateCampaignSchema.parse(data)).not.toThrow();
+ });
+
+ it('should accept empty object', () => {
+ const data = {};
+ expect(() => updateCampaignSchema.parse(data)).not.toThrow();
+ });
+ });
+});
+
+describe('Content Schemas', () => {
+ describe('createContentSchema', () => {
+ it('should validate valid content data', () => {
+ const data = {
+ title: 'Test Content',
+ body: 'Test body',
+ campaignId: 'campaign-123',
+ };
+ expect(() => createContentSchema.parse(data)).not.toThrow();
+ });
+
+ it('should reject missing campaignId', () => {
+ const data = { title: 'Test Content', body: 'Test body' };
+ expect(() => createContentSchema.parse(data)).toThrow();
+ });
+ });
+
+ describe('generateContentSchema', () => {
+ it('should validate valid generation data', () => {
+ const data = {
+ prompt: 'Generate content about AI',
+ campaignId: 'campaign-123',
+ };
+ expect(() => generateContentSchema.parse(data)).not.toThrow();
+ });
+
+ it('should reject empty prompt', () => {
+ const data = { prompt: '', campaignId: 'campaign-123' };
+ expect(() => generateContentSchema.parse(data)).toThrow();
+ });
+ });
+});
+
+describe('Asset Schemas', () => {
+ describe('createAssetSchema', () => {
+ it('should validate valid asset data', () => {
+ const data = {
+ url: 'https://example.com/image.jpg',
+ name: 'Test Image',
+ type: 'image/jpeg',
+ size: 1024,
+ contentId: 'content-123',
+ };
+ expect(() => createAssetSchema.parse(data)).not.toThrow();
+ });
+
+ it('should reject invalid URL', () => {
+ const data = {
+ url: 'invalid-url',
+ type: 'image/jpeg',
+ contentId: 'content-123',
+ };
+ expect(() => createAssetSchema.parse(data)).toThrow();
+ });
+ });
+});
+
+describe('Schedule Schemas', () => {
+ describe('createScheduleSchema', () => {
+ it('should validate valid schedule data', () => {
+ const data = {
+ date: '2024-01-01T10:00:00Z',
+ status: 'scheduled',
+ campaignId: 'campaign-123',
+ };
+ expect(() => createScheduleSchema.parse(data)).not.toThrow();
+ });
+
+ it('should reject invalid date', () => {
+ const data = {
+ date: 'invalid-date',
+ status: 'scheduled',
+ campaignId: 'campaign-123',
+ };
+ expect(() => createScheduleSchema.parse(data)).toThrow();
+ });
+ });
+});
+
+describe('Analytics Schemas', () => {
+ describe('createAnalyticsEventSchema', () => {
+ it('should validate valid event data', () => {
+ const data = {
+ event: 'page_view',
+ data: { page: '/home' },
+ organizationId: 'org-123',
+ };
+ expect(() => createAnalyticsEventSchema.parse(data)).not.toThrow();
+ });
+
+ it('should reject missing event', () => {
+ const data = { data: { page: '/home' } };
+ expect(() => createAnalyticsEventSchema.parse(data)).toThrow();
+ });
+ });
+});
+
+describe('Role Schema', () => {
+ describe('orgRoleSchema', () => {
+ it('should validate valid roles', () => {
+ expect(() => orgRoleSchema.parse('ADMIN')).not.toThrow();
+ expect(() => orgRoleSchema.parse('BRAND_OWNER')).not.toThrow();
+ expect(() => orgRoleSchema.parse('CREATOR')).not.toThrow();
+ });
+
+ it('should reject invalid role', () => {
+ expect(() => orgRoleSchema.parse('INVALID_ROLE')).toThrow();
+ });
+ });
+});
diff --git a/lib/__tests__/utils.test.ts b/lib/__tests__/utils.test.ts
new file mode 100644
index 0000000..87f3870
--- /dev/null
+++ b/lib/__tests__/utils.test.ts
@@ -0,0 +1,25 @@
+import { cn } from '../utils';
+
+describe('cn', () => {
+ it('should merge class names correctly', () => {
+ expect(cn('class1', 'class2')).toBe('class1 class2');
+ });
+
+ it('should handle conditional classes', () => {
+ expect(cn('class1', true && 'class2', false && 'class3')).toBe('class1 class2');
+ });
+
+ it('should merge Tailwind classes correctly', () => {
+ const result = cn('px-2 py-1', 'px-4');
+ expect(result).toContain('px-4');
+ expect(result).toContain('py-1');
+ });
+
+ it('should handle empty inputs', () => {
+ expect(cn()).toBe('');
+ });
+
+ it('should handle undefined and null', () => {
+ expect(cn('class1', undefined, null, 'class2')).toBe('class1 class2');
+ });
+});
diff --git a/lib/ai-test.ts b/lib/ai-test.ts
new file mode 100644
index 0000000..0c4373e
--- /dev/null
+++ b/lib/ai-test.ts
@@ -0,0 +1,94 @@
+/**
+ * AI Integration Test File
+ *
+ * This file contains tests to verify AI service integration.
+ * Note: These tests require a valid OpenAI API key to run successfully.
+ */
+
+import { generateContent, summarizeContent, translateContent, generateIdeas } from './openai';
+
+// Test functions for AI services
+export async function testAIGeneration() {
+ try {
+ console.log('Testing AI Content Generation...');
+ const result = await generateContent({
+ prompt: 'Write a short social media post about healthy eating',
+ type: 'social',
+ tone: 'casual',
+ length: 'short',
+ });
+ console.log('Generation Result:', result);
+ return result;
+ } catch (error) {
+ console.error('Generation test failed:', error);
+ return null;
+ }
+}
+
+export async function testAISummarization() {
+ try {
+ console.log('Testing AI Content Summarization...');
+ const result = await summarizeContent({
+ content:
+ 'This is a long article about artificial intelligence and its applications in modern business. AI has revolutionized many industries including healthcare, finance, and marketing. Machine learning algorithms can now predict customer behavior, automate customer service, and create personalized content. The future of AI looks promising with advancements in natural language processing and computer vision.',
+ length: 'brief',
+ });
+ console.log('Summarization Result:', result);
+ return result;
+ } catch (error) {
+ console.error('Summarization test failed:', error);
+ return null;
+ }
+}
+
+export async function testAITranslation() {
+ try {
+ console.log('Testing AI Content Translation...');
+ const result = await translateContent({
+ content: 'Hello, how are you today?',
+ targetLanguage: 'Spanish',
+ sourceLanguage: 'English',
+ });
+ console.log('Translation Result:', result);
+ return result;
+ } catch (error) {
+ console.error('Translation test failed:', error);
+ return null;
+ }
+}
+
+export async function testAIdeation() {
+ try {
+ console.log('Testing AI Idea Generation...');
+ const result = await generateIdeas({
+ topic: 'social media marketing',
+ count: 3,
+ type: 'general',
+ });
+ console.log('Ideation Result:', result);
+ return result;
+ } catch (error) {
+ console.error('Ideation test failed:', error);
+ return null;
+ }
+}
+
+// Main test runner
+export async function runAITests() {
+ console.log('Starting AI Integration Tests...\n');
+
+ const results = {
+ generation: await testAIGeneration(),
+ summarization: await testAISummarization(),
+ translation: await testAITranslation(),
+ ideation: await testAIdeation(),
+ };
+
+ console.log('\nAI Integration Test Results:');
+ console.log('Generation:', results.generation ? 'PASS' : 'FAIL');
+ console.log('Summarization:', results.summarization ? 'PASS' : 'FAIL');
+ console.log('Translation:', results.translation ? 'PASS' : 'FAIL');
+ console.log('Ideation:', results.ideation ? 'PASS' : 'FAIL');
+
+ return results;
+}
diff --git a/lib/auth.ts b/lib/auth.ts
new file mode 100644
index 0000000..f5b8b7a
--- /dev/null
+++ b/lib/auth.ts
@@ -0,0 +1,59 @@
+import NextAuth from 'next-auth';
+import Credentials from 'next-auth/providers/credentials';
+import { z } from 'zod';
+import prisma from '@/lib/prisma';
+
+const credentialsSchema = z.object({
+ email: z.string().email(),
+ password: z.string().min(1),
+});
+
+type TokenWithId = Record & { id?: string };
+
+export const {
+ handlers: authHandlers,
+ auth,
+ signIn,
+ signOut,
+} = NextAuth({
+ providers: [
+ Credentials({
+ credentials: {
+ email: { label: 'Email', type: 'email' },
+ password: { label: 'Password', type: 'password' },
+ },
+ authorize: async (raw) => {
+ const parsed = credentialsSchema.safeParse(raw);
+ if (!parsed.success) return null;
+ const { email, password } = parsed.data;
+
+ const devPass = process.env.DEV_LOGIN_PASSWORD || 'dev';
+ if (password !== devPass) return null;
+
+ // Find or create a user for dev-only credentials login
+ let user = await prisma.user.findUnique({ where: { email } });
+ if (!user) {
+ user = await prisma.user.create({ data: { email, name: email.split('@')[0] } });
+ }
+ return { id: user.id, email: user.email, name: user.name };
+ },
+ }),
+ ],
+ session: { strategy: 'jwt' },
+ callbacks: {
+ async jwt({ token, user }) {
+ const t = token as TokenWithId;
+ if (user && 'id' in user && typeof (user as { id?: unknown }).id === 'string') {
+ t.id = (user as { id: string }).id;
+ }
+ return t;
+ },
+ async session({ session, token }) {
+ const t = token as TokenWithId;
+ if (session?.user && t.id) {
+ (session.user as { id?: string }).id = t.id;
+ }
+ return session;
+ },
+ },
+});
diff --git a/lib/cron-worker.ts b/lib/cron-worker.ts
new file mode 100644
index 0000000..75b6459
--- /dev/null
+++ b/lib/cron-worker.ts
@@ -0,0 +1,76 @@
+import prisma from './prisma';
+
+export async function publishScheduledContent() {
+ try {
+ const now = new Date();
+
+ // Find all schedules that are due for publication
+ const dueSchedules = await prisma.schedule.findMany({
+ where: {
+ date: {
+ lte: now,
+ },
+ status: {
+ not: 'published',
+ },
+ },
+ include: {
+ content: true,
+ campaign: true,
+ },
+ });
+
+ console.log(`Found ${dueSchedules.length} schedules due for publication`);
+
+ for (const schedule of dueSchedules) {
+ try {
+ // Update schedule status to published
+ await prisma.schedule.update({
+ where: { id: schedule.id },
+ data: { status: 'published' },
+ });
+
+ // Here you would integrate with your content publishing platform
+ // For example, posting to social media, sending emails, etc.
+ console.log(
+ `Published content: ${schedule.content?.title} for campaign: ${schedule.campaign.name}`
+ );
+
+ // You could also update content status or add publishing metadata
+ if (schedule.content) {
+ // Add any publishing logic here
+ // For example, update content with publication timestamp
+ await prisma.content.update({
+ where: { id: schedule.content.id },
+ data: {
+ // Add publication metadata if needed
+ },
+ });
+ }
+ } catch (error) {
+ console.error(`Error publishing schedule ${schedule.id}:`, error);
+ // You might want to mark the schedule as failed
+ await prisma.schedule.update({
+ where: { id: schedule.id },
+ data: { status: 'failed' },
+ });
+ }
+ }
+
+ return { success: true, published: dueSchedules.length };
+ } catch (error) {
+ console.error('Error in publishScheduledContent:', error);
+ return { success: false, error: error instanceof Error ? error.message : 'Unknown error' };
+ }
+}
+
+// Function to run the cron job
+export async function runCronJob() {
+ console.log('Running scheduled content publication cron job...');
+ const result = await publishScheduledContent();
+ console.log('Cron job completed:', result);
+ return result;
+}
+
+// Export for use in API routes or scheduled tasks
+export default { publishScheduledContent, runCronJob };
diff --git a/lib/i18n.ts b/lib/i18n.ts
new file mode 100644
index 0000000..35bde4e
--- /dev/null
+++ b/lib/i18n.ts
@@ -0,0 +1,16 @@
+import { notFound } from 'next/navigation';
+import { getRequestConfig } from 'next-intl/server';
+
+// Can be imported from a shared config
+export const locales = ['en', 'vi'] as const;
+export type Locale = (typeof locales)[number];
+
+export default getRequestConfig(async ({ locale }) => {
+ // Validate that the incoming `locale` parameter is valid
+ if (!locales.includes(locale as any)) notFound();
+
+ return {
+ locale: locale as string,
+ messages: (await import(`../messages/${locale}.json`)).default,
+ };
+});
diff --git a/lib/openai.ts b/lib/openai.ts
new file mode 100644
index 0000000..d22e1f3
--- /dev/null
+++ b/lib/openai.ts
@@ -0,0 +1,148 @@
+import OpenAI from 'openai';
+
+if (!process.env.OPENAI_API_KEY) {
+ throw new Error('OPENAI_API_KEY environment variable is required');
+}
+
+export const openai = new OpenAI({
+ apiKey: process.env.OPENAI_API_KEY,
+});
+
+export interface AIContentGenerationOptions {
+ prompt: string;
+ type?: 'blog' | 'social' | 'email' | 'general';
+ tone?: 'professional' | 'casual' | 'creative' | 'formal';
+ length?: 'short' | 'medium' | 'long';
+}
+
+export interface AISummarizationOptions {
+ content: string;
+ length?: 'brief' | 'detailed';
+}
+
+export interface AITranslationOptions {
+ content: string;
+ targetLanguage: string;
+ sourceLanguage?: string;
+}
+
+export interface AIIdeationOptions {
+ topic: string;
+ count?: number;
+ type?: 'titles' | 'hashtags' | 'campaigns' | 'general';
+}
+
+/**
+ * Generate content using OpenAI
+ */
+export async function generateContent(options: AIContentGenerationOptions): Promise {
+ const { prompt, type = 'general', tone = 'professional', length = 'medium' } = options;
+
+ const systemPrompt = `You are a content generation assistant. Generate ${type} content in a ${tone} tone. The content should be ${length} in length.`;
+
+ const userPrompt = `Generate content based on this prompt: ${prompt}`;
+
+ try {
+ const response = await openai.chat.completions.create({
+ model: 'gpt-4o-mini',
+ messages: [
+ { role: 'system', content: systemPrompt },
+ { role: 'user', content: userPrompt },
+ ],
+ max_tokens: length === 'short' ? 150 : length === 'medium' ? 300 : 600,
+ temperature: 0.7,
+ });
+
+ return response.choices[0]?.message?.content?.trim() || 'Failed to generate content';
+ } catch (error) {
+ console.error('Error generating content:', error);
+ throw new Error('Failed to generate content');
+ }
+}
+
+/**
+ * Summarize content using OpenAI
+ */
+export async function summarizeContent(options: AISummarizationOptions): Promise {
+ const { content, length = 'brief' } = options;
+
+ const systemPrompt = `You are a content summarization assistant. Provide a ${length} summary of the given content.`;
+
+ try {
+ const response = await openai.chat.completions.create({
+ model: 'gpt-4o-mini',
+ messages: [
+ { role: 'system', content: systemPrompt },
+ { role: 'user', content: `Please summarize this content:\n\n${content}` },
+ ],
+ max_tokens: length === 'brief' ? 100 : 200,
+ temperature: 0.3,
+ });
+
+ return response.choices[0]?.message?.content?.trim() || 'Failed to summarize content';
+ } catch (error) {
+ console.error('Error summarizing content:', error);
+ throw new Error('Failed to summarize content');
+ }
+}
+
+/**
+ * Translate content using OpenAI
+ */
+export async function translateContent(options: AITranslationOptions): Promise {
+ const { content, targetLanguage, sourceLanguage } = options;
+
+ const systemPrompt = `You are a translation assistant. Translate the given content to ${targetLanguage}. Maintain the original tone and formatting.`;
+
+ const userPrompt = sourceLanguage
+ ? `Translate this content from ${sourceLanguage} to ${targetLanguage}:\n\n${content}`
+ : `Translate this content to ${targetLanguage}:\n\n${content}`;
+
+ try {
+ const response = await openai.chat.completions.create({
+ model: 'gpt-4o-mini',
+ messages: [
+ { role: 'system', content: systemPrompt },
+ { role: 'user', content: userPrompt },
+ ],
+ temperature: 0.3,
+ });
+
+ return response.choices[0]?.message?.content?.trim() || 'Failed to translate content';
+ } catch (error) {
+ console.error('Error translating content:', error);
+ throw new Error('Failed to translate content');
+ }
+}
+
+/**
+ * Generate ideas using OpenAI
+ */
+export async function generateIdeas(options: AIIdeationOptions): Promise {
+ const { topic, count = 5, type = 'general' } = options;
+
+ const systemPrompt = `You are an ideation assistant. Generate ${count} creative ${type} ideas related to the given topic. Provide each idea as a separate item in a list.`;
+
+ const userPrompt = `Generate ${count} ${type} ideas for: ${topic}`;
+
+ try {
+ const response = await openai.chat.completions.create({
+ model: 'gpt-4o-mini',
+ messages: [
+ { role: 'system', content: systemPrompt },
+ { role: 'user', content: userPrompt },
+ ],
+ max_tokens: 400,
+ temperature: 0.8,
+ });
+
+ const content = response.choices[0]?.message?.content?.trim() || '';
+ // Split by newlines and filter out empty lines
+ const ideas = content.split('\n').filter((line) => line.trim().length > 0);
+
+ return ideas.length > 0 ? ideas : ['Failed to generate ideas'];
+ } catch (error) {
+ console.error('Error generating ideas:', error);
+ throw new Error('Failed to generate ideas');
+ }
+}
diff --git a/lib/prisma.ts b/lib/prisma.ts
new file mode 100644
index 0000000..077affa
--- /dev/null
+++ b/lib/prisma.ts
@@ -0,0 +1,14 @@
+import { PrismaClient } from '@prisma/client';
+
+// Ensure a singleton in dev and RSC-safe usage
+const globalForPrisma = globalThis as unknown as { prisma?: PrismaClient };
+
+export const prisma =
+ globalForPrisma.prisma ??
+ new PrismaClient({
+ log: process.env.NODE_ENV === 'development' ? ['query', 'error', 'warn'] : ['error'],
+ });
+
+if (process.env.NODE_ENV !== 'production') globalForPrisma.prisma = prisma;
+
+export default prisma;
diff --git a/lib/rbac.ts b/lib/rbac.ts
new file mode 100644
index 0000000..381ce31
--- /dev/null
+++ b/lib/rbac.ts
@@ -0,0 +1,117 @@
+import { auth } from '@/lib/auth';
+import prisma from '@/lib/prisma';
+import { OrgRole } from '@prisma/client';
+
+export type UserRole = OrgRole;
+
+// Simple in-memory cache for user roles (per request)
+const roleCache = new Map();
+
+export const PERMISSIONS = {
+ VIEW_CAMPAIGNS: 'view_campaigns',
+ MANAGE_CAMPAIGNS: 'manage_campaigns',
+ MANAGE_CONTENT: 'manage_content',
+ APPROVE_CONTENT: 'approve_content',
+ VIEW_ANALYTICS: 'view_analytics',
+ MANAGE_USERS: 'manage_users',
+ MANAGE_ORGANIZATION: 'manage_organization',
+ MANAGE_SCHEDULES: 'manage_schedules',
+} as const;
+
+export async function getUserRole(orgId: string): Promise {
+ const session = await auth();
+ if (!session?.user?.id) {
+ return null;
+ }
+
+ const cacheKey = `${session.user.id}:${orgId}`;
+ if (roleCache.has(cacheKey)) {
+ return roleCache.get(cacheKey)!;
+ }
+
+ const membership = await prisma.membership.findFirst({
+ where: {
+ userId: session.user.id,
+ organizationId: orgId,
+ },
+ });
+
+ const role = membership?.role || null;
+ roleCache.set(cacheKey, role);
+ return role;
+}
+
+export async function requireRole(orgId: string, requiredRole: UserRole): Promise {
+ const userRole = await getUserRole(orgId);
+ if (!userRole) return false;
+
+ const roleHierarchy = {
+ [OrgRole.CREATOR]: 1,
+ [OrgRole.BRAND_OWNER]: 2,
+ [OrgRole.ADMIN]: 3,
+ };
+
+ return roleHierarchy[userRole] >= roleHierarchy[requiredRole];
+}
+
+export async function requirePermission(
+ userId: string,
+ orgId: string,
+ permission: string
+): Promise {
+ const userRole = await getUserRole(orgId);
+ if (!userRole) {
+ throw new Error('Insufficient permissions');
+ }
+
+ const permissions = {
+ [OrgRole.CREATOR]: [PERMISSIONS.VIEW_CAMPAIGNS, PERMISSIONS.MANAGE_CONTENT],
+ [OrgRole.BRAND_OWNER]: [
+ PERMISSIONS.VIEW_CAMPAIGNS,
+ PERMISSIONS.MANAGE_CAMPAIGNS,
+ PERMISSIONS.MANAGE_CONTENT,
+ PERMISSIONS.APPROVE_CONTENT,
+ PERMISSIONS.VIEW_ANALYTICS,
+ ],
+ [OrgRole.ADMIN]: [
+ PERMISSIONS.VIEW_CAMPAIGNS,
+ PERMISSIONS.MANAGE_CAMPAIGNS,
+ PERMISSIONS.MANAGE_CONTENT,
+ PERMISSIONS.APPROVE_CONTENT,
+ PERMISSIONS.VIEW_ANALYTICS,
+ PERMISSIONS.MANAGE_USERS,
+ PERMISSIONS.MANAGE_ORGANIZATION,
+ ],
+ };
+
+ if (!permissions[userRole]?.includes(permission as any)) {
+ throw new Error('Insufficient permissions');
+ }
+}
+
+export async function hasPermission(orgId: string, permission: string): Promise {
+ const userRole = await getUserRole(orgId);
+ if (!userRole) return false;
+
+ const permissions = {
+ [OrgRole.CREATOR]: [PERMISSIONS.VIEW_CAMPAIGNS, PERMISSIONS.MANAGE_CONTENT],
+ [OrgRole.BRAND_OWNER]: [
+ PERMISSIONS.VIEW_CAMPAIGNS,
+ PERMISSIONS.MANAGE_CAMPAIGNS,
+ PERMISSIONS.MANAGE_CONTENT,
+ PERMISSIONS.APPROVE_CONTENT,
+ PERMISSIONS.VIEW_ANALYTICS,
+ ],
+ [OrgRole.ADMIN]: [
+ PERMISSIONS.VIEW_CAMPAIGNS,
+ PERMISSIONS.MANAGE_CAMPAIGNS,
+ PERMISSIONS.MANAGE_CONTENT,
+ PERMISSIONS.APPROVE_CONTENT,
+ PERMISSIONS.VIEW_ANALYTICS,
+ PERMISSIONS.MANAGE_USERS,
+ PERMISSIONS.MANAGE_ORGANIZATION,
+ ],
+ };
+
+ return permissions[userRole]?.includes(permission as any) || false;
+}
diff --git a/lib/schemas.ts b/lib/schemas.ts
new file mode 100644
index 0000000..595f682
--- /dev/null
+++ b/lib/schemas.ts
@@ -0,0 +1,75 @@
+import { z } from 'zod';
+
+// Campaign schemas
+export const createCampaignSchema = z.object({
+ name: z.string().min(1, 'Name is required'),
+ description: z.string().optional(),
+});
+
+export const updateCampaignSchema = z.object({
+ name: z.string().min(1, 'Name is required').optional(),
+ description: z.string().optional(),
+});
+
+// Content schemas
+export const createContentSchema = z.object({
+ title: z.string().min(1, 'Title is required'),
+ body: z.string().optional(),
+ campaignId: z.string().min(1, 'Campaign ID is required'),
+});
+
+export const updateContentSchema = z.object({
+ title: z.string().min(1, 'Title is required').optional(),
+ body: z.string().optional(),
+});
+
+export const generateContentSchema = z.object({
+ prompt: z.string().min(1, 'Prompt is required'),
+ campaignId: z.string().min(1, 'Campaign ID is required'),
+});
+
+// Asset schemas
+export const createAssetSchema = z.object({
+ url: z.string().url('Invalid URL'),
+ name: z.string().optional(),
+ type: z.string().min(1, 'Type is required'),
+ size: z.number().optional(),
+ description: z.string().optional(),
+ tags: z.array(z.string()).optional(),
+ contentId: z.string().min(1, 'Content ID is required'),
+});
+
+export const updateAssetSchema = z.object({
+ url: z.string().url('Invalid URL').optional(),
+ name: z.string().optional(),
+ type: z.string().min(1, 'Type is required').optional(),
+ size: z.number().optional(),
+ description: z.string().optional(),
+ tags: z.array(z.string()).optional(),
+});
+
+// Schedule schemas
+export const createScheduleSchema = z.object({
+ date: z.string().datetime('Invalid date'),
+ status: z.string().min(1, 'Status is required'),
+ campaignId: z.string().min(1, 'Campaign ID is required'),
+ contentId: z.string().optional(),
+});
+
+export const updateScheduleSchema = z.object({
+ date: z.string().datetime('Invalid date').optional(),
+ status: z.string().min(1, 'Status is required').optional(),
+ contentId: z.string().optional(),
+});
+
+// Analytics schemas
+export const createAnalyticsEventSchema = z.object({
+ event: z.string().min(1, 'Event is required'),
+ data: z.record(z.any()).optional(),
+ organizationId: z.string().optional(),
+ campaignId: z.string().optional(),
+ contentId: z.string().optional(),
+});
+
+// OrgRole enum
+export const orgRoleSchema = z.enum(['ADMIN', 'BRAND_OWNER', 'CREATOR']);
diff --git a/lib/uploadthing.ts b/lib/uploadthing.ts
new file mode 100644
index 0000000..6ff453a
--- /dev/null
+++ b/lib/uploadthing.ts
@@ -0,0 +1,29 @@
+import { createUploadthing, type FileRouter } from 'uploadthing/next';
+import { UploadThingError } from 'uploadthing/server';
+import { auth } from '@/lib/auth';
+
+const f = createUploadthing();
+
+export const ourFileRouter = {
+ assetUploader: f({
+ image: { maxFileSize: '4MB' },
+ video: { maxFileSize: '16MB' },
+ audio: { maxFileSize: '8MB' },
+ pdf: { maxFileSize: '4MB' },
+ })
+ .middleware(async ({ req }) => {
+ const session = await auth();
+
+ if (!session?.user?.id) throw new UploadThingError('Unauthorized');
+
+ return { userId: session.user.id };
+ })
+ .onUploadComplete(async ({ metadata, file }) => {
+ console.log('Upload complete for userId:', metadata.userId);
+ console.log('file url', file.url);
+
+ return { uploadedBy: metadata.userId, url: file.url };
+ }),
+} satisfies FileRouter;
+
+export type OurFileRouter = typeof ourFileRouter;
diff --git a/messages/en.json b/messages/en.json
new file mode 100644
index 0000000..b09bbf9
--- /dev/null
+++ b/messages/en.json
@@ -0,0 +1,80 @@
+{
+ "common": {
+ "loading": "Loading...",
+ "save": "Save",
+ "cancel": "Cancel",
+ "delete": "Delete",
+ "edit": "Edit",
+ "create": "Create",
+ "search": "Search",
+ "filter": "Filter",
+ "settings": "Settings",
+ "language": "Language",
+ "english": "English",
+ "vietnamese": "Vietnamese"
+ },
+ "navigation": {
+ "workspace": "Workspace",
+ "dashboard": "Dashboard",
+ "campaigns": "Campaigns",
+ "content_studio": "Content Studio",
+ "schedules": "Schedules",
+ "assets": "Assets",
+ "analytics": "Analytics",
+ "members": "Members",
+ "settings": "Settings",
+ "more": "More",
+ "views": "Views",
+ "customize_sidebar": "Customize sidebar",
+ "projects": "Projects",
+ "teams": "Teams",
+ "content": "Content",
+ "inbox": "Inbox"
+ },
+ "auth": {
+ "signin": "Sign In",
+ "signout": "Sign Out",
+ "welcome": "Welcome",
+ "username": "Username",
+ "password": "Password",
+ "email": "Email"
+ },
+ "dashboard": {
+ "title": "Dashboard",
+ "overview": "Overview",
+ "analytics": "Analytics",
+ "recent_activity": "Recent Activity",
+ "admin_title": "Admin Dashboard",
+ "admin_description": "Manage organization, users, and system settings",
+ "system_settings": "System Settings",
+ "total_users": "Total Users",
+ "active_users": "active",
+ "active_campaigns": "Active Campaigns",
+ "content_pieces": "Content Pieces",
+ "pending_approvals": "Pending Approvals",
+ "requires_attention": "Requires attention",
+ "user_management": "User Management",
+ "organization": "Organization",
+ "system": "System",
+ "team_members": "Team Members",
+ "manage_user_roles": "Manage user roles and permissions",
+ "user": "User",
+ "role": "Role",
+ "status": "Status",
+ "actions": "Actions",
+ "edit": "Edit",
+ "brand_owner": "Brand Owner",
+ "creator": "Creator",
+ "admin": "Admin",
+ "pending_invites": "Pending Invites",
+ "users_waiting_join": "Users waiting to join the organization",
+ "invited_by": "Invited by",
+ "resend": "Resend",
+ "invite_new_user": "Invite New User"
+ },
+ "sidebar": {
+ "open_source_layouts": "Open-source layouts by lndev-ui",
+ "layouts_description": "Collection of beautifully crafted open-source layouts UI built with shadcn/ui.",
+ "visit_square": "square.lndev.me"
+ }
+}
diff --git a/messages/vi.json b/messages/vi.json
new file mode 100644
index 0000000..d569062
--- /dev/null
+++ b/messages/vi.json
@@ -0,0 +1,80 @@
+{
+ "common": {
+ "loading": "Đang tải...",
+ "save": "Lưu",
+ "cancel": "Hủy",
+ "delete": "Xóa",
+ "edit": "Chỉnh sửa",
+ "create": "Tạo",
+ "search": "Tìm kiếm",
+ "filter": "Lọc",
+ "settings": "Cài đặt",
+ "language": "Ngôn ngữ",
+ "english": "Tiếng Anh",
+ "vietnamese": "Tiếng Việt"
+ },
+ "navigation": {
+ "workspace": "Không gian làm việc",
+ "dashboard": "Bảng điều khiển",
+ "campaigns": "Chiến dịch",
+ "content_studio": "Studio nội dung",
+ "schedules": "Lịch trình",
+ "assets": "Tài sản",
+ "analytics": "Phân tích",
+ "members": "Thành viên",
+ "settings": "Cài đặt",
+ "more": "Thêm",
+ "views": "Chế độ xem",
+ "customize_sidebar": "Tùy chỉnh thanh bên",
+ "projects": "Dự án",
+ "teams": "Nhóm",
+ "content": "Nội dung",
+ "inbox": "Hộp thư"
+ },
+ "auth": {
+ "signin": "Đăng nhập",
+ "signout": "Đăng xuất",
+ "welcome": "Chào mừng",
+ "username": "Tên người dùng",
+ "password": "Mật khẩu",
+ "email": "Email"
+ },
+ "dashboard": {
+ "title": "Bảng điều khiển",
+ "overview": "Tổng quan",
+ "analytics": "Phân tích",
+ "recent_activity": "Hoạt động gần đây",
+ "admin_title": "Bảng điều khiển quản trị",
+ "admin_description": "Quản lý tổ chức, người dùng và cài đặt hệ thống",
+ "system_settings": "Cài đặt hệ thống",
+ "total_users": "Tổng số người dùng",
+ "active_users": "đang hoạt động",
+ "active_campaigns": "Chiến dịch đang hoạt động",
+ "content_pieces": "Mảnh nội dung",
+ "pending_approvals": "Đang chờ phê duyệt",
+ "requires_attention": "Cần chú ý",
+ "user_management": "Quản lý người dùng",
+ "organization": "Tổ chức",
+ "system": "Hệ thống",
+ "team_members": "Thành viên nhóm",
+ "manage_user_roles": "Quản lý vai trò và quyền của người dùng",
+ "user": "Người dùng",
+ "role": "Vai trò",
+ "status": "Trạng thái",
+ "actions": "Hành động",
+ "edit": "Chỉnh sửa",
+ "brand_owner": "Chủ sở hữu thương hiệu",
+ "creator": "Người tạo",
+ "admin": "Quản trị viên",
+ "pending_invites": "Lời mời đang chờ",
+ "users_waiting_join": "Người dùng đang chờ tham gia tổ chức",
+ "invited_by": "Được mời bởi",
+ "resend": "Gửi lại",
+ "invite_new_user": "Mời người dùng mới"
+ },
+ "sidebar": {
+ "open_source_layouts": "Bố cục mã nguồn mở bởi lndev-ui",
+ "layouts_description": "Bộ sưu tập các bố cục UI mã nguồn mở được thiết kế đẹp mắt được xây dựng với shadcn/ui.",
+ "visit_square": "square.lndev.me"
+ }
+}
diff --git a/middleware.ts b/middleware.ts
new file mode 100644
index 0000000..ef512d1
--- /dev/null
+++ b/middleware.ts
@@ -0,0 +1,100 @@
+import { auth } from '@/lib/auth';
+import createMiddleware from 'next-intl/middleware';
+import { locales } from './i18n';
+
+const intlMiddleware = createMiddleware({
+ locales: locales,
+ defaultLocale: 'en',
+ localePrefix: 'as-needed',
+});
+
+export default auth(async (req) => {
+ const { nextUrl } = req;
+ const pathname = nextUrl.pathname;
+
+ console.log('Middleware processing:', pathname);
+
+ // Skip middleware for static files and API routes
+ if (pathname.startsWith('/_next') || pathname.startsWith('/api') || pathname.includes('.')) {
+ console.log('Skipping middleware for static/API route');
+ return null;
+ }
+
+ // Check if user is logged in first
+ const isLoggedIn = !!req.auth;
+ console.log('Is logged in:', isLoggedIn);
+
+ // If user is logged in, skip i18n middleware to prevent locale redirects
+ if (isLoggedIn) {
+ console.log('User logged in, skipping i18n middleware');
+
+ // Only guard organization routes: /[orgId]/**
+ const isOrgRoute = (() => {
+ if (pathname === '/') return false;
+ if (pathname.startsWith('/auth')) return false;
+ if (pathname.startsWith('/api')) return false;
+ if (pathname.startsWith('/_next')) return false;
+ if (pathname.startsWith('/test')) return false;
+ if (/\.[\w]+$/.test(pathname)) return false; // assets
+ // Consider any first-segment path as org route for now
+ return /^\/[^/]+(\/.*)?$/.test(pathname);
+ })();
+
+ console.log('Is org route:', isOrgRoute);
+
+ if (isOrgRoute) {
+ console.log('User accessing org route, allowing');
+ return null;
+ }
+
+ console.log('Middleware allowing request for logged in user');
+ return null;
+ }
+
+ // Handle i18n routing ONLY for unauthenticated users and specific paths
+ if (pathname === '/' || pathname.startsWith('/auth') || pathname.startsWith('/test')) {
+ console.log('Applying i18n middleware for unauthenticated user:', pathname);
+ const intlResponse = intlMiddleware(req);
+ if (intlResponse) {
+ console.log('i18n response returned');
+ return intlResponse;
+ }
+ }
+
+ // Allow test page
+ if (pathname === '/test') {
+ console.log('Allowing test page');
+ return null;
+ }
+
+ // Only guard organization routes: /[orgId]/**
+ const isOrgRoute = (() => {
+ if (pathname === '/') return false;
+ if (pathname.startsWith('/auth')) return false;
+ if (pathname.startsWith('/api')) return false;
+ if (pathname.startsWith('/_next')) return false;
+ if (pathname.startsWith('/test')) return false;
+ if (/\.[\w]+$/.test(pathname)) return false; // assets
+ // Consider any first-segment path as org route for now
+ return /^\/[^/]+(\/.*)?$/.test(pathname);
+ })();
+
+ console.log('Is org route:', isOrgRoute);
+
+ if (!isLoggedIn && isOrgRoute) {
+ console.log('Redirecting to signin');
+ const url = new URL('/auth/signin', nextUrl);
+ url.searchParams.set('callbackUrl', nextUrl.href);
+ return Response.redirect(url);
+ }
+
+ console.log('Middleware allowing request');
+ return null;
+});
+
+export const config = {
+ matcher: [
+ // Match all paths except Next internals and static files
+ '/((?!api/health|_next|.*\\..*).*)',
+ ],
+};
diff --git a/next.config.ts b/next.config.ts
index 5d2d55a..12063e6 100644
--- a/next.config.ts
+++ b/next.config.ts
@@ -1,8 +1,17 @@
import type { NextConfig } from 'next';
+import createNextIntlPlugin from 'next-intl/plugin';
+
+const withNextIntl = createNextIntlPlugin('./i18n.ts');
const nextConfig: NextConfig = {
/* config options here */
devIndicators: false,
+ experimental: {
+ optimizeCss: true,
+ },
+ images: {
+ domains: ['your-production-domain.com'], // Add your domains
+ },
};
-export default nextConfig;
+export default withNextIntl(nextConfig);
diff --git a/package.json b/package.json
index dd86351..e1cb025 100644
--- a/package.json
+++ b/package.json
@@ -8,11 +8,21 @@
"start": "next start",
"lint": "next lint",
"format": "prettier --write .",
- "prepare": "husky install"
+ "prepare": "husky install",
+ "typecheck": "tsc --noEmit",
+ "db:generate": "prisma generate",
+ "db:push": "prisma db push",
+ "db:seed": "tsx db/seed.ts",
+ "test": "jest",
+ "test:watch": "jest --watch",
+ "test:coverage": "jest --coverage",
+ "test:e2e": "playwright test",
+ "test:e2e:ui": "playwright test --ui"
},
"dependencies": {
"@hookform/resolvers": "^4.1.2",
"@kayron013/lexorank": "^2.0.0",
+ "@prisma/client": "^6.0.0",
"@radix-ui/react-alert-dialog": "^1.1.6",
"@radix-ui/react-avatar": "^1.1.3",
"@radix-ui/react-checkbox": "^1.1.4",
@@ -35,10 +45,14 @@
"clsx": "^2.1.1",
"cmdk": "1.0.0",
"date-fns": "^4.1.0",
+ "formidable": "^3.5.4",
"lucide-react": "^0.476.0",
"motion": "^12.4.10",
"next": "15.2.4",
+ "next-auth": "^5.0.0-beta.29",
+ "next-intl": "^4.3.5",
"next-themes": "^0.4.4",
+ "openai": "^5.16.0",
"react": "^19.0.0",
"react-day-picker": "8.10.1",
"react-dnd": "^16.0.1",
@@ -51,6 +65,7 @@
"sonner": "^2.0.1",
"tailwind-merge": "^3.0.2",
"tailwindcss-animate": "^1.0.7",
+ "uploadthing": "^7.7.4",
"usehooks-ts": "^3.1.1",
"uuid": "^11.1.0",
"zod": "^3.24.2",
@@ -58,7 +73,13 @@
},
"devDependencies": {
"@eslint/eslintrc": "^3",
+ "@playwright/test": "^1.55.0",
"@tailwindcss/postcss": "^4",
+ "@testing-library/jest-dom": "^6.8.0",
+ "@testing-library/react": "^16.3.0",
+ "@testing-library/user-event": "^14.6.1",
+ "@types/formidable": "^3.4.5",
+ "@types/jest": "^30.0.0",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
@@ -67,9 +88,13 @@
"eslint-config-prettier": "^10.0.2",
"eslint-plugin-prettier": "^5.2.3",
"husky": "^9.1.7",
+ "jest": "^30.1.2",
+ "jest-environment-jsdom": "^30.1.2",
"lint-staged": "^15.4.3",
"prettier": "^3.5.2",
+ "prisma": "^6.0.0",
"tailwindcss": "^4",
+ "tsx": "^4.19.2",
"typescript": "^5"
}
}
diff --git a/playwright-report/index.html b/playwright-report/index.html
new file mode 100644
index 0000000..542fd04
--- /dev/null
+++ b/playwright-report/index.html
@@ -0,0 +1,76 @@
+
+
+
+
+
+
+
+
+ Playwright Test Report
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/playwright.config.ts b/playwright.config.ts
new file mode 100644
index 0000000..a42a587
--- /dev/null
+++ b/playwright.config.ts
@@ -0,0 +1,71 @@
+import { defineConfig, devices } from '@playwright/test';
+
+/**
+ * @see https://playwright.dev/docs/test-configuration
+ */
+export default defineConfig({
+ testDir: './tests/e2e',
+ /* Run tests in files in parallel */
+ fullyParallel: true,
+ /* Fail the build on CI if you accidentally left test.only in the source code. */
+ forbidOnly: !!process.env.CI,
+ /* Retry on CI only */
+ retries: process.env.CI ? 2 : 0,
+ /* Opt out of parallel tests on CI. */
+ workers: process.env.CI ? 1 : undefined,
+ /* Reporter to use. See https://playwright.dev/docs/test-reporters */
+ reporter: 'html',
+ /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
+ use: {
+ /* Base URL to use in actions like `await page.goto('/')`. */
+ baseURL: 'http://localhost:3000',
+
+ /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
+ trace: 'on-first-retry',
+ },
+
+ /* Configure projects for major browsers */
+ projects: [
+ {
+ name: 'chromium',
+ use: { ...devices['Desktop Chrome'] },
+ },
+
+ {
+ name: 'firefox',
+ use: { ...devices['Desktop Firefox'] },
+ },
+
+ {
+ name: 'webkit',
+ use: { ...devices['Desktop Safari'] },
+ },
+
+ /* Test against mobile viewports. */
+ {
+ name: 'Mobile Chrome',
+ use: { ...devices['Pixel 5'] },
+ },
+ {
+ name: 'Mobile Safari',
+ use: { ...devices['iPhone 12'] },
+ },
+
+ /* Test against branded browsers. */
+ // {
+ // name: 'Microsoft Edge',
+ // use: { ...devices['Desktop Edge'], channel: 'msedge' },
+ // },
+ // {
+ // name: 'Google Chrome',
+ // use: { ...devices['Desktop Chrome'], channel: 'chrome' },
+ // },
+ ],
+
+ /* Run your local dev server before starting the tests */
+ webServer: {
+ command: 'npm run dev',
+ url: 'http://localhost:3000',
+ reuseExistingServer: !process.env.CI,
+ },
+});
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 9531b9f..1d03278 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -14,6 +14,9 @@ importers:
'@kayron013/lexorank':
specifier: ^2.0.0
version: 2.0.0
+ '@prisma/client':
+ specifier: ^6.0.0
+ version: 6.15.0(prisma@6.15.0(typescript@5.7.3))(typescript@5.7.3)
'@radix-ui/react-alert-dialog':
specifier: ^1.1.6
version: 1.1.6(@types/react-dom@19.0.4(@types/react@19.0.10))(@types/react@19.0.10)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
@@ -80,6 +83,9 @@ importers:
date-fns:
specifier: ^4.1.0
version: 4.1.0
+ formidable:
+ specifier: ^3.5.4
+ version: 3.5.4
lucide-react:
specifier: ^0.476.0
version: 0.476.0(react@19.0.0)
@@ -88,10 +94,19 @@ importers:
version: 12.4.10(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
next:
specifier: 15.2.4
- version: 15.2.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
+ version: 15.2.4(@babel/core@7.28.3)(@playwright/test@1.55.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
+ next-auth:
+ specifier: ^5.0.0-beta.29
+ version: 5.0.0-beta.29(next@15.2.4(@babel/core@7.28.3)(@playwright/test@1.55.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react@19.0.0)
+ next-intl:
+ specifier: ^4.3.5
+ version: 4.3.5(next@15.2.4(@babel/core@7.28.3)(@playwright/test@1.55.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react@19.0.0)(typescript@5.7.3)
next-themes:
specifier: ^0.4.4
version: 0.4.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
+ openai:
+ specifier: ^5.16.0
+ version: 5.16.0(ws@8.18.3)(zod@3.24.2)
react:
specifier: ^19.0.0
version: 19.0.0
@@ -128,6 +143,9 @@ importers:
tailwindcss-animate:
specifier: ^1.0.7
version: 1.0.7(tailwindcss@4.0.8)
+ uploadthing:
+ specifier: ^7.7.4
+ version: 7.7.4(next@15.2.4(@babel/core@7.28.3)(@playwright/test@1.55.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(tailwindcss@4.0.8)
usehooks-ts:
specifier: ^3.1.1
version: 3.1.1(react@19.0.0)
@@ -144,9 +162,27 @@ importers:
'@eslint/eslintrc':
specifier: ^3
version: 3.3.0
+ '@playwright/test':
+ specifier: ^1.55.0
+ version: 1.55.0
'@tailwindcss/postcss':
specifier: ^4
version: 4.0.8
+ '@testing-library/jest-dom':
+ specifier: ^6.8.0
+ version: 6.8.0
+ '@testing-library/react':
+ specifier: ^16.3.0
+ version: 16.3.0(@testing-library/dom@10.4.1)(@types/react-dom@19.0.4(@types/react@19.0.10))(@types/react@19.0.10)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
+ '@testing-library/user-event':
+ specifier: ^14.6.1
+ version: 14.6.1(@testing-library/dom@10.4.1)
+ '@types/formidable':
+ specifier: ^3.4.5
+ version: 3.4.5
+ '@types/jest':
+ specifier: ^30.0.0
+ version: 30.0.0
'@types/node':
specifier: ^20
version: 20.17.19
@@ -171,32 +207,431 @@ importers:
husky:
specifier: ^9.1.7
version: 9.1.7
+ jest:
+ specifier: ^30.1.2
+ version: 30.1.2(@types/node@20.17.19)
+ jest-environment-jsdom:
+ specifier: ^30.1.2
+ version: 30.1.2
lint-staged:
specifier: ^15.4.3
version: 15.4.3
prettier:
specifier: ^3.5.2
version: 3.5.2
+ prisma:
+ specifier: ^6.0.0
+ version: 6.15.0(typescript@5.7.3)
tailwindcss:
specifier: ^4
version: 4.0.8
+ tsx:
+ specifier: ^4.19.2
+ version: 4.20.5
typescript:
specifier: ^5
version: 5.7.3
packages:
+ '@adobe/css-tools@4.4.4':
+ resolution: {integrity: sha512-Elp+iwUx5rN5+Y8xLt5/GRoG20WGoDCQ/1Fb+1LiGtvwbDavuSk0jhD/eZdckHAuzcDzccnkv+rEjyWfRx18gg==}
+
'@alloc/quick-lru@5.2.0':
resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==}
engines: {node: '>=10'}
+ '@ampproject/remapping@2.3.0':
+ resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==}
+ engines: {node: '>=6.0.0'}
+
+ '@asamuzakjp/css-color@3.2.0':
+ resolution: {integrity: sha512-K1A6z8tS3XsmCMM86xoWdn7Fkdn9m6RSVtocUrJYIwZnFVkng/PvkEoWtOWmP+Scc6saYWHWZYbndEEXxl24jw==}
+
+ '@auth/core@0.40.0':
+ resolution: {integrity: sha512-n53uJE0RH5SqZ7N1xZoMKekbHfQgjd0sAEyUbE+IYJnmuQkbvuZnXItCU7d+i7Fj8VGOgqvNO7Mw4YfBTlZeQw==}
+ peerDependencies:
+ '@simplewebauthn/browser': ^9.0.1
+ '@simplewebauthn/server': ^9.0.2
+ nodemailer: ^6.8.0
+ peerDependenciesMeta:
+ '@simplewebauthn/browser':
+ optional: true
+ '@simplewebauthn/server':
+ optional: true
+ nodemailer:
+ optional: true
+
+ '@babel/code-frame@7.27.1':
+ resolution: {integrity: sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/compat-data@7.28.0':
+ resolution: {integrity: sha512-60X7qkglvrap8mn1lh2ebxXdZYtUcpd7gsmy9kLaBJ4i/WdY8PqTSdxyA8qraikqKQK5C1KRBKXqznrVapyNaw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/core@7.28.3':
+ resolution: {integrity: sha512-yDBHV9kQNcr2/sUr9jghVyz9C3Y5G2zUM2H2lo+9mKv4sFgbA8s8Z9t8D1jiTkGoO/NoIfKMyKWr4s6CN23ZwQ==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/generator@7.28.3':
+ resolution: {integrity: sha512-3lSpxGgvnmZznmBkCRnVREPUFJv2wrv9iAoFDvADJc0ypmdOxdUtcLeBgBJ6zE0PMeTKnxeQzyk0xTBq4Ep7zw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/helper-compilation-targets@7.27.2':
+ resolution: {integrity: sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/helper-globals@7.28.0':
+ resolution: {integrity: sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/helper-module-imports@7.27.1':
+ resolution: {integrity: sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/helper-module-transforms@7.28.3':
+ resolution: {integrity: sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0
+
+ '@babel/helper-plugin-utils@7.27.1':
+ resolution: {integrity: sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/helper-string-parser@7.27.1':
+ resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/helper-validator-identifier@7.27.1':
+ resolution: {integrity: sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/helper-validator-option@7.27.1':
+ resolution: {integrity: sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/helpers@7.28.3':
+ resolution: {integrity: sha512-PTNtvUQihsAsDHMOP5pfobP8C6CM4JWXmP8DrEIt46c3r2bf87Ua1zoqevsMo9g+tWDwgWrFP5EIxuBx5RudAw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/parser@7.28.3':
+ resolution: {integrity: sha512-7+Ey1mAgYqFAx2h0RuoxcQT5+MlG3GTV0TQrgr7/ZliKsm/MNDxVVutlWaziMq7wJNAz8MTqz55XLpWvva6StA==}
+ engines: {node: '>=6.0.0'}
+ hasBin: true
+
+ '@babel/plugin-syntax-async-generators@7.8.4':
+ resolution: {integrity: sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@babel/plugin-syntax-bigint@7.8.3':
+ resolution: {integrity: sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@babel/plugin-syntax-class-properties@7.12.13':
+ resolution: {integrity: sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@babel/plugin-syntax-class-static-block@7.14.5':
+ resolution: {integrity: sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@babel/plugin-syntax-import-attributes@7.27.1':
+ resolution: {integrity: sha512-oFT0FrKHgF53f4vOsZGi2Hh3I35PfSmVs4IBFLFj4dnafP+hIWDLg3VyKmUHfLoLHlyxY4C7DGtmHuJgn+IGww==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@babel/plugin-syntax-import-meta@7.10.4':
+ resolution: {integrity: sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@babel/plugin-syntax-json-strings@7.8.3':
+ resolution: {integrity: sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@babel/plugin-syntax-jsx@7.27.1':
+ resolution: {integrity: sha512-y8YTNIeKoyhGd9O0Jiyzyyqk8gdjnumGTQPsz0xOZOQ2RmkVJeZ1vmmfIvFEKqucBG6axJGBZDE/7iI5suUI/w==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@babel/plugin-syntax-logical-assignment-operators@7.10.4':
+ resolution: {integrity: sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@babel/plugin-syntax-nullish-coalescing-operator@7.8.3':
+ resolution: {integrity: sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@babel/plugin-syntax-numeric-separator@7.10.4':
+ resolution: {integrity: sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@babel/plugin-syntax-object-rest-spread@7.8.3':
+ resolution: {integrity: sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@babel/plugin-syntax-optional-catch-binding@7.8.3':
+ resolution: {integrity: sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@babel/plugin-syntax-optional-chaining@7.8.3':
+ resolution: {integrity: sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@babel/plugin-syntax-private-property-in-object@7.14.5':
+ resolution: {integrity: sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@babel/plugin-syntax-top-level-await@7.14.5':
+ resolution: {integrity: sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@babel/plugin-syntax-typescript@7.27.1':
+ resolution: {integrity: sha512-xfYCBMxveHrRMnAWl1ZlPXOZjzkN82THFvLhQhFXFt81Z5HnN+EtUkZhv/zcKpmT3fzmWZB0ywiBrbC3vogbwQ==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
'@babel/runtime@7.26.9':
resolution: {integrity: sha512-aA63XwOkcl4xxQa3HjPMqOP6LiK0ZDv3mUPYEFXkpHbaFjtGggE1A61FjFzJnB+p7/oy2gA8E+rcBNl/zC1tMg==}
engines: {node: '>=6.9.0'}
+ '@babel/template@7.27.2':
+ resolution: {integrity: sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/traverse@7.28.3':
+ resolution: {integrity: sha512-7w4kZYHneL3A6NP2nxzHvT3HCZ7puDZZjFMqDpBPECub79sTtSO5CGXDkKrTQq8ksAwfD/XI2MRFX23njdDaIQ==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/types@7.28.2':
+ resolution: {integrity: sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ==}
+ engines: {node: '>=6.9.0'}
+
+ '@bcoe/v8-coverage@0.2.3':
+ resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==}
+
+ '@csstools/color-helpers@5.1.0':
+ resolution: {integrity: sha512-S11EXWJyy0Mz5SYvRmY8nJYTFFd1LCNV+7cXyAgQtOOuzb4EsgfqDufL+9esx72/eLhsRdGZwaldu/h+E4t4BA==}
+ engines: {node: '>=18'}
+
+ '@csstools/css-calc@2.1.4':
+ resolution: {integrity: sha512-3N8oaj+0juUw/1H3YwmDDJXCgTB1gKU6Hc/bB502u9zR0q2vd786XJH9QfrKIEgFlZmhZiq6epXl4rHqhzsIgQ==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ '@csstools/css-parser-algorithms': ^3.0.5
+ '@csstools/css-tokenizer': ^3.0.4
+
+ '@csstools/css-color-parser@3.1.0':
+ resolution: {integrity: sha512-nbtKwh3a6xNVIp/VRuXV64yTKnb1IjTAEEh3irzS+HkKjAOYLTGNb9pmVNntZ8iVBHcWDA2Dof0QtPgFI1BaTA==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ '@csstools/css-parser-algorithms': ^3.0.5
+ '@csstools/css-tokenizer': ^3.0.4
+
+ '@csstools/css-parser-algorithms@3.0.5':
+ resolution: {integrity: sha512-DaDeUkXZKjdGhgYaHNJTV9pV7Y9B3b644jCLs9Upc3VeNGg6LWARAT6O+Q+/COo+2gg/bM5rhpMAtf70WqfBdQ==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ '@csstools/css-tokenizer': ^3.0.4
+
+ '@csstools/css-tokenizer@3.0.4':
+ resolution: {integrity: sha512-Vd/9EVDiu6PPJt9yAh6roZP6El1xHrdvIVGjyBsHR0RYwNHgL7FJPyIIW4fANJNG6FtyZfvlRPpFI4ZM/lubvw==}
+ engines: {node: '>=18'}
+
+ '@effect/platform@0.90.3':
+ resolution: {integrity: sha512-XvQ37yzWQKih4Du2CYladd1i/MzqtgkTPNCaN6Ku6No4CK83hDtXIV/rP03nEoBg2R3Pqgz6gGWmE2id2G81HA==}
+ peerDependencies:
+ effect: ^3.17.7
+
+ '@emnapi/core@1.5.0':
+ resolution: {integrity: sha512-sbP8GzB1WDzacS8fgNPpHlp6C9VZe+SJP3F90W9rLemaQj2PzIuTEl1qDOYQf58YIpyjViI24y9aPWCjEzY2cg==}
+
'@emnapi/runtime@1.3.1':
resolution: {integrity: sha512-kEBmG8KyqtxJZv+ygbEim+KCGtIq1fC22Ms3S4ziXmYKm8uyoLX0MHONVKwp+9opg390VaKRNt4a7A9NwmpNhw==}
+ '@emnapi/runtime@1.5.0':
+ resolution: {integrity: sha512-97/BJ3iXHww3djw6hYIfErCZFee7qCtrneuLa20UXFCOTCfBM2cvQHjWJ2EG0s0MtdNwInarqCTz35i4wWXHsQ==}
+
+ '@emnapi/wasi-threads@1.1.0':
+ resolution: {integrity: sha512-WI0DdZ8xFSbgMjR1sFsKABJ/C5OnRrjT06JXbZKexJGrDuPTzZdDYfFlsgcCXCyf+suG5QU2e/y1Wo2V/OapLQ==}
+
+ '@esbuild/aix-ppc64@0.25.9':
+ resolution: {integrity: sha512-OaGtL73Jck6pBKjNIe24BnFE6agGl+6KxDtTfHhy1HmhthfKouEcOhqpSL64K4/0WCtbKFLOdzD/44cJ4k9opA==}
+ engines: {node: '>=18'}
+ cpu: [ppc64]
+ os: [aix]
+
+ '@esbuild/android-arm64@0.25.9':
+ resolution: {integrity: sha512-IDrddSmpSv51ftWslJMvl3Q2ZT98fUSL2/rlUXuVqRXHCs5EUF1/f+jbjF5+NG9UffUDMCiTyh8iec7u8RlTLg==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [android]
+
+ '@esbuild/android-arm@0.25.9':
+ resolution: {integrity: sha512-5WNI1DaMtxQ7t7B6xa572XMXpHAaI/9Hnhk8lcxF4zVN4xstUgTlvuGDorBguKEnZO70qwEcLpfifMLoxiPqHQ==}
+ engines: {node: '>=18'}
+ cpu: [arm]
+ os: [android]
+
+ '@esbuild/android-x64@0.25.9':
+ resolution: {integrity: sha512-I853iMZ1hWZdNllhVZKm34f4wErd4lMyeV7BLzEExGEIZYsOzqDWDf+y082izYUE8gtJnYHdeDpN/6tUdwvfiw==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [android]
+
+ '@esbuild/darwin-arm64@0.25.9':
+ resolution: {integrity: sha512-XIpIDMAjOELi/9PB30vEbVMs3GV1v2zkkPnuyRRURbhqjyzIINwj+nbQATh4H9GxUgH1kFsEyQMxwiLFKUS6Rg==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@esbuild/darwin-x64@0.25.9':
+ resolution: {integrity: sha512-jhHfBzjYTA1IQu8VyrjCX4ApJDnH+ez+IYVEoJHeqJm9VhG9Dh2BYaJritkYK3vMaXrf7Ogr/0MQ8/MeIefsPQ==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [darwin]
+
+ '@esbuild/freebsd-arm64@0.25.9':
+ resolution: {integrity: sha512-z93DmbnY6fX9+KdD4Ue/H6sYs+bhFQJNCPZsi4XWJoYblUqT06MQUdBCpcSfuiN72AbqeBFu5LVQTjfXDE2A6Q==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [freebsd]
+
+ '@esbuild/freebsd-x64@0.25.9':
+ resolution: {integrity: sha512-mrKX6H/vOyo5v71YfXWJxLVxgy1kyt1MQaD8wZJgJfG4gq4DpQGpgTB74e5yBeQdyMTbgxp0YtNj7NuHN0PoZg==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [freebsd]
+
+ '@esbuild/linux-arm64@0.25.9':
+ resolution: {integrity: sha512-BlB7bIcLT3G26urh5Dmse7fiLmLXnRlopw4s8DalgZ8ef79Jj4aUcYbk90g8iCa2467HX8SAIidbL7gsqXHdRw==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [linux]
+
+ '@esbuild/linux-arm@0.25.9':
+ resolution: {integrity: sha512-HBU2Xv78SMgaydBmdor38lg8YDnFKSARg1Q6AT0/y2ezUAKiZvc211RDFHlEZRFNRVhcMamiToo7bDx3VEOYQw==}
+ engines: {node: '>=18'}
+ cpu: [arm]
+ os: [linux]
+
+ '@esbuild/linux-ia32@0.25.9':
+ resolution: {integrity: sha512-e7S3MOJPZGp2QW6AK6+Ly81rC7oOSerQ+P8L0ta4FhVi+/j/v2yZzx5CqqDaWjtPFfYz21Vi1S0auHrap3Ma3A==}
+ engines: {node: '>=18'}
+ cpu: [ia32]
+ os: [linux]
+
+ '@esbuild/linux-loong64@0.25.9':
+ resolution: {integrity: sha512-Sbe10Bnn0oUAB2AalYztvGcK+o6YFFA/9829PhOCUS9vkJElXGdphz0A3DbMdP8gmKkqPmPcMJmJOrI3VYB1JQ==}
+ engines: {node: '>=18'}
+ cpu: [loong64]
+ os: [linux]
+
+ '@esbuild/linux-mips64el@0.25.9':
+ resolution: {integrity: sha512-YcM5br0mVyZw2jcQeLIkhWtKPeVfAerES5PvOzaDxVtIyZ2NUBZKNLjC5z3/fUlDgT6w89VsxP2qzNipOaaDyA==}
+ engines: {node: '>=18'}
+ cpu: [mips64el]
+ os: [linux]
+
+ '@esbuild/linux-ppc64@0.25.9':
+ resolution: {integrity: sha512-++0HQvasdo20JytyDpFvQtNrEsAgNG2CY1CLMwGXfFTKGBGQT3bOeLSYE2l1fYdvML5KUuwn9Z8L1EWe2tzs1w==}
+ engines: {node: '>=18'}
+ cpu: [ppc64]
+ os: [linux]
+
+ '@esbuild/linux-riscv64@0.25.9':
+ resolution: {integrity: sha512-uNIBa279Y3fkjV+2cUjx36xkx7eSjb8IvnL01eXUKXez/CBHNRw5ekCGMPM0BcmqBxBcdgUWuUXmVWwm4CH9kg==}
+ engines: {node: '>=18'}
+ cpu: [riscv64]
+ os: [linux]
+
+ '@esbuild/linux-s390x@0.25.9':
+ resolution: {integrity: sha512-Mfiphvp3MjC/lctb+7D287Xw1DGzqJPb/J2aHHcHxflUo+8tmN/6d4k6I2yFR7BVo5/g7x2Monq4+Yew0EHRIA==}
+ engines: {node: '>=18'}
+ cpu: [s390x]
+ os: [linux]
+
+ '@esbuild/linux-x64@0.25.9':
+ resolution: {integrity: sha512-iSwByxzRe48YVkmpbgoxVzn76BXjlYFXC7NvLYq+b+kDjyyk30J0JY47DIn8z1MO3K0oSl9fZoRmZPQI4Hklzg==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [linux]
+
+ '@esbuild/netbsd-arm64@0.25.9':
+ resolution: {integrity: sha512-9jNJl6FqaUG+COdQMjSCGW4QiMHH88xWbvZ+kRVblZsWrkXlABuGdFJ1E9L7HK+T0Yqd4akKNa/lO0+jDxQD4Q==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [netbsd]
+
+ '@esbuild/netbsd-x64@0.25.9':
+ resolution: {integrity: sha512-RLLdkflmqRG8KanPGOU7Rpg829ZHu8nFy5Pqdi9U01VYtG9Y0zOG6Vr2z4/S+/3zIyOxiK6cCeYNWOFR9QP87g==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [netbsd]
+
+ '@esbuild/openbsd-arm64@0.25.9':
+ resolution: {integrity: sha512-YaFBlPGeDasft5IIM+CQAhJAqS3St3nJzDEgsgFixcfZeyGPCd6eJBWzke5piZuZ7CtL656eOSYKk4Ls2C0FRQ==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [openbsd]
+
+ '@esbuild/openbsd-x64@0.25.9':
+ resolution: {integrity: sha512-1MkgTCuvMGWuqVtAvkpkXFmtL8XhWy+j4jaSO2wxfJtilVCi0ZE37b8uOdMItIHz4I6z1bWWtEX4CJwcKYLcuA==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [openbsd]
+
+ '@esbuild/openharmony-arm64@0.25.9':
+ resolution: {integrity: sha512-4Xd0xNiMVXKh6Fa7HEJQbrpP3m3DDn43jKxMjxLLRjWnRsfxjORYJlXPO4JNcXtOyfajXorRKY9NkOpTHptErg==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [openharmony]
+
+ '@esbuild/sunos-x64@0.25.9':
+ resolution: {integrity: sha512-WjH4s6hzo00nNezhp3wFIAfmGZ8U7KtrJNlFMRKxiI9mxEK1scOMAaa9i4crUtu+tBr+0IN6JCuAcSBJZfnphw==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [sunos]
+
+ '@esbuild/win32-arm64@0.25.9':
+ resolution: {integrity: sha512-mGFrVJHmZiRqmP8xFOc6b84/7xa5y5YvR1x8djzXpJBSv/UsNK6aqec+6JDjConTgvvQefdGhFDAs2DLAds6gQ==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [win32]
+
+ '@esbuild/win32-ia32@0.25.9':
+ resolution: {integrity: sha512-b33gLVU2k11nVx1OhX3C8QQP6UHQK4ZtN56oFWvVXvz2VkDoe6fbG8TOgHFxEvqeqohmRnIHe5A1+HADk4OQww==}
+ engines: {node: '>=18'}
+ cpu: [ia32]
+ os: [win32]
+
+ '@esbuild/win32-x64@0.25.9':
+ resolution: {integrity: sha512-PPOl1mi6lpLNQxnGoyAfschAodRFYXJ+9fs6WHXz7CSWKbOqiMZsubC+BQsVKuul+3vKLuwTHsS2c2y9EoKwxQ==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [win32]
+
'@eslint-community/eslint-utils@4.4.1':
resolution: {integrity: sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -246,6 +681,24 @@ packages:
'@floating-ui/utils@0.2.9':
resolution: {integrity: sha512-MDWhGtE+eHw5JW7lq4qhc5yRLS11ERl1c7Z6Xd0a58DozHES6EnNNwUWbMiG4J9Cgj053Bhk8zvlhFYKVhULwg==}
+ '@formatjs/ecma402-abstract@2.3.4':
+ resolution: {integrity: sha512-qrycXDeaORzIqNhBOx0btnhpD1c+/qFIHAN9znofuMJX6QBwtbrmlpWfD4oiUUD2vJUOIYFA/gYtg2KAMGG7sA==}
+
+ '@formatjs/fast-memoize@2.2.7':
+ resolution: {integrity: sha512-Yabmi9nSvyOMrlSeGGWDiH7rf3a7sIwplbvo/dlz9WCIjzIQAfy1RMf4S0X3yG724n5Ghu2GmEl5NJIV6O9sZQ==}
+
+ '@formatjs/icu-messageformat-parser@2.11.2':
+ resolution: {integrity: sha512-AfiMi5NOSo2TQImsYAg8UYddsNJ/vUEv/HaNqiFjnI3ZFfWihUtD5QtuX6kHl8+H+d3qvnE/3HZrfzgdWpsLNA==}
+
+ '@formatjs/icu-skeleton-parser@1.8.14':
+ resolution: {integrity: sha512-i4q4V4qslThK4Ig8SxyD76cp3+QJ3sAqr7f6q9VVfeGtxG9OhiAk3y9XF6Q41OymsKzsGQ6OQQoJNY4/lI8TcQ==}
+
+ '@formatjs/intl-localematcher@0.5.10':
+ resolution: {integrity: sha512-af3qATX+m4Rnd9+wHcjJ4w2ijq+rAVP3CCinJQvFv1kgSu1W6jypUmvleJxcewdxmutM8dmIRZFxO/IQBZmP2Q==}
+
+ '@formatjs/intl-localematcher@0.6.1':
+ resolution: {integrity: sha512-ePEgLgVCqi2BBFnTMWPfIghu6FkbZnnBVhO2sSxvLfrdFw7wCHAHiDoM2h4NRgjbaY7+B7HgOLZGkK187pZTZg==}
+
'@hookform/resolvers@4.1.2':
resolution: {integrity: sha512-wl6H9c9wLOZMJAqGLEVKzbCkxJuV+BYuLFZFCQtCwMe0b3qQk4kUBd/ZAj13SwcSqcx86rCgSCyngQfmA6DOWg==}
peerDependencies:
@@ -376,9 +829,159 @@ packages:
cpu: [x64]
os: [win32]
+ '@isaacs/cliui@8.0.2':
+ resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==}
+ engines: {node: '>=12'}
+
+ '@istanbuljs/load-nyc-config@1.1.0':
+ resolution: {integrity: sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==}
+ engines: {node: '>=8'}
+
+ '@istanbuljs/schema@0.1.3':
+ resolution: {integrity: sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==}
+ engines: {node: '>=8'}
+
+ '@jest/console@30.1.2':
+ resolution: {integrity: sha512-BGMAxj8VRmoD0MoA/jo9alMXSRoqW8KPeqOfEo1ncxnRLatTBCpRoOwlwlEMdudp68Q6WSGwYrrLtTGOh8fLzw==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ '@jest/core@30.1.2':
+ resolution: {integrity: sha512-iSLOojkYgM7Lw0FF5egecZh+CiLWe4xICM3WOMjFbewhbWn+ixEoPwY7oK9jSCnLLphMFAjussXp7CE3tHa5EA==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+ peerDependencies:
+ node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0
+ peerDependenciesMeta:
+ node-notifier:
+ optional: true
+
+ '@jest/diff-sequences@30.0.1':
+ resolution: {integrity: sha512-n5H8QLDJ47QqbCNn5SuFjCRDrOLEZ0h8vAHCK5RL9Ls7Xa8AQLa/YxAc9UjFqoEDM48muwtBGjtMY5cr0PLDCw==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ '@jest/environment-jsdom-abstract@30.1.2':
+ resolution: {integrity: sha512-u8kTh/ZBl97GOmnGJLYK/1GuwAruMC4hoP6xuk/kwltmVWsA9u/6fH1/CsPVGt2O+Wn2yEjs8n1B1zZJ62Cx0w==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+ peerDependencies:
+ canvas: ^3.0.0
+ jsdom: '*'
+ peerDependenciesMeta:
+ canvas:
+ optional: true
+
+ '@jest/environment@30.1.2':
+ resolution: {integrity: sha512-N8t1Ytw4/mr9uN28OnVf0SYE2dGhaIxOVYcwsf9IInBKjvofAjbFRvedvBBlyTYk2knbJTiEjEJ2PyyDIBnd9w==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ '@jest/expect-utils@30.1.2':
+ resolution: {integrity: sha512-HXy1qT/bfdjCv7iC336ExbqqYtZvljrV8odNdso7dWK9bSeHtLlvwWWC3YSybSPL03Gg5rug6WLCZAZFH72m0A==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ '@jest/expect@30.1.2':
+ resolution: {integrity: sha512-tyaIExOwQRCxPCGNC05lIjWJztDwk2gPDNSDGg1zitXJJ8dC3++G/CRjE5mb2wQsf89+lsgAgqxxNpDLiCViTA==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ '@jest/fake-timers@30.1.2':
+ resolution: {integrity: sha512-Beljfv9AYkr9K+ETX9tvV61rJTY706BhBUtiaepQHeEGfe0DbpvUA5Z3fomwc5Xkhns6NWrcFDZn+72fLieUnA==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ '@jest/get-type@30.1.0':
+ resolution: {integrity: sha512-eMbZE2hUnx1WV0pmURZY9XoXPkUYjpc55mb0CrhtdWLtzMQPFvu/rZkTLZFTsdaVQa+Tr4eWAteqcUzoawq/uA==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ '@jest/globals@30.1.2':
+ resolution: {integrity: sha512-teNTPZ8yZe3ahbYnvnVRDeOjr+3pu2uiAtNtrEsiMjVPPj+cXd5E/fr8BL7v/T7F31vYdEHrI5cC/2OoO/vM9A==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ '@jest/pattern@30.0.1':
+ resolution: {integrity: sha512-gWp7NfQW27LaBQz3TITS8L7ZCQ0TLvtmI//4OwlQRx4rnWxcPNIYjxZpDcN4+UlGxgm3jS5QPz8IPTCkb59wZA==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ '@jest/reporters@30.1.2':
+ resolution: {integrity: sha512-8Jd7y3DUFBn8dG/bNJ2blmaJmT2Up74WAXkUJsbL0OuEZHDRRMnS4JmRtLArW2d0H5k8RDdhNN7j70Ki16Zr5g==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+ peerDependencies:
+ node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0
+ peerDependenciesMeta:
+ node-notifier:
+ optional: true
+
+ '@jest/schemas@30.0.5':
+ resolution: {integrity: sha512-DmdYgtezMkh3cpU8/1uyXakv3tJRcmcXxBOcO0tbaozPwpmh4YMsnWrQm9ZmZMfa5ocbxzbFk6O4bDPEc/iAnA==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ '@jest/snapshot-utils@30.1.2':
+ resolution: {integrity: sha512-vHoMTpimcPSR7OxS2S0V1Cpg8eKDRxucHjoWl5u4RQcnxqQrV3avETiFpl8etn4dqxEGarBeHbIBety/f8mLXw==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ '@jest/source-map@30.0.1':
+ resolution: {integrity: sha512-MIRWMUUR3sdbP36oyNyhbThLHyJ2eEDClPCiHVbrYAe5g3CHRArIVpBw7cdSB5fr+ofSfIb2Tnsw8iEHL0PYQg==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ '@jest/test-result@30.1.2':
+ resolution: {integrity: sha512-mpKFr8DEpfG5aAfQYA5+3KneAsRBXhF7zwtwqT4UeYBckoOPD1MzVxU6gDHwx4gRB7I1MKL6owyJzr8QRq402Q==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ '@jest/test-sequencer@30.1.2':
+ resolution: {integrity: sha512-v3vawuj2LC0XjpzF4q0pI0ZlQvMBDNqfRZZ2yHqcsGt7JEYsDK2L1WwrybEGlnOaEvnDFML/Y9xWLiW47Dda8A==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ '@jest/transform@30.1.2':
+ resolution: {integrity: sha512-UYYFGifSgfjujf1Cbd3iU/IQoSd6uwsj8XHj5DSDf5ERDcWMdJOPTkHWXj4U+Z/uMagyOQZ6Vne8C4nRIrCxqA==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ '@jest/types@30.0.5':
+ resolution: {integrity: sha512-aREYa3aku9SSnea4aX6bhKn4bgv3AXkgijoQgbYV3yvbiGt6z+MQ85+6mIhx9DsKW2BuB/cLR/A+tcMThx+KLQ==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ '@jridgewell/gen-mapping@0.3.13':
+ resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==}
+
+ '@jridgewell/resolve-uri@3.1.2':
+ resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==}
+ engines: {node: '>=6.0.0'}
+
+ '@jridgewell/sourcemap-codec@1.5.5':
+ resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==}
+
+ '@jridgewell/trace-mapping@0.3.30':
+ resolution: {integrity: sha512-GQ7Nw5G2lTu/BtHTKfXhKHok2WGetd4XYcVKGx00SjAk8GMwgJM3zr6zORiPGuOE+/vkc90KtTosSSvaCjKb2Q==}
+
'@kayron013/lexorank@2.0.0':
resolution: {integrity: sha512-acQaZPjnsHnXm28i6YATdi/nZ3gs2c5ZFlkFhXcSw0CgDymF+U5v4SYcQT0/ryjBcEjKl1HQWpBLK+PtVOIAHA==}
+ '@msgpackr-extract/msgpackr-extract-darwin-arm64@3.0.3':
+ resolution: {integrity: sha512-QZHtlVgbAdy2zAqNA9Gu1UpIuI8Xvsd1v8ic6B2pZmeFnFcMWiPLfWXh7TVw4eGEZ/C9TH281KwhVoeQUKbyjw==}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@msgpackr-extract/msgpackr-extract-darwin-x64@3.0.3':
+ resolution: {integrity: sha512-mdzd3AVzYKuUmiWOQ8GNhl64/IoFGol569zNRdkLReh6LRLHOXxU4U8eq0JwaD8iFHdVGqSy4IjFL4reoWCDFw==}
+ cpu: [x64]
+ os: [darwin]
+
+ '@msgpackr-extract/msgpackr-extract-linux-arm64@3.0.3':
+ resolution: {integrity: sha512-YxQL+ax0XqBJDZiKimS2XQaf+2wDGVa1enVRGzEvLLVFeqa5kx2bWbtcSXgsxjQB7nRqqIGFIcLteF/sHeVtQg==}
+ cpu: [arm64]
+ os: [linux]
+
+ '@msgpackr-extract/msgpackr-extract-linux-arm@3.0.3':
+ resolution: {integrity: sha512-fg0uy/dG/nZEXfYilKoRe7yALaNmHoYeIoJuJ7KJ+YyU2bvY8vPv27f7UKhGRpY6euFYqEVhxCFZgAUNQBM3nw==}
+ cpu: [arm]
+ os: [linux]
+
+ '@msgpackr-extract/msgpackr-extract-linux-x64@3.0.3':
+ resolution: {integrity: sha512-cvwNfbP07pKUfq1uH+S6KJ7dT9K8WOE4ZiAcsrSes+UY55E/0jLYc+vq+DO7jlmqRb5zAggExKm0H7O/CBaesg==}
+ cpu: [x64]
+ os: [linux]
+
+ '@msgpackr-extract/msgpackr-extract-win32-x64@3.0.3':
+ resolution: {integrity: sha512-x0fWaQtYp4E6sktbsdAqnehxDgEc/VwM7uLsRCYWaiGu0ykYdZPiS8zCWdnjHwyiumousxfBm4SO31eXqwEZhQ==}
+ cpu: [x64]
+ os: [win32]
+
+ '@napi-rs/wasm-runtime@0.2.12':
+ resolution: {integrity: sha512-ZVWUcfwY4E/yPitQJl481FjFo3K22D6qF0DuFH6Y/nbnE11GY5uguDxZMGXPQ8WQ0128MXQD7TnfHyK4oWoIJQ==}
+
'@next/env@15.2.4':
resolution: {integrity: sha512-+SFtMgoiYP3WoSswuNmxJOCwi06TdWE733D+WPjpXIe4LXGULwEaofiiAy6kbS0+XjM5xF5n3lKuBwN2SnqD9g==}
@@ -433,6 +1036,10 @@ packages:
cpu: [x64]
os: [win32]
+ '@noble/hashes@1.8.0':
+ resolution: {integrity: sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==}
+ engines: {node: ^14.21.3 || >=16}
+
'@nodelib/fs.scandir@2.1.5':
resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==}
engines: {node: '>= 8'}
@@ -449,10 +1056,63 @@ packages:
resolution: {integrity: sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA==}
engines: {node: '>=12.4.0'}
+ '@opentelemetry/semantic-conventions@1.36.0':
+ resolution: {integrity: sha512-TtxJSRD8Ohxp6bKkhrm27JRHAxPczQA7idtcTOMYI+wQRRrfgqxHv1cFbCApcSnNjtXkmzFozn6jQtFrOmbjPQ==}
+ engines: {node: '>=14'}
+
+ '@panva/hkdf@1.2.1':
+ resolution: {integrity: sha512-6oclG6Y3PiDFcoyk8srjLfVKyMfVCKJ27JwNPViuXziFpmdz+MZnZN/aKY0JGXgYuO/VghU0jcOAZgWXZ1Dmrw==}
+
+ '@paralleldrive/cuid2@2.2.2':
+ resolution: {integrity: sha512-ZOBkgDwEdoYVlSeRbYYXs0S9MejQofiVYoTbKzy/6GQa39/q5tQU2IX46+shYnUkpEl3wc+J6wRlar7r2EK2xA==}
+
+ '@pkgjs/parseargs@0.11.0':
+ resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}
+ engines: {node: '>=14'}
+
'@pkgr/core@0.1.1':
resolution: {integrity: sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==}
engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0}
+ '@pkgr/core@0.2.9':
+ resolution: {integrity: sha512-QNqXyfVS2wm9hweSYD2O7F0G06uurj9kZ96TRQE5Y9hU7+tgdZwIkbAKc5Ocy1HxEY2kuDQa6cQ1WRs/O5LFKA==}
+ engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0}
+
+ '@playwright/test@1.55.0':
+ resolution: {integrity: sha512-04IXzPwHrW69XusN/SIdDdKZBzMfOT9UNT/YiJit/xpy2VuAoB8NHc8Aplb96zsWDddLnbkPL3TsmrS04ZU2xQ==}
+ engines: {node: '>=18'}
+ hasBin: true
+
+ '@prisma/client@6.15.0':
+ resolution: {integrity: sha512-wR2LXUbOH4cL/WToatI/Y2c7uzni76oNFND7+23ypLllBmIS8e3ZHhO+nud9iXSXKFt1SoM3fTZvHawg63emZw==}
+ engines: {node: '>=18.18'}
+ peerDependencies:
+ prisma: '*'
+ typescript: '>=5.1.0'
+ peerDependenciesMeta:
+ prisma:
+ optional: true
+ typescript:
+ optional: true
+
+ '@prisma/config@6.15.0':
+ resolution: {integrity: sha512-KMEoec9b2u6zX0EbSEx/dRpx1oNLjqJEBZYyK0S3TTIbZ7GEGoVyGyFRk4C72+A38cuPLbfQGQvgOD+gBErKlA==}
+
+ '@prisma/debug@6.15.0':
+ resolution: {integrity: sha512-y7cSeLuQmyt+A3hstAs6tsuAiVXSnw9T55ra77z0nbNkA8Lcq9rNcQg6PI00by/+WnE/aMRJ/W7sZWn2cgIy1g==}
+
+ '@prisma/engines-version@6.15.0-5.85179d7826409ee107a6ba334b5e305ae3fba9fb':
+ resolution: {integrity: sha512-a/46aK5j6L3ePwilZYEgYDPrhBQ/n4gYjLxT5YncUTJJNRnTCVjPF86QdzUOLRdYjCLfhtZp9aum90W0J+trrg==}
+
+ '@prisma/engines@6.15.0':
+ resolution: {integrity: sha512-opITiR5ddFJ1N2iqa7mkRlohCZqVSsHhRcc29QXeldMljOf4FSellLT0J5goVb64EzRTKcIDeIsJBgmilNcKxA==}
+
+ '@prisma/fetch-engine@6.15.0':
+ resolution: {integrity: sha512-xcT5f6b+OWBq6vTUnRCc7qL+Im570CtwvgSj+0MTSGA1o9UDSKZ/WANvwtiRXdbYWECpyC3CukoG3A04VTAPHw==}
+
+ '@prisma/get-platform@6.15.0':
+ resolution: {integrity: sha512-Jbb+Xbxyp05NSR1x2epabetHiXvpO8tdN2YNoWoA/ZsbYyxxu/CO/ROBauIFuMXs3Ti+W7N7SJtWsHGaWte9Rg==}
+
'@radix-ui/number@1.1.0':
resolution: {integrity: sha512-V3gRzhVNU1ldS5XhAPTom1fOIo4ccrjjJgmE+LI2h/WaFpHmx0MQApT+KZHnx8abG6Avtfcz4WoEciMnpFT3HQ==}
@@ -1365,6 +2025,24 @@ packages:
'@rushstack/eslint-patch@1.10.5':
resolution: {integrity: sha512-kkKUDVlII2DQiKy7UstOR1ErJP8kUKAQ4oa+SQtM0K+lPdmmjj0YnnxBgtTVYH7mUKtbsxeFC9y0AmK7Yb78/A==}
+ '@schummar/icu-type-parser@1.21.5':
+ resolution: {integrity: sha512-bXHSaW5jRTmke9Vd0h5P7BtWZG9Znqb8gSDxZnxaGSJnGwPLDPfS+3g0BKzeWqzgZPsIVZkM7m2tbo18cm5HBw==}
+
+ '@sinclair/typebox@0.34.41':
+ resolution: {integrity: sha512-6gS8pZzSXdyRHTIqoqSVknxolr1kzfy4/CeDnrzsVz8TTIWUbOBr6gnzOmTYJ3eXQNh4IYHIGi5aIL7sOZ2G/g==}
+
+ '@sinonjs/commons@3.0.1':
+ resolution: {integrity: sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==}
+
+ '@sinonjs/fake-timers@13.0.5':
+ resolution: {integrity: sha512-36/hTbH2uaWuGVERyC6da9YwGWnzUZXuPro/F2LfsdOsLnCojz/iSH8MxUt/FD2S5XBSVPhmArFUXcpCQ2Hkiw==}
+
+ '@standard-schema/spec@1.0.0':
+ resolution: {integrity: sha512-m2bOd0f2RT9k8QJx1JN85cZYyH1RqFBdlwtkSlf4tBDYLCiiZnv1fIIwacK6cqwXavOydf0NPToMQgpKq+dVlA==}
+
+ '@standard-schema/spec@1.0.0-beta.4':
+ resolution: {integrity: sha512-d3IxtzLo7P1oZ8s8YNvxzBUXRXojSut8pbPrTYtzsc5sn4+53jVqbk66pQerSZbZSJZQux6LkclB/+8IDordHg==}
+
'@standard-schema/utils@0.3.0':
resolution: {integrity: sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==}
@@ -1450,6 +2128,53 @@ packages:
'@tailwindcss/postcss@4.0.8':
resolution: {integrity: sha512-SUwlrXjn1ycmUbA0o0n3Y0LqlXqxN5R8HR+ti+OBbRS79wl2seDmiypEs3xJCuQXe07ol81s1AmRMitBmPveJA==}
+ '@testing-library/dom@10.4.1':
+ resolution: {integrity: sha512-o4PXJQidqJl82ckFaXUeoAW+XysPLauYI43Abki5hABd853iMhitooc6znOnczgbTYmEP6U6/y1ZyKAIsvMKGg==}
+ engines: {node: '>=18'}
+
+ '@testing-library/jest-dom@6.8.0':
+ resolution: {integrity: sha512-WgXcWzVM6idy5JaftTVC8Vs83NKRmGJz4Hqs4oyOuO2J4r/y79vvKZsb+CaGyCSEbUPI6OsewfPd0G1A0/TUZQ==}
+ engines: {node: '>=14', npm: '>=6', yarn: '>=1'}
+
+ '@testing-library/react@16.3.0':
+ resolution: {integrity: sha512-kFSyxiEDwv1WLl2fgsq6pPBbw5aWKrsY2/noi1Id0TK0UParSF62oFQFGHXIyaG4pp2tEub/Zlel+fjjZILDsw==}
+ 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
+
+ '@testing-library/user-event@14.6.1':
+ resolution: {integrity: sha512-vq7fv0rnt+QTXgPxr5Hjc210p6YKq2kmdziLgnsZGgLJ9e6VAShx1pACLuRjd/AS/sr7phAR58OIIpf0LlmQNw==}
+ engines: {node: '>=12', npm: '>=6'}
+ peerDependencies:
+ '@testing-library/dom': '>=7.21.4'
+
+ '@tybys/wasm-util@0.10.0':
+ resolution: {integrity: sha512-VyyPYFlOMNylG45GoAe0xDoLwWuowvf92F9kySqzYh8vmYm7D2u4iUJKa1tOUpS70Ku13ASrOkS4ScXFsTaCNQ==}
+
+ '@types/aria-query@5.0.4':
+ resolution: {integrity: sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==}
+
+ '@types/babel__core@7.20.5':
+ resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==}
+
+ '@types/babel__generator@7.27.0':
+ resolution: {integrity: sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==}
+
+ '@types/babel__template@7.4.4':
+ resolution: {integrity: sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==}
+
+ '@types/babel__traverse@7.28.0':
+ resolution: {integrity: sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==}
+
'@types/d3-array@3.2.1':
resolution: {integrity: sha512-Y2Jn2idRrLzUfAKV2LyRImR+y4oa2AntrgID95SHJxuMUrkNXmanDSed71sRNZysveJVt1hLLemQZIady0FpEg==}
@@ -1480,6 +2205,24 @@ packages:
'@types/estree@1.0.6':
resolution: {integrity: sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==}
+ '@types/formidable@3.4.5':
+ resolution: {integrity: sha512-s7YPsNVfnsng5L8sKnG/Gbb2tiwwJTY1conOkJzTMRvJAlLFW1nEua+ADsJQu8N1c0oTHx9+d5nqg10WuT9gHQ==}
+
+ '@types/istanbul-lib-coverage@2.0.6':
+ resolution: {integrity: sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==}
+
+ '@types/istanbul-lib-report@3.0.3':
+ resolution: {integrity: sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==}
+
+ '@types/istanbul-reports@3.0.4':
+ resolution: {integrity: sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==}
+
+ '@types/jest@30.0.0':
+ resolution: {integrity: sha512-XTYugzhuwqWjws0CVz8QpM36+T+Dz5mTEBKhNs/esGLnCIlGdRy+Dq78NRjd7ls7r8BC8ZRMOrKlkO1hU0JOwA==}
+
+ '@types/jsdom@21.1.7':
+ resolution: {integrity: sha512-yOriVnggzrnQ3a9OKOCxaVuSug3w3/SbOj5i7VwXWZEyUNl3bLF9V3MfxGbZKuwqJOQyRfqXyROBB1CoZLFWzA==}
+
'@types/json-schema@7.0.15':
resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==}
@@ -1497,6 +2240,18 @@ packages:
'@types/react@19.0.10':
resolution: {integrity: sha512-JuRQ9KXLEjaUNjTWpzuR231Z2WpIwczOkBEIvbHNCzQefFIT0L8IqE6NV6ULLyC1SI/i234JnDoMkfg+RjQj2g==}
+ '@types/stack-utils@2.0.3':
+ resolution: {integrity: sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==}
+
+ '@types/tough-cookie@4.0.5':
+ resolution: {integrity: sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==}
+
+ '@types/yargs-parser@21.0.3':
+ resolution: {integrity: sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==}
+
+ '@types/yargs@17.0.33':
+ resolution: {integrity: sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==}
+
'@typescript-eslint/eslint-plugin@8.25.0':
resolution: {integrity: sha512-VM7bpzAe7JO/BFf40pIT1lJqS/z1F8OaSsUB3rpFJucQA4cOSuH2RVVVkFULN+En0Djgr29/jb4EQnedUo95KA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
@@ -1544,6 +2299,110 @@ packages:
resolution: {integrity: sha512-kCYXKAum9CecGVHGij7muybDfTS2sD3t0L4bJsEZLkyrXUImiCTq1M3LG2SRtOhiHFwMR9wAFplpT6XHYjTkwQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ '@ungap/structured-clone@1.3.0':
+ resolution: {integrity: sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==}
+
+ '@unrs/resolver-binding-android-arm-eabi@1.11.1':
+ resolution: {integrity: sha512-ppLRUgHVaGRWUx0R0Ut06Mjo9gBaBkg3v/8AxusGLhsIotbBLuRk51rAzqLC8gq6NyyAojEXglNjzf6R948DNw==}
+ cpu: [arm]
+ os: [android]
+
+ '@unrs/resolver-binding-android-arm64@1.11.1':
+ resolution: {integrity: sha512-lCxkVtb4wp1v+EoN+HjIG9cIIzPkX5OtM03pQYkG+U5O/wL53LC4QbIeazgiKqluGeVEeBlZahHalCaBvU1a2g==}
+ cpu: [arm64]
+ os: [android]
+
+ '@unrs/resolver-binding-darwin-arm64@1.11.1':
+ resolution: {integrity: sha512-gPVA1UjRu1Y/IsB/dQEsp2V1pm44Of6+LWvbLc9SDk1c2KhhDRDBUkQCYVWe6f26uJb3fOK8saWMgtX8IrMk3g==}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@unrs/resolver-binding-darwin-x64@1.11.1':
+ resolution: {integrity: sha512-cFzP7rWKd3lZaCsDze07QX1SC24lO8mPty9vdP+YVa3MGdVgPmFc59317b2ioXtgCMKGiCLxJ4HQs62oz6GfRQ==}
+ cpu: [x64]
+ os: [darwin]
+
+ '@unrs/resolver-binding-freebsd-x64@1.11.1':
+ resolution: {integrity: sha512-fqtGgak3zX4DCB6PFpsH5+Kmt/8CIi4Bry4rb1ho6Av2QHTREM+47y282Uqiu3ZRF5IQioJQ5qWRV6jduA+iGw==}
+ cpu: [x64]
+ os: [freebsd]
+
+ '@unrs/resolver-binding-linux-arm-gnueabihf@1.11.1':
+ resolution: {integrity: sha512-u92mvlcYtp9MRKmP+ZvMmtPN34+/3lMHlyMj7wXJDeXxuM0Vgzz0+PPJNsro1m3IZPYChIkn944wW8TYgGKFHw==}
+ cpu: [arm]
+ os: [linux]
+
+ '@unrs/resolver-binding-linux-arm-musleabihf@1.11.1':
+ resolution: {integrity: sha512-cINaoY2z7LVCrfHkIcmvj7osTOtm6VVT16b5oQdS4beibX2SYBwgYLmqhBjA1t51CarSaBuX5YNsWLjsqfW5Cw==}
+ cpu: [arm]
+ os: [linux]
+
+ '@unrs/resolver-binding-linux-arm64-gnu@1.11.1':
+ resolution: {integrity: sha512-34gw7PjDGB9JgePJEmhEqBhWvCiiWCuXsL9hYphDF7crW7UgI05gyBAi6MF58uGcMOiOqSJ2ybEeCvHcq0BCmQ==}
+ cpu: [arm64]
+ os: [linux]
+
+ '@unrs/resolver-binding-linux-arm64-musl@1.11.1':
+ resolution: {integrity: sha512-RyMIx6Uf53hhOtJDIamSbTskA99sPHS96wxVE/bJtePJJtpdKGXO1wY90oRdXuYOGOTuqjT8ACccMc4K6QmT3w==}
+ cpu: [arm64]
+ os: [linux]
+
+ '@unrs/resolver-binding-linux-ppc64-gnu@1.11.1':
+ resolution: {integrity: sha512-D8Vae74A4/a+mZH0FbOkFJL9DSK2R6TFPC9M+jCWYia/q2einCubX10pecpDiTmkJVUH+y8K3BZClycD8nCShA==}
+ cpu: [ppc64]
+ os: [linux]
+
+ '@unrs/resolver-binding-linux-riscv64-gnu@1.11.1':
+ resolution: {integrity: sha512-frxL4OrzOWVVsOc96+V3aqTIQl1O2TjgExV4EKgRY09AJ9leZpEg8Ak9phadbuX0BA4k8U5qtvMSQQGGmaJqcQ==}
+ cpu: [riscv64]
+ os: [linux]
+
+ '@unrs/resolver-binding-linux-riscv64-musl@1.11.1':
+ resolution: {integrity: sha512-mJ5vuDaIZ+l/acv01sHoXfpnyrNKOk/3aDoEdLO/Xtn9HuZlDD6jKxHlkN8ZhWyLJsRBxfv9GYM2utQ1SChKew==}
+ cpu: [riscv64]
+ os: [linux]
+
+ '@unrs/resolver-binding-linux-s390x-gnu@1.11.1':
+ resolution: {integrity: sha512-kELo8ebBVtb9sA7rMe1Cph4QHreByhaZ2QEADd9NzIQsYNQpt9UkM9iqr2lhGr5afh885d/cB5QeTXSbZHTYPg==}
+ cpu: [s390x]
+ os: [linux]
+
+ '@unrs/resolver-binding-linux-x64-gnu@1.11.1':
+ resolution: {integrity: sha512-C3ZAHugKgovV5YvAMsxhq0gtXuwESUKc5MhEtjBpLoHPLYM+iuwSj3lflFwK3DPm68660rZ7G8BMcwSro7hD5w==}
+ cpu: [x64]
+ os: [linux]
+
+ '@unrs/resolver-binding-linux-x64-musl@1.11.1':
+ resolution: {integrity: sha512-rV0YSoyhK2nZ4vEswT/QwqzqQXw5I6CjoaYMOX0TqBlWhojUf8P94mvI7nuJTeaCkkds3QE4+zS8Ko+GdXuZtA==}
+ cpu: [x64]
+ os: [linux]
+
+ '@unrs/resolver-binding-wasm32-wasi@1.11.1':
+ resolution: {integrity: sha512-5u4RkfxJm+Ng7IWgkzi3qrFOvLvQYnPBmjmZQ8+szTK/b31fQCnleNl1GgEt7nIsZRIf5PLhPwT0WM+q45x/UQ==}
+ engines: {node: '>=14.0.0'}
+ cpu: [wasm32]
+
+ '@unrs/resolver-binding-win32-arm64-msvc@1.11.1':
+ resolution: {integrity: sha512-nRcz5Il4ln0kMhfL8S3hLkxI85BXs3o8EYoattsJNdsX4YUU89iOkVn7g0VHSRxFuVMdM4Q1jEpIId1Ihim/Uw==}
+ cpu: [arm64]
+ os: [win32]
+
+ '@unrs/resolver-binding-win32-ia32-msvc@1.11.1':
+ resolution: {integrity: sha512-DCEI6t5i1NmAZp6pFonpD5m7i6aFrpofcp4LA2i8IIq60Jyo28hamKBxNrZcyOwVOZkgsRp9O2sXWBWP8MnvIQ==}
+ cpu: [ia32]
+ os: [win32]
+
+ '@unrs/resolver-binding-win32-x64-msvc@1.11.1':
+ resolution: {integrity: sha512-lrW200hZdbfRtztbygyaq/6jP6AKE8qQN2KvPcJ+x7wiD038YtnYtZ82IMNJ69GJibV7bwL3y9FgK+5w/pYt6g==}
+ cpu: [x64]
+ os: [win32]
+
+ '@uploadthing/mime-types@0.3.6':
+ resolution: {integrity: sha512-t3tTzgwFV9+1D7lNDYc7Lr7kBwotHaX0ZsvoCGe7xGnXKo9z0jG2Sjl/msll12FeoLj77nyhsxevXyGpQDBvLg==}
+
+ '@uploadthing/shared@7.1.10':
+ resolution: {integrity: sha512-R/XSA3SfCVnLIzFpXyGaKPfbwlYlWYSTuGjTFHuJhdAomuBuhopAHLh2Ois5fJibAHzi02uP1QCKbgTAdmArqg==}
+
acorn-jsx@5.3.2:
resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}
peerDependencies:
@@ -1554,13 +2413,25 @@ packages:
engines: {node: '>=0.4.0'}
hasBin: true
+ agent-base@7.1.4:
+ resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==}
+ engines: {node: '>= 14'}
+
ajv@6.12.6:
resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==}
+ ansi-escapes@4.3.2:
+ resolution: {integrity: sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==}
+ engines: {node: '>=8'}
+
ansi-escapes@7.0.0:
resolution: {integrity: sha512-GdYO7a61mR0fOlAsvC9/rIHf7L96sBc6dEWzeOu+KAea5bZyQRPIpojrVoI4AXGJS/ycu/fBTdLrUkA4ODrvjw==}
engines: {node: '>=18'}
+ ansi-regex@5.0.1:
+ resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}
+ engines: {node: '>=8'}
+
ansi-regex@6.1.0:
resolution: {integrity: sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==}
engines: {node: '>=12'}
@@ -1569,10 +2440,21 @@ packages:
resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}
engines: {node: '>=8'}
+ ansi-styles@5.2.0:
+ resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==}
+ engines: {node: '>=10'}
+
ansi-styles@6.2.1:
resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==}
engines: {node: '>=12'}
+ anymatch@3.1.3:
+ resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==}
+ engines: {node: '>= 8'}
+
+ argparse@1.0.10:
+ resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==}
+
argparse@2.0.1:
resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}
@@ -1580,6 +2462,9 @@ packages:
resolution: {integrity: sha512-y+CcFFwelSXpLZk/7fMB2mUbGtX9lKycf1MWJ7CaTIERyitVlyQx6C+sxcROU2BAJ24OiZyK+8wj2i8AlBoS3A==}
engines: {node: '>=10'}
+ aria-query@5.3.0:
+ resolution: {integrity: sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==}
+
aria-query@5.3.2:
resolution: {integrity: sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==}
engines: {node: '>= 0.4'}
@@ -1616,6 +2501,9 @@ packages:
resolution: {integrity: sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==}
engines: {node: '>= 0.4'}
+ asap@2.0.6:
+ resolution: {integrity: sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==}
+
ast-types-flow@0.0.8:
resolution: {integrity: sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==}
@@ -1635,6 +2523,31 @@ packages:
resolution: {integrity: sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==}
engines: {node: '>= 0.4'}
+ babel-jest@30.1.2:
+ resolution: {integrity: sha512-IQCus1rt9kaSh7PQxLYRY5NmkNrNlU2TpabzwV7T2jljnpdHOcmnYYv8QmE04Li4S3a2Lj8/yXyET5pBarPr6g==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+ peerDependencies:
+ '@babel/core': ^7.11.0
+
+ babel-plugin-istanbul@7.0.0:
+ resolution: {integrity: sha512-C5OzENSx/A+gt7t4VH1I2XsflxyPUmXRFPKBxt33xncdOmq7oROVM3bZv9Ysjjkv8OJYDMa+tKuKMvqU/H3xdw==}
+ engines: {node: '>=12'}
+
+ babel-plugin-jest-hoist@30.0.1:
+ resolution: {integrity: sha512-zTPME3pI50NsFW8ZBaVIOeAxzEY7XHlmWeXXu9srI+9kNfzCUTy8MFan46xOGZY8NZThMqq+e3qZUKsvXbasnQ==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ babel-preset-current-node-syntax@1.2.0:
+ resolution: {integrity: sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==}
+ peerDependencies:
+ '@babel/core': ^7.0.0 || ^8.0.0-0
+
+ babel-preset-jest@30.0.1:
+ resolution: {integrity: sha512-+YHejD5iTWI46cZmcc/YtX4gaKBtdqCHCVfuVinizVpbmyjO3zYmeuyFdfA8duRqQZfgCAMlsfmkVbJ+e2MAJw==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+ peerDependencies:
+ '@babel/core': ^7.11.0
+
balanced-match@1.0.2:
resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
@@ -1648,10 +2561,29 @@ packages:
resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==}
engines: {node: '>=8'}
+ browserslist@4.25.4:
+ resolution: {integrity: sha512-4jYpcjabC606xJ3kw2QwGEZKX0Aw7sgQdZCvIK9dhVSPh76BKo+C+btT1RRofH7B+8iNpEbgGNVWiLki5q93yg==}
+ engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
+ hasBin: true
+
+ bser@2.1.1:
+ resolution: {integrity: sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==}
+
+ buffer-from@1.1.2:
+ resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==}
+
busboy@1.6.0:
resolution: {integrity: sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==}
engines: {node: '>=10.16.0'}
+ c12@3.1.0:
+ resolution: {integrity: sha512-uWoS8OU1MEIsOv8p/5a82c3H31LsWVR5qiyXVfBNOzfffjUWtPnhAb4BYI2uG2HfGmZmFjCtui5XNWaps+iFuw==}
+ peerDependencies:
+ magicast: ^0.3.5
+ peerDependenciesMeta:
+ magicast:
+ optional: true
+
call-bind-apply-helpers@1.0.2:
resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==}
engines: {node: '>= 0.4'}
@@ -1668,9 +2600,20 @@ packages:
resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}
engines: {node: '>=6'}
+ camelcase@5.3.1:
+ resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==}
+ engines: {node: '>=6'}
+
+ camelcase@6.3.0:
+ resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==}
+ engines: {node: '>=10'}
+
caniuse-lite@1.0.30001700:
resolution: {integrity: sha512-2S6XIXwaE7K7erT8dY+kLQcpa5ms63XlRkMkReXjle+kf6c5g38vyMl+Z5y8dSxOFDhcFe+nxnn261PLxBSQsQ==}
+ caniuse-lite@1.0.30001739:
+ resolution: {integrity: sha512-y+j60d6ulelrNSwpPyrHdl+9mJnQzHBr08xm48Qno0nSk4h3Qojh+ziv2qE6rXf4k3tadF4o1J/1tAbVm1NtnA==}
+
chalk@4.1.2:
resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==}
engines: {node: '>=10'}
@@ -1679,6 +2622,24 @@ packages:
resolution: {integrity: sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==}
engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}
+ char-regex@1.0.2:
+ resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==}
+ engines: {node: '>=10'}
+
+ chokidar@4.0.3:
+ resolution: {integrity: sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==}
+ engines: {node: '>= 14.16.0'}
+
+ ci-info@4.3.0:
+ resolution: {integrity: sha512-l+2bNRMiQgcfILUi33labAZYIWlH1kWDp+ecNo5iisRKrbm0xcRyCww71/YU0Fkw0mAFpz9bJayXPjey6vkmaQ==}
+ engines: {node: '>=8'}
+
+ citty@0.1.6:
+ resolution: {integrity: sha512-tskPPKEs8D2KPafUypv2gxwJP8h/OaJmC82QQGGDQcHvXX43xF2VDACcJVmZ0EuSxkpO9Kc4MlrA3q0+FG58AQ==}
+
+ cjs-module-lexer@2.1.0:
+ resolution: {integrity: sha512-UX0OwmYRYQQetfrLEZeewIFFI+wSTofC+pMBLNuH3RUuu/xzG1oz84UCEDOSoQlN3fZ4+AzmV50ZYvGqkMh9yA==}
+
class-variance-authority@0.7.1:
resolution: {integrity: sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==}
@@ -1693,6 +2654,10 @@ packages:
client-only@0.0.1:
resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==}
+ cliui@8.0.1:
+ resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==}
+ engines: {node: '>=12'}
+
clsx@2.1.1:
resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==}
engines: {node: '>=6'}
@@ -1703,6 +2668,13 @@ packages:
react: ^18.0.0
react-dom: ^18.0.0
+ co@4.6.0:
+ resolution: {integrity: sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==}
+ engines: {iojs: '>= 1.0.0', node: '>= 0.12.0'}
+
+ collect-v8-coverage@1.0.2:
+ resolution: {integrity: sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==}
+
color-convert@2.0.1:
resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}
engines: {node: '>=7.0.0'}
@@ -1727,10 +2699,27 @@ packages:
concat-map@0.0.1:
resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
+ confbox@0.2.2:
+ resolution: {integrity: sha512-1NB+BKqhtNipMsov4xI/NnhCKp9XG9NamYp5PVm9klAT0fsrNPjaFICsCFhNhwZJKNh7zB/3q8qXz0E9oaMNtQ==}
+
+ consola@3.4.2:
+ resolution: {integrity: sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==}
+ engines: {node: ^14.18.0 || >=16.10.0}
+
+ convert-source-map@2.0.0:
+ resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==}
+
cross-spawn@7.0.6:
resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==}
engines: {node: '>= 8'}
+ css.escape@1.5.1:
+ resolution: {integrity: sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==}
+
+ cssstyle@4.6.0:
+ resolution: {integrity: sha512-2z+rWdzbbSZv6/rhtvzvqeZQHrBaqgogqt85sqFNbabZOuFbCVFb8kPeEtZjiKkbrm395irpNKiYeFeLiQnFPg==}
+ engines: {node: '>=18'}
+
csstype@3.1.3:
resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==}
@@ -1781,6 +2770,10 @@ packages:
damerau-levenshtein@1.0.8:
resolution: {integrity: sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==}
+ data-urls@5.0.0:
+ resolution: {integrity: sha512-ZYP5VBHshaDAiVZxjbRVcFJpc+4xGgT0bK3vzy1HLN8jTO975HEbuYzZJcHoQEY5K1a0z8YayJkyVETa08eNTg==}
+ engines: {node: '>=18'}
+
data-view-buffer@1.0.2:
resolution: {integrity: sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==}
engines: {node: '>= 0.4'}
@@ -1816,9 +2809,28 @@ packages:
decimal.js-light@2.5.1:
resolution: {integrity: sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==}
+ decimal.js@10.6.0:
+ resolution: {integrity: sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==}
+
+ dedent@1.6.0:
+ resolution: {integrity: sha512-F1Z+5UCFpmQUzJa11agbyPVMbpgT/qA3/SKyJ1jyBgm7dUcUEa8v9JwDkerSQXfakBwFljIxhOJqGkjUwZ9FSA==}
+ peerDependencies:
+ babel-plugin-macros: ^3.1.0
+ peerDependenciesMeta:
+ babel-plugin-macros:
+ optional: true
+
deep-is@0.1.4:
resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}
+ deepmerge-ts@7.1.5:
+ resolution: {integrity: sha512-HOJkrhaYsweh+W+e74Yn7YStZOilkoPb6fycpwNLKzSPtruFs48nYis0zy5yJz1+ktUhHxoRDJ27RQAWLIJVJw==}
+ engines: {node: '>=16.0.0'}
+
+ deepmerge@4.3.1:
+ resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==}
+ engines: {node: '>=0.10.0'}
+
define-data-property@1.1.4:
resolution: {integrity: sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==}
engines: {node: '>= 0.4'}
@@ -1827,6 +2839,16 @@ packages:
resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==}
engines: {node: '>= 0.4'}
+ defu@6.1.4:
+ resolution: {integrity: sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==}
+
+ dequal@2.0.3:
+ resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==}
+ engines: {node: '>=6'}
+
+ destr@2.0.5:
+ resolution: {integrity: sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==}
+
detect-libc@1.0.3:
resolution: {integrity: sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==}
engines: {node: '>=0.10'}
@@ -1836,9 +2858,16 @@ packages:
resolution: {integrity: sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==}
engines: {node: '>=8'}
+ detect-newline@3.1.0:
+ resolution: {integrity: sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==}
+ engines: {node: '>=8'}
+
detect-node-es@1.1.0:
resolution: {integrity: sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==}
+ dezalgo@1.0.4:
+ resolution: {integrity: sha512-rXSP0bf+5n0Qonsb+SVVfNfIsimO4HEtmnIpPHY8Q1UCzKlQrDMfdobr8nJOOsRgWCyMRqeSBQzmWUMq7zvVig==}
+
dnd-core@16.0.1:
resolution: {integrity: sha512-HK294sl7tbw6F6IeuK16YSBUoorvHpY8RHO+9yFfaJyCDVb6n7PRcezrOEOa2SBCqiYpemh5Jx20ZcjKdFAVng==}
@@ -1846,27 +2875,67 @@ packages:
resolution: {integrity: sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==}
engines: {node: '>=0.10.0'}
+ dom-accessibility-api@0.5.16:
+ resolution: {integrity: sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==}
+
+ dom-accessibility-api@0.6.3:
+ resolution: {integrity: sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==}
+
dom-helpers@5.2.1:
resolution: {integrity: sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==}
+ dotenv@16.6.1:
+ resolution: {integrity: sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==}
+ engines: {node: '>=12'}
+
dunder-proto@1.0.1:
resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==}
engines: {node: '>= 0.4'}
+ eastasianwidth@0.2.0:
+ resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}
+
+ effect@3.16.12:
+ resolution: {integrity: sha512-N39iBk0K71F9nb442TLbTkjl24FLUzuvx2i1I2RsEAQsdAdUTuUoW0vlfUXgkMTUOnYqKnWcFfqw4hK4Pw27hg==}
+
+ effect@3.17.7:
+ resolution: {integrity: sha512-dpt0ONUn3zzAuul6k4nC/coTTw27AL5nhkORXgTi6NfMPzqWYa1M05oKmOMTxpVSTKepqXVcW9vIwkuaaqx9zA==}
+
+ electron-to-chromium@1.5.211:
+ resolution: {integrity: sha512-IGBvimJkotaLzFnwIVgW9/UD/AOJ2tByUmeOrtqBfACSbAw5b1G0XpvdaieKyc7ULmbwXVx+4e4Be8pOPBrYkw==}
+
+ emittery@0.13.1:
+ resolution: {integrity: sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==}
+ engines: {node: '>=12'}
+
emoji-regex@10.4.0:
resolution: {integrity: sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==}
+ emoji-regex@8.0.0:
+ resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
+
emoji-regex@9.2.2:
resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==}
+ empathic@2.0.0:
+ resolution: {integrity: sha512-i6UzDscO/XfAcNYD75CfICkmfLedpyPDdozrLMmQc5ORaQcdMoc21OnlEylMIqI7U8eniKrPMxxtj8k0vhmJhA==}
+ engines: {node: '>=14'}
+
enhanced-resolve@5.18.1:
resolution: {integrity: sha512-ZSW3ma5GkcQBIpwZTSRAI8N71Uuwgs93IezB7mf7R60tC8ZbJideoDNKjHn2O9KIlx6rkGTTEk1xUCK2E1Y2Yg==}
engines: {node: '>=10.13.0'}
+ entities@6.0.1:
+ resolution: {integrity: sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==}
+ engines: {node: '>=0.12'}
+
environment@1.1.0:
resolution: {integrity: sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==}
engines: {node: '>=18'}
+ error-ex@1.3.2:
+ resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==}
+
es-abstract@1.23.9:
resolution: {integrity: sha512-py07lI0wjxAC/DcfK1S6G7iANonniZwTISvdPzk9hzeH0IZIshbuuFxLIU96OyF89Yb9hiqWn8M/bY83KY5vzA==}
engines: {node: '>= 0.4'}
@@ -1899,6 +2968,19 @@ packages:
resolution: {integrity: sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==}
engines: {node: '>= 0.4'}
+ esbuild@0.25.9:
+ resolution: {integrity: sha512-CRbODhYyQx3qp7ZEwzxOk4JBqmD/seJrzPa/cGjY1VtIn5E09Oi9/dB4JwctnfZ8Q8iT7rioVv5k/FNT/uf54g==}
+ engines: {node: '>=18'}
+ hasBin: true
+
+ escalade@3.2.0:
+ resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==}
+ engines: {node: '>=6'}
+
+ escape-string-regexp@2.0.0:
+ resolution: {integrity: sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==}
+ engines: {node: '>=8'}
+
escape-string-regexp@4.0.0:
resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==}
engines: {node: '>=10'}
@@ -2023,6 +3105,11 @@ packages:
resolution: {integrity: sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ esprima@4.0.1:
+ resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==}
+ engines: {node: '>=4'}
+ hasBin: true
+
esquery@1.6.0:
resolution: {integrity: sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==}
engines: {node: '>=0.10'}
@@ -2045,10 +3132,29 @@ packages:
eventemitter3@5.0.1:
resolution: {integrity: sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==}
+ execa@5.1.1:
+ resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==}
+ engines: {node: '>=10'}
+
execa@8.0.1:
resolution: {integrity: sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==}
engines: {node: '>=16.17'}
+ exit-x@0.2.2:
+ resolution: {integrity: sha512-+I6B/IkJc1o/2tiURyz/ivu/O0nKNEArIUB5O7zBrlDVJr22SCLH3xTeEry428LvFhRzIA1g8izguxJ/gbNcVQ==}
+ engines: {node: '>= 0.8.0'}
+
+ expect@30.1.2:
+ resolution: {integrity: sha512-xvHszRavo28ejws8FpemjhwswGj4w/BetHIL8cU49u4sGyXDw2+p3YbeDbj6xzlxi6kWTjIRSTJ+9sNXPnF0Zg==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ exsolve@1.0.7:
+ resolution: {integrity: sha512-VO5fQUzZtI6C+vx4w/4BWJpg3s/5l+6pRQEHzFRM8WFi4XffSP1Z+4qi7GbjWbvRQEbdIco5mIMq+zX4rPuLrw==}
+
+ fast-check@3.23.2:
+ resolution: {integrity: sha512-h5+1OzzfCC3Ef7VbtKdcv7zsstUQwUDlYpUTvjeUsJAssPgLn7QzbboPtL5ro04Mq0rPOsMzl7q5hIbRs2wD1A==}
+ engines: {node: '>=8.0.0'}
+
fast-deep-equal@3.1.3:
resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}
@@ -2076,6 +3182,9 @@ packages:
fastq@1.19.0:
resolution: {integrity: sha512-7SFSRCNjBQIZH/xZR3iy5iQYR8aGBE0h3VG6/cwlbrpdciNYBMotQav8c1XI3HjHH+NikUpP53nPdlZSdWmFzA==}
+ fb-watchman@2.0.2:
+ resolution: {integrity: sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==}
+
fdir@6.4.3:
resolution: {integrity: sha512-PMXmW2y1hDDfTSRc9gaXIuCCRpuoz3Kaz8cUelp3smouvfT632ozg2vrT6lJsHKKOF59YLbOGfAWGUcKEfRMQw==}
peerDependencies:
@@ -2092,6 +3201,13 @@ packages:
resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==}
engines: {node: '>=8'}
+ find-my-way-ts@0.1.6:
+ resolution: {integrity: sha512-a85L9ZoXtNAey3Y6Z+eBWW658kO/MwR7zIafkIUPUMf3isZG0NCs2pjW2wtjxAKuJPxMAsHUIP4ZPGv0o5gyTA==}
+
+ find-up@4.1.0:
+ resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==}
+ engines: {node: '>=8'}
+
find-up@5.0.0:
resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==}
engines: {node: '>=10'}
@@ -2107,6 +3223,14 @@ packages:
resolution: {integrity: sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==}
engines: {node: '>= 0.4'}
+ foreground-child@3.3.1:
+ resolution: {integrity: sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==}
+ engines: {node: '>=14'}
+
+ formidable@3.5.4:
+ resolution: {integrity: sha512-YikH+7CUTOtP44ZTnUhR7Ic2UASBPOqmaRkRKxRbywPTe5VxF7RRCck4af9wutiZ/QKM5nME9Bie2fFaPz5Gug==}
+ engines: {node: '>=14.0.0'}
+
framer-motion@12.4.10:
resolution: {integrity: sha512-3Msuyjcr1Pb5hjkn4EJcRe1HumaveP0Gbv4DBMKTPKcV/1GSMkQXj+Uqgneys+9DPcZM18Hac9qY9iUEF5LZtg==}
peerDependencies:
@@ -2121,6 +3245,19 @@ packages:
react-dom:
optional: true
+ fs.realpath@1.0.0:
+ resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==}
+
+ fsevents@2.3.2:
+ resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==}
+ engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
+ os: [darwin]
+
+ fsevents@2.3.3:
+ resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}
+ engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
+ os: [darwin]
+
function-bind@1.1.2:
resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==}
@@ -2131,6 +3268,14 @@ packages:
functions-have-names@1.2.3:
resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==}
+ gensync@1.0.0-beta.2:
+ resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==}
+ engines: {node: '>=6.9.0'}
+
+ get-caller-file@2.0.5:
+ resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==}
+ engines: {node: 6.* || 8.* || >= 10.*}
+
get-east-asian-width@1.3.0:
resolution: {integrity: sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==}
engines: {node: '>=18'}
@@ -2143,10 +3288,18 @@ packages:
resolution: {integrity: sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==}
engines: {node: '>=6'}
+ get-package-type@0.1.0:
+ resolution: {integrity: sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==}
+ engines: {node: '>=8.0.0'}
+
get-proto@1.0.1:
resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==}
engines: {node: '>= 0.4'}
+ get-stream@6.0.1:
+ resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==}
+ engines: {node: '>=10'}
+
get-stream@8.0.1:
resolution: {integrity: sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==}
engines: {node: '>=16'}
@@ -2158,6 +3311,10 @@ packages:
get-tsconfig@4.10.0:
resolution: {integrity: sha512-kGzZ3LWWQcGIAmg6iWvXn0ei6WDtV26wzHRMwDSzmAbcXrTEXxHy6IehI6/4eT6VRKyMP1eF1VqwrVUmE/LR7A==}
+ giget@2.0.0:
+ resolution: {integrity: sha512-L5bGsVkxJbJgdnwyuheIunkGatUF/zssUoxxjACCseZYAVbaqdh9Tsmmlkl8vYan09H7sbvKt4pS8GqKLBrEzA==}
+ hasBin: true
+
glob-parent@5.1.2:
resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==}
engines: {node: '>= 6'}
@@ -2166,6 +3323,14 @@ packages:
resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==}
engines: {node: '>=10.13.0'}
+ glob@10.4.5:
+ resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==}
+ hasBin: true
+
+ glob@7.2.3:
+ resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==}
+ deprecated: Glob versions prior to v9 are no longer supported
+
globals@14.0.0:
resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==}
engines: {node: '>=18'}
@@ -2214,6 +3379,25 @@ packages:
hoist-non-react-statics@3.3.2:
resolution: {integrity: sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==}
+ html-encoding-sniffer@4.0.0:
+ resolution: {integrity: sha512-Y22oTqIU4uuPgEemfz7NDJz6OeKf12Lsu+QC+s3BVpda64lTiMYCyGwg5ki4vFxkMwQdeZDl2adZoqUgdFuTgQ==}
+ engines: {node: '>=18'}
+
+ html-escaper@2.0.2:
+ resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==}
+
+ http-proxy-agent@7.0.2:
+ resolution: {integrity: sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==}
+ engines: {node: '>= 14'}
+
+ https-proxy-agent@7.0.6:
+ resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==}
+ engines: {node: '>= 14'}
+
+ human-signals@2.1.0:
+ resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==}
+ engines: {node: '>=10.17.0'}
+
human-signals@5.0.0:
resolution: {integrity: sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==}
engines: {node: '>=16.17.0'}
@@ -2223,6 +3407,10 @@ packages:
engines: {node: '>=18'}
hasBin: true
+ iconv-lite@0.6.3:
+ resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==}
+ engines: {node: '>=0.10.0'}
+
ignore@5.3.2:
resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==}
engines: {node: '>= 4'}
@@ -2231,10 +3419,26 @@ packages:
resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==}
engines: {node: '>=6'}
+ import-local@3.2.0:
+ resolution: {integrity: sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==}
+ engines: {node: '>=8'}
+ hasBin: true
+
imurmurhash@0.1.4:
resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==}
engines: {node: '>=0.8.19'}
+ indent-string@4.0.0:
+ resolution: {integrity: sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==}
+ engines: {node: '>=8'}
+
+ inflight@1.0.6:
+ resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==}
+ deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
+
+ inherits@2.0.4:
+ resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}
+
internal-slot@1.1.0:
resolution: {integrity: sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==}
engines: {node: '>= 0.4'}
@@ -2243,10 +3447,16 @@ packages:
resolution: {integrity: sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==}
engines: {node: '>=12'}
+ intl-messageformat@10.7.16:
+ resolution: {integrity: sha512-UmdmHUmp5CIKKjSoE10la5yfU+AYJAaiYLsodbjL4lji83JNvgOQUjGaGhGrpFCb0Uh7sl7qfP1IyILa8Z40ug==}
+
is-array-buffer@3.0.5:
resolution: {integrity: sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==}
engines: {node: '>= 0.4'}
+ is-arrayish@0.2.1:
+ resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==}
+
is-arrayish@0.3.2:
resolution: {integrity: sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==}
@@ -2289,6 +3499,10 @@ packages:
resolution: {integrity: sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==}
engines: {node: '>= 0.4'}
+ is-fullwidth-code-point@3.0.0:
+ resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==}
+ engines: {node: '>=8'}
+
is-fullwidth-code-point@4.0.0:
resolution: {integrity: sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==}
engines: {node: '>=12'}
@@ -2297,6 +3511,10 @@ packages:
resolution: {integrity: sha512-OVa3u9kkBbw7b8Xw5F9P+D/T9X+Z4+JruYVNapTjPYZYUznQ5YfWeFkOj606XYYW8yugTfC8Pj0hYqvi4ryAhA==}
engines: {node: '>=18'}
+ is-generator-fn@2.1.0:
+ resolution: {integrity: sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==}
+ engines: {node: '>=6'}
+
is-generator-function@1.1.0:
resolution: {integrity: sha512-nPUB5km40q9e8UfN/Zc24eLlzdSf9OfKByBw9CIdw4H1giPMeA0OIJvbchsCu4npfI2QcMVBsGEBHKZ7wLTWmQ==}
engines: {node: '>= 0.4'}
@@ -2317,6 +3535,9 @@ packages:
resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}
engines: {node: '>=0.12.0'}
+ is-potential-custom-element-name@1.0.1:
+ resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==}
+
is-regex@1.2.1:
resolution: {integrity: sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==}
engines: {node: '>= 0.4'}
@@ -2329,6 +3550,10 @@ packages:
resolution: {integrity: sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==}
engines: {node: '>= 0.4'}
+ is-stream@2.0.1:
+ resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==}
+ engines: {node: '>=8'}
+
is-stream@3.0.0:
resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
@@ -2363,24 +3588,208 @@ packages:
isexe@2.0.0:
resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
+ istanbul-lib-coverage@3.2.2:
+ resolution: {integrity: sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==}
+ engines: {node: '>=8'}
+
+ istanbul-lib-instrument@6.0.3:
+ resolution: {integrity: sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==}
+ engines: {node: '>=10'}
+
+ istanbul-lib-report@3.0.1:
+ resolution: {integrity: sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==}
+ engines: {node: '>=10'}
+
+ istanbul-lib-source-maps@5.0.6:
+ resolution: {integrity: sha512-yg2d+Em4KizZC5niWhQaIomgf5WlL4vOOjZ5xGCmF8SnPE/mDWWXgvRExdcpCgh9lLRRa1/fSYp2ymmbJ1pI+A==}
+ engines: {node: '>=10'}
+
+ istanbul-reports@3.2.0:
+ resolution: {integrity: sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==}
+ engines: {node: '>=8'}
+
iterator.prototype@1.1.5:
resolution: {integrity: sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g==}
engines: {node: '>= 0.4'}
+ jackspeak@3.4.3:
+ resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==}
+
+ jest-changed-files@30.0.5:
+ resolution: {integrity: sha512-bGl2Ntdx0eAwXuGpdLdVYVr5YQHnSZlQ0y9HVDu565lCUAe9sj6JOtBbMmBBikGIegne9piDDIOeiLVoqTkz4A==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ jest-circus@30.1.2:
+ resolution: {integrity: sha512-pyqgRv00fPbU3QBjN9I5QRd77eCWA19NA7BLgI1veFvbUIFpeDCKbnG1oyRr6q5/jPEW2zDfqZ/r6fvfE85vrA==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ jest-cli@30.1.2:
+ resolution: {integrity: sha512-Q7H6GGo/0TBB8Mhm3Ab7KKJHn6GeMVff+/8PVCQ7vXXahvr5sRERnNbxuVJAMiVY2JQm5roA7CHYOYlH+gzmUg==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+ hasBin: true
+ peerDependencies:
+ node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0
+ peerDependenciesMeta:
+ node-notifier:
+ optional: true
+
+ jest-config@30.1.2:
+ resolution: {integrity: sha512-gCuBeE/cksjQ3e1a8H4YglZJuVPcnLZQK9jC70E6GbkHNQKPasnOO+r9IYdsUbAekb6c7eVRR8laGLMF06gMqg==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+ peerDependencies:
+ '@types/node': '*'
+ esbuild-register: '>=3.4.0'
+ ts-node: '>=9.0.0'
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+ esbuild-register:
+ optional: true
+ ts-node:
+ optional: true
+
+ jest-diff@30.1.2:
+ resolution: {integrity: sha512-4+prq+9J61mOVXCa4Qp8ZjavdxzrWQXrI80GNxP8f4tkI2syPuPrJgdRPZRrfUTRvIoUwcmNLbqEJy9W800+NQ==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ jest-docblock@30.0.1:
+ resolution: {integrity: sha512-/vF78qn3DYphAaIc3jy4gA7XSAz167n9Bm/wn/1XhTLW7tTBIzXtCJpb/vcmc73NIIeeohCbdL94JasyXUZsGA==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ jest-each@30.1.0:
+ resolution: {integrity: sha512-A+9FKzxPluqogNahpCv04UJvcZ9B3HamqpDNWNKDjtxVRYB8xbZLFuCr8JAJFpNp83CA0anGQFlpQna9Me+/tQ==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ jest-environment-jsdom@30.1.2:
+ resolution: {integrity: sha512-LXsfAh5+mDTuXDONGl1ZLYxtJEaS06GOoxJb2arcJTjIfh1adYg8zLD8f6P0df8VmjvCaMrLmc1PgHUI/YUTbg==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+ peerDependencies:
+ canvas: ^3.0.0
+ peerDependenciesMeta:
+ canvas:
+ optional: true
+
+ jest-environment-node@30.1.2:
+ resolution: {integrity: sha512-w8qBiXtqGWJ9xpJIA98M0EIoq079GOQRQUyse5qg1plShUCQ0Ek1VTTcczqKrn3f24TFAgFtT+4q3aOXvjbsuA==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ jest-haste-map@30.1.0:
+ resolution: {integrity: sha512-JLeM84kNjpRkggcGpQLsV7B8W4LNUWz7oDNVnY1Vjj22b5/fAb3kk3htiD+4Na8bmJmjJR7rBtS2Rmq/NEcADg==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ jest-leak-detector@30.1.0:
+ resolution: {integrity: sha512-AoFvJzwxK+4KohH60vRuHaqXfWmeBATFZpzpmzNmYTtmRMiyGPVhkXpBqxUQunw+dQB48bDf4NpUs6ivVbRv1g==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ jest-matcher-utils@30.1.2:
+ resolution: {integrity: sha512-7ai16hy4rSbDjvPTuUhuV8nyPBd6EX34HkBsBcBX2lENCuAQ0qKCPb/+lt8OSWUa9WWmGYLy41PrEzkwRwoGZQ==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ jest-message-util@30.1.0:
+ resolution: {integrity: sha512-HizKDGG98cYkWmaLUHChq4iN+oCENohQLb7Z5guBPumYs+/etonmNFlg1Ps6yN9LTPyZn+M+b/9BbnHx3WTMDg==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ jest-mock@30.0.5:
+ resolution: {integrity: sha512-Od7TyasAAQX/6S+QCbN6vZoWOMwlTtzzGuxJku1GhGanAjz9y+QsQkpScDmETvdc9aSXyJ/Op4rhpMYBWW91wQ==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ jest-pnp-resolver@1.2.3:
+ resolution: {integrity: sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==}
+ engines: {node: '>=6'}
+ peerDependencies:
+ jest-resolve: '*'
+ peerDependenciesMeta:
+ jest-resolve:
+ optional: true
+
+ jest-regex-util@30.0.1:
+ resolution: {integrity: sha512-jHEQgBXAgc+Gh4g0p3bCevgRCVRkB4VB70zhoAE48gxeSr1hfUOsM/C2WoJgVL7Eyg//hudYENbm3Ne+/dRVVA==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ jest-resolve-dependencies@30.1.2:
+ resolution: {integrity: sha512-HJjyoaedY4wrwda+eqvgjbwFykrAnQEmhuT0bMyOV3GQIyLPcunZcjfkm77Zr11ujwl34ySdc4qYnm7SG75TjA==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ jest-resolve@30.1.0:
+ resolution: {integrity: sha512-hASe7D/wRtZw8Cm607NrlF7fi3HWC5wmA5jCVc2QjQAB2pTwP9eVZILGEi6OeSLNUtE1zb04sXRowsdh5CUjwA==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ jest-runner@30.1.2:
+ resolution: {integrity: sha512-eu9AzpDY/QV+7NuMg6fZMpQ7M24cBkl5dyS1Xj7iwDPDriOmLUXR8rLojESibcIX+sCDTO4KvUeaxWCH1fbTvg==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ jest-runtime@30.1.2:
+ resolution: {integrity: sha512-zU02si+lAITgyRmVRgJn/AB4cnakq8+o7bP+5Z+N1A4r2mq40zGbmrg3UpYQWCkeim17tx8w1Tnmt6tQ6y9PGA==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ jest-snapshot@30.1.2:
+ resolution: {integrity: sha512-4q4+6+1c8B6Cy5pGgFvjDy/Pa6VYRiGu0yQafKkJ9u6wQx4G5PqI2QR6nxTl43yy7IWsINwz6oT4o6tD12a8Dg==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ jest-util@30.0.5:
+ resolution: {integrity: sha512-pvyPWssDZR0FlfMxCBoc0tvM8iUEskaRFALUtGQYzVEAqisAztmy+R8LnU14KT4XA0H/a5HMVTXat1jLne010g==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ jest-validate@30.1.0:
+ resolution: {integrity: sha512-7P3ZlCFW/vhfQ8pE7zW6Oi4EzvuB4sgR72Q1INfW9m0FGo0GADYlPwIkf4CyPq7wq85g+kPMtPOHNAdWHeBOaA==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ jest-watcher@30.1.2:
+ resolution: {integrity: sha512-MtoGuEgqsBM8Jkn52oEj+mXLtF94+njPlHI5ydfduZL5MHrTFr14ZG1CUX1xAbY23dbSZCCEkEPhBM3cQd12Jg==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ jest-worker@30.1.0:
+ resolution: {integrity: sha512-uvWcSjlwAAgIu133Tt77A05H7RIk3Ho8tZL50bQM2AkvLdluw9NG48lRCl3Dt+MOH719n/0nnb5YxUwcuJiKRA==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ jest@30.1.2:
+ resolution: {integrity: sha512-iLreJmUWdANLD2UIbebrXxQqU9jIxv2ahvrBNfff55deL9DtVxm8ZJBLk/kmn0AQ+FyCTrNSlGbMdTgSasldYA==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+ hasBin: true
+ peerDependencies:
+ node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0
+ peerDependenciesMeta:
+ node-notifier:
+ optional: true
+
jiti@2.4.2:
resolution: {integrity: sha512-rg9zJN+G4n2nfJl5MW3BMygZX56zKPNVEYYqq7adpmMh4Jn2QNEwhvQlFy6jPVdcod7txZtKHWnyZiA3a0zP7A==}
hasBin: true
+ jose@6.1.0:
+ resolution: {integrity: sha512-TTQJyoEoKcC1lscpVDCSsVgYzUDg/0Bt3WE//WiTPK6uOCQC2KZS4MpugbMWt/zyjkopgZoXhZuCi00gLudfUA==}
+
js-tokens@4.0.0:
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
+ js-yaml@3.14.1:
+ resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==}
+ hasBin: true
+
js-yaml@4.1.0:
resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==}
hasBin: true
+ jsdom@26.1.0:
+ resolution: {integrity: sha512-Cvc9WUhxSMEo4McES3P7oK3QaXldCfNWp7pl2NNeiIFlCoLr3kfq9kb1fxftiwk1FLV7CvpvDfonxtzUDeSOPg==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ canvas: ^3.0.0
+ peerDependenciesMeta:
+ canvas:
+ optional: true
+
+ jsesc@3.1.0:
+ resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==}
+ engines: {node: '>=6'}
+ hasBin: true
+
json-buffer@3.0.1:
resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==}
+ json-parse-even-better-errors@2.3.1:
+ resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==}
+
json-schema-traverse@0.4.1:
resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==}
@@ -2391,6 +3800,11 @@ packages:
resolution: {integrity: sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==}
hasBin: true
+ json5@2.2.3:
+ resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==}
+ engines: {node: '>=6'}
+ hasBin: true
+
jsx-ast-utils@3.3.5:
resolution: {integrity: sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==}
engines: {node: '>=4.0'}
@@ -2405,6 +3819,10 @@ packages:
resolution: {integrity: sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==}
engines: {node: '>=0.10'}
+ leven@3.1.0:
+ resolution: {integrity: sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==}
+ engines: {node: '>=6'}
+
levn@0.4.1:
resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==}
engines: {node: '>= 0.8.0'}
@@ -2477,6 +3895,9 @@ packages:
resolution: {integrity: sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==}
engines: {node: '>=14'}
+ lines-and-columns@1.2.4:
+ resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==}
+
lint-staged@15.4.3:
resolution: {integrity: sha512-FoH1vOeouNh1pw+90S+cnuoFwRfUD9ijY2GKy5h7HS3OR7JVir2N2xrsa0+Twc1B7cW72L+88geG5cW4wIhn7g==}
engines: {node: '>=18.12.0'}
@@ -2486,6 +3907,10 @@ packages:
resolution: {integrity: sha512-iyAZCeyD+c1gPyE9qpFu8af0Y+MRtmKOncdGoA2S5EY8iFq99dmmvkNnHiWo+pj0s7yH7l3KPIgee77tKpXPWQ==}
engines: {node: '>=18.0.0'}
+ locate-path@5.0.0:
+ resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==}
+ engines: {node: '>=8'}
+
locate-path@6.0.0:
resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==}
engines: {node: '>=10'}
@@ -2507,11 +3932,28 @@ packages:
resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==}
hasBin: true
+ lru-cache@10.4.3:
+ resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==}
+
+ lru-cache@5.1.1:
+ resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==}
+
lucide-react@0.476.0:
resolution: {integrity: sha512-x6cLTk8gahdUPje0hSgLN1/MgiJH+Xl90Xoxy9bkPAsMPOUiyRSKR4JCDPGVCEpyqnZXH3exFWNItcvra9WzUQ==}
peerDependencies:
react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0
+ lz-string@1.5.0:
+ resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==}
+ hasBin: true
+
+ make-dir@4.0.0:
+ resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==}
+ engines: {node: '>=10'}
+
+ makeerror@1.0.12:
+ resolution: {integrity: sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==}
+
math-intrinsics@1.1.0:
resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==}
engines: {node: '>= 0.4'}
@@ -2527,6 +3969,10 @@ packages:
resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==}
engines: {node: '>=8.6'}
+ mimic-fn@2.1.0:
+ resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==}
+ engines: {node: '>=6'}
+
mimic-fn@4.0.0:
resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==}
engines: {node: '>=12'}
@@ -2535,6 +3981,10 @@ packages:
resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==}
engines: {node: '>=18'}
+ min-indent@1.0.1:
+ resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==}
+ engines: {node: '>=4'}
+
minimatch@3.1.2:
resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==}
@@ -2545,6 +3995,10 @@ packages:
minimist@1.2.8:
resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==}
+ minipass@7.1.2:
+ resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==}
+ engines: {node: '>=16 || 14 >=14.17'}
+
motion-dom@12.4.10:
resolution: {integrity: sha512-ISP5u6FTceoD6qKdLupIPU/LyXBrxGox+P2e3mBbm1+pLdlBbwv01YENJr7+1WZnW5ucVKzFScYsV1eXTCG4Xg==}
@@ -2568,14 +4022,59 @@ packages:
ms@2.1.3:
resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
+ msgpackr-extract@3.0.3:
+ resolution: {integrity: sha512-P0efT1C9jIdVRefqjzOQ9Xml57zpOXnIuS+csaB4MdZbTdmGDLo8XhzBG1N7aO11gKDDkJvBLULeFTo46wwreA==}
+ hasBin: true
+
+ msgpackr@1.11.5:
+ resolution: {integrity: sha512-UjkUHN0yqp9RWKy0Lplhh+wlpdt9oQBYgULZOiFhV3VclSF1JnSQWZ5r9gORQlNYaUKQoR8itv7g7z1xDDuACA==}
+
+ multipasta@0.2.7:
+ resolution: {integrity: sha512-KPA58d68KgGil15oDqXjkUBEBYc00XvbPj5/X+dyzeo/lWm9Nc25pQRlf1D+gv4OpK7NM0J1odrbu9JNNGvynA==}
+
nanoid@3.3.8:
resolution: {integrity: sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==}
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
hasBin: true
+ napi-postinstall@0.3.3:
+ resolution: {integrity: sha512-uTp172LLXSxuSYHv/kou+f6KW3SMppU9ivthaVTXian9sOt3XM/zHYHpRZiLgQoxeWfYUnslNWQHF1+G71xcow==}
+ engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0}
+ hasBin: true
+
natural-compare@1.4.0:
resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==}
+ negotiator@1.0.0:
+ resolution: {integrity: sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==}
+ engines: {node: '>= 0.6'}
+
+ next-auth@5.0.0-beta.29:
+ resolution: {integrity: sha512-Ukpnuk3NMc/LiOl32njZPySk7pABEzbjhMUFd5/n10I0ZNC7NCuVv8IY2JgbDek2t/PUOifQEoUiOOTLy4os5A==}
+ peerDependencies:
+ '@simplewebauthn/browser': ^9.0.1
+ '@simplewebauthn/server': ^9.0.2
+ next: ^14.0.0-0 || ^15.0.0-0
+ nodemailer: ^6.6.5
+ react: ^18.2.0 || ^19.0.0-0
+ peerDependenciesMeta:
+ '@simplewebauthn/browser':
+ optional: true
+ '@simplewebauthn/server':
+ optional: true
+ nodemailer:
+ optional: true
+
+ next-intl@4.3.5:
+ resolution: {integrity: sha512-tT3SltfpPOCAQ9kVNr+8t6FUtVf8G0WFlJcVc8zj4WCMfuF8XFk4gZCN/MtjgDgkUISw5aKamOClJB4EsV95WQ==}
+ peerDependencies:
+ next: ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0 || ^19.0.0
+ typescript: ^5.0.0
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+
next-themes@0.4.4:
resolution: {integrity: sha512-LDQ2qIOJF0VnuVrrMSMLrWGjRMkq+0mpgl6e0juCLqdJ+oo8Q84JRWT6Wh11VDQKkMMe+dVzDKLWs5n87T+PkQ==}
peerDependencies:
@@ -2603,10 +4102,42 @@ packages:
sass:
optional: true
+ node-fetch-native@1.6.7:
+ resolution: {integrity: sha512-g9yhqoedzIUm0nTnTqAQvueMPVOuIY16bqgAJJC8XOOubYFNwz6IER9qs0Gq2Xd0+CecCKFjtdDTMA4u4xG06Q==}
+
+ node-gyp-build-optional-packages@5.2.2:
+ resolution: {integrity: sha512-s+w+rBWnpTMwSFbaE0UXsRlg7hU4FjekKU4eyAih5T8nJuNZT1nNsskXpxmeqSK9UzkBl6UgRlnKc8hz8IEqOw==}
+ hasBin: true
+
+ node-int64@0.4.0:
+ resolution: {integrity: sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==}
+
+ node-releases@2.0.19:
+ resolution: {integrity: sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==}
+
+ normalize-path@3.0.0:
+ resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}
+ engines: {node: '>=0.10.0'}
+
+ npm-run-path@4.0.1:
+ resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==}
+ engines: {node: '>=8'}
+
npm-run-path@5.3.0:
resolution: {integrity: sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
+ nwsapi@2.2.21:
+ resolution: {integrity: sha512-o6nIY3qwiSXl7/LuOU0Dmuctd34Yay0yeuZRLFmDPrrdHpXKFndPj3hM+YEPVHYC5fx2otBx4Ilc/gyYSAUaIA==}
+
+ nypm@0.6.1:
+ resolution: {integrity: sha512-hlacBiRiv1k9hZFiphPUkfSQ/ZfQzZDzC+8z0wL3lvDAOUu/2NnChkKuMoMjNur/9OpKuz2QsIeiPVN0xM5Q0w==}
+ engines: {node: ^14.16.0 || >=16.10.0}
+ hasBin: true
+
+ oauth4webapi@3.8.1:
+ resolution: {integrity: sha512-olkZDELNycOWQf9LrsELFq8n05LwJgV8UkrS0cburk6FOwf8GvLam+YB+Uj5Qvryee+vwWOfQVeI5Vm0MVg7SA==}
+
object-assign@4.1.1:
resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}
engines: {node: '>=0.10.0'}
@@ -2639,6 +4170,16 @@ packages:
resolution: {integrity: sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==}
engines: {node: '>= 0.4'}
+ ohash@2.0.11:
+ resolution: {integrity: sha512-RdR9FQrFwNBNXAr4GixM8YaRZRJ5PUWbKYbE5eOsrwAjJW0q2REGcf79oYPsLyskQCZG1PLN+S/K1V00joZAoQ==}
+
+ once@1.4.0:
+ resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}
+
+ onetime@5.1.2:
+ resolution: {integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==}
+ engines: {node: '>=6'}
+
onetime@6.0.0:
resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==}
engines: {node: '>=12'}
@@ -2647,6 +4188,18 @@ packages:
resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==}
engines: {node: '>=18'}
+ openai@5.16.0:
+ resolution: {integrity: sha512-hoEH8ZNvg1HXjU9mp88L/ZH8O082Z8r6FHCXGiWAzVRrEv443aI57qhch4snu07yQydj+AUAWLenAiBXhu89Tw==}
+ hasBin: true
+ peerDependencies:
+ ws: ^8.18.0
+ zod: ^3.23.8
+ peerDependenciesMeta:
+ ws:
+ optional: true
+ zod:
+ optional: true
+
optionator@0.9.4:
resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==}
engines: {node: '>= 0.8.0'}
@@ -2655,22 +4208,48 @@ packages:
resolution: {integrity: sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==}
engines: {node: '>= 0.4'}
+ p-limit@2.3.0:
+ resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==}
+ engines: {node: '>=6'}
+
p-limit@3.1.0:
resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==}
engines: {node: '>=10'}
+ p-locate@4.1.0:
+ resolution: {integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==}
+ engines: {node: '>=8'}
+
p-locate@5.0.0:
resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==}
engines: {node: '>=10'}
+ p-try@2.2.0:
+ resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==}
+ engines: {node: '>=6'}
+
+ package-json-from-dist@1.0.1:
+ resolution: {integrity: sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==}
+
parent-module@1.0.1:
resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==}
engines: {node: '>=6'}
+ parse-json@5.2.0:
+ resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==}
+ engines: {node: '>=8'}
+
+ parse5@7.3.0:
+ resolution: {integrity: sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==}
+
path-exists@4.0.0:
resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==}
engines: {node: '>=8'}
+ path-is-absolute@1.0.1:
+ resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==}
+ engines: {node: '>=0.10.0'}
+
path-key@3.1.1:
resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}
engines: {node: '>=8'}
@@ -2682,6 +4261,16 @@ packages:
path-parse@1.0.7:
resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==}
+ path-scurry@1.11.1:
+ resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==}
+ engines: {node: '>=16 || 14 >=14.18'}
+
+ pathe@2.0.3:
+ resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==}
+
+ perfect-debounce@1.0.0:
+ resolution: {integrity: sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==}
+
picocolors@1.1.1:
resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}
@@ -2698,6 +4287,27 @@ packages:
engines: {node: '>=0.10'}
hasBin: true
+ pirates@4.0.7:
+ resolution: {integrity: sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==}
+ engines: {node: '>= 6'}
+
+ pkg-dir@4.2.0:
+ resolution: {integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==}
+ engines: {node: '>=8'}
+
+ pkg-types@2.3.0:
+ resolution: {integrity: sha512-SIqCzDRg0s9npO5XQ3tNZioRY1uK06lA41ynBC1YmFTmnY6FjUjVt6s4LoADmwoig1qqD0oK8h1p/8mlMx8Oig==}
+
+ playwright-core@1.55.0:
+ resolution: {integrity: sha512-GvZs4vU3U5ro2nZpeiwyb0zuFaqb9sUiAJuyrWpcGouD8y9/HLgGbNRjIph7zU9D3hnPaisMl9zG9CgFi/biIg==}
+ engines: {node: '>=18'}
+ hasBin: true
+
+ playwright@1.55.0:
+ resolution: {integrity: sha512-sdCWStblvV1YU909Xqx0DhOjPZE4/5lJsIS84IfN9dAZfcl/CIZ5O8l3o0j7hPMjDvqoTF8ZUcc+i/GL5erstA==}
+ engines: {node: '>=18'}
+ hasBin: true
+
possible-typed-array-names@1.1.0:
resolution: {integrity: sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==}
engines: {node: '>= 0.4'}
@@ -2710,6 +4320,14 @@ packages:
resolution: {integrity: sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A==}
engines: {node: ^10 || ^12 || >=14}
+ preact-render-to-string@6.5.11:
+ resolution: {integrity: sha512-ubnauqoGczeGISiOh6RjX0/cdaF8v/oDXIjO85XALCQjwQP+SB4RDXXtvZ6yTYSjG+PC1QRP2AhPgCEsM2EvUw==}
+ peerDependencies:
+ preact: '>=10'
+
+ preact@10.24.3:
+ resolution: {integrity: sha512-Z2dPnBnMUfyQfSQ+GBdsGa16hz35YmLmtTLhM169uW944hYL6xzTYkJjC07j+Wosz733pMWx0fgON3JNw1jJQA==}
+
prelude-ls@1.2.1:
resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}
engines: {node: '>= 0.8.0'}
@@ -2723,6 +4341,24 @@ packages:
engines: {node: '>=14'}
hasBin: true
+ pretty-format@27.5.1:
+ resolution: {integrity: sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==}
+ engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}
+
+ pretty-format@30.0.5:
+ resolution: {integrity: sha512-D1tKtYvByrBkFLe2wHJl2bwMJIiT8rW+XA+TiataH79/FszLQMrpGEvzUVkzPau7OCO0Qnrhpe87PqtOAIB8Yw==}
+ engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}
+
+ prisma@6.15.0:
+ resolution: {integrity: sha512-E6RCgOt+kUVtjtZgLQDBJ6md2tDItLJNExwI0XJeBc1FKL+Vwb+ovxXxuok9r8oBgsOXBA33fGDuE/0qDdCWqQ==}
+ engines: {node: '>=18.18'}
+ hasBin: true
+ peerDependencies:
+ typescript: '>=5.1.0'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+
prop-types@15.8.1:
resolution: {integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==}
@@ -2730,9 +4366,18 @@ packages:
resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==}
engines: {node: '>=6'}
+ pure-rand@6.1.0:
+ resolution: {integrity: sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==}
+
+ pure-rand@7.0.1:
+ resolution: {integrity: sha512-oTUZM/NAZS8p7ANR3SHh30kXB+zK2r2BPcEn/awJIbOvq82WoMN4p62AWWp3Hhw50G0xMsw1mhIBLqHw64EcNQ==}
+
queue-microtask@1.2.3:
resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}
+ rc9@2.1.2:
+ resolution: {integrity: sha512-btXCnMmRIBINM2LDZoEmOogIZU7Qe7zn4BpomSKZ/ykbLObuBdvG+mFq11DL6fjH1DRwHhrlgtYWG96bJiC7Cg==}
+
react-day-picker@8.10.1:
resolution: {integrity: sha512-TMx7fNbhLk15eqcMt+7Z7S2KF7mfTId/XJDjKE8f+IUcFn0l08/kI4FiYTL/0yuOLmEcbR4Fwe3GJf/NiiMnPA==}
peerDependencies:
@@ -2776,6 +4421,9 @@ packages:
react-is@16.13.1:
resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==}
+ react-is@17.0.2:
+ resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==}
+
react-is@18.3.1:
resolution: {integrity: sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==}
@@ -2841,6 +4489,10 @@ packages:
resolution: {integrity: sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==}
engines: {node: '>=0.10.0'}
+ readdirp@4.1.2:
+ resolution: {integrity: sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==}
+ engines: {node: '>= 14.18.0'}
+
recharts-scale@0.4.5:
resolution: {integrity: sha512-kivNFO+0OcUNu7jQquLXAxz1FIwZj8nrj+YkOKc5694NbjCvcT6aSZiIzNzd2Kul4o4rTto8QVR9lMNtxD4G1w==}
@@ -2851,6 +4503,10 @@ packages:
react: ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
react-dom: ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
+ redent@3.0.0:
+ resolution: {integrity: sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==}
+ engines: {node: '>=8'}
+
redux@4.2.1:
resolution: {integrity: sha512-LAUYz4lc+Do8/g7aeRa8JkyDErK6ekstQaqWQrNRW//MY1TvCEpMtpTWvlQ+FPbWCx+Xixu/6SHt5N0HR+SB4w==}
@@ -2865,10 +4521,22 @@ packages:
resolution: {integrity: sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==}
engines: {node: '>= 0.4'}
+ require-directory@2.1.1:
+ resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==}
+ engines: {node: '>=0.10.0'}
+
+ resolve-cwd@3.0.0:
+ resolution: {integrity: sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==}
+ engines: {node: '>=8'}
+
resolve-from@4.0.0:
resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==}
engines: {node: '>=4'}
+ resolve-from@5.0.0:
+ resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==}
+ engines: {node: '>=8'}
+
resolve-pkg-maps@1.0.0:
resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==}
@@ -2892,6 +4560,9 @@ packages:
rfdc@1.4.1:
resolution: {integrity: sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==}
+ rrweb-cssom@0.8.0:
+ resolution: {integrity: sha512-guoltQEx+9aMf2gDZ0s62EcV8lsXR+0w8915TC3ITdn2YueuNjdAYh/levpU9nFaoChh9RUS5ZdQMrKfVEN9tw==}
+
run-parallel@1.2.0:
resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}
@@ -2907,6 +4578,13 @@ packages:
resolution: {integrity: sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==}
engines: {node: '>= 0.4'}
+ safer-buffer@2.1.2:
+ resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}
+
+ saxes@6.0.0:
+ resolution: {integrity: sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==}
+ engines: {node: '>=v12.22.7'}
+
scheduler@0.25.0:
resolution: {integrity: sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA==}
@@ -2919,6 +4597,11 @@ packages:
engines: {node: '>=10'}
hasBin: true
+ semver@7.7.2:
+ resolution: {integrity: sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==}
+ engines: {node: '>=10'}
+ hasBin: true
+
set-function-length@1.2.2:
resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==}
engines: {node: '>= 0.4'}
@@ -2959,6 +4642,9 @@ packages:
resolution: {integrity: sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==}
engines: {node: '>= 0.4'}
+ signal-exit@3.0.7:
+ resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}
+
signal-exit@4.1.0:
resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==}
engines: {node: '>=14'}
@@ -2966,6 +4652,10 @@ packages:
simple-swizzle@0.2.2:
resolution: {integrity: sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==}
+ slash@3.0.0:
+ resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==}
+ engines: {node: '>=8'}
+
slice-ansi@5.0.0:
resolution: {integrity: sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==}
engines: {node: '>=12'}
@@ -2984,9 +4674,26 @@ packages:
resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}
engines: {node: '>=0.10.0'}
+ source-map-support@0.5.13:
+ resolution: {integrity: sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==}
+
+ source-map@0.6.1:
+ resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}
+ engines: {node: '>=0.10.0'}
+
+ sprintf-js@1.0.3:
+ resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==}
+
+ sqids@0.3.0:
+ resolution: {integrity: sha512-lOQK1ucVg+W6n3FhRwwSeUijxe93b51Bfz5PMRMihVf1iVkl82ePQG7V5vwrhzB11v0NtsR25PSZRGiSomJaJw==}
+
stable-hash@0.0.4:
resolution: {integrity: sha512-LjdcbuBeLcdETCrPn9i8AYAZ1eCtu4ECAWtP7UleOiZ9LzVxRzzUZEoZ8zB24nhkQnDWyET0I+3sWokSDS3E7g==}
+ stack-utils@2.0.6:
+ resolution: {integrity: sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==}
+ engines: {node: '>=10'}
+
streamsearch@1.1.0:
resolution: {integrity: sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==}
engines: {node: '>=10.0.0'}
@@ -2995,6 +4702,18 @@ packages:
resolution: {integrity: sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==}
engines: {node: '>=0.6.19'}
+ string-length@4.0.2:
+ resolution: {integrity: sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==}
+ engines: {node: '>=10'}
+
+ string-width@4.2.3:
+ resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==}
+ engines: {node: '>=8'}
+
+ string-width@5.1.2:
+ resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==}
+ engines: {node: '>=12'}
+
string-width@7.2.0:
resolution: {integrity: sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==}
engines: {node: '>=18'}
@@ -3022,6 +4741,10 @@ packages:
resolution: {integrity: sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==}
engines: {node: '>= 0.4'}
+ strip-ansi@6.0.1:
+ resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==}
+ engines: {node: '>=8'}
+
strip-ansi@7.1.0:
resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==}
engines: {node: '>=12'}
@@ -3030,10 +4753,22 @@ packages:
resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==}
engines: {node: '>=4'}
+ strip-bom@4.0.0:
+ resolution: {integrity: sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==}
+ engines: {node: '>=8'}
+
+ strip-final-newline@2.0.0:
+ resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==}
+ engines: {node: '>=6'}
+
strip-final-newline@3.0.0:
resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==}
engines: {node: '>=12'}
+ strip-indent@3.0.0:
+ resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==}
+ engines: {node: '>=8'}
+
strip-json-comments@3.1.1:
resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}
engines: {node: '>=8'}
@@ -3055,10 +4790,21 @@ packages:
resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==}
engines: {node: '>=8'}
+ supports-color@8.1.1:
+ resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==}
+ engines: {node: '>=10'}
+
supports-preserve-symlinks-flag@1.0.0:
resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}
engines: {node: '>= 0.4'}
+ symbol-tree@3.2.4:
+ resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==}
+
+ synckit@0.11.11:
+ resolution: {integrity: sha512-MeQTA1r0litLUf0Rp/iisCaL8761lKAZHaimlbGK4j0HysC4PLfqygQj9srcs0m2RdtDYnF8UuYyKpbjHYp7Jw==}
+ engines: {node: ^14.18.0 || >=16.0.0}
+
synckit@0.9.2:
resolution: {integrity: sha512-vrozgXDQwYO72vHjUb/HnFbQx1exDjoKzqx23aXEg2a9VIg2TSFZ8FmeZpTjUCFMYw7mpX4BE2SFu8wI7asYsw==}
engines: {node: ^14.18.0 || >=16.0.0}
@@ -3078,17 +4824,42 @@ packages:
resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==}
engines: {node: '>=6'}
+ test-exclude@6.0.0:
+ resolution: {integrity: sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==}
+ engines: {node: '>=8'}
+
tiny-invariant@1.3.3:
resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==}
+ tinyexec@1.0.1:
+ resolution: {integrity: sha512-5uC6DDlmeqiOwCPmK9jMSdOuZTh8bU39Ys6yidB+UTt5hfZUPGAypSgFRiEp+jbi9qH40BLDvy85jIU88wKSqw==}
+
tinyglobby@0.2.12:
resolution: {integrity: sha512-qkf4trmKSIiMTs/E63cxH+ojC2unam7rJ0WrauAzpT3ECNTxGRMlaXxVbfxMUC/w0LaYk6jQ4y/nGR9uBO3tww==}
engines: {node: '>=12.0.0'}
+ tldts-core@6.1.86:
+ resolution: {integrity: sha512-Je6p7pkk+KMzMv2XXKmAE3McmolOQFdxkKw0R8EYNr7sELW46JqnNeTX8ybPiQgvg1ymCoF8LXs5fzFaZvJPTA==}
+
+ tldts@6.1.86:
+ resolution: {integrity: sha512-WMi/OQ2axVTf/ykqCQgXiIct+mSQDFdH2fkwhPwgEwvJ1kSzZRiinb0zF2Xb8u4+OqPChmyI6MEu4EezNJz+FQ==}
+ hasBin: true
+
+ tmpl@1.0.5:
+ resolution: {integrity: sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==}
+
to-regex-range@5.0.1:
resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}
engines: {node: '>=8.0'}
+ tough-cookie@5.1.2:
+ resolution: {integrity: sha512-FVDYdxtnj0G6Qm/DhNPSb8Ju59ULcup3tuJxkFb5K8Bv2pUXILbf0xZWU8PX8Ov19OXljbUyveOFwRMwkXzO+A==}
+ engines: {node: '>=16'}
+
+ tr46@5.1.1:
+ resolution: {integrity: sha512-hdF5ZgjTqgAntKkklYw0R03MG2x/bSzTtkxmIRw/sTNV8YXsCJ1tfLAX23lhxhHJlEf3CRCOCGGWw3vI3GaSPw==}
+ engines: {node: '>=18'}
+
ts-api-utils@2.0.1:
resolution: {integrity: sha512-dnlgjFSVetynI8nzgJ+qF62efpglpWRk8isUEWZGWlJYySCTD6aKvbUDu+zbPeDakk3bg5H4XpitHukgfL1m9w==}
engines: {node: '>=18.12'}
@@ -3101,10 +4872,23 @@ packages:
tslib@2.8.1:
resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}
+ tsx@4.20.5:
+ resolution: {integrity: sha512-+wKjMNU9w/EaQayHXb7WA7ZaHY6hN8WgfvHNQ3t1PnU91/7O8TcTnIhCDYTZwnt8JsO9IBqZ30Ln1r7pPF52Aw==}
+ engines: {node: '>=18.0.0'}
+ hasBin: true
+
type-check@0.4.0:
resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==}
engines: {node: '>= 0.8.0'}
+ type-detect@4.0.8:
+ resolution: {integrity: sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==}
+ engines: {node: '>=4'}
+
+ type-fest@0.21.3:
+ resolution: {integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==}
+ engines: {node: '>=10'}
+
typed-array-buffer@1.0.3:
resolution: {integrity: sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==}
engines: {node: '>= 0.4'}
@@ -3133,6 +4917,36 @@ packages:
undici-types@6.19.8:
resolution: {integrity: sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==}
+ unrs-resolver@1.11.1:
+ resolution: {integrity: sha512-bSjt9pjaEBnNiGgc9rUiHGKv5l4/TGzDmYw3RhnkJGtLhbnnA/5qJj7x3dNDCRx/PJxu774LlH8lCOlB4hEfKg==}
+
+ update-browserslist-db@1.1.3:
+ resolution: {integrity: sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==}
+ hasBin: true
+ peerDependencies:
+ browserslist: '>= 4.21.0'
+
+ uploadthing@7.7.4:
+ resolution: {integrity: sha512-rlK/4JWHW5jP30syzWGBFDDXv3WJDdT8gn9OoxRJmXLoXi94hBmyyjxihGlNrKhBc81czyv8TkzMioe/OuKGfA==}
+ engines: {node: '>=18.13.0'}
+ peerDependencies:
+ express: '*'
+ fastify: '*'
+ h3: '*'
+ next: '*'
+ tailwindcss: ^3.0.0 || ^4.0.0-beta.0
+ peerDependenciesMeta:
+ express:
+ optional: true
+ fastify:
+ optional: true
+ h3:
+ optional: true
+ next:
+ optional: true
+ tailwindcss:
+ optional: true
+
uri-js@4.4.1:
resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==}
@@ -3146,6 +4960,11 @@ packages:
'@types/react':
optional: true
+ use-intl@4.3.5:
+ resolution: {integrity: sha512-qyL1TZNesVbzj/75ZbYsi+xzNSiFqp5rIVsiAN0JT8rPMSjX0/3KQz76aJIrngI1/wIQdVYFVdImWh5yAv+dWA==}
+ peerDependencies:
+ react: ^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0 || ^19.0.0
+
use-sidecar@1.1.3:
resolution: {integrity: sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==}
engines: {node: '>=10'}
@@ -3166,9 +4985,36 @@ packages:
resolution: {integrity: sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==}
hasBin: true
+ v8-to-istanbul@9.3.0:
+ resolution: {integrity: sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==}
+ engines: {node: '>=10.12.0'}
+
victory-vendor@36.9.2:
resolution: {integrity: sha512-PnpQQMuxlwYdocC8fIJqVXvkeViHYzotI+NJrCuav0ZYFoq912ZHBk3mCeuj+5/VpodOjPe1z0Fk2ihgzlXqjQ==}
+ w3c-xmlserializer@5.0.0:
+ resolution: {integrity: sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==}
+ engines: {node: '>=18'}
+
+ walker@1.0.8:
+ resolution: {integrity: sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==}
+
+ webidl-conversions@7.0.0:
+ resolution: {integrity: sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==}
+ engines: {node: '>=12'}
+
+ whatwg-encoding@3.1.1:
+ resolution: {integrity: sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==}
+ engines: {node: '>=18'}
+
+ whatwg-mimetype@4.0.0:
+ resolution: {integrity: sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==}
+ engines: {node: '>=18'}
+
+ whatwg-url@14.2.0:
+ resolution: {integrity: sha512-De72GdQZzNTUBBChsXueQUnPKDkg/5A5zp7pFDuQAj5UFoENpiACU0wlCvzpAGnTkj++ihpKwKyYewn/XNUbKw==}
+ engines: {node: '>=18'}
+
which-boxed-primitive@1.1.1:
resolution: {integrity: sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==}
engines: {node: '>= 0.4'}
@@ -3194,15 +5040,64 @@ packages:
resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==}
engines: {node: '>=0.10.0'}
+ wrap-ansi@7.0.0:
+ resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==}
+ engines: {node: '>=10'}
+
+ wrap-ansi@8.1.0:
+ resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==}
+ engines: {node: '>=12'}
+
wrap-ansi@9.0.0:
resolution: {integrity: sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q==}
engines: {node: '>=18'}
+ wrappy@1.0.2:
+ resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
+
+ write-file-atomic@5.0.1:
+ resolution: {integrity: sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw==}
+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
+
+ ws@8.18.3:
+ resolution: {integrity: sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==}
+ engines: {node: '>=10.0.0'}
+ peerDependencies:
+ bufferutil: ^4.0.1
+ utf-8-validate: '>=5.0.2'
+ peerDependenciesMeta:
+ bufferutil:
+ optional: true
+ utf-8-validate:
+ optional: true
+
+ xml-name-validator@5.0.0:
+ resolution: {integrity: sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==}
+ engines: {node: '>=18'}
+
+ xmlchars@2.2.0:
+ resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==}
+
+ y18n@5.0.8:
+ resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==}
+ engines: {node: '>=10'}
+
+ yallist@3.1.1:
+ resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==}
+
yaml@2.7.0:
resolution: {integrity: sha512-+hSoy/QHluxmC9kCIJyL/uyFmLmc+e5CFR5Wa+bpIhIj85LVb9ZH2nVnqrHoSvKogwODv0ClqZkmiSSaIH5LTA==}
engines: {node: '>= 14'}
hasBin: true
+ yargs-parser@21.1.1:
+ resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==}
+ engines: {node: '>=12'}
+
+ yargs@17.7.2:
+ resolution: {integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==}
+ engines: {node: '>=12'}
+
yocto-queue@0.1.0:
resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}
engines: {node: '>=10'}
@@ -3230,17 +5125,351 @@ packages:
snapshots:
+ '@adobe/css-tools@4.4.4': {}
+
'@alloc/quick-lru@5.2.0': {}
+ '@ampproject/remapping@2.3.0':
+ dependencies:
+ '@jridgewell/gen-mapping': 0.3.13
+ '@jridgewell/trace-mapping': 0.3.30
+
+ '@asamuzakjp/css-color@3.2.0':
+ dependencies:
+ '@csstools/css-calc': 2.1.4(@csstools/css-parser-algorithms@3.0.5(@csstools/css-tokenizer@3.0.4))(@csstools/css-tokenizer@3.0.4)
+ '@csstools/css-color-parser': 3.1.0(@csstools/css-parser-algorithms@3.0.5(@csstools/css-tokenizer@3.0.4))(@csstools/css-tokenizer@3.0.4)
+ '@csstools/css-parser-algorithms': 3.0.5(@csstools/css-tokenizer@3.0.4)
+ '@csstools/css-tokenizer': 3.0.4
+ lru-cache: 10.4.3
+
+ '@auth/core@0.40.0':
+ dependencies:
+ '@panva/hkdf': 1.2.1
+ jose: 6.1.0
+ oauth4webapi: 3.8.1
+ preact: 10.24.3
+ preact-render-to-string: 6.5.11(preact@10.24.3)
+
+ '@babel/code-frame@7.27.1':
+ dependencies:
+ '@babel/helper-validator-identifier': 7.27.1
+ js-tokens: 4.0.0
+ picocolors: 1.1.1
+
+ '@babel/compat-data@7.28.0': {}
+
+ '@babel/core@7.28.3':
+ dependencies:
+ '@ampproject/remapping': 2.3.0
+ '@babel/code-frame': 7.27.1
+ '@babel/generator': 7.28.3
+ '@babel/helper-compilation-targets': 7.27.2
+ '@babel/helper-module-transforms': 7.28.3(@babel/core@7.28.3)
+ '@babel/helpers': 7.28.3
+ '@babel/parser': 7.28.3
+ '@babel/template': 7.27.2
+ '@babel/traverse': 7.28.3
+ '@babel/types': 7.28.2
+ convert-source-map: 2.0.0
+ debug: 4.4.0
+ gensync: 1.0.0-beta.2
+ json5: 2.2.3
+ semver: 6.3.1
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/generator@7.28.3':
+ dependencies:
+ '@babel/parser': 7.28.3
+ '@babel/types': 7.28.2
+ '@jridgewell/gen-mapping': 0.3.13
+ '@jridgewell/trace-mapping': 0.3.30
+ jsesc: 3.1.0
+
+ '@babel/helper-compilation-targets@7.27.2':
+ dependencies:
+ '@babel/compat-data': 7.28.0
+ '@babel/helper-validator-option': 7.27.1
+ browserslist: 4.25.4
+ lru-cache: 5.1.1
+ semver: 6.3.1
+
+ '@babel/helper-globals@7.28.0': {}
+
+ '@babel/helper-module-imports@7.27.1':
+ dependencies:
+ '@babel/traverse': 7.28.3
+ '@babel/types': 7.28.2
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/helper-module-transforms@7.28.3(@babel/core@7.28.3)':
+ dependencies:
+ '@babel/core': 7.28.3
+ '@babel/helper-module-imports': 7.27.1
+ '@babel/helper-validator-identifier': 7.27.1
+ '@babel/traverse': 7.28.3
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/helper-plugin-utils@7.27.1': {}
+
+ '@babel/helper-string-parser@7.27.1': {}
+
+ '@babel/helper-validator-identifier@7.27.1': {}
+
+ '@babel/helper-validator-option@7.27.1': {}
+
+ '@babel/helpers@7.28.3':
+ dependencies:
+ '@babel/template': 7.27.2
+ '@babel/types': 7.28.2
+
+ '@babel/parser@7.28.3':
+ dependencies:
+ '@babel/types': 7.28.2
+
+ '@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.28.3)':
+ dependencies:
+ '@babel/core': 7.28.3
+ '@babel/helper-plugin-utils': 7.27.1
+
+ '@babel/plugin-syntax-bigint@7.8.3(@babel/core@7.28.3)':
+ dependencies:
+ '@babel/core': 7.28.3
+ '@babel/helper-plugin-utils': 7.27.1
+
+ '@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.28.3)':
+ dependencies:
+ '@babel/core': 7.28.3
+ '@babel/helper-plugin-utils': 7.27.1
+
+ '@babel/plugin-syntax-class-static-block@7.14.5(@babel/core@7.28.3)':
+ dependencies:
+ '@babel/core': 7.28.3
+ '@babel/helper-plugin-utils': 7.27.1
+
+ '@babel/plugin-syntax-import-attributes@7.27.1(@babel/core@7.28.3)':
+ dependencies:
+ '@babel/core': 7.28.3
+ '@babel/helper-plugin-utils': 7.27.1
+
+ '@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.28.3)':
+ dependencies:
+ '@babel/core': 7.28.3
+ '@babel/helper-plugin-utils': 7.27.1
+
+ '@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.28.3)':
+ dependencies:
+ '@babel/core': 7.28.3
+ '@babel/helper-plugin-utils': 7.27.1
+
+ '@babel/plugin-syntax-jsx@7.27.1(@babel/core@7.28.3)':
+ dependencies:
+ '@babel/core': 7.28.3
+ '@babel/helper-plugin-utils': 7.27.1
+
+ '@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.28.3)':
+ dependencies:
+ '@babel/core': 7.28.3
+ '@babel/helper-plugin-utils': 7.27.1
+
+ '@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.28.3)':
+ dependencies:
+ '@babel/core': 7.28.3
+ '@babel/helper-plugin-utils': 7.27.1
+
+ '@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.28.3)':
+ dependencies:
+ '@babel/core': 7.28.3
+ '@babel/helper-plugin-utils': 7.27.1
+
+ '@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.28.3)':
+ dependencies:
+ '@babel/core': 7.28.3
+ '@babel/helper-plugin-utils': 7.27.1
+
+ '@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.28.3)':
+ dependencies:
+ '@babel/core': 7.28.3
+ '@babel/helper-plugin-utils': 7.27.1
+
+ '@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.28.3)':
+ dependencies:
+ '@babel/core': 7.28.3
+ '@babel/helper-plugin-utils': 7.27.1
+
+ '@babel/plugin-syntax-private-property-in-object@7.14.5(@babel/core@7.28.3)':
+ dependencies:
+ '@babel/core': 7.28.3
+ '@babel/helper-plugin-utils': 7.27.1
+
+ '@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.28.3)':
+ dependencies:
+ '@babel/core': 7.28.3
+ '@babel/helper-plugin-utils': 7.27.1
+
+ '@babel/plugin-syntax-typescript@7.27.1(@babel/core@7.28.3)':
+ dependencies:
+ '@babel/core': 7.28.3
+ '@babel/helper-plugin-utils': 7.27.1
+
'@babel/runtime@7.26.9':
dependencies:
regenerator-runtime: 0.14.1
+ '@babel/template@7.27.2':
+ dependencies:
+ '@babel/code-frame': 7.27.1
+ '@babel/parser': 7.28.3
+ '@babel/types': 7.28.2
+
+ '@babel/traverse@7.28.3':
+ dependencies:
+ '@babel/code-frame': 7.27.1
+ '@babel/generator': 7.28.3
+ '@babel/helper-globals': 7.28.0
+ '@babel/parser': 7.28.3
+ '@babel/template': 7.27.2
+ '@babel/types': 7.28.2
+ debug: 4.4.0
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/types@7.28.2':
+ dependencies:
+ '@babel/helper-string-parser': 7.27.1
+ '@babel/helper-validator-identifier': 7.27.1
+
+ '@bcoe/v8-coverage@0.2.3': {}
+
+ '@csstools/color-helpers@5.1.0': {}
+
+ '@csstools/css-calc@2.1.4(@csstools/css-parser-algorithms@3.0.5(@csstools/css-tokenizer@3.0.4))(@csstools/css-tokenizer@3.0.4)':
+ dependencies:
+ '@csstools/css-parser-algorithms': 3.0.5(@csstools/css-tokenizer@3.0.4)
+ '@csstools/css-tokenizer': 3.0.4
+
+ '@csstools/css-color-parser@3.1.0(@csstools/css-parser-algorithms@3.0.5(@csstools/css-tokenizer@3.0.4))(@csstools/css-tokenizer@3.0.4)':
+ dependencies:
+ '@csstools/color-helpers': 5.1.0
+ '@csstools/css-calc': 2.1.4(@csstools/css-parser-algorithms@3.0.5(@csstools/css-tokenizer@3.0.4))(@csstools/css-tokenizer@3.0.4)
+ '@csstools/css-parser-algorithms': 3.0.5(@csstools/css-tokenizer@3.0.4)
+ '@csstools/css-tokenizer': 3.0.4
+
+ '@csstools/css-parser-algorithms@3.0.5(@csstools/css-tokenizer@3.0.4)':
+ dependencies:
+ '@csstools/css-tokenizer': 3.0.4
+
+ '@csstools/css-tokenizer@3.0.4': {}
+
+ '@effect/platform@0.90.3(effect@3.17.7)':
+ dependencies:
+ '@opentelemetry/semantic-conventions': 1.36.0
+ effect: 3.17.7
+ find-my-way-ts: 0.1.6
+ msgpackr: 1.11.5
+ multipasta: 0.2.7
+
+ '@emnapi/core@1.5.0':
+ dependencies:
+ '@emnapi/wasi-threads': 1.1.0
+ tslib: 2.8.1
+ optional: true
+
'@emnapi/runtime@1.3.1':
dependencies:
tslib: 2.8.1
optional: true
+ '@emnapi/runtime@1.5.0':
+ dependencies:
+ tslib: 2.8.1
+ optional: true
+
+ '@emnapi/wasi-threads@1.1.0':
+ dependencies:
+ tslib: 2.8.1
+ optional: true
+
+ '@esbuild/aix-ppc64@0.25.9':
+ optional: true
+
+ '@esbuild/android-arm64@0.25.9':
+ optional: true
+
+ '@esbuild/android-arm@0.25.9':
+ optional: true
+
+ '@esbuild/android-x64@0.25.9':
+ optional: true
+
+ '@esbuild/darwin-arm64@0.25.9':
+ optional: true
+
+ '@esbuild/darwin-x64@0.25.9':
+ optional: true
+
+ '@esbuild/freebsd-arm64@0.25.9':
+ optional: true
+
+ '@esbuild/freebsd-x64@0.25.9':
+ optional: true
+
+ '@esbuild/linux-arm64@0.25.9':
+ optional: true
+
+ '@esbuild/linux-arm@0.25.9':
+ optional: true
+
+ '@esbuild/linux-ia32@0.25.9':
+ optional: true
+
+ '@esbuild/linux-loong64@0.25.9':
+ optional: true
+
+ '@esbuild/linux-mips64el@0.25.9':
+ optional: true
+
+ '@esbuild/linux-ppc64@0.25.9':
+ optional: true
+
+ '@esbuild/linux-riscv64@0.25.9':
+ optional: true
+
+ '@esbuild/linux-s390x@0.25.9':
+ optional: true
+
+ '@esbuild/linux-x64@0.25.9':
+ optional: true
+
+ '@esbuild/netbsd-arm64@0.25.9':
+ optional: true
+
+ '@esbuild/netbsd-x64@0.25.9':
+ optional: true
+
+ '@esbuild/openbsd-arm64@0.25.9':
+ optional: true
+
+ '@esbuild/openbsd-x64@0.25.9':
+ optional: true
+
+ '@esbuild/openharmony-arm64@0.25.9':
+ optional: true
+
+ '@esbuild/sunos-x64@0.25.9':
+ optional: true
+
+ '@esbuild/win32-arm64@0.25.9':
+ optional: true
+
+ '@esbuild/win32-ia32@0.25.9':
+ optional: true
+
+ '@esbuild/win32-x64@0.25.9':
+ optional: true
+
'@eslint-community/eslint-utils@4.4.1(eslint@9.21.0(jiti@2.4.2))':
dependencies:
eslint: 9.21.0(jiti@2.4.2)
@@ -3300,6 +5529,36 @@ snapshots:
'@floating-ui/utils@0.2.9': {}
+ '@formatjs/ecma402-abstract@2.3.4':
+ dependencies:
+ '@formatjs/fast-memoize': 2.2.7
+ '@formatjs/intl-localematcher': 0.6.1
+ decimal.js: 10.6.0
+ tslib: 2.8.1
+
+ '@formatjs/fast-memoize@2.2.7':
+ dependencies:
+ tslib: 2.8.1
+
+ '@formatjs/icu-messageformat-parser@2.11.2':
+ dependencies:
+ '@formatjs/ecma402-abstract': 2.3.4
+ '@formatjs/icu-skeleton-parser': 1.8.14
+ tslib: 2.8.1
+
+ '@formatjs/icu-skeleton-parser@1.8.14':
+ dependencies:
+ '@formatjs/ecma402-abstract': 2.3.4
+ tslib: 2.8.1
+
+ '@formatjs/intl-localematcher@0.5.10':
+ dependencies:
+ tslib: 2.8.1
+
+ '@formatjs/intl-localematcher@0.6.1':
+ dependencies:
+ tslib: 2.8.1
+
'@hookform/resolvers@4.1.2(react-hook-form@7.54.2(react@19.0.0))':
dependencies:
'@standard-schema/utils': 0.3.0
@@ -3393,8 +5652,256 @@ snapshots:
'@img/sharp-win32-x64@0.33.5':
optional: true
+ '@isaacs/cliui@8.0.2':
+ dependencies:
+ string-width: 5.1.2
+ string-width-cjs: string-width@4.2.3
+ strip-ansi: 7.1.0
+ strip-ansi-cjs: strip-ansi@6.0.1
+ wrap-ansi: 8.1.0
+ wrap-ansi-cjs: wrap-ansi@7.0.0
+
+ '@istanbuljs/load-nyc-config@1.1.0':
+ dependencies:
+ camelcase: 5.3.1
+ find-up: 4.1.0
+ get-package-type: 0.1.0
+ js-yaml: 3.14.1
+ resolve-from: 5.0.0
+
+ '@istanbuljs/schema@0.1.3': {}
+
+ '@jest/console@30.1.2':
+ dependencies:
+ '@jest/types': 30.0.5
+ '@types/node': 20.17.19
+ chalk: 4.1.2
+ jest-message-util: 30.1.0
+ jest-util: 30.0.5
+ slash: 3.0.0
+
+ '@jest/core@30.1.2':
+ dependencies:
+ '@jest/console': 30.1.2
+ '@jest/pattern': 30.0.1
+ '@jest/reporters': 30.1.2
+ '@jest/test-result': 30.1.2
+ '@jest/transform': 30.1.2
+ '@jest/types': 30.0.5
+ '@types/node': 20.17.19
+ ansi-escapes: 4.3.2
+ chalk: 4.1.2
+ ci-info: 4.3.0
+ exit-x: 0.2.2
+ graceful-fs: 4.2.11
+ jest-changed-files: 30.0.5
+ jest-config: 30.1.2(@types/node@20.17.19)
+ jest-haste-map: 30.1.0
+ jest-message-util: 30.1.0
+ jest-regex-util: 30.0.1
+ jest-resolve: 30.1.0
+ jest-resolve-dependencies: 30.1.2
+ jest-runner: 30.1.2
+ jest-runtime: 30.1.2
+ jest-snapshot: 30.1.2
+ jest-util: 30.0.5
+ jest-validate: 30.1.0
+ jest-watcher: 30.1.2
+ micromatch: 4.0.8
+ pretty-format: 30.0.5
+ slash: 3.0.0
+ transitivePeerDependencies:
+ - babel-plugin-macros
+ - esbuild-register
+ - supports-color
+ - ts-node
+
+ '@jest/diff-sequences@30.0.1': {}
+
+ '@jest/environment-jsdom-abstract@30.1.2(jsdom@26.1.0)':
+ dependencies:
+ '@jest/environment': 30.1.2
+ '@jest/fake-timers': 30.1.2
+ '@jest/types': 30.0.5
+ '@types/jsdom': 21.1.7
+ '@types/node': 20.17.19
+ jest-mock: 30.0.5
+ jest-util: 30.0.5
+ jsdom: 26.1.0
+
+ '@jest/environment@30.1.2':
+ dependencies:
+ '@jest/fake-timers': 30.1.2
+ '@jest/types': 30.0.5
+ '@types/node': 20.17.19
+ jest-mock: 30.0.5
+
+ '@jest/expect-utils@30.1.2':
+ dependencies:
+ '@jest/get-type': 30.1.0
+
+ '@jest/expect@30.1.2':
+ dependencies:
+ expect: 30.1.2
+ jest-snapshot: 30.1.2
+ transitivePeerDependencies:
+ - supports-color
+
+ '@jest/fake-timers@30.1.2':
+ dependencies:
+ '@jest/types': 30.0.5
+ '@sinonjs/fake-timers': 13.0.5
+ '@types/node': 20.17.19
+ jest-message-util: 30.1.0
+ jest-mock: 30.0.5
+ jest-util: 30.0.5
+
+ '@jest/get-type@30.1.0': {}
+
+ '@jest/globals@30.1.2':
+ dependencies:
+ '@jest/environment': 30.1.2
+ '@jest/expect': 30.1.2
+ '@jest/types': 30.0.5
+ jest-mock: 30.0.5
+ transitivePeerDependencies:
+ - supports-color
+
+ '@jest/pattern@30.0.1':
+ dependencies:
+ '@types/node': 20.17.19
+ jest-regex-util: 30.0.1
+
+ '@jest/reporters@30.1.2':
+ dependencies:
+ '@bcoe/v8-coverage': 0.2.3
+ '@jest/console': 30.1.2
+ '@jest/test-result': 30.1.2
+ '@jest/transform': 30.1.2
+ '@jest/types': 30.0.5
+ '@jridgewell/trace-mapping': 0.3.30
+ '@types/node': 20.17.19
+ chalk: 4.1.2
+ collect-v8-coverage: 1.0.2
+ exit-x: 0.2.2
+ glob: 10.4.5
+ graceful-fs: 4.2.11
+ istanbul-lib-coverage: 3.2.2
+ istanbul-lib-instrument: 6.0.3
+ istanbul-lib-report: 3.0.1
+ istanbul-lib-source-maps: 5.0.6
+ istanbul-reports: 3.2.0
+ jest-message-util: 30.1.0
+ jest-util: 30.0.5
+ jest-worker: 30.1.0
+ slash: 3.0.0
+ string-length: 4.0.2
+ v8-to-istanbul: 9.3.0
+ transitivePeerDependencies:
+ - supports-color
+
+ '@jest/schemas@30.0.5':
+ dependencies:
+ '@sinclair/typebox': 0.34.41
+
+ '@jest/snapshot-utils@30.1.2':
+ dependencies:
+ '@jest/types': 30.0.5
+ chalk: 4.1.2
+ graceful-fs: 4.2.11
+ natural-compare: 1.4.0
+
+ '@jest/source-map@30.0.1':
+ dependencies:
+ '@jridgewell/trace-mapping': 0.3.30
+ callsites: 3.1.0
+ graceful-fs: 4.2.11
+
+ '@jest/test-result@30.1.2':
+ dependencies:
+ '@jest/console': 30.1.2
+ '@jest/types': 30.0.5
+ '@types/istanbul-lib-coverage': 2.0.6
+ collect-v8-coverage: 1.0.2
+
+ '@jest/test-sequencer@30.1.2':
+ dependencies:
+ '@jest/test-result': 30.1.2
+ graceful-fs: 4.2.11
+ jest-haste-map: 30.1.0
+ slash: 3.0.0
+
+ '@jest/transform@30.1.2':
+ dependencies:
+ '@babel/core': 7.28.3
+ '@jest/types': 30.0.5
+ '@jridgewell/trace-mapping': 0.3.30
+ babel-plugin-istanbul: 7.0.0
+ chalk: 4.1.2
+ convert-source-map: 2.0.0
+ fast-json-stable-stringify: 2.1.0
+ graceful-fs: 4.2.11
+ jest-haste-map: 30.1.0
+ jest-regex-util: 30.0.1
+ jest-util: 30.0.5
+ micromatch: 4.0.8
+ pirates: 4.0.7
+ slash: 3.0.0
+ write-file-atomic: 5.0.1
+ transitivePeerDependencies:
+ - supports-color
+
+ '@jest/types@30.0.5':
+ dependencies:
+ '@jest/pattern': 30.0.1
+ '@jest/schemas': 30.0.5
+ '@types/istanbul-lib-coverage': 2.0.6
+ '@types/istanbul-reports': 3.0.4
+ '@types/node': 20.17.19
+ '@types/yargs': 17.0.33
+ chalk: 4.1.2
+
+ '@jridgewell/gen-mapping@0.3.13':
+ dependencies:
+ '@jridgewell/sourcemap-codec': 1.5.5
+ '@jridgewell/trace-mapping': 0.3.30
+
+ '@jridgewell/resolve-uri@3.1.2': {}
+
+ '@jridgewell/sourcemap-codec@1.5.5': {}
+
+ '@jridgewell/trace-mapping@0.3.30':
+ dependencies:
+ '@jridgewell/resolve-uri': 3.1.2
+ '@jridgewell/sourcemap-codec': 1.5.5
+
'@kayron013/lexorank@2.0.0': {}
+ '@msgpackr-extract/msgpackr-extract-darwin-arm64@3.0.3':
+ optional: true
+
+ '@msgpackr-extract/msgpackr-extract-darwin-x64@3.0.3':
+ optional: true
+
+ '@msgpackr-extract/msgpackr-extract-linux-arm64@3.0.3':
+ optional: true
+
+ '@msgpackr-extract/msgpackr-extract-linux-arm@3.0.3':
+ optional: true
+
+ '@msgpackr-extract/msgpackr-extract-linux-x64@3.0.3':
+ optional: true
+
+ '@msgpackr-extract/msgpackr-extract-win32-x64@3.0.3':
+ optional: true
+
+ '@napi-rs/wasm-runtime@0.2.12':
+ dependencies:
+ '@emnapi/core': 1.5.0
+ '@emnapi/runtime': 1.5.0
+ '@tybys/wasm-util': 0.10.0
+ optional: true
+
'@next/env@15.2.4': {}
'@next/eslint-plugin-next@15.2.4':
@@ -3425,6 +5932,8 @@ snapshots:
'@next/swc-win32-x64-msvc@15.2.4':
optional: true
+ '@noble/hashes@1.8.0': {}
+
'@nodelib/fs.scandir@2.1.5':
dependencies:
'@nodelib/fs.stat': 2.0.5
@@ -3439,8 +5948,60 @@ snapshots:
'@nolyfill/is-core-module@1.0.39': {}
+ '@opentelemetry/semantic-conventions@1.36.0': {}
+
+ '@panva/hkdf@1.2.1': {}
+
+ '@paralleldrive/cuid2@2.2.2':
+ dependencies:
+ '@noble/hashes': 1.8.0
+
+ '@pkgjs/parseargs@0.11.0':
+ optional: true
+
'@pkgr/core@0.1.1': {}
+ '@pkgr/core@0.2.9': {}
+
+ '@playwright/test@1.55.0':
+ dependencies:
+ playwright: 1.55.0
+
+ '@prisma/client@6.15.0(prisma@6.15.0(typescript@5.7.3))(typescript@5.7.3)':
+ optionalDependencies:
+ prisma: 6.15.0(typescript@5.7.3)
+ typescript: 5.7.3
+
+ '@prisma/config@6.15.0':
+ dependencies:
+ c12: 3.1.0
+ deepmerge-ts: 7.1.5
+ effect: 3.16.12
+ empathic: 2.0.0
+ transitivePeerDependencies:
+ - magicast
+
+ '@prisma/debug@6.15.0': {}
+
+ '@prisma/engines-version@6.15.0-5.85179d7826409ee107a6ba334b5e305ae3fba9fb': {}
+
+ '@prisma/engines@6.15.0':
+ dependencies:
+ '@prisma/debug': 6.15.0
+ '@prisma/engines-version': 6.15.0-5.85179d7826409ee107a6ba334b5e305ae3fba9fb
+ '@prisma/fetch-engine': 6.15.0
+ '@prisma/get-platform': 6.15.0
+
+ '@prisma/fetch-engine@6.15.0':
+ dependencies:
+ '@prisma/debug': 6.15.0
+ '@prisma/engines-version': 6.15.0-5.85179d7826409ee107a6ba334b5e305ae3fba9fb
+ '@prisma/get-platform': 6.15.0
+
+ '@prisma/get-platform@6.15.0':
+ dependencies:
+ '@prisma/debug': 6.15.0
+
'@radix-ui/number@1.1.0': {}
'@radix-ui/primitive@1.0.1':
@@ -4316,6 +6877,22 @@ snapshots:
'@rushstack/eslint-patch@1.10.5': {}
+ '@schummar/icu-type-parser@1.21.5': {}
+
+ '@sinclair/typebox@0.34.41': {}
+
+ '@sinonjs/commons@3.0.1':
+ dependencies:
+ type-detect: 4.0.8
+
+ '@sinonjs/fake-timers@13.0.5':
+ dependencies:
+ '@sinonjs/commons': 3.0.1
+
+ '@standard-schema/spec@1.0.0': {}
+
+ '@standard-schema/spec@1.0.0-beta.4': {}
+
'@standard-schema/utils@0.3.0': {}
'@swc/counter@0.1.3': {}
@@ -4386,6 +6963,68 @@ snapshots:
postcss: 8.5.3
tailwindcss: 4.0.8
+ '@testing-library/dom@10.4.1':
+ dependencies:
+ '@babel/code-frame': 7.27.1
+ '@babel/runtime': 7.26.9
+ '@types/aria-query': 5.0.4
+ aria-query: 5.3.0
+ dom-accessibility-api: 0.5.16
+ lz-string: 1.5.0
+ picocolors: 1.1.1
+ pretty-format: 27.5.1
+
+ '@testing-library/jest-dom@6.8.0':
+ dependencies:
+ '@adobe/css-tools': 4.4.4
+ aria-query: 5.3.2
+ css.escape: 1.5.1
+ dom-accessibility-api: 0.6.3
+ picocolors: 1.1.1
+ redent: 3.0.0
+
+ '@testing-library/react@16.3.0(@testing-library/dom@10.4.1)(@types/react-dom@19.0.4(@types/react@19.0.10))(@types/react@19.0.10)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)':
+ dependencies:
+ '@babel/runtime': 7.26.9
+ '@testing-library/dom': 10.4.1
+ react: 19.0.0
+ react-dom: 19.0.0(react@19.0.0)
+ optionalDependencies:
+ '@types/react': 19.0.10
+ '@types/react-dom': 19.0.4(@types/react@19.0.10)
+
+ '@testing-library/user-event@14.6.1(@testing-library/dom@10.4.1)':
+ dependencies:
+ '@testing-library/dom': 10.4.1
+
+ '@tybys/wasm-util@0.10.0':
+ dependencies:
+ tslib: 2.8.1
+ optional: true
+
+ '@types/aria-query@5.0.4': {}
+
+ '@types/babel__core@7.20.5':
+ dependencies:
+ '@babel/parser': 7.28.3
+ '@babel/types': 7.28.2
+ '@types/babel__generator': 7.27.0
+ '@types/babel__template': 7.4.4
+ '@types/babel__traverse': 7.28.0
+
+ '@types/babel__generator@7.27.0':
+ dependencies:
+ '@babel/types': 7.28.2
+
+ '@types/babel__template@7.4.4':
+ dependencies:
+ '@babel/parser': 7.28.3
+ '@babel/types': 7.28.2
+
+ '@types/babel__traverse@7.28.0':
+ dependencies:
+ '@babel/types': 7.28.2
+
'@types/d3-array@3.2.1': {}
'@types/d3-color@3.1.3': {}
@@ -4412,6 +7051,31 @@ snapshots:
'@types/estree@1.0.6': {}
+ '@types/formidable@3.4.5':
+ dependencies:
+ '@types/node': 20.17.19
+
+ '@types/istanbul-lib-coverage@2.0.6': {}
+
+ '@types/istanbul-lib-report@3.0.3':
+ dependencies:
+ '@types/istanbul-lib-coverage': 2.0.6
+
+ '@types/istanbul-reports@3.0.4':
+ dependencies:
+ '@types/istanbul-lib-report': 3.0.3
+
+ '@types/jest@30.0.0':
+ dependencies:
+ expect: 30.1.2
+ pretty-format: 30.0.5
+
+ '@types/jsdom@21.1.7':
+ dependencies:
+ '@types/node': 20.17.19
+ '@types/tough-cookie': 4.0.5
+ parse5: 7.3.0
+
'@types/json-schema@7.0.15': {}
'@types/json5@0.0.29': {}
@@ -4428,6 +7092,16 @@ snapshots:
dependencies:
csstype: 3.1.3
+ '@types/stack-utils@2.0.3': {}
+
+ '@types/tough-cookie@4.0.5': {}
+
+ '@types/yargs-parser@21.0.3': {}
+
+ '@types/yargs@17.0.33':
+ dependencies:
+ '@types/yargs-parser': 21.0.3
+
'@typescript-eslint/eslint-plugin@8.25.0(@typescript-eslint/parser@8.25.0(eslint@9.21.0(jiti@2.4.2))(typescript@5.7.3))(eslint@9.21.0(jiti@2.4.2))(typescript@5.7.3)':
dependencies:
'@eslint-community/regexpp': 4.12.1
@@ -4505,12 +7179,83 @@ snapshots:
'@typescript-eslint/types': 8.25.0
eslint-visitor-keys: 4.2.0
+ '@ungap/structured-clone@1.3.0': {}
+
+ '@unrs/resolver-binding-android-arm-eabi@1.11.1':
+ optional: true
+
+ '@unrs/resolver-binding-android-arm64@1.11.1':
+ optional: true
+
+ '@unrs/resolver-binding-darwin-arm64@1.11.1':
+ optional: true
+
+ '@unrs/resolver-binding-darwin-x64@1.11.1':
+ optional: true
+
+ '@unrs/resolver-binding-freebsd-x64@1.11.1':
+ optional: true
+
+ '@unrs/resolver-binding-linux-arm-gnueabihf@1.11.1':
+ optional: true
+
+ '@unrs/resolver-binding-linux-arm-musleabihf@1.11.1':
+ optional: true
+
+ '@unrs/resolver-binding-linux-arm64-gnu@1.11.1':
+ optional: true
+
+ '@unrs/resolver-binding-linux-arm64-musl@1.11.1':
+ optional: true
+
+ '@unrs/resolver-binding-linux-ppc64-gnu@1.11.1':
+ optional: true
+
+ '@unrs/resolver-binding-linux-riscv64-gnu@1.11.1':
+ optional: true
+
+ '@unrs/resolver-binding-linux-riscv64-musl@1.11.1':
+ optional: true
+
+ '@unrs/resolver-binding-linux-s390x-gnu@1.11.1':
+ optional: true
+
+ '@unrs/resolver-binding-linux-x64-gnu@1.11.1':
+ optional: true
+
+ '@unrs/resolver-binding-linux-x64-musl@1.11.1':
+ optional: true
+
+ '@unrs/resolver-binding-wasm32-wasi@1.11.1':
+ dependencies:
+ '@napi-rs/wasm-runtime': 0.2.12
+ optional: true
+
+ '@unrs/resolver-binding-win32-arm64-msvc@1.11.1':
+ optional: true
+
+ '@unrs/resolver-binding-win32-ia32-msvc@1.11.1':
+ optional: true
+
+ '@unrs/resolver-binding-win32-x64-msvc@1.11.1':
+ optional: true
+
+ '@uploadthing/mime-types@0.3.6': {}
+
+ '@uploadthing/shared@7.1.10':
+ dependencies:
+ '@uploadthing/mime-types': 0.3.6
+ effect: 3.17.7
+ sqids: 0.3.0
+
acorn-jsx@5.3.2(acorn@8.14.0):
dependencies:
acorn: 8.14.0
acorn@8.14.0: {}
+ agent-base@7.1.4: {}
+
ajv@6.12.6:
dependencies:
fast-deep-equal: 3.1.3
@@ -4518,24 +7263,45 @@ snapshots:
json-schema-traverse: 0.4.1
uri-js: 4.4.1
+ ansi-escapes@4.3.2:
+ dependencies:
+ type-fest: 0.21.3
+
ansi-escapes@7.0.0:
dependencies:
environment: 1.1.0
+ ansi-regex@5.0.1: {}
+
ansi-regex@6.1.0: {}
ansi-styles@4.3.0:
dependencies:
color-convert: 2.0.1
+ ansi-styles@5.2.0: {}
+
ansi-styles@6.2.1: {}
+ anymatch@3.1.3:
+ dependencies:
+ normalize-path: 3.0.0
+ picomatch: 2.3.1
+
+ argparse@1.0.10:
+ dependencies:
+ sprintf-js: 1.0.3
+
argparse@2.0.1: {}
aria-hidden@1.2.4:
dependencies:
tslib: 2.8.1
+ aria-query@5.3.0:
+ dependencies:
+ dequal: 2.0.3
+
aria-query@5.3.2: {}
array-buffer-byte-length@1.0.2:
@@ -4602,6 +7368,8 @@ snapshots:
get-intrinsic: 1.3.0
is-array-buffer: 3.0.5
+ asap@2.0.6: {}
+
ast-types-flow@0.0.8: {}
async-function@1.0.0: {}
@@ -4614,6 +7382,60 @@ snapshots:
axobject-query@4.1.0: {}
+ babel-jest@30.1.2(@babel/core@7.28.3):
+ dependencies:
+ '@babel/core': 7.28.3
+ '@jest/transform': 30.1.2
+ '@types/babel__core': 7.20.5
+ babel-plugin-istanbul: 7.0.0
+ babel-preset-jest: 30.0.1(@babel/core@7.28.3)
+ chalk: 4.1.2
+ graceful-fs: 4.2.11
+ slash: 3.0.0
+ transitivePeerDependencies:
+ - supports-color
+
+ babel-plugin-istanbul@7.0.0:
+ dependencies:
+ '@babel/helper-plugin-utils': 7.27.1
+ '@istanbuljs/load-nyc-config': 1.1.0
+ '@istanbuljs/schema': 0.1.3
+ istanbul-lib-instrument: 6.0.3
+ test-exclude: 6.0.0
+ transitivePeerDependencies:
+ - supports-color
+
+ babel-plugin-jest-hoist@30.0.1:
+ dependencies:
+ '@babel/template': 7.27.2
+ '@babel/types': 7.28.2
+ '@types/babel__core': 7.20.5
+
+ babel-preset-current-node-syntax@1.2.0(@babel/core@7.28.3):
+ dependencies:
+ '@babel/core': 7.28.3
+ '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.28.3)
+ '@babel/plugin-syntax-bigint': 7.8.3(@babel/core@7.28.3)
+ '@babel/plugin-syntax-class-properties': 7.12.13(@babel/core@7.28.3)
+ '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@7.28.3)
+ '@babel/plugin-syntax-import-attributes': 7.27.1(@babel/core@7.28.3)
+ '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.28.3)
+ '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.28.3)
+ '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.28.3)
+ '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.28.3)
+ '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.28.3)
+ '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.28.3)
+ '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.28.3)
+ '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.28.3)
+ '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@7.28.3)
+ '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.28.3)
+
+ babel-preset-jest@30.0.1(@babel/core@7.28.3):
+ dependencies:
+ '@babel/core': 7.28.3
+ babel-plugin-jest-hoist: 30.0.1
+ babel-preset-current-node-syntax: 1.2.0(@babel/core@7.28.3)
+
balanced-match@1.0.2: {}
brace-expansion@1.1.11:
@@ -4629,10 +7451,38 @@ snapshots:
dependencies:
fill-range: 7.1.1
+ browserslist@4.25.4:
+ dependencies:
+ caniuse-lite: 1.0.30001739
+ electron-to-chromium: 1.5.211
+ node-releases: 2.0.19
+ update-browserslist-db: 1.1.3(browserslist@4.25.4)
+
+ bser@2.1.1:
+ dependencies:
+ node-int64: 0.4.0
+
+ buffer-from@1.1.2: {}
+
busboy@1.6.0:
dependencies:
streamsearch: 1.1.0
+ c12@3.1.0:
+ dependencies:
+ chokidar: 4.0.3
+ confbox: 0.2.2
+ defu: 6.1.4
+ dotenv: 16.6.1
+ exsolve: 1.0.7
+ giget: 2.0.0
+ jiti: 2.4.2
+ ohash: 2.0.11
+ pathe: 2.0.3
+ perfect-debounce: 1.0.0
+ pkg-types: 2.3.0
+ rc9: 2.1.2
+
call-bind-apply-helpers@1.0.2:
dependencies:
es-errors: 1.3.0
@@ -4652,8 +7502,14 @@ snapshots:
callsites@3.1.0: {}
+ camelcase@5.3.1: {}
+
+ camelcase@6.3.0: {}
+
caniuse-lite@1.0.30001700: {}
+ caniuse-lite@1.0.30001739: {}
+
chalk@4.1.2:
dependencies:
ansi-styles: 4.3.0
@@ -4661,6 +7517,20 @@ snapshots:
chalk@5.4.1: {}
+ char-regex@1.0.2: {}
+
+ chokidar@4.0.3:
+ dependencies:
+ readdirp: 4.1.2
+
+ ci-info@4.3.0: {}
+
+ citty@0.1.6:
+ dependencies:
+ consola: 3.4.2
+
+ cjs-module-lexer@2.1.0: {}
+
class-variance-authority@0.7.1:
dependencies:
clsx: 2.1.1
@@ -4676,6 +7546,12 @@ snapshots:
client-only@0.0.1: {}
+ cliui@8.0.1:
+ dependencies:
+ string-width: 4.2.3
+ strip-ansi: 6.0.1
+ wrap-ansi: 7.0.0
+
clsx@2.1.1: {}
cmdk@1.0.0(@types/react-dom@19.0.4(@types/react@19.0.10))(@types/react@19.0.10)(react-dom@19.0.0(react@19.0.0))(react@19.0.0):
@@ -4688,6 +7564,10 @@ snapshots:
- '@types/react'
- '@types/react-dom'
+ co@4.6.0: {}
+
+ collect-v8-coverage@1.0.2: {}
+
color-convert@2.0.1:
dependencies:
color-name: 1.1.4
@@ -4712,12 +7592,25 @@ snapshots:
concat-map@0.0.1: {}
+ confbox@0.2.2: {}
+
+ consola@3.4.2: {}
+
+ convert-source-map@2.0.0: {}
+
cross-spawn@7.0.6:
dependencies:
path-key: 3.1.1
shebang-command: 2.0.0
which: 2.0.2
+ css.escape@1.5.1: {}
+
+ cssstyle@4.6.0:
+ dependencies:
+ '@asamuzakjp/css-color': 3.2.0
+ rrweb-cssom: 0.8.0
+
csstype@3.1.3: {}
d3-array@3.2.4:
@@ -4760,6 +7653,11 @@ snapshots:
damerau-levenshtein@1.0.8: {}
+ data-urls@5.0.0:
+ dependencies:
+ whatwg-mimetype: 4.0.0
+ whatwg-url: 14.2.0
+
data-view-buffer@1.0.2:
dependencies:
call-bound: 1.0.3
@@ -4790,8 +7688,16 @@ snapshots:
decimal.js-light@2.5.1: {}
+ decimal.js@10.6.0: {}
+
+ dedent@1.6.0: {}
+
deep-is@0.1.4: {}
+ deepmerge-ts@7.1.5: {}
+
+ deepmerge@4.3.1: {}
+
define-data-property@1.1.4:
dependencies:
es-define-property: 1.0.1
@@ -4804,13 +7710,26 @@ snapshots:
has-property-descriptors: 1.0.2
object-keys: 1.1.1
+ defu@6.1.4: {}
+
+ dequal@2.0.3: {}
+
+ destr@2.0.5: {}
+
detect-libc@1.0.3: {}
detect-libc@2.0.3:
optional: true
+ detect-newline@3.1.0: {}
+
detect-node-es@1.1.0: {}
+ dezalgo@1.0.4:
+ dependencies:
+ asap: 2.0.6
+ wrappy: 1.0.2
+
dnd-core@16.0.1:
dependencies:
'@react-dnd/asap': 5.0.2
@@ -4821,28 +7740,60 @@ snapshots:
dependencies:
esutils: 2.0.3
+ dom-accessibility-api@0.5.16: {}
+
+ dom-accessibility-api@0.6.3: {}
+
dom-helpers@5.2.1:
dependencies:
'@babel/runtime': 7.26.9
csstype: 3.1.3
+ dotenv@16.6.1: {}
+
dunder-proto@1.0.1:
dependencies:
call-bind-apply-helpers: 1.0.2
es-errors: 1.3.0
gopd: 1.2.0
+ eastasianwidth@0.2.0: {}
+
+ effect@3.16.12:
+ dependencies:
+ '@standard-schema/spec': 1.0.0
+ fast-check: 3.23.2
+
+ effect@3.17.7:
+ dependencies:
+ '@standard-schema/spec': 1.0.0
+ fast-check: 3.23.2
+
+ electron-to-chromium@1.5.211: {}
+
+ emittery@0.13.1: {}
+
emoji-regex@10.4.0: {}
+ emoji-regex@8.0.0: {}
+
emoji-regex@9.2.2: {}
+ empathic@2.0.0: {}
+
enhanced-resolve@5.18.1:
dependencies:
graceful-fs: 4.2.11
tapable: 2.2.1
+ entities@6.0.1: {}
+
environment@1.1.0: {}
+ error-ex@1.3.2:
+ dependencies:
+ is-arrayish: 0.2.1
+
es-abstract@1.23.9:
dependencies:
array-buffer-byte-length: 1.0.2
@@ -4941,6 +7892,39 @@ snapshots:
is-date-object: 1.1.0
is-symbol: 1.1.1
+ esbuild@0.25.9:
+ optionalDependencies:
+ '@esbuild/aix-ppc64': 0.25.9
+ '@esbuild/android-arm': 0.25.9
+ '@esbuild/android-arm64': 0.25.9
+ '@esbuild/android-x64': 0.25.9
+ '@esbuild/darwin-arm64': 0.25.9
+ '@esbuild/darwin-x64': 0.25.9
+ '@esbuild/freebsd-arm64': 0.25.9
+ '@esbuild/freebsd-x64': 0.25.9
+ '@esbuild/linux-arm': 0.25.9
+ '@esbuild/linux-arm64': 0.25.9
+ '@esbuild/linux-ia32': 0.25.9
+ '@esbuild/linux-loong64': 0.25.9
+ '@esbuild/linux-mips64el': 0.25.9
+ '@esbuild/linux-ppc64': 0.25.9
+ '@esbuild/linux-riscv64': 0.25.9
+ '@esbuild/linux-s390x': 0.25.9
+ '@esbuild/linux-x64': 0.25.9
+ '@esbuild/netbsd-arm64': 0.25.9
+ '@esbuild/netbsd-x64': 0.25.9
+ '@esbuild/openbsd-arm64': 0.25.9
+ '@esbuild/openbsd-x64': 0.25.9
+ '@esbuild/openharmony-arm64': 0.25.9
+ '@esbuild/sunos-x64': 0.25.9
+ '@esbuild/win32-arm64': 0.25.9
+ '@esbuild/win32-ia32': 0.25.9
+ '@esbuild/win32-x64': 0.25.9
+
+ escalade@3.2.0: {}
+
+ escape-string-regexp@2.0.0: {}
+
escape-string-regexp@4.0.0: {}
eslint-config-next@15.2.4(eslint@9.21.0(jiti@2.4.2))(typescript@5.7.3):
@@ -5140,6 +8124,8 @@ snapshots:
acorn-jsx: 5.3.2(acorn@8.14.0)
eslint-visitor-keys: 4.2.0
+ esprima@4.0.1: {}
+
esquery@1.6.0:
dependencies:
estraverse: 5.3.0
@@ -5156,6 +8142,18 @@ snapshots:
eventemitter3@5.0.1: {}
+ execa@5.1.1:
+ dependencies:
+ cross-spawn: 7.0.6
+ get-stream: 6.0.1
+ human-signals: 2.1.0
+ is-stream: 2.0.1
+ merge-stream: 2.0.0
+ npm-run-path: 4.0.1
+ onetime: 5.1.2
+ signal-exit: 3.0.7
+ strip-final-newline: 2.0.0
+
execa@8.0.1:
dependencies:
cross-spawn: 7.0.6
@@ -5168,6 +8166,23 @@ snapshots:
signal-exit: 4.1.0
strip-final-newline: 3.0.0
+ exit-x@0.2.2: {}
+
+ expect@30.1.2:
+ dependencies:
+ '@jest/expect-utils': 30.1.2
+ '@jest/get-type': 30.1.0
+ jest-matcher-utils: 30.1.2
+ jest-message-util: 30.1.0
+ jest-mock: 30.0.5
+ jest-util: 30.0.5
+
+ exsolve@1.0.7: {}
+
+ fast-check@3.23.2:
+ dependencies:
+ pure-rand: 6.1.0
+
fast-deep-equal@3.1.3: {}
fast-diff@1.3.0: {}
@@ -5198,6 +8213,10 @@ snapshots:
dependencies:
reusify: 1.1.0
+ fb-watchman@2.0.2:
+ dependencies:
+ bser: 2.1.1
+
fdir@6.4.3(picomatch@4.0.2):
optionalDependencies:
picomatch: 4.0.2
@@ -5210,6 +8229,13 @@ snapshots:
dependencies:
to-regex-range: 5.0.1
+ find-my-way-ts@0.1.6: {}
+
+ find-up@4.1.0:
+ dependencies:
+ locate-path: 5.0.0
+ path-exists: 4.0.0
+
find-up@5.0.0:
dependencies:
locate-path: 6.0.0
@@ -5226,6 +8252,17 @@ snapshots:
dependencies:
is-callable: 1.2.7
+ foreground-child@3.3.1:
+ dependencies:
+ cross-spawn: 7.0.6
+ signal-exit: 4.1.0
+
+ formidable@3.5.4:
+ dependencies:
+ '@paralleldrive/cuid2': 2.2.2
+ dezalgo: 1.0.4
+ once: 1.4.0
+
framer-motion@12.4.10(react-dom@19.0.0(react@19.0.0))(react@19.0.0):
dependencies:
motion-dom: 12.4.10
@@ -5235,6 +8272,14 @@ snapshots:
react: 19.0.0
react-dom: 19.0.0(react@19.0.0)
+ fs.realpath@1.0.0: {}
+
+ fsevents@2.3.2:
+ optional: true
+
+ fsevents@2.3.3:
+ optional: true
+
function-bind@1.1.2: {}
function.prototype.name@1.1.8:
@@ -5248,6 +8293,10 @@ snapshots:
functions-have-names@1.2.3: {}
+ gensync@1.0.0-beta.2: {}
+
+ get-caller-file@2.0.5: {}
+
get-east-asian-width@1.3.0: {}
get-intrinsic@1.3.0:
@@ -5265,11 +8314,15 @@ snapshots:
get-nonce@1.0.1: {}
+ get-package-type@0.1.0: {}
+
get-proto@1.0.1:
dependencies:
dunder-proto: 1.0.1
es-object-atoms: 1.1.1
+ get-stream@6.0.1: {}
+
get-stream@8.0.1: {}
get-symbol-description@1.1.0:
@@ -5282,6 +8335,15 @@ snapshots:
dependencies:
resolve-pkg-maps: 1.0.0
+ giget@2.0.0:
+ dependencies:
+ citty: 0.1.6
+ consola: 3.4.2
+ defu: 6.1.4
+ node-fetch-native: 1.6.7
+ nypm: 0.6.1
+ pathe: 2.0.3
+
glob-parent@5.1.2:
dependencies:
is-glob: 4.0.3
@@ -5290,6 +8352,24 @@ snapshots:
dependencies:
is-glob: 4.0.3
+ glob@10.4.5:
+ dependencies:
+ foreground-child: 3.3.1
+ jackspeak: 3.4.3
+ minimatch: 9.0.5
+ minipass: 7.1.2
+ package-json-from-dist: 1.0.1
+ path-scurry: 1.11.1
+
+ glob@7.2.3:
+ dependencies:
+ fs.realpath: 1.0.0
+ inflight: 1.0.6
+ inherits: 2.0.4
+ minimatch: 3.1.2
+ once: 1.4.0
+ path-is-absolute: 1.0.1
+
globals@14.0.0: {}
globalthis@1.0.4:
@@ -5329,10 +8409,36 @@ snapshots:
dependencies:
react-is: 16.13.1
+ html-encoding-sniffer@4.0.0:
+ dependencies:
+ whatwg-encoding: 3.1.1
+
+ html-escaper@2.0.2: {}
+
+ http-proxy-agent@7.0.2:
+ dependencies:
+ agent-base: 7.1.4
+ debug: 4.4.0
+ transitivePeerDependencies:
+ - supports-color
+
+ https-proxy-agent@7.0.6:
+ dependencies:
+ agent-base: 7.1.4
+ debug: 4.4.0
+ transitivePeerDependencies:
+ - supports-color
+
+ human-signals@2.1.0: {}
+
human-signals@5.0.0: {}
husky@9.1.7: {}
+ iconv-lite@0.6.3:
+ dependencies:
+ safer-buffer: 2.1.2
+
ignore@5.3.2: {}
import-fresh@3.3.1:
@@ -5340,8 +8446,22 @@ snapshots:
parent-module: 1.0.1
resolve-from: 4.0.0
+ import-local@3.2.0:
+ dependencies:
+ pkg-dir: 4.2.0
+ resolve-cwd: 3.0.0
+
imurmurhash@0.1.4: {}
+ indent-string@4.0.0: {}
+
+ inflight@1.0.6:
+ dependencies:
+ once: 1.4.0
+ wrappy: 1.0.2
+
+ inherits@2.0.4: {}
+
internal-slot@1.1.0:
dependencies:
es-errors: 1.3.0
@@ -5350,12 +8470,21 @@ snapshots:
internmap@2.0.3: {}
+ intl-messageformat@10.7.16:
+ dependencies:
+ '@formatjs/ecma402-abstract': 2.3.4
+ '@formatjs/fast-memoize': 2.2.7
+ '@formatjs/icu-messageformat-parser': 2.11.2
+ tslib: 2.8.1
+
is-array-buffer@3.0.5:
dependencies:
call-bind: 1.0.8
call-bound: 1.0.3
get-intrinsic: 1.3.0
+ is-arrayish@0.2.1: {}
+
is-arrayish@0.3.2:
optional: true
@@ -5403,12 +8532,16 @@ snapshots:
dependencies:
call-bound: 1.0.3
+ is-fullwidth-code-point@3.0.0: {}
+
is-fullwidth-code-point@4.0.0: {}
is-fullwidth-code-point@5.0.0:
dependencies:
get-east-asian-width: 1.3.0
+ is-generator-fn@2.1.0: {}
+
is-generator-function@1.1.0:
dependencies:
call-bound: 1.0.3
@@ -5429,6 +8562,8 @@ snapshots:
is-number@7.0.0: {}
+ is-potential-custom-element-name@1.0.1: {}
+
is-regex@1.2.1:
dependencies:
call-bound: 1.0.3
@@ -5442,6 +8577,8 @@ snapshots:
dependencies:
call-bound: 1.0.3
+ is-stream@2.0.1: {}
+
is-stream@3.0.0: {}
is-string@1.1.1:
@@ -5474,6 +8611,37 @@ snapshots:
isexe@2.0.0: {}
+ istanbul-lib-coverage@3.2.2: {}
+
+ istanbul-lib-instrument@6.0.3:
+ dependencies:
+ '@babel/core': 7.28.3
+ '@babel/parser': 7.28.3
+ '@istanbuljs/schema': 0.1.3
+ istanbul-lib-coverage: 3.2.2
+ semver: 7.7.1
+ transitivePeerDependencies:
+ - supports-color
+
+ istanbul-lib-report@3.0.1:
+ dependencies:
+ istanbul-lib-coverage: 3.2.2
+ make-dir: 4.0.0
+ supports-color: 7.2.0
+
+ istanbul-lib-source-maps@5.0.6:
+ dependencies:
+ '@jridgewell/trace-mapping': 0.3.30
+ debug: 4.4.0
+ istanbul-lib-coverage: 3.2.2
+ transitivePeerDependencies:
+ - supports-color
+
+ istanbul-reports@3.2.0:
+ dependencies:
+ html-escaper: 2.0.2
+ istanbul-lib-report: 3.0.1
+
iterator.prototype@1.1.5:
dependencies:
define-data-property: 1.1.4
@@ -5483,16 +8651,383 @@ snapshots:
has-symbols: 1.1.0
set-function-name: 2.0.2
+ jackspeak@3.4.3:
+ dependencies:
+ '@isaacs/cliui': 8.0.2
+ optionalDependencies:
+ '@pkgjs/parseargs': 0.11.0
+
+ jest-changed-files@30.0.5:
+ dependencies:
+ execa: 5.1.1
+ jest-util: 30.0.5
+ p-limit: 3.1.0
+
+ jest-circus@30.1.2:
+ dependencies:
+ '@jest/environment': 30.1.2
+ '@jest/expect': 30.1.2
+ '@jest/test-result': 30.1.2
+ '@jest/types': 30.0.5
+ '@types/node': 20.17.19
+ chalk: 4.1.2
+ co: 4.6.0
+ dedent: 1.6.0
+ is-generator-fn: 2.1.0
+ jest-each: 30.1.0
+ jest-matcher-utils: 30.1.2
+ jest-message-util: 30.1.0
+ jest-runtime: 30.1.2
+ jest-snapshot: 30.1.2
+ jest-util: 30.0.5
+ p-limit: 3.1.0
+ pretty-format: 30.0.5
+ pure-rand: 7.0.1
+ slash: 3.0.0
+ stack-utils: 2.0.6
+ transitivePeerDependencies:
+ - babel-plugin-macros
+ - supports-color
+
+ jest-cli@30.1.2(@types/node@20.17.19):
+ dependencies:
+ '@jest/core': 30.1.2
+ '@jest/test-result': 30.1.2
+ '@jest/types': 30.0.5
+ chalk: 4.1.2
+ exit-x: 0.2.2
+ import-local: 3.2.0
+ jest-config: 30.1.2(@types/node@20.17.19)
+ jest-util: 30.0.5
+ jest-validate: 30.1.0
+ yargs: 17.7.2
+ transitivePeerDependencies:
+ - '@types/node'
+ - babel-plugin-macros
+ - esbuild-register
+ - supports-color
+ - ts-node
+
+ jest-config@30.1.2(@types/node@20.17.19):
+ dependencies:
+ '@babel/core': 7.28.3
+ '@jest/get-type': 30.1.0
+ '@jest/pattern': 30.0.1
+ '@jest/test-sequencer': 30.1.2
+ '@jest/types': 30.0.5
+ babel-jest: 30.1.2(@babel/core@7.28.3)
+ chalk: 4.1.2
+ ci-info: 4.3.0
+ deepmerge: 4.3.1
+ glob: 10.4.5
+ graceful-fs: 4.2.11
+ jest-circus: 30.1.2
+ jest-docblock: 30.0.1
+ jest-environment-node: 30.1.2
+ jest-regex-util: 30.0.1
+ jest-resolve: 30.1.0
+ jest-runner: 30.1.2
+ jest-util: 30.0.5
+ jest-validate: 30.1.0
+ micromatch: 4.0.8
+ parse-json: 5.2.0
+ pretty-format: 30.0.5
+ slash: 3.0.0
+ strip-json-comments: 3.1.1
+ optionalDependencies:
+ '@types/node': 20.17.19
+ transitivePeerDependencies:
+ - babel-plugin-macros
+ - supports-color
+
+ jest-diff@30.1.2:
+ dependencies:
+ '@jest/diff-sequences': 30.0.1
+ '@jest/get-type': 30.1.0
+ chalk: 4.1.2
+ pretty-format: 30.0.5
+
+ jest-docblock@30.0.1:
+ dependencies:
+ detect-newline: 3.1.0
+
+ jest-each@30.1.0:
+ dependencies:
+ '@jest/get-type': 30.1.0
+ '@jest/types': 30.0.5
+ chalk: 4.1.2
+ jest-util: 30.0.5
+ pretty-format: 30.0.5
+
+ jest-environment-jsdom@30.1.2:
+ dependencies:
+ '@jest/environment': 30.1.2
+ '@jest/environment-jsdom-abstract': 30.1.2(jsdom@26.1.0)
+ '@types/jsdom': 21.1.7
+ '@types/node': 20.17.19
+ jsdom: 26.1.0
+ transitivePeerDependencies:
+ - bufferutil
+ - supports-color
+ - utf-8-validate
+
+ jest-environment-node@30.1.2:
+ dependencies:
+ '@jest/environment': 30.1.2
+ '@jest/fake-timers': 30.1.2
+ '@jest/types': 30.0.5
+ '@types/node': 20.17.19
+ jest-mock: 30.0.5
+ jest-util: 30.0.5
+ jest-validate: 30.1.0
+
+ jest-haste-map@30.1.0:
+ dependencies:
+ '@jest/types': 30.0.5
+ '@types/node': 20.17.19
+ anymatch: 3.1.3
+ fb-watchman: 2.0.2
+ graceful-fs: 4.2.11
+ jest-regex-util: 30.0.1
+ jest-util: 30.0.5
+ jest-worker: 30.1.0
+ micromatch: 4.0.8
+ walker: 1.0.8
+ optionalDependencies:
+ fsevents: 2.3.3
+
+ jest-leak-detector@30.1.0:
+ dependencies:
+ '@jest/get-type': 30.1.0
+ pretty-format: 30.0.5
+
+ jest-matcher-utils@30.1.2:
+ dependencies:
+ '@jest/get-type': 30.1.0
+ chalk: 4.1.2
+ jest-diff: 30.1.2
+ pretty-format: 30.0.5
+
+ jest-message-util@30.1.0:
+ dependencies:
+ '@babel/code-frame': 7.27.1
+ '@jest/types': 30.0.5
+ '@types/stack-utils': 2.0.3
+ chalk: 4.1.2
+ graceful-fs: 4.2.11
+ micromatch: 4.0.8
+ pretty-format: 30.0.5
+ slash: 3.0.0
+ stack-utils: 2.0.6
+
+ jest-mock@30.0.5:
+ dependencies:
+ '@jest/types': 30.0.5
+ '@types/node': 20.17.19
+ jest-util: 30.0.5
+
+ jest-pnp-resolver@1.2.3(jest-resolve@30.1.0):
+ optionalDependencies:
+ jest-resolve: 30.1.0
+
+ jest-regex-util@30.0.1: {}
+
+ jest-resolve-dependencies@30.1.2:
+ dependencies:
+ jest-regex-util: 30.0.1
+ jest-snapshot: 30.1.2
+ transitivePeerDependencies:
+ - supports-color
+
+ jest-resolve@30.1.0:
+ dependencies:
+ chalk: 4.1.2
+ graceful-fs: 4.2.11
+ jest-haste-map: 30.1.0
+ jest-pnp-resolver: 1.2.3(jest-resolve@30.1.0)
+ jest-util: 30.0.5
+ jest-validate: 30.1.0
+ slash: 3.0.0
+ unrs-resolver: 1.11.1
+
+ jest-runner@30.1.2:
+ dependencies:
+ '@jest/console': 30.1.2
+ '@jest/environment': 30.1.2
+ '@jest/test-result': 30.1.2
+ '@jest/transform': 30.1.2
+ '@jest/types': 30.0.5
+ '@types/node': 20.17.19
+ chalk: 4.1.2
+ emittery: 0.13.1
+ exit-x: 0.2.2
+ graceful-fs: 4.2.11
+ jest-docblock: 30.0.1
+ jest-environment-node: 30.1.2
+ jest-haste-map: 30.1.0
+ jest-leak-detector: 30.1.0
+ jest-message-util: 30.1.0
+ jest-resolve: 30.1.0
+ jest-runtime: 30.1.2
+ jest-util: 30.0.5
+ jest-watcher: 30.1.2
+ jest-worker: 30.1.0
+ p-limit: 3.1.0
+ source-map-support: 0.5.13
+ transitivePeerDependencies:
+ - supports-color
+
+ jest-runtime@30.1.2:
+ dependencies:
+ '@jest/environment': 30.1.2
+ '@jest/fake-timers': 30.1.2
+ '@jest/globals': 30.1.2
+ '@jest/source-map': 30.0.1
+ '@jest/test-result': 30.1.2
+ '@jest/transform': 30.1.2
+ '@jest/types': 30.0.5
+ '@types/node': 20.17.19
+ chalk: 4.1.2
+ cjs-module-lexer: 2.1.0
+ collect-v8-coverage: 1.0.2
+ glob: 10.4.5
+ graceful-fs: 4.2.11
+ jest-haste-map: 30.1.0
+ jest-message-util: 30.1.0
+ jest-mock: 30.0.5
+ jest-regex-util: 30.0.1
+ jest-resolve: 30.1.0
+ jest-snapshot: 30.1.2
+ jest-util: 30.0.5
+ slash: 3.0.0
+ strip-bom: 4.0.0
+ transitivePeerDependencies:
+ - supports-color
+
+ jest-snapshot@30.1.2:
+ dependencies:
+ '@babel/core': 7.28.3
+ '@babel/generator': 7.28.3
+ '@babel/plugin-syntax-jsx': 7.27.1(@babel/core@7.28.3)
+ '@babel/plugin-syntax-typescript': 7.27.1(@babel/core@7.28.3)
+ '@babel/types': 7.28.2
+ '@jest/expect-utils': 30.1.2
+ '@jest/get-type': 30.1.0
+ '@jest/snapshot-utils': 30.1.2
+ '@jest/transform': 30.1.2
+ '@jest/types': 30.0.5
+ babel-preset-current-node-syntax: 1.2.0(@babel/core@7.28.3)
+ chalk: 4.1.2
+ expect: 30.1.2
+ graceful-fs: 4.2.11
+ jest-diff: 30.1.2
+ jest-matcher-utils: 30.1.2
+ jest-message-util: 30.1.0
+ jest-util: 30.0.5
+ pretty-format: 30.0.5
+ semver: 7.7.2
+ synckit: 0.11.11
+ transitivePeerDependencies:
+ - supports-color
+
+ jest-util@30.0.5:
+ dependencies:
+ '@jest/types': 30.0.5
+ '@types/node': 20.17.19
+ chalk: 4.1.2
+ ci-info: 4.3.0
+ graceful-fs: 4.2.11
+ picomatch: 4.0.2
+
+ jest-validate@30.1.0:
+ dependencies:
+ '@jest/get-type': 30.1.0
+ '@jest/types': 30.0.5
+ camelcase: 6.3.0
+ chalk: 4.1.2
+ leven: 3.1.0
+ pretty-format: 30.0.5
+
+ jest-watcher@30.1.2:
+ dependencies:
+ '@jest/test-result': 30.1.2
+ '@jest/types': 30.0.5
+ '@types/node': 20.17.19
+ ansi-escapes: 4.3.2
+ chalk: 4.1.2
+ emittery: 0.13.1
+ jest-util: 30.0.5
+ string-length: 4.0.2
+
+ jest-worker@30.1.0:
+ dependencies:
+ '@types/node': 20.17.19
+ '@ungap/structured-clone': 1.3.0
+ jest-util: 30.0.5
+ merge-stream: 2.0.0
+ supports-color: 8.1.1
+
+ jest@30.1.2(@types/node@20.17.19):
+ dependencies:
+ '@jest/core': 30.1.2
+ '@jest/types': 30.0.5
+ import-local: 3.2.0
+ jest-cli: 30.1.2(@types/node@20.17.19)
+ transitivePeerDependencies:
+ - '@types/node'
+ - babel-plugin-macros
+ - esbuild-register
+ - supports-color
+ - ts-node
+
jiti@2.4.2: {}
+ jose@6.1.0: {}
+
js-tokens@4.0.0: {}
+ js-yaml@3.14.1:
+ dependencies:
+ argparse: 1.0.10
+ esprima: 4.0.1
+
js-yaml@4.1.0:
dependencies:
argparse: 2.0.1
+ jsdom@26.1.0:
+ dependencies:
+ cssstyle: 4.6.0
+ data-urls: 5.0.0
+ decimal.js: 10.6.0
+ html-encoding-sniffer: 4.0.0
+ http-proxy-agent: 7.0.2
+ https-proxy-agent: 7.0.6
+ is-potential-custom-element-name: 1.0.1
+ nwsapi: 2.2.21
+ parse5: 7.3.0
+ rrweb-cssom: 0.8.0
+ saxes: 6.0.0
+ symbol-tree: 3.2.4
+ tough-cookie: 5.1.2
+ w3c-xmlserializer: 5.0.0
+ webidl-conversions: 7.0.0
+ whatwg-encoding: 3.1.1
+ whatwg-mimetype: 4.0.0
+ whatwg-url: 14.2.0
+ ws: 8.18.3
+ xml-name-validator: 5.0.0
+ transitivePeerDependencies:
+ - bufferutil
+ - supports-color
+ - utf-8-validate
+
+ jsesc@3.1.0: {}
+
json-buffer@3.0.1: {}
+ json-parse-even-better-errors@2.3.1: {}
+
json-schema-traverse@0.4.1: {}
json-stable-stringify-without-jsonify@1.0.1: {}
@@ -5501,6 +9036,8 @@ snapshots:
dependencies:
minimist: 1.2.8
+ json5@2.2.3: {}
+
jsx-ast-utils@3.3.5:
dependencies:
array-includes: 3.1.8
@@ -5518,6 +9055,8 @@ snapshots:
dependencies:
language-subtag-registry: 0.3.23
+ leven@3.1.0: {}
+
levn@0.4.1:
dependencies:
prelude-ls: 1.2.1
@@ -5570,6 +9109,8 @@ snapshots:
lilconfig@3.1.3: {}
+ lines-and-columns@1.2.4: {}
+
lint-staged@15.4.3:
dependencies:
chalk: 5.4.1
@@ -5594,6 +9135,10 @@ snapshots:
rfdc: 1.4.1
wrap-ansi: 9.0.0
+ locate-path@5.0.0:
+ dependencies:
+ p-locate: 4.1.0
+
locate-path@6.0.0:
dependencies:
p-locate: 5.0.0
@@ -5616,10 +9161,26 @@ snapshots:
dependencies:
js-tokens: 4.0.0
+ lru-cache@10.4.3: {}
+
+ lru-cache@5.1.1:
+ dependencies:
+ yallist: 3.1.1
+
lucide-react@0.476.0(react@19.0.0):
dependencies:
react: 19.0.0
+ lz-string@1.5.0: {}
+
+ make-dir@4.0.0:
+ dependencies:
+ semver: 7.7.1
+
+ makeerror@1.0.12:
+ dependencies:
+ tmpl: 1.0.5
+
math-intrinsics@1.1.0: {}
merge-stream@2.0.0: {}
@@ -5631,10 +9192,14 @@ snapshots:
braces: 3.0.3
picomatch: 2.3.1
+ mimic-fn@2.1.0: {}
+
mimic-fn@4.0.0: {}
mimic-function@5.0.1: {}
+ min-indent@1.0.1: {}
+
minimatch@3.1.2:
dependencies:
brace-expansion: 1.1.11
@@ -5645,6 +9210,8 @@ snapshots:
minimist@1.2.8: {}
+ minipass@7.1.2: {}
+
motion-dom@12.4.10:
dependencies:
motion-utils: 12.4.10
@@ -5661,16 +9228,54 @@ snapshots:
ms@2.1.3: {}
+ msgpackr-extract@3.0.3:
+ dependencies:
+ node-gyp-build-optional-packages: 5.2.2
+ optionalDependencies:
+ '@msgpackr-extract/msgpackr-extract-darwin-arm64': 3.0.3
+ '@msgpackr-extract/msgpackr-extract-darwin-x64': 3.0.3
+ '@msgpackr-extract/msgpackr-extract-linux-arm': 3.0.3
+ '@msgpackr-extract/msgpackr-extract-linux-arm64': 3.0.3
+ '@msgpackr-extract/msgpackr-extract-linux-x64': 3.0.3
+ '@msgpackr-extract/msgpackr-extract-win32-x64': 3.0.3
+ optional: true
+
+ msgpackr@1.11.5:
+ optionalDependencies:
+ msgpackr-extract: 3.0.3
+
+ multipasta@0.2.7: {}
+
nanoid@3.3.8: {}
+ napi-postinstall@0.3.3: {}
+
natural-compare@1.4.0: {}
+ negotiator@1.0.0: {}
+
+ next-auth@5.0.0-beta.29(next@15.2.4(@babel/core@7.28.3)(@playwright/test@1.55.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react@19.0.0):
+ dependencies:
+ '@auth/core': 0.40.0
+ next: 15.2.4(@babel/core@7.28.3)(@playwright/test@1.55.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
+ react: 19.0.0
+
+ next-intl@4.3.5(next@15.2.4(@babel/core@7.28.3)(@playwright/test@1.55.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react@19.0.0)(typescript@5.7.3):
+ dependencies:
+ '@formatjs/intl-localematcher': 0.5.10
+ negotiator: 1.0.0
+ next: 15.2.4(@babel/core@7.28.3)(@playwright/test@1.55.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
+ react: 19.0.0
+ use-intl: 4.3.5(react@19.0.0)
+ optionalDependencies:
+ typescript: 5.7.3
+
next-themes@0.4.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0):
dependencies:
react: 19.0.0
react-dom: 19.0.0(react@19.0.0)
- next@15.2.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0):
+ next@15.2.4(@babel/core@7.28.3)(@playwright/test@1.55.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0):
dependencies:
'@next/env': 15.2.4
'@swc/counter': 0.1.3
@@ -5680,7 +9285,7 @@ snapshots:
postcss: 8.4.31
react: 19.0.0
react-dom: 19.0.0(react@19.0.0)
- styled-jsx: 5.1.6(react@19.0.0)
+ styled-jsx: 5.1.6(@babel/core@7.28.3)(react@19.0.0)
optionalDependencies:
'@next/swc-darwin-arm64': 15.2.4
'@next/swc-darwin-x64': 15.2.4
@@ -5690,15 +9295,45 @@ snapshots:
'@next/swc-linux-x64-musl': 15.2.4
'@next/swc-win32-arm64-msvc': 15.2.4
'@next/swc-win32-x64-msvc': 15.2.4
+ '@playwright/test': 1.55.0
sharp: 0.33.5
transitivePeerDependencies:
- '@babel/core'
- babel-plugin-macros
+ node-fetch-native@1.6.7: {}
+
+ node-gyp-build-optional-packages@5.2.2:
+ dependencies:
+ detect-libc: 2.0.3
+ optional: true
+
+ node-int64@0.4.0: {}
+
+ node-releases@2.0.19: {}
+
+ normalize-path@3.0.0: {}
+
+ npm-run-path@4.0.1:
+ dependencies:
+ path-key: 3.1.1
+
npm-run-path@5.3.0:
dependencies:
path-key: 4.0.0
+ nwsapi@2.2.21: {}
+
+ nypm@0.6.1:
+ dependencies:
+ citty: 0.1.6
+ consola: 3.4.2
+ pathe: 2.0.3
+ pkg-types: 2.3.0
+ tinyexec: 1.0.1
+
+ oauth4webapi@3.8.1: {}
+
object-assign@4.1.1: {}
object-inspect@1.13.4: {}
@@ -5740,6 +9375,16 @@ snapshots:
define-properties: 1.2.1
es-object-atoms: 1.1.1
+ ohash@2.0.11: {}
+
+ once@1.4.0:
+ dependencies:
+ wrappy: 1.0.2
+
+ onetime@5.1.2:
+ dependencies:
+ mimic-fn: 2.1.0
+
onetime@6.0.0:
dependencies:
mimic-fn: 4.0.0
@@ -5748,6 +9393,11 @@ snapshots:
dependencies:
mimic-function: 5.0.1
+ openai@5.16.0(ws@8.18.3)(zod@3.24.2):
+ optionalDependencies:
+ ws: 8.18.3
+ zod: 3.24.2
+
optionator@0.9.4:
dependencies:
deep-is: 0.1.4
@@ -5763,26 +9413,60 @@ snapshots:
object-keys: 1.1.1
safe-push-apply: 1.0.0
+ p-limit@2.3.0:
+ dependencies:
+ p-try: 2.2.0
+
p-limit@3.1.0:
dependencies:
yocto-queue: 0.1.0
+ p-locate@4.1.0:
+ dependencies:
+ p-limit: 2.3.0
+
p-locate@5.0.0:
dependencies:
p-limit: 3.1.0
+ p-try@2.2.0: {}
+
+ package-json-from-dist@1.0.1: {}
+
parent-module@1.0.1:
dependencies:
callsites: 3.1.0
+ parse-json@5.2.0:
+ dependencies:
+ '@babel/code-frame': 7.27.1
+ error-ex: 1.3.2
+ json-parse-even-better-errors: 2.3.1
+ lines-and-columns: 1.2.4
+
+ parse5@7.3.0:
+ dependencies:
+ entities: 6.0.1
+
path-exists@4.0.0: {}
+ path-is-absolute@1.0.1: {}
+
path-key@3.1.1: {}
path-key@4.0.0: {}
path-parse@1.0.7: {}
+ path-scurry@1.11.1:
+ dependencies:
+ lru-cache: 10.4.3
+ minipass: 7.1.2
+
+ pathe@2.0.3: {}
+
+ perfect-debounce@1.0.0: {}
+
picocolors@1.1.1: {}
picomatch@2.3.1: {}
@@ -5791,6 +9475,26 @@ snapshots:
pidtree@0.6.0: {}
+ pirates@4.0.7: {}
+
+ pkg-dir@4.2.0:
+ dependencies:
+ find-up: 4.1.0
+
+ pkg-types@2.3.0:
+ dependencies:
+ confbox: 0.2.2
+ exsolve: 1.0.7
+ pathe: 2.0.3
+
+ playwright-core@1.55.0: {}
+
+ playwright@1.55.0:
+ dependencies:
+ playwright-core: 1.55.0
+ optionalDependencies:
+ fsevents: 2.3.2
+
possible-typed-array-names@1.1.0: {}
postcss@8.4.31:
@@ -5805,6 +9509,12 @@ snapshots:
picocolors: 1.1.1
source-map-js: 1.2.1
+ preact-render-to-string@6.5.11(preact@10.24.3):
+ dependencies:
+ preact: 10.24.3
+
+ preact@10.24.3: {}
+
prelude-ls@1.2.1: {}
prettier-linter-helpers@1.0.0:
@@ -5813,6 +9523,27 @@ snapshots:
prettier@3.5.2: {}
+ pretty-format@27.5.1:
+ dependencies:
+ ansi-regex: 5.0.1
+ ansi-styles: 5.2.0
+ react-is: 17.0.2
+
+ pretty-format@30.0.5:
+ dependencies:
+ '@jest/schemas': 30.0.5
+ ansi-styles: 5.2.0
+ react-is: 18.3.1
+
+ prisma@6.15.0(typescript@5.7.3):
+ dependencies:
+ '@prisma/config': 6.15.0
+ '@prisma/engines': 6.15.0
+ optionalDependencies:
+ typescript: 5.7.3
+ transitivePeerDependencies:
+ - magicast
+
prop-types@15.8.1:
dependencies:
loose-envify: 1.4.0
@@ -5821,8 +9552,17 @@ snapshots:
punycode@2.3.1: {}
+ pure-rand@6.1.0: {}
+
+ pure-rand@7.0.1: {}
+
queue-microtask@1.2.3: {}
+ rc9@2.1.2:
+ dependencies:
+ defu: 6.1.4
+ destr: 2.0.5
+
react-day-picker@8.10.1(date-fns@4.1.0)(react@19.0.0):
dependencies:
date-fns: 4.1.0
@@ -5859,6 +9599,8 @@ snapshots:
react-is@16.13.1: {}
+ react-is@17.0.2: {}
+
react-is@18.3.1: {}
react-remove-scroll-bar@2.3.8(@types/react@19.0.10)(react@19.0.0):
@@ -5923,6 +9665,8 @@ snapshots:
react@19.0.0: {}
+ readdirp@4.1.2: {}
+
recharts-scale@0.4.5:
dependencies:
decimal.js-light: 2.5.1
@@ -5940,6 +9684,11 @@ snapshots:
tiny-invariant: 1.3.3
victory-vendor: 36.9.2
+ redent@3.0.0:
+ dependencies:
+ indent-string: 4.0.0
+ strip-indent: 3.0.0
+
redux@4.2.1:
dependencies:
'@babel/runtime': 7.26.9
@@ -5966,8 +9715,16 @@ snapshots:
gopd: 1.2.0
set-function-name: 2.0.2
+ require-directory@2.1.1: {}
+
+ resolve-cwd@3.0.0:
+ dependencies:
+ resolve-from: 5.0.0
+
resolve-from@4.0.0: {}
+ resolve-from@5.0.0: {}
+
resolve-pkg-maps@1.0.0: {}
resolve@1.22.10:
@@ -5991,6 +9748,8 @@ snapshots:
rfdc@1.4.1: {}
+ rrweb-cssom@0.8.0: {}
+
run-parallel@1.2.0:
dependencies:
queue-microtask: 1.2.3
@@ -6014,12 +9773,20 @@ snapshots:
es-errors: 1.3.0
is-regex: 1.2.1
+ safer-buffer@2.1.2: {}
+
+ saxes@6.0.0:
+ dependencies:
+ xmlchars: 2.2.0
+
scheduler@0.25.0: {}
semver@6.3.1: {}
semver@7.7.1: {}
+ semver@7.7.2: {}
+
set-function-length@1.2.2:
dependencies:
define-data-property: 1.1.4
@@ -6103,6 +9870,8 @@ snapshots:
side-channel-map: 1.0.1
side-channel-weakmap: 1.0.2
+ signal-exit@3.0.7: {}
+
signal-exit@4.1.0: {}
simple-swizzle@0.2.2:
@@ -6110,6 +9879,8 @@ snapshots:
is-arrayish: 0.3.2
optional: true
+ slash@3.0.0: {}
+
slice-ansi@5.0.0:
dependencies:
ansi-styles: 6.2.1
@@ -6127,12 +9898,44 @@ snapshots:
source-map-js@1.2.1: {}
+ source-map-support@0.5.13:
+ dependencies:
+ buffer-from: 1.1.2
+ source-map: 0.6.1
+
+ source-map@0.6.1: {}
+
+ sprintf-js@1.0.3: {}
+
+ sqids@0.3.0: {}
+
stable-hash@0.0.4: {}
+ stack-utils@2.0.6:
+ dependencies:
+ escape-string-regexp: 2.0.0
+
streamsearch@1.1.0: {}
string-argv@0.3.2: {}
+ string-length@4.0.2:
+ dependencies:
+ char-regex: 1.0.2
+ strip-ansi: 6.0.1
+
+ string-width@4.2.3:
+ dependencies:
+ emoji-regex: 8.0.0
+ is-fullwidth-code-point: 3.0.0
+ strip-ansi: 6.0.1
+
+ string-width@5.1.2:
+ dependencies:
+ eastasianwidth: 0.2.0
+ emoji-regex: 9.2.2
+ strip-ansi: 7.1.0
+
string-width@7.2.0:
dependencies:
emoji-regex: 10.4.0
@@ -6189,27 +9992,51 @@ snapshots:
define-properties: 1.2.1
es-object-atoms: 1.1.1
+ strip-ansi@6.0.1:
+ dependencies:
+ ansi-regex: 5.0.1
+
strip-ansi@7.1.0:
dependencies:
ansi-regex: 6.1.0
strip-bom@3.0.0: {}
+ strip-bom@4.0.0: {}
+
+ strip-final-newline@2.0.0: {}
+
strip-final-newline@3.0.0: {}
+ strip-indent@3.0.0:
+ dependencies:
+ min-indent: 1.0.1
+
strip-json-comments@3.1.1: {}
- styled-jsx@5.1.6(react@19.0.0):
+ styled-jsx@5.1.6(@babel/core@7.28.3)(react@19.0.0):
dependencies:
client-only: 0.0.1
react: 19.0.0
+ optionalDependencies:
+ '@babel/core': 7.28.3
supports-color@7.2.0:
dependencies:
has-flag: 4.0.0
+ supports-color@8.1.1:
+ dependencies:
+ has-flag: 4.0.0
+
supports-preserve-symlinks-flag@1.0.0: {}
+ symbol-tree@3.2.4: {}
+
+ synckit@0.11.11:
+ dependencies:
+ '@pkgr/core': 0.2.9
+
synckit@0.9.2:
dependencies:
'@pkgr/core': 0.1.1
@@ -6225,17 +10052,41 @@ snapshots:
tapable@2.2.1: {}
+ test-exclude@6.0.0:
+ dependencies:
+ '@istanbuljs/schema': 0.1.3
+ glob: 7.2.3
+ minimatch: 3.1.2
+
tiny-invariant@1.3.3: {}
+ tinyexec@1.0.1: {}
+
tinyglobby@0.2.12:
dependencies:
fdir: 6.4.3(picomatch@4.0.2)
picomatch: 4.0.2
+ tldts-core@6.1.86: {}
+
+ tldts@6.1.86:
+ dependencies:
+ tldts-core: 6.1.86
+
+ tmpl@1.0.5: {}
+
to-regex-range@5.0.1:
dependencies:
is-number: 7.0.0
+ tough-cookie@5.1.2:
+ dependencies:
+ tldts: 6.1.86
+
+ tr46@5.1.1:
+ dependencies:
+ punycode: 2.3.1
+
ts-api-utils@2.0.1(typescript@5.7.3):
dependencies:
typescript: 5.7.3
@@ -6249,10 +10100,21 @@ snapshots:
tslib@2.8.1: {}
+ tsx@4.20.5:
+ dependencies:
+ esbuild: 0.25.9
+ get-tsconfig: 4.10.0
+ optionalDependencies:
+ fsevents: 2.3.3
+
type-check@0.4.0:
dependencies:
prelude-ls: 1.2.1
+ type-detect@4.0.8: {}
+
+ type-fest@0.21.3: {}
+
typed-array-buffer@1.0.3:
dependencies:
call-bound: 1.0.3
@@ -6297,6 +10159,47 @@ snapshots:
undici-types@6.19.8: {}
+ unrs-resolver@1.11.1:
+ dependencies:
+ napi-postinstall: 0.3.3
+ optionalDependencies:
+ '@unrs/resolver-binding-android-arm-eabi': 1.11.1
+ '@unrs/resolver-binding-android-arm64': 1.11.1
+ '@unrs/resolver-binding-darwin-arm64': 1.11.1
+ '@unrs/resolver-binding-darwin-x64': 1.11.1
+ '@unrs/resolver-binding-freebsd-x64': 1.11.1
+ '@unrs/resolver-binding-linux-arm-gnueabihf': 1.11.1
+ '@unrs/resolver-binding-linux-arm-musleabihf': 1.11.1
+ '@unrs/resolver-binding-linux-arm64-gnu': 1.11.1
+ '@unrs/resolver-binding-linux-arm64-musl': 1.11.1
+ '@unrs/resolver-binding-linux-ppc64-gnu': 1.11.1
+ '@unrs/resolver-binding-linux-riscv64-gnu': 1.11.1
+ '@unrs/resolver-binding-linux-riscv64-musl': 1.11.1
+ '@unrs/resolver-binding-linux-s390x-gnu': 1.11.1
+ '@unrs/resolver-binding-linux-x64-gnu': 1.11.1
+ '@unrs/resolver-binding-linux-x64-musl': 1.11.1
+ '@unrs/resolver-binding-wasm32-wasi': 1.11.1
+ '@unrs/resolver-binding-win32-arm64-msvc': 1.11.1
+ '@unrs/resolver-binding-win32-ia32-msvc': 1.11.1
+ '@unrs/resolver-binding-win32-x64-msvc': 1.11.1
+
+ update-browserslist-db@1.1.3(browserslist@4.25.4):
+ dependencies:
+ browserslist: 4.25.4
+ escalade: 3.2.0
+ picocolors: 1.1.1
+
+ uploadthing@7.7.4(next@15.2.4(@babel/core@7.28.3)(@playwright/test@1.55.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(tailwindcss@4.0.8):
+ dependencies:
+ '@effect/platform': 0.90.3(effect@3.17.7)
+ '@standard-schema/spec': 1.0.0-beta.4
+ '@uploadthing/mime-types': 0.3.6
+ '@uploadthing/shared': 7.1.10
+ effect: 3.17.7
+ optionalDependencies:
+ next: 15.2.4(@babel/core@7.28.3)(@playwright/test@1.55.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
+ tailwindcss: 4.0.8
+
uri-js@4.4.1:
dependencies:
punycode: 2.3.1
@@ -6308,6 +10211,13 @@ snapshots:
optionalDependencies:
'@types/react': 19.0.10
+ use-intl@4.3.5(react@19.0.0):
+ dependencies:
+ '@formatjs/fast-memoize': 2.2.7
+ '@schummar/icu-type-parser': 1.21.5
+ intl-messageformat: 10.7.16
+ react: 19.0.0
+
use-sidecar@1.1.3(@types/react@19.0.10)(react@19.0.0):
dependencies:
detect-node-es: 1.1.0
@@ -6323,6 +10233,12 @@ snapshots:
uuid@11.1.0: {}
+ v8-to-istanbul@9.3.0:
+ dependencies:
+ '@jridgewell/trace-mapping': 0.3.30
+ '@types/istanbul-lib-coverage': 2.0.6
+ convert-source-map: 2.0.0
+
victory-vendor@36.9.2:
dependencies:
'@types/d3-array': 3.2.1
@@ -6340,6 +10256,27 @@ snapshots:
d3-time: 3.1.0
d3-timer: 3.0.1
+ w3c-xmlserializer@5.0.0:
+ dependencies:
+ xml-name-validator: 5.0.0
+
+ walker@1.0.8:
+ dependencies:
+ makeerror: 1.0.12
+
+ webidl-conversions@7.0.0: {}
+
+ whatwg-encoding@3.1.1:
+ dependencies:
+ iconv-lite: 0.6.3
+
+ whatwg-mimetype@4.0.0: {}
+
+ whatwg-url@14.2.0:
+ dependencies:
+ tr46: 5.1.1
+ webidl-conversions: 7.0.0
+
which-boxed-primitive@1.1.1:
dependencies:
is-bigint: 1.1.0
@@ -6386,14 +10323,55 @@ snapshots:
word-wrap@1.2.5: {}
+ wrap-ansi@7.0.0:
+ dependencies:
+ ansi-styles: 4.3.0
+ string-width: 4.2.3
+ strip-ansi: 6.0.1
+
+ wrap-ansi@8.1.0:
+ dependencies:
+ ansi-styles: 6.2.1
+ string-width: 5.1.2
+ strip-ansi: 7.1.0
+
wrap-ansi@9.0.0:
dependencies:
ansi-styles: 6.2.1
string-width: 7.2.0
strip-ansi: 7.1.0
+ wrappy@1.0.2: {}
+
+ write-file-atomic@5.0.1:
+ dependencies:
+ imurmurhash: 0.1.4
+ signal-exit: 4.1.0
+
+ ws@8.18.3: {}
+
+ xml-name-validator@5.0.0: {}
+
+ xmlchars@2.2.0: {}
+
+ y18n@5.0.8: {}
+
+ yallist@3.1.1: {}
+
yaml@2.7.0: {}
+ yargs-parser@21.1.1: {}
+
+ yargs@17.7.2:
+ dependencies:
+ cliui: 8.0.1
+ escalade: 3.2.0
+ get-caller-file: 2.0.5
+ require-directory: 2.1.1
+ string-width: 4.2.3
+ y18n: 5.0.8
+ yargs-parser: 21.1.1
+
yocto-queue@0.1.0: {}
zod@3.24.2: {}
diff --git a/prisma/migrations/20250901064406_update_schema/migration.sql b/prisma/migrations/20250901064406_update_schema/migration.sql
new file mode 100644
index 0000000..0b1087a
--- /dev/null
+++ b/prisma/migrations/20250901064406_update_schema/migration.sql
@@ -0,0 +1,178 @@
+-- CreateEnum
+CREATE TYPE "public"."OrgRole" AS ENUM ('ADMIN', 'MEMBER');
+
+-- CreateTable
+CREATE TABLE "public"."User" (
+ "id" TEXT NOT NULL,
+ "name" TEXT,
+ "email" TEXT NOT NULL,
+ "emailVerified" TIMESTAMP(3),
+ "image" TEXT,
+ "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" TIMESTAMP(3) NOT NULL,
+
+ CONSTRAINT "User_pkey" PRIMARY KEY ("id")
+);
+
+-- CreateTable
+CREATE TABLE "public"."Account" (
+ "id" TEXT NOT NULL,
+ "userId" TEXT NOT NULL,
+ "type" TEXT NOT NULL,
+ "provider" TEXT NOT NULL,
+ "providerAccountId" TEXT NOT NULL,
+ "refresh_token" TEXT,
+ "access_token" TEXT,
+ "expires_at" INTEGER,
+ "token_type" TEXT,
+ "scope" TEXT,
+ "id_token" TEXT,
+ "session_state" TEXT,
+ "oauth_token_secret" TEXT,
+ "oauth_token" TEXT,
+
+ CONSTRAINT "Account_pkey" PRIMARY KEY ("id")
+);
+
+-- CreateTable
+CREATE TABLE "public"."Session" (
+ "id" TEXT NOT NULL,
+ "sessionToken" TEXT NOT NULL,
+ "userId" TEXT NOT NULL,
+ "expires" TIMESTAMP(3) NOT NULL,
+
+ CONSTRAINT "Session_pkey" PRIMARY KEY ("id")
+);
+
+-- CreateTable
+CREATE TABLE "public"."VerificationToken" (
+ "identifier" TEXT NOT NULL,
+ "token" TEXT NOT NULL,
+ "expires" TIMESTAMP(3) NOT NULL
+);
+
+-- CreateTable
+CREATE TABLE "public"."Organization" (
+ "id" TEXT NOT NULL,
+ "name" TEXT NOT NULL,
+ "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" TIMESTAMP(3) NOT NULL,
+
+ CONSTRAINT "Organization_pkey" PRIMARY KEY ("id")
+);
+
+-- CreateTable
+CREATE TABLE "public"."Membership" (
+ "id" TEXT NOT NULL,
+ "userId" TEXT NOT NULL,
+ "organizationId" TEXT NOT NULL,
+ "role" "public"."OrgRole" NOT NULL,
+ "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" TIMESTAMP(3) NOT NULL,
+
+ CONSTRAINT "Membership_pkey" PRIMARY KEY ("id")
+);
+
+-- CreateTable
+CREATE TABLE "public"."Campaign" (
+ "id" TEXT NOT NULL,
+ "name" TEXT NOT NULL,
+ "description" TEXT,
+ "organizationId" TEXT NOT NULL,
+ "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" TIMESTAMP(3) NOT NULL,
+
+ CONSTRAINT "Campaign_pkey" PRIMARY KEY ("id")
+);
+
+-- CreateTable
+CREATE TABLE "public"."Content" (
+ "id" TEXT NOT NULL,
+ "title" TEXT NOT NULL,
+ "body" TEXT,
+ "campaignId" TEXT NOT NULL,
+ "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" TIMESTAMP(3) NOT NULL,
+
+ CONSTRAINT "Content_pkey" PRIMARY KEY ("id")
+);
+
+-- CreateTable
+CREATE TABLE "public"."Asset" (
+ "id" TEXT NOT NULL,
+ "url" TEXT NOT NULL,
+ "type" TEXT NOT NULL,
+ "contentId" TEXT NOT NULL,
+ "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" TIMESTAMP(3) NOT NULL,
+
+ CONSTRAINT "Asset_pkey" PRIMARY KEY ("id")
+);
+
+-- CreateTable
+CREATE TABLE "public"."Schedule" (
+ "id" TEXT NOT NULL,
+ "date" TIMESTAMP(3) NOT NULL,
+ "status" TEXT NOT NULL,
+ "campaignId" TEXT NOT NULL,
+ "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" TIMESTAMP(3) NOT NULL,
+
+ CONSTRAINT "Schedule_pkey" PRIMARY KEY ("id")
+);
+
+-- CreateTable
+CREATE TABLE "public"."AnalyticsEvent" (
+ "id" TEXT NOT NULL,
+ "event" TEXT NOT NULL,
+ "data" JSONB,
+ "userId" TEXT,
+ "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
+
+ CONSTRAINT "AnalyticsEvent_pkey" PRIMARY KEY ("id")
+);
+
+-- CreateIndex
+CREATE UNIQUE INDEX "User_email_key" ON "public"."User"("email");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "Account_provider_providerAccountId_key" ON "public"."Account"("provider", "providerAccountId");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "Session_sessionToken_key" ON "public"."Session"("sessionToken");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "VerificationToken_token_key" ON "public"."VerificationToken"("token");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "VerificationToken_identifier_token_key" ON "public"."VerificationToken"("identifier", "token");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "Membership_userId_organizationId_key" ON "public"."Membership"("userId", "organizationId");
+
+-- AddForeignKey
+ALTER TABLE "public"."Account" ADD CONSTRAINT "Account_userId_fkey" FOREIGN KEY ("userId") REFERENCES "public"."User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
+
+-- AddForeignKey
+ALTER TABLE "public"."Session" ADD CONSTRAINT "Session_userId_fkey" FOREIGN KEY ("userId") REFERENCES "public"."User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
+
+-- AddForeignKey
+ALTER TABLE "public"."Membership" ADD CONSTRAINT "Membership_userId_fkey" FOREIGN KEY ("userId") REFERENCES "public"."User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
+
+-- AddForeignKey
+ALTER TABLE "public"."Membership" ADD CONSTRAINT "Membership_organizationId_fkey" FOREIGN KEY ("organizationId") REFERENCES "public"."Organization"("id") ON DELETE CASCADE ON UPDATE CASCADE;
+
+-- AddForeignKey
+ALTER TABLE "public"."Campaign" ADD CONSTRAINT "Campaign_organizationId_fkey" FOREIGN KEY ("organizationId") REFERENCES "public"."Organization"("id") ON DELETE CASCADE ON UPDATE CASCADE;
+
+-- AddForeignKey
+ALTER TABLE "public"."Content" ADD CONSTRAINT "Content_campaignId_fkey" FOREIGN KEY ("campaignId") REFERENCES "public"."Campaign"("id") ON DELETE CASCADE ON UPDATE CASCADE;
+
+-- AddForeignKey
+ALTER TABLE "public"."Asset" ADD CONSTRAINT "Asset_contentId_fkey" FOREIGN KEY ("contentId") REFERENCES "public"."Content"("id") ON DELETE CASCADE ON UPDATE CASCADE;
+
+-- AddForeignKey
+ALTER TABLE "public"."Schedule" ADD CONSTRAINT "Schedule_campaignId_fkey" FOREIGN KEY ("campaignId") REFERENCES "public"."Campaign"("id") ON DELETE CASCADE ON UPDATE CASCADE;
+
+-- AddForeignKey
+ALTER TABLE "public"."AnalyticsEvent" ADD CONSTRAINT "AnalyticsEvent_userId_fkey" FOREIGN KEY ("userId") REFERENCES "public"."User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
diff --git a/prisma/migrations/migration_lock.toml b/prisma/migrations/migration_lock.toml
new file mode 100644
index 0000000..044d57c
--- /dev/null
+++ b/prisma/migrations/migration_lock.toml
@@ -0,0 +1,3 @@
+# Please do not edit this file manually
+# It should be added in your version-control system (e.g., Git)
+provider = "postgresql"
diff --git a/prisma/schema.prisma b/prisma/schema.prisma
new file mode 100644
index 0000000..5e886b8
--- /dev/null
+++ b/prisma/schema.prisma
@@ -0,0 +1,157 @@
+generator client {
+ provider = "prisma-client-js"
+}
+
+datasource db {
+ provider = "postgresql"
+ url = env("DATABASE_URL")
+}
+
+// NextAuth models
+model User {
+ id String @id @default(cuid())
+ name String?
+ email String @unique
+ password String?
+ emailVerified DateTime?
+ image String?
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ accounts Account[]
+ sessions Session[]
+ memberships Membership[]
+ analyticsEvents AnalyticsEvent[]
+}
+
+model Account {
+ id String @id @default(cuid())
+ userId String
+ type String
+ provider String
+ providerAccountId String
+ refresh_token String? @db.Text
+ access_token String? @db.Text
+ expires_at Int?
+ token_type String?
+ scope String?
+ id_token String? @db.Text
+ session_state String?
+ oauth_token_secret String?
+ oauth_token String?
+ user User @relation(fields: [userId], references: [id], onDelete: Cascade)
+
+ @@unique([provider, providerAccountId])
+}
+
+model Session {
+ id String @id @default(cuid())
+ sessionToken String @unique
+ userId String
+ expires DateTime
+ user User @relation(fields: [userId], references: [id], onDelete: Cascade)
+}
+
+model VerificationToken {
+ identifier String
+ token String @unique
+ expires DateTime
+
+ @@unique([identifier, token])
+}
+
+// App models
+model Organization {
+ id String @id @default(cuid())
+ name String
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ memberships Membership[]
+ campaigns Campaign[]
+ analyticsEvents AnalyticsEvent[]
+}
+
+model Membership {
+ id String @id @default(cuid())
+ userId String
+ organizationId String
+ role OrgRole
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ user User @relation(fields: [userId], references: [id], onDelete: Cascade)
+ organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade)
+
+ @@unique([userId, organizationId])
+}
+
+enum OrgRole {
+ ADMIN
+ BRAND_OWNER
+ CREATOR
+}
+
+model Campaign {
+ id String @id @default(cuid())
+ name String
+ description String?
+ organizationId String
+ organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade)
+ contents Content[]
+ schedules Schedule[]
+ analyticsEvents AnalyticsEvent[]
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+}
+
+model Content {
+ id String @id @default(cuid())
+ title String
+ body String?
+ campaignId String
+ campaign Campaign @relation(fields: [campaignId], references: [id], onDelete: Cascade)
+ assets Asset[]
+ schedules Schedule[]
+ analyticsEvents AnalyticsEvent[]
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+}
+
+model Asset {
+ id String @id @default(cuid())
+ url String
+ name String?
+ type String
+ size Int?
+ description String?
+ tags String[]
+ contentId String
+ content Content @relation(fields: [contentId], references: [id], onDelete: Cascade)
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+}
+
+model Schedule {
+ id String @id @default(cuid())
+ date DateTime
+ status String
+ campaignId String
+ campaign Campaign @relation(fields: [campaignId], references: [id], onDelete: Cascade)
+ contentId String?
+ content Content? @relation(fields: [contentId], references: [id], onDelete: SetNull)
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+}
+
+model AnalyticsEvent {
+ id String @id @default(cuid())
+ event String
+ data Json?
+ userId String?
+ user User? @relation(fields: [userId], references: [id])
+ organizationId String?
+ organization Organization? @relation(fields: [organizationId], references: [id])
+ campaignId String?
+ campaign Campaign? @relation(fields: [campaignId], references: [id])
+ contentId String?
+ content Content? @relation(fields: [contentId], references: [id])
+ createdAt DateTime @default(now())
+}
diff --git a/spec.md b/spec.md
new file mode 100644
index 0000000..a79e705
--- /dev/null
+++ b/spec.md
@@ -0,0 +1,688 @@
+Comprehensive Analysis & Migration Plan for the AiM Platform
+
+1. Tóm tắt điều hành (Executive Summary)
+
+Repository hiện tại (ioqwfoihas, tên Circle) là một ứng dụng Next.js lấy cảm hứng từ công cụ quản lý dự án Linear. Ứng dụng theo dõi issues, projects và teams với UI hiện đại, responsive. package.json cho thấy đây là client-only stack với các dependencies như Next.js 15, React 19, Tailwind CSS, Radix UI, Zustand, Recharts và Zod. Chưa có database hay API layer; dữ liệu đang nằm ở local state.
+
+AiM hướng tới chuyển hoá codebase này thành một AI-powered content platform phục vụ Creators và Brands. Hệ thống tương lai cần hỗ trợ role-based dashboards, campaign planning, AI-assisted content creation, scheduling, asset management, analytics và administrative controls. Báo cáo này phân tích repo, map năng lực hiện tại sang yêu cầu AiM, xác định gaps/risks, đề xuất target architecture và data model, đồng thời cung cấp roadmap migration với 150+ nhiệm vụ khả dụng ngay.
+
+2. Kiểm kê Repo & Tech Stack (Repo Inventory & Tech Stack)
+ Cây thư mục (ước lượng, depth ≤3)
+
+Ghi chú: do không có listing đầy đủ, một số đường dẫn được suy luận theo pattern Linear/Next.js phổ biến.
+
+ioqwfoihas/
+├─ README.md
+├─ package.json
+├─ tsconfig.json
+├─ next.config.ts
+├─ app/
+│ ├─ page.tsx
+│ ├─ layout.tsx
+│ ├─ lndev-ui/
+│ │ ├─ team/[team]/[view]/
+│ │ │ ├─ page.tsx
+│ │ │ └─ layout.tsx
+│ │ ├─ settings/…
+│ │ └─ …
+│ └─ (auth)/
+├─ components/
+│ ├─ ui/
+│ ├─ board/
+│ ├─ modal/
+│ ├─ chart/
+│ └─ navigation/
+├─ lib/
+│ ├─ store/
+│ ├─ hooks/
+│ └─ utils.ts
+├─ public/
+├─ styles/
+├─ .husky/
+└─ .eslintrc, .prettierrc
+
+Công nghệ & phiên bản (Tech & Versions)
+Khu vực Chi tiết
+Framework Next.js 15 (App Router, React Server Components).
+Ngôn ngữ TypeScript (strict).
+UI Library shadcn/ui (trên nền Radix UI).
+Styling Tailwind CSS v4 + tailwindcss-animate.
+State Mgmt Zustand cho client state.
+Forms & Validation React Hook Form + Zod.
+Charts Recharts.
+Utilities clsx, date-fns, uuid, …
+Testing Chưa có Jest/Vitest/Cypress.
+CI & Scripts Husky, lint-staged, ESLint, Prettier.
+Database/ORM Chưa có (no Prisma/ORM). 3) Đánh giá kiến trúc (Architecture Assessment)
+
+Single-app: cấu trúc Next.js thuần, không monorepo/workspaces.
+
+Client-only: không có API routes/server logic; dữ liệu nằm ở Zustand → không phù hợp cho AiM (cần persistence).
+
+UI/UX: responsive, dark/light, sidebars, modals; dùng shadcn/ui + Radix; có command palette (cmdk) và Recharts có thể tái sử dụng.
+
+Routing: App Router; root page redirect sang board; dynamic routes theo team/view.
+
+State: Zustand cho local data; để lên AiM cần React Query (data fetching/cache) + backend.
+
+Auth: Chưa có authentication/roles.
+
+Config/Env: Tối thiểu; chưa có .env.example hay secret management.
+
+Quality/DX: Có lint/format cơ bản; chưa có tests/CI đầy đủ.
+
+Security: Không có ranh giới bảo mật (no auth, no server validation).
+
+4. Mapping sang AiM (Reuse / Extend / Replace / Remove)
+ Module/Screen hiện có Mapping sang AiM Action Lý do
+ UI Shell (layout, navigation) Base dashboard cho mọi role Reuse & Extend Giữ responsive & theme; mở rộng navigation: Campaigns, Content Studio, Calendar, Assets, Analytics, Settings.
+ Team/Project Boards Campaign Kanban Extend Chuyển issue card → campaign card (Draft/Active/Completed), drag-drop persist.
+ List/Issue Views Content lists trong campaign Replace Thay issue list → content items; thêm trạng thái AI (Draft/AI-generated/Approved).
+ Zustand Stores (mock data) Server data qua React Query Replace Zustand chỉ giữ UI state; data persist qua Postgres/API.
+ Modals & Forms Wizards tạo Campaign/Content Reuse & Extend Reuse modal patterns + multi-step, zod validation, AI suggestions.
+ Charts (Recharts) Campaign/Content analytics Reuse & Extend Nối analytics API, hiển thị metrics (impressions/CTR/ROI).
+ Command palette AI assistant & global search Extend Palette nhận prompt AI, thực thi lệnh (“Generate LinkedIn post for X”).
+ Auth/RBAC (missing) Auth & role-based access Add Thêm NextAuth + Prisma, roles: Creator/Brand/Admin (+Reviewer/Publisher nếu cần).
+ API & ORM (missing) API endpoints/tRPC + Prisma Add CRUD cho campaigns/contents/schedules/assets/analytics.
+ Tests/CI (missing) Testing & CI pipelines Add Unit/integration/e2e; GitHub Actions: lint, test, build, health check.
+ Assets (missing) Asset storage Add Upload → S3/UploadThing; Asset Library UI/API.
+ Analytics (missing) Event tracking & dashboards Add Thu thập events (view/click/conv), tổng hợp hiển thị.
+ AI (missing) AI content generation Add Server route gọi AI provider; UI để generate/refine/translate.
+ i18n (missing) Đa ngôn ngữ Extend Thêm next-intl (English/Vietnamese).
+ Settings (missing) Settings (profile/org/billing/AI) Add Trang cấu hình user/org, API keys, preferences, …
+5. Gaps, Risks & Mitigations
+ Gaps
+
+Persistence: chưa có DB → Prisma + Postgres (schema cho Users/Orgs/Campaign/Content/Asset/Schedule/Analytics).
+
+Auth & RBAC: thiếu → NextAuth + role enum/middleware.
+
+API layer: thiếu CRUD → API routes hoặc tRPC + zod validation.
+
+Testing/CI: thiếu → thêm Jest/Vitest, Playwright, GitHub Actions.
+
+Security: chưa có validation, rate limit, secrets → thêm server validation, rate limiting, secret mgmt.
+
+Observability: thiếu logs/monitoring → pino/winston, Sentry.
+
+i18n: English-only → next-intl.
+
+Scalability: dễ thành monolith → module boundaries, cân nhắc packages sau.
+
+Risks & Mitigations
+Risk Tác động Xác suất Giảm thiểu
+Migration phức tạp Dễ phát sinh bug Cao Chia nhỏ PR, giữ trạng thái chạy được, test tự động.
+Dependencies chưa ổn định (Next 15) Compatibility TB Pin version, thử nghiệm trước khi merge.
+Security (auth/upload) Lỗ hổng TB Lib an toàn, OWASP, rate limit, file-type validation.
+Hiệu năng (board nhiều items) Lag TB Pagination/virtualization, lazy load, React Query cache.
+Adoption/training Chậm triển khai TB Tài liệu, code samples, workshop.
+Compliance (GDPR, …) Rủi ro pháp lý Thấp Privacy by design, retention policy, consent. 6) Kiến trúc mục tiêu (Target Architecture for AiM)
+flowchart TD
+subgraph Client
+U[Creators/Brands/Admins] -->|Browser| FE[Next.js 15 App]
+FE -->|Fetch| API
+FE -->|Auth Hooks| AuthClient
+end
+subgraph Server
+API --> DB[(PostgreSQL via Prisma)]
+API --> AIService[(External AI API)]
+API --> Storage[(Asset Storage: S3/UploadThing)]
+API --> Analytics[(Analytics Service)]
+API --> RBAC[(RBAC Middleware)]
+AuthService[(NextAuth.js)] --> DB
+RBAC --> AuthService
+end
+Analytics --> DB
+FE -.->|WebSockets| Notifications[(Real-time Notifications)]
+
+Mô tả ngắn:
+
+Frontend (Next.js): server/client components; Zustand cho UI state; React Query để fetch/cache.
+
+API layer (Next API routes/tRPC): endpoints cho campaign/content/asset/schedule/analytics/ai; zod + RBAC middleware.
+
+Auth: NextAuth.js, session lưu DB.
+
+DB: PostgreSQL qua Prisma (migrations).
+
+AI Service: proxy tới provider (OpenAI/…).
+
+Asset Storage: S3/UploadThing, metadata trong DB.
+
+Analytics: thu thập & tổng hợp events.
+
+Real-time: WebSockets/Pusher (tuỳ chọn).
+
+Data model đề xuất (Proposed Data Model)
+Entity Fields chính Quan hệ
+User id, name, email (unique), passwordHash, role (creator/brand/admin/reviewer/publisher), organizationId, timestamps Thuộc Organization; tạo Campaign/Content/Schedule/Asset/AnalyticsEvent
+Organization id, name, slug, timestamps Có nhiều Users/Campaigns/Assets
+Campaign id, organizationId, createdById, name, description, status (draft/active/completed), budget, startDate, endDate, timestamps Thuộc Organization/User; có Contents/Schedules/AnalyticsEvents
+Content id, campaignId, authorId, assetId?, title, body, type, aiGenerated, status, metadata (JSON), timestamps Thuộc Campaign; tham chiếu Asset; có Schedules/AnalyticsEvents
+Asset id, organizationId, uploadedById, fileName, fileType, size, url, timestamps Thuộc Organization; liên kết nhiều Contents
+Schedule id, contentId, campaignId, scheduledAt, platform, status, createdById Lịch đăng cho Content trong Campaign
+AnalyticsEvent id, contentId, userId?, eventType, timestamp, metadata Log tương tác, dùng để tổng hợp
+Role (tuỳ chọn) id, name, permissions (JSON) Many-to-many với User nếu cần RBAC chi tiết
+UI shell & điều hướng theo role (Role-Based Navigation)
+
+Creator: Dashboard nhanh vào Campaigns, Content Studio, Calendar, Assets, Analytics; có AI assistant; hiển thị deadlines/assignments.
+
+Brand: Tổng quan campaigns, approval queue, budget/ROI; duyệt nội dung, review assets, giám sát lịch.
+
+Admin: Quản trị organizations/users/roles/settings; cấu hình billing/AI quotas.
+
+7. Kế hoạch Delta theo file (Delta Plan – File-level)
+
+Bảng ADD/MODIFY/REMOVE chi tiết — xem đầy đủ trong bản gốc; giữ nguyên danh sách đường dẫn và mô tả như đã đề xuất (Prisma schema, API routes, pages, components, workflows CI, Docker, scripts…).
+(Bản dưới đây giữ nguyên nội dung, chỉ chuyển diễn giải sang tiếng Việt; tên file/path giữ English.)
+
+ADD: prisma/schema.prisma, prisma/migrations/_, lib/prisma.ts, app/api/auth/[...nextauth]/route.ts, app/api/auth/register/route.ts, app/api/campaigns/_, app/api/contents/_, app/api/assets/_, app/api/schedules/_, app/api/analytics/_, app/api/ai/generate/route.ts, app/middleware.ts, lib/rbac.ts, lib/hooks/useCurrentUser.ts, (auth)/login, (auth)/register, (dashboard)/creator, (dashboard)/brand, (dashboard)/admin, campaigns/_, content/_, calendar/page.tsx, assets/page.tsx, settings/page.tsx, các components forms/ai/navigation/dashboard…, .env.example, .github/workflows/\*.yml, Dockerfile, docker-compose.yml, scripts/publish-worker.ts…
+
+MODIFY: package.json, tsconfig.json, next.config.ts, app/layout.tsx, app/page.tsx, components/board/_, components/navigation/_, styles/globals.css…
+
+REMOVE: mock data trong lib/store, routes cũ dưới lndev-ui không dùng, assets placeholder.
+
+8. Lộ trình 30/60/90 ngày (Roadmap)
+
+0–30 ngày: Nền tảng (Prisma/Postgres, Auth + RBAC, API cơ bản, Dashboard shell, CI tối thiểu, Docs).
+
+31–60 ngày: Tính năng chính (Campaign Kanban + Wizard, Content Studio + AI, Calendar & Scheduling, Asset Library, Analytics cơ bản, i18n, Testing).
+
+61–90 ngày: Nâng cao & polishing (RBAC chi tiết, Realtime notifications, Observability, Performance, Collaboration, Deployment, Extensibility).
+
+(Chi tiết từng hạng mục đã được giữ nguyên và diễn giải tiếng Việt ở phần backlog.)
+
+9. Backlog – To-Do chi tiết (≥150 tasks)
+
+Giữ nguyên cấu trúc Epic → Story → Task như bản gốc. Nội dung dưới đây được dịch phần diễn giải, giữ thuật ngữ gốc trong ngoặc cho dễ đọc.
+Mỗi task có: Acceptance Criteria, Files touched, Effort (S/M/L), Priority (P0–P3).
+
+Epic: Authentication & RBAC
+Story: Cài đặt & cấu hình NextAuth.js
+
+Cài dependencies Auth… (như bản gốc; acceptance/files/effort/priority giữ nguyên)
+Chú thích: dùng NextAuth (credentials provider), bcrypt, JWT.
+
+Tạo route app/api/auth/[...nextauth]/route.ts (credentials) với callbacks (session/JWT)…
+
+Hash password (lib/auth.ts) bằng bcrypt…
+
+Endpoint register tạo User + Organization…
+
+Bọc …
+
+Trang login (zod validation, signIn())…
+
+Trang register (tạo org, role mặc định)…
+
+Logout (signOut())…
+
+/api/auth/session trả user hiện tại…
+
+Story: Quản lý vai trò (Role Management & RBAC)
+
+lib/roles.ts khai báo enum roles…
+
+Thêm field role vào User (Prisma enum)…
+
+lib/rbac.ts helpers hasRole/hasPermission + tests…
+
+middleware.ts bảo vệ route theo session/role…
+
+Gán role khi register (first user = admin)…
+
+Role switcher (dev only)…
+
+Role-based navigation (Sidebar)…
+
+Role-based API checks…
+
+Epic: Database & Prisma
+Story: Định nghĩa schema
+
+npx prisma init…
+
+Models User/Organization…
+
+Campaign…
+
+Content…
+
+Asset…
+
+Schedule…
+
+AnalyticsEvent…
+
+(Tuỳ chọn) Role/UserRole…
+
+Story: Migrations & Seeding
+
+prisma migrate dev --name init…
+
+scripts/seed.ts (roles, admin, org mẫu, campaigns, content)…
+
+pnpm seed…
+
+Document DB setup trong README…
+
+Epic: API Layer
+Story: Campaign Endpoints
+
+GET /campaigns (pagination/search, RBAC)…
+
+POST /campaigns (zod, createdBy, status draft)…
+
+GET /campaigns/[id] (details + relations)…
+
+PUT /campaigns/[id]…
+
+DELETE /campaigns/[id] (cascade theo rule)…
+
+GET /campaigns/[id]/analytics (summary)…
+
+POST /campaigns/[id]/duplicate…
+
+Story: Content Endpoints
+
+GET /contents (filter status/type)…
+
+POST /contents (create)…
+
+GET /contents/[id] (asset/author/schedules)…
+
+PUT /contents/[id] (restrictions by role/status)…
+
+DELETE /contents/[id]…
+
+POST /contents/[id]/submit (submit for approval)…
+
+POST /contents/[id]/approve|reject (Brand role)…
+
+POST /ai/generate (OpenAI; cache; audit)…
+
+POST /ai/translate…
+
+POST /ai/summarise…
+
+Story: Asset Endpoints
+
+POST /assets (UploadThing/S3; validate type/size; metadata)…
+
+GET /assets (org scope; pagination/search)…
+
+DELETE /assets/[id] (prevent delete if in-use)…
+
+GET /assets/upload-url (pre-signed S3)…
+
+Story: Schedule Endpoints
+
+GET /schedules (filters)…
+
+POST /schedules (validate future; content must be approved)…
+
+PUT /schedules/[id]…
+
+POST /schedules/[id]/cancel…
+
+scripts/publish-worker.ts (cron publish + analytics + notifications)…
+
+Story: Analytics Endpoints
+
+POST /analytics (record event)…
+
+GET /analytics (filters)…
+
+GET /analytics/summary (aggregate)…
+
+GET /analytics/export (CSV/Excel; admin/brand only)…
+
+Epic: Frontend – Global Layout & Navigation
+Story: Providers & Setup
+
+React Query provider (QueryClientProvider, Hydrate)…
+
+next-intl (en/vi) + …
+
+Theme provider (dark/light)…
+
+Story: Sidebar & Topbar
+
+Sidebar (role-specific menus)…
+
+Topbar (search, notifications, user menu)…
+
+Command palette (global search + AI commands)…
+
+Notifications panel (Radix UI + realtime)…
+
+Epic: Dashboards
+Story: Creator Dashboard
+
+Summary cards (active campaigns, drafts, scheduled, impressions)…
+
+Campaign list…
+
+Quick actions…
+
+Draft reminders…
+
+AI suggestions widget…
+
+Story: Brand Dashboard
+
+Brand metrics cards (budget/ROI)…
+
+Approval queue…
+
+Budget vs ROI chart…
+
+Creator leaderboard…
+
+Campaign health summary…
+
+Story: Admin Dashboard
+
+UserTable (enable/disable)…
+
+OrgTable (rename/delete cascade)…
+
+Role manager (nếu dùng Role model)…
+
+Audit logs…
+
+Feature flags…
+
+Epic: Campaign Module
+Story: Campaign List & Board
+
+Campaign table (sort/filter/search)…
+
+Pagination/infinite scroll…
+
+Board view (Draft/Active/Completed; drag-drop persist)…
+
+Campaign detail (Overview/Content/Schedule/Analytics/Settings)…
+
+Create wizard (multi-step)…
+
+Duplicate…
+
+Delete confirm…
+
+Search debounce…
+
+Permissions UI…
+
+Epic: Content Module
+Story: Content Editor
+
+Rich text editor (TipTap)…
+
+AI assistant panel (prompt, rewrite, tone)…
+
+Auto-save drafts…
+
+Asset picker…
+
+Preview…
+
+Translate & summarise…
+
+Status management (Draft/Submitted/Approved/Published/Rejected)…
+
+Comments & versioning…
+
+Story: Content List & Cards
+
+Content list (trong Campaign)…
+
+Content card (badge, quick actions)…
+
+Filtering & search…
+
+Bulk actions…
+
+Epic: Calendar & Scheduling
+Story: Calendar View
+
+Calendar page (react-day-picker) — color-code theo platform…
+
+Schedule form modal (platform/date/time/timezone)…
+
+Timezone support (user preference, store UTC)…
+
+Recurring schedules (RRULE model)…
+
+Epic: Assets Module
+Story: Asset Library UI
+
+Assets page (search/filter/thumbnail)…
+
+Upload dialog (multi files, progress)…
+
+Asset detail drawer (preview, metadata, usage)…
+
+Asset usage indicator…
+
+Epic: Analytics Module
+Story: Analytics Dashboards
+
+Overview chart (7/30/90)…
+
+Campaign analytics tab (line/bar/pie)…
+
+Content analytics tab…
+
+Creator performance…
+
+Export analytics UI…
+
+Epic: Settings Module
+Story: User & Organization Settings
+
+Profile settings (name/email/password; AI usage)…
+
+Organization settings (slug/logo/default language)…
+
+Notification preferences…
+
+Billing & quotas (Stripe)…
+
+API keys management…
+
+Epic: Internationalisation
+Story: i18n
+
+Install next-intl (en/vi)…
+
+Create translation files…
+
+Refactor components dùng t('key')…
+
+Language switcher…
+
+Epic: Testing & Quality
+Story: Unit & Integration Tests
+
+Jest/Vitest setup…
+
+Tests cho utilities (auth, rbac, utils)…
+
+Tests forms & components…
+
+Tests API routes…
+
+Story: End-to-End Tests
+
+Playwright setup…
+
+e2e login…
+
+e2e create campaign…
+
+e2e content workflow…
+
+e2e schedule & publish…
+
+Epic: CI/CD & Observability
+Story: Continuous Integration
+
+ci.yml (lint/build/test)…
+
+e2e.yml (Playwright artifacts)…
+
+Health check (/api/health)…
+
+Story: Delivery & Deployment
+
+Dockerfile (Node 20; prisma migrate deploy)…
+
+docker-compose.yml (app + postgres + mailhog)…
+
+deploy.yml (push image, deploy staging/prod)…
+
+Story: Observability & Monitoring
+
+Logging (pino/winston)…
+
+Error tracking (Sentry)…
+
+/api/health…
+
+/api/metrics (Prometheus prom-client)…
+
+Epic: AI Integration
+Story: AI Services
+
+Select AI provider (đánh giá cost/perf/language)…
+
+AI proxy endpoint (/api/ai/generate) — prompt engineering, rate limit, cache…
+
+Prompt library (lib/prompts.ts)…
+
+AI usage tracking (model AIUsage hoặc gắn vào Analytics)…
+
+AI tone tuning (formal/friendly/professional)…
+
+Content idea generator (/api/ai/ideas)…
+
+Epic: Performance & Scalability
+Story: Optimisations
+
+Bundle analysis (next build --profile, dynamic imports)…
+
+Image optimization (, lazy)…
+
+Virtualization (lists >100 rows)…
+
+Caching & SWR (React Query strategies)…
+
+⚠️ Tổng số mục checklist vượt 150 (đủ chuẩn để tạo GitHub Issues ngay).
+
+10. CI/CD & Quality Gates
+
+Static Analysis (ESLint/Prettier, Husky pre-commit).
+
+Type Checking (tsc --noEmit trong CI).
+
+Unit & Integration Tests (≥80% cho core logic).
+
+E2E Tests (Playwright trên PR).
+
+Build & Health Check (ping /api/health).
+
+Code Review (branch protection + Conventional Commits).
+
+Secrets Management (GitHub Secrets, .env.example).
+
+CD Pipeline (deploy staging tự động; smoke test; promote to prod).
+
+11. .env & xử lý secrets (Secrets Handling)
+
+Tạo .env.example với các biến:
+
+DATABASE_URL="postgresql://aim_user:password@localhost:5432/aim_db"
+NEXTAUTH_SECRET="set-a-random-secret-here"
+NEXTAUTH_URL="http://localhost:3000"
+S3_BUCKET="aim-assets"
+S3_REGION="ap-southeast-1"
+S3_ACCESS_KEY_ID=""
+S3_SECRET_ACCESS_KEY=""
+AI_API_KEY=""
+PUBLIC_SITE_URL="http://localhost:3000"
+DEFAULT_LANGUAGE="en"
+
+# Optional
+
+SMTP_HOST=""
+SMTP_PORT=""
+SMTP_USER=""
+SMTP_PASS=""
+
+Dev sao chép .env.example → .env (được .gitignore).
+
+Prod dùng platform secrets (Vercel/AWS/GitHub Actions).
+
+Tránh log secrets; rotate định kỳ; least privilege.
+
+12. Câu hỏi mở (Open Questions)
+
+Stack Upgrade Tolerance: Giữ Next.js 15 hay cân nhắc Next.js 14 LTS để ổn định?
+
+Roles bổ sung: Có cần Reviewer/Publisher không?
+
+Compliance: Có yêu cầu GDPR/ISO cụ thể? (ảnh hưởng đến retention, consent, audit).
+
+13. Phụ lục (Appendix)
+ Scripts/Commands đề xuất
+
+pnpm prisma generate
+
+pnpm prisma migrate dev --name
+
+pnpm seed
+
+pnpm dev
+
+pnpm build
+
+pnpm test
+
+pnpm e2e
+
+node scripts/publish-worker.js
+
+Quy ước thư mục (Folder Conventions)
+
+app/ (App Router; groups theo role).
+
+components/ (UI tái sử dụng theo domain).
+
+lib/ (Prisma/RBAC/logger/metrics/prompts/hooks).
+
+prisma/ (schema + migrations).
+
+public/ (assets).
+
+scripts/ (seed/cron/test data).
+
+tests/ (unit/integration/e2e).
+
+Coding Guidelines
+
+TypeScript nghiêm ngặt, tránh any.
+
+Conventional Commits.
+
+ESLint + Prettier (Next preset).
+
+Ưu tiên Server Components; Client Components khi cần interactivity.
+
+React Query cho data fetching/cache.
+
+zod validate ở boundary (API/forms).
+
+A11y với Radix/ARIA.
+
+Viết tests cho components/APIs (ưu tiên critical paths).
diff --git a/test-results/.last-run.json b/test-results/.last-run.json
new file mode 100644
index 0000000..028d6db
--- /dev/null
+++ b/test-results/.last-run.json
@@ -0,0 +1,4 @@
+{
+ "status": "passed",
+ "failedTests": []
+}
diff --git a/tests/e2e/basic.spec.ts b/tests/e2e/basic.spec.ts
new file mode 100644
index 0000000..04deca2
--- /dev/null
+++ b/tests/e2e/basic.spec.ts
@@ -0,0 +1,21 @@
+import { test, expect } from '@playwright/test';
+
+test.describe('Basic functionality', () => {
+ test('should load the homepage', async ({ page }) => {
+ await page.goto('/');
+ await expect(page).toHaveTitle(/Circle/);
+ });
+
+ test('should have working navigation', async ({ page }) => {
+ await page.goto('/');
+ // Add more navigation tests based on your app structure
+ });
+
+ test('API health check', async ({ request }) => {
+ const response = await request.get('/api/health');
+ expect(response.ok()).toBeTruthy();
+
+ const data = await response.json();
+ expect(data).toHaveProperty('status');
+ });
+});
diff --git a/types/next-auth.d.ts b/types/next-auth.d.ts
new file mode 100644
index 0000000..d3074f7
--- /dev/null
+++ b/types/next-auth.d.ts
@@ -0,0 +1,12 @@
+import NextAuth from 'next-auth';
+
+declare module 'next-auth' {
+ interface Session {
+ user: {
+ id: string;
+ name?: string | null;
+ email?: string | null;
+ image?: string | null;
+ };
+ }
+}
diff --git a/vercel.json b/vercel.json
new file mode 100644
index 0000000..1bd5092
--- /dev/null
+++ b/vercel.json
@@ -0,0 +1,14 @@
+{
+ "buildCommand": "pnpm run db:generate && pnpm run build",
+ "devCommand": "pnpm run dev",
+ "installCommand": "pnpm install",
+ "framework": "nextjs",
+ "functions": {
+ "app/api/**/*.ts": {
+ "maxDuration": 30
+ }
+ },
+ "env": {
+ "NODE_ENV": "production"
+ }
+}