From 5689425232a0d41656e4f0b8b5fe1a84bf4fa67e Mon Sep 17 00:00:00 2001 From: Ricel Leite Date: Thu, 19 Feb 2026 01:53:23 -0300 Subject: [PATCH] feat: add config field to integrations, GITEA type, improved forms --- app/api/integrations.py | 14 +- app/api/issues.py | 39 +- app/api/settings.py | 60 ++- app/models/integration.py | 4 +- app/models/organization.py | 13 +- app/schemas/integration.py | 5 +- app/services/analysis.py | 224 ++++++-- frontend/dist/index.html | 4 +- frontend/src/pages/Integrations.jsx | 270 +++++++++- ...{index-Bw0JDVcx.css => index-4u66p920.css} | 2 +- frontend_build/assets/index-BY2tGtHO.js | 472 ----------------- frontend_build/assets/index-CfAFg710.js | 497 ++++++++++++++++++ frontend_build/index.html | 4 +- 13 files changed, 1023 insertions(+), 585 deletions(-) rename frontend_build/assets/{index-Bw0JDVcx.css => index-4u66p920.css} (50%) delete mode 100644 frontend_build/assets/index-BY2tGtHO.js create mode 100644 frontend_build/assets/index-CfAFg710.js diff --git a/app/api/integrations.py b/app/api/integrations.py index d50fde1..e60a955 100644 --- a/app/api/integrations.py +++ b/app/api/integrations.py @@ -35,29 +35,21 @@ async def create_integration( # Generate webhook secret webhook_secret = secrets.token_hex(32) - # Generate webhook URL - webhook_url = f"https://jira-fixer.startdata.com.br/api/webhooks/{org_id}/{integration_in.type.value}" - integration = Integration( organization_id=org_id, name=integration_in.name, type=integration_in.type, base_url=integration_in.base_url, - auth_type=integration_in.auth_type, api_key=integration_in.api_key, - api_secret=integration_in.api_secret, - webhook_url=webhook_url, webhook_secret=webhook_secret, callback_url=integration_in.callback_url, auto_analyze=integration_in.auto_analyze, - sync_comments=integration_in.sync_comments, - create_prs=integration_in.create_prs, - repositories=integration_in.repositories, - created_by_id=member.user_id, + config=integration_in.config or {}, status=IntegrationStatus.ACTIVE ) db.add(integration) - await db.flush() + await db.commit() + await db.refresh(integration) return integration diff --git a/app/api/issues.py b/app/api/issues.py index d3ece3a..8e15646 100644 --- a/app/api/issues.py +++ b/app/api/issues.py @@ -19,6 +19,7 @@ async def run_analysis(issue_id: int, db_url: str): """Background task to analyze issue.""" from sqlalchemy.ext.asyncio import create_async_engine, AsyncSession from sqlalchemy.orm import sessionmaker + from app.models.organization import Organization engine = create_async_engine(db_url) async_session = sessionmaker(engine, class_=AsyncSession, expire_on_commit=False) @@ -34,15 +35,30 @@ async def run_analysis(issue_id: int, db_url: str): await db.commit() try: - # Fixed repo for now (can be configured later via integration config) - repo = "startdata/cobol-sample-app" + # Get AI config from organization + ai_config = await AnalysisService.get_org_ai_config(db, issue.organization_id) - # Run analysis - analysis = await AnalysisService.analyze({ - "title": issue.title, - "description": issue.description, - "priority": issue.priority.value if issue.priority else "medium" - }, repo) + # Get integration to find associated repo + repo = "startdata/cobol-sample-app" # Default + if issue.integration_id: + intg_result = await db.execute( + select(Integration).where(Integration.id == issue.integration_id) + ) + integration = intg_result.scalar_one_or_none() + if integration and integration.config: + # Get repo from integration config if available + repo = integration.config.get("repository", repo) + + # Run analysis with org's AI config + analysis = await AnalysisService.analyze( + { + "title": issue.title, + "description": issue.description, + "priority": issue.priority.value if issue.priority else "medium" + }, + repo=repo, + ai_config=ai_config + ) issue.root_cause = analysis.get("root_cause") issue.affected_files = analysis.get("affected_files", []) @@ -52,8 +68,11 @@ async def run_analysis(issue_id: int, db_url: str): issue.status = IssueStatus.ANALYZED issue.analysis_completed_at = datetime.utcnow() - # Create PR if enabled and confidence > 70% - if repo and issue.confidence and issue.confidence >= 0.7: + # Create PR if enabled and confidence meets threshold + confidence_threshold = ai_config.get("confidence_threshold", 70) / 100 + auto_create_pr = ai_config.get("auto_create_pr", True) + + if auto_create_pr and repo and issue.confidence and issue.confidence >= confidence_threshold: branch = f"fix/{issue.external_key or issue.id}-auto-fix" pr_url = await AnalysisService.create_pull_request( repo=repo, diff --git a/app/api/settings.py b/app/api/settings.py index 0270489..f33b826 100644 --- a/app/api/settings.py +++ b/app/api/settings.py @@ -1,14 +1,15 @@ """Organization settings endpoints.""" -from typing import Dict, Any, Optional -from fastapi import APIRouter, Depends, HTTPException, status +from typing import Optional +from fastapi import APIRouter, Depends, HTTPException from sqlalchemy.ext.asyncio import AsyncSession from sqlalchemy import select from pydantic import BaseModel import httpx +import base64 from app.core.database import get_db from app.models.organization import Organization, OrganizationMember -from app.api.deps import get_current_user, require_role +from app.api.deps import require_role router = APIRouter() @@ -28,8 +29,16 @@ class TestLLMRequest(BaseModel): api_key: str model: str -# In-memory storage for now (should be moved to database) -ORG_SETTINGS: Dict[int, Dict[str, Any]] = {} +def encrypt_key(key: str) -> str: + """Simple obfuscation - in production use proper encryption.""" + return base64.b64encode(key.encode()).decode() + +def decrypt_key(encrypted: str) -> str: + """Simple deobfuscation.""" + try: + return base64.b64decode(encrypted.encode()).decode() + except: + return "" @router.get("/{org_id}/settings") async def get_settings( @@ -38,11 +47,21 @@ async def get_settings( db: AsyncSession = Depends(get_db) ): """Get organization settings.""" - settings = ORG_SETTINGS.get(org_id, {}) - # Mask API key for security - if settings.get("ai_config", {}).get("apiKey"): - settings["ai_config"]["apiKey"] = "***configured***" - return settings + result = await db.execute(select(Organization).where(Organization.id == org_id)) + org = result.scalar_one_or_none() + if not org: + raise HTTPException(status_code=404, detail="Organization not found") + + return { + "ai_config": { + "provider": org.ai_provider or "openrouter", + "apiKey": "***configured***" if org.ai_api_key_encrypted else "", + "model": org.ai_model or "meta-llama/llama-3.3-70b-instruct", + "autoAnalyze": org.ai_auto_analyze if org.ai_auto_analyze is not None else True, + "autoCreatePR": org.ai_auto_create_pr if org.ai_auto_create_pr is not None else True, + "confidenceThreshold": org.ai_confidence_threshold or 70, + } + } @router.put("/{org_id}/settings") async def update_settings( @@ -52,13 +71,24 @@ async def update_settings( db: AsyncSession = Depends(get_db) ): """Update organization settings.""" - if org_id not in ORG_SETTINGS: - ORG_SETTINGS[org_id] = {} + result = await db.execute(select(Organization).where(Organization.id == org_id)) + org = result.scalar_one_or_none() + if not org: + raise HTTPException(status_code=404, detail="Organization not found") if settings.ai_config: - ORG_SETTINGS[org_id]["ai_config"] = settings.ai_config.dict() + org.ai_provider = settings.ai_config.provider + org.ai_model = settings.ai_config.model + org.ai_auto_analyze = settings.ai_config.autoAnalyze + org.ai_auto_create_pr = settings.ai_config.autoCreatePR + org.ai_confidence_threshold = settings.ai_config.confidenceThreshold + + # Only update key if provided and not masked + if settings.ai_config.apiKey and settings.ai_config.apiKey != "***configured***": + org.ai_api_key_encrypted = encrypt_key(settings.ai_config.apiKey) - return {"message": "Settings updated", "settings": ORG_SETTINGS[org_id]} + await db.commit() + return {"message": "Settings updated"} @router.post("/{org_id}/test-llm") async def test_llm_connection( @@ -138,7 +168,7 @@ async def test_llm_connection( elif response.status_code == 403: raise HTTPException(status_code=400, detail="API key lacks permissions") else: - error_detail = response.json().get("error", {}).get("message", response.text) + error_detail = response.json().get("error", {}).get("message", response.text[:200]) raise HTTPException(status_code=400, detail=f"API error: {error_detail}") except httpx.TimeoutException: raise HTTPException(status_code=400, detail="Connection timeout") diff --git a/app/models/integration.py b/app/models/integration.py index fd81dc6..040cd89 100644 --- a/app/models/integration.py +++ b/app/models/integration.py @@ -1,6 +1,6 @@ """Integration model.""" from datetime import datetime -from sqlalchemy import Column, Integer, String, DateTime, ForeignKey, Enum, Boolean, Text +from sqlalchemy import Column, Integer, String, DateTime, ForeignKey, Enum, Boolean, Text, JSON from sqlalchemy.orm import relationship from app.core.database import Base import enum @@ -14,6 +14,7 @@ class IntegrationType(str, enum.Enum): GITLAB = "gitlab" AZURE_DEVOPS = "azure_devops" TICKETHUB = "tickethub" + GITEA = "gitea" CUSTOM_WEBHOOK = "custom_webhook" class IntegrationStatus(str, enum.Enum): @@ -37,6 +38,7 @@ class Integration(Base): oauth_token = Column(Text) webhook_secret = Column(String(255)) callback_url = Column(String(1024)) + config = Column(JSON, default=dict) # Additional config as JSON # Stats issues_processed = Column(Integer, default=0) diff --git a/app/models/organization.py b/app/models/organization.py index cbabdd8..21fbf8c 100644 --- a/app/models/organization.py +++ b/app/models/organization.py @@ -1,6 +1,6 @@ """Organization model.""" from datetime import datetime -from sqlalchemy import Column, Integer, String, DateTime, ForeignKey, Enum, Text +from sqlalchemy import Column, Integer, String, DateTime, ForeignKey, Enum, Text, Boolean, JSON from sqlalchemy.orm import relationship from app.core.database import Base import enum @@ -20,6 +20,17 @@ class Organization(Base): slug = Column(String(100), unique=True, nullable=False, index=True) created_at = Column(DateTime, default=datetime.utcnow) + # AI Configuration + ai_provider = Column(String(50), default="openrouter") + ai_api_key_encrypted = Column(Text, nullable=True) + ai_model = Column(String(100), default="meta-llama/llama-3.3-70b-instruct") + ai_auto_analyze = Column(Boolean, default=True) + ai_auto_create_pr = Column(Boolean, default=True) + ai_confidence_threshold = Column(Integer, default=70) + + # Settings JSON for extensibility + settings = Column(JSON, default=dict) + # Relations members = relationship("OrganizationMember", back_populates="organization", cascade="all, delete-orphan") integrations = relationship("Integration", back_populates="organization", cascade="all, delete-orphan") diff --git a/app/schemas/integration.py b/app/schemas/integration.py index 2e3a316..616327b 100644 --- a/app/schemas/integration.py +++ b/app/schemas/integration.py @@ -19,6 +19,7 @@ class IntegrationCreate(IntegrationBase): sync_comments: bool = True create_prs: bool = True repositories: Optional[List[Dict[str, str]]] = None + config: Optional[Dict[str, Any]] = None class IntegrationUpdate(BaseModel): name: Optional[str] = None @@ -31,6 +32,7 @@ class IntegrationUpdate(BaseModel): create_prs: Optional[bool] = None repositories: Optional[List[Dict[str, str]]] = None status: Optional[IntegrationStatus] = None + config: Optional[Dict[str, Any]] = None class IntegrationRead(IntegrationBase): id: int @@ -39,9 +41,10 @@ class IntegrationRead(IntegrationBase): base_url: Optional[str] = None webhook_url: Optional[str] = None auto_analyze: bool - issues_processed: Optional[int] = 0 # Allow None, default 0 + issues_processed: Optional[int] = 0 last_sync_at: Optional[datetime] = None last_error: Optional[str] = None + config: Optional[Dict[str, Any]] = None created_at: datetime class Config: diff --git a/app/services/analysis.py b/app/services/analysis.py index ff61449..fd0b2fb 100644 --- a/app/services/analysis.py +++ b/app/services/analysis.py @@ -1,13 +1,49 @@ """Analysis service - AI-powered issue analysis.""" import httpx import json +import base64 from datetime import datetime from typing import Optional, Dict, Any, List +from sqlalchemy.ext.asyncio import AsyncSession +from sqlalchemy import select from app.core.config import settings +from app.models.organization import Organization class AnalysisService: - OPENROUTER_API = "https://openrouter.ai/api/v1/chat/completions" - MODEL = "meta-llama/llama-3.3-70b-instruct:free" + + @classmethod + def decrypt_key(cls, encrypted: str) -> str: + """Simple deobfuscation.""" + try: + return base64.b64decode(encrypted.encode()).decode() + except: + return "" + + @classmethod + async def get_org_ai_config(cls, db: AsyncSession, org_id: int) -> Dict[str, Any]: + """Get AI configuration from organization settings.""" + result = await db.execute(select(Organization).where(Organization.id == org_id)) + org = result.scalar_one_or_none() + + if org and org.ai_api_key_encrypted: + return { + "provider": org.ai_provider or "openrouter", + "api_key": cls.decrypt_key(org.ai_api_key_encrypted), + "model": org.ai_model or "meta-llama/llama-3.3-70b-instruct", + "auto_analyze": org.ai_auto_analyze if org.ai_auto_analyze is not None else True, + "auto_create_pr": org.ai_auto_create_pr if org.ai_auto_create_pr is not None else True, + "confidence_threshold": org.ai_confidence_threshold or 70, + } + + # Fallback to env config + return { + "provider": "openrouter", + "api_key": settings.OPENROUTER_API_KEY or "", + "model": "meta-llama/llama-3.3-70b-instruct", + "auto_analyze": True, + "auto_create_pr": True, + "confidence_threshold": 70, + } @classmethod async def fetch_repository_files(cls, repo: str, path: str = "") -> List[Dict[str, str]]: @@ -20,14 +56,14 @@ class AnalysisService: if settings.GITEA_TOKEN: headers["Authorization"] = f"token {settings.GITEA_TOKEN}" - response = await client.get(url, headers=headers) + response = await client.get(url, headers=headers, timeout=30) if response.status_code != 200: return files items = response.json() for item in items: - if item["type"] == "file" and item["name"].endswith((".cbl", ".cob", ".py", ".java", ".js", ".ts")): - content_resp = await client.get(item["download_url"], headers=headers) + if item["type"] == "file" and item["name"].endswith((".cbl", ".cob", ".py", ".java", ".js", ".ts", ".tsx", ".jsx")): + content_resp = await client.get(item["download_url"], headers=headers, timeout=30) if content_resp.status_code == 200: files.append({ "path": item["path"], @@ -47,7 +83,7 @@ class AnalysisService: files_context = "\n\n".join([ f"### {f['path']}\n```\n{f['content']}\n```" for f in files - ]) + ]) if files else "No source code files available." return f"""You are an expert software engineer analyzing a support issue. @@ -77,51 +113,105 @@ Analyze the issue and identify: Respond ONLY with valid JSON.""" @classmethod - async def analyze(cls, issue: Dict[str, Any], repo: Optional[str] = None) -> Dict[str, Any]: - """Run AI analysis on an issue.""" - # Fetch code context - files = [] - if repo: - files = await cls.fetch_repository_files(repo) + async def call_llm(cls, prompt: str, ai_config: Dict[str, Any]) -> Dict[str, Any]: + """Call the configured LLM provider.""" + provider = ai_config.get("provider", "openrouter") + api_key = ai_config.get("api_key", "") + model = ai_config.get("model", "meta-llama/llama-3.3-70b-instruct") - # Build prompt - prompt = cls.build_prompt(issue, files) - - # Call LLM - if not settings.OPENROUTER_API_KEY: - # Mock response for testing + if not api_key: return { - "root_cause": "Mock analysis - configure OPENROUTER_API_KEY for real analysis", - "affected_files": ["example.py"], - "suggested_fix": "# Mock fix", - "confidence": 0.5, - "explanation": "This is a mock response" + "root_cause": "No API key configured. Go to Settings > AI Configuration.", + "affected_files": [], + "suggested_fix": "", + "confidence": 0, + "explanation": "Please configure an LLM API key in Settings." } async with httpx.AsyncClient() as client: try: - response = await client.post( - cls.OPENROUTER_API, - headers={ - "Authorization": f"Bearer {settings.OPENROUTER_API_KEY}", - "Content-Type": "application/json" - }, - json={ - "model": cls.MODEL, - "messages": [{"role": "user", "content": prompt}], - "temperature": 0.2, - "max_tokens": 2000 - }, - timeout=120 - ) + if provider == "openrouter": + response = await client.post( + "https://openrouter.ai/api/v1/chat/completions", + headers={ + "Authorization": f"Bearer {api_key}", + "Content-Type": "application/json", + "HTTP-Referer": "https://jira-fixer.startdata.com.br", + "X-Title": "JIRA AI Fixer" + }, + json={ + "model": model, + "messages": [{"role": "user", "content": prompt}], + "temperature": 0.2, + "max_tokens": 2000 + }, + timeout=120 + ) + elif provider == "anthropic": + response = await client.post( + "https://api.anthropic.com/v1/messages", + headers={ + "x-api-key": api_key, + "Content-Type": "application/json", + "anthropic-version": "2023-06-01" + }, + json={ + "model": model, + "max_tokens": 2000, + "messages": [{"role": "user", "content": prompt}] + }, + timeout=120 + ) + elif provider == "openai": + response = await client.post( + "https://api.openai.com/v1/chat/completions", + headers={ + "Authorization": f"Bearer {api_key}", + "Content-Type": "application/json" + }, + json={ + "model": model, + "messages": [{"role": "user", "content": prompt}], + "temperature": 0.2, + "max_tokens": 2000 + }, + timeout=120 + ) + elif provider == "groq": + response = await client.post( + "https://api.groq.com/openai/v1/chat/completions", + headers={ + "Authorization": f"Bearer {api_key}", + "Content-Type": "application/json" + }, + json={ + "model": model, + "messages": [{"role": "user", "content": prompt}], + "temperature": 0.2, + "max_tokens": 2000 + }, + timeout=120 + ) + else: + return { + "root_cause": f"Unsupported provider: {provider}", + "affected_files": [], + "suggested_fix": "", + "confidence": 0, + "explanation": "Please select a supported AI provider." + } if response.status_code == 200: data = response.json() - content = data["choices"][0]["message"]["content"] + + # Extract content based on provider + if provider == "anthropic": + content = data["content"][0]["text"] + else: + content = data["choices"][0]["message"]["content"] # Parse JSON from response try: - # Handle markdown code blocks if "```json" in content: content = content.split("```json")[1].split("```")[0] elif "```" in content: @@ -137,13 +227,28 @@ Respond ONLY with valid JSON.""" "explanation": "Could not parse structured response" } else: + error_msg = response.text[:200] + try: + error_data = response.json() + error_msg = error_data.get("error", {}).get("message", error_msg) + except: + pass return { "root_cause": f"API error: {response.status_code}", "affected_files": [], "suggested_fix": "", "confidence": 0, - "explanation": response.text[:500] + "explanation": error_msg } + + except httpx.TimeoutException: + return { + "root_cause": "Analysis timeout", + "affected_files": [], + "suggested_fix": "", + "confidence": 0, + "explanation": "The AI request timed out. Try again." + } except Exception as e: return { "root_cause": f"Analysis error: {str(e)}", @@ -153,6 +258,28 @@ Respond ONLY with valid JSON.""" "explanation": str(e) } + @classmethod + async def analyze(cls, issue: Dict[str, Any], repo: Optional[str] = None, ai_config: Optional[Dict[str, Any]] = None) -> Dict[str, Any]: + """Run AI analysis on an issue.""" + # Use provided config or default + if ai_config is None: + ai_config = { + "provider": "openrouter", + "api_key": settings.OPENROUTER_API_KEY or "", + "model": "meta-llama/llama-3.3-70b-instruct", + } + + # Fetch code context + files = [] + if repo: + files = await cls.fetch_repository_files(repo) + + # Build prompt + prompt = cls.build_prompt(issue, files) + + # Call LLM + return await cls.call_llm(prompt, ai_config) + @classmethod async def create_pull_request( cls, @@ -173,7 +300,8 @@ Respond ONLY with valid JSON.""" # 1. Get default branch repo_resp = await client.get( f"{settings.GITEA_URL}/api/v1/repos/{repo}", - headers=headers + headers=headers, + timeout=30 ) if repo_resp.status_code != 200: return None @@ -182,7 +310,8 @@ Respond ONLY with valid JSON.""" # 2. Get latest commit SHA ref_resp = await client.get( f"{settings.GITEA_URL}/api/v1/repos/{repo}/git/refs/heads/{default_branch}", - headers=headers + headers=headers, + timeout=30 ) if ref_resp.status_code != 200: return None @@ -192,13 +321,11 @@ Respond ONLY with valid JSON.""" await client.post( f"{settings.GITEA_URL}/api/v1/repos/{repo}/git/refs", headers=headers, - json={"ref": f"refs/heads/{branch}", "sha": sha} + json={"ref": f"refs/heads/{branch}", "sha": sha}, + timeout=30 ) - # 4. Commit changes (simplified - just description for now) - # Full implementation would update actual files - - # 5. Create PR + # 4. Create PR pr_resp = await client.post( f"{settings.GITEA_URL}/api/v1/repos/{repo}/pulls", headers=headers, @@ -207,7 +334,8 @@ Respond ONLY with valid JSON.""" "body": description, "head": branch, "base": default_branch - } + }, + timeout=30 ) if pr_resp.status_code in (200, 201): diff --git a/frontend/dist/index.html b/frontend/dist/index.html index 9e5fcaf..a89bc9b 100644 --- a/frontend/dist/index.html +++ b/frontend/dist/index.html @@ -5,8 +5,8 @@ JIRA AI Fixer - - + +
diff --git a/frontend/src/pages/Integrations.jsx b/frontend/src/pages/Integrations.jsx index ef2f053..d831433 100644 --- a/frontend/src/pages/Integrations.jsx +++ b/frontend/src/pages/Integrations.jsx @@ -3,21 +3,89 @@ import { useAuth } from '../context/AuthContext'; import { integrations } from '../services/api'; import { cn } from '../lib/utils'; import { useState } from 'react'; -import { Plus, Plug, CheckCircle2, XCircle, ExternalLink, Trash2, TestTube, Loader2, AlertCircle, Settings } from 'lucide-react'; +import { + Plus, Plug, CheckCircle2, XCircle, ExternalLink, Trash2, TestTube, + Loader2, AlertCircle, Settings, X, Eye, EyeOff, GitBranch, Ticket, + Server, Globe, Key, Link2, ArrowRight, Check +} from 'lucide-react'; const platformConfig = { - jira_cloud: { name: 'JIRA Cloud', color: 'from-blue-600 to-blue-700', icon: '🔵', desc: 'Atlassian JIRA Cloud integration' }, - servicenow: { name: 'ServiceNow', color: 'from-emerald-600 to-emerald-700', icon: '⚙️', desc: 'ServiceNow ITSM platform' }, - github: { name: 'GitHub', color: 'from-gray-700 to-gray-800', icon: '🐙', desc: 'GitHub issues and repositories' }, - gitlab: { name: 'GitLab', color: 'from-orange-600 to-orange-700', icon: '🦊', desc: 'GitLab issues and merge requests' }, - zendesk: { name: 'Zendesk', color: 'from-green-600 to-green-700', icon: '💚', desc: 'Zendesk support tickets' }, - slack: { name: 'Slack', color: 'from-purple-600 to-purple-700', icon: '💬', desc: 'Slack notifications and alerts' }, + tickethub: { + name: 'TicketHub', + color: 'from-indigo-600 to-indigo-700', + icon: , + desc: 'Internal ticket management system', + fields: [ + { id: 'base_url', label: 'TicketHub URL', placeholder: 'https://tickethub.example.com', type: 'url' }, + { id: 'api_key', label: 'API Key', placeholder: 'Your TicketHub API key', type: 'password' }, + { id: 'webhook_secret', label: 'Webhook Secret', placeholder: 'Shared secret for webhook validation', type: 'password' }, + ] + }, + gitea: { + name: 'Gitea', + color: 'from-green-600 to-green-700', + icon: , + desc: 'Self-hosted Git service for code repositories', + fields: [ + { id: 'base_url', label: 'Gitea URL', placeholder: 'https://gitea.example.com', type: 'url' }, + { id: 'api_key', label: 'Access Token', placeholder: 'Personal access token', type: 'password' }, + { id: 'repository', label: 'Default Repository', placeholder: 'owner/repo', type: 'text' }, + ] + }, + github: { + name: 'GitHub', + color: 'from-gray-700 to-gray-800', + icon: , + desc: 'GitHub issues and repositories', + fields: [ + { id: 'api_key', label: 'Personal Access Token', placeholder: 'ghp_...', type: 'password' }, + { id: 'repository', label: 'Repository', placeholder: 'owner/repo', type: 'text' }, + ] + }, + jira_cloud: { + name: 'JIRA Cloud', + color: 'from-blue-600 to-blue-700', + icon: , + desc: 'Atlassian JIRA Cloud integration', + fields: [ + { id: 'base_url', label: 'JIRA URL', placeholder: 'https://your-domain.atlassian.net', type: 'url' }, + { id: 'email', label: 'Email', placeholder: 'your-email@company.com', type: 'email' }, + { id: 'api_key', label: 'API Token', placeholder: 'Your Atlassian API token', type: 'password' }, + { id: 'project_key', label: 'Project Key', placeholder: 'PROJ', type: 'text' }, + ] + }, + servicenow: { + name: 'ServiceNow', + color: 'from-emerald-600 to-emerald-700', + icon: , + desc: 'ServiceNow ITSM platform', + fields: [ + { id: 'base_url', label: 'Instance URL', placeholder: 'https://your-instance.service-now.com', type: 'url' }, + { id: 'username', label: 'Username', placeholder: 'admin', type: 'text' }, + { id: 'api_key', label: 'Password', placeholder: '••••••••', type: 'password' }, + ] + }, + gitlab: { + name: 'GitLab', + color: 'from-orange-600 to-orange-700', + icon: , + desc: 'GitLab issues and merge requests', + fields: [ + { id: 'base_url', label: 'GitLab URL', placeholder: 'https://gitlab.com', type: 'url' }, + { id: 'api_key', label: 'Personal Access Token', placeholder: 'glpat-...', type: 'password' }, + { id: 'project_id', label: 'Project ID', placeholder: '12345', type: 'text' }, + ] + }, }; export default function Integrations() { const { currentOrg } = useAuth(); const queryClient = useQueryClient(); - const [showAdd, setShowAdd] = useState(false); + const [showAddModal, setShowAddModal] = useState(false); + const [selectedPlatform, setSelectedPlatform] = useState(null); + const [formData, setFormData] = useState({}); + const [showPasswords, setShowPasswords] = useState({}); + const [testResult, setTestResult] = useState(null); const { data, isLoading } = useQuery({ queryKey: ['integrations', currentOrg?.id], @@ -25,8 +93,20 @@ export default function Integrations() { enabled: !!currentOrg }); + const createMutation = useMutation({ + mutationFn: (data) => integrations.create(currentOrg.id, data), + onSuccess: () => { + queryClient.invalidateQueries(['integrations']); + setShowAddModal(false); + setSelectedPlatform(null); + setFormData({}); + } + }); + const testMutation = useMutation({ mutationFn: (id) => integrations.test(currentOrg.id, id), + onSuccess: (data) => setTestResult({ success: true, message: 'Connection successful!' }), + onError: (err) => setTestResult({ success: false, message: err.response?.data?.detail || 'Connection failed' }) }); const deleteMutation = useMutation({ @@ -38,6 +118,45 @@ export default function Integrations() { const activeIntegrations = data?.data || []; + const handleOpenForm = (platformKey) => { + setSelectedPlatform(platformKey); + setFormData({ platform: platformKey, name: platformConfig[platformKey].name }); + setShowAddModal(true); + setTestResult(null); + }; + + const handleSubmit = (e) => { + e.preventDefault(); + const config = { ...formData }; + delete config.platform; + delete config.name; + delete config.base_url; + + createMutation.mutate({ + type: formData.platform, // Backend expects 'type' + name: formData.name, + base_url: formData.base_url || null, + api_key: formData.api_key || null, + config: config, + }); + }; + + const testConfig = async () => { + setTestResult(null); + // For new integrations, we'll do a simple validation + const platform = platformConfig[selectedPlatform]; + const requiredFields = platform.fields.filter(f => f.id === 'base_url' || f.id === 'api_key'); + const missing = requiredFields.filter(f => !formData[f.id]); + + if (missing.length > 0) { + setTestResult({ success: false, message: `Please fill in: ${missing.map(f => f.label).join(', ')}` }); + return; + } + + // Simulate test + setTestResult({ success: true, message: 'Configuration looks valid!' }); + }; + return (
@@ -45,9 +164,6 @@ export default function Integrations() {

Integrations

Connect your tools to start analyzing issues

-
{/* Active integrations */} @@ -56,14 +172,16 @@ export default function Integrations() {

Active Connections

{activeIntegrations.map(intg => { - const cfg = platformConfig[intg.platform] || { name: intg.platform, color: 'from-gray-600 to-gray-700', icon: '🔌' }; + const cfg = platformConfig[intg.type] || { name: intg.type, color: 'from-gray-600 to-gray-700', icon: }; return (
- {cfg.icon} +
+ {cfg.icon} +

{intg.name || cfg.name}

{cfg.name}

@@ -74,18 +192,35 @@ export default function Integrations() {
{intg.base_url && ( -

{intg.base_url}

+
+ + {intg.base_url} +
)} +
+ Issues processed: {intg.issues_processed || 0} + {intg.last_sync_at && ( + • Last sync: {new Date(intg.last_sync_at).toLocaleDateString()} + )} +
- -
@@ -101,11 +236,11 @@ export default function Integrations() {

Available Platforms

{Object.entries(platformConfig).map(([key, cfg]) => { - const isConnected = activeIntegrations.some(i => i.platform === key); + const isConnected = activeIntegrations.some(i => i.type === key); return (
-
+
{cfg.icon}
@@ -113,14 +248,107 @@ export default function Integrations() {

{cfg.desc}

-
); })}
+ + {/* Integration Form Modal */} + {showAddModal && selectedPlatform && ( +
+
+
+
+
+
+
+ {platformConfig[selectedPlatform].icon} +
+
+

Connect {platformConfig[selectedPlatform].name}

+

{platformConfig[selectedPlatform].desc}

+
+
+ +
+ +
+
+ + setFormData({...formData, name: e.target.value})} + className="input" + placeholder="My Integration" + /> +
+ + {platformConfig[selectedPlatform].fields.map(field => ( +
+ +
+ setFormData({...formData, [field.id]: e.target.value})} + className={cn("input", field.type === 'password' && "pr-10")} + placeholder={field.placeholder} + /> + {field.type === 'password' && ( + + )} +
+
+ ))} + + {testResult && ( +
+ {testResult.success ? : } + {testResult.message} +
+ )} + +
+ + +
+
+
+
+
+ )}
); } diff --git a/frontend_build/assets/index-Bw0JDVcx.css b/frontend_build/assets/index-4u66p920.css similarity index 50% rename from frontend_build/assets/index-Bw0JDVcx.css rename to frontend_build/assets/index-4u66p920.css index 4aeebd6..7f7e3d8 100644 --- a/frontend_build/assets/index-Bw0JDVcx.css +++ b/frontend_build/assets/index-4u66p920.css @@ -1 +1 @@ -@import"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#ccccdc}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,system-ui,-apple-system,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:JetBrains Mono,Fira Code,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#8888a0}input::placeholder,textarea::placeholder{opacity:1;color:#8888a0}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--sidebar-width: 260px;--sidebar-collapsed: 68px;--header-height: 56px}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,system-ui,-apple-system,sans-serif}*{--tw-border-opacity: 1;border-color:rgb(30 30 42 / var(--tw-border-opacity, 1))}::-webkit-scrollbar{width:.375rem}::-webkit-scrollbar-track{background-color:transparent}::-webkit-scrollbar-thumb{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(46 46 62 / var(--tw-bg-opacity, 1))}::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(63 63 82 / var(--tw-bg-opacity, 1))}.btn{display:inline-flex;align-items:center;gap:.5rem;border-radius:.5rem;padding:.5rem 1rem;font-size:.875rem;line-height:1.25rem;font-weight:500;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.btn:disabled{cursor:not-allowed;opacity:.5}.btn-primary{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-shadow-color: rgb(99 102 241 / .25);--tw-shadow: var(--tw-shadow-colored)}.btn-primary:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-shadow-color: rgb(99 102 241 / .4);--tw-shadow: var(--tw-shadow-colored)}.btn-secondary{border-width:1px;--tw-border-opacity: 1;border-color:rgb(46 46 62 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(30 30 42 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(204 204 220 / var(--tw-text-opacity, 1))}.btn-secondary:hover{--tw-bg-opacity: 1;background-color:rgb(46 46 62 / var(--tw-bg-opacity, 1))}.btn-danger{border-width:1px;border-color:#ef444433;background-color:#dc26261a;--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.btn-danger:hover{background-color:#dc262633}.btn-ghost{--tw-text-opacity: 1;color:rgb(136 136 160 / var(--tw-text-opacity, 1))}.btn-ghost:hover{--tw-bg-opacity: 1;background-color:rgb(30 30 42 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(204 204 220 / var(--tw-text-opacity, 1))}.btn-sm{height:2rem;padding-left:.75rem;padding-right:.75rem;font-size:.75rem;line-height:1rem}.btn-icon{height:2.25rem;width:2.25rem;justify-content:center;padding:0}.input{height:2.5rem;width:100%;border-radius:.5rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(46 46 62 / var(--tw-border-opacity, 1));background-color:#11111880;padding-left:.75rem;padding-right:.75rem;font-size:.875rem;line-height:1.25rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.input::-moz-placeholder{--tw-text-opacity: 1;color:rgb(90 90 112 / var(--tw-text-opacity, 1))}.input::placeholder{--tw-text-opacity: 1;color:rgb(90 90 112 / var(--tw-text-opacity, 1))}.input:focus{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity, 1));outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: rgb(99 102 241 / .4)}.input-sm{height:2rem;padding-left:.625rem;padding-right:.625rem;font-size:.75rem;line-height:1rem}.card{border-radius:.75rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(30 30 42 / var(--tw-border-opacity, 1));background-color:#11111880;--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.card-hover{border-radius:.75rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(30 30 42 / var(--tw-border-opacity, 1));background-color:#11111880;--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);cursor:pointer;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.card-hover:hover{--tw-border-opacity: 1;border-color:rgb(46 46 62 / var(--tw-border-opacity, 1));background-color:#111118cc}.card-header{display:flex;align-items:center;justify-content:space-between;border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(30 30 42 / var(--tw-border-opacity, 1));padding:1rem 1.25rem}.card-body{padding:1.25rem}.badge{display:inline-flex;align-items:center;gap:.25rem;border-radius:.375rem;padding:.125rem .5rem;font-size:.75rem;line-height:1rem;font-weight:500}.badge-blue{background-color:#3b82f626;--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: rgb(59 130 246 / .2)}.badge-green{background-color:#10b98126;--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: rgb(16 185 129 / .2)}.badge-yellow{background-color:#f59e0b26;--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: rgb(245 158 11 / .2)}.badge-red{background-color:#ef444426;--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: rgb(239 68 68 / .2)}.badge-purple{background-color:#a855f726;--tw-text-opacity: 1;color:rgb(192 132 252 / var(--tw-text-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: rgb(168 85 247 / .2)}.badge-gray{background-color:#5a5a7026;--tw-text-opacity: 1;color:rgb(136 136 160 / var(--tw-text-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: rgb(90 90 112 / .2)}.badge-indigo{background-color:#6366f126;--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: rgb(99 102 241 / .2)}.stat-card{border-radius:.75rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(30 30 42 / var(--tw-border-opacity, 1));background-color:#11111880;--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);position:relative;overflow:hidden;padding:1.25rem}.stat-card:after{content:"";pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0;background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: rgb(255 255 255 / .02) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: transparent var(--tw-gradient-to-position)}.table-row{border-bottom-width:1px;border-color:#1e1e2a80;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.table-row:hover{background-color:#1e1e2a4d}.skeleton{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(30 30 42 / var(--tw-bg-opacity, 1))}.sidebar-item{display:flex;align-items:center;gap:.75rem;border-radius:.5rem;padding:.5rem .75rem;font-size:.875rem;line-height:1.25rem;font-weight:500;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.sidebar-item-active{border-right-width:2px;--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity, 1));background-color:#4f46e526;--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.sidebar-item-inactive{--tw-text-opacity: 1;color:rgb(136 136 160 / var(--tw-text-opacity, 1))}.sidebar-item-inactive:hover{background-color:#1e1e2a99;--tw-text-opacity: 1;color:rgb(204 204 220 / var(--tw-text-opacity, 1))}.page-header{margin-bottom:1.5rem;display:flex;align-items:center;justify-content:space-between}.page-title{font-size:1.25rem;line-height:1.75rem;font-weight:600;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.page-subtitle{margin-top:.25rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(136 136 160 / var(--tw-text-opacity, 1))}.kbd{display:inline-flex;height:1.25rem;min-width:20px;align-items:center;justify-content:center;border-radius:.25rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(46 46 62 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(30 30 42 / var(--tw-bg-opacity, 1));padding-left:.375rem;padding-right:.375rem;font-size:10px;font-weight:500;--tw-text-opacity: 1;color:rgb(136 136 160 / var(--tw-text-opacity, 1))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.left-0{left:0}.left-2{left:.5rem}.left-3{left:.75rem}.left-\[50\%\]{left:50%}.right-1\.5{right:.375rem}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.top-0{top:0}.top-1\.5{top:.375rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-4{top:1rem}.top-\[50\%\]{top:50%}.top-full{top:100%}.z-10{z-index:10}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[100\]{z-index:100}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.-mb-px{margin-bottom:-1px}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-0\.5{margin-left:.125rem}.ml-\[260px\]{margin-left:260px}.ml-\[68px\]{margin-left:68px}.ml-auto{margin-left:auto}.mr-1\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.table-row{display:table-row}.grid{display:grid}.hidden{display:none}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-32{height:8rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-56{height:14rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-80{max-height:20rem}.max-h-\[300px\]{max-height:300px}.max-h-screen{max-height:100vh}.min-h-screen{min-height:100vh}.w-1\.5{width:.375rem}.w-1\/4{width:25%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-32{width:8rem}.w-36{width:9rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-52{width:13rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-96{width:24rem}.w-\[260px\]{width:260px}.w-\[68px\]{width:68px}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-\[8rem\]{min-width:8rem}.max-w-2xl{max-width:42rem}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\[-50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.animate-fade-in{animation:fadeIn .3s ease-out}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes slideUp{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.animate-slide-up{animation:slideUp .2s ease-out}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-emerald-500\/10{border-color:#10b9811a}.border-gray-600{--tw-border-opacity: 1;border-color:rgb(63 63 82 / var(--tw-border-opacity, 1))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(46 46 62 / var(--tw-border-opacity, 1))}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(30 30 42 / var(--tw-border-opacity, 1))}.border-gray-800\/30{border-color:#1e1e2a4d}.border-gray-800\/50{border-color:#1e1e2a80}.border-green-800{--tw-border-opacity: 1;border-color:rgb(22 101 52 / var(--tw-border-opacity, 1))}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity, 1))}.border-indigo-500\/20{border-color:#6366f133}.border-red-500\/20{border-color:#ef444433}.border-red-800{--tw-border-opacity: 1;border-color:rgb(153 27 27 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-yellow-800{--tw-border-opacity: 1;border-color:rgb(133 77 14 / var(--tw-border-opacity, 1))}.bg-amber-500\/10{background-color:#f59e0b1a}.bg-black\/60{background-color:#0009}.bg-black\/80{background-color:#000c}.bg-blue-500\/10{background-color:#3b82f61a}.bg-emerald-400{--tw-bg-opacity: 1;background-color:rgb(52 211 153 / var(--tw-bg-opacity, 1))}.bg-emerald-500{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))}.bg-emerald-500\/10{background-color:#10b9811a}.bg-emerald-500\/5{background-color:#10b9810d}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(46 46 62 / var(--tw-bg-opacity, 1))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(30 30 42 / var(--tw-bg-opacity, 1))}.bg-gray-800\/50{background-color:#1e1e2a80}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 17 24 / var(--tw-bg-opacity, 1))}.bg-gray-900\/40{background-color:#11111866}.bg-gray-900\/50{background-color:#11111880}.bg-gray-900\/60{background-color:#11111899}.bg-gray-950{--tw-bg-opacity: 1;background-color:rgb(10 10 15 / var(--tw-bg-opacity, 1))}.bg-gray-950\/80{background-color:#0a0a0fcc}.bg-green-900\/80{background-color:#14532dcc}.bg-indigo-500{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1))}.bg-indigo-500\/10{background-color:#6366f11a}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1))}.bg-indigo-600\/10{background-color:#4f46e51a}.bg-indigo-600\/20{background-color:#4f46e533}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(168 85 247 / var(--tw-bg-opacity, 1))}.bg-purple-500\/10{background-color:#a855f71a}.bg-purple-500\/5{background-color:#a855f70d}.bg-red-500\/10{background-color:#ef44441a}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-red-900\/80{background-color:#7f1d1dcc}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\/10{background-color:#ffffff1a}.bg-yellow-900\/80{background-color:#713f12cc}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-blue-600{--tw-gradient-from: #2563eb var(--tw-gradient-from-position);--tw-gradient-to: rgb(37 99 235 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-emerald-600{--tw-gradient-from: #059669 var(--tw-gradient-from-position);--tw-gradient-to: rgb(5 150 105 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-gray-600{--tw-gradient-from: #3f3f52 var(--tw-gradient-from-position);--tw-gradient-to: rgb(63 63 82 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-gray-700{--tw-gradient-from: #2e2e3e var(--tw-gradient-from-position);--tw-gradient-to: rgb(46 46 62 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-600{--tw-gradient-from: #16a34a var(--tw-gradient-from-position);--tw-gradient-to: rgb(22 163 74 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-indigo-500{--tw-gradient-from: #6366f1 var(--tw-gradient-from-position);--tw-gradient-to: rgb(99 102 241 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-indigo-600{--tw-gradient-from: #4f46e5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(79 70 229 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-orange-600{--tw-gradient-from: #ea580c var(--tw-gradient-from-position);--tw-gradient-to: rgb(234 88 12 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-600{--tw-gradient-from: #9333ea var(--tw-gradient-from-position);--tw-gradient-to: rgb(147 51 234 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-indigo-700{--tw-gradient-to: rgb(67 56 202 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #4338ca var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-blue-700{--tw-gradient-to: #1d4ed8 var(--tw-gradient-to-position)}.to-emerald-700{--tw-gradient-to: #047857 var(--tw-gradient-to-position)}.to-gray-700{--tw-gradient-to: #2e2e3e var(--tw-gradient-to-position)}.to-gray-800{--tw-gradient-to: #1e1e2a var(--tw-gradient-to-position)}.to-green-700{--tw-gradient-to: #15803d var(--tw-gradient-to-position)}.to-orange-700{--tw-gradient-to: #c2410c var(--tw-gradient-to-position)}.to-purple-600{--tw-gradient-to: #9333ea var(--tw-gradient-to-position)}.to-purple-700{--tw-gradient-to: #7e22ce var(--tw-gradient-to-position)}.to-purple-800{--tw-gradient-to: #6b21a8 var(--tw-gradient-to-position)}.fill-current{fill:currentColor}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-16{padding-left:4rem;padding-right:4rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pl-10{padding-left:2.5rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-20{padding-right:5rem}.pr-8{padding-right:2rem}.pt-3{padding-top:.75rem}.pt-\[20vh\]{padding-top:20vh}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:JetBrains Mono,Fira Code,monospace}.font-sans{font-family:Inter,system-ui,-apple-system,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.text-emerald-400{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.text-gray-100{--tw-text-opacity: 1;color:rgb(229 229 240 / var(--tw-text-opacity, 1))}.text-gray-200{--tw-text-opacity: 1;color:rgb(204 204 220 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(170 170 190 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(136 136 160 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(90 90 112 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(63 63 82 / var(--tw-text-opacity, 1))}.text-green-100{--tw-text-opacity: 1;color:rgb(220 252 231 / var(--tw-text-opacity, 1))}.text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.text-indigo-200{--tw-text-opacity: 1;color:rgb(199 210 254 / var(--tw-text-opacity, 1))}.text-indigo-300{--tw-text-opacity: 1;color:rgb(165 180 252 / var(--tw-text-opacity, 1))}.text-indigo-400{--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.text-purple-400{--tw-text-opacity: 1;color:rgb(192 132 252 / var(--tw-text-opacity, 1))}.text-red-100{--tw-text-opacity: 1;color:rgb(254 226 226 / var(--tw-text-opacity, 1))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-100{--tw-text-opacity: 1;color:rgb(254 249 195 / var(--tw-text-opacity, 1))}.underline-offset-4{text-underline-offset:4px}.accent-indigo-600{accent-color:#4f46e5}.opacity-0{opacity:0}.opacity-10{opacity:.1}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-90{opacity:.9}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-indigo-500\/20{--tw-shadow-color: rgb(99 102 241 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-500\/25{--tw-shadow-color: rgb(99 102 241 / .25);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-gray-900{--tw-ring-offset-color: #111118}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.placeholder\:text-gray-500::-moz-placeholder{--tw-text-opacity: 1;color:rgb(90 90 112 / var(--tw-text-opacity, 1))}.placeholder\:text-gray-500::placeholder{--tw-text-opacity: 1;color:rgb(90 90 112 / var(--tw-text-opacity, 1))}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:left-0\.5:after{content:var(--tw-content);left:.125rem}.after\:top-0\.5:after{content:var(--tw-content);top:.125rem}.after\:h-4:after{content:var(--tw-content);height:1rem}.after\:w-4:after{content:var(--tw-content);width:1rem}.after\:rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\:bg-white:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.after\:transition-all:after{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.after\:content-\[\'\'\]:after{--tw-content: "";content:var(--tw-content)}.first\:rounded-t-lg:first-child{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.last\:rounded-b-lg:last-child{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(63 63 82 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-700:hover{--tw-bg-opacity: 1;background-color:rgb(46 46 62 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-700\/50:hover{background-color:#2e2e3e80}.hover\:bg-gray-800:hover{--tw-bg-opacity: 1;background-color:rgb(30 30 42 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-800\/50:hover{background-color:#1e1e2a80}.hover\:bg-gray-800\/60:hover{background-color:#1e1e2a99}.hover\:bg-gray-800\/80:hover{background-color:#1e1e2acc}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))}.hover\:text-gray-100:hover{--tw-text-opacity: 1;color:rgb(229 229 240 / var(--tw-text-opacity, 1))}.hover\:text-gray-300:hover{--tw-text-opacity: 1;color:rgb(170 170 190 / var(--tw-text-opacity, 1))}.hover\:text-indigo-300:hover{--tw-text-opacity: 1;color:rgb(165 180 252 / var(--tw-text-opacity, 1))}.hover\:text-red-400:hover{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:bg-gray-700:focus{--tw-bg-opacity: 1;background-color:rgb(46 46 62 / var(--tw-bg-opacity, 1))}.focus\:text-white:focus{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.focus\:opacity-100:focus{opacity:1}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\:ring-offset-gray-900:focus-visible{--tw-ring-offset-color: #111118}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:text-gray-400{--tw-text-opacity: 1;color:rgb(136 136 160 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-indigo-400{--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:opacity-100{opacity:1}.peer:checked~.peer-checked\:bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1))}.peer:checked~.peer-checked\:after\:translate-x-4:after{content:var(--tw-content);--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.aria-selected\:bg-gray-700[aria-selected=true]{--tw-bg-opacity: 1;background-color:rgb(46 46 62 / var(--tw-bg-opacity, 1))}.aria-selected\:text-white[aria-selected=true]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.data-\[disabled\=\'true\'\]\:pointer-events-none[data-disabled=true],.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[state\=checked\]\:translate-x-5[data-state=checked]{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked],.data-\[swipe\=cancel\]\:translate-x-0[data-swipe=cancel]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end]{--tw-translate-x: var(--radix-toast-swipe-end-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{--tw-translate-x: var(--radix-toast-swipe-move-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=open\]\:bg-gray-700[data-state=open]{--tw-bg-opacity: 1;background-color:rgb(46 46 62 / var(--tw-bg-opacity, 1))}.data-\[state\=open\]\:bg-gray-800[data-state=open]{--tw-bg-opacity: 1;background-color:rgb(30 30 42 / var(--tw-bg-opacity, 1))}.data-\[state\=unchecked\]\:bg-gray-700[data-state=unchecked]{--tw-bg-opacity: 1;background-color:rgb(46 46 62 / var(--tw-bg-opacity, 1))}.data-\[state\=open\]\:text-gray-400[data-state=open]{--tw-text-opacity: 1;color:rgb(136 136 160 / var(--tw-text-opacity, 1))}.data-\[disabled\=\'true\'\]\:opacity-50[data-disabled=true],.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[swipe\=move\]\:transition-none[data-swipe=move]{transition-property:none}@media (min-width: 640px){.sm\:bottom-0{bottom:0}.sm\:right-0{right:0}.sm\:top-auto{top:auto}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:flex-col{flex-direction:column}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:text-left{text-align:left}}@media (min-width: 768px){.md\:max-w-\[420px\]{max-width:420px}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 1024px){.lg\:col-span-2{grid-column:span 2 / span 2}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:w-1\/2{width:50%}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-top:.375rem;padding-bottom:.375rem}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{font-weight:500}.\[\&_\[cmdk-group-heading\]\]\:text-gray-400 [cmdk-group-heading]{--tw-text-opacity: 1;color:rgb(136 136 160 / var(--tw-text-opacity, 1))}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:3rem}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-top:.75rem;padding-bottom:.75rem}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:1.25rem}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:1.25rem} +@import"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#ccccdc}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,system-ui,-apple-system,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:JetBrains Mono,Fira Code,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#8888a0}input::placeholder,textarea::placeholder{opacity:1;color:#8888a0}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--sidebar-width: 260px;--sidebar-collapsed: 68px;--header-height: 56px}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,system-ui,-apple-system,sans-serif}*{--tw-border-opacity: 1;border-color:rgb(30 30 42 / var(--tw-border-opacity, 1))}::-webkit-scrollbar{width:.375rem}::-webkit-scrollbar-track{background-color:transparent}::-webkit-scrollbar-thumb{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(46 46 62 / var(--tw-bg-opacity, 1))}::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(63 63 82 / var(--tw-bg-opacity, 1))}.btn{display:inline-flex;align-items:center;gap:.5rem;border-radius:.5rem;padding:.5rem 1rem;font-size:.875rem;line-height:1.25rem;font-weight:500;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.btn:disabled{cursor:not-allowed;opacity:.5}.btn-primary{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-shadow-color: rgb(99 102 241 / .25);--tw-shadow: var(--tw-shadow-colored)}.btn-primary:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-shadow-color: rgb(99 102 241 / .4);--tw-shadow: var(--tw-shadow-colored)}.btn-secondary{border-width:1px;--tw-border-opacity: 1;border-color:rgb(46 46 62 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(30 30 42 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(204 204 220 / var(--tw-text-opacity, 1))}.btn-secondary:hover{--tw-bg-opacity: 1;background-color:rgb(46 46 62 / var(--tw-bg-opacity, 1))}.btn-danger{border-width:1px;border-color:#ef444433;background-color:#dc26261a;--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.btn-danger:hover{background-color:#dc262633}.btn-ghost{--tw-text-opacity: 1;color:rgb(136 136 160 / var(--tw-text-opacity, 1))}.btn-ghost:hover{--tw-bg-opacity: 1;background-color:rgb(30 30 42 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(204 204 220 / var(--tw-text-opacity, 1))}.btn-sm{height:2rem;padding-left:.75rem;padding-right:.75rem;font-size:.75rem;line-height:1rem}.btn-icon{height:2.25rem;width:2.25rem;justify-content:center;padding:0}.input{height:2.5rem;width:100%;border-radius:.5rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(46 46 62 / var(--tw-border-opacity, 1));background-color:#11111880;padding-left:.75rem;padding-right:.75rem;font-size:.875rem;line-height:1.25rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.input::-moz-placeholder{--tw-text-opacity: 1;color:rgb(90 90 112 / var(--tw-text-opacity, 1))}.input::placeholder{--tw-text-opacity: 1;color:rgb(90 90 112 / var(--tw-text-opacity, 1))}.input:focus{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity, 1));outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: rgb(99 102 241 / .4)}.input-sm{height:2rem;padding-left:.625rem;padding-right:.625rem;font-size:.75rem;line-height:1rem}.card{border-radius:.75rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(30 30 42 / var(--tw-border-opacity, 1));background-color:#11111880;--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.card-hover{border-radius:.75rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(30 30 42 / var(--tw-border-opacity, 1));background-color:#11111880;--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);cursor:pointer;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.card-hover:hover{--tw-border-opacity: 1;border-color:rgb(46 46 62 / var(--tw-border-opacity, 1));background-color:#111118cc}.card-header{display:flex;align-items:center;justify-content:space-between;border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(30 30 42 / var(--tw-border-opacity, 1));padding:1rem 1.25rem}.card-body{padding:1.25rem}.badge{display:inline-flex;align-items:center;gap:.25rem;border-radius:.375rem;padding:.125rem .5rem;font-size:.75rem;line-height:1rem;font-weight:500}.badge-blue{background-color:#3b82f626;--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: rgb(59 130 246 / .2)}.badge-green{background-color:#10b98126;--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: rgb(16 185 129 / .2)}.badge-yellow{background-color:#f59e0b26;--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: rgb(245 158 11 / .2)}.badge-red{background-color:#ef444426;--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: rgb(239 68 68 / .2)}.badge-purple{background-color:#a855f726;--tw-text-opacity: 1;color:rgb(192 132 252 / var(--tw-text-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: rgb(168 85 247 / .2)}.badge-gray{background-color:#5a5a7026;--tw-text-opacity: 1;color:rgb(136 136 160 / var(--tw-text-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: rgb(90 90 112 / .2)}.badge-indigo{background-color:#6366f126;--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: rgb(99 102 241 / .2)}.stat-card{border-radius:.75rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(30 30 42 / var(--tw-border-opacity, 1));background-color:#11111880;--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);position:relative;overflow:hidden;padding:1.25rem}.stat-card:after{content:"";pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0;background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: rgb(255 255 255 / .02) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: transparent var(--tw-gradient-to-position)}.table-row{border-bottom-width:1px;border-color:#1e1e2a80;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.table-row:hover{background-color:#1e1e2a4d}.skeleton{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(30 30 42 / var(--tw-bg-opacity, 1))}.sidebar-item{display:flex;align-items:center;gap:.75rem;border-radius:.5rem;padding:.5rem .75rem;font-size:.875rem;line-height:1.25rem;font-weight:500;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.sidebar-item-active{border-right-width:2px;--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity, 1));background-color:#4f46e526;--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.sidebar-item-inactive{--tw-text-opacity: 1;color:rgb(136 136 160 / var(--tw-text-opacity, 1))}.sidebar-item-inactive:hover{background-color:#1e1e2a99;--tw-text-opacity: 1;color:rgb(204 204 220 / var(--tw-text-opacity, 1))}.page-header{margin-bottom:1.5rem;display:flex;align-items:center;justify-content:space-between}.page-title{font-size:1.25rem;line-height:1.75rem;font-weight:600;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.page-subtitle{margin-top:.25rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(136 136 160 / var(--tw-text-opacity, 1))}.kbd{display:inline-flex;height:1.25rem;min-width:20px;align-items:center;justify-content:center;border-radius:.25rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(46 46 62 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(30 30 42 / var(--tw-bg-opacity, 1));padding-left:.375rem;padding-right:.375rem;font-size:10px;font-weight:500;--tw-text-opacity: 1;color:rgb(136 136 160 / var(--tw-text-opacity, 1))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.left-0{left:0}.left-2{left:.5rem}.left-3{left:.75rem}.left-\[50\%\]{left:50%}.right-1\.5{right:.375rem}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.top-0{top:0}.top-1\.5{top:.375rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-4{top:1rem}.top-\[50\%\]{top:50%}.top-full{top:100%}.z-10{z-index:10}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[100\]{z-index:100}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.-mb-px{margin-bottom:-1px}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-0\.5{margin-left:.125rem}.ml-\[260px\]{margin-left:260px}.ml-\[68px\]{margin-left:68px}.ml-auto{margin-left:auto}.mr-1\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.table-row{display:table-row}.grid{display:grid}.hidden{display:none}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-32{height:8rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-56{height:14rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-80{max-height:20rem}.max-h-\[300px\]{max-height:300px}.max-h-screen{max-height:100vh}.min-h-screen{min-height:100vh}.w-1\.5{width:.375rem}.w-1\/4{width:25%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-32{width:8rem}.w-36{width:9rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-52{width:13rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-96{width:24rem}.w-\[260px\]{width:260px}.w-\[68px\]{width:68px}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-\[8rem\]{min-width:8rem}.max-w-2xl{max-width:42rem}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\[-50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.animate-fade-in{animation:fadeIn .3s ease-out}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes slideUp{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.animate-slide-up{animation:slideUp .2s ease-out}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-emerald-500\/10{border-color:#10b9811a}.border-gray-600{--tw-border-opacity: 1;border-color:rgb(63 63 82 / var(--tw-border-opacity, 1))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(46 46 62 / var(--tw-border-opacity, 1))}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(30 30 42 / var(--tw-border-opacity, 1))}.border-gray-800\/30{border-color:#1e1e2a4d}.border-gray-800\/50{border-color:#1e1e2a80}.border-green-800{--tw-border-opacity: 1;border-color:rgb(22 101 52 / var(--tw-border-opacity, 1))}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity, 1))}.border-indigo-500\/20{border-color:#6366f133}.border-red-500\/20{border-color:#ef444433}.border-red-800{--tw-border-opacity: 1;border-color:rgb(153 27 27 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-yellow-800{--tw-border-opacity: 1;border-color:rgb(133 77 14 / var(--tw-border-opacity, 1))}.bg-amber-500\/10{background-color:#f59e0b1a}.bg-black\/60{background-color:#0009}.bg-black\/80{background-color:#000c}.bg-blue-500\/10{background-color:#3b82f61a}.bg-emerald-400{--tw-bg-opacity: 1;background-color:rgb(52 211 153 / var(--tw-bg-opacity, 1))}.bg-emerald-500{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))}.bg-emerald-500\/10{background-color:#10b9811a}.bg-emerald-500\/5{background-color:#10b9810d}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(46 46 62 / var(--tw-bg-opacity, 1))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(30 30 42 / var(--tw-bg-opacity, 1))}.bg-gray-800\/50{background-color:#1e1e2a80}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 17 24 / var(--tw-bg-opacity, 1))}.bg-gray-900\/40{background-color:#11111866}.bg-gray-900\/50{background-color:#11111880}.bg-gray-900\/60{background-color:#11111899}.bg-gray-950{--tw-bg-opacity: 1;background-color:rgb(10 10 15 / var(--tw-bg-opacity, 1))}.bg-gray-950\/80{background-color:#0a0a0fcc}.bg-green-900\/30{background-color:#14532d4d}.bg-green-900\/80{background-color:#14532dcc}.bg-indigo-500{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1))}.bg-indigo-500\/10{background-color:#6366f11a}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1))}.bg-indigo-600\/10{background-color:#4f46e51a}.bg-indigo-600\/20{background-color:#4f46e533}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(168 85 247 / var(--tw-bg-opacity, 1))}.bg-purple-500\/10{background-color:#a855f71a}.bg-purple-500\/5{background-color:#a855f70d}.bg-red-500\/10{background-color:#ef44441a}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-red-900\/30{background-color:#7f1d1d4d}.bg-red-900\/80{background-color:#7f1d1dcc}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\/10{background-color:#ffffff1a}.bg-yellow-900\/80{background-color:#713f12cc}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-blue-600{--tw-gradient-from: #2563eb var(--tw-gradient-from-position);--tw-gradient-to: rgb(37 99 235 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-emerald-600{--tw-gradient-from: #059669 var(--tw-gradient-from-position);--tw-gradient-to: rgb(5 150 105 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-gray-600{--tw-gradient-from: #3f3f52 var(--tw-gradient-from-position);--tw-gradient-to: rgb(63 63 82 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-gray-700{--tw-gradient-from: #2e2e3e var(--tw-gradient-from-position);--tw-gradient-to: rgb(46 46 62 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-600{--tw-gradient-from: #16a34a var(--tw-gradient-from-position);--tw-gradient-to: rgb(22 163 74 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-indigo-500{--tw-gradient-from: #6366f1 var(--tw-gradient-from-position);--tw-gradient-to: rgb(99 102 241 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-indigo-600{--tw-gradient-from: #4f46e5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(79 70 229 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-orange-600{--tw-gradient-from: #ea580c var(--tw-gradient-from-position);--tw-gradient-to: rgb(234 88 12 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-indigo-700{--tw-gradient-to: rgb(67 56 202 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #4338ca var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-blue-700{--tw-gradient-to: #1d4ed8 var(--tw-gradient-to-position)}.to-emerald-700{--tw-gradient-to: #047857 var(--tw-gradient-to-position)}.to-gray-700{--tw-gradient-to: #2e2e3e var(--tw-gradient-to-position)}.to-gray-800{--tw-gradient-to: #1e1e2a var(--tw-gradient-to-position)}.to-green-700{--tw-gradient-to: #15803d var(--tw-gradient-to-position)}.to-indigo-700{--tw-gradient-to: #4338ca var(--tw-gradient-to-position)}.to-orange-700{--tw-gradient-to: #c2410c var(--tw-gradient-to-position)}.to-purple-600{--tw-gradient-to: #9333ea var(--tw-gradient-to-position)}.to-purple-800{--tw-gradient-to: #6b21a8 var(--tw-gradient-to-position)}.fill-current{fill:currentColor}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-16{padding-left:4rem;padding-right:4rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pl-10{padding-left:2.5rem}.pl-8{padding-left:2rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-20{padding-right:5rem}.pr-8{padding-right:2rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-\[20vh\]{padding-top:20vh}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:JetBrains Mono,Fira Code,monospace}.font-sans{font-family:Inter,system-ui,-apple-system,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.text-emerald-400{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.text-gray-100{--tw-text-opacity: 1;color:rgb(229 229 240 / var(--tw-text-opacity, 1))}.text-gray-200{--tw-text-opacity: 1;color:rgb(204 204 220 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(170 170 190 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(136 136 160 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(90 90 112 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(63 63 82 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(46 46 62 / var(--tw-text-opacity, 1))}.text-green-100{--tw-text-opacity: 1;color:rgb(220 252 231 / var(--tw-text-opacity, 1))}.text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.text-indigo-200{--tw-text-opacity: 1;color:rgb(199 210 254 / var(--tw-text-opacity, 1))}.text-indigo-300{--tw-text-opacity: 1;color:rgb(165 180 252 / var(--tw-text-opacity, 1))}.text-indigo-400{--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.text-purple-400{--tw-text-opacity: 1;color:rgb(192 132 252 / var(--tw-text-opacity, 1))}.text-red-100{--tw-text-opacity: 1;color:rgb(254 226 226 / var(--tw-text-opacity, 1))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-100{--tw-text-opacity: 1;color:rgb(254 249 195 / var(--tw-text-opacity, 1))}.underline-offset-4{text-underline-offset:4px}.accent-indigo-600{accent-color:#4f46e5}.opacity-0{opacity:0}.opacity-10{opacity:.1}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-90{opacity:.9}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-indigo-500\/20{--tw-shadow-color: rgb(99 102 241 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-500\/25{--tw-shadow-color: rgb(99 102 241 / .25);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-gray-900{--tw-ring-offset-color: #111118}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.placeholder\:text-gray-500::-moz-placeholder{--tw-text-opacity: 1;color:rgb(90 90 112 / var(--tw-text-opacity, 1))}.placeholder\:text-gray-500::placeholder{--tw-text-opacity: 1;color:rgb(90 90 112 / var(--tw-text-opacity, 1))}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:left-0\.5:after{content:var(--tw-content);left:.125rem}.after\:top-0\.5:after{content:var(--tw-content);top:.125rem}.after\:h-4:after{content:var(--tw-content);height:1rem}.after\:w-4:after{content:var(--tw-content);width:1rem}.after\:rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\:bg-white:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.after\:transition-all:after{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.after\:content-\[\'\'\]:after{--tw-content: "";content:var(--tw-content)}.first\:rounded-t-lg:first-child{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.last\:rounded-b-lg:last-child{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(63 63 82 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-700:hover{--tw-bg-opacity: 1;background-color:rgb(46 46 62 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-700\/50:hover{background-color:#2e2e3e80}.hover\:bg-gray-800:hover{--tw-bg-opacity: 1;background-color:rgb(30 30 42 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-800\/50:hover{background-color:#1e1e2a80}.hover\:bg-gray-800\/60:hover{background-color:#1e1e2a99}.hover\:bg-gray-800\/80:hover{background-color:#1e1e2acc}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))}.hover\:text-gray-100:hover{--tw-text-opacity: 1;color:rgb(229 229 240 / var(--tw-text-opacity, 1))}.hover\:text-gray-300:hover{--tw-text-opacity: 1;color:rgb(170 170 190 / var(--tw-text-opacity, 1))}.hover\:text-indigo-300:hover{--tw-text-opacity: 1;color:rgb(165 180 252 / var(--tw-text-opacity, 1))}.hover\:text-red-400:hover{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:bg-gray-700:focus{--tw-bg-opacity: 1;background-color:rgb(46 46 62 / var(--tw-bg-opacity, 1))}.focus\:text-white:focus{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.focus\:opacity-100:focus{opacity:1}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\:ring-offset-gray-900:focus-visible{--tw-ring-offset-color: #111118}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:text-gray-400{--tw-text-opacity: 1;color:rgb(136 136 160 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-indigo-400{--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:opacity-100{opacity:1}.peer:checked~.peer-checked\:bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1))}.peer:checked~.peer-checked\:after\:translate-x-4:after{content:var(--tw-content);--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.aria-selected\:bg-gray-700[aria-selected=true]{--tw-bg-opacity: 1;background-color:rgb(46 46 62 / var(--tw-bg-opacity, 1))}.aria-selected\:text-white[aria-selected=true]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.data-\[disabled\=\'true\'\]\:pointer-events-none[data-disabled=true],.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[state\=checked\]\:translate-x-5[data-state=checked]{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked],.data-\[swipe\=cancel\]\:translate-x-0[data-swipe=cancel]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end]{--tw-translate-x: var(--radix-toast-swipe-end-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{--tw-translate-x: var(--radix-toast-swipe-move-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=open\]\:bg-gray-700[data-state=open]{--tw-bg-opacity: 1;background-color:rgb(46 46 62 / var(--tw-bg-opacity, 1))}.data-\[state\=open\]\:bg-gray-800[data-state=open]{--tw-bg-opacity: 1;background-color:rgb(30 30 42 / var(--tw-bg-opacity, 1))}.data-\[state\=unchecked\]\:bg-gray-700[data-state=unchecked]{--tw-bg-opacity: 1;background-color:rgb(46 46 62 / var(--tw-bg-opacity, 1))}.data-\[state\=open\]\:text-gray-400[data-state=open]{--tw-text-opacity: 1;color:rgb(136 136 160 / var(--tw-text-opacity, 1))}.data-\[disabled\=\'true\'\]\:opacity-50[data-disabled=true],.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[swipe\=move\]\:transition-none[data-swipe=move]{transition-property:none}@media (min-width: 640px){.sm\:bottom-0{bottom:0}.sm\:right-0{right:0}.sm\:top-auto{top:auto}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:flex-col{flex-direction:column}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:text-left{text-align:left}}@media (min-width: 768px){.md\:max-w-\[420px\]{max-width:420px}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 1024px){.lg\:col-span-2{grid-column:span 2 / span 2}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:w-1\/2{width:50%}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-top:.375rem;padding-bottom:.375rem}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{font-weight:500}.\[\&_\[cmdk-group-heading\]\]\:text-gray-400 [cmdk-group-heading]{--tw-text-opacity: 1;color:rgb(136 136 160 / var(--tw-text-opacity, 1))}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:3rem}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-top:.75rem;padding-bottom:.75rem}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:1.25rem}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:1.25rem} diff --git a/frontend_build/assets/index-BY2tGtHO.js b/frontend_build/assets/index-BY2tGtHO.js deleted file mode 100644 index 76b2035..0000000 --- a/frontend_build/assets/index-BY2tGtHO.js +++ /dev/null @@ -1,472 +0,0 @@ -var zb=e=>{throw TypeError(e)};var up=(e,t,r)=>t.has(e)||zb("Cannot "+r);var E=(e,t,r)=>(up(e,t,"read from private field"),r?r.call(e):t.get(e)),re=(e,t,r)=>t.has(e)?zb("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Q=(e,t,r,n)=>(up(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),de=(e,t,r)=>(up(e,t,"access private method"),r);var ic=(e,t,r,n)=>({set _(i){Q(e,t,i,r)},get _(){return E(e,t,n)}});function vC(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var ac=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ae(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var e_={exports:{}},Fd={},t_={exports:{}},pe={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Fu=Symbol.for("react.element"),gC=Symbol.for("react.portal"),bC=Symbol.for("react.fragment"),xC=Symbol.for("react.strict_mode"),wC=Symbol.for("react.profiler"),SC=Symbol.for("react.provider"),OC=Symbol.for("react.context"),jC=Symbol.for("react.forward_ref"),_C=Symbol.for("react.suspense"),PC=Symbol.for("react.memo"),AC=Symbol.for("react.lazy"),Bb=Symbol.iterator;function kC(e){return e===null||typeof e!="object"?null:(e=Bb&&e[Bb]||e["@@iterator"],typeof e=="function"?e:null)}var r_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},n_=Object.assign,i_={};function Ss(e,t,r){this.props=e,this.context=t,this.refs=i_,this.updater=r||r_}Ss.prototype.isReactComponent={};Ss.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ss.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function a_(){}a_.prototype=Ss.prototype;function vg(e,t,r){this.props=e,this.context=t,this.refs=i_,this.updater=r||r_}var gg=vg.prototype=new a_;gg.constructor=vg;n_(gg,Ss.prototype);gg.isPureReactComponent=!0;var Fb=Array.isArray,o_=Object.prototype.hasOwnProperty,bg={current:null},s_={key:!0,ref:!0,__self:!0,__source:!0};function l_(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)o_.call(t,n)&&!s_.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1>>1,H=C[V];if(0>>1;Vi(be,U))zei(we,be)?(C[V]=we,C[ze]=U,V=ze):(C[V]=be,C[ie]=U,V=ie);else if(zei(we,U))C[V]=we,C[ze]=U,V=ze;else break e}}return B}function i(C,B){var U=C.sortIndex-B.sortIndex;return U!==0?U:C.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],f=1,c=null,h=3,p=!1,m=!1,y=!1,v=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(C){for(var B=r(u);B!==null;){if(B.callback===null)n(u);else if(B.startTime<=C)n(u),B.sortIndex=B.expirationTime,t(l,B);else break;B=r(u)}}function O(C){if(y=!1,x(C),!m)if(r(l)!==null)m=!0,D(w);else{var B=r(u);B!==null&&F(O,B.startTime-C)}}function w(C,B){m=!1,y&&(y=!1,g(_),_=-1),p=!0;var U=h;try{for(x(B),c=r(l);c!==null&&(!(c.expirationTime>B)||C&&!$());){var V=c.callback;if(typeof V=="function"){c.callback=null,h=c.priorityLevel;var H=V(c.expirationTime<=B);B=e.unstable_now(),typeof H=="function"?c.callback=H:c===r(l)&&n(l),x(B)}else n(l);c=r(l)}if(c!==null)var X=!0;else{var ie=r(u);ie!==null&&F(O,ie.startTime-B),X=!1}return X}finally{c=null,h=U,p=!1}}var S=!1,j=null,_=-1,P=5,N=-1;function $(){return!(e.unstable_now()-NC||125V?(C.sortIndex=U,t(u,C),r(l)===null&&C===r(u)&&(y?(g(_),_=-1):y=!0,F(O,U-V))):(C.sortIndex=H,t(l,C),m||p||(m=!0,D(w))),C},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(C){var B=h;return function(){var U=h;h=B;try{return C.apply(this,arguments)}finally{h=U}}}})(h_);d_.exports=h_;var BC=d_.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var FC=A,ur=BC;function q(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Om=Object.prototype.hasOwnProperty,UC=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Wb={},Hb={};function WC(e){return Om.call(Hb,e)?!0:Om.call(Wb,e)?!1:UC.test(e)?Hb[e]=!0:(Wb[e]=!0,!1)}function HC(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function KC(e,t,r,n){if(t===null||typeof t>"u"||HC(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function zt(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var St={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){St[e]=new zt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];St[t]=new zt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){St[e]=new zt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){St[e]=new zt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){St[e]=new zt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){St[e]=new zt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){St[e]=new zt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){St[e]=new zt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){St[e]=new zt(e,5,!1,e.toLowerCase(),null,!1,!1)});var wg=/[\-:]([a-z])/g;function Sg(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(wg,Sg);St[t]=new zt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(wg,Sg);St[t]=new zt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(wg,Sg);St[t]=new zt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){St[e]=new zt(e,1,!1,e.toLowerCase(),null,!1,!1)});St.xlinkHref=new zt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){St[e]=new zt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Og(e,t,r,n){var i=St.hasOwnProperty(t)?St[t]:null;(i!==null?i.type!==0:n||!(2s||i[o]!==a[s]){var l=` -`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{dp=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?cl(e):""}function qC(e){switch(e.tag){case 5:return cl(e.type);case 16:return cl("Lazy");case 13:return cl("Suspense");case 19:return cl("SuspenseList");case 0:case 2:case 15:return e=hp(e.type,!1),e;case 11:return e=hp(e.type.render,!1),e;case 1:return e=hp(e.type,!0),e;default:return""}}function Am(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ro:return"Fragment";case to:return"Portal";case jm:return"Profiler";case jg:return"StrictMode";case _m:return"Suspense";case Pm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case y_:return(e.displayName||"Context")+".Consumer";case m_:return(e._context.displayName||"Context")+".Provider";case _g:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Pg:return t=e.displayName||null,t!==null?t:Am(e.type)||"Memo";case Gn:t=e._payload,e=e._init;try{return Am(e(t))}catch{}}return null}function VC(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Am(t);case 8:return t===jg?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function _i(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function g_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function GC(e){var t=g_(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function lc(e){e._valueTracker||(e._valueTracker=GC(e))}function b_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=g_(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function sf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function km(e,t){var r=t.checked;return He({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function qb(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=_i(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function x_(e,t){t=t.checked,t!=null&&Og(e,"checked",t,!1)}function Em(e,t){x_(e,t);var r=_i(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Nm(e,t.type,r):t.hasOwnProperty("defaultValue")&&Nm(e,t.type,_i(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Vb(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Nm(e,t,r){(t!=="number"||sf(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var fl=Array.isArray;function bo(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=uc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ml(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var yl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},XC=["Webkit","ms","Moz","O"];Object.keys(yl).forEach(function(e){XC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),yl[t]=yl[e]})});function j_(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||yl.hasOwnProperty(e)&&yl[e]?(""+t).trim():t+"px"}function __(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=j_(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var QC=He({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $m(e,t){if(t){if(QC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(q(62))}}function Mm(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Im=null;function Ag(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Rm=null,xo=null,wo=null;function Qb(e){if(e=Hu(e)){if(typeof Rm!="function")throw Error(q(280));var t=e.stateNode;t&&(t=qd(t),Rm(e.stateNode,e.type,t))}}function P_(e){xo?wo?wo.push(e):wo=[e]:xo=e}function A_(){if(xo){var e=xo,t=wo;if(wo=xo=null,Qb(e),t)for(e=0;e>>=0,e===0?32:31-(sT(e)/lT|0)|0}var cc=64,fc=4194304;function dl(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ff(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var s=o&~i;s!==0?n=dl(s):(a&=o,a!==0&&(n=dl(a)))}else o=r&~i,o!==0?n=dl(o):a!==0&&(n=dl(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Uu(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Br(t),e[t]=r}function dT(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=gl),ax=" ",ox=!1;function V_(e,t){switch(e){case"keyup":return BT.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function G_(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var no=!1;function UT(e,t){switch(e){case"compositionend":return G_(t);case"keypress":return t.which!==32?null:(ox=!0,ax);case"textInput":return e=t.data,e===ax&&ox?null:e;default:return null}}function WT(e,t){if(no)return e==="compositionend"||!Ig&&V_(e,t)?(e=K_(),Kc=Tg=ui=null,no=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cx(r)}}function J_(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?J_(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Z_(){for(var e=window,t=sf();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=sf(e.document)}return t}function Rg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function JT(e){var t=Z_(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&J_(r.ownerDocument.documentElement,r)){if(n!==null&&Rg(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=fx(r,a);var o=fx(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,io=null,Um=null,xl=null,Wm=!1;function dx(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Wm||io==null||io!==sf(n)||(n=io,"selectionStart"in n&&Rg(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),xl&&Bl(xl,n)||(xl=n,n=pf(Um,"onSelect"),0so||(e.current=Xm[so],Xm[so]=null,so--)}function $e(e,t){so++,Xm[so]=e.current,e.current=t}var Pi={},Nt=$i(Pi),Gt=$i(!1),ja=Pi;function Wo(e,t){var r=e.type.contextTypes;if(!r)return Pi;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Xt(e){return e=e.childContextTypes,e!=null}function yf(){Le(Gt),Le(Nt)}function bx(e,t,r){if(Nt.current!==Pi)throw Error(q(168));$e(Nt,t),$e(Gt,r)}function lP(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(q(108,VC(e)||"Unknown",i));return He({},r,n)}function vf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pi,ja=Nt.current,$e(Nt,e),$e(Gt,Gt.current),!0}function xx(e,t,r){var n=e.stateNode;if(!n)throw Error(q(169));r?(e=lP(e,t,ja),n.__reactInternalMemoizedMergedChildContext=e,Le(Gt),Le(Nt),$e(Nt,e)):Le(Gt),$e(Gt,r)}var yn=null,Vd=!1,Ap=!1;function uP(e){yn===null?yn=[e]:yn.push(e)}function c$(e){Vd=!0,uP(e)}function Mi(){if(!Ap&&yn!==null){Ap=!0;var e=0,t=Pe;try{var r=yn;for(Pe=1;e>=o,i-=o,wn=1<<32-Br(t)+i|r<_?(P=j,j=null):P=j.sibling;var N=h(g,j,x[_],O);if(N===null){j===null&&(j=P);break}e&&j&&N.alternate===null&&t(g,j),b=a(N,b,_),S===null?w=N:S.sibling=N,S=N,j=P}if(_===x.length)return r(g,j),Be&&Gi(g,_),w;if(j===null){for(;__?(P=j,j=null):P=j.sibling;var $=h(g,j,N.value,O);if($===null){j===null&&(j=P);break}e&&j&&$.alternate===null&&t(g,j),b=a($,b,_),S===null?w=$:S.sibling=$,S=$,j=P}if(N.done)return r(g,j),Be&&Gi(g,_),w;if(j===null){for(;!N.done;_++,N=x.next())N=c(g,N.value,O),N!==null&&(b=a(N,b,_),S===null?w=N:S.sibling=N,S=N);return Be&&Gi(g,_),w}for(j=n(g,j);!N.done;_++,N=x.next())N=p(j,g,_,N.value,O),N!==null&&(e&&N.alternate!==null&&j.delete(N.key===null?_:N.key),b=a(N,b,_),S===null?w=N:S.sibling=N,S=N);return e&&j.forEach(function(T){return t(g,T)}),Be&&Gi(g,_),w}function v(g,b,x,O){if(typeof x=="object"&&x!==null&&x.type===ro&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case sc:e:{for(var w=x.key,S=b;S!==null;){if(S.key===w){if(w=x.type,w===ro){if(S.tag===7){r(g,S.sibling),b=i(S,x.props.children),b.return=g,g=b;break e}}else if(S.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Gn&&Ox(w)===S.type){r(g,S.sibling),b=i(S,x.props),b.ref=Xs(g,S,x),b.return=g,g=b;break e}r(g,S);break}else t(g,S);S=S.sibling}x.type===ro?(b=xa(x.props.children,g.mode,O,x.key),b.return=g,g=b):(O=Zc(x.type,x.key,x.props,null,g.mode,O),O.ref=Xs(g,b,x),O.return=g,g=O)}return o(g);case to:e:{for(S=x.key;b!==null;){if(b.key===S)if(b.tag===4&&b.stateNode.containerInfo===x.containerInfo&&b.stateNode.implementation===x.implementation){r(g,b.sibling),b=i(b,x.children||[]),b.return=g,g=b;break e}else{r(g,b);break}else t(g,b);b=b.sibling}b=Ip(x,g.mode,O),b.return=g,g=b}return o(g);case Gn:return S=x._init,v(g,b,S(x._payload),O)}if(fl(x))return m(g,b,x,O);if(Hs(x))return y(g,b,x,O);gc(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,b!==null&&b.tag===6?(r(g,b.sibling),b=i(b,x),b.return=g,g=b):(r(g,b),b=Mp(x,g.mode,O),b.return=g,g=b),o(g)):r(g,b)}return v}var Ko=hP(!0),pP=hP(!1),xf=$i(null),wf=null,co=null,Bg=null;function Fg(){Bg=co=wf=null}function Ug(e){var t=xf.current;Le(xf),e._currentValue=t}function Jm(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Oo(e,t){wf=e,Bg=co=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(qt=!0),e.firstContext=null)}function Pr(e){var t=e._currentValue;if(Bg!==e)if(e={context:e,memoizedValue:t,next:null},co===null){if(wf===null)throw Error(q(308));co=e,wf.dependencies={lanes:0,firstContext:e}}else co=co.next=e;return t}var ta=null;function Wg(e){ta===null?ta=[e]:ta.push(e)}function mP(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,Wg(t)):(r.next=i.next,i.next=r),t.interleaved=r,$n(e,n)}function $n(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Xn=!1;function Hg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function yP(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Pn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gi(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,ge&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,$n(e,r)}return i=n.interleaved,i===null?(t.next=t,Wg(n)):(t.next=i.next,i.next=t),n.interleaved=t,$n(e,r)}function Vc(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Eg(e,r)}}function jx(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Sf(e,t,r,n){var i=e.updateQueue;Xn=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,o===null?a=u:o.next=u,o=l;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==o&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=l))}if(a!==null){var c=i.baseState;o=0,f=u=l=null,s=a;do{var h=s.lane,p=s.eventTime;if((n&h)===h){f!==null&&(f=f.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,y=s;switch(h=t,p=r,y.tag){case 1:if(m=y.payload,typeof m=="function"){c=m.call(p,c,h);break e}c=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=y.payload,h=typeof m=="function"?m.call(p,c,h):m,h==null)break e;c=He({},c,h);break e;case 2:Xn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[s]:h.push(s))}else p={eventTime:p,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=p,l=c):f=f.next=p,o|=h;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;h=s,s=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(f===null&&(l=c),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Aa|=o,e.lanes=o,e.memoizedState=c}}function _x(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=Ep.transition;Ep.transition={};try{e(!1),t()}finally{Pe=r,Ep.transition=n}}function $P(){return Ar().memoizedState}function p$(e,t,r){var n=xi(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},MP(e))IP(t,r);else if(r=mP(e,t,r,n),r!==null){var i=Dt();Fr(r,e,n,i),RP(r,t,n)}}function m$(e,t,r){var n=xi(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(MP(e))IP(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,Wr(s,o)){var l=t.interleaved;l===null?(i.next=i,Wg(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=mP(e,t,i,n),r!==null&&(i=Dt(),Fr(r,e,n,i),RP(r,t,n))}}function MP(e){var t=e.alternate;return e===We||t!==null&&t===We}function IP(e,t){wl=jf=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function RP(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Eg(e,r)}}var _f={readContext:Pr,useCallback:Ot,useContext:Ot,useEffect:Ot,useImperativeHandle:Ot,useInsertionEffect:Ot,useLayoutEffect:Ot,useMemo:Ot,useReducer:Ot,useRef:Ot,useState:Ot,useDebugValue:Ot,useDeferredValue:Ot,useTransition:Ot,useMutableSource:Ot,useSyncExternalStore:Ot,useId:Ot,unstable_isNewReconciler:!1},y$={readContext:Pr,useCallback:function(e,t){return Vr().memoizedState=[e,t===void 0?null:t],e},useContext:Pr,useEffect:Ax,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Xc(4194308,4,kP.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Xc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Xc(4,2,e,t)},useMemo:function(e,t){var r=Vr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Vr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=p$.bind(null,We,e),[n.memoizedState,e]},useRef:function(e){var t=Vr();return e={current:e},t.memoizedState=e},useState:Px,useDebugValue:Jg,useDeferredValue:function(e){return Vr().memoizedState=e},useTransition:function(){var e=Px(!1),t=e[0];return e=h$.bind(null,e[1]),Vr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=We,i=Vr();if(Be){if(r===void 0)throw Error(q(407));r=r()}else{if(r=t(),yt===null)throw Error(q(349));Pa&30||xP(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Ax(SP.bind(null,n,a,e),[e]),n.flags|=2048,Gl(9,wP.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=Vr(),t=yt.identifierPrefix;if(Be){var r=Sn,n=wn;r=(n&~(1<<32-Br(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=ql++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[Yr]=t,e[Wl]=n,qP(e,t,!1,!1),t.stateNode=e;e:{switch(o=Mm(r,n),r){case"dialog":Ie("cancel",e),Ie("close",e),i=n;break;case"iframe":case"object":case"embed":Ie("load",e),i=n;break;case"video":case"audio":for(i=0;iGo&&(t.flags|=128,n=!0,Qs(a,!1),t.lanes=4194304)}else{if(!n)if(e=Of(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Qs(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Be)return jt(t),null}else 2*Xe()-a.renderingStartTime>Go&&r!==1073741824&&(t.flags|=128,n=!0,Qs(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,r=Ue.current,$e(Ue,n?r&1|2:r&1),t):(jt(t),null);case 22:case 23:return i0(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?nr&1073741824&&(jt(t),t.subtreeFlags&6&&(t.flags|=8192)):jt(t),null;case 24:return null;case 25:return null}throw Error(q(156,t.tag))}function j$(e,t){switch(Lg(t),t.tag){case 1:return Xt(t.type)&&yf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qo(),Le(Gt),Le(Nt),Vg(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return qg(t),null;case 13:if(Le(Ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));Ho()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Le(Ue),null;case 4:return qo(),null;case 10:return Ug(t.type._context),null;case 22:case 23:return i0(),null;case 24:return null;default:return null}}var xc=!1,At=!1,_$=typeof WeakSet=="function"?WeakSet:Set,Y=null;function fo(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ve(e,t,n)}else r.current=null}function sy(e,t,r){try{r()}catch(n){Ve(e,t,n)}}var Lx=!1;function P$(e,t){if(Hm=df,e=Z_(),Rg(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,s=-1,l=-1,u=0,f=0,c=e,h=null;t:for(;;){for(var p;c!==r||i!==0&&c.nodeType!==3||(s=o+i),c!==a||n!==0&&c.nodeType!==3||(l=o+n),c.nodeType===3&&(o+=c.nodeValue.length),(p=c.firstChild)!==null;)h=c,c=p;for(;;){if(c===e)break t;if(h===r&&++u===i&&(s=o),h===a&&++f===n&&(l=o),(p=c.nextSibling)!==null)break;c=h,h=c.parentNode}c=p}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Km={focusedElem:e,selectionRange:r},df=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,v=m.memoizedState,g=t.stateNode,b=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:$r(t.type,y),v);g.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(q(163))}}catch(O){Ve(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return m=Lx,Lx=!1,m}function Sl(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&sy(t,r,a)}i=i.next}while(i!==n)}}function Qd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function ly(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function XP(e){var t=e.alternate;t!==null&&(e.alternate=null,XP(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Yr],delete t[Wl],delete t[Gm],delete t[l$],delete t[u$])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function QP(e){return e.tag===5||e.tag===3||e.tag===4}function zx(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||QP(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function uy(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=mf));else if(n!==4&&(e=e.child,e!==null))for(uy(e,t,r),e=e.sibling;e!==null;)uy(e,t,r),e=e.sibling}function cy(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(cy(e,t,r),e=e.sibling;e!==null;)cy(e,t,r),e=e.sibling}var xt=null,Rr=!1;function Hn(e,t,r){for(r=r.child;r!==null;)YP(e,t,r),r=r.sibling}function YP(e,t,r){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(Ud,r)}catch{}switch(r.tag){case 5:At||fo(r,t);case 6:var n=xt,i=Rr;xt=null,Hn(e,t,r),xt=n,Rr=i,xt!==null&&(Rr?(e=xt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):xt.removeChild(r.stateNode));break;case 18:xt!==null&&(Rr?(e=xt,r=r.stateNode,e.nodeType===8?Pp(e.parentNode,r):e.nodeType===1&&Pp(e,r),Ll(e)):Pp(xt,r.stateNode));break;case 4:n=xt,i=Rr,xt=r.stateNode.containerInfo,Rr=!0,Hn(e,t,r),xt=n,Rr=i;break;case 0:case 11:case 14:case 15:if(!At&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&sy(r,t,o),i=i.next}while(i!==n)}Hn(e,t,r);break;case 1:if(!At&&(fo(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Ve(r,t,s)}Hn(e,t,r);break;case 21:Hn(e,t,r);break;case 22:r.mode&1?(At=(n=At)||r.memoizedState!==null,Hn(e,t,r),At=n):Hn(e,t,r);break;default:Hn(e,t,r)}}function Bx(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new _$),t.forEach(function(n){var i=I$.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Cr(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=o),n&=~a}if(n=i,n=Xe()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*k$(n/1960))-n,10e?16:e,ci===null)var n=!1;else{if(e=ci,ci=null,kf=0,ge&6)throw Error(q(331));var i=ge;for(ge|=4,Y=e.current;Y!==null;){var a=Y,o=a.child;if(Y.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lXe()-r0?ba(e,0):t0|=r),Qt(e,t)}function aA(e,t){t===0&&(e.mode&1?(t=fc,fc<<=1,!(fc&130023424)&&(fc=4194304)):t=1);var r=Dt();e=$n(e,t),e!==null&&(Uu(e,t,r),Qt(e,r))}function M$(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),aA(e,r)}function I$(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(q(314))}n!==null&&n.delete(t),aA(e,r)}var oA;oA=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Gt.current)qt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return qt=!1,S$(e,t,r);qt=!!(e.flags&131072)}else qt=!1,Be&&t.flags&1048576&&cP(t,bf,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Qc(e,t),e=t.pendingProps;var i=Wo(t,Nt.current);Oo(t,r),i=Xg(null,t,n,e,i,r);var a=Qg();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Xt(n)?(a=!0,vf(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Hg(t),i.updater=Xd,t.stateNode=i,i._reactInternals=t,ey(t,n,e,r),t=ny(null,t,n,!0,a,r)):(t.tag=0,Be&&a&&Dg(t),Tt(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Qc(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=D$(n),e=$r(n,e),i){case 0:t=ry(null,t,n,e,r);break e;case 1:t=Ix(null,t,n,e,r);break e;case 11:t=$x(null,t,n,e,r);break e;case 14:t=Mx(null,t,n,$r(n.type,e),r);break e}throw Error(q(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:$r(n,i),ry(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:$r(n,i),Ix(e,t,n,i,r);case 3:e:{if(WP(t),e===null)throw Error(q(387));n=t.pendingProps,a=t.memoizedState,i=a.element,yP(e,t),Sf(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Vo(Error(q(423)),t),t=Rx(e,t,n,r,i);break e}else if(n!==i){i=Vo(Error(q(424)),t),t=Rx(e,t,n,r,i);break e}else for(or=vi(t.stateNode.containerInfo.firstChild),sr=t,Be=!0,Lr=null,r=pP(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ho(),n===i){t=Mn(e,t,r);break e}Tt(e,t,n,r)}t=t.child}return t;case 5:return vP(t),e===null&&Ym(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,qm(n,i)?o=null:a!==null&&qm(n,a)&&(t.flags|=32),UP(e,t),Tt(e,t,o,r),t.child;case 6:return e===null&&Ym(t),null;case 13:return HP(e,t,r);case 4:return Kg(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ko(t,null,n,r):Tt(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:$r(n,i),$x(e,t,n,i,r);case 7:return Tt(e,t,t.pendingProps,r),t.child;case 8:return Tt(e,t,t.pendingProps.children,r),t.child;case 12:return Tt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,$e(xf,n._currentValue),n._currentValue=o,a!==null)if(Wr(a.value,o)){if(a.children===i.children&&!Gt.current){t=Mn(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=Pn(-1,r&-r),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?l.next=l:(l.next=f.next,f.next=l),u.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),Jm(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(q(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),Jm(o,r,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Tt(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Oo(t,r),i=Pr(i),n=n(i),t.flags|=1,Tt(e,t,n,r),t.child;case 14:return n=t.type,i=$r(n,t.pendingProps),i=$r(n.type,i),Mx(e,t,n,i,r);case 15:return BP(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:$r(n,i),Qc(e,t),t.tag=1,Xt(n)?(e=!0,vf(t)):e=!1,Oo(t,r),DP(t,n,i),ey(t,n,i,r),ny(null,t,n,!0,e,r);case 19:return KP(e,t,r);case 22:return FP(e,t,r)}throw Error(q(156,t.tag))};function sA(e,t){return M_(e,t)}function R$(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wr(e,t,r,n){return new R$(e,t,r,n)}function o0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function D$(e){if(typeof e=="function")return o0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_g)return 11;if(e===Pg)return 14}return 2}function wi(e,t){var r=e.alternate;return r===null?(r=wr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Zc(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")o0(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ro:return xa(r.children,i,a,t);case jg:o=8,i|=8;break;case jm:return e=wr(12,r,t,i|2),e.elementType=jm,e.lanes=a,e;case _m:return e=wr(13,r,t,i),e.elementType=_m,e.lanes=a,e;case Pm:return e=wr(19,r,t,i),e.elementType=Pm,e.lanes=a,e;case v_:return Jd(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case m_:o=10;break e;case y_:o=9;break e;case _g:o=11;break e;case Pg:o=14;break e;case Gn:o=16,n=null;break e}throw Error(q(130,e==null?e:typeof e,""))}return t=wr(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function xa(e,t,r,n){return e=wr(7,e,n,t),e.lanes=r,e}function Jd(e,t,r,n){return e=wr(22,e,n,t),e.elementType=v_,e.lanes=r,e.stateNode={isHidden:!1},e}function Mp(e,t,r){return e=wr(6,e,null,t),e.lanes=r,e}function Ip(e,t,r){return t=wr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function L$(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mp(0),this.expirationTimes=mp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mp(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function s0(e,t,r,n,i,a,o,s,l){return e=new L$(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=wr(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Hg(a),e}function z$(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(fA)}catch(e){console.error(e)}}fA(),f_.exports=cr;var H$=f_.exports,Gx=H$;Sm.createRoot=Gx.createRoot,Sm.hydrateRoot=Gx.hydrateRoot;/** - * @remix-run/router v1.23.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Ql(){return Ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function f0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function q$(){return Math.random().toString(36).substr(2,8)}function Qx(e,t){return{usr:e.state,key:e.key,idx:t}}function my(e,t,r,n){return r===void 0&&(r=null),Ql({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?_s(t):t,{state:r,key:t&&t.key||n||q$()})}function Cf(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function _s(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function V$(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:a=!1}=n,o=i.history,s=fi.Pop,l=null,u=f();u==null&&(u=0,o.replaceState(Ql({},o.state,{idx:u}),""));function f(){return(o.state||{idx:null}).idx}function c(){s=fi.Pop;let v=f(),g=v==null?null:v-u;u=v,l&&l({action:s,location:y.location,delta:g})}function h(v,g){s=fi.Push;let b=my(y.location,v,g);u=f()+1;let x=Qx(b,u),O=y.createHref(b);try{o.pushState(x,"",O)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;i.location.assign(O)}a&&l&&l({action:s,location:y.location,delta:1})}function p(v,g){s=fi.Replace;let b=my(y.location,v,g);u=f();let x=Qx(b,u),O=y.createHref(b);o.replaceState(x,"",O),a&&l&&l({action:s,location:y.location,delta:0})}function m(v){let g=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof v=="string"?v:Cf(v);return b=b.replace(/ $/,"%20"),Qe(g,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,g)}let y={get action(){return s},get location(){return e(i,o)},listen(v){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Xx,c),l=v,()=>{i.removeEventListener(Xx,c),l=null}},createHref(v){return t(i,v)},createURL:m,encodeLocation(v){let g=m(v);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:p,go(v){return o.go(v)}};return y}var Yx;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Yx||(Yx={}));function G$(e,t,r){return r===void 0&&(r="/"),X$(e,t,r)}function X$(e,t,r,n){let i=typeof t=="string"?_s(t):t,a=d0(i.pathname||"/",r);if(a==null)return null;let o=dA(e);Q$(o);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(Qe(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=Si([n,l.relativePath]),f=r.concat(l);a.children&&a.children.length>0&&(Qe(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),dA(a.children,t,f,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:nM(u,a.index),routesMeta:f})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of hA(a.path))i(a,o,l)}),t}function hA(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return i?[a,""]:[a];let o=hA(n.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Q$(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:iM(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Y$=/^:[\w-]+$/,J$=3,Z$=2,eM=1,tM=10,rM=-2,Jx=e=>e==="*";function nM(e,t){let r=e.split("/"),n=r.length;return r.some(Jx)&&(n+=rM),t&&(n+=Z$),r.filter(i=>!Jx(i)).reduce((i,a)=>i+(Y$.test(a)?J$:a===""?eM:tM),n)}function iM(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function aM(e,t,r){let{routesMeta:n}=e,i={},a="/",o=[];for(let s=0;s{let{paramName:h,isOptional:p}=f;if(h==="*"){let y=s[c]||"";o=a.slice(0,a.length-y.length).replace(/(.)\/+$/,"$1")}const m=s[c];return p&&!m?u[h]=void 0:u[h]=(m||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:o,pattern:e}}function sM(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),f0(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function lM(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return f0(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function d0(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const uM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cM=e=>uM.test(e);function fM(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?_s(e):e,a;if(r)if(cM(r))a=r;else{if(r.includes("//")){let o=r;r=r.replace(/\/\/+/g,"/"),f0(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+r))}r.startsWith("/")?a=Zx(r.substring(1),"/"):a=Zx(r,t)}else a=t;return{pathname:a,search:pM(n),hash:mM(i)}}function Zx(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function Rp(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function dM(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function h0(e,t){let r=dM(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function p0(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=_s(e):(i=Ql({},e),Qe(!i.pathname||!i.pathname.includes("?"),Rp("?","pathname","search",i)),Qe(!i.pathname||!i.pathname.includes("#"),Rp("#","pathname","hash",i)),Qe(!i.search||!i.search.includes("#"),Rp("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(o==null)s=r;else{let c=t.length-1;if(!n&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),c-=1;i.pathname=h.join("/")}s=c>=0?t[c]:"/"}let l=fM(i,s),u=o&&o!=="/"&&o.endsWith("/"),f=(a||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||f)&&(l.pathname+="/"),l}const Si=e=>e.join("/").replace(/\/\/+/g,"/"),hM=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),pM=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,mM=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function yM(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const pA=["post","put","patch","delete"];new Set(pA);const vM=["get",...pA];new Set(vM);/** - * React Router v6.30.3 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Yl(){return Yl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),A.useCallback(function(u,f){if(f===void 0&&(f={}),!s.current)return;if(typeof u=="number"){n.go(u);return}let c=p0(u,JSON.parse(o),a,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Si([t,c.pathname])),(f.replace?n.replace:n.push)(c,f.state,f)},[t,n,o,a,e])}const wM=A.createContext(null);function SM(e){let t=A.useContext(ln).outlet;return t&&A.createElement(wM.Provider,{value:e},t)}function OM(){let{matches:e}=A.useContext(ln),t=e[e.length-1];return t?t.params:{}}function vA(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=A.useContext(Ii),{matches:i}=A.useContext(ln),{pathname:a}=As(),o=JSON.stringify(h0(i,n.v7_relativeSplatPath));return A.useMemo(()=>p0(e,JSON.parse(o),a,r==="path"),[e,o,a,r])}function jM(e,t){return _M(e,t)}function _M(e,t,r,n){Ps()||Qe(!1);let{navigator:i}=A.useContext(Ii),{matches:a}=A.useContext(ln),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=As(),f;if(t){var c;let v=typeof t=="string"?_s(t):t;l==="/"||(c=v.pathname)!=null&&c.startsWith(l)||Qe(!1),f=v}else f=u;let h=f.pathname||"/",p=h;if(l!=="/"){let v=l.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(v.length).join("/")}let m=G$(e,{pathname:p}),y=NM(m&&m.map(v=>Object.assign({},v,{params:Object.assign({},s,v.params),pathname:Si([l,i.encodeLocation?i.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:Si([l,i.encodeLocation?i.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),a,r,n);return t&&y?A.createElement(nh.Provider,{value:{location:Yl({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:fi.Pop}},y):y}function PM(){let e=MM(),t=yM(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},t),r?A.createElement("pre",{style:i},r):null,null)}const AM=A.createElement(PM,null);class kM extends A.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?A.createElement(ln.Provider,{value:this.props.routeContext},A.createElement(mA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function EM(e){let{routeContext:t,match:r,children:n}=e,i=A.useContext(m0);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),A.createElement(ln.Provider,{value:t},n)}function NM(e,t,r,n){var i;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var a;if(!r)return null;if(r.errors)e=r.matches;else if((a=n)!=null&&a.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,s=(i=r)==null?void 0:i.errors;if(s!=null){let f=o.findIndex(c=>c.route.id&&(s==null?void 0:s[c.route.id])!==void 0);f>=0||Qe(!1),o=o.slice(0,Math.min(o.length,f+1))}let l=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let f=0;f=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((f,c,h)=>{let p,m=!1,y=null,v=null;r&&(p=s&&c.route.id?s[c.route.id]:void 0,y=c.route.errorElement||AM,l&&(u<0&&h===0?(RM("route-fallback"),m=!0,v=null):u===h&&(m=!0,v=c.route.hydrateFallbackElement||null)));let g=t.concat(o.slice(0,h+1)),b=()=>{let x;return p?x=y:m?x=v:c.route.Component?x=A.createElement(c.route.Component,null):c.route.element?x=c.route.element:x=f,A.createElement(EM,{match:c,routeContext:{outlet:f,matches:g,isDataRoute:r!=null},children:x})};return r&&(c.route.ErrorBoundary||c.route.errorElement||h===0)?A.createElement(kM,{location:r.location,revalidation:r.revalidation,component:y,error:p,children:b(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):b()},null)}var gA=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(gA||{}),bA=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(bA||{});function CM(e){let t=A.useContext(m0);return t||Qe(!1),t}function TM(e){let t=A.useContext(gM);return t||Qe(!1),t}function $M(e){let t=A.useContext(ln);return t||Qe(!1),t}function xA(e){let t=$M(),r=t.matches[t.matches.length-1];return r.route.id||Qe(!1),r.route.id}function MM(){var e;let t=A.useContext(mA),r=TM(),n=xA();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function IM(){let{router:e}=CM(gA.UseNavigateStable),t=xA(bA.UseNavigateStable),r=A.useRef(!1);return yA(()=>{r.current=!0}),A.useCallback(function(i,a){a===void 0&&(a={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Yl({fromRouteId:t},a)))},[e,t])}const e1={};function RM(e,t,r){e1[e]||(e1[e]=!0)}function DM(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function yy(e){let{to:t,replace:r,state:n,relative:i}=e;Ps()||Qe(!1);let{future:a,static:o}=A.useContext(Ii),{matches:s}=A.useContext(ln),{pathname:l}=As(),u=Ua(),f=p0(t,h0(s,a.v7_relativeSplatPath),l,i==="path"),c=JSON.stringify(f);return A.useEffect(()=>u(JSON.parse(c),{replace:r,state:n,relative:i}),[u,c,i,r,n]),null}function LM(e){return SM(e.context)}function tr(e){Qe(!1)}function zM(e){let{basename:t="/",children:r=null,location:n,navigationType:i=fi.Pop,navigator:a,static:o=!1,future:s}=e;Ps()&&Qe(!1);let l=t.replace(/^\/*/,"/"),u=A.useMemo(()=>({basename:l,navigator:a,static:o,future:Yl({v7_relativeSplatPath:!1},s)}),[l,s,a,o]);typeof n=="string"&&(n=_s(n));let{pathname:f="/",search:c="",hash:h="",state:p=null,key:m="default"}=n,y=A.useMemo(()=>{let v=d0(f,l);return v==null?null:{location:{pathname:v,search:c,hash:h,state:p,key:m},navigationType:i}},[l,f,c,h,p,m,i]);return y==null?null:A.createElement(Ii.Provider,{value:u},A.createElement(nh.Provider,{children:r,value:y}))}function BM(e){let{children:t,location:r}=e;return jM(vy(t),r)}new Promise(()=>{});function vy(e,t){t===void 0&&(t=[]);let r=[];return A.Children.forEach(e,(n,i)=>{if(!A.isValidElement(n))return;let a=[...t,i];if(n.type===A.Fragment){r.push.apply(r,vy(n.props.children,a));return}n.type!==tr&&Qe(!1),!n.props.index||!n.props.children||Qe(!1);let o={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=vy(n.props.children,a)),r.push(o)}),r}/** - * React Router DOM v6.30.3 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function gy(){return gy=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}function UM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function WM(e,t){return e.button===0&&(!t||t==="_self")&&!UM(e)}const HM=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],KM="6";try{window.__reactRouterVersion=KM}catch{}const qM="startTransition",t1=$C[qM];function VM(e){let{basename:t,children:r,future:n,window:i}=e,a=A.useRef();a.current==null&&(a.current=K$({window:i,v5Compat:!0}));let o=a.current,[s,l]=A.useState({action:o.action,location:o.location}),{v7_startTransition:u}=n||{},f=A.useCallback(c=>{u&&t1?t1(()=>l(c)):l(c)},[l,u]);return A.useLayoutEffect(()=>o.listen(f),[o,f]),A.useEffect(()=>DM(n),[n]),A.createElement(zM,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:o,future:n})}const GM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",XM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ea=A.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:a,replace:o,state:s,target:l,to:u,preventScrollReset:f,viewTransition:c}=t,h=FM(t,HM),{basename:p}=A.useContext(Ii),m,y=!1;if(typeof u=="string"&&XM.test(u)&&(m=u,GM))try{let x=new URL(window.location.href),O=u.startsWith("//")?new URL(x.protocol+u):new URL(u),w=d0(O.pathname,p);O.origin===x.origin&&w!=null?u=w+O.search+O.hash:y=!0}catch{}let v=bM(u,{relative:i}),g=QM(u,{replace:o,state:s,target:l,preventScrollReset:f,relative:i,viewTransition:c});function b(x){n&&n(x),x.defaultPrevented||g(x)}return A.createElement("a",gy({},h,{href:m||v,onClick:y||a?n:b,ref:r,target:l}))});var r1;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(r1||(r1={}));var n1;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(n1||(n1={}));function QM(e,t){let{target:r,replace:n,state:i,preventScrollReset:a,relative:o,viewTransition:s}=t===void 0?{}:t,l=Ua(),u=As(),f=vA(e,{relative:o});return A.useCallback(c=>{if(WM(c,r)){c.preventDefault();let h=n!==void 0?n:Cf(u)===Cf(f);l(e,{replace:h,state:i,preventScrollReset:a,relative:o,viewTransition:s})}},[u,l,f,n,i,r,e,a,o,s])}var ks=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},YM={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},ei,yg,Wj,JM=(Wj=class{constructor(){re(this,ei,YM);re(this,yg,!1)}setTimeoutProvider(e){Q(this,ei,e)}setTimeout(e,t){return E(this,ei).setTimeout(e,t)}clearTimeout(e){E(this,ei).clearTimeout(e)}setInterval(e,t){return E(this,ei).setInterval(e,t)}clearInterval(e){E(this,ei).clearInterval(e)}},ei=new WeakMap,yg=new WeakMap,Wj),na=new JM;function ZM(e){setTimeout(e,0)}var Na=typeof window>"u"||"Deno"in globalThis;function $t(){}function eI(e,t){return typeof e=="function"?e(t):e}function by(e){return typeof e=="number"&&e>=0&&e!==1/0}function wA(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Oi(e,t){return typeof e=="function"?e(t):e}function vr(e,t){return typeof e=="function"?e(t):e}function i1(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(n){if(t.queryHash!==y0(o,t.options))return!1}else if(!Jl(t.queryKey,o))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function a1(e,t){const{exact:r,status:n,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(Ca(t.options.mutationKey)!==Ca(a))return!1}else if(!Jl(t.options.mutationKey,a))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function y0(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ca)(e)}function Ca(e){return JSON.stringify(e,(t,r)=>xy(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function Jl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Jl(e[r],t[r])):!1}var tI=Object.prototype.hasOwnProperty;function SA(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=o1(e)&&o1(t);if(!n&&!(xy(e)&&xy(t)))return t;const a=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),s=o.length,l=n?new Array(s):{};let u=0;for(let f=0;f{na.setTimeout(t,e)})}function wy(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?SA(e,t):t}function nI(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function iI(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var v0=Symbol();function OA(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===v0?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function g0(e,t){return typeof e=="function"?e(...t):!!e}function aI(e,t,r){let n=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),n||(n=!0,i.aborted?r():i.addEventListener("abort",r,{once:!0})),i)}),e}var ca,ti,No,Hj,oI=(Hj=class extends ks{constructor(){super();re(this,ca);re(this,ti);re(this,No);Q(this,No,t=>{if(!Na&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){E(this,ti)||this.setEventListener(E(this,No))}onUnsubscribe(){var t;this.hasListeners()||((t=E(this,ti))==null||t.call(this),Q(this,ti,void 0))}setEventListener(t){var r;Q(this,No,t),(r=E(this,ti))==null||r.call(this),Q(this,ti,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){E(this,ca)!==t&&(Q(this,ca,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof E(this,ca)=="boolean"?E(this,ca):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ca=new WeakMap,ti=new WeakMap,No=new WeakMap,Hj),b0=new oI;function Sy(){let e,t;const r=new Promise((i,a)=>{e=i,t=a});r.status="pending",r.catch(()=>{});function n(i){Object.assign(r,i),delete r.resolve,delete r.reject}return r.resolve=i=>{n({status:"fulfilled",value:i}),e(i)},r.reject=i=>{n({status:"rejected",reason:i}),t(i)},r}var sI=ZM;function lI(){let e=[],t=0,r=s=>{s()},n=s=>{s()},i=sI;const a=s=>{t?e.push(s):i(()=>{r(s)})},o=()=>{const s=e;e=[],s.length&&i(()=>{n(()=>{s.forEach(l=>{r(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||o()}return l},batchCalls:s=>(...l)=>{a(()=>{s(...l)})},schedule:a,setNotifyFunction:s=>{r=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{i=s}}}var st=lI(),Co,ri,To,Kj,uI=(Kj=class extends ks{constructor(){super();re(this,Co,!0);re(this,ri);re(this,To);Q(this,To,t=>{if(!Na&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){E(this,ri)||this.setEventListener(E(this,To))}onUnsubscribe(){var t;this.hasListeners()||((t=E(this,ri))==null||t.call(this),Q(this,ri,void 0))}setEventListener(t){var r;Q(this,To,t),(r=E(this,ri))==null||r.call(this),Q(this,ri,t(this.setOnline.bind(this)))}setOnline(t){E(this,Co)!==t&&(Q(this,Co,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return E(this,Co)}},Co=new WeakMap,ri=new WeakMap,To=new WeakMap,Kj),$f=new uI;function cI(e){return Math.min(1e3*2**e,3e4)}function jA(e){return(e??"online")==="online"?$f.isOnline():!0}var Oy=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function _A(e){let t=!1,r=0,n;const i=Sy(),a=()=>i.status!=="pending",o=y=>{var v;if(!a()){const g=new Oy(y);h(g),(v=e.onCancel)==null||v.call(e,g)}},s=()=>{t=!0},l=()=>{t=!1},u=()=>b0.isFocused()&&(e.networkMode==="always"||$f.isOnline())&&e.canRun(),f=()=>jA(e.networkMode)&&e.canRun(),c=y=>{a()||(n==null||n(),i.resolve(y))},h=y=>{a()||(n==null||n(),i.reject(y))},p=()=>new Promise(y=>{var v;n=g=>{(a()||u())&&y(g)},(v=e.onPause)==null||v.call(e)}).then(()=>{var y;n=void 0,a()||(y=e.onContinue)==null||y.call(e)}),m=()=>{if(a())return;let y;const v=r===0?e.initialPromise:void 0;try{y=v??e.fn()}catch(g){y=Promise.reject(g)}Promise.resolve(y).then(c).catch(g=>{var S;if(a())return;const b=e.retry??(Na?0:3),x=e.retryDelay??cI,O=typeof x=="function"?x(r,g):x,w=b===!0||typeof b=="number"&&ru()?void 0:p()).then(()=>{t?h(g):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(n==null||n(),i),cancelRetry:s,continueRetry:l,canStart:f,start:()=>(f()?m():p().then(m),i)}}var fa,qj,PA=(qj=class{constructor(){re(this,fa)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),by(this.gcTime)&&Q(this,fa,na.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Na?1/0:5*60*1e3))}clearGcTimeout(){E(this,fa)&&(na.clearTimeout(E(this,fa)),Q(this,fa,void 0))}},fa=new WeakMap,qj),da,$o,yr,ha,dt,Ru,pa,Mr,hn,Vj,fI=(Vj=class extends PA{constructor(t){super();re(this,Mr);re(this,da);re(this,$o);re(this,yr);re(this,ha);re(this,dt);re(this,Ru);re(this,pa);Q(this,pa,!1),Q(this,Ru,t.defaultOptions),this.setOptions(t.options),this.observers=[],Q(this,ha,t.client),Q(this,yr,E(this,ha).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Q(this,da,u1(this.options)),this.state=t.state??E(this,da),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=E(this,dt))==null?void 0:t.promise}setOptions(t){if(this.options={...E(this,Ru),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=u1(this.options);r.data!==void 0&&(this.setState(l1(r.data,r.dataUpdatedAt)),Q(this,da,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&E(this,yr).remove(this)}setData(t,r){const n=wy(this.state.data,t,this.options);return de(this,Mr,hn).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){de(this,Mr,hn).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,i;const r=(n=E(this,dt))==null?void 0:n.promise;return(i=E(this,dt))==null||i.cancel(t),r?r.then($t).catch($t):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(E(this,da))}isActive(){return this.observers.some(t=>vr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===v0||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Oi(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!wA(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=E(this,dt))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=E(this,dt))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),E(this,yr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(E(this,dt)&&(E(this,pa)?E(this,dt).cancel({revert:!0}):E(this,dt).cancelRetry()),this.scheduleGc()),E(this,yr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||de(this,Mr,hn).call(this,{type:"invalidate"})}async fetch(t,r){var l,u,f,c,h,p,m,y,v,g,b,x;if(this.state.fetchStatus!=="idle"&&((l=E(this,dt))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(E(this,dt))return E(this,dt).continueRetry(),E(this,dt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const O=this.observers.find(w=>w.options.queryFn);O&&this.setOptions(O.options)}const n=new AbortController,i=O=>{Object.defineProperty(O,"signal",{enumerable:!0,get:()=>(Q(this,pa,!0),n.signal)})},a=()=>{const O=OA(this.options,r),S=(()=>{const j={client:E(this,ha),queryKey:this.queryKey,meta:this.meta};return i(j),j})();return Q(this,pa,!1),this.options.persister?this.options.persister(O,S,this):O(S)},s=(()=>{const O={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:E(this,ha),state:this.state,fetchFn:a};return i(O),O})();(u=this.options.behavior)==null||u.onFetch(s,this),Q(this,$o,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=s.fetchOptions)==null?void 0:f.meta))&&de(this,Mr,hn).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta}),Q(this,dt,_A({initialPromise:r==null?void 0:r.initialPromise,fn:s.fetchFn,onCancel:O=>{O instanceof Oy&&O.revert&&this.setState({...E(this,$o),fetchStatus:"idle"}),n.abort()},onFail:(O,w)=>{de(this,Mr,hn).call(this,{type:"failed",failureCount:O,error:w})},onPause:()=>{de(this,Mr,hn).call(this,{type:"pause"})},onContinue:()=>{de(this,Mr,hn).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}));try{const O=await E(this,dt).start();if(O===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(O),(p=(h=E(this,yr).config).onSuccess)==null||p.call(h,O,this),(y=(m=E(this,yr).config).onSettled)==null||y.call(m,O,this.state.error,this),O}catch(O){if(O instanceof Oy){if(O.silent)return E(this,dt).promise;if(O.revert){if(this.state.data===void 0)throw O;return this.state.data}}throw de(this,Mr,hn).call(this,{type:"error",error:O}),(g=(v=E(this,yr).config).onError)==null||g.call(v,O,this),(x=(b=E(this,yr).config).onSettled)==null||x.call(b,this.state.data,O,this),O}finally{this.scheduleGc()}}},da=new WeakMap,$o=new WeakMap,yr=new WeakMap,ha=new WeakMap,dt=new WeakMap,Ru=new WeakMap,pa=new WeakMap,Mr=new WeakSet,hn=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...AA(n.data,this.options),fetchMeta:t.meta??null};case"success":const i={...n,...l1(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Q(this,$o,t.manual?i:void 0),i;case"error":const a=t.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),st.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),E(this,yr).notify({query:this,type:"updated",action:t})})},Vj);function AA(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:jA(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function l1(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function u1(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Ft,me,Du,Ct,ma,Mo,vn,ni,Lu,Io,Ro,ya,va,ii,Do,je,pl,jy,_y,Py,Ay,ky,Ey,Ny,kA,Gj,dI=(Gj=class extends ks{constructor(t,r){super();re(this,je);re(this,Ft);re(this,me);re(this,Du);re(this,Ct);re(this,ma);re(this,Mo);re(this,vn);re(this,ni);re(this,Lu);re(this,Io);re(this,Ro);re(this,ya);re(this,va);re(this,ii);re(this,Do,new Set);this.options=r,Q(this,Ft,t),Q(this,ni,null),Q(this,vn,Sy()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(E(this,me).addObserver(this),c1(E(this,me),this.options)?de(this,je,pl).call(this):this.updateResult(),de(this,je,Ay).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Cy(E(this,me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Cy(E(this,me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,de(this,je,ky).call(this),de(this,je,Ey).call(this),E(this,me).removeObserver(this)}setOptions(t){const r=this.options,n=E(this,me);if(this.options=E(this,Ft).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof vr(this.options.enabled,E(this,me))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");de(this,je,Ny).call(this),E(this,me).setOptions(this.options),r._defaulted&&!Tf(this.options,r)&&E(this,Ft).getQueryCache().notify({type:"observerOptionsUpdated",query:E(this,me),observer:this});const i=this.hasListeners();i&&f1(E(this,me),n,this.options,r)&&de(this,je,pl).call(this),this.updateResult(),i&&(E(this,me)!==n||vr(this.options.enabled,E(this,me))!==vr(r.enabled,E(this,me))||Oi(this.options.staleTime,E(this,me))!==Oi(r.staleTime,E(this,me)))&&de(this,je,jy).call(this);const a=de(this,je,_y).call(this);i&&(E(this,me)!==n||vr(this.options.enabled,E(this,me))!==vr(r.enabled,E(this,me))||a!==E(this,ii))&&de(this,je,Py).call(this,a)}getOptimisticResult(t){const r=E(this,Ft).getQueryCache().build(E(this,Ft),t),n=this.createResult(r,t);return pI(this,n)&&(Q(this,Ct,n),Q(this,Mo,this.options),Q(this,ma,E(this,me).state)),n}getCurrentResult(){return E(this,Ct)}trackResult(t,r){return new Proxy(t,{get:(n,i)=>(this.trackProp(i),r==null||r(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&E(this,vn).status==="pending"&&E(this,vn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,i))})}trackProp(t){E(this,Do).add(t)}getCurrentQuery(){return E(this,me)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=E(this,Ft).defaultQueryOptions(t),n=E(this,Ft).getQueryCache().build(E(this,Ft),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return de(this,je,pl).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),E(this,Ct)))}createResult(t,r){var P;const n=E(this,me),i=this.options,a=E(this,Ct),o=E(this,ma),s=E(this,Mo),u=t!==n?t.state:E(this,Du),{state:f}=t;let c={...f},h=!1,p;if(r._optimisticResults){const N=this.hasListeners(),$=!N&&c1(t,r),T=N&&f1(t,n,r,i);($||T)&&(c={...c,...AA(f.data,t.options)}),r._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:m,errorUpdatedAt:y,status:v}=c;p=c.data;let g=!1;if(r.placeholderData!==void 0&&p===void 0&&v==="pending"){let N;a!=null&&a.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData)?(N=a.data,g=!0):N=typeof r.placeholderData=="function"?r.placeholderData((P=E(this,Ro))==null?void 0:P.state.data,E(this,Ro)):r.placeholderData,N!==void 0&&(v="success",p=wy(a==null?void 0:a.data,N,r),h=!0)}if(r.select&&p!==void 0&&!g)if(a&&p===(o==null?void 0:o.data)&&r.select===E(this,Lu))p=E(this,Io);else try{Q(this,Lu,r.select),p=r.select(p),p=wy(a==null?void 0:a.data,p,r),Q(this,Io,p),Q(this,ni,null)}catch(N){Q(this,ni,N)}E(this,ni)&&(m=E(this,ni),p=E(this,Io),y=Date.now(),v="error");const b=c.fetchStatus==="fetching",x=v==="pending",O=v==="error",w=x&&b,S=p!==void 0,_={status:v,fetchStatus:c.fetchStatus,isPending:x,isSuccess:v==="success",isError:O,isInitialLoading:w,isLoading:w,data:p,dataUpdatedAt:c.dataUpdatedAt,error:m,errorUpdatedAt:y,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:b,isRefetching:b&&!x,isLoadingError:O&&!S,isPaused:c.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:O&&S,isStale:x0(t,r),refetch:this.refetch,promise:E(this,vn),isEnabled:vr(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const N=_.data!==void 0,$=_.status==="error"&&!N,T=I=>{$?I.reject(_.error):N&&I.resolve(_.data)},L=()=>{const I=Q(this,vn,_.promise=Sy());T(I)},R=E(this,vn);switch(R.status){case"pending":t.queryHash===n.queryHash&&T(R);break;case"fulfilled":($||_.data!==R.value)&&L();break;case"rejected":(!$||_.error!==R.reason)&&L();break}}return _}updateResult(){const t=E(this,Ct),r=this.createResult(E(this,me),this.options);if(Q(this,ma,E(this,me).state),Q(this,Mo,this.options),E(this,ma).data!==void 0&&Q(this,Ro,E(this,me)),Tf(r,t))return;Q(this,Ct,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!E(this,Do).size)return!0;const o=new Set(a??E(this,Do));return this.options.throwOnError&&o.add("error"),Object.keys(E(this,Ct)).some(s=>{const l=s;return E(this,Ct)[l]!==t[l]&&o.has(l)})};de(this,je,kA).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&de(this,je,Ay).call(this)}},Ft=new WeakMap,me=new WeakMap,Du=new WeakMap,Ct=new WeakMap,ma=new WeakMap,Mo=new WeakMap,vn=new WeakMap,ni=new WeakMap,Lu=new WeakMap,Io=new WeakMap,Ro=new WeakMap,ya=new WeakMap,va=new WeakMap,ii=new WeakMap,Do=new WeakMap,je=new WeakSet,pl=function(t){de(this,je,Ny).call(this);let r=E(this,me).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch($t)),r},jy=function(){de(this,je,ky).call(this);const t=Oi(this.options.staleTime,E(this,me));if(Na||E(this,Ct).isStale||!by(t))return;const n=wA(E(this,Ct).dataUpdatedAt,t)+1;Q(this,ya,na.setTimeout(()=>{E(this,Ct).isStale||this.updateResult()},n))},_y=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(E(this,me)):this.options.refetchInterval)??!1},Py=function(t){de(this,je,Ey).call(this),Q(this,ii,t),!(Na||vr(this.options.enabled,E(this,me))===!1||!by(E(this,ii))||E(this,ii)===0)&&Q(this,va,na.setInterval(()=>{(this.options.refetchIntervalInBackground||b0.isFocused())&&de(this,je,pl).call(this)},E(this,ii)))},Ay=function(){de(this,je,jy).call(this),de(this,je,Py).call(this,de(this,je,_y).call(this))},ky=function(){E(this,ya)&&(na.clearTimeout(E(this,ya)),Q(this,ya,void 0))},Ey=function(){E(this,va)&&(na.clearInterval(E(this,va)),Q(this,va,void 0))},Ny=function(){const t=E(this,Ft).getQueryCache().build(E(this,Ft),this.options);if(t===E(this,me))return;const r=E(this,me);Q(this,me,t),Q(this,Du,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},kA=function(t){st.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(E(this,Ct))}),E(this,Ft).getQueryCache().notify({query:E(this,me),type:"observerResultsUpdated"})})},Gj);function hI(e,t){return vr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function c1(e,t){return hI(e,t)||e.state.data!==void 0&&Cy(e,t,t.refetchOnMount)}function Cy(e,t,r){if(vr(t.enabled,e)!==!1&&Oi(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&x0(e,t)}return!1}function f1(e,t,r,n){return(e!==t||vr(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&x0(e,r)}function x0(e,t){return vr(t.enabled,e)!==!1&&e.isStaleByTime(Oi(t.staleTime,e))}function pI(e,t){return!Tf(e.getCurrentResult(),t)}function d1(e){return{onFetch:(t,r)=>{var f,c,h,p,m;const n=t.options,i=(h=(c=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:c.fetchMore)==null?void 0:h.direction,a=((p=t.state.data)==null?void 0:p.pages)||[],o=((m=t.state.data)==null?void 0:m.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const u=async()=>{let y=!1;const v=x=>{aI(x,()=>t.signal,()=>y=!0)},g=OA(t.options,t.fetchOptions),b=async(x,O,w)=>{if(y)return Promise.reject();if(O==null&&x.pages.length)return Promise.resolve(x);const j=(()=>{const $={client:t.client,queryKey:t.queryKey,pageParam:O,direction:w?"backward":"forward",meta:t.options.meta};return v($),$})(),_=await g(j),{maxPages:P}=t.options,N=w?iI:nI;return{pages:N(x.pages,_,P),pageParams:N(x.pageParams,O,P)}};if(i&&a.length){const x=i==="backward",O=x?mI:h1,w={pages:a,pageParams:o},S=O(n,w);s=await b(w,S,x)}else{const x=e??a.length;do{const O=l===0?o[0]??n.initialPageParam:h1(n,s);if(l>0&&O==null)break;s=await b(s,O),l++}while(l{var y,v;return(v=(y=t.options).persister)==null?void 0:v.call(y,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=u}}}function h1(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function mI(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var zu,Gr,_t,ga,Xr,qn,Xj,yI=(Xj=class extends PA{constructor(t){super();re(this,Xr);re(this,zu);re(this,Gr);re(this,_t);re(this,ga);Q(this,zu,t.client),this.mutationId=t.mutationId,Q(this,_t,t.mutationCache),Q(this,Gr,[]),this.state=t.state||EA(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){E(this,Gr).includes(t)||(E(this,Gr).push(t),this.clearGcTimeout(),E(this,_t).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Q(this,Gr,E(this,Gr).filter(r=>r!==t)),this.scheduleGc(),E(this,_t).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){E(this,Gr).length||(this.state.status==="pending"?this.scheduleGc():E(this,_t).remove(this))}continue(){var t;return((t=E(this,ga))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,l,u,f,c,h,p,m,y,v,g,b,x,O,w,S,j;const r=()=>{de(this,Xr,qn).call(this,{type:"continue"})},n={client:E(this,zu),meta:this.options.meta,mutationKey:this.options.mutationKey};Q(this,ga,_A({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(_,P)=>{de(this,Xr,qn).call(this,{type:"failed",failureCount:_,error:P})},onPause:()=>{de(this,Xr,qn).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>E(this,_t).canRun(this)}));const i=this.state.status==="pending",a=!E(this,ga).canStart();try{if(i)r();else{de(this,Xr,qn).call(this,{type:"pending",variables:t,isPaused:a}),E(this,_t).config.onMutate&&await E(this,_t).config.onMutate(t,this,n);const P=await((s=(o=this.options).onMutate)==null?void 0:s.call(o,t,n));P!==this.state.context&&de(this,Xr,qn).call(this,{type:"pending",context:P,variables:t,isPaused:a})}const _=await E(this,ga).start();return await((u=(l=E(this,_t).config).onSuccess)==null?void 0:u.call(l,_,t,this.state.context,this,n)),await((c=(f=this.options).onSuccess)==null?void 0:c.call(f,_,t,this.state.context,n)),await((p=(h=E(this,_t).config).onSettled)==null?void 0:p.call(h,_,null,this.state.variables,this.state.context,this,n)),await((y=(m=this.options).onSettled)==null?void 0:y.call(m,_,null,t,this.state.context,n)),de(this,Xr,qn).call(this,{type:"success",data:_}),_}catch(_){try{await((g=(v=E(this,_t).config).onError)==null?void 0:g.call(v,_,t,this.state.context,this,n))}catch(P){Promise.reject(P)}try{await((x=(b=this.options).onError)==null?void 0:x.call(b,_,t,this.state.context,n))}catch(P){Promise.reject(P)}try{await((w=(O=E(this,_t).config).onSettled)==null?void 0:w.call(O,void 0,_,this.state.variables,this.state.context,this,n))}catch(P){Promise.reject(P)}try{await((j=(S=this.options).onSettled)==null?void 0:j.call(S,void 0,_,t,this.state.context,n))}catch(P){Promise.reject(P)}throw de(this,Xr,qn).call(this,{type:"error",error:_}),_}finally{E(this,_t).runNext(this)}}},zu=new WeakMap,Gr=new WeakMap,_t=new WeakMap,ga=new WeakMap,Xr=new WeakSet,qn=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),st.batch(()=>{E(this,Gr).forEach(n=>{n.onMutationUpdate(t)}),E(this,_t).notify({mutation:this,type:"updated",action:t})})},Xj);function EA(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var gn,Ir,Bu,Qj,vI=(Qj=class extends ks{constructor(t={}){super();re(this,gn);re(this,Ir);re(this,Bu);this.config=t,Q(this,gn,new Set),Q(this,Ir,new Map),Q(this,Bu,0)}build(t,r,n){const i=new yI({client:t,mutationCache:this,mutationId:++ic(this,Bu)._,options:t.defaultMutationOptions(r),state:n});return this.add(i),i}add(t){E(this,gn).add(t);const r=Oc(t);if(typeof r=="string"){const n=E(this,Ir).get(r);n?n.push(t):E(this,Ir).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(E(this,gn).delete(t)){const r=Oc(t);if(typeof r=="string"){const n=E(this,Ir).get(r);if(n)if(n.length>1){const i=n.indexOf(t);i!==-1&&n.splice(i,1)}else n[0]===t&&E(this,Ir).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=Oc(t);if(typeof r=="string"){const n=E(this,Ir).get(r),i=n==null?void 0:n.find(a=>a.state.status==="pending");return!i||i===t}else return!0}runNext(t){var n;const r=Oc(t);if(typeof r=="string"){const i=(n=E(this,Ir).get(r))==null?void 0:n.find(a=>a!==t&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){st.batch(()=>{E(this,gn).forEach(t=>{this.notify({type:"removed",mutation:t})}),E(this,gn).clear(),E(this,Ir).clear()})}getAll(){return Array.from(E(this,gn))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>a1(r,n))}findAll(t={}){return this.getAll().filter(r=>a1(t,r))}notify(t){st.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return st.batch(()=>Promise.all(t.map(r=>r.continue().catch($t))))}},gn=new WeakMap,Ir=new WeakMap,Bu=new WeakMap,Qj);function Oc(e){var t;return(t=e.options.scope)==null?void 0:t.id}var bn,ai,Ut,xn,Nn,ef,Ty,Yj,gI=(Yj=class extends ks{constructor(r,n){super();re(this,Nn);re(this,bn);re(this,ai);re(this,Ut);re(this,xn);Q(this,bn,r),this.setOptions(n),this.bindMethods(),de(this,Nn,ef).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var i;const n=this.options;this.options=E(this,bn).defaultMutationOptions(r),Tf(this.options,n)||E(this,bn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:E(this,Ut),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Ca(n.mutationKey)!==Ca(this.options.mutationKey)?this.reset():((i=E(this,Ut))==null?void 0:i.state.status)==="pending"&&E(this,Ut).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=E(this,Ut))==null||r.removeObserver(this)}onMutationUpdate(r){de(this,Nn,ef).call(this),de(this,Nn,Ty).call(this,r)}getCurrentResult(){return E(this,ai)}reset(){var r;(r=E(this,Ut))==null||r.removeObserver(this),Q(this,Ut,void 0),de(this,Nn,ef).call(this),de(this,Nn,Ty).call(this)}mutate(r,n){var i;return Q(this,xn,n),(i=E(this,Ut))==null||i.removeObserver(this),Q(this,Ut,E(this,bn).getMutationCache().build(E(this,bn),this.options)),E(this,Ut).addObserver(this),E(this,Ut).execute(r)}},bn=new WeakMap,ai=new WeakMap,Ut=new WeakMap,xn=new WeakMap,Nn=new WeakSet,ef=function(){var n;const r=((n=E(this,Ut))==null?void 0:n.state)??EA();Q(this,ai,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Ty=function(r){st.batch(()=>{var n,i,a,o,s,l,u,f;if(E(this,xn)&&this.hasListeners()){const c=E(this,ai).variables,h=E(this,ai).context,p={client:E(this,bn),meta:this.options.meta,mutationKey:this.options.mutationKey};if((r==null?void 0:r.type)==="success"){try{(i=(n=E(this,xn)).onSuccess)==null||i.call(n,r.data,c,h,p)}catch(m){Promise.reject(m)}try{(o=(a=E(this,xn)).onSettled)==null||o.call(a,r.data,null,c,h,p)}catch(m){Promise.reject(m)}}else if((r==null?void 0:r.type)==="error"){try{(l=(s=E(this,xn)).onError)==null||l.call(s,r.error,c,h,p)}catch(m){Promise.reject(m)}try{(f=(u=E(this,xn)).onSettled)==null||f.call(u,void 0,r.error,c,h,p)}catch(m){Promise.reject(m)}}}this.listeners.forEach(c=>{c(E(this,ai))})})},Yj),Qr,Jj,bI=(Jj=class extends ks{constructor(t={}){super();re(this,Qr);this.config=t,Q(this,Qr,new Map)}build(t,r,n){const i=r.queryKey,a=r.queryHash??y0(i,r);let o=this.get(a);return o||(o=new fI({client:t,queryKey:i,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){E(this,Qr).has(t.queryHash)||(E(this,Qr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=E(this,Qr).get(t.queryHash);r&&(t.destroy(),r===t&&E(this,Qr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){st.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return E(this,Qr).get(t)}getAll(){return[...E(this,Qr).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>i1(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>i1(t,n)):r}notify(t){st.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){st.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){st.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Qr=new WeakMap,Jj),qe,oi,si,Lo,zo,li,Bo,Fo,Zj,xI=(Zj=class{constructor(e={}){re(this,qe);re(this,oi);re(this,si);re(this,Lo);re(this,zo);re(this,li);re(this,Bo);re(this,Fo);Q(this,qe,e.queryCache||new bI),Q(this,oi,e.mutationCache||new vI),Q(this,si,e.defaultOptions||{}),Q(this,Lo,new Map),Q(this,zo,new Map),Q(this,li,0)}mount(){ic(this,li)._++,E(this,li)===1&&(Q(this,Bo,b0.subscribe(async e=>{e&&(await this.resumePausedMutations(),E(this,qe).onFocus())})),Q(this,Fo,$f.subscribe(async e=>{e&&(await this.resumePausedMutations(),E(this,qe).onOnline())})))}unmount(){var e,t;ic(this,li)._--,E(this,li)===0&&((e=E(this,Bo))==null||e.call(this),Q(this,Bo,void 0),(t=E(this,Fo))==null||t.call(this),Q(this,Fo,void 0))}isFetching(e){return E(this,qe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return E(this,oi).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=E(this,qe).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=E(this,qe).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Oi(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return E(this,qe).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=E(this,qe).get(n.queryHash),a=i==null?void 0:i.state.data,o=eI(t,a);if(o!==void 0)return E(this,qe).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return st.batch(()=>E(this,qe).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=E(this,qe).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=E(this,qe);st.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=E(this,qe);return st.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=st.batch(()=>E(this,qe).findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then($t).catch($t)}invalidateQueries(e,t={}){return st.batch(()=>(E(this,qe).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=st.batch(()=>E(this,qe).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let a=i.fetch(void 0,r);return r.throwOnError||(a=a.catch($t)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(n).then($t)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=E(this,qe).build(this,t);return r.isStaleByTime(Oi(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then($t).catch($t)}fetchInfiniteQuery(e){return e.behavior=d1(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then($t).catch($t)}ensureInfiniteQueryData(e){return e.behavior=d1(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return $f.isOnline()?E(this,oi).resumePausedMutations():Promise.resolve()}getQueryCache(){return E(this,qe)}getMutationCache(){return E(this,oi)}getDefaultOptions(){return E(this,si)}setDefaultOptions(e){Q(this,si,e)}setQueryDefaults(e,t){E(this,Lo).set(Ca(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...E(this,Lo).values()],r={};return t.forEach(n=>{Jl(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){E(this,zo).set(Ca(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...E(this,zo).values()],r={};return t.forEach(n=>{Jl(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...E(this,si).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=y0(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===v0&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...E(this,si).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){E(this,qe).clear(),E(this,oi).clear()}},qe=new WeakMap,oi=new WeakMap,si=new WeakMap,Lo=new WeakMap,zo=new WeakMap,li=new WeakMap,Bo=new WeakMap,Fo=new WeakMap,Zj),NA=A.createContext(void 0),ih=e=>{const t=A.useContext(NA);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},wI=({client:e,children:t})=>(A.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),d.jsx(NA.Provider,{value:e,children:t})),CA=A.createContext(!1),SI=()=>A.useContext(CA);CA.Provider;function OI(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var jI=A.createContext(OI()),_I=()=>A.useContext(jI),PI=(e,t,r)=>{const n=r!=null&&r.state.error&&typeof e.throwOnError=="function"?g0(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))},AI=e=>{A.useEffect(()=>{e.clearReset()},[e])},kI=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(i&&e.data===void 0||g0(r,[e.error,n])),EI=e=>{if(e.suspense){const r=i=>i==="static"?i:Math.max(i??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...i)=>r(n(...i)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},NI=(e,t)=>e.isLoading&&e.isFetching&&!t,CI=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,p1=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function TI(e,t,r){var h,p,m,y;const n=SI(),i=_I(),a=ih(),o=a.defaultQueryOptions(e);(p=(h=a.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||p.call(h,o);const s=a.getQueryCache().get(o.queryHash);o._optimisticResults=n?"isRestoring":"optimistic",EI(o),PI(o,i,s),AI(i);const l=!a.getQueryCache().get(o.queryHash),[u]=A.useState(()=>new t(a,o)),f=u.getOptimisticResult(o),c=!n&&e.subscribed!==!1;if(A.useSyncExternalStore(A.useCallback(v=>{const g=c?u.subscribe(st.batchCalls(v)):$t;return u.updateResult(),g},[u,c]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),A.useEffect(()=>{u.setOptions(o)},[o,u]),CI(o,f))throw p1(o,u,i);if(kI({result:f,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw f.error;if((y=(m=a.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||y.call(m,o,f),o.experimental_prefetchInRender&&!Na&&NI(f,n)){const v=l?p1(o,u,i):s==null?void 0:s.promise;v==null||v.catch($t).finally(()=>{u.updateResult()})}return o.notifyOnChangeProps?f:u.trackResult(f)}function Ai(e,t){return TI(e,dI)}function Mf(e,t){const r=ih(),[n]=A.useState(()=>new gI(r,e));A.useEffect(()=>{n.setOptions(e)},[n,e]);const i=A.useSyncExternalStore(A.useCallback(o=>n.subscribe(st.batchCalls(o)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),a=A.useCallback((o,s)=>{n.mutate(o,s).catch($t)},[n]);if(i.error&&g0(n.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function TA(e,t){return function(){return e.apply(t,arguments)}}const{toString:$I}=Object.prototype,{getPrototypeOf:w0}=Object,{iterator:ah,toStringTag:$A}=Symbol,oh=(e=>t=>{const r=$I.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Hr=e=>(e=e.toLowerCase(),t=>oh(t)===e),sh=e=>t=>typeof t===e,{isArray:Es}=Array,Xo=sh("undefined");function qu(e){return e!==null&&!Xo(e)&&e.constructor!==null&&!Xo(e.constructor)&&Yt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const MA=Hr("ArrayBuffer");function MI(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&MA(e.buffer),t}const II=sh("string"),Yt=sh("function"),IA=sh("number"),Vu=e=>e!==null&&typeof e=="object",RI=e=>e===!0||e===!1,tf=e=>{if(oh(e)!=="object")return!1;const t=w0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!($A in e)&&!(ah in e)},DI=e=>{if(!Vu(e)||qu(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},LI=Hr("Date"),zI=Hr("File"),BI=Hr("Blob"),FI=Hr("FileList"),UI=e=>Vu(e)&&Yt(e.pipe),WI=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Yt(e.append)&&((t=oh(e))==="formdata"||t==="object"&&Yt(e.toString)&&e.toString()==="[object FormData]"))},HI=Hr("URLSearchParams"),[KI,qI,VI,GI]=["ReadableStream","Request","Response","Headers"].map(Hr),XI=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Gu(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Es(e))for(n=0,i=e.length;n0;)if(i=r[n],t===i.toLowerCase())return i;return null}const ia=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,DA=e=>!Xo(e)&&e!==ia;function $y(){const{caseless:e,skipUndefined:t}=DA(this)&&this||{},r={},n=(i,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const o=e&&RA(r,a)||a;tf(r[o])&&tf(i)?r[o]=$y(r[o],i):tf(i)?r[o]=$y({},i):Es(i)?r[o]=i.slice():(!t||!Xo(i))&&(r[o]=i)};for(let i=0,a=arguments.length;i(Gu(t,(i,a)=>{r&&Yt(i)?Object.defineProperty(e,a,{value:TA(i,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,a,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),YI=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),JI=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},ZI=(e,t,r,n)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!n||n(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=r!==!1&&w0(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},eR=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},tR=e=>{if(!e)return null;if(Es(e))return e;let t=e.length;if(!IA(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},rR=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&w0(Uint8Array)),nR=(e,t)=>{const n=(e&&e[ah]).call(e);let i;for(;(i=n.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},iR=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},aR=Hr("HTMLFormElement"),oR=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),m1=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),sR=Hr("RegExp"),LA=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Gu(r,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(n[a]=o||i)}),Object.defineProperties(e,n)},lR=e=>{LA(e,(t,r)=>{if(Yt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Yt(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},uR=(e,t)=>{const r={},n=i=>{i.forEach(a=>{r[a]=!0})};return Es(e)?n(e):n(String(e).split(t)),r},cR=()=>{},fR=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function dR(e){return!!(e&&Yt(e.append)&&e[$A]==="FormData"&&e[ah])}const hR=e=>{const t=new Array(10),r=(n,i)=>{if(Vu(n)){if(t.indexOf(n)>=0)return;if(qu(n))return n;if(!("toJSON"in n)){t[i]=n;const a=Es(n)?[]:{};return Gu(n,(o,s)=>{const l=r(o,i+1);!Xo(l)&&(a[s]=l)}),t[i]=void 0,a}}return n};return r(e,0)},pR=Hr("AsyncFunction"),mR=e=>e&&(Vu(e)||Yt(e))&&Yt(e.then)&&Yt(e.catch),zA=((e,t)=>e?setImmediate:t?((r,n)=>(ia.addEventListener("message",({source:i,data:a})=>{i===ia&&a===r&&n.length&&n.shift()()},!1),i=>{n.push(i),ia.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Yt(ia.postMessage)),yR=typeof queueMicrotask<"u"?queueMicrotask.bind(ia):typeof process<"u"&&process.nextTick||zA,vR=e=>e!=null&&Yt(e[ah]),M={isArray:Es,isArrayBuffer:MA,isBuffer:qu,isFormData:WI,isArrayBufferView:MI,isString:II,isNumber:IA,isBoolean:RI,isObject:Vu,isPlainObject:tf,isEmptyObject:DI,isReadableStream:KI,isRequest:qI,isResponse:VI,isHeaders:GI,isUndefined:Xo,isDate:LI,isFile:zI,isBlob:BI,isRegExp:sR,isFunction:Yt,isStream:UI,isURLSearchParams:HI,isTypedArray:rR,isFileList:FI,forEach:Gu,merge:$y,extend:QI,trim:XI,stripBOM:YI,inherits:JI,toFlatObject:ZI,kindOf:oh,kindOfTest:Hr,endsWith:eR,toArray:tR,forEachEntry:nR,matchAll:iR,isHTMLForm:aR,hasOwnProperty:m1,hasOwnProp:m1,reduceDescriptors:LA,freezeMethods:lR,toObjectSet:uR,toCamelCase:oR,noop:cR,toFiniteNumber:fR,findKey:RA,global:ia,isContextDefined:DA,isSpecCompliantForm:dR,toJSONObject:hR,isAsyncFn:pR,isThenable:mR,setImmediate:zA,asap:yR,isIterable:vR};let se=class BA extends Error{static from(t,r,n,i,a,o){const s=new BA(t.message,r||t.code,n,i,a);return s.cause=t,s.name=t.name,o&&Object.assign(s,o),s}constructor(t,r,n,i,a){super(t),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),i&&(this.request=i),a&&(this.response=a,this.status=a.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:M.toJSONObject(this.config),code:this.code,status:this.status}}};se.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";se.ERR_BAD_OPTION="ERR_BAD_OPTION";se.ECONNABORTED="ECONNABORTED";se.ETIMEDOUT="ETIMEDOUT";se.ERR_NETWORK="ERR_NETWORK";se.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";se.ERR_DEPRECATED="ERR_DEPRECATED";se.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";se.ERR_BAD_REQUEST="ERR_BAD_REQUEST";se.ERR_CANCELED="ERR_CANCELED";se.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";se.ERR_INVALID_URL="ERR_INVALID_URL";const gR=null;function My(e){return M.isPlainObject(e)||M.isArray(e)}function FA(e){return M.endsWith(e,"[]")?e.slice(0,-2):e}function y1(e,t,r){return e?e.concat(t).map(function(i,a){return i=FA(i),!r&&a?"["+i+"]":i}).join(r?".":""):t}function bR(e){return M.isArray(e)&&!e.some(My)}const xR=M.toFlatObject(M,{},null,function(t){return/^is[A-Z]/.test(t)});function lh(e,t,r){if(!M.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=M.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,v){return!M.isUndefined(v[y])});const n=r.metaTokens,i=r.visitor||f,a=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&M.isSpecCompliantForm(t);if(!M.isFunction(i))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(M.isDate(m))return m.toISOString();if(M.isBoolean(m))return m.toString();if(!l&&M.isBlob(m))throw new se("Blob is not supported. Use a Buffer instead.");return M.isArrayBuffer(m)||M.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function f(m,y,v){let g=m;if(m&&!v&&typeof m=="object"){if(M.endsWith(y,"{}"))y=n?y:y.slice(0,-2),m=JSON.stringify(m);else if(M.isArray(m)&&bR(m)||(M.isFileList(m)||M.endsWith(y,"[]"))&&(g=M.toArray(m)))return y=FA(y),g.forEach(function(x,O){!(M.isUndefined(x)||x===null)&&t.append(o===!0?y1([y],O,a):o===null?y:y+"[]",u(x))}),!1}return My(m)?!0:(t.append(y1(v,y,a),u(m)),!1)}const c=[],h=Object.assign(xR,{defaultVisitor:f,convertValue:u,isVisitable:My});function p(m,y){if(!M.isUndefined(m)){if(c.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));c.push(m),M.forEach(m,function(g,b){(!(M.isUndefined(g)||g===null)&&i.call(t,g,M.isString(b)?b.trim():b,y,h))===!0&&p(g,y?y.concat(b):[b])}),c.pop()}}if(!M.isObject(e))throw new TypeError("data must be an object");return p(e),t}function v1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function S0(e,t){this._pairs=[],e&&lh(e,this,t)}const UA=S0.prototype;UA.append=function(t,r){this._pairs.push([t,r])};UA.toString=function(t){const r=t?function(n){return t.call(this,n,v1)}:v1;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function wR(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function WA(e,t,r){if(!t)return e;const n=r&&r.encode||wR,i=M.isFunction(r)?{serialize:r}:r,a=i&&i.serialize;let o;if(a?o=a(t,i):o=M.isURLSearchParams(t)?t.toString():new S0(t,i).toString(n),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class g1{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){M.forEach(this.handlers,function(n){n!==null&&t(n)})}}const O0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},SR=typeof URLSearchParams<"u"?URLSearchParams:S0,OR=typeof FormData<"u"?FormData:null,jR=typeof Blob<"u"?Blob:null,_R={isBrowser:!0,classes:{URLSearchParams:SR,FormData:OR,Blob:jR},protocols:["http","https","file","blob","url","data"]},j0=typeof window<"u"&&typeof document<"u",Iy=typeof navigator=="object"&&navigator||void 0,PR=j0&&(!Iy||["ReactNative","NativeScript","NS"].indexOf(Iy.product)<0),AR=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",kR=j0&&window.location.href||"http://localhost",ER=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:j0,hasStandardBrowserEnv:PR,hasStandardBrowserWebWorkerEnv:AR,navigator:Iy,origin:kR},Symbol.toStringTag,{value:"Module"})),Et={...ER,..._R};function NR(e,t){return lh(e,new Et.classes.URLSearchParams,{visitor:function(r,n,i,a){return Et.isNode&&M.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function CR(e){return M.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function TR(e){const t={},r=Object.keys(e);let n;const i=r.length;let a;for(n=0;n=r.length;return o=!o&&M.isArray(i)?i.length:o,l?(M.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!s):((!i[o]||!M.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],a)&&M.isArray(i[o])&&(i[o]=TR(i[o])),!s)}if(M.isFormData(e)&&M.isFunction(e.entries)){const r={};return M.forEachEntry(e,(n,i)=>{t(CR(n),i,r,0)}),r}return null}function $R(e,t,r){if(M.isString(e))try{return(t||JSON.parse)(e),M.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Xu={transitional:O0,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,a=M.isObject(t);if(a&&M.isHTMLForm(t)&&(t=new FormData(t)),M.isFormData(t))return i?JSON.stringify(HA(t)):t;if(M.isArrayBuffer(t)||M.isBuffer(t)||M.isStream(t)||M.isFile(t)||M.isBlob(t)||M.isReadableStream(t))return t;if(M.isArrayBufferView(t))return t.buffer;if(M.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return NR(t,this.formSerializer).toString();if((s=M.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return lh(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(r.setContentType("application/json",!1),$R(t)):t}],transformResponse:[function(t){const r=this.transitional||Xu.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(M.isResponse(t)||M.isReadableStream(t))return t;if(t&&M.isString(t)&&(n&&!this.responseType||i)){const o=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(s){if(o)throw s.name==="SyntaxError"?se.from(s,se.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Et.classes.FormData,Blob:Et.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};M.forEach(["delete","get","head","post","put","patch"],e=>{Xu.headers[e]={}});const MR=M.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),IR=e=>{const t={};let r,n,i;return e&&e.split(` -`).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||t[r]&&MR[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},b1=Symbol("internals");function Js(e){return e&&String(e).trim().toLowerCase()}function rf(e){return e===!1||e==null?e:M.isArray(e)?e.map(rf):String(e)}function RR(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const DR=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Dp(e,t,r,n,i){if(M.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!M.isString(t)){if(M.isString(n))return t.indexOf(n)!==-1;if(M.isRegExp(n))return n.test(t)}}function LR(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function zR(e,t){const r=M.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,a,o){return this[n].call(this,t,i,a,o)},configurable:!0})})}let Jt=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function a(s,l,u){const f=Js(l);if(!f)throw new Error("header name must be a non-empty string");const c=M.findKey(i,f);(!c||i[c]===void 0||u===!0||u===void 0&&i[c]!==!1)&&(i[c||l]=rf(s))}const o=(s,l)=>M.forEach(s,(u,f)=>a(u,f,l));if(M.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(M.isString(t)&&(t=t.trim())&&!DR(t))o(IR(t),r);else if(M.isObject(t)&&M.isIterable(t)){let s={},l,u;for(const f of t){if(!M.isArray(f))throw TypeError("Object iterator must return a key-value pair");s[u=f[0]]=(l=s[u])?M.isArray(l)?[...l,f[1]]:[l,f[1]]:f[1]}o(s,r)}else t!=null&&a(r,t,n);return this}get(t,r){if(t=Js(t),t){const n=M.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return RR(i);if(M.isFunction(r))return r.call(this,i,n);if(M.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Js(t),t){const n=M.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Dp(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function a(o){if(o=Js(o),o){const s=M.findKey(n,o);s&&(!r||Dp(n,n[s],s,r))&&(delete n[s],i=!0)}}return M.isArray(t)?t.forEach(a):a(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const a=r[n];(!t||Dp(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const r=this,n={};return M.forEach(this,(i,a)=>{const o=M.findKey(n,a);if(o){r[o]=rf(i),delete r[a];return}const s=t?LR(a):String(a).trim();s!==a&&delete r[a],r[s]=rf(i),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return M.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&M.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` -`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const n=(this[b1]=this[b1]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=Js(o);n[s]||(zR(i,o),n[s]=!0)}return M.isArray(t)?t.forEach(a):a(t),this}};Jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);M.reduceDescriptors(Jt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});M.freezeMethods(Jt);function Lp(e,t){const r=this||Xu,n=t||r,i=Jt.from(n.headers);let a=n.data;return M.forEach(e,function(s){a=s.call(r,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function KA(e){return!!(e&&e.__CANCEL__)}let Qu=class extends se{constructor(t,r,n){super(t??"canceled",se.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function qA(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new se("Request failed with status code "+r.status,[se.ERR_BAD_REQUEST,se.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function BR(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function FR(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),f=n[a];o||(o=u),r[i]=l,n[i]=u;let c=a,h=0;for(;c!==i;)h+=r[c++],c=c%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-o{r=f,i=null,a&&(clearTimeout(a),a=null),e(...u)};return[(...u)=>{const f=Date.now(),c=f-r;c>=n?o(u,f):(i=u,a||(a=setTimeout(()=>{a=null,o(i)},n-c)))},()=>i&&o(i)]}const If=(e,t,r=3)=>{let n=0;const i=FR(50,250);return UR(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-n,u=i(l),f=o<=s;n=o;const c={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&f?(s-o)/u:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(c)},r)},x1=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},w1=e=>(...t)=>M.asap(()=>e(...t)),WR=Et.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Et.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Et.origin),Et.navigator&&/(msie|trident)/i.test(Et.navigator.userAgent)):()=>!0,HR=Et.hasStandardBrowserEnv?{write(e,t,r,n,i,a,o){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];M.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),M.isString(n)&&s.push(`path=${n}`),M.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push("secure"),M.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function KR(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function qR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function VA(e,t,r){let n=!KR(t);return e&&(n||r==!1)?qR(e,t):t}const S1=e=>e instanceof Jt?{...e}:e;function Ta(e,t){t=t||{};const r={};function n(u,f,c,h){return M.isPlainObject(u)&&M.isPlainObject(f)?M.merge.call({caseless:h},u,f):M.isPlainObject(f)?M.merge({},f):M.isArray(f)?f.slice():f}function i(u,f,c,h){if(M.isUndefined(f)){if(!M.isUndefined(u))return n(void 0,u,c,h)}else return n(u,f,c,h)}function a(u,f){if(!M.isUndefined(f))return n(void 0,f)}function o(u,f){if(M.isUndefined(f)){if(!M.isUndefined(u))return n(void 0,u)}else return n(void 0,f)}function s(u,f,c){if(c in t)return n(u,f);if(c in e)return n(void 0,u)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,f,c)=>i(S1(u),S1(f),c,!0)};return M.forEach(Object.keys({...e,...t}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const c=M.hasOwnProp(l,f)?l[f]:i,h=c(e[f],t[f],f);M.isUndefined(h)&&c!==s||(r[f]=h)}),r}const GA=e=>{const t=Ta({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;if(t.headers=o=Jt.from(o),t.url=WA(VA(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),M.isFormData(r)){if(Et.hasStandardBrowserEnv||Et.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(M.isFunction(r.getHeaders)){const l=r.getHeaders(),u=["content-type","content-length"];Object.entries(l).forEach(([f,c])=>{u.includes(f.toLowerCase())&&o.set(f,c)})}}if(Et.hasStandardBrowserEnv&&(n&&M.isFunction(n)&&(n=n(t)),n||n!==!1&&WR(t.url))){const l=i&&a&&HR.read(a);l&&o.set(i,l)}return t},VR=typeof XMLHttpRequest<"u",GR=VR&&function(e){return new Promise(function(r,n){const i=GA(e);let a=i.data;const o=Jt.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,f,c,h,p,m;function y(){p&&p(),m&&m(),i.cancelToken&&i.cancelToken.unsubscribe(f),i.signal&&i.signal.removeEventListener("abort",f)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function g(){if(!v)return;const x=Jt.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),w={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:x,config:e,request:v};qA(function(j){r(j),y()},function(j){n(j),y()},w),v=null}"onloadend"in v?v.onloadend=g:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(g)},v.onabort=function(){v&&(n(new se("Request aborted",se.ECONNABORTED,e,v)),v=null)},v.onerror=function(O){const w=O&&O.message?O.message:"Network Error",S=new se(w,se.ERR_NETWORK,e,v);S.event=O||null,n(S),v=null},v.ontimeout=function(){let O=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const w=i.transitional||O0;i.timeoutErrorMessage&&(O=i.timeoutErrorMessage),n(new se(O,w.clarifyTimeoutError?se.ETIMEDOUT:se.ECONNABORTED,e,v)),v=null},a===void 0&&o.setContentType(null),"setRequestHeader"in v&&M.forEach(o.toJSON(),function(O,w){v.setRequestHeader(w,O)}),M.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),s&&s!=="json"&&(v.responseType=i.responseType),u&&([h,m]=If(u,!0),v.addEventListener("progress",h)),l&&v.upload&&([c,p]=If(l),v.upload.addEventListener("progress",c),v.upload.addEventListener("loadend",p)),(i.cancelToken||i.signal)&&(f=x=>{v&&(n(!x||x.type?new Qu(null,e,v):x),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(f),i.signal&&(i.signal.aborted?f():i.signal.addEventListener("abort",f)));const b=BR(i.url);if(b&&Et.protocols.indexOf(b)===-1){n(new se("Unsupported protocol "+b+":",se.ERR_BAD_REQUEST,e));return}v.send(a||null)})},XR=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const a=function(u){if(!i){i=!0,s();const f=u instanceof Error?u:this.reason;n.abort(f instanceof se?f:new Qu(f instanceof Error?f.message:f))}};let o=t&&setTimeout(()=>{o=null,a(new se(`timeout of ${t}ms exceeded`,se.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:l}=n;return l.unsubscribe=()=>M.asap(s),l}},QR=function*(e,t){let r=e.byteLength;if(r{const i=YR(e,t);let a=0,o,s=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:u,value:f}=await i.next();if(u){s(),l.close();return}let c=f.byteLength;if(r){let h=a+=c;r(h)}l.enqueue(new Uint8Array(f))}catch(u){throw s(u),u}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},j1=64*1024,{isFunction:jc}=M,ZR=(({Request:e,Response:t})=>({Request:e,Response:t}))(M.global),{ReadableStream:_1,TextEncoder:P1}=M.global,A1=(e,...t)=>{try{return!!e(...t)}catch{return!1}},e4=e=>{e=M.merge.call({skipUndefined:!0},ZR,e);const{fetch:t,Request:r,Response:n}=e,i=t?jc(t):typeof fetch=="function",a=jc(r),o=jc(n);if(!i)return!1;const s=i&&jc(_1),l=i&&(typeof P1=="function"?(m=>y=>m.encode(y))(new P1):async m=>new Uint8Array(await new r(m).arrayBuffer())),u=a&&s&&A1(()=>{let m=!1;const y=new r(Et.origin,{body:new _1,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!y}),f=o&&s&&A1(()=>M.isReadableStream(new n("").body)),c={stream:f&&(m=>m.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!c[m]&&(c[m]=(y,v)=>{let g=y&&y[m];if(g)return g.call(y);throw new se(`Response type '${m}' is not supported`,se.ERR_NOT_SUPPORT,v)})});const h=async m=>{if(m==null)return 0;if(M.isBlob(m))return m.size;if(M.isSpecCompliantForm(m))return(await new r(Et.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(M.isArrayBufferView(m)||M.isArrayBuffer(m))return m.byteLength;if(M.isURLSearchParams(m)&&(m=m+""),M.isString(m))return(await l(m)).byteLength},p=async(m,y)=>{const v=M.toFiniteNumber(m.getContentLength());return v??h(y)};return async m=>{let{url:y,method:v,data:g,signal:b,cancelToken:x,timeout:O,onDownloadProgress:w,onUploadProgress:S,responseType:j,headers:_,withCredentials:P="same-origin",fetchOptions:N}=GA(m),$=t||fetch;j=j?(j+"").toLowerCase():"text";let T=XR([b,x&&x.toAbortSignal()],O),L=null;const R=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let I;try{if(S&&u&&v!=="get"&&v!=="head"&&(I=await p(_,g))!==0){let V=new r(y,{method:"POST",body:g,duplex:"half"}),H;if(M.isFormData(g)&&(H=V.headers.get("content-type"))&&_.setContentType(H),V.body){const[X,ie]=x1(I,If(w1(S)));g=O1(V.body,j1,X,ie)}}M.isString(P)||(P=P?"include":"omit");const D=a&&"credentials"in r.prototype,F={...N,signal:T,method:v.toUpperCase(),headers:_.normalize().toJSON(),body:g,duplex:"half",credentials:D?P:void 0};L=a&&new r(y,F);let C=await(a?$(L,N):$(y,F));const B=f&&(j==="stream"||j==="response");if(f&&(w||B&&R)){const V={};["status","statusText","headers"].forEach(be=>{V[be]=C[be]});const H=M.toFiniteNumber(C.headers.get("content-length")),[X,ie]=w&&x1(H,If(w1(w),!0))||[];C=new n(O1(C.body,j1,X,()=>{ie&&ie(),R&&R()}),V)}j=j||"text";let U=await c[M.findKey(c,j)||"text"](C,m);return!B&&R&&R(),await new Promise((V,H)=>{qA(V,H,{data:U,headers:Jt.from(C.headers),status:C.status,statusText:C.statusText,config:m,request:L})})}catch(D){throw R&&R(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new se("Network Error",se.ERR_NETWORK,m,L,D&&D.response),{cause:D.cause||D}):se.from(D,D&&D.code,m,L,D&&D.response)}}},t4=new Map,XA=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:i}=t,a=[n,i,r];let o=a.length,s=o,l,u,f=t4;for(;s--;)l=a[s],u=f.get(l),u===void 0&&f.set(l,u=s?new Map:e4(t)),f=u;return u};XA();const _0={http:gR,xhr:GR,fetch:{get:XA}};M.forEach(_0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const k1=e=>`- ${e}`,r4=e=>M.isFunction(e)||e===null||e===!1;function n4(e,t){e=M.isArray(e)?e:[e];const{length:r}=e;let n,i;const a={};for(let o=0;o`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=r?o.length>1?`since : -`+o.map(k1).join(` -`):" "+k1(o[0]):"as no adapter specified";throw new se("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i}const QA={getAdapter:n4,adapters:_0};function zp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Qu(null,e)}function E1(e){return zp(e),e.headers=Jt.from(e.headers),e.data=Lp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),QA.getAdapter(e.adapter||Xu.adapter,e)(e).then(function(n){return zp(e),n.data=Lp.call(e,e.transformResponse,n),n.headers=Jt.from(n.headers),n},function(n){return KA(n)||(zp(e),n&&n.response&&(n.response.data=Lp.call(e,e.transformResponse,n.response),n.response.headers=Jt.from(n.response.headers))),Promise.reject(n)})}const YA="1.13.5",uh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{uh[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const N1={};uh.transitional=function(t,r,n){function i(a,o){return"[Axios v"+YA+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return(a,o,s)=>{if(t===!1)throw new se(i(o," has been removed"+(r?" in "+r:"")),se.ERR_DEPRECATED);return r&&!N1[o]&&(N1[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,o,s):!0}};uh.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function i4(e,t,r){if(typeof e!="object")throw new se("options must be an object",se.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const a=n[i],o=t[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new se("option "+a+" must be "+l,se.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new se("Unknown option "+a,se.ERR_BAD_OPTION)}}const nf={assertOptions:i4,validators:uh},dr=nf.validators;let wa=class{constructor(t){this.defaults=t||{},this.interceptors={request:new g1,response:new g1}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=` -`+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ta(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:a}=r;n!==void 0&&nf.assertOptions(n,{silentJSONParsing:dr.transitional(dr.boolean),forcedJSONParsing:dr.transitional(dr.boolean),clarifyTimeoutError:dr.transitional(dr.boolean),legacyInterceptorReqResOrdering:dr.transitional(dr.boolean)},!1),i!=null&&(M.isFunction(i)?r.paramsSerializer={serialize:i}:nf.assertOptions(i,{encode:dr.function,serialize:dr.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),nf.assertOptions(r,{baseUrl:dr.spelling("baseURL"),withXsrfToken:dr.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=a&&M.merge(a.common,a[r.method]);a&&M.forEach(["delete","get","head","post","put","patch","common"],m=>{delete a[m]}),r.headers=Jt.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(r)===!1)return;l=l&&y.synchronous;const v=r.transitional||O0;v&&v.legacyInterceptorReqResOrdering?s.unshift(y.fulfilled,y.rejected):s.push(y.fulfilled,y.rejected)});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let f,c=0,h;if(!l){const m=[E1.bind(this),void 0];for(m.unshift(...s),m.push(...u),h=m.length,f=Promise.resolve(r);c{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](i);n._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{n.subscribe(s),a=s}).then(i);return o.cancel=function(){n.unsubscribe(a)},o},t(function(a,o,s){n.reason||(n.reason=new Qu(a,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new JA(function(i){t=i}),cancel:t}}};function o4(e){return function(r){return e.apply(null,r)}}function s4(e){return M.isObject(e)&&e.isAxiosError===!0}const Ry={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ry).forEach(([e,t])=>{Ry[t]=e});function ZA(e){const t=new wa(e),r=TA(wa.prototype.request,t);return M.extend(r,wa.prototype,t,{allOwnKeys:!0}),M.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return ZA(Ta(e,i))},r}const Ye=ZA(Xu);Ye.Axios=wa;Ye.CanceledError=Qu;Ye.CancelToken=a4;Ye.isCancel=KA;Ye.VERSION=YA;Ye.toFormData=lh;Ye.AxiosError=se;Ye.Cancel=Ye.CanceledError;Ye.all=function(t){return Promise.all(t)};Ye.spread=o4;Ye.isAxiosError=s4;Ye.mergeConfig=Ta;Ye.AxiosHeaders=Jt;Ye.formToJSON=e=>HA(M.isHTMLForm(e)?new FormData(e):e);Ye.getAdapter=QA.getAdapter;Ye.HttpStatusCode=Ry;Ye.default=Ye;const{Axios:Lse,AxiosError:zse,CanceledError:Bse,isCancel:Fse,CancelToken:Use,VERSION:Wse,all:Hse,Cancel:Kse,isAxiosError:qse,spread:Vse,toFormData:Gse,AxiosHeaders:Xse,HttpStatusCode:Qse,formToJSON:Yse,getAdapter:Jse,mergeConfig:Zse}=Ye,Oe=Ye.create({baseURL:"/api",headers:{"Content-Type":"application/json"}});Oe.interceptors.request.use(e=>{const t=localStorage.getItem("access_token");return t&&(e.headers.Authorization=`Bearer ${t}`),e});Oe.interceptors.response.use(e=>e,async e=>{var t;return((t=e.response)==null?void 0:t.status)===401&&(localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token"),window.location.href="/login"),Promise.reject(e)});const l4={login:(e,t)=>Oe.post("/auth/login",{email:e,password:t}),register:e=>Oe.post("/auth/register",e),refresh:e=>Oe.post("/auth/refresh",{refresh_token:e})},u4={me:()=>Oe.get("/users/me"),updateMe:e=>Oe.patch("/users/me",e)},ch={list:()=>Oe.get("/organizations"),create:e=>Oe.post("/organizations",e),get:e=>Oe.get(`/organizations/${e}`),update:(e,t)=>Oe.patch(`/organizations/${e}`,t),members:e=>Oe.get(`/organizations/${e}/members`),invite:(e,t)=>Oe.post(`/organizations/${e}/members`,t)},Bp={list:e=>Oe.get("/integrations",{params:{org_id:e}}),create:(e,t)=>Oe.post("/integrations",t,{params:{org_id:e}}),get:(e,t)=>Oe.get(`/integrations/${t}`,{params:{org_id:e}}),update:(e,t,r)=>Oe.patch(`/integrations/${t}`,r,{params:{org_id:e}}),delete:(e,t)=>Oe.delete(`/integrations/${t}`,{params:{org_id:e}}),test:(e,t)=>Oe.post(`/integrations/${t}/test`,null,{params:{org_id:e}})},_l={list:(e,t={})=>Oe.get("/issues",{params:{org_id:e,...t}}),stats:e=>Oe.get("/issues/stats",{params:{org_id:e}}),get:(e,t)=>Oe.get(`/issues/${t}`,{params:{org_id:e}}),create:(e,t)=>Oe.post("/issues",t,{params:{org_id:e}}),reanalyze:(e,t)=>Oe.post(`/issues/${t}/reanalyze`,null,{params:{org_id:e}}),addComment:(e,t,r)=>Oe.post(`/issues/${t}/comments`,r,{params:{org_id:e}})},Dy={summary:(e,t=30)=>Oe.get("/reports/summary",{params:{org_id:e,days:t}}),exportCsv:(e,t=30)=>Oe.get("/reports/export/csv",{params:{org_id:e,days:t},responseType:"blob"})},ek=A.createContext(null);function c4({children:e}){const[t,r]=A.useState(null),[n,i]=A.useState(!0),[a,o]=A.useState(null);A.useEffect(()=>{localStorage.getItem("access_token")?s():i(!1)},[]);const s=async()=>{try{const c=await u4.me();r(c.data);const h=localStorage.getItem("current_org");h&&o(JSON.parse(h))}catch{localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token")}finally{i(!1)}},l=async(c,h)=>{const p=await l4.login(c,h);localStorage.setItem("access_token",p.data.access_token),localStorage.setItem("refresh_token",p.data.refresh_token),await s()},u=()=>{localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token"),localStorage.removeItem("current_org"),r(null),o(null)},f=c=>{o(c),localStorage.setItem("current_org",JSON.stringify(c))};return d.jsx(ek.Provider,{value:{user:t,loading:n,login:l,logout:u,currentOrg:a,selectOrg:f},children:e})}const Zt=()=>A.useContext(ek);function tk(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t{const r=new Array(e.length+t.length);for(let n=0;n({classGroupId:e,validator:t}),rk=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Rf="-",C1=[],h4="arbitrary..",p4=e=>{const t=y4(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return m4(o);const s=o.split(Rf),l=s[0]===""&&s.length>1?1:0;return nk(s,l,t)},getConflictingClassGroupIds:(o,s)=>{if(s){const l=n[o],u=r[o];return l?u?f4(u,l):l:u||C1}return r[o]||C1}}},nk=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const i=e[t],a=r.nextPart.get(i);if(a){const u=nk(e,t+1,a);if(u)return u}const o=r.validators;if(o===null)return;const s=t===0?e.join(Rf):e.slice(t).join(Rf),l=o.length;for(let u=0;ue.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?h4+n:void 0})(),y4=e=>{const{theme:t,classGroups:r}=e;return v4(r,t)},v4=(e,t)=>{const r=rk();for(const n in e){const i=e[n];P0(i,r,n,t)}return r},P0=(e,t,r,n)=>{const i=e.length;for(let a=0;a{if(typeof e=="string"){b4(e,t,r);return}if(typeof e=="function"){x4(e,t,r,n);return}w4(e,t,r,n)},b4=(e,t,r)=>{const n=e===""?t:ik(t,e);n.classGroupId=r},x4=(e,t,r,n)=>{if(S4(e)){P0(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(d4(r,e))},w4=(e,t,r,n)=>{const i=Object.entries(e),a=i.length;for(let o=0;o{let r=e;const n=t.split(Rf),i=n.length;for(let a=0;a"isThemeGetter"in e&&e.isThemeGetter===!0,O4=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const i=(a,o)=>{r[a]=o,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(a){let o=r[a];if(o!==void 0)return o;if((o=n[a])!==void 0)return i(a,o),o},set(a,o){a in r?r[a]=o:i(a,o)}}},Ly="!",T1=":",j4=[],$1=(e,t,r,n,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:i}),_4=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=i=>{const a=[];let o=0,s=0,l=0,u;const f=i.length;for(let y=0;yl?u-l:void 0;return $1(a,p,h,m)};if(t){const i=t+T1,a=n;n=o=>o.startsWith(i)?a(o.slice(i.length)):$1(j4,!1,o,void 0,!0)}if(r){const i=n;n=a=>r({className:a,parseClassName:i})}return n},P4=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let i=[];for(let a=0;a0&&(i.sort(),n.push(...i),i=[]),n.push(o)):i.push(o)}return i.length>0&&(i.sort(),n.push(...i)),n}},A4=e=>({cache:O4(e.cacheSize),parseClassName:_4(e),sortModifiers:P4(e),...p4(e)}),k4=/\s+/,E4=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(k4);let l="";for(let u=s.length-1;u>=0;u-=1){const f=s[u],{isExternal:c,modifiers:h,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:y}=r(f);if(c){l=f+(l.length>0?" "+l:l);continue}let v=!!y,g=n(v?m.substring(0,y):m);if(!g){if(!v){l=f+(l.length>0?" "+l:l);continue}if(g=n(m),!g){l=f+(l.length>0?" "+l:l);continue}v=!1}const b=h.length===0?"":h.length===1?h[0]:a(h).join(":"),x=p?b+Ly:b,O=x+g;if(o.indexOf(O)>-1)continue;o.push(O);const w=i(g,v);for(let S=0;S0?" "+l:l)}return l},N4=(...e)=>{let t=0,r,n,i="";for(;t{if(typeof e=="string")return e;let t,r="";for(let n=0;n{let r,n,i,a;const o=l=>{const u=t.reduce((f,c)=>c(f),e());return r=A4(u),n=r.cache.get,i=r.cache.set,a=s,s(l)},s=l=>{const u=n(l);if(u)return u;const f=E4(l,r);return i(l,f),f};return a=o,(...l)=>a(N4(...l))},T4=[],nt=e=>{const t=r=>r[e]||T4;return t.isThemeGetter=!0,t},ok=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,sk=/^\((?:(\w[\w-]*):)?(.+)\)$/i,$4=/^\d+\/\d+$/,M4=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,I4=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,R4=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,D4=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,L4=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ya=e=>$4.test(e),he=e=>!!e&&!Number.isNaN(Number(e)),Kn=e=>!!e&&Number.isInteger(Number(e)),Fp=e=>e.endsWith("%")&&he(e.slice(0,-1)),fn=e=>M4.test(e),lk=()=>!0,z4=e=>I4.test(e)&&!R4.test(e),A0=()=>!1,B4=e=>D4.test(e),F4=e=>L4.test(e),U4=e=>!Z(e)&&!ee(e),W4=e=>Ri(e,fk,A0),Z=e=>ok.test(e),Hi=e=>Ri(e,dk,z4),M1=e=>Ri(e,Y4,he),H4=e=>Ri(e,pk,lk),K4=e=>Ri(e,hk,A0),I1=e=>Ri(e,uk,A0),q4=e=>Ri(e,ck,F4),_c=e=>Ri(e,mk,B4),ee=e=>sk.test(e),Zs=e=>Wa(e,dk),V4=e=>Wa(e,hk),R1=e=>Wa(e,uk),G4=e=>Wa(e,fk),X4=e=>Wa(e,ck),Pc=e=>Wa(e,mk,!0),Q4=e=>Wa(e,pk,!0),Ri=(e,t,r)=>{const n=ok.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Wa=(e,t,r=!1)=>{const n=sk.exec(e);return n?n[1]?t(n[1]):r:!1},uk=e=>e==="position"||e==="percentage",ck=e=>e==="image"||e==="url",fk=e=>e==="length"||e==="size"||e==="bg-size",dk=e=>e==="length",Y4=e=>e==="number",hk=e=>e==="family-name",pk=e=>e==="number"||e==="weight",mk=e=>e==="shadow",J4=()=>{const e=nt("color"),t=nt("font"),r=nt("text"),n=nt("font-weight"),i=nt("tracking"),a=nt("leading"),o=nt("breakpoint"),s=nt("container"),l=nt("spacing"),u=nt("radius"),f=nt("shadow"),c=nt("inset-shadow"),h=nt("text-shadow"),p=nt("drop-shadow"),m=nt("blur"),y=nt("perspective"),v=nt("aspect"),g=nt("ease"),b=nt("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...O(),ee,Z],S=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],_=()=>[ee,Z,l],P=()=>[Ya,"full","auto",..._()],N=()=>[Kn,"none","subgrid",ee,Z],$=()=>["auto",{span:["full",Kn,ee,Z]},Kn,ee,Z],T=()=>[Kn,"auto",ee,Z],L=()=>["auto","min","max","fr",ee,Z],R=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],I=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",..._()],F=()=>[Ya,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],C=()=>[e,ee,Z],B=()=>[...O(),R1,I1,{position:[ee,Z]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",G4,W4,{size:[ee,Z]}],H=()=>[Fp,Zs,Hi],X=()=>["","none","full",u,ee,Z],ie=()=>["",he,Zs,Hi],be=()=>["solid","dashed","dotted","double"],ze=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],we=()=>[he,Fp,R1,I1],gt=()=>["","none",m,ee,Z],G=()=>["none",he,ee,Z],le=()=>["none",he,ee,Z],ue=()=>[he,ee,Z],W=()=>[Ya,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[fn],breakpoint:[fn],color:[lk],container:[fn],"drop-shadow":[fn],ease:["in","out","in-out"],font:[U4],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[fn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[fn],shadow:[fn],spacing:["px",he],text:[fn],"text-shadow":[fn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ya,Z,ee,v]}],container:["container"],columns:[{columns:[he,Z,ee,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{start:P()}],end:[{end:P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[Kn,"auto",ee,Z]}],basis:[{basis:[Ya,"full","auto",s,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[he,Ya,"auto","initial","none",Z]}],grow:[{grow:["",he,ee,Z]}],shrink:[{shrink:["",he,ee,Z]}],order:[{order:[Kn,"first","last","none",ee,Z]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":L()}],"auto-rows":[{"auto-rows":L()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...R(),"normal"]}],"justify-items":[{"justify-items":[...I(),"normal"]}],"justify-self":[{"justify-self":["auto",...I()]}],"align-content":[{content:["normal",...R()]}],"align-items":[{items:[...I(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...I(),{baseline:["","last"]}]}],"place-content":[{"place-content":R()}],"place-items":[{"place-items":[...I(),"baseline"]}],"place-self":[{"place-self":["auto",...I()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],w:[{w:[s,"screen",...F()]}],"min-w":[{"min-w":[s,"screen","none",...F()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",r,Zs,Hi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Q4,H4]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Fp,Z]}],"font-family":[{font:[V4,K4,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,ee,Z]}],"line-clamp":[{"line-clamp":[he,"none",ee,M1]}],leading:[{leading:[a,..._()]}],"list-image":[{"list-image":["none",ee,Z]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ee,Z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...be(),"wavy"]}],"text-decoration-thickness":[{decoration:[he,"from-font","auto",ee,Hi]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[he,"auto",ee,Z]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ee,Z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ee,Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:B()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Kn,ee,Z],radial:["",ee,Z],conic:[Kn,ee,Z]},X4,q4]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:H()}],"gradient-via-pos":[{via:H()}],"gradient-to-pos":[{to:H()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:X()}],"rounded-s":[{"rounded-s":X()}],"rounded-e":[{"rounded-e":X()}],"rounded-t":[{"rounded-t":X()}],"rounded-r":[{"rounded-r":X()}],"rounded-b":[{"rounded-b":X()}],"rounded-l":[{"rounded-l":X()}],"rounded-ss":[{"rounded-ss":X()}],"rounded-se":[{"rounded-se":X()}],"rounded-ee":[{"rounded-ee":X()}],"rounded-es":[{"rounded-es":X()}],"rounded-tl":[{"rounded-tl":X()}],"rounded-tr":[{"rounded-tr":X()}],"rounded-br":[{"rounded-br":X()}],"rounded-bl":[{"rounded-bl":X()}],"border-w":[{border:ie()}],"border-w-x":[{"border-x":ie()}],"border-w-y":[{"border-y":ie()}],"border-w-s":[{"border-s":ie()}],"border-w-e":[{"border-e":ie()}],"border-w-t":[{"border-t":ie()}],"border-w-r":[{"border-r":ie()}],"border-w-b":[{"border-b":ie()}],"border-w-l":[{"border-l":ie()}],"divide-x":[{"divide-x":ie()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ie()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...be(),"hidden","none"]}],"divide-style":[{divide:[...be(),"hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[he,ee,Z]}],"outline-w":[{outline:["",he,Zs,Hi]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",f,Pc,_c]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",c,Pc,_c]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[he,Hi]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":ie()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",h,Pc,_c]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[he,ee,Z]}],"mix-blend":[{"mix-blend":[...ze(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ze()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[he]}],"mask-image-linear-from-pos":[{"mask-linear-from":we()}],"mask-image-linear-to-pos":[{"mask-linear-to":we()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":we()}],"mask-image-t-to-pos":[{"mask-t-to":we()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":we()}],"mask-image-r-to-pos":[{"mask-r-to":we()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":we()}],"mask-image-b-to-pos":[{"mask-b-to":we()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":we()}],"mask-image-l-to-pos":[{"mask-l-to":we()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":we()}],"mask-image-x-to-pos":[{"mask-x-to":we()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":we()}],"mask-image-y-to-pos":[{"mask-y-to":we()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[ee,Z]}],"mask-image-radial-from-pos":[{"mask-radial-from":we()}],"mask-image-radial-to-pos":[{"mask-radial-to":we()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[he]}],"mask-image-conic-from-pos":[{"mask-conic-from":we()}],"mask-image-conic-to-pos":[{"mask-conic-to":we()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:B()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ee,Z]}],filter:[{filter:["","none",ee,Z]}],blur:[{blur:gt()}],brightness:[{brightness:[he,ee,Z]}],contrast:[{contrast:[he,ee,Z]}],"drop-shadow":[{"drop-shadow":["","none",p,Pc,_c]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",he,ee,Z]}],"hue-rotate":[{"hue-rotate":[he,ee,Z]}],invert:[{invert:["",he,ee,Z]}],saturate:[{saturate:[he,ee,Z]}],sepia:[{sepia:["",he,ee,Z]}],"backdrop-filter":[{"backdrop-filter":["","none",ee,Z]}],"backdrop-blur":[{"backdrop-blur":gt()}],"backdrop-brightness":[{"backdrop-brightness":[he,ee,Z]}],"backdrop-contrast":[{"backdrop-contrast":[he,ee,Z]}],"backdrop-grayscale":[{"backdrop-grayscale":["",he,ee,Z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[he,ee,Z]}],"backdrop-invert":[{"backdrop-invert":["",he,ee,Z]}],"backdrop-opacity":[{"backdrop-opacity":[he,ee,Z]}],"backdrop-saturate":[{"backdrop-saturate":[he,ee,Z]}],"backdrop-sepia":[{"backdrop-sepia":["",he,ee,Z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ee,Z]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[he,"initial",ee,Z]}],ease:[{ease:["linear","initial",g,ee,Z]}],delay:[{delay:[he,ee,Z]}],animate:[{animate:["none",b,ee,Z]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,ee,Z]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:G()}],"rotate-x":[{"rotate-x":G()}],"rotate-y":[{"rotate-y":G()}],"rotate-z":[{"rotate-z":G()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[ee,Z,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:W()}],"translate-x":[{"translate-x":W()}],"translate-y":[{"translate-y":W()}],"translate-z":[{"translate-z":W()}],"translate-none":["translate-none"],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ee,Z]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ee,Z]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[he,Zs,Hi,M1]}],stroke:[{stroke:["none",...C()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Z4=C4(J4);function _e(...e){return Z4(fe(e))}/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const yk=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const e3=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const t3=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase());/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const D1=e=>{const t=t3(e);return t.charAt(0).toUpperCase()+t.slice(1)};/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */var r3={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const n3=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const i3=A.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:a,iconNode:o,...s},l)=>A.createElement("svg",{ref:l,...r3,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:yk("lucide",i),...!a&&!n3(s)&&{"aria-hidden":"true"},...s},[...o.map(([u,f])=>A.createElement(u,f)),...Array.isArray(a)?a:[a]]));/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const te=(e,t)=>{const r=A.forwardRef(({className:n,...i},a)=>A.createElement(i3,{ref:a,iconNode:t,className:yk(`lucide-${e3(D1(e))}`,`lucide-${e}`,n),...i}));return r.displayName=D1(e),r};/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const a3=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],o3=te("arrow-left",a3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const s3=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],fh=te("arrow-right",s3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const l3=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],vk=te("bell",l3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const u3=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],Df=te("brain",u3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const c3=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],$a=te("building-2",c3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const f3=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],d3=te("calendar",f3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const h3=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],gk=te("chart-column",h3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const p3=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],bk=te("check",p3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const m3=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],zy=te("chevron-right",m3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const y3=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],v3=te("chevrons-up-down",y3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const g3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Lf=te("circle-alert",g3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const b3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],ki=te("circle-check",b3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const x3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],k0=te("circle-x",x3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const w3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],dh=te("clock",w3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const S3=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],By=te("code-xml",S3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const O3=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Fy=te("copy",O3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const j3=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],_3=te("crown",j3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const P3=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],A3=te("download",P3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const k3=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],E3=te("ellipsis-vertical",k3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const N3=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],L1=te("external-link",N3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const C3=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Uy=te("eye",C3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const T3=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],z1=te("eye-off",T3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const $3=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],M3=te("file-code",$3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const I3=[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]],R3=te("folder-tree",I3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const D3=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]],hh=te("git-pull-request",D3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const L3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],xk=te("globe",L3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const z3=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],wk=te("key",z3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const B3=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],F3=te("layout-dashboard",B3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const U3=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],W3=te("lightbulb",U3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const H3=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],jr=te("loader-circle",H3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const K3=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Sk=te("lock",K3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const q3=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],V3=te("log-out",q3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const G3=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],ph=te("mail",G3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const X3=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Q3=te("message-square",X3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Y3=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],J3=te("panel-left-close",Y3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Z3=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],eD=te("panel-left-open",Z3);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const tD=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],rD=te("plug",tD);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const nD=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Ei=te("plus",nD);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const iD=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Ok=te("refresh-cw",iD);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const aD=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],Up=te("save",aD);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const oD=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],af=te("search",oD);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const sD=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],lD=te("send",sD);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const uD=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],jk=te("settings",uD);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const cD=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],_k=te("shield",cD);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const fD=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],dD=te("sliders-horizontal",fD);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const hD=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],pD=te("tag",hD);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const mD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],yD=te("target",mD);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const vD=[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]],gD=te("test-tube",vD);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const bD=[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],E0=te("ticket-check",bD);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const xD=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Pk=te("trash-2",xD);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const wD=[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]],SD=te("trending-down",wD);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const OD=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],jD=te("trending-up",OD);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const _D=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],PD=te("triangle-alert",_D);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const AD=[["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m14.305 16.53.923-.382",key:"1itpsq"}],["path",{d:"m15.228 13.852-.923-.383",key:"eplpkm"}],["path",{d:"m16.852 12.228-.383-.923",key:"13v3q0"}],["path",{d:"m16.852 17.772-.383.924",key:"1i8mnm"}],["path",{d:"m19.148 12.228.383-.923",key:"1q8j1v"}],["path",{d:"m19.53 18.696-.382-.924",key:"vk1qj3"}],["path",{d:"m20.772 13.852.924-.383",key:"n880s0"}],["path",{d:"m20.772 16.148.924.383",key:"1g6xey"}],["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],kD=te("user-cog",AD);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const ED=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],ND=te("user",ED);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const CD=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Ak=te("users",CD);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const TD=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Zl=te("zap",TD),$D=[{label:"Main",items:[{path:"/",label:"Dashboard",icon:F3},{path:"/issues",label:"Issues",icon:E0}]},{label:"Management",items:[{path:"/integrations",label:"Integrations",icon:rD},{path:"/team",label:"Team",icon:Ak},{path:"/reports",label:"Reports",icon:gk}]},{label:"System",items:[{path:"/settings",label:"Settings",icon:jk}]}],MD={"/":"Dashboard","/issues":"Issues","/integrations":"Integrations","/team":"Team","/reports":"Reports","/settings":"Settings"};function ID(){var x,O,w,S;const{user:e,logout:t,currentOrg:r,selectOrg:n}=Zt(),i=As(),a=Ua(),[o,s]=A.useState(!1),[l,u]=A.useState(!1),[f,c]=A.useState(!1),[h,p]=A.useState(!1),[m,y]=A.useState(""),{data:v}=Ai({queryKey:["organizations"],queryFn:()=>ch.list()});A.useEffect(()=>{const j=_=>{(_.metaKey||_.ctrlKey)&&_.key==="k"&&(_.preventDefault(),c(P=>!P)),_.key==="Escape"&&(c(!1),u(!1))};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[]);const g=()=>{const j=i.pathname.split("/").filter(Boolean);if(j.length===0)return[{label:"Dashboard",path:"/"}];const _=[];let P="";for(const N of j)P+=`/${N}`,_.push({label:MD[P]||N.charAt(0).toUpperCase()+N.slice(1),path:P});return _},b=j=>j==="/"?i.pathname==="/":i.pathname.startsWith(j);return d.jsxs("div",{className:"min-h-screen flex bg-gray-950 text-gray-200",children:[f&&d.jsxs("div",{className:"fixed inset-0 z-50 flex items-start justify-center pt-[20vh]",onClick:()=>c(!1),children:[d.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm"}),d.jsx("div",{className:"relative w-full max-w-lg mx-4 animate-slide-up",onClick:j=>j.stopPropagation(),children:d.jsxs("div",{className:"card border-gray-700 shadow-2xl",children:[d.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 border-b border-gray-800",children:[d.jsx(af,{size:18,className:"text-gray-500"}),d.jsx("input",{autoFocus:!0,value:m,onChange:j=>y(j.target.value),placeholder:"Search issues, projects, settings...",className:"flex-1 bg-transparent text-sm outline-none placeholder:text-gray-500"}),d.jsx("kbd",{className:"kbd",children:"ESC"})]}),d.jsxs("div",{className:"p-2 max-h-80 overflow-auto",children:[["Dashboard","Issues","Integrations","Team","Reports","Settings"].filter(j=>j.toLowerCase().includes(m.toLowerCase())).map(j=>d.jsxs("button",{className:"w-full flex items-center gap-3 px-3 py-2 rounded-lg text-sm text-gray-300 hover:bg-gray-800 transition-colors",onClick:()=>{a(`/${j.toLowerCase()==="dashboard"?"":j.toLowerCase()}`),c(!1),y("")},children:[d.jsx(zy,{size:14,className:"text-gray-600"}),j]},j)),m&&d.jsxs("div",{className:"px-3 py-6 text-center text-sm text-gray-500",children:['Press Enter to search for "',m,'"']})]})]})})]}),d.jsxs("aside",{className:_e("fixed top-0 left-0 h-full flex flex-col border-r border-gray-800/50 bg-gray-950 z-40 transition-all duration-300",o?"w-[68px]":"w-[260px]"),children:[d.jsx("div",{className:_e("h-14 flex items-center border-b border-gray-800/50 px-4",o&&"justify-center px-0"),children:o?d.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-600 flex items-center justify-center",children:d.jsx(Zl,{size:16,className:"text-white"})}):d.jsxs("div",{className:"flex items-center gap-2.5",children:[d.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-600 flex items-center justify-center shadow-lg shadow-indigo-500/20",children:d.jsx(Zl,{size:16,className:"text-white"})}),d.jsxs("div",{children:[d.jsx("h1",{className:"text-sm font-semibold text-white",children:"JIRA AI Fixer"}),d.jsx("p",{className:"text-[10px] text-gray-500 font-medium",children:"Enterprise v2.0"})]})]})}),!o&&d.jsxs("div",{className:"px-3 py-3 border-b border-gray-800/50 relative",children:[d.jsxs("button",{onClick:()=>u(!l),className:"w-full flex items-center gap-2.5 px-3 py-2 rounded-lg bg-gray-900/60 hover:bg-gray-800/80 border border-gray-800/50 transition-all",children:[d.jsx("div",{className:"w-6 h-6 rounded bg-indigo-600/20 flex items-center justify-center flex-shrink-0",children:d.jsx($a,{size:12,className:"text-indigo-400"})}),d.jsx("span",{className:"flex-1 text-left text-sm truncate",children:(r==null?void 0:r.name)||"Select org"}),d.jsx(v3,{size:14,className:"text-gray-500"})]}),l&&(v==null?void 0:v.data)&&d.jsxs("div",{className:"absolute left-3 right-3 top-full mt-1 bg-gray-900 border border-gray-700 rounded-lg shadow-xl z-50 animate-slide-up",children:[v.data.map(j=>d.jsxs("button",{onClick:()=>{n(j),u(!1)},className:_e("w-full flex items-center gap-2.5 px-3 py-2 text-sm hover:bg-gray-800 first:rounded-t-lg last:rounded-b-lg transition-colors",(r==null?void 0:r.id)===j.id&&"bg-indigo-600/10 text-indigo-400"),children:[d.jsx($a,{size:14}),j.name]},j.id)),d.jsxs("button",{onClick:()=>{a("/settings"),u(!1)},className:"w-full flex items-center gap-2.5 px-3 py-2 text-sm text-indigo-400 hover:bg-gray-800 border-t border-gray-800 rounded-b-lg",children:[d.jsx(Ei,{size:14}),"New organization"]})]})]}),!o&&d.jsx("div",{className:"px-3 pt-3",children:d.jsxs("button",{onClick:()=>c(!0),className:"w-full flex items-center gap-2.5 px-3 py-2 rounded-lg text-gray-500 hover:text-gray-300 bg-gray-900/40 hover:bg-gray-800/60 border border-gray-800/30 transition-all text-sm",children:[d.jsx(af,{size:14}),d.jsx("span",{className:"flex-1 text-left",children:"Search..."}),d.jsxs("div",{className:"flex items-center gap-0.5",children:[d.jsx("kbd",{className:"kbd",children:"⌘"}),d.jsx("kbd",{className:"kbd",children:"K"})]})]})}),d.jsx("nav",{className:"flex-1 overflow-auto px-3 py-4 space-y-5",children:$D.map(j=>d.jsxs("div",{children:[!o&&d.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-gray-600 px-3 mb-1.5",children:j.label}),d.jsx("div",{className:"space-y-0.5",children:j.items.map(_=>{const P=_.icon,N=b(_.path);return d.jsxs(Ea,{to:_.path,title:o?_.label:void 0,className:_e("sidebar-item",N?"sidebar-item-active":"sidebar-item-inactive",o&&"justify-center px-0"),children:[d.jsx(P,{size:18,strokeWidth:N?2:1.5}),!o&&d.jsx("span",{children:_.label})]},_.path)})})]},j.label))}),d.jsx("div",{className:"px-3 py-2 border-t border-gray-800/50",children:d.jsxs("button",{onClick:()=>s(!o),className:_e("sidebar-item sidebar-item-inactive w-full",o&&"justify-center px-0"),children:[o?d.jsx(eD,{size:18}):d.jsx(J3,{size:18}),!o&&d.jsx("span",{children:"Collapse"})]})}),d.jsx("div",{className:_e("px-3 py-3 border-t border-gray-800/50",o&&"px-2"),children:d.jsxs("div",{className:_e("flex items-center gap-2.5",o&&"justify-center"),children:[d.jsx("div",{className:"w-8 h-8 rounded-lg bg-gradient-to-br from-indigo-500 to-purple-600 flex items-center justify-center text-xs font-semibold text-white flex-shrink-0",children:((O=(x=e==null?void 0:e.full_name)==null?void 0:x[0])==null?void 0:O.toUpperCase())||((S=(w=e==null?void 0:e.email)==null?void 0:w[0])==null?void 0:S.toUpperCase())||"?"}),!o&&d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"text-sm font-medium truncate",children:(e==null?void 0:e.full_name)||(e==null?void 0:e.email)}),d.jsxs("button",{onClick:t,className:"text-xs text-gray-500 hover:text-red-400 transition-colors flex items-center gap-1",children:[d.jsx(V3,{size:10}),"Sign out"]})]})]})})]}),d.jsxs("div",{className:_e("flex-1 flex flex-col transition-all duration-300",o?"ml-[68px]":"ml-[260px]"),children:[d.jsxs("header",{className:"h-14 flex items-center justify-between px-6 border-b border-gray-800/50 bg-gray-950/80 backdrop-blur-md sticky top-0 z-30",children:[d.jsx("div",{className:"flex items-center gap-1.5 text-sm",children:g().map((j,_)=>d.jsxs("div",{className:"flex items-center gap-1.5",children:[_>0&&d.jsx(zy,{size:12,className:"text-gray-600"}),d.jsx(Ea,{to:j.path,className:_e("hover:text-white transition-colors",_===g().length-1?"text-white font-medium":"text-gray-400"),children:j.label})]},j.path))}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("button",{onClick:()=>c(!0),className:"btn-ghost btn-icon rounded-lg",children:d.jsx(af,{size:16})}),d.jsxs("button",{onClick:()=>p(!h),className:"btn-ghost btn-icon rounded-lg relative",children:[d.jsx(vk,{size:16}),d.jsx("span",{className:"absolute top-1.5 right-1.5 w-2 h-2 rounded-full bg-indigo-500"})]})]})]}),d.jsx("main",{className:"flex-1 overflow-auto",children:d.jsx(LM,{})})]})]})}function RD(){const[e,t]=A.useState(""),[r,n]=A.useState(""),[i,a]=A.useState(""),[o,s]=A.useState(!1),{login:l}=Zt(),u=Ua(),f=async c=>{var h,p;c.preventDefault(),a(""),s(!0);try{await l(e,r),u("/")}catch(m){a(((p=(h=m.response)==null?void 0:h.data)==null?void 0:p.detail)||"Invalid email or password")}finally{s(!1)}};return d.jsxs("div",{className:"min-h-screen flex bg-gray-950",children:[d.jsxs("div",{className:"hidden lg:flex lg:w-1/2 relative overflow-hidden",children:[d.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-indigo-600 via-indigo-700 to-purple-800"}),d.jsx("div",{className:"absolute inset-0 opacity-10",style:{backgroundImage:"radial-gradient(circle at 2px 2px, white 1px, transparent 0)",backgroundSize:"32px 32px"}}),d.jsxs("div",{className:"relative z-10 flex flex-col justify-center px-16",children:[d.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[d.jsx("div",{className:"w-12 h-12 rounded-xl bg-white/10 backdrop-blur flex items-center justify-center",children:d.jsx(Zl,{size:24,className:"text-white"})}),d.jsxs("div",{children:[d.jsx("h1",{className:"text-2xl font-bold text-white",children:"JIRA AI Fixer"}),d.jsx("p",{className:"text-sm text-indigo-200",children:"Enterprise v2.0"})]})]}),d.jsxs("h2",{className:"text-4xl font-bold text-white leading-tight mb-4",children:["AI-Powered Issue",d.jsx("br",{}),"Analysis & Resolution"]}),d.jsx("p",{className:"text-lg text-indigo-200 max-w-md",children:"Automatically analyze issues from JIRA, ServiceNow, GitHub and more. Get root cause analysis and automated Pull Requests."}),d.jsx("div",{className:"mt-12 grid grid-cols-3 gap-6",children:[{value:"95%",label:"Accuracy"},{value:"10x",label:"Faster Resolution"},{value:"24/7",label:"Automated"}].map(c=>d.jsxs("div",{children:[d.jsx("p",{className:"text-3xl font-bold text-white",children:c.value}),d.jsx("p",{className:"text-sm text-indigo-300 mt-1",children:c.label})]},c.label))})]})]}),d.jsx("div",{className:"flex-1 flex items-center justify-center px-6",children:d.jsxs("div",{className:"w-full max-w-sm",children:[d.jsx("div",{className:"lg:hidden text-center mb-8",children:d.jsxs("div",{className:"inline-flex items-center gap-2.5",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-indigo-600 flex items-center justify-center shadow-lg shadow-indigo-500/25",children:d.jsx(Zl,{size:20,className:"text-white"})}),d.jsxs("div",{className:"text-left",children:[d.jsx("h1",{className:"text-lg font-bold text-white",children:"JIRA AI Fixer"}),d.jsx("p",{className:"text-xs text-gray-500",children:"Enterprise v2.0"})]})]})}),d.jsxs("div",{className:"mb-8",children:[d.jsx("h2",{className:"text-2xl font-bold text-white",children:"Welcome back"}),d.jsx("p",{className:"text-gray-400 mt-1",children:"Sign in to your account to continue"})]}),d.jsxs("form",{onSubmit:f,className:"space-y-4",children:[i&&d.jsx("div",{className:"p-3 bg-red-500/10 border border-red-500/20 rounded-lg text-sm text-red-400 animate-fade-in",children:i}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Email"}),d.jsxs("div",{className:"relative",children:[d.jsx(ph,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),d.jsx("input",{type:"email",value:e,onChange:c=>t(c.target.value),className:"input pl-10",placeholder:"you@company.com",required:!0})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Password"}),d.jsxs("div",{className:"relative",children:[d.jsx(Sk,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),d.jsx("input",{type:"password",value:r,onChange:c=>n(c.target.value),className:"input pl-10",placeholder:"••••••••",required:!0})]})]}),d.jsx("button",{type:"submit",disabled:o,className:"btn btn-primary w-full h-11 justify-center mt-2",children:o?d.jsx(jr,{size:16,className:"animate-spin"}):d.jsxs(d.Fragment,{children:["Sign in",d.jsx(fh,{size:16})]})})]}),d.jsxs("p",{className:"text-center mt-6 text-sm text-gray-500",children:["Don't have an account?"," ",d.jsx(Ea,{to:"/register",className:"text-indigo-400 hover:text-indigo-300 transition-colors",children:"Create account"})]})]})})]})}function DD(){const[e,t]=A.useState({email:"",password:"",full_name:""}),[r,n]=A.useState(""),[i,a]=A.useState(!1),{register:o}=Zt(),s=Ua(),l=async u=>{var f,c;u.preventDefault(),n(""),a(!0);try{await o(e),s("/")}catch(h){n(((c=(f=h.response)==null?void 0:f.data)==null?void 0:c.detail)||"Registration failed")}finally{a(!1)}};return d.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-950 px-6",children:d.jsxs("div",{className:"w-full max-w-sm",children:[d.jsx("div",{className:"text-center mb-8",children:d.jsxs("div",{className:"inline-flex items-center gap-2.5",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-indigo-600 flex items-center justify-center shadow-lg shadow-indigo-500/25",children:d.jsx(Zl,{size:20,className:"text-white"})}),d.jsxs("div",{className:"text-left",children:[d.jsx("h1",{className:"text-lg font-bold text-white",children:"JIRA AI Fixer"}),d.jsx("p",{className:"text-xs text-gray-500",children:"Enterprise v2.0"})]})]})}),d.jsxs("div",{className:"mb-8",children:[d.jsx("h2",{className:"text-2xl font-bold text-white",children:"Create account"}),d.jsx("p",{className:"text-gray-400 mt-1",children:"Get started with AI-powered issue analysis"})]}),d.jsxs("form",{onSubmit:l,className:"space-y-4",children:[r&&d.jsx("div",{className:"p-3 bg-red-500/10 border border-red-500/20 rounded-lg text-sm text-red-400 animate-fade-in",children:r}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Full Name"}),d.jsxs("div",{className:"relative",children:[d.jsx(ND,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),d.jsx("input",{type:"text",value:e.full_name,onChange:u=>t({...e,full_name:u.target.value}),className:"input pl-10",placeholder:"John Doe",required:!0})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Email"}),d.jsxs("div",{className:"relative",children:[d.jsx(ph,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),d.jsx("input",{type:"email",value:e.email,onChange:u=>t({...e,email:u.target.value}),className:"input pl-10",placeholder:"you@company.com",required:!0})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Password"}),d.jsxs("div",{className:"relative",children:[d.jsx(Sk,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),d.jsx("input",{type:"password",value:e.password,onChange:u=>t({...e,password:u.target.value}),className:"input pl-10",placeholder:"••••••••",minLength:8,required:!0})]})]}),d.jsx("button",{type:"submit",disabled:i,className:"btn btn-primary w-full h-11 justify-center mt-2",children:i?d.jsx(jr,{size:16,className:"animate-spin"}):d.jsxs(d.Fragment,{children:[d.jsx("span",{children:"Create account"}),d.jsx(fh,{size:16})]})})]}),d.jsxs("p",{className:"text-center mt-6 text-sm text-gray-500",children:["Already have an account?"," ",d.jsx(Ea,{to:"/login",className:"text-indigo-400 hover:text-indigo-300 transition-colors",children:"Sign in"})]})]})})}function LD(){const[e,t]=A.useState([]),[r,n]=A.useState(!0),[i,a]=A.useState(""),{selectOrg:o}=Zt(),s=Ua();A.useEffect(()=>{l()},[]);const l=async()=>{var f,c;try{const h=await ch.list();t(h.data),h.data.length===1&&u(h.data[0])}catch(h){a(((c=(f=h.response)==null?void 0:f.data)==null?void 0:c.detail)||"Failed to load organizations")}finally{n(!1)}},u=f=>{o(f),s("/")};return r?d.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-950",children:d.jsx(jr,{size:32,className:"text-indigo-400 animate-spin"})}):e.length===0?(s("/create-organization"),null):d.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-950 px-6",children:d.jsxs("div",{className:"w-full max-w-2xl",children:[d.jsxs("div",{className:"text-center mb-8",children:[d.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-2xl bg-indigo-600/10 border border-indigo-500/20 mb-4",children:d.jsx($a,{size:32,className:"text-indigo-400"})}),d.jsx("h1",{className:"text-2xl font-bold text-white mb-2",children:"Select Organization"}),d.jsx("p",{className:"text-gray-400",children:"Choose which organization you want to work with"})]}),i&&d.jsx("div",{className:"p-3 bg-red-500/10 border border-red-500/20 rounded-lg text-sm text-red-400 mb-6 animate-fade-in",children:i}),d.jsx("div",{className:"grid gap-3 mb-6",children:e.map(f=>d.jsx("button",{onClick:()=>u(f),className:"card hover:bg-gray-800/50 transition-colors p-6 text-left group",children:d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsx("div",{className:"w-12 h-12 rounded-xl bg-indigo-600/10 border border-indigo-500/20 flex items-center justify-center",children:d.jsx($a,{size:24,className:"text-indigo-400"})}),d.jsxs("div",{children:[d.jsx("h3",{className:"font-semibold text-white mb-1",children:f.name}),d.jsxs("p",{className:"text-sm text-gray-500",children:[f.member_count||0," ",f.member_count===1?"member":"members"]})]})]}),d.jsx(fh,{size:20,className:"text-gray-600 group-hover:text-indigo-400 transition-colors"})]})},f.id))}),d.jsxs("button",{onClick:()=>s("/create-organization"),className:"btn btn-secondary w-full h-11 justify-center",children:[d.jsx(Ei,{size:16}),"Create New Organization"]})]})})}function zD(){const[e,t]=A.useState(""),[r,n]=A.useState(""),[i,a]=A.useState(!1),{selectOrg:o}=Zt(),s=Ua(),l=async u=>{var f,c;u.preventDefault(),n(""),a(!0);try{const h=await ch.create({name:e});o(h.data),s("/")}catch(h){n(((c=(f=h.response)==null?void 0:f.data)==null?void 0:c.detail)||"Failed to create organization")}finally{a(!1)}};return d.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-950 px-6",children:d.jsxs("div",{className:"w-full max-w-md",children:[d.jsxs("div",{className:"text-center mb-8",children:[d.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-2xl bg-indigo-600/10 border border-indigo-500/20 mb-4",children:d.jsx($a,{size:32,className:"text-indigo-400"})}),d.jsx("h1",{className:"text-2xl font-bold text-white mb-2",children:"Create Your Organization"}),d.jsx("p",{className:"text-gray-400",children:"Get started by creating your first organization"})]}),d.jsx("div",{className:"card",children:d.jsxs("form",{onSubmit:l,className:"space-y-6",children:[r&&d.jsx("div",{className:"p-3 bg-red-500/10 border border-red-500/20 rounded-lg text-sm text-red-400 animate-fade-in",children:r}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-2 uppercase tracking-wide",children:"Organization Name"}),d.jsx("input",{type:"text",value:e,onChange:u=>t(u.target.value),className:"input",placeholder:"Acme Inc.",required:!0,autoFocus:!0}),d.jsx("p",{className:"mt-2 text-xs text-gray-500",children:"You can change this later in settings"})]}),d.jsx("button",{type:"submit",disabled:i,className:"btn btn-primary w-full h-11 justify-center",children:i?d.jsx(jr,{size:16,className:"animate-spin"}):d.jsxs(d.Fragment,{children:["Create Organization",d.jsx(fh,{size:16})]})})]})}),d.jsx("p",{className:"text-center mt-6 text-xs text-gray-500",children:"You can invite team members after creating your organization"})]})})}var BD=Array.isArray,er=BD,FD=typeof ac=="object"&&ac&&ac.Object===Object&&ac,kk=FD,UD=kk,WD=typeof self=="object"&&self&&self.Object===Object&&self,HD=UD||WD||Function("return this")(),un=HD,KD=un,qD=KD.Symbol,Yu=qD,B1=Yu,Ek=Object.prototype,VD=Ek.hasOwnProperty,GD=Ek.toString,el=B1?B1.toStringTag:void 0;function XD(e){var t=VD.call(e,el),r=e[el];try{e[el]=void 0;var n=!0}catch{}var i=GD.call(e);return n&&(t?e[el]=r:delete e[el]),i}var QD=XD,YD=Object.prototype,JD=YD.toString;function ZD(e){return JD.call(e)}var eL=ZD,F1=Yu,tL=QD,rL=eL,nL="[object Null]",iL="[object Undefined]",U1=F1?F1.toStringTag:void 0;function aL(e){return e==null?e===void 0?iL:nL:U1&&U1 in Object(e)?tL(e):rL(e)}var zn=aL;function oL(e){return e!=null&&typeof e=="object"}var Bn=oL,sL=zn,lL=Bn,uL="[object Symbol]";function cL(e){return typeof e=="symbol"||lL(e)&&sL(e)==uL}var Ns=cL,fL=er,dL=Ns,hL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pL=/^\w*$/;function mL(e,t){if(fL(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||dL(e)?!0:pL.test(e)||!hL.test(e)||t!=null&&e in Object(t)}var N0=mL;function yL(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Di=yL;const Cs=Ae(Di);var vL=zn,gL=Di,bL="[object AsyncFunction]",xL="[object Function]",wL="[object GeneratorFunction]",SL="[object Proxy]";function OL(e){if(!gL(e))return!1;var t=vL(e);return t==xL||t==wL||t==bL||t==SL}var C0=OL;const oe=Ae(C0);var jL=un,_L=jL["__core-js_shared__"],PL=_L,Wp=PL,W1=function(){var e=/[^.]+$/.exec(Wp&&Wp.keys&&Wp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function AL(e){return!!W1&&W1 in e}var kL=AL,EL=Function.prototype,NL=EL.toString;function CL(e){if(e!=null){try{return NL.call(e)}catch{}try{return e+""}catch{}}return""}var Nk=CL,TL=C0,$L=kL,ML=Di,IL=Nk,RL=/[\\^$.*+?()[\]{}|]/g,DL=/^\[object .+?Constructor\]$/,LL=Function.prototype,zL=Object.prototype,BL=LL.toString,FL=zL.hasOwnProperty,UL=RegExp("^"+BL.call(FL).replace(RL,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function WL(e){if(!ML(e)||$L(e))return!1;var t=TL(e)?UL:DL;return t.test(IL(e))}var HL=WL;function KL(e,t){return e==null?void 0:e[t]}var qL=KL,VL=HL,GL=qL;function XL(e,t){var r=GL(e,t);return VL(r)?r:void 0}var Ha=XL,QL=Ha,YL=QL(Object,"create"),mh=YL,H1=mh;function JL(){this.__data__=H1?H1(null):{},this.size=0}var ZL=JL;function e5(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var t5=e5,r5=mh,n5="__lodash_hash_undefined__",i5=Object.prototype,a5=i5.hasOwnProperty;function o5(e){var t=this.__data__;if(r5){var r=t[e];return r===n5?void 0:r}return a5.call(t,e)?t[e]:void 0}var s5=o5,l5=mh,u5=Object.prototype,c5=u5.hasOwnProperty;function f5(e){var t=this.__data__;return l5?t[e]!==void 0:c5.call(t,e)}var d5=f5,h5=mh,p5="__lodash_hash_undefined__";function m5(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=h5&&t===void 0?p5:t,this}var y5=m5,v5=ZL,g5=t5,b5=s5,x5=d5,w5=y5;function Ts(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var L5=D5,z5=yh;function B5(e,t){var r=this.__data__,n=z5(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var F5=B5,U5=j5,W5=T5,H5=I5,K5=L5,q5=F5;function $s(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t0?1:-1},aa=function(t){return Ma(t)&&t.indexOf("%")===t.length-1},K=function(t){return d6(t)&&!Is(t)},y6=function(t){return ce(t)},ct=function(t){return K(t)||Ma(t)},v6=0,Rs=function(t){var r=++v6;return"".concat(t||"").concat(r)},It=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!K(t)&&!Ma(t))return n;var a;if(aa(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Is(a)&&(a=n),i&&a>r&&(a=r),a},Zn=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},g6=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Hy(e){"@babel/helpers - typeof";return Hy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hy(e)}var Y1={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},An=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},J1=null,Kp=null,F0=function e(t){if(t===J1&&Array.isArray(Kp))return Kp;var r=[];return A.Children.forEach(t,function(n){ce(n)||(s6.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Kp=r,J1=t,r};function _r(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return An(i)}):n=[An(t)],F0(e).forEach(function(i){var a=lr(i,"type.displayName")||lr(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function ir(e,t){var r=_r(e,t);return r&&r[0]}var Z1=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!K(n)||n<=0||!K(i)||i<=0)},P6=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],A6=function(t){return t&&t.type&&Ma(t.type)&&P6.indexOf(t.type)>=0},k6=function(t){return t&&Hy(t)==="object"&&"clipDot"in t},E6=function(t,r,n,i){var a,o=(a=Hp==null?void 0:Hp[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!oe(t)&&(i&&o.includes(r)||w6.includes(r))||n&&B0.includes(r)},ne=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(A.isValidElement(t)&&(i=t.props),!Cs(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;E6((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},Ky=function e(t,r){if(t===r)return!0;var n=A.Children.count(t);if(n!==A.Children.count(r))return!1;if(n===0)return!0;if(n===1)return ew(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function M6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Vy(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,l=e.desc,u=$6(e,T6),f=i||{width:r,height:n,x:0,y:0},c=fe("recharts-surface",a);return k.createElement("svg",qy({},ne(u,!0,"svg"),{className:c,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),k.createElement("title",null,s),k.createElement("desc",null,l),t)}var I6=["children","className"];function Gy(){return Gy=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function D6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ye=k.forwardRef(function(e,t){var r=e.children,n=e.className,i=R6(e,I6),a=fe("recharts-layer",n);return k.createElement("g",Gy({className:a},ne(i,!0),{ref:t}),r)}),Ur=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;ai?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n=n?e:B6(e,t,r)}var U6=F6,W6="\\ud800-\\udfff",H6="\\u0300-\\u036f",K6="\\ufe20-\\ufe2f",q6="\\u20d0-\\u20ff",V6=H6+K6+q6,G6="\\ufe0e\\ufe0f",X6="\\u200d",Q6=RegExp("["+X6+W6+V6+G6+"]");function Y6(e){return Q6.test(e)}var Bk=Y6;function J6(e){return e.split("")}var Z6=J6,Fk="\\ud800-\\udfff",eB="\\u0300-\\u036f",tB="\\ufe20-\\ufe2f",rB="\\u20d0-\\u20ff",nB=eB+tB+rB,iB="\\ufe0e\\ufe0f",aB="["+Fk+"]",Xy="["+nB+"]",Qy="\\ud83c[\\udffb-\\udfff]",oB="(?:"+Xy+"|"+Qy+")",Uk="[^"+Fk+"]",Wk="(?:\\ud83c[\\udde6-\\uddff]){2}",Hk="[\\ud800-\\udbff][\\udc00-\\udfff]",sB="\\u200d",Kk=oB+"?",qk="["+iB+"]?",lB="(?:"+sB+"(?:"+[Uk,Wk,Hk].join("|")+")"+qk+Kk+")*",uB=qk+Kk+lB,cB="(?:"+[Uk+Xy+"?",Xy,Wk,Hk,aB].join("|")+")",fB=RegExp(Qy+"(?="+Qy+")|"+cB+uB,"g");function dB(e){return e.match(fB)||[]}var hB=dB,pB=Z6,mB=Bk,yB=hB;function vB(e){return mB(e)?yB(e):pB(e)}var gB=vB,bB=U6,xB=Bk,wB=gB,SB=Mk;function OB(e){return function(t){t=SB(t);var r=xB(t)?wB(t):void 0,n=r?r[0]:t.charAt(0),i=r?bB(r,1).join(""):t.slice(1);return n[e]()+i}}var jB=OB,_B=jB,PB=_B("toUpperCase"),AB=PB;const Nh=Ae(AB);function Te(e){return function(){return e}}const Vk=Math.cos,Ff=Math.sin,Kr=Math.sqrt,Uf=Math.PI,Ch=2*Uf,Yy=Math.PI,Jy=2*Yy,Qi=1e-6,kB=Jy-Qi;function Gk(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Gk;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;iQi)if(!(Math.abs(c*l-u*f)>Qi)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,m=i-s,y=l*l+u*u,v=p*p+m*m,g=Math.sqrt(y),b=Math.sqrt(h),x=a*Math.tan((Yy-Math.acos((y+h-v)/(2*g*b)))/2),O=x/b,w=x/g;Math.abs(O-1)>Qi&&this._append`L${t+O*f},${r+O*c}`,this._append`A${a},${a},0,0,${+(c*p>f*m)},${this._x1=t+w*l},${this._y1=r+w*u}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),l=n*Math.sin(i),u=t+s,f=r+l,c=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>Qi||Math.abs(this._y1-f)>Qi)&&this._append`L${u},${f}`,n&&(h<0&&(h=h%Jy+Jy),h>kB?this._append`A${n},${n},0,1,${c},${t-s},${r-l}A${n},${n},0,1,${c},${this._x1=u},${this._y1=f}`:h>Qi&&this._append`A${n},${n},0,${+(h>=Yy)},${c},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function U0(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new NB(t)}function W0(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Xk(e){this._context=e}Xk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Th(e){return new Xk(e)}function Qk(e){return e[0]}function Yk(e){return e[1]}function Jk(e,t){var r=Te(!0),n=null,i=Th,a=null,o=U0(s);e=typeof e=="function"?e:e===void 0?Qk:Te(e),t=typeof t=="function"?t:t===void 0?Yk:Te(t);function s(l){var u,f=(l=W0(l)).length,c,h=!1,p;for(n==null&&(a=i(p=o())),u=0;u<=f;++u)!(u=p;--m)s.point(x[m],O[m]);s.lineEnd(),s.areaEnd()}g&&(x[h]=+e(v,h,c),O[h]=+t(v,h,c),s.point(n?+n(v,h,c):x[h],r?+r(v,h,c):O[h]))}if(b)return s=null,b+""||null}function f(){return Jk().defined(i).curve(o).context(a)}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:Te(+c),n=null,u):e},u.x0=function(c){return arguments.length?(e=typeof c=="function"?c:Te(+c),u):e},u.x1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:Te(+c),u):n},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:Te(+c),r=null,u):t},u.y0=function(c){return arguments.length?(t=typeof c=="function"?c:Te(+c),u):t},u.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:Te(+c),u):r},u.lineX0=u.lineY0=function(){return f().x(e).y(t)},u.lineY1=function(){return f().x(e).y(r)},u.lineX1=function(){return f().x(n).y(t)},u.defined=function(c){return arguments.length?(i=typeof c=="function"?c:Te(!!c),u):i},u.curve=function(c){return arguments.length?(o=c,a!=null&&(s=o(a)),u):o},u.context=function(c){return arguments.length?(c==null?a=s=null:s=o(a=c),u):a},u}class Zk{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function CB(e){return new Zk(e,!0)}function TB(e){return new Zk(e,!1)}const H0={draw(e,t){const r=Kr(t/Uf);e.moveTo(r,0),e.arc(0,0,r,0,Ch)}},$B={draw(e,t){const r=Kr(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},e2=Kr(1/3),MB=e2*2,IB={draw(e,t){const r=Kr(t/MB),n=r*e2;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},RB={draw(e,t){const r=Kr(t),n=-r/2;e.rect(n,n,r,r)}},DB=.8908130915292852,t2=Ff(Uf/10)/Ff(7*Uf/10),LB=Ff(Ch/10)*t2,zB=-Vk(Ch/10)*t2,BB={draw(e,t){const r=Kr(t*DB),n=LB*r,i=zB*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Ch*a/5,s=Vk(o),l=Ff(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}},qp=Kr(3),FB={draw(e,t){const r=-Kr(t/(qp*3));e.moveTo(0,r*2),e.lineTo(-qp*r,-r),e.lineTo(qp*r,-r),e.closePath()}},hr=-.5,pr=Kr(3)/2,Zy=1/Kr(12),UB=(Zy/2+1)*3,WB={draw(e,t){const r=Kr(t/UB),n=r/2,i=r*Zy,a=n,o=r*Zy+r,s=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(hr*n-pr*i,pr*n+hr*i),e.lineTo(hr*a-pr*o,pr*a+hr*o),e.lineTo(hr*s-pr*l,pr*s+hr*l),e.lineTo(hr*n+pr*i,hr*i-pr*n),e.lineTo(hr*a+pr*o,hr*o-pr*a),e.lineTo(hr*s+pr*l,hr*l-pr*s),e.closePath()}};function HB(e,t){let r=null,n=U0(i);e=typeof e=="function"?e:Te(e||H0),t=typeof t=="function"?t:Te(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:Te(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Te(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Wf(){}function Hf(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function r2(e){this._context=e}r2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Hf(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Hf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function KB(e){return new r2(e)}function n2(e){this._context=e}n2.prototype={areaStart:Wf,areaEnd:Wf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Hf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function qB(e){return new n2(e)}function i2(e){this._context=e}i2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Hf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function VB(e){return new i2(e)}function a2(e){this._context=e}a2.prototype={areaStart:Wf,areaEnd:Wf,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function GB(e){return new a2(e)}function rw(e){return e<0?-1:1}function nw(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(rw(a)+rw(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function iw(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Vp(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function Kf(e){this._context=e}Kf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Vp(this,this._t0,iw(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Vp(this,iw(this,r=nw(this,e,t)),r);break;default:Vp(this,this._t0,r=nw(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function o2(e){this._context=new s2(e)}(o2.prototype=Object.create(Kf.prototype)).point=function(e,t){Kf.prototype.point.call(this,t,e)};function s2(e){this._context=e}s2.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function XB(e){return new Kf(e)}function QB(e){return new o2(e)}function l2(e){this._context=e}l2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=aw(e),i=aw(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function JB(e){return new $h(e,.5)}function ZB(e){return new $h(e,0)}function eF(e){return new $h(e,1)}function Qo(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r=0;)r[t]=t;return r}function tF(e,t){return e[t]}function rF(e){const t=[];return t.key=e,t}function nF(){var e=Te([]),t=ev,r=Qo,n=tF;function i(a){var o=Array.from(e.apply(this,arguments),rF),s,l=o.length,u=-1,f;for(const c of a)for(s=0,++u;s0){for(var r,n,i=0,a=e[0].length,o;i0){for(var r=0,n=e[t[0]],i,a=n.length;r0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function dF(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var u2={symbolCircle:H0,symbolCross:$B,symbolDiamond:IB,symbolSquare:RB,symbolStar:BB,symbolTriangle:FB,symbolWye:WB},hF=Math.PI/180,pF=function(t){var r="symbol".concat(Nh(t));return u2[r]||H0},mF=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*hF;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},yF=function(t,r){u2["symbol".concat(Nh(t))]=r},K0=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,l=fF(t,sF),u=sw(sw({},l),{},{type:n,size:a,sizeType:s}),f=function(){var v=pF(n),g=HB().type(v).size(mF(a,s,n));return g()},c=u.className,h=u.cx,p=u.cy,m=ne(u,!0);return h===+h&&p===+p&&a===+a?k.createElement("path",tv({},m,{className:fe("recharts-symbols",c),transform:"translate(".concat(h,", ").concat(p,")"),d:f()})):null};K0.registerSymbol=yF;function Yo(e){"@babel/helpers - typeof";return Yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yo(e)}function rv(){return rv=Object.assign?Object.assign.bind():function(e){for(var t=1;t`);var b=p.inactive?u:p.color;return k.createElement("li",rv({className:v,style:c,key:"legend-item-".concat(m)},Ia(n.props,p,m)),k.createElement(Vy,{width:o,height:o,viewBox:f,style:h},n.renderIcon(p)),k.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},y?y(g,p,m):g))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return k.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(A.PureComponent);tu(q0,"displayName","Legend");tu(q0,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var PF=vh;function AF(){this.__data__=new PF,this.size=0}var kF=AF;function EF(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var NF=EF;function CF(e){return this.__data__.get(e)}var TF=CF;function $F(e){return this.__data__.has(e)}var MF=$F,IF=vh,RF=$0,DF=M0,LF=200;function zF(e,t){var r=this.__data__;if(r instanceof IF){var n=r.__data__;if(!RF||n.lengths))return!1;var u=a.get(e),f=a.get(t);if(u&&f)return u==t&&f==e;var c=-1,h=!0,p=r&s8?new n8:void 0;for(a.set(e,t),a.set(t,e);++c-1&&e%1==0&&e-1&&e%1==0&&e<=fU}var Q0=dU,hU=zn,pU=Q0,mU=Bn,yU="[object Arguments]",vU="[object Array]",gU="[object Boolean]",bU="[object Date]",xU="[object Error]",wU="[object Function]",SU="[object Map]",OU="[object Number]",jU="[object Object]",_U="[object RegExp]",PU="[object Set]",AU="[object String]",kU="[object WeakMap]",EU="[object ArrayBuffer]",NU="[object DataView]",CU="[object Float32Array]",TU="[object Float64Array]",$U="[object Int8Array]",MU="[object Int16Array]",IU="[object Int32Array]",RU="[object Uint8Array]",DU="[object Uint8ClampedArray]",LU="[object Uint16Array]",zU="[object Uint32Array]",Re={};Re[CU]=Re[TU]=Re[$U]=Re[MU]=Re[IU]=Re[RU]=Re[DU]=Re[LU]=Re[zU]=!0;Re[yU]=Re[vU]=Re[EU]=Re[gU]=Re[NU]=Re[bU]=Re[xU]=Re[wU]=Re[SU]=Re[OU]=Re[jU]=Re[_U]=Re[PU]=Re[AU]=Re[kU]=!1;function BU(e){return mU(e)&&pU(e.length)&&!!Re[hU(e)]}var FU=BU;function UU(e){return function(t){return e(t)}}var x2=UU,Xf={exports:{}};Xf.exports;(function(e,t){var r=kk,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(Xf,Xf.exports);var WU=Xf.exports,HU=FU,KU=x2,pw=WU,mw=pw&&pw.isTypedArray,qU=mw?KU(mw):HU,w2=qU,VU=Q8,GU=G0,XU=er,QU=b2,YU=X0,JU=w2,ZU=Object.prototype,e7=ZU.hasOwnProperty;function t7(e,t){var r=XU(e),n=!r&&GU(e),i=!r&&!n&&QU(e),a=!r&&!n&&!i&&JU(e),o=r||n||i||a,s=o?VU(e.length,String):[],l=s.length;for(var u in e)(t||e7.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||YU(u,l)))&&s.push(u);return s}var r7=t7,n7=Object.prototype;function i7(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||n7;return e===r}var a7=i7;function o7(e,t){return function(r){return e(t(r))}}var S2=o7,s7=S2,l7=s7(Object.keys,Object),u7=l7,c7=a7,f7=u7,d7=Object.prototype,h7=d7.hasOwnProperty;function p7(e){if(!c7(e))return f7(e);var t=[];for(var r in Object(e))h7.call(e,r)&&r!="constructor"&&t.push(r);return t}var m7=p7,y7=C0,v7=Q0;function g7(e){return e!=null&&v7(e.length)&&!y7(e)}var Ju=g7,b7=r7,x7=m7,w7=Ju;function S7(e){return w7(e)?b7(e):x7(e)}var Mh=S7,O7=L8,j7=G8,_7=Mh;function P7(e){return O7(e,_7,j7)}var A7=P7,yw=A7,k7=1,E7=Object.prototype,N7=E7.hasOwnProperty;function C7(e,t,r,n,i,a){var o=r&k7,s=yw(e),l=s.length,u=yw(t),f=u.length;if(l!=f&&!o)return!1;for(var c=l;c--;){var h=s[c];if(!(o?h in t:N7.call(t,h)))return!1}var p=a.get(e),m=a.get(t);if(p&&m)return p==t&&m==e;var y=!0;a.set(e,t),a.set(t,e);for(var v=o;++c-1}var EW=kW;function NW(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=KW){var u=t?null:WW(e);if(u)return HW(u);o=!1,i=UW,l=new zW}else l=t?[]:s;e:for(;++n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function lH(e){return e.value}function uH(e,t){if(k.isValidElement(e))return k.cloneElement(e,t);if(typeof e=="function")return k.createElement(e,t);t.ref;var r=oH(t,JW);return k.createElement(q0,r)}var Tw=1,Po=function(e){function t(){var r;ZW(this,t);for(var n=arguments.length,i=new Array(n),a=0;aTw||Math.abs(i.height-this.lastBoundingBox.height)>Tw)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?dn({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,s=i.verticalAlign,l=i.margin,u=i.chartWidth,f=i.chartHeight,c,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();c={left:((u||0)-p.width)/2}}else c=o==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var m=this.getBBoxSnapshot();h={top:((f||0)-m.height)/2}}else h=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return dn(dn({},c),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,l=i.wrapperStyle,u=i.payloadUniqBy,f=i.payload,c=dn(dn({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return k.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(p){n.wrapperNode=p}},uH(a,dn(dn({},this.props),{},{payload:E2(f,u,lH)})))}}],[{key:"getWithHeight",value:function(n,i){var a=dn(dn({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&K(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}(A.PureComponent);Ih(Po,"displayName","Legend");Ih(Po,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var $w=Yu,cH=G0,fH=er,Mw=$w?$w.isConcatSpreadable:void 0;function dH(e){return fH(e)||cH(e)||!!(Mw&&e&&e[Mw])}var hH=dH,pH=v2,mH=hH;function T2(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=mH),i||(i=[]);++a0&&r(s)?t>1?T2(s,t-1,r,n,i):pH(i,s):n||(i[i.length]=s)}return i}var $2=T2;function yH(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++i];if(r(a[l],l,a)===!1)break}return t}}var vH=yH,gH=vH,bH=gH(),xH=bH,wH=xH,SH=Mh;function OH(e,t){return e&&wH(e,t,SH)}var M2=OH,jH=Ju;function _H(e,t){return function(r,n){if(r==null)return r;if(!jH(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++at||a&&o&&l&&!s&&!u||n&&o&&l||!r&&l||!i)return 1;if(!n&&!a&&!u&&e=s)return l;var u=r[n];return l*(u=="desc"?-1:1)}}return e.index-t.index}var zH=LH,Yp=R0,BH=D0,FH=cn,UH=I2,WH=MH,HH=x2,KH=zH,qH=zs,VH=er;function GH(e,t,r){t.length?t=Yp(t,function(a){return VH(a)?function(o){return BH(o,a.length===1?a[0]:a)}:a}):t=[qH];var n=-1;t=Yp(t,HH(FH));var i=UH(e,function(a,o,s){var l=Yp(t,function(u){return u(a)});return{criteria:l,index:++n,value:a}});return WH(i,function(a,o){return KH(a,o,r)})}var XH=GH;function QH(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var YH=QH,JH=YH,Rw=Math.max;function ZH(e,t,r){return t=Rw(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=Rw(n.length-t,0),o=Array(a);++i0){if(++t>=uK)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var hK=dK,pK=lK,mK=hK,yK=mK(pK),vK=yK,gK=zs,bK=eK,xK=vK;function wK(e,t){return xK(bK(e,t,gK),e+"")}var SK=wK,OK=T0,jK=Ju,_K=X0,PK=Di;function AK(e,t,r){if(!PK(r))return!1;var n=typeof t;return(n=="number"?jK(r)&&_K(t,r.length):n=="string"&&t in r)?OK(r[t],e):!1}var Rh=AK,kK=$2,EK=XH,NK=SK,Lw=Rh,CK=NK(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Lw(e,t[0],t[1])?t=[]:r>2&&Lw(t[0],t[1],t[2])&&(t=[t[0]]),EK(e,kK(t,1),[])}),TK=CK;const Z0=Ae(TK);function ru(e){"@babel/helpers - typeof";return ru=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ru(e)}function cv(){return cv=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t.x),"".concat(tl,"-left"),K(r)&&t&&K(t.x)&&r=t.y),"".concat(tl,"-top"),K(n)&&t&&K(t.y)&&ny?Math.max(f,l[n]):Math.max(c,l[n])}function VK(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function GK(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,f,c;return o.height>0&&o.width>0&&r?(f=Fw({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),c=Fw({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),u=VK({translateX:f,translateY:c,useTranslate3d:s})):u=KK,{cssProperties:u,cssClasses:qK({translateX:f,translateY:c,coordinate:r})}}function Zo(e){"@babel/helpers - typeof";return Zo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zo(e)}function Uw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ww(e){for(var t=1;tHw||Math.abs(n.height-this.state.lastBoundingBox.height)>Hw)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.children,f=i.coordinate,c=i.hasPayload,h=i.isAnimationActive,p=i.offset,m=i.position,y=i.reverseDirection,v=i.useTranslate3d,g=i.viewBox,b=i.wrapperStyle,x=GK({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:m,reverseDirection:y,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:g}),O=x.cssClasses,w=x.cssProperties,S=Ww(Ww({transition:h&&a?"transform ".concat(s,"ms ").concat(l):void 0},w),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&c?"visible":"hidden",position:"absolute",top:0,left:0},b);return k.createElement("div",{tabIndex:-1,className:O,style:S,ref:function(_){n.wrapperNode=_}},u)}}])}(A.PureComponent),iq=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ka={isSsr:iq()};function es(e){"@babel/helpers - typeof";return es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},es(e)}function Kw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qw(e){for(var t=1;t0;return k.createElement(nq,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:h,active:a,coordinate:f,hasPayload:S,offset:p,position:v,reverseDirection:g,useTranslate3d:b,viewBox:x,wrapperStyle:O},pq(u,qw(qw({},this.props),{},{payload:w})))}}])}(A.PureComponent);eb(Wt,"displayName","Tooltip");eb(Wt,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ka.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var mq=un,yq=function(){return mq.Date.now()},vq=yq,gq=/\s/;function bq(e){for(var t=e.length;t--&&gq.test(e.charAt(t)););return t}var xq=bq,wq=xq,Sq=/^\s+/;function Oq(e){return e&&e.slice(0,wq(e)+1).replace(Sq,"")}var jq=Oq,_q=jq,Vw=Di,Pq=Ns,Gw=NaN,Aq=/^[-+]0x[0-9a-f]+$/i,kq=/^0b[01]+$/i,Eq=/^0o[0-7]+$/i,Nq=parseInt;function Cq(e){if(typeof e=="number")return e;if(Pq(e))return Gw;if(Vw(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Vw(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=_q(e);var r=kq.test(e);return r||Eq.test(e)?Nq(e.slice(2),r?2:8):Aq.test(e)?Gw:+e}var F2=Cq,Tq=Di,Zp=vq,Xw=F2,$q="Expected a function",Mq=Math.max,Iq=Math.min;function Rq(e,t,r){var n,i,a,o,s,l,u=0,f=!1,c=!1,h=!0;if(typeof e!="function")throw new TypeError($q);t=Xw(t)||0,Tq(r)&&(f=!!r.leading,c="maxWait"in r,a=c?Mq(Xw(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h);function p(S){var j=n,_=i;return n=i=void 0,u=S,o=e.apply(_,j),o}function m(S){return u=S,s=setTimeout(g,t),f?p(S):o}function y(S){var j=S-l,_=S-u,P=t-j;return c?Iq(P,a-_):P}function v(S){var j=S-l,_=S-u;return l===void 0||j>=t||j<0||c&&_>=a}function g(){var S=Zp();if(v(S))return b(S);s=setTimeout(g,y(S))}function b(S){return s=void 0,h&&n?p(S):(n=i=void 0,o)}function x(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function O(){return s===void 0?o:b(Zp())}function w(){var S=Zp(),j=v(S);if(n=arguments,i=this,l=S,j){if(s===void 0)return m(l);if(c)return clearTimeout(s),s=setTimeout(g,t),p(l)}return s===void 0&&(s=setTimeout(g,t)),o}return w.cancel=x,w.flush=O,w}var Dq=Rq,Lq=Dq,zq=Di,Bq="Expected a function";function Fq(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(Bq);return zq(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Lq(e,t,{leading:n,maxWait:t,trailing:i})}var Uq=Fq;const U2=Ae(Uq);function iu(e){"@babel/helpers - typeof";return iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iu(e)}function Qw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nc(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(L=U2(L,y,{trailing:!0,leading:!1}));var R=new ResizeObserver(L),I=w.current.getBoundingClientRect(),D=I.width,F=I.height;return $(D,F),R.observe(w.current),function(){R.disconnect()}},[$,y]);var T=A.useMemo(function(){var L=P.containerWidth,R=P.containerHeight;if(L<0||R<0)return null;Ur(aa(o)||aa(l),`The width(%s) and height(%s) are both fixed numbers, - maybe you don't need to use a ResponsiveContainer.`,o,l),Ur(!r||r>0,"The aspect(%s) must be greater than zero.",r);var I=aa(o)?L:o,D=aa(l)?R:l;r&&r>0&&(I?D=I/r:D&&(I=D*r),h&&D>h&&(D=h)),Ur(I>0||D>0,`The width(%s) and height(%s) of chart should be greater than 0, - please check the style of container, or the props width(%s) and height(%s), - or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the - height and width.`,I,D,o,l,f,c,r);var F=!Array.isArray(p)&&An(p.type).endsWith("Chart");return k.Children.map(p,function(C){return k.isValidElement(C)?A.cloneElement(C,Nc({width:I,height:D},F?{style:Nc({height:"100%",width:"100%",maxHeight:D,maxWidth:I},C.props.style)}:{})):C})},[r,p,l,h,c,f,P,o]);return k.createElement("div",{id:v?"".concat(v):void 0,className:fe("recharts-responsive-container",g),style:Nc(Nc({},O),{},{width:o,height:l,minWidth:f,minHeight:c,maxHeight:h}),ref:w},T)}),Dh=function(t){return null};Dh.displayName="Cell";function au(e){"@babel/helpers - typeof";return au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},au(e)}function Jw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pv(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ka.isSsr)return{width:0,height:0};var n=rV(r),i=JSON.stringify({text:t,copyStyle:n});if(Ja.widthCache[i])return Ja.widthCache[i];try{var a=document.getElementById(Zw);a||(a=document.createElement("span"),a.setAttribute("id",Zw),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=pv(pv({},tV),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return Ja.widthCache[i]=l,++Ja.cacheCount>eV&&(Ja.cacheCount=0,Ja.widthCache={}),l}catch{return{width:0,height:0}}},nV=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function ou(e){"@babel/helpers - typeof";return ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ou(e)}function Zf(e,t){return sV(e)||oV(e,t)||aV(e,t)||iV()}function iV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aV(e,t){if(e){if(typeof e=="string")return eS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eS(e,t)}}function eS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function wV(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function oS(e,t){return _V(e)||jV(e,t)||OV(e,t)||SV()}function SV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OV(e,t){if(e){if(typeof e=="string")return sS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sS(e,t)}}function sS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[];return I.reduce(function(D,F){var C=F.word,B=F.width,U=D[D.length-1];if(U&&(i==null||a||U.width+B+nF.width?D:F})};if(!f)return p;for(var y="…",v=function(I){var D=c.slice(0,I),F=q2({breakAll:u,style:l,children:D+y}).wordsWithComputedWidth,C=h(F),B=C.length>o||m(C).width>Number(i);return[B,C]},g=0,b=c.length-1,x=0,O;g<=b&&x<=c.length-1;){var w=Math.floor((g+b)/2),S=w-1,j=v(S),_=oS(j,2),P=_[0],N=_[1],$=v(w),T=oS($,1),L=T[0];if(!P&&!L&&(g=w+1),P&&L&&(b=w-1),!P&&L){O=N;break}x++}return O||p},lS=function(t){var r=ce(t)?[]:t.toString().split(K2);return[{words:r}]},AV=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!Ka.isSsr){var l,u,f=q2({breakAll:o,children:i,style:a});if(f){var c=f.wordsWithComputedWidth,h=f.spaceWidth;l=c,u=h}else return lS(i);return PV({breakAll:o,children:i,maxLines:s,style:a},l,u,r,n)}return lS(i)},uS="#808080",Ra=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,u=l===void 0?"0.71em":l,f=t.scaleToFit,c=f===void 0?!1:f,h=t.textAnchor,p=h===void 0?"start":h,m=t.verticalAnchor,y=m===void 0?"end":m,v=t.fill,g=v===void 0?uS:v,b=aS(t,bV),x=A.useMemo(function(){return AV({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:c,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,c,b.style,b.width]),O=b.dx,w=b.dy,S=b.angle,j=b.className,_=b.breakAll,P=aS(b,xV);if(!ct(n)||!ct(a))return null;var N=n+(K(O)?O:0),$=a+(K(w)?w:0),T;switch(y){case"start":T=em("calc(".concat(u,")"));break;case"middle":T=em("calc(".concat((x.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:T=em("calc(".concat(x.length-1," * -").concat(s,")"));break}var L=[];if(c){var R=x[0].width,I=b.width;L.push("scale(".concat((K(I)?I/R:1)/R,")"))}return S&&L.push("rotate(".concat(S,", ").concat(N,", ").concat($,")")),L.length&&(P.transform=L.join(" ")),k.createElement("text",mv({},ne(P,!0),{x:N,y:$,className:fe("recharts-text",j),textAnchor:p,fill:g.includes("url")?uS:g}),x.map(function(D,F){var C=D.words.join(_?"":" ");return k.createElement("tspan",{x:N,dy:F===0?T:s,key:"".concat(C,"-").concat(F)},C)}))};function ji(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function kV(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function tb(e){let t,r,n;e.length!==2?(t=ji,r=(s,l)=>ji(e(s),l),n=(s,l)=>e(s)-l):(t=e===ji||e===kV?e:EV,r=e,n=e);function i(s,l,u=0,f=s.length){if(u>>1;r(s[c],l)<0?u=c+1:f=c}while(u>>1;r(s[c],l)<=0?u=c+1:f=c}while(uu&&n(s[c-1],l)>-n(s[c],l)?c-1:c}return{left:i,center:o,right:a}}function EV(){return 0}function V2(e){return e===null?NaN:+e}function*NV(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const CV=tb(ji),Zu=CV.right;tb(V2).center;class cS extends Map{constructor(t,r=MV){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(fS(this,t))}has(t){return super.has(fS(this,t))}set(t,r){return super.set(TV(this,t),r)}delete(t){return super.delete($V(this,t))}}function fS({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function TV({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function $V({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function MV(e){return e!==null&&typeof e=="object"?e.valueOf():e}function IV(e=ji){if(e===ji)return G2;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function G2(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const RV=Math.sqrt(50),DV=Math.sqrt(10),LV=Math.sqrt(2);function ed(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=RV?10:a>=DV?5:a>=LV?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/o,s=Math.round(e*u),l=Math.round(t*u),s/ut&&--l,u=-u):(u=Math.pow(10,i)*o,s=Math.round(e/u),l=Math.round(t/u),s*ut&&--l),l0))return[];if(e===t)return[e];const n=t=i))return[];const s=a-i+1,l=new Array(s);if(n)if(o<0)for(let u=0;u=n)&&(r=n);return r}function hS(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function X2(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?G2:IV(i);n>r;){if(n-r>600){const l=n-r+1,u=t-r+1,f=Math.log(l),c=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*c*(l-c)/l)*(u-l/2<0?-1:1),p=Math.max(r,Math.floor(t-u*c/l+h)),m=Math.min(n,Math.floor(t+(l-u)*c/l+h));X2(e,t,p,m,i)}const a=e[t];let o=r,s=n;for(rl(e,r,t),i(e[n],a)>0&&rl(e,r,n);o0;)--s}i(e[r],a)===0?rl(e,r,s):(++s,rl(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function rl(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function zV(e,t,r){if(e=Float64Array.from(NV(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return hS(e);if(t>=1)return dS(e);var n,i=(n-1)*t,a=Math.floor(i),o=dS(X2(e,a).subarray(0,a+1)),s=hS(e.subarray(a+1));return o+(s-o)*(i-a)}}function BV(e,t,r=V2){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function FV(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Tc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Tc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=WV.exec(e))?new Vt(t[1],t[2],t[3],1):(t=HV.exec(e))?new Vt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=KV.exec(e))?Tc(t[1],t[2],t[3],t[4]):(t=qV.exec(e))?Tc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=VV.exec(e))?xS(t[1],t[2]/100,t[3]/100,1):(t=GV.exec(e))?xS(t[1],t[2]/100,t[3]/100,t[4]):pS.hasOwnProperty(e)?vS(pS[e]):e==="transparent"?new Vt(NaN,NaN,NaN,0):null}function vS(e){return new Vt(e>>16&255,e>>8&255,e&255,1)}function Tc(e,t,r,n){return n<=0&&(e=t=r=NaN),new Vt(e,t,r,n)}function YV(e){return e instanceof ec||(e=cu(e)),e?(e=e.rgb(),new Vt(e.r,e.g,e.b,e.opacity)):new Vt}function xv(e,t,r,n){return arguments.length===1?YV(e):new Vt(e,t,r,n??1)}function Vt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}nb(Vt,xv,Y2(ec,{brighter(e){return e=e==null?td:Math.pow(td,e),new Vt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?lu:Math.pow(lu,e),new Vt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Vt(Sa(this.r),Sa(this.g),Sa(this.b),rd(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:gS,formatHex:gS,formatHex8:JV,formatRgb:bS,toString:bS}));function gS(){return`#${oa(this.r)}${oa(this.g)}${oa(this.b)}`}function JV(){return`#${oa(this.r)}${oa(this.g)}${oa(this.b)}${oa((isNaN(this.opacity)?1:this.opacity)*255)}`}function bS(){const e=rd(this.opacity);return`${e===1?"rgb(":"rgba("}${Sa(this.r)}, ${Sa(this.g)}, ${Sa(this.b)}${e===1?")":`, ${e})`}`}function rd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Sa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function oa(e){return e=Sa(e),(e<16?"0":"")+e.toString(16)}function xS(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new zr(e,t,r,n)}function J2(e){if(e instanceof zr)return new zr(e.h,e.s,e.l,e.opacity);if(e instanceof ec||(e=cu(e)),!e)return new zr;if(e instanceof zr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r0&&l<1?0:o,new zr(o,s,l,e.opacity)}function ZV(e,t,r,n){return arguments.length===1?J2(e):new zr(e,t,r,n??1)}function zr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}nb(zr,ZV,Y2(ec,{brighter(e){return e=e==null?td:Math.pow(td,e),new zr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?lu:Math.pow(lu,e),new zr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Vt(tm(e>=240?e-240:e+120,i,n),tm(e,i,n),tm(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new zr(wS(this.h),$c(this.s),$c(this.l),rd(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=rd(this.opacity);return`${e===1?"hsl(":"hsla("}${wS(this.h)}, ${$c(this.s)*100}%, ${$c(this.l)*100}%${e===1?")":`, ${e})`}`}}));function wS(e){return e=(e||0)%360,e<0?e+360:e}function $c(e){return Math.max(0,Math.min(1,e||0))}function tm(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const ib=e=>()=>e;function eG(e,t){return function(r){return e+r*t}}function tG(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function rG(e){return(e=+e)==1?Z2:function(t,r){return r-t?tG(t,r,e):ib(isNaN(t)?r:t)}}function Z2(e,t){var r=t-e;return r?eG(e,r):ib(isNaN(e)?t:e)}const SS=function e(t){var r=rG(t);function n(i,a){var o=r((i=xv(i)).r,(a=xv(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),u=Z2(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=s(f),i.b=l(f),i.opacity=u(f),i+""}}return n.gamma=e,n}(1);function nG(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;ir&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:nd(n,i)})),r=rm.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function pG(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i2?mG:pG,l=u=null,c}function c(h){return h==null||isNaN(h=+h)?a:(l||(l=s(e.map(n),t,r)))(n(o(h)))}return c.invert=function(h){return o(i((u||(u=s(t,e.map(n),nd)))(h)))},c.domain=function(h){return arguments.length?(e=Array.from(h,id),f()):e.slice()},c.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},c.rangeRound=function(h){return t=Array.from(h),r=ab,f()},c.clamp=function(h){return arguments.length?(o=h?!0:Rt,f()):o!==Rt},c.interpolate=function(h){return arguments.length?(r=h,f()):r},c.unknown=function(h){return arguments.length?(a=h,c):a},function(h,p){return n=h,i=p,f()}}function ob(){return Lh()(Rt,Rt)}function yG(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ad(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function ts(e){return e=ad(Math.abs(e)),e?e[1]:NaN}function vG(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(r.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function gG(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var bG=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function fu(e){if(!(t=bG.exec(e)))throw new Error("invalid format: "+e);var t;return new sb({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}fu.prototype=sb.prototype;function sb(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}sb.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function xG(e){e:for(var t=e.length,r=1,n=-1,i;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var od;function wG(e,t){var r=ad(e,t);if(!r)return od=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(od=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+ad(e,Math.max(0,t+a-1))[0]}function jS(e,t){var r=ad(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const _S={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:yG,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>jS(e*100,t),r:jS,s:wG,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function PS(e){return e}var AS=Array.prototype.map,kS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function SG(e){var t=e.grouping===void 0||e.thousands===void 0?PS:vG(AS.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?PS:gG(AS.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(c,h){c=fu(c);var p=c.fill,m=c.align,y=c.sign,v=c.symbol,g=c.zero,b=c.width,x=c.comma,O=c.precision,w=c.trim,S=c.type;S==="n"?(x=!0,S="g"):_S[S]||(O===void 0&&(O=12),w=!0,S="g"),(g||p==="0"&&m==="=")&&(g=!0,p="0",m="=");var j=(h&&h.prefix!==void 0?h.prefix:"")+(v==="$"?r:v==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():""),_=(v==="$"?n:/[%p]/.test(S)?o:"")+(h&&h.suffix!==void 0?h.suffix:""),P=_S[S],N=/[defgprs%]/.test(S);O=O===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function $(T){var L=j,R=_,I,D,F;if(S==="c")R=P(T)+R,T="";else{T=+T;var C=T<0||1/T<0;if(T=isNaN(T)?l:P(Math.abs(T),O),w&&(T=xG(T)),C&&+T==0&&y!=="+"&&(C=!1),L=(C?y==="("?y:s:y==="-"||y==="("?"":y)+L,R=(S==="s"&&!isNaN(T)&&od!==void 0?kS[8+od/3]:"")+R+(C&&y==="("?")":""),N){for(I=-1,D=T.length;++IF||F>57){R=(F===46?i+T.slice(I+1):T.slice(I))+R,T=T.slice(0,I);break}}}x&&!g&&(T=t(T,1/0));var B=L.length+T.length+R.length,U=B>1)+L+T+R+U.slice(B);break;default:T=U+L+T+R;break}return a(T)}return $.toString=function(){return c+""},$}function f(c,h){var p=Math.max(-8,Math.min(8,Math.floor(ts(h)/3)))*3,m=Math.pow(10,-p),y=u((c=fu(c),c.type="f",c),{suffix:kS[8+p/3]});return function(v){return y(m*v)}}return{format:u,formatPrefix:f}}var Mc,lb,eE;OG({thousands:",",grouping:[3],currency:["$",""]});function OG(e){return Mc=SG(e),lb=Mc.format,eE=Mc.formatPrefix,Mc}function jG(e){return Math.max(0,-ts(Math.abs(e)))}function _G(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ts(t)/3)))*3-ts(Math.abs(e)))}function PG(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ts(t)-ts(e))+1}function tE(e,t,r,n){var i=gv(e,t,r),a;switch(n=fu(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=_G(i,o))&&(n.precision=a),eE(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=PG(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=jG(i))&&(n.precision=a-(n.type==="%")*2);break}}return lb(n)}function Li(e){var t=e.domain;return e.ticks=function(r){var n=t();return yv(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return tE(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],l,u,f=10;for(s0;){if(u=vv(o,s,r),u===l)return n[i]=o,n[a]=s,t(n);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function sd(){var e=ob();return e.copy=function(){return tc(e,sd())},Nr.apply(e,arguments),Li(e)}function rE(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,id),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return rE(e).unknown(t)},e=arguments.length?Array.from(e,id):[0,1],Li(r)}function nE(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return aMath.pow(e,t)}function CG(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function CS(e){return(t,r)=>-e(-t,r)}function ub(e){const t=e(ES,NS),r=t.domain;let n=10,i,a;function o(){return i=CG(n),a=NG(n),r()[0]<0?(i=CS(i),a=CS(a),e(AG,kG)):e(ES,NS),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let u=l[0],f=l[l.length-1];const c=f0){for(;h<=p;++h)for(m=1;mf)break;g.push(y)}}else for(;h<=p;++h)for(m=n-1;m>=1;--m)if(y=h>0?m/a(-h):m*a(h),!(yf)break;g.push(y)}g.length*2{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=fu(l)).precision==null&&(l.trim=!0),l=lb(l)),s===1/0)return l;const u=Math.max(1,n*s/t.ticks().length);return f=>{let c=f/a(Math.round(i(f)));return c*nr(nE(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function iE(){const e=ub(Lh()).domain([1,10]);return e.copy=()=>tc(e,iE()).base(e.base()),Nr.apply(e,arguments),e}function TS(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function $S(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function cb(e){var t=1,r=e(TS(t),$S(t));return r.constant=function(n){return arguments.length?e(TS(t=+n),$S(t)):t},Li(r)}function aE(){var e=cb(Lh());return e.copy=function(){return tc(e,aE()).constant(e.constant())},Nr.apply(e,arguments)}function MS(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function TG(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function $G(e){return e<0?-e*e:e*e}function fb(e){var t=e(Rt,Rt),r=1;function n(){return r===1?e(Rt,Rt):r===.5?e(TG,$G):e(MS(r),MS(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Li(t)}function db(){var e=fb(Lh());return e.copy=function(){return tc(e,db()).exponent(e.exponent())},Nr.apply(e,arguments),e}function MG(){return db.apply(null,arguments).exponent(.5)}function IS(e){return Math.sign(e)*e*e}function IG(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function oE(){var e=ob(),t=[0,1],r=!1,n;function i(a){var o=IG(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(IS(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,id)).map(IS)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return oE(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Nr.apply(i,arguments),Li(i)}function sE(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o0?r[s-1]:e[0],s=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return lE().domain([e,t]).range(i).unknown(a)},Nr.apply(Li(o),arguments)}function uE(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Zu(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return uE().domain(e).range(t).unknown(r)},Nr.apply(i,arguments)}const nm=new Date,im=new Date;function ft(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a0))return l;let u;do l.push(u=new Date(+a)),t(a,s),e(a);while(uft(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(nm.setTime(+a),im.setTime(+o),e(nm),e(im),Math.floor(r(nm,im))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const ld=ft(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ld.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ft(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):ld);ld.range;const On=1e3,Sr=On*60,jn=Sr*60,In=jn*24,hb=In*7,RS=In*30,am=In*365,sa=ft(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*On)},(e,t)=>(t-e)/On,e=>e.getUTCSeconds());sa.range;const pb=ft(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*On)},(e,t)=>{e.setTime(+e+t*Sr)},(e,t)=>(t-e)/Sr,e=>e.getMinutes());pb.range;const mb=ft(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Sr)},(e,t)=>(t-e)/Sr,e=>e.getUTCMinutes());mb.range;const yb=ft(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*On-e.getMinutes()*Sr)},(e,t)=>{e.setTime(+e+t*jn)},(e,t)=>(t-e)/jn,e=>e.getHours());yb.range;const vb=ft(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*jn)},(e,t)=>(t-e)/jn,e=>e.getUTCHours());vb.range;const rc=ft(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Sr)/In,e=>e.getDate()-1);rc.range;const zh=ft(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/In,e=>e.getUTCDate()-1);zh.range;const cE=ft(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/In,e=>Math.floor(e/In));cE.range;function qa(e){return ft(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Sr)/hb)}const Bh=qa(0),ud=qa(1),RG=qa(2),DG=qa(3),rs=qa(4),LG=qa(5),zG=qa(6);Bh.range;ud.range;RG.range;DG.range;rs.range;LG.range;zG.range;function Va(e){return ft(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/hb)}const Fh=Va(0),cd=Va(1),BG=Va(2),FG=Va(3),ns=Va(4),UG=Va(5),WG=Va(6);Fh.range;cd.range;BG.range;FG.range;ns.range;UG.range;WG.range;const gb=ft(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());gb.range;const bb=ft(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());bb.range;const Rn=ft(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Rn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ft(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Rn.range;const Dn=ft(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Dn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ft(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Dn.range;function fE(e,t,r,n,i,a){const o=[[sa,1,On],[sa,5,5*On],[sa,15,15*On],[sa,30,30*On],[a,1,Sr],[a,5,5*Sr],[a,15,15*Sr],[a,30,30*Sr],[i,1,jn],[i,3,3*jn],[i,6,6*jn],[i,12,12*jn],[n,1,In],[n,2,2*In],[r,1,hb],[t,1,RS],[t,3,3*RS],[e,1,am]];function s(u,f,c){const h=fv).right(o,h);if(p===o.length)return e.every(gv(u/am,f/am,c));if(p===0)return ld.every(Math.max(gv(u,f,c),1));const[m,y]=o[h/o[p-1][2]53)return null;"w"in W||(W.w=1),"Z"in W?(ve=sm(nl(W.y,0,1)),tt=ve.getUTCDay(),ve=tt>4||tt===0?cd.ceil(ve):cd(ve),ve=zh.offset(ve,(W.V-1)*7),W.y=ve.getUTCFullYear(),W.m=ve.getUTCMonth(),W.d=ve.getUTCDate()+(W.w+6)%7):(ve=om(nl(W.y,0,1)),tt=ve.getDay(),ve=tt>4||tt===0?ud.ceil(ve):ud(ve),ve=rc.offset(ve,(W.V-1)*7),W.y=ve.getFullYear(),W.m=ve.getMonth(),W.d=ve.getDate()+(W.w+6)%7)}else("W"in W||"U"in W)&&("w"in W||(W.w="u"in W?W.u%7:"W"in W?1:0),tt="Z"in W?sm(nl(W.y,0,1)).getUTCDay():om(nl(W.y,0,1)).getDay(),W.m=0,W.d="W"in W?(W.w+6)%7+W.W*7-(tt+5)%7:W.w+W.U*7-(tt+6)%7);return"Z"in W?(W.H+=W.Z/100|0,W.M+=W.Z%100,sm(W)):om(W)}}function _(G,le,ue,W){for(var Ke=0,ve=le.length,tt=ue.length,rt,Bt;Ke=tt)return-1;if(rt=le.charCodeAt(Ke++),rt===37){if(rt=le.charAt(Ke++),Bt=w[rt in DS?le.charAt(Ke++):rt],!Bt||(W=Bt(G,ue,W))<0)return-1}else if(rt!=ue.charCodeAt(W++))return-1}return W}function P(G,le,ue){var W=u.exec(le.slice(ue));return W?(G.p=f.get(W[0].toLowerCase()),ue+W[0].length):-1}function N(G,le,ue){var W=p.exec(le.slice(ue));return W?(G.w=m.get(W[0].toLowerCase()),ue+W[0].length):-1}function $(G,le,ue){var W=c.exec(le.slice(ue));return W?(G.w=h.get(W[0].toLowerCase()),ue+W[0].length):-1}function T(G,le,ue){var W=g.exec(le.slice(ue));return W?(G.m=b.get(W[0].toLowerCase()),ue+W[0].length):-1}function L(G,le,ue){var W=y.exec(le.slice(ue));return W?(G.m=v.get(W[0].toLowerCase()),ue+W[0].length):-1}function R(G,le,ue){return _(G,t,le,ue)}function I(G,le,ue){return _(G,r,le,ue)}function D(G,le,ue){return _(G,n,le,ue)}function F(G){return o[G.getDay()]}function C(G){return a[G.getDay()]}function B(G){return l[G.getMonth()]}function U(G){return s[G.getMonth()]}function V(G){return i[+(G.getHours()>=12)]}function H(G){return 1+~~(G.getMonth()/3)}function X(G){return o[G.getUTCDay()]}function ie(G){return a[G.getUTCDay()]}function be(G){return l[G.getUTCMonth()]}function ze(G){return s[G.getUTCMonth()]}function we(G){return i[+(G.getUTCHours()>=12)]}function gt(G){return 1+~~(G.getUTCMonth()/3)}return{format:function(G){var le=S(G+="",x);return le.toString=function(){return G},le},parse:function(G){var le=j(G+="",!1);return le.toString=function(){return G},le},utcFormat:function(G){var le=S(G+="",O);return le.toString=function(){return G},le},utcParse:function(G){var le=j(G+="",!0);return le.toString=function(){return G},le}}}var DS={"-":"",_:" ",0:"0"},vt=/^\s*\d+/,XG=/^%/,QG=/[\\^$*+?|[\]().{}]/g;function xe(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a[t.toLowerCase(),r]))}function JG(e,t,r){var n=vt.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function ZG(e,t,r){var n=vt.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function eX(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function tX(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function rX(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function LS(e,t,r){var n=vt.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function zS(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function nX(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function iX(e,t,r){var n=vt.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function aX(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function BS(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function oX(e,t,r){var n=vt.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function FS(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function sX(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function lX(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function uX(e,t,r){var n=vt.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function cX(e,t,r){var n=vt.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function fX(e,t,r){var n=XG.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function dX(e,t,r){var n=vt.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function hX(e,t,r){var n=vt.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function US(e,t){return xe(e.getDate(),t,2)}function pX(e,t){return xe(e.getHours(),t,2)}function mX(e,t){return xe(e.getHours()%12||12,t,2)}function yX(e,t){return xe(1+rc.count(Rn(e),e),t,3)}function dE(e,t){return xe(e.getMilliseconds(),t,3)}function vX(e,t){return dE(e,t)+"000"}function gX(e,t){return xe(e.getMonth()+1,t,2)}function bX(e,t){return xe(e.getMinutes(),t,2)}function xX(e,t){return xe(e.getSeconds(),t,2)}function wX(e){var t=e.getDay();return t===0?7:t}function SX(e,t){return xe(Bh.count(Rn(e)-1,e),t,2)}function hE(e){var t=e.getDay();return t>=4||t===0?rs(e):rs.ceil(e)}function OX(e,t){return e=hE(e),xe(rs.count(Rn(e),e)+(Rn(e).getDay()===4),t,2)}function jX(e){return e.getDay()}function _X(e,t){return xe(ud.count(Rn(e)-1,e),t,2)}function PX(e,t){return xe(e.getFullYear()%100,t,2)}function AX(e,t){return e=hE(e),xe(e.getFullYear()%100,t,2)}function kX(e,t){return xe(e.getFullYear()%1e4,t,4)}function EX(e,t){var r=e.getDay();return e=r>=4||r===0?rs(e):rs.ceil(e),xe(e.getFullYear()%1e4,t,4)}function NX(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+xe(t/60|0,"0",2)+xe(t%60,"0",2)}function WS(e,t){return xe(e.getUTCDate(),t,2)}function CX(e,t){return xe(e.getUTCHours(),t,2)}function TX(e,t){return xe(e.getUTCHours()%12||12,t,2)}function $X(e,t){return xe(1+zh.count(Dn(e),e),t,3)}function pE(e,t){return xe(e.getUTCMilliseconds(),t,3)}function MX(e,t){return pE(e,t)+"000"}function IX(e,t){return xe(e.getUTCMonth()+1,t,2)}function RX(e,t){return xe(e.getUTCMinutes(),t,2)}function DX(e,t){return xe(e.getUTCSeconds(),t,2)}function LX(e){var t=e.getUTCDay();return t===0?7:t}function zX(e,t){return xe(Fh.count(Dn(e)-1,e),t,2)}function mE(e){var t=e.getUTCDay();return t>=4||t===0?ns(e):ns.ceil(e)}function BX(e,t){return e=mE(e),xe(ns.count(Dn(e),e)+(Dn(e).getUTCDay()===4),t,2)}function FX(e){return e.getUTCDay()}function UX(e,t){return xe(cd.count(Dn(e)-1,e),t,2)}function WX(e,t){return xe(e.getUTCFullYear()%100,t,2)}function HX(e,t){return e=mE(e),xe(e.getUTCFullYear()%100,t,2)}function KX(e,t){return xe(e.getUTCFullYear()%1e4,t,4)}function qX(e,t){var r=e.getUTCDay();return e=r>=4||r===0?ns(e):ns.ceil(e),xe(e.getUTCFullYear()%1e4,t,4)}function VX(){return"+0000"}function HS(){return"%"}function KS(e){return+e}function qS(e){return Math.floor(+e/1e3)}var Za,yE,vE;GX({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function GX(e){return Za=GG(e),yE=Za.format,Za.parse,vE=Za.utcFormat,Za.utcParse,Za}function XX(e){return new Date(e)}function QX(e){return e instanceof Date?+e:+new Date(+e)}function xb(e,t,r,n,i,a,o,s,l,u){var f=ob(),c=f.invert,h=f.domain,p=u(".%L"),m=u(":%S"),y=u("%I:%M"),v=u("%I %p"),g=u("%a %d"),b=u("%b %d"),x=u("%B"),O=u("%Y");function w(S){return(l(S)t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>zV(e,a/n))},r.copy=function(){return wE(t).domain(e)},Fn.apply(r,arguments)}function Wh(){var e=0,t=.5,r=1,n=1,i,a,o,s,l,u=Rt,f,c=!1,h;function p(y){return isNaN(y=+y)?h:(y=.5+((y=+f(y))-a)*(n*yt}var _E=nQ,iQ=Hh,aQ=_E,oQ=zs;function sQ(e){return e&&e.length?iQ(e,oQ,aQ):void 0}var lQ=sQ;const di=Ae(lQ);function uQ(e,t){return ee.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=ne.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};J.decimalPlaces=J.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*De;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};J.dividedBy=J.div=function(e){return kn(this,new this.constructor(e))};J.dividedToIntegerBy=J.idiv=function(e){var t=this,r=t.constructor;return Ne(kn(t,new r(e),0,1),r.precision)};J.equals=J.eq=function(e){return!this.cmp(e)};J.exponent=function(){return et(this)};J.greaterThan=J.gt=function(e){return this.cmp(e)>0};J.greaterThanOrEqualTo=J.gte=function(e){return this.cmp(e)>=0};J.isInteger=J.isint=function(){return this.e>this.d.length-2};J.isNegative=J.isneg=function(){return this.s<0};J.isPositive=J.ispos=function(){return this.s>0};J.isZero=function(){return this.s===0};J.lessThan=J.lt=function(e){return this.cmp(e)<0};J.lessThanOrEqualTo=J.lte=function(e){return this.cmp(e)<1};J.logarithm=J.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(ar))throw Error(kr+"NaN");if(r.s<1)throw Error(kr+(r.s?"NaN":"-Infinity"));return r.eq(ar)?new n(0):(Fe=!1,t=kn(du(r,a),du(e,a),a),Fe=!0,Ne(t,i))};J.minus=J.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?NE(t,e):kE(t,(e.s=-e.s,e))};J.modulo=J.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(kr+"NaN");return r.s?(Fe=!1,t=kn(r,e,0,1).times(e),Fe=!0,r.minus(t)):Ne(new n(r),i)};J.naturalExponential=J.exp=function(){return EE(this)};J.naturalLogarithm=J.ln=function(){return du(this)};J.negated=J.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};J.plus=J.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?kE(t,e):NE(t,(e.s=-e.s,e))};J.precision=J.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Oa+e);if(t=et(i)+1,n=i.d.length-1,r=n*De+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};J.squareRoot=J.sqrt=function(){var e,t,r,n,i,a,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(kr+"NaN")}for(e=et(s),Fe=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Jr(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Us((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=o=r+3;;)if(a=n,n=a.plus(kn(s,a,o+2)).times(.5),Jr(a.d).slice(0,o)===(t=Jr(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Ne(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return Fe=!0,Ne(n,r)};J.times=J.mul=function(e){var t,r,n,i,a,o,s,l,u,f=this,c=f.constructor,h=f.d,p=(e=new c(e)).d;if(!f.s||!e.s)return new c(0);for(e.s*=f.s,r=f.e+e.e,l=h.length,u=p.length,l=0;){for(t=0,i=l+n;i>n;)s=a[i]+p[n]*h[i-n-1]+t,a[i--]=s%ht|0,t=s/ht|0;a[i]=(a[i]+t)%ht|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Fe?Ne(e,c.precision):e};J.toDecimalPlaces=J.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(an(e,0,Fs),t===void 0?t=n.rounding:an(t,0,8),Ne(r,e+et(r)+1,t))};J.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Da(n,!0):(an(e,0,Fs),t===void 0?t=i.rounding:an(t,0,8),n=Ne(new i(n),e+1,t),r=Da(n,!0,e+1)),r};J.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Da(i):(an(e,0,Fs),t===void 0?t=a.rounding:an(t,0,8),n=Ne(new a(i),e+et(i)+1,t),r=Da(n.abs(),!1,e+et(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};J.toInteger=J.toint=function(){var e=this,t=e.constructor;return Ne(new t(e),et(e)+1,t.rounding)};J.toNumber=function(){return+this};J.toPower=J.pow=function(e){var t,r,n,i,a,o,s=this,l=s.constructor,u=12,f=+(e=new l(e));if(!e.s)return new l(ar);if(s=new l(s),!s.s){if(e.s<1)throw Error(kr+"Infinity");return s}if(s.eq(ar))return s;if(n=l.precision,e.eq(ar))return Ne(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=f<0?-f:f)<=AE){for(i=new l(ar),t=Math.ceil(n/De+4),Fe=!1;r%2&&(i=i.times(s),XS(i.d,t)),r=Us(r/2),r!==0;)s=s.times(s),XS(s.d,t);return Fe=!0,e.s<0?new l(ar).div(i):Ne(i,n)}}else if(a<0)throw Error(kr+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,Fe=!1,i=e.times(du(s,n+u)),Fe=!0,i=EE(i),i.s=a,i};J.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=et(i),n=Da(i,r<=a.toExpNeg||r>=a.toExpPos)):(an(e,1,Fs),t===void 0?t=a.rounding:an(t,0,8),i=Ne(new a(i),e,t),r=et(i),n=Da(i,e<=r||r<=a.toExpNeg,e)),n};J.toSignificantDigits=J.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(an(e,1,Fs),t===void 0?t=n.rounding:an(t,0,8)),Ne(new n(r),e,t)};J.toString=J.valueOf=J.val=J.toJSON=J[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=et(e),r=e.constructor;return Da(e,t<=r.toExpNeg||t>=r.toExpPos)};function kE(e,t){var r,n,i,a,o,s,l,u,f=e.constructor,c=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),Fe?Ne(t,c):t;if(l=e.d,u=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(n=l,a=-a,s=u.length):(n=u,i=o,s=l.length),o=Math.ceil(c/De),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=l.length,a=u.length,s-a<0&&(a=s,n=u,u=l,l=n),r=0;a;)r=(l[--a]=l[a]+u[a]+r)/ht|0,l[a]%=ht;for(r&&(l.unshift(r),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,Fe?Ne(t,c):t}function an(e,t,r){if(e!==~~e||er)throw Error(Oa+e)}function Jr(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;to?1:-1;else for(s=l=0;si[s]?1:-1;break}return l}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]1;)n.shift()}return function(n,i,a,o){var s,l,u,f,c,h,p,m,y,v,g,b,x,O,w,S,j,_,P=n.constructor,N=n.s==i.s?1:-1,$=n.d,T=i.d;if(!n.s)return new P(n);if(!i.s)throw Error(kr+"Division by zero");for(l=n.e-i.e,j=T.length,w=$.length,p=new P(N),m=p.d=[],u=0;T[u]==($[u]||0);)++u;if(T[u]>($[u]||0)&&--l,a==null?b=a=P.precision:o?b=a+(et(n)-et(i))+1:b=a,b<0)return new P(0);if(b=b/De+2|0,u=0,j==1)for(f=0,T=T[0],b++;(u1&&(T=e(T,f),$=e($,f),j=T.length,w=$.length),O=j,y=$.slice(0,j),v=y.length;v=ht/2&&++S;do f=0,s=t(T,y,j,v),s<0?(g=y[0],j!=v&&(g=g*ht+(y[1]||0)),f=g/S|0,f>1?(f>=ht&&(f=ht-1),c=e(T,f),h=c.length,v=y.length,s=t(c,y,h,v),s==1&&(f--,r(c,j16)throw Error(Ob+et(e));if(!e.s)return new f(ar);for(Fe=!1,s=c,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(Ji(2,u))/Math.LN10*2+5|0,s+=n,r=i=a=new f(ar),f.precision=s;;){if(i=Ne(i.times(e),s),r=r.times(++l),o=a.plus(kn(i,r,s)),Jr(o.d).slice(0,s)===Jr(a.d).slice(0,s)){for(;u--;)a=Ne(a.times(a),s);return f.precision=c,t==null?(Fe=!0,Ne(a,c)):a}a=o}}function et(e){for(var t=e.e*De,r=e.d[0];r>=10;r/=10)t++;return t}function lm(e,t,r){if(t>e.LN10.sd())throw Fe=!0,r&&(e.precision=r),Error(kr+"LN10 precision limit exceeded");return Ne(new e(e.LN10),t)}function Qn(e){for(var t="";e--;)t+="0";return t}function du(e,t){var r,n,i,a,o,s,l,u,f,c=1,h=10,p=e,m=p.d,y=p.constructor,v=y.precision;if(p.s<1)throw Error(kr+(p.s?"NaN":"-Infinity"));if(p.eq(ar))return new y(0);if(t==null?(Fe=!1,u=v):u=t,p.eq(10))return t==null&&(Fe=!0),lm(y,u);if(u+=h,y.precision=u,r=Jr(m),n=r.charAt(0),a=et(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=Jr(p.d),n=r.charAt(0),c++;a=et(p),n>1?(p=new y("0."+r),a++):p=new y(n+"."+r.slice(1))}else return l=lm(y,u+2,v).times(a+""),p=du(new y(n+"."+r.slice(1)),u-h).plus(l),y.precision=v,t==null?(Fe=!0,Ne(p,v)):p;for(s=o=p=kn(p.minus(ar),p.plus(ar),u),f=Ne(p.times(p),u),i=3;;){if(o=Ne(o.times(f),u),l=s.plus(kn(o,new y(i),u)),Jr(l.d).slice(0,u)===Jr(s.d).slice(0,u))return s=s.times(2),a!==0&&(s=s.plus(lm(y,u+2,v).times(a+""))),s=kn(s,new y(c),u),y.precision=v,t==null?(Fe=!0,Ne(s,v)):s;s=l,i+=2}}function GS(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Us(r/De),e.d=[],n=(r+1)%De,r<0&&(n+=De),nfd||e.e<-fd))throw Error(Ob+r)}else e.s=0,e.e=0,e.d=[0];return e}function Ne(e,t,r){var n,i,a,o,s,l,u,f,c=e.d;for(o=1,a=c[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=De,i=t,u=c[f=0];else{if(f=Math.ceil((n+1)/De),a=c.length,f>=a)return e;for(u=a=c[f],o=1;a>=10;a/=10)o++;n%=De,i=n-De+o}if(r!==void 0&&(a=Ji(10,o-i-1),s=u/a%10|0,l=t<0||c[f+1]!==void 0||u%a,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?i>0?u/Ji(10,o-i):0:c[f-1])%10&1||r==(e.s<0?8:7))),t<1||!c[0])return l?(a=et(e),c.length=1,t=t-a-1,c[0]=Ji(10,(De-t%De)%De),e.e=Us(-t/De)||0):(c.length=1,c[0]=e.e=e.s=0),e;if(n==0?(c.length=f,a=1,f--):(c.length=f+1,a=Ji(10,De-n),c[f]=i>0?(u/Ji(10,o-i)%Ji(10,i)|0)*a:0),l)for(;;)if(f==0){(c[0]+=a)==ht&&(c[0]=1,++e.e);break}else{if(c[f]+=a,c[f]!=ht)break;c[f--]=0,a=1}for(n=c.length;c[--n]===0;)c.pop();if(Fe&&(e.e>fd||e.e<-fd))throw Error(Ob+et(e));return e}function NE(e,t){var r,n,i,a,o,s,l,u,f,c,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),Fe?Ne(t,p):t;if(l=e.d,c=t.d,n=t.e,u=e.e,l=l.slice(),o=u-n,o){for(f=o<0,f?(r=l,o=-o,s=c.length):(r=c,n=u,s=l.length),i=Math.max(Math.ceil(p/De),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=l.length,s=c.length,f=i0;--i)l[s++]=0;for(i=c.length;i>o;){if(l[--i]0?a=a.charAt(0)+"."+a.slice(1)+Qn(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Qn(-i-1)+a,r&&(n=r-o)>0&&(a+=Qn(n))):i>=o?(a+=Qn(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Qn(n))):((n=i+1)0&&(i+1===o&&(a+="."),a+=Qn(n))),e.s<0?"-"+a:a}function XS(e,t){if(e.length>t)return e.length=t,!0}function CE(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Oa+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return GS(o,a.toString())}else if(typeof a!="string")throw Error(Oa+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,NQ.test(a))GS(o,a);else throw Error(Oa+a)}if(i.prototype=J,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=CE,i.config=i.set=CQ,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Oa+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Oa+r+": "+n);return this}var jb=CE(EQ);ar=new jb(1);const Ee=jb;function TQ(e){return RQ(e)||IQ(e)||MQ(e)||$Q()}function $Q(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MQ(e,t){if(e){if(typeof e=="string")return Ov(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ov(e,t)}}function IQ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function RQ(e){if(Array.isArray(e))return Ov(e)}function Ov(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t?r.apply(void 0,i):e(t-o,QS(function(){for(var s=arguments.length,l=new Array(s),u=0;ue.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){i=!0,a=l}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function YQ(e){if(Array.isArray(e))return e}function RE(e){var t=hu(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function DE(e,t,r){if(e.lte(0))return new Ee(0);var n=Vh.getDigitCount(e.toNumber()),i=new Ee(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new Ee(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=s.mul(i);return t?l:new Ee(Math.ceil(l))}function JQ(e,t,r){var n=1,i=new Ee(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new Ee(10).pow(Vh.getDigitCount(e)-1),i=new Ee(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Ee(Math.floor(e)))}else e===0?i=new Ee(Math.floor((t-1)/2)):r||(i=new Ee(Math.floor(e)));var o=Math.floor((t-1)/2),s=BQ(zQ(function(l){return i.add(new Ee(l-o).mul(n)).toNumber()}),jv);return s(0,t)}function LE(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new Ee(0),tickMin:new Ee(0),tickMax:new Ee(0)};var a=DE(new Ee(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new Ee(0):(o=new Ee(e).add(t).div(2),o=o.sub(new Ee(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new Ee(t).sub(o).div(a).toNumber()),u=s+l+1;return u>r?LE(e,t,r,n,i+1):(u0?l+(r-u):l,s=t>0?s:s+(r-u)),{step:a,tickMin:o.sub(new Ee(s).mul(a)),tickMax:o.add(new Ee(l).mul(a))})}function ZQ(e){var t=hu(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=RE([r,n]),l=hu(s,2),u=l[0],f=l[1];if(u===-1/0||f===1/0){var c=f===1/0?[u].concat(Pv(jv(0,i-1).map(function(){return 1/0}))):[].concat(Pv(jv(0,i-1).map(function(){return-1/0})),[f]);return r>n?_v(c):c}if(u===f)return JQ(u,i,a);var h=LE(u,f,o,a),p=h.step,m=h.tickMin,y=h.tickMax,v=Vh.rangeStep(m,y.add(new Ee(.1).mul(p)),p);return r>n?_v(v):v}function eY(e,t){var r=hu(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=RE([n,i]),s=hu(o,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[n,i];if(l===u)return[l];var f=Math.max(t,2),c=DE(new Ee(u).sub(l).div(f-1),a,0),h=[].concat(Pv(Vh.rangeStep(new Ee(l),new Ee(u).sub(new Ee(.99).mul(c)),c)),[u]);return n>i?_v(h):h}var tY=ME(ZQ),rY=ME(eY),nY="Invariant failed";function La(e,t){throw new Error(nY)}var iY=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function as(e){"@babel/helpers - typeof";return as=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},as(e)}function dd(){return dd=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fY(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function dY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hY(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,u=0;u0?i[u-1].coordinate:i[s-1].coordinate,c=i[u].coordinate,h=u>=s-1?i[0].coordinate:i[u+1].coordinate,p=void 0;if(Mt(c-f)!==Mt(h-c)){var m=[];if(Mt(h-c)===Mt(l[1]-l[0])){p=h;var y=c+l[1]-l[0];m[0]=Math.min(y,(y+f)/2),m[1]=Math.max(y,(y+f)/2)}else{p=f;var v=h+l[1]-l[0];m[0]=Math.min(c,(v+c)/2),m[1]=Math.max(c,(v+c)/2)}var g=[Math.min(c,(p+c)/2),Math.max(c,(p+c)/2)];if(t>g[0]&&t<=g[1]||t>=m[0]&&t<=m[1]){o=i[u].index;break}}else{var b=Math.min(f,h),x=Math.max(f,h);if(t>(b+c)/2&&t<=(x+c)/2){o=i[u].index;break}}}else for(var O=0;O0&&O(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===s-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},_b=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ge(Ge({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,l;switch(i){case"Line":l=o;break;case"Area":case"Radar":l=o&&o!=="none"?o:s;break;default:l=s;break}return l},NY=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},s=Object.keys(a),l=0,u=s.length;l=0});if(g&&g.length){var b=g[0].type.defaultProps,x=b!==void 0?Ge(Ge({},b),g[0].props):g[0].props,O=x.barSize,w=x[v];o[w]||(o[w]=[]);var S=ce(O)?r:O;o[w].push({item:g[0],stackList:g.slice(1),barSize:ce(S)?void 0:It(S,n,0)})}}return o},CY=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,l=o.length;if(l<1)return null;var u=It(r,i,0,!0),f,c=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=i/l,m=o.reduce(function(O,w){return O+w.barSize||0},0);m+=(l-1)*u,m>=i&&(m-=(l-1)*u,u=0),m>=i&&p>0&&(h=!0,p*=.9,m=l*p);var y=(i-m)/2>>0,v={offset:y-u,size:0};f=o.reduce(function(O,w){var S={item:w.item,position:{offset:v.offset+v.size+u,size:h?p:w.barSize}},j=[].concat(ZS(O),[S]);return v=j[j.length-1].position,w.stackList&&w.stackList.length&&w.stackList.forEach(function(_){j.push({item:_,position:v})}),j},c)}else{var g=It(n,i,0,!0);i-2*g-(l-1)*u<=0&&(u=0);var b=(i-2*g-(l-1)*u)/l;b>1&&(b>>=0);var x=s===+s?Math.min(b,s):b;f=o.reduce(function(O,w,S){var j=[].concat(ZS(O),[{item:w.item,position:{offset:g+(b+u)*S+(b-x)/2,size:x}}]);return w.stackList&&w.stackList.length&&w.stackList.forEach(function(_){j.push({item:_,position:j[j.length-1].position})}),j},c)}return f},TY=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),u=UE({children:a,legendWidth:l});if(u){var f=i||{},c=f.width,h=f.height,p=u.align,m=u.verticalAlign,y=u.layout;if((y==="vertical"||y==="horizontal"&&m==="middle")&&p!=="center"&&K(t[p]))return Ge(Ge({},t),{},ko({},p,t[p]+(c||0)));if((y==="horizontal"||y==="vertical"&&p==="center")&&m!=="middle"&&K(t[m]))return Ge(Ge({},t),{},ko({},m,t[m]+(h||0)))}return t},$Y=function(t,r,n){return ce(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},WE=function(t,r,n,i,a){var o=r.props.children,s=_r(o,Gh).filter(function(u){return $Y(i,a,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,f){var c=lt(f,n);if(ce(c))return u;var h=Array.isArray(c)?[Kh(c),di(c)]:[c,c],p=l.reduce(function(m,y){var v=lt(f,y,0),g=h[0]-Math.abs(Array.isArray(v)?v[0]:v),b=h[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(g,m[0]),Math.max(b,m[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},MY=function(t,r,n,i,a){var o=r.map(function(s){return WE(t,s,n,a,i)}).filter(function(s){return!ce(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},HE=function(t,r,n,i,a){var o=r.map(function(l){var u=l.props.dataKey;return n==="number"&&u&&WE(t,l,u,i)||El(t,u,n,a)});if(n==="number")return o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,u){for(var f=0,c=u.length;f=2?Mt(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(c){var h=a?a.indexOf(c):c;return{coordinate:i(h)+u,value:c,offset:u}});return f.filter(function(c){return!Is(c.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(c,h){return{coordinate:i(c)+u,value:c,index:h,offset:u}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(c){return{coordinate:i(c)+u,value:c,offset:u}}):i.domain().map(function(c,h){return{coordinate:i(c)+u,value:a?a[c]:c,index:h,offset:u}})},um=new WeakMap,Ic=function(t,r){if(typeof r!="function")return t;um.has(t)||um.set(t,new WeakMap);var n=um.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},VE=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:su(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:sd(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:kl(),realScaleType:"point"}:a==="category"?{scale:su(),realScaleType:"band"}:{scale:sd(),realScaleType:"linear"};if(Ma(i)){var l="scale".concat(Nh(i));return{scale:(VS[l]||kl)(),realScaleType:VS[l]?l:"point"}}return oe(i)?{scale:i}:{scale:kl(),realScaleType:"point"}},tO=1e-4,GE=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-tO,o=Math.max(i[0],i[1])+tO,s=t(r[0]),l=t(r[n-1]);(so||lo)&&t.domain([r[0],r[n-1]])}},IY=function(t,r){if(!t)return null;for(var n=0,i=t.length;ni)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]=0?(t[s][n][0]=a,t[s][n][1]=a+l,a=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1])}},LY=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n=0?(t[o][n][0]=a,t[o][n][1]=a+s,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},zY={sign:DY,expand:iF,none:Qo,silhouette:aF,wiggle:oF,positive:LY},BY=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=zY[n],o=nF().keys(i).value(function(s,l){return+lt(s,l,0)}).order(ev).offset(a);return o(t)},FY=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,l={},u=s.reduce(function(c,h){var p,m=(p=h.type)!==null&&p!==void 0&&p.defaultProps?Ge(Ge({},h.type.defaultProps),h.props):h.props,y=m.stackId,v=m.hide;if(v)return c;var g=m[n],b=c[g]||{hasStack:!1,stackGroups:{}};if(ct(y)){var x=b.stackGroups[y]||{numericAxisId:n,cateAxisId:i,items:[]};x.items.push(h),b.hasStack=!0,b.stackGroups[y]=x}else b.stackGroups[Rs("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return Ge(Ge({},c),{},ko({},g,b))},l),f={};return Object.keys(u).reduce(function(c,h){var p=u[h];if(p.hasStack){var m={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(y,v){var g=p.stackGroups[v];return Ge(Ge({},y),{},ko({},v,{numericAxisId:n,cateAxisId:i,items:g.items,stackedData:BY(t,g.items,a)}))},m)}return Ge(Ge({},c),{},ko({},h,p))},f)},XE=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var f=tY(u,a,s);return t.domain([Kh(f),di(f)]),{niceTicks:f}}if(a&&i==="number"){var c=t.domain(),h=rY(c,a,s);return{niceTicks:h}}return null};function rO(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ce(i[t.dataKey])){var s=zf(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var l=lt(i,ce(o)?t.dataKey:o);return ce(l)?null:t.scale(l)}var nO=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var l=lt(o,r.dataKey,r.domain[s]);return ce(l)?null:r.scale(l)-a/2+i},UY=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},WY=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ge(Ge({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(ct(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},HY=function(t){return t.reduce(function(r,n){return[Kh(n.concat([r[0]]).filter(K)),di(n.concat([r[1]]).filter(K))]},[1/0,-1/0])},QE=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,l=s.reduce(function(u,f){var c=HY(f.slice(r,n+1));return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},iO=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,aO=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Nv=function(t,r,n){if(oe(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(K(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(iO.test(t[0])){var a=+iO.exec(t[0])[1];i[0]=r[0]-a}else oe(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(K(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(aO.test(t[1])){var o=+aO.exec(t[1])[1];i[1]=r[1]+o}else oe(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},pd=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=Z0(r,function(c){return c.coordinate}),o=1/0,s=1,l=a.length;se.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},ZY=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.startAngle,u=t.endAngle,f=It(t.cx,o,o/2),c=It(t.cy,s,s/2),h=ZE(o,s,n),p=It(t.innerRadius,h,0),m=It(t.outerRadius,h,h*.8),y=Object.keys(r);return y.reduce(function(v,g){var b=r[g],x=b.domain,O=b.reversed,w;if(ce(b.range))i==="angleAxis"?w=[l,u]:i==="radiusAxis"&&(w=[p,m]),O&&(w=[w[1],w[0]]);else{w=b.range;var S=w,j=VY(S,2);l=j[0],u=j[1]}var _=VE(b,a),P=_.realScaleType,N=_.scale;N.domain(x).range(w),GE(N);var $=XE(N,mn(mn({},b),{},{realScaleType:P})),T=mn(mn(mn({},b),$),{},{range:w,radius:m,realScaleType:P,scale:N,cx:f,cy:c,innerRadius:p,outerRadius:m,startAngle:l,endAngle:u});return mn(mn({},v),{},JE({},g,T))},{})},eJ=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},tJ=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=eJ({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var l=(n-a)/s,u=Math.acos(l);return i>o&&(u=2*Math.PI-u),{radius:s,angle:JY(u),angleInRadian:u}},rJ=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},nJ=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},uO=function(t,r){var n=t.x,i=t.y,a=tJ({x:n,y:i},r),o=a.radius,s=a.angle,l=r.innerRadius,u=r.outerRadius;if(ou)return!1;if(o===0)return!0;var f=rJ(r),c=f.startAngle,h=f.endAngle,p=s,m;if(c<=h){for(;p>h;)p-=360;for(;p=c&&p<=h}else{for(;p>c;)p-=360;for(;p=h&&p<=c}return m?mn(mn({},r),{},{radius:o,angle:nJ(p,r)}):null},eN=function(t){return!A.isValidElement(t)&&!oe(t)&&typeof t!="boolean"?t.className:""};function vu(e){"@babel/helpers - typeof";return vu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vu(e)}var iJ=["offset"];function aJ(e){return uJ(e)||lJ(e)||sJ(e)||oJ()}function oJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sJ(e,t){if(e){if(typeof e=="string")return Cv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cv(e,t)}}function lJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uJ(e){if(Array.isArray(e))return Cv(e)}function Cv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fJ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function cO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function at(e){for(var t=1;t=0?1:-1,x,O;i==="insideStart"?(x=p+b*o,O=y):i==="insideEnd"?(x=m-b*o,O=!y):i==="end"&&(x=m+b*o,O=y),O=g<=0?O:!O;var w=Me(u,f,v,x),S=Me(u,f,v,x+(O?1:-1)*359),j="M".concat(w.x,",").concat(w.y,` - A`).concat(v,",").concat(v,",0,1,").concat(O?0:1,`, - `).concat(S.x,",").concat(S.y),_=ce(t.id)?Rs("recharts-radial-line-"):t.id;return k.createElement("text",gu({},n,{dominantBaseline:"central",className:fe("recharts-radial-bar-label",s)}),k.createElement("defs",null,k.createElement("path",{id:_,d:j})),k.createElement("textPath",{xlinkHref:"#".concat(_)},r))},gJ=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,l=a.innerRadius,u=a.outerRadius,f=a.startAngle,c=a.endAngle,h=(f+c)/2;if(i==="outside"){var p=Me(o,s,u+n,h),m=p.x,y=p.y;return{x:m,y,textAnchor:m>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var v=(l+u)/2,g=Me(o,s,v,h),b=g.x,x=g.y;return{x:b,y:x,textAnchor:"middle",verticalAnchor:"middle"}},bJ=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,l=o.y,u=o.width,f=o.height,c=f>=0?1:-1,h=c*i,p=c>0?"end":"start",m=c>0?"start":"end",y=u>=0?1:-1,v=y*i,g=y>0?"end":"start",b=y>0?"start":"end";if(a==="top"){var x={x:s+u/2,y:l-c*i,textAnchor:"middle",verticalAnchor:p};return at(at({},x),n?{height:Math.max(l-n.y,0),width:u}:{})}if(a==="bottom"){var O={x:s+u/2,y:l+f+h,textAnchor:"middle",verticalAnchor:m};return at(at({},O),n?{height:Math.max(n.y+n.height-(l+f),0),width:u}:{})}if(a==="left"){var w={x:s-v,y:l+f/2,textAnchor:g,verticalAnchor:"middle"};return at(at({},w),n?{width:Math.max(w.x-n.x,0),height:f}:{})}if(a==="right"){var S={x:s+u+v,y:l+f/2,textAnchor:b,verticalAnchor:"middle"};return at(at({},S),n?{width:Math.max(n.x+n.width-S.x,0),height:f}:{})}var j=n?{width:u,height:f}:{};return a==="insideLeft"?at({x:s+v,y:l+f/2,textAnchor:b,verticalAnchor:"middle"},j):a==="insideRight"?at({x:s+u-v,y:l+f/2,textAnchor:g,verticalAnchor:"middle"},j):a==="insideTop"?at({x:s+u/2,y:l+h,textAnchor:"middle",verticalAnchor:m},j):a==="insideBottom"?at({x:s+u/2,y:l+f-h,textAnchor:"middle",verticalAnchor:p},j):a==="insideTopLeft"?at({x:s+v,y:l+h,textAnchor:b,verticalAnchor:m},j):a==="insideTopRight"?at({x:s+u-v,y:l+h,textAnchor:g,verticalAnchor:m},j):a==="insideBottomLeft"?at({x:s+v,y:l+f-h,textAnchor:b,verticalAnchor:p},j):a==="insideBottomRight"?at({x:s+u-v,y:l+f-h,textAnchor:g,verticalAnchor:p},j):Cs(a)&&(K(a.x)||aa(a.x))&&(K(a.y)||aa(a.y))?at({x:s+It(a.x,u),y:l+It(a.y,f),textAnchor:"end",verticalAnchor:"end"},j):at({x:s+u/2,y:l+f/2,textAnchor:"middle",verticalAnchor:"middle"},j)},xJ=function(t){return"cx"in t&&K(t.cx)};function mt(e){var t=e.offset,r=t===void 0?5:t,n=cJ(e,iJ),i=at({offset:r},n),a=i.viewBox,o=i.position,s=i.value,l=i.children,u=i.content,f=i.className,c=f===void 0?"":f,h=i.textBreakAll;if(!a||ce(s)&&ce(l)&&!A.isValidElement(u)&&!oe(u))return null;if(A.isValidElement(u))return A.cloneElement(u,i);var p;if(oe(u)){if(p=A.createElement(u,i),A.isValidElement(p))return p}else p=mJ(i);var m=xJ(a),y=ne(i,!0);if(m&&(o==="insideStart"||o==="insideEnd"||o==="end"))return vJ(i,p,y);var v=m?gJ(i):bJ(i);return k.createElement(Ra,gu({className:fe("recharts-label",c)},y,v,{breakAll:h}),p)}mt.displayName="Label";var tN=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,f=t.outerRadius,c=t.x,h=t.y,p=t.top,m=t.left,y=t.width,v=t.height,g=t.clockWise,b=t.labelViewBox;if(b)return b;if(K(y)&&K(v)){if(K(c)&&K(h))return{x:c,y:h,width:y,height:v};if(K(p)&&K(m))return{x:p,y:m,width:y,height:v}}return K(c)&&K(h)?{x:c,y:h,width:0,height:0}:K(r)&&K(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:f||l||s||0,clockWise:g}:t.viewBox?t.viewBox:{}},wJ=function(t,r){return t?t===!0?k.createElement(mt,{key:"label-implicit",viewBox:r}):ct(t)?k.createElement(mt,{key:"label-implicit",viewBox:r,value:t}):A.isValidElement(t)?t.type===mt?A.cloneElement(t,{key:"label-implicit",viewBox:r}):k.createElement(mt,{key:"label-implicit",content:t,viewBox:r}):oe(t)?k.createElement(mt,{key:"label-implicit",content:t,viewBox:r}):Cs(t)?k.createElement(mt,gu({viewBox:r},t,{key:"label-implicit"})):null:null},SJ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=tN(t),o=_r(i,mt).map(function(l,u){return A.cloneElement(l,{viewBox:r||a,key:"label-".concat(u)})});if(!n)return o;var s=wJ(t.label,r||a);return[s].concat(aJ(o))};mt.parseViewBox=tN;mt.renderCallByParent=SJ;function OJ(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var jJ=OJ;const _J=Ae(jJ);function bu(e){"@babel/helpers - typeof";return bu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bu(e)}var PJ=["valueAccessor"],AJ=["data","dataKey","clockWise","id","textBreakAll"];function kJ(e){return TJ(e)||CJ(e)||NJ(e)||EJ()}function EJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NJ(e,t){if(e){if(typeof e=="string")return Tv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tv(e,t)}}function CJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function TJ(e){if(Array.isArray(e))return Tv(e)}function Tv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function RJ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var DJ=function(t){return Array.isArray(t.value)?_J(t.value):t.value};function En(e){var t=e.valueAccessor,r=t===void 0?DJ:t,n=hO(e,PJ),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,u=hO(n,AJ);return!i||!i.length?null:k.createElement(ye,{className:"recharts-label-list"},i.map(function(f,c){var h=ce(a)?r(f,c):lt(f&&f.payload,a),p=ce(s)?{}:{id:"".concat(s,"-").concat(c)};return k.createElement(mt,yd({},ne(f,!0),u,p,{parentViewBox:f.parentViewBox,value:h,textBreakAll:l,viewBox:mt.parseViewBox(ce(o)?f:dO(dO({},f),{},{clockWise:o})),key:"label-".concat(c),index:c}))}))}En.displayName="LabelList";function LJ(e,t){return e?e===!0?k.createElement(En,{key:"labelList-implicit",data:t}):k.isValidElement(e)||oe(e)?k.createElement(En,{key:"labelList-implicit",data:t,content:e}):Cs(e)?k.createElement(En,yd({data:t},e,{key:"labelList-implicit"})):null:null}function zJ(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=_r(n,En).map(function(o,s){return A.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=LJ(e.label,t);return[a].concat(kJ(i))}En.renderCallByParent=zJ;function xu(e){"@babel/helpers - typeof";return xu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xu(e)}function $v(){return $v=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(o>u),`, - `).concat(c.x,",").concat(c.y,` - `);if(i>0){var p=Me(r,n,i,o),m=Me(r,n,i,u);h+="L ".concat(m.x,",").concat(m.y,` - A `).concat(i,",").concat(i,`,0, - `).concat(+(Math.abs(l)>180),",").concat(+(o<=u),`, - `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},HJ=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,f=t.endAngle,c=Mt(f-u),h=Rc({cx:r,cy:n,radius:a,angle:u,sign:c,cornerRadius:o,cornerIsExternal:l}),p=h.circleTangency,m=h.lineTangency,y=h.theta,v=Rc({cx:r,cy:n,radius:a,angle:f,sign:-c,cornerRadius:o,cornerIsExternal:l}),g=v.circleTangency,b=v.lineTangency,x=v.theta,O=l?Math.abs(u-f):Math.abs(u-f)-y-x;if(O<0)return s?"M ".concat(m.x,",").concat(m.y,` - a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 - a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 - `):rN({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:u,endAngle:f});var w="M ".concat(m.x,",").concat(m.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(p.x,",").concat(p.y,` - A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(c<0),",").concat(g.x,",").concat(g.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(b.x,",").concat(b.y,` - `);if(i>0){var S=Rc({cx:r,cy:n,radius:i,angle:u,sign:c,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),j=S.circleTangency,_=S.lineTangency,P=S.theta,N=Rc({cx:r,cy:n,radius:i,angle:f,sign:-c,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),$=N.circleTangency,T=N.lineTangency,L=N.theta,R=l?Math.abs(u-f):Math.abs(u-f)-P-L;if(R<0&&o===0)return"".concat(w,"L").concat(r,",").concat(n,"Z");w+="L".concat(T.x,",").concat(T.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat($.x,",").concat($.y,` - A`).concat(i,",").concat(i,",0,").concat(+(R>180),",").concat(+(c>0),",").concat(j.x,",").concat(j.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(_.x,",").concat(_.y,"Z")}else w+="L".concat(r,",").concat(n,"Z");return w},KJ={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},nN=function(t){var r=mO(mO({},KJ),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,u=r.cornerIsExternal,f=r.startAngle,c=r.endAngle,h=r.className;if(o0&&Math.abs(f-c)<360?v=HJ({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(y,m/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:f,endAngle:c}):v=rN({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:c}),k.createElement("path",$v({},ne(r,!0),{className:p,d:v,role:"img"}))};function wu(e){"@babel/helpers - typeof";return wu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wu(e)}function Mv(){return Mv=Object.assign?Object.assign.bind():function(e){for(var t=1;tiZ.call(e,t));function Ga(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const sZ="__v",lZ="__o",uZ="_owner",{getOwnPropertyDescriptor:xO,keys:wO}=Object;function cZ(e,t){return e.byteLength===t.byteLength&&vd(new Uint8Array(e),new Uint8Array(t))}function fZ(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function dZ(e,t){return e.byteLength===t.byteLength&&vd(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function hZ(e,t){return Ga(e.getTime(),t.getTime())}function pZ(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function mZ(e,t){return e===t}function SO(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,s,l=0;for(;(o=a.next())&&!o.done;){const u=t.entries();let f=!1,c=0;for(;(s=u.next())&&!s.done;){if(i[c]){c++;continue}const h=o.value,p=s.value;if(r.equals(h[0],p[0],l,c,e,t,r)&&r.equals(h[1],p[1],h[0],p[0],e,t,r)){f=i[c]=!0;break}c++}if(!f)return!1;l++}return!0}const yZ=Ga;function vZ(e,t,r){const n=wO(e);let i=n.length;if(wO(t).length!==i)return!1;for(;i-- >0;)if(!sN(e,t,r,n[i]))return!1;return!0}function ll(e,t,r){const n=bO(e);let i=n.length;if(bO(t).length!==i)return!1;let a,o,s;for(;i-- >0;)if(a=n[i],!sN(e,t,r,a)||(o=xO(e,a),s=xO(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function gZ(e,t){return Ga(e.valueOf(),t.valueOf())}function bZ(e,t){return e.source===t.source&&e.flags===t.flags}function OO(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,s;for(;(o=a.next())&&!o.done;){const l=t.values();let u=!1,f=0;for(;(s=l.next())&&!s.done;){if(!i[f]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){u=i[f]=!0;break}f++}if(!u)return!1}return!0}function vd(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function xZ(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function sN(e,t,r,n){return(n===uZ||n===lZ||n===sZ)&&(e.$$typeof||t.$$typeof)?!0:oZ(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const wZ="[object ArrayBuffer]",SZ="[object Arguments]",OZ="[object Boolean]",jZ="[object DataView]",_Z="[object Date]",PZ="[object Error]",AZ="[object Map]",kZ="[object Number]",EZ="[object Object]",NZ="[object RegExp]",CZ="[object Set]",TZ="[object String]",$Z={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},MZ="[object URL]",IZ=Object.prototype.toString;function RZ({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:l,arePrimitiveWrappersEqual:u,areRegExpsEqual:f,areSetsEqual:c,areTypedArraysEqual:h,areUrlsEqual:p,unknownTagComparators:m}){return function(v,g,b){if(v===g)return!0;if(v==null||g==null)return!1;const x=typeof v;if(x!==typeof g)return!1;if(x!=="object")return x==="number"?s(v,g,b):x==="function"?a(v,g,b):!1;const O=v.constructor;if(O!==g.constructor)return!1;if(O===Object)return l(v,g,b);if(Array.isArray(v))return t(v,g,b);if(O===Date)return n(v,g,b);if(O===RegExp)return f(v,g,b);if(O===Map)return o(v,g,b);if(O===Set)return c(v,g,b);const w=IZ.call(v);if(w===_Z)return n(v,g,b);if(w===NZ)return f(v,g,b);if(w===AZ)return o(v,g,b);if(w===CZ)return c(v,g,b);if(w===EZ)return typeof v.then!="function"&&typeof g.then!="function"&&l(v,g,b);if(w===MZ)return p(v,g,b);if(w===PZ)return i(v,g,b);if(w===SZ)return l(v,g,b);if($Z[w])return h(v,g,b);if(w===wZ)return e(v,g,b);if(w===jZ)return r(v,g,b);if(w===OZ||w===kZ||w===TZ)return u(v,g,b);if(m){let S=m[w];if(!S){const j=aZ(v);j&&(S=m[j])}if(S)return S(v,g,b)}return!1}}function DZ({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:cZ,areArraysEqual:r?ll:fZ,areDataViewsEqual:dZ,areDatesEqual:hZ,areErrorsEqual:pZ,areFunctionsEqual:mZ,areMapsEqual:r?cm(SO,ll):SO,areNumbersEqual:yZ,areObjectsEqual:r?ll:vZ,arePrimitiveWrappersEqual:gZ,areRegExpsEqual:bZ,areSetsEqual:r?cm(OO,ll):OO,areTypedArraysEqual:r?cm(vd,ll):vd,areUrlsEqual:xZ,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=Lc(n.areArraysEqual),a=Lc(n.areMapsEqual),o=Lc(n.areObjectsEqual),s=Lc(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:s})}return n}function LZ(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function zZ({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(s,l){const{cache:u=e?new WeakMap:void 0,meta:f}=r();return t(s,l,{cache:u,equals:n,meta:f,strict:i})};if(e)return function(s,l){return t(s,l,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(s,l){return t(s,l,a)}}const BZ=Bi();Bi({strict:!0});Bi({circular:!0});Bi({circular:!0,strict:!0});Bi({createInternalComparator:()=>Ga});Bi({strict:!0,createInternalComparator:()=>Ga});Bi({circular:!0,createInternalComparator:()=>Ga});Bi({circular:!0,createInternalComparator:()=>Ga,strict:!0});function Bi(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=DZ(e),o=RZ(a),s=r?r(o):LZ(o);return zZ({circular:t,comparator:o,createState:n,equals:s,strict:i})}function FZ(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function jO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):FZ(i)};requestAnimationFrame(n)}function Iv(e){"@babel/helpers - typeof";return Iv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Iv(e)}function UZ(e){return qZ(e)||KZ(e)||HZ(e)||WZ()}function WZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HZ(e,t){if(e){if(typeof e=="string")return _O(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _O(e,t)}}function _O(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?1:g<0?0:g},y=function(g){for(var b=g>1?1:g,x=b,O=0;O<8;++O){var w=c(x)-b,S=p(x);if(Math.abs(w-b)0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,l=function(f,c,h){var p=-(f-c)*n,m=h*a,y=h+(p-m)*s/1e3,v=h*s/1e3+f;return Math.abs(v-c)e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Oee(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function fm(e){return Aee(e)||Pee(e)||_ee(e)||jee()}function jee(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _ee(e,t){if(e){if(typeof e=="string")return Bv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bv(e,t)}}function Pee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Aee(e){if(Array.isArray(e))return Bv(e)}function Bv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xd(e){return xd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xd(e)}var on=function(e){Tee(r,e);var t=$ee(r);function r(n,i){var a;kee(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,l=o.attributeName,u=o.from,f=o.to,c=o.steps,h=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Wv(a)),a.changeStyle=a.changeStyle.bind(Wv(a)),!s||p<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:f}),Uv(a);if(c&&c.length)a.state={style:c[0].style};else if(u){if(typeof h=="function")return a.state={style:u},Uv(a);a.state={style:l?ml({},l,u):u}}else a.state={style:{}};return a}return Nee(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,l=a.attributeName,u=a.shouldReAnimate,f=a.to,c=a.from,h=this.state.style;if(s){if(!o){var p={style:l?ml({},l,f):f};this.state&&h&&(l&&h[l]!==f||!l&&h!==f)&&this.setState(p);return}if(!(BZ(i.to,f)&&i.canBegin&&i.isActive)){var m=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var y=m||u?c:i.to;if(this.state&&h){var v={style:l?ml({},l,y):y};(l&&h[l]!==y||!l&&h!==y)&&this.setState(v)}this.runAnimation(Tr(Tr({},this.props),{},{from:y,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,l=i.duration,u=i.easing,f=i.begin,c=i.onAnimationEnd,h=i.onAnimationStart,p=xee(o,s,uee(u),l,this.changeStyle),m=function(){a.stopJSAnimation=p()};this.manager.start([h,f,m,l,c])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,l=i.onAnimationStart,u=o[0],f=u.style,c=u.duration,h=c===void 0?0:c,p=function(y,v,g){if(g===0)return y;var b=v.duration,x=v.easing,O=x===void 0?"ease":x,w=v.style,S=v.properties,j=v.onAnimationEnd,_=g>0?o[g-1]:v,P=S||Object.keys(w);if(typeof O=="function"||O==="spring")return[].concat(fm(y),[a.runJSAnimation.bind(a,{from:_.style,to:w,duration:b,easing:O}),b]);var N=kO(P,b,O),$=Tr(Tr(Tr({},_.style),w),{},{transition:N});return[].concat(fm(y),[$,b,j]).filter(YZ)};return this.manager.start([l].concat(fm(o.reduce(p,[f,Math.max(h,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=VZ());var a=i.begin,o=i.duration,s=i.attributeName,l=i.to,u=i.easing,f=i.onAnimationStart,c=i.onAnimationEnd,h=i.steps,p=i.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var y=s?ml({},s,l):l,v=kO(Object.keys(y),o,u);m.start([f,a,Tr(Tr({},y),{},{transition:v}),o,c])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=See(i,wee),u=A.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!s||u===0||o<=0)return a;var c=function(p){var m=p.props,y=m.style,v=y===void 0?{}:y,g=m.className,b=A.cloneElement(p,Tr(Tr({},l),{},{style:Tr(Tr({},v),f),className:g}));return b};return u===1?c(A.Children.only(a)):k.createElement("div",null,A.Children.map(a,function(h){return c(h)}))}}]),r}(A.PureComponent);on.displayName="Animate";on.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};on.propTypes={from:Se.oneOfType([Se.object,Se.string]),to:Se.oneOfType([Se.object,Se.string]),attributeName:Se.string,duration:Se.number,begin:Se.number,easing:Se.oneOfType([Se.string,Se.func]),steps:Se.arrayOf(Se.shape({duration:Se.number.isRequired,style:Se.object.isRequired,easing:Se.oneOfType([Se.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Se.func]),properties:Se.arrayOf("string"),onAnimationEnd:Se.func})),children:Se.oneOfType([Se.node,Se.func]),isActive:Se.bool,canBegin:Se.bool,onAnimationEnd:Se.func,shouldReAnimate:Se.bool,onAnimationStart:Se.func,onAnimationReStart:Se.func};function ju(e){"@babel/helpers - typeof";return ju=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ju(e)}function wd(){return wd=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0?1:-1,l=n>=0?1:-1,u=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var c=[0,0,0,0],h=0,p=4;ho?o:a[h];f="M".concat(t,",").concat(r+s*c[0]),c[0]>0&&(f+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(u,",").concat(t+l*c[0],",").concat(r)),f+="L ".concat(t+n-l*c[1],",").concat(r),c[1]>0&&(f+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(u,`, - `).concat(t+n,",").concat(r+s*c[1])),f+="L ".concat(t+n,",").concat(r+i-s*c[2]),c[2]>0&&(f+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(u,`, - `).concat(t+n-l*c[2],",").concat(r+i)),f+="L ".concat(t+l*c[3],",").concat(r+i),c[3]>0&&(f+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(u,`, - `).concat(t,",").concat(r+i-s*c[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var m=Math.min(o,a);f="M ".concat(t,",").concat(r+s*m,` - A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+l*m,",").concat(r,` - L `).concat(t+n-l*m,",").concat(r,` - A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+n,",").concat(r+s*m,` - L `).concat(t+n,",").concat(r+i-s*m,` - A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+n-l*m,",").concat(r+i,` - L `).concat(t+l*m,",").concat(r+i,` - A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t,",").concat(r+i-s*m," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},Wee=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(a,a+s),f=Math.max(a,a+s),c=Math.min(o,o+l),h=Math.max(o,o+l);return n>=u&&n<=f&&i>=c&&i<=h}return!1},Hee={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Pb=function(t){var r=RO(RO({},Hee),t),n=A.useRef(),i=A.useState(-1),a=Iee(i,2),o=a[0],s=a[1];A.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&s(O)}catch{}},[]);var l=r.x,u=r.y,f=r.width,c=r.height,h=r.radius,p=r.className,m=r.animationEasing,y=r.animationDuration,v=r.animationBegin,g=r.isAnimationActive,b=r.isUpdateAnimationActive;if(l!==+l||u!==+u||f!==+f||c!==+c||f===0||c===0)return null;var x=fe("recharts-rectangle",p);return b?k.createElement(on,{canBegin:o>0,from:{width:f,height:c,x:l,y:u},to:{width:f,height:c,x:l,y:u},duration:y,animationEasing:m,isActive:b},function(O){var w=O.width,S=O.height,j=O.x,_=O.y;return k.createElement(on,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:y,isActive:g,easing:m},k.createElement("path",wd({},ne(r,!0),{className:x,d:DO(j,_,w,S,h),ref:n})))}):k.createElement("path",wd({},ne(r,!0),{className:x,d:DO(l,u,f,c,h)}))},Kee=["points","className","baseLinePoints","connectNulls"];function mo(){return mo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Vee(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function LO(e){return Yee(e)||Qee(e)||Xee(e)||Gee()}function Gee(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xee(e,t){if(e){if(typeof e=="string")return Hv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hv(e,t)}}function Qee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Yee(e){if(Array.isArray(e))return Hv(e)}function Hv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){zO(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),zO(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Cl=function(t,r){var n=Jee(t);r&&(n=[n.reduce(function(a,o){return[].concat(LO(a),LO(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,s,l){return"".concat(o).concat(l===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},Zee=function(t,r,n){var i=Cl(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Cl(r.reverse(),n).slice(1))},ete=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=qee(t,Kee);if(!r||!r.length)return null;var s=fe("recharts-polygon",n);if(i&&i.length){var l=o.stroke&&o.stroke!=="none",u=Zee(r,i,a);return k.createElement("g",{className:s},k.createElement("path",mo({},ne(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),l?k.createElement("path",mo({},ne(o,!0),{fill:"none",d:Cl(r,a)})):null,l?k.createElement("path",mo({},ne(o,!0),{fill:"none",d:Cl(i,a)})):null)}var f=Cl(r,a);return k.createElement("path",mo({},ne(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:s,d:f}))};function Kv(){return Kv=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ste(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var lte=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},ute=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,l=t.left,u=l===void 0?0:l,f=t.width,c=f===void 0?0:f,h=t.height,p=h===void 0?0:h,m=t.className,y=ote(t,tte),v=rte({x:n,y:a,top:s,left:u,width:c,height:p},y);return!K(n)||!K(a)||!K(c)||!K(p)||!K(s)||!K(u)?null:k.createElement("path",qv({},ne(v,!0),{className:fe("recharts-cross",m),d:lte(n,a,c,p,s,u)}))},cte=Hh,fte=_E,dte=cn;function hte(e,t){return e&&e.length?cte(e,dte(t),fte):void 0}var pte=hte;const mte=Ae(pte);var yte=Hh,vte=cn,gte=PE;function bte(e,t){return e&&e.length?yte(e,vte(t),gte):void 0}var xte=bte;const wte=Ae(xte);var Ste=["cx","cy","angle","ticks","axisLine"],Ote=["ticks","tick","angle","tickFormatter","stroke"];function ss(e){"@babel/helpers - typeof";return ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ss(e)}function Tl(){return Tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jte(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function _te(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WO(e,t){for(var r=0;rqO?o=i==="outer"?"start":"end":a<-qO?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,s=n.axisLine,l=n.axisLineType,u=Vi(Vi({},ne(this.props,!1)),{},{fill:"none"},ne(s,!1));if(l==="circle")return k.createElement(Xh,Zi({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:a,r:o}));var f=this.props.ticks,c=f.map(function(h){return Me(i,a,o,h.coordinate)});return k.createElement(ete,Zi({className:"recharts-polar-angle-axis-line"},u,{points:c}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.tickLine,l=i.tickFormatter,u=i.stroke,f=ne(this.props,!1),c=ne(o,!1),h=Vi(Vi({},f),{},{fill:"none"},ne(s,!1)),p=a.map(function(m,y){var v=n.getTickLineCoord(m),g=n.getTickTextAnchor(m),b=Vi(Vi(Vi({textAnchor:g},f),{},{stroke:"none",fill:u},c),{},{index:y,payload:m,x:v.x2,y:v.y2});return k.createElement(ye,Zi({className:fe("recharts-polar-angle-axis-tick",eN(o)),key:"tick-".concat(m.coordinate)},Ia(n.props,m,y)),s&&k.createElement("line",Zi({className:"recharts-polar-angle-axis-tick-line"},h,v)),o&&t.renderTickItem(o,b,l?l(m.value,y):m.value))});return k.createElement(ye,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:k.createElement(ye,{className:fe("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return k.isValidElement(n)?o=k.cloneElement(n,i):oe(n)?o=n(i):o=k.createElement(Ra,Zi({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(A.PureComponent);Jh(Zh,"displayName","PolarAngleAxis");Jh(Zh,"axisType","angleAxis");Jh(Zh,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Bte=S2,Fte=Bte(Object.getPrototypeOf,Object),Ute=Fte,Wte=zn,Hte=Ute,Kte=Bn,qte="[object Object]",Vte=Function.prototype,Gte=Object.prototype,gN=Vte.toString,Xte=Gte.hasOwnProperty,Qte=gN.call(Object);function Yte(e){if(!Kte(e)||Wte(e)!=qte)return!1;var t=Hte(e);if(t===null)return!0;var r=Xte.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&gN.call(r)==Qte}var Jte=Yte;const Zte=Ae(Jte);var ere=zn,tre=Bn,rre="[object Boolean]";function nre(e){return e===!0||e===!1||tre(e)&&ere(e)==rre}var ire=nre;const are=Ae(ire);function Pu(e){"@babel/helpers - typeof";return Pu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pu(e)}function jd(){return jd=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,from:{upperWidth:0,lowerWidth:0,height:h,x:l,y:u},to:{upperWidth:f,lowerWidth:c,height:h,x:l,y:u},duration:y,animationEasing:m,isActive:g},function(x){var O=x.upperWidth,w=x.lowerWidth,S=x.height,j=x.x,_=x.y;return k.createElement(on,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:y,easing:m},k.createElement("path",jd({},ne(r,!0),{className:b,d:QO(j,_,O,w,S),ref:n})))}):k.createElement("g",null,k.createElement("path",jd({},ne(r,!0),{className:b,d:QO(l,u,f,c,h)})))},yre=["option","shapeType","propTransformer","activeClassName","isActive"];function Au(e){"@babel/helpers - typeof";return Au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Au(e)}function vre(e,t){if(e==null)return{};var r=gre(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gre(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function YO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _d(e){for(var t=1;t0?lr(x,"paddingAngle",0):0;if(w){var j=Kt(w.endAngle-w.startAngle,x.endAngle-x.startAngle),_=Ce(Ce({},x),{},{startAngle:b+S,endAngle:b+j(y)+S});v.push(_),b=_.endAngle}else{var P=x.endAngle,N=x.startAngle,$=Kt(0,P-N),T=$(y),L=Ce(Ce({},x),{},{startAngle:b+S,endAngle:b+T+S});v.push(L),b=L.endAngle}}),k.createElement(ye,null,n.renderSectorsStatically(v))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var s=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!is(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,s=i.className,l=i.label,u=i.cx,f=i.cy,c=i.innerRadius,h=i.outerRadius,p=i.isAnimationActive,m=this.state.isAnimationFinished;if(a||!o||!o.length||!K(u)||!K(f)||!K(c)||!K(h))return null;var y=fe("recharts-pie",s);return k.createElement(ye,{tabIndex:this.props.rootTabIndex,className:y,ref:function(g){n.pieRef=g}},this.renderSectors(),l&&this.renderLabels(o),mt.renderCallByParent(this.props,null,!1),(!p||m)&&En.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n=360?b:b-1)*l,O=v-b*p-x,w=i.reduce(function(_,P){var N=lt(P,g,0);return _+(K(N)?N:0)},0),S;if(w>0){var j;S=i.map(function(_,P){var N=lt(_,g,0),$=lt(_,f,P),T=(K(N)?N:0)/w,L;P?L=j.endAngle+Mt(y)*l*(N!==0?1:0):L=o;var R=L+Mt(y)*((N!==0?p:0)+T*O),I=(L+R)/2,D=(m.innerRadius+m.outerRadius)/2,F=[{name:$,value:N,payload:_,dataKey:g,type:h}],C=Me(m.cx,m.cy,D,I);return j=Ce(Ce(Ce({percent:T,cornerRadius:a,name:$,tooltipPayload:F,midAngle:I,middleRadius:D,tooltipPosition:C},_),m),{},{value:lt(_,g),startAngle:L,endAngle:R,payload:_,paddingAngle:Mt(y)*l}),j})}return Ce(Ce({},m),{},{sectors:S,data:i})});var zre=Math.ceil,Bre=Math.max;function Fre(e,t,r,n){for(var i=-1,a=Bre(zre((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var Ure=Fre,Wre=F2,tj=1/0,Hre=17976931348623157e292;function Kre(e){if(!e)return e===0?e:0;if(e=Wre(e),e===tj||e===-tj){var t=e<0?-1:1;return t*Hre}return e===e?e:0}var SN=Kre,qre=Ure,Vre=Rh,dm=SN;function Gre(e){return function(t,r,n){return n&&typeof n!="number"&&Vre(t,r,n)&&(r=n=void 0),t=dm(t),r===void 0?(r=t,t=0):r=dm(r),n=n===void 0?t0&&n.handleDrag(i.changedTouches[0])}),rr(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o==null||o({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),rr(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),rr(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),rr(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),rr(n,"handleSlideDragStart",function(i){var a=oj(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return lne(t,e),ine(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,s=this.props,l=s.gap,u=s.data,f=u.length-1,c=Math.min(i,a),h=Math.max(i,a),p=t.getIndexInRange(o,c),m=t.getIndexInRange(o,h);return{startIndex:p-p%l,endIndex:m===f?f:m-m%l}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,l=lt(a[n],s,n);return oe(o)?o(l,n):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,s=i.endX,l=this.props,u=l.x,f=l.width,c=l.travellerWidth,h=l.startIndex,p=l.endIndex,m=l.onChange,y=n.pageX-a;y>0?y=Math.min(y,u+f-c-s,u+f-c-o):y<0&&(y=Math.max(y,u-o,u-s));var v=this.getIndex({startX:o+y,endX:s+y});(v.startIndex!==h||v.endIndex!==p)&&m&&m(v),this.setState({startX:o+y,endX:s+y,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=oj(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,s=i.endX,l=i.startX,u=this.state[o],f=this.props,c=f.x,h=f.width,p=f.travellerWidth,m=f.onChange,y=f.gap,v=f.data,g={startX:this.state.startX,endX:this.state.endX},b=n.pageX-a;b>0?b=Math.min(b,c+h-p-u):b<0&&(b=Math.max(b,c-u)),g[o]=u+b;var x=this.getIndex(g),O=x.startIndex,w=x.endIndex,S=function(){var _=v.length-1;return o==="startX"&&(s>l?O%y===0:w%y===0)||sl?w%y===0:O%y===0)||s>l&&w===_};this.setState(rr(rr({},o,u+b),"brushMoveStartX",n.pageX),function(){m&&S()&&m(x)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,l=o.startX,u=o.endX,f=this.state[i],c=s.indexOf(f);if(c!==-1){var h=c+n;if(!(h===-1||h>=s.length)){var p=s[h];i==="startX"&&p>=u||i==="endX"&&p<=l||this.setState(rr({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.fill,u=n.stroke;return k.createElement("rect",{stroke:u,fill:l,x:i,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.data,u=n.children,f=n.padding,c=A.Children.only(u);return c?k.cloneElement(c,{x:i,y:a,width:o,height:s,margin:f,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,l=this.props,u=l.y,f=l.travellerWidth,c=l.height,h=l.traveller,p=l.ariaLabel,m=l.data,y=l.startIndex,v=l.endIndex,g=Math.max(n,this.props.x),b=hm(hm({},ne(this.props,!1)),{},{x:g,y:u,width:f,height:c}),x=p||"Min value: ".concat((a=m[y])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=m[v])===null||o===void 0?void 0:o.name);return k.createElement(ye,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(w){["ArrowLeft","ArrowRight"].includes(w.key)&&(w.preventDefault(),w.stopPropagation(),s.handleTravellerMoveKeyboard(w.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,b))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,l=a.stroke,u=a.travellerWidth,f=Math.min(n,i)+u,c=Math.max(Math.abs(i-n)-u,0);return k.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:f,y:o,width:c,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,s=n.height,l=n.travellerWidth,u=n.stroke,f=this.state,c=f.startX,h=f.endX,p=5,m={pointerEvents:"none",fill:u};return k.createElement(ye,{className:"recharts-brush-texts"},k.createElement(Ra,kd({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,h)-p,y:o+s/2},m),this.getTextOfTick(i)),k.createElement(Ra,kd({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,h)+l+p,y:o+s/2},m),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,l=n.y,u=n.width,f=n.height,c=n.alwaysShowText,h=this.state,p=h.startX,m=h.endX,y=h.isTextActive,v=h.isSlideMoving,g=h.isTravellerMoving,b=h.isTravellerFocused;if(!i||!i.length||!K(s)||!K(l)||!K(u)||!K(f)||u<=0||f<=0)return null;var x=fe("recharts-brush",a),O=k.Children.count(o)===1,w=rne("userSelect","none");return k.createElement(ye,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:w},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(p,m),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(m,"endX"),(y||v||g||b||c)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,l=n.stroke,u=Math.floor(a+s/2)-1;return k.createElement(k.Fragment,null,k.createElement("rect",{x:i,y:a,width:o,height:s,fill:l,stroke:"none"}),k.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),k.createElement("line",{x1:i+1,y1:u+2,x2:i+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return k.isValidElement(n)?a=k.cloneElement(n,i):oe(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,s=n.x,l=n.travellerWidth,u=n.updateId,f=n.startIndex,c=n.endIndex;if(a!==i.prevData||u!==i.prevUpdateId)return hm({prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o},a&&a.length?cne({data:a,width:o,x:s,travellerWidth:l,startIndex:f,endIndex:c}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+o-l]);var h=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,s=a-1;s-o>1;){var l=Math.floor((o+s)/2);n[l]>i?s=l:o=l}return i>=n[s]?s:o}}])}(A.PureComponent);rr(fs,"displayName","Brush");rr(fs,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var fne=J0;function dne(e,t){var r;return fne(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var hne=dne,pne=p2,mne=cn,yne=hne,vne=er,gne=Rh;function bne(e,t,r){var n=vne(e)?pne:yne;return r&&gne(e,t,r)&&(t=void 0),n(e,mne(t))}var xne=bne;const wne=Ae(xne);var nn=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},sj=R2;function Sne(e,t,r){t=="__proto__"&&sj?sj(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var One=Sne,jne=One,_ne=M2,Pne=cn;function Ane(e,t){var r={};return t=Pne(t),_ne(e,function(n,i,a){jne(r,i,t(n,i,a))}),r}var kne=Ane;const Ene=Ae(kne);function Nne(e,t){for(var r=-1,n=e==null?0:e.length;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Vne(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Gne(e,t){var r=e.x,n=e.y,i=qne(e,Une),a="".concat(r),o=parseInt(a,10),s="".concat(n),l=parseInt(s,10),u="".concat(t.height||i.height),f=parseInt(u,10),c="".concat(t.width||i.width),h=parseInt(c,10);return ul(ul(ul(ul(ul({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function uj(e){return k.createElement(bN,Yv({shapeType:"rectangle",propTransformer:Gne,activeClassName:"recharts-active-bar"},e))}var Xne=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=K(n)||y6(n);return a?t(n,i):(a||La(),r)}},Qne=["value","background"],AN;function ds(e){"@babel/helpers - typeof";return ds=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ds(e)}function Yne(e,t){if(e==null)return{};var r=Jne(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Jne(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Nd(){return Nd=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&Math.abs(I)0&&Math.abs(R)0&&(L=Math.min((ie||0)-(R[be-1]||0),L))}),Number.isFinite(L)){var I=L/T,D=y.layout==="vertical"?n.height:n.width;if(y.padding==="gap"&&(j=I*D/2),y.padding==="no-gap"){var F=It(t.barCategoryGap,I*D),C=I*D/2;j=C-F-(C-F)/D*F}}}i==="xAxis"?_=[n.left+(x.left||0)+(j||0),n.left+n.width-(x.right||0)-(j||0)]:i==="yAxis"?_=l==="horizontal"?[n.top+n.height-(x.bottom||0),n.top+(x.top||0)]:[n.top+(x.top||0)+(j||0),n.top+n.height-(x.bottom||0)-(j||0)]:_=y.range,w&&(_=[_[1],_[0]]);var B=VE(y,a,h),U=B.scale,V=B.realScaleType;U.domain(g).range(_),GE(U);var H=XE(U,Dr(Dr({},y),{},{realScaleType:V}));i==="xAxis"?($=v==="top"&&!O||v==="bottom"&&O,P=n.left,N=c[S]-$*y.height):i==="yAxis"&&($=v==="left"&&!O||v==="right"&&O,P=c[S]-$*y.width,N=n.top);var X=Dr(Dr(Dr({},y),H),{},{realScaleType:V,x:P,y:N,scale:U,width:i==="xAxis"?n.width:y.width,height:i==="yAxis"?n.height:y.height});return X.bandSize=pd(X,H),!y.hide&&i==="xAxis"?c[S]+=($?-1:1)*X.height:y.hide||(c[S]+=($?-1:1)*X.width),Dr(Dr({},p),{},rp({},m,X))},{})},TN=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},uie=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return TN({x:r,y:n},{x:i,y:a})},$N=function(){function e(t){oie(this,e),this.scale=t}return sie(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])}();rp($N,"EPS",1e-4);var Ab=function(t){var r=Object.keys(t).reduce(function(n,i){return Dr(Dr({},n),{},rp({},i,$N.create(t[i])))},{});return Dr(Dr({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return Ene(i,function(l,u){return r[u].apply(l,{bandAware:o,position:s})})},isInRange:function(i){return PN(i,function(a,o){return r[o].isInRange(a)})}})};function cie(e){return(e%180+180)%180}var fie=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=cie(i),o=a*Math.PI/180,s=Math.atan(n/r),l=o>s&&o-1?i[a?t[o]:o]:void 0}}var yie=mie,vie=SN;function gie(e){var t=vie(e),r=t%1;return t===t?r?t-r:t:0}var bie=gie,xie=k2,wie=cn,Sie=bie,Oie=Math.max;function jie(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:Sie(r);return i<0&&(i=Oie(n+i,0)),xie(e,wie(t),i)}var _ie=jie,Pie=yie,Aie=_ie,kie=Pie(Aie),Eie=kie;const Nie=Ae(Eie);var Cie=Sz(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),kb=A.createContext(void 0),Eb=A.createContext(void 0),MN=A.createContext(void 0),IN=A.createContext({}),RN=A.createContext(void 0),DN=A.createContext(0),LN=A.createContext(0),pj=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,l=t.width,u=t.height,f=Cie(a);return k.createElement(kb.Provider,{value:n},k.createElement(Eb.Provider,{value:i},k.createElement(IN.Provider,{value:a},k.createElement(MN.Provider,{value:f},k.createElement(RN.Provider,{value:o},k.createElement(DN.Provider,{value:u},k.createElement(LN.Provider,{value:l},s)))))))},Tie=function(){return A.useContext(RN)},zN=function(t){var r=A.useContext(kb);r==null&&La();var n=r[t];return n==null&&La(),n},$ie=function(){var t=A.useContext(kb);return Zn(t)},Mie=function(){var t=A.useContext(Eb),r=Nie(t,function(n){return PN(n.domain,Number.isFinite)});return r||Zn(t)},BN=function(t){var r=A.useContext(Eb);r==null&&La();var n=r[t];return n==null&&La(),n},Iie=function(){var t=A.useContext(MN);return t},Rie=function(){return A.useContext(IN)},Nb=function(){return A.useContext(LN)},Cb=function(){return A.useContext(DN)};function hs(e){"@babel/helpers - typeof";return hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hs(e)}function Die(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lie(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);re*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function bae(e,t){return VN(e,t+1)}function xae(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,l=0,u=1,f=o,c=function(){var m=n==null?void 0:n[l];if(m===void 0)return{v:VN(n,u)};var y=l,v,g=function(){return v===void 0&&(v=r(m,y)),v},b=m.coordinate,x=l===0||Id(e,b,g,f,s);x||(l=0,f=o,u+=1),x&&(f=b+e*(g()/2+i),l+=u)},h;u<=a.length;)if(h=c(),h)return h.v;return[]}function Tu(e){"@babel/helpers - typeof";return Tu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tu(e)}function Sj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pt(e){for(var t=1;t0?p.coordinate-v*e:p.coordinate})}else a[h]=p=Pt(Pt({},p),{},{tickCoord:p.coordinate});var g=Id(e,p.tickCoord,y,s,l);g&&(l=p.tickCoord-e*(y()/2+i),a[h]=Pt(Pt({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)u(f);return a}function _ae(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,l=t.start,u=t.end;if(a){var f=n[s-1],c=r(f,s-1),h=e*(f.coordinate+e*c/2-u);o[s-1]=f=Pt(Pt({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var p=Id(e,f.tickCoord,function(){return c},l,u);p&&(u=f.tickCoord-e*(c/2+i),o[s-1]=Pt(Pt({},f),{},{isShow:!0}))}for(var m=a?s-1:s,y=function(b){var x=o[b],O,w=function(){return O===void 0&&(O=r(x,b)),O};if(b===0){var S=e*(x.coordinate-e*w()/2-l);o[b]=x=Pt(Pt({},x),{},{tickCoord:S<0?x.coordinate-S*e:x.coordinate})}else o[b]=x=Pt(Pt({},x),{},{tickCoord:x.coordinate});var j=Id(e,x.tickCoord,w,l,u);j&&(l=x.tickCoord+e*(w()/2+i),o[b]=Pt(Pt({},x),{},{isShow:!0}))},v=0;v=2?Mt(i[1].coordinate-i[0].coordinate):1,g=gae(a,v,p);return l==="equidistantPreserveStart"?xae(v,g,y,i,o):(l==="preserveStart"||l==="preserveStartEnd"?h=_ae(v,g,y,i,o,l==="preserveStartEnd"):h=jae(v,g,y,i,o),h.filter(function(b){return b.isShow}))}var Pae=["viewBox"],Aae=["viewBox"],kae=["ticks"];function ys(e){"@babel/helpers - typeof";return ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ys(e)}function vo(){return vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Eae(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Nae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jj(e,t){for(var r=0;r0?l(this.props):l(p)),o<=0||s<=0||!m||!m.length?null:k.createElement(ye,{className:fe("recharts-cartesian-axis",u),ref:function(v){n.layerReference=v}},a&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),mt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=fe(i.className,"recharts-cartesian-axis-tick-value");return k.isValidElement(n)?o=k.cloneElement(n,it(it({},i),{},{className:s})):oe(n)?o=n(it(it({},i),{},{className:s})):o=k.createElement(Ra,vo({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(A.Component);Ib(Ws,"displayName","CartesianAxis");Ib(Ws,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Dae=["x1","y1","x2","y2","key"],Lae=["offset"];function za(e){"@babel/helpers - typeof";return za=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},za(e)}function _j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kt(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Uae(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Wae=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,s=t.height,l=t.ry;return k.createElement("rect",{x:i,y:a,ry:l,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function QN(e,t){var r;if(k.isValidElement(e))r=k.cloneElement(e,t);else if(oe(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,l=Pj(t,Dae),u=ne(l,!1);u.offset;var f=Pj(u,Lae);r=k.createElement("line",la({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function Hae(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=kt(kt({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return QN(i,u)});return k.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function Kae(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=kt(kt({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return QN(i,u)});return k.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function qae(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,l=e.horizontal,u=l===void 0?!0:l;if(!u||!t||!t.length)return null;var f=s.map(function(h){return Math.round(h+i-i)}).sort(function(h,p){return h-p});i!==f[0]&&f.unshift(0);var c=f.map(function(h,p){var m=!f[p+1],y=m?i+o-h:f[p+1]-h;if(y<=0)return null;var v=p%t.length;return k.createElement("rect",{key:"react-".concat(p),y:h,x:n,height:y,width:a,stroke:"none",fill:t[v],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return k.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},c)}function Vae(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,l=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var f=u.map(function(h){return Math.round(h+a-a)}).sort(function(h,p){return h-p});a!==f[0]&&f.unshift(0);var c=f.map(function(h,p){var m=!f[p+1],y=m?a+s-h:f[p+1]-h;if(y<=0)return null;var v=p%n.length;return k.createElement("rect",{key:"react-".concat(p),x:h,y:o,width:y,height:l,stroke:"none",fill:n[v],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return k.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},c)}var Gae=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return qE(Mb(kt(kt(kt({},Ws.defaultProps),n),{},{ticks:_n(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},Xae=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return qE(Mb(kt(kt(kt({},Ws.defaultProps),n),{},{ticks:_n(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},eo={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function $u(e){var t,r,n,i,a,o,s=Nb(),l=Cb(),u=Rie(),f=kt(kt({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:eo.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:eo.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:eo.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:eo.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:eo.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:eo.verticalFill,x:K(e.x)?e.x:u.left,y:K(e.y)?e.y:u.top,width:K(e.width)?e.width:u.width,height:K(e.height)?e.height:u.height}),c=f.x,h=f.y,p=f.width,m=f.height,y=f.syncWithTicks,v=f.horizontalValues,g=f.verticalValues,b=$ie(),x=Mie();if(!K(p)||p<=0||!K(m)||m<=0||!K(c)||c!==+c||!K(h)||h!==+h)return null;var O=f.verticalCoordinatesGenerator||Gae,w=f.horizontalCoordinatesGenerator||Xae,S=f.horizontalPoints,j=f.verticalPoints;if((!S||!S.length)&&oe(w)){var _=v&&v.length,P=w({yAxis:x?kt(kt({},x),{},{ticks:_?v:x.ticks}):void 0,width:s,height:l,offset:u},_?!0:y);Ur(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(za(P),"]")),Array.isArray(P)&&(S=P)}if((!j||!j.length)&&oe(O)){var N=g&&g.length,$=O({xAxis:b?kt(kt({},b),{},{ticks:N?g:b.ticks}):void 0,width:s,height:l,offset:u},N?!0:y);Ur(Array.isArray($),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(za($),"]")),Array.isArray($)&&(j=$)}return k.createElement("g",{className:"recharts-cartesian-grid"},k.createElement(Wae,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),k.createElement(Hae,la({},f,{offset:u,horizontalPoints:S,xAxis:b,yAxis:x})),k.createElement(Kae,la({},f,{offset:u,verticalPoints:j,xAxis:b,yAxis:x})),k.createElement(qae,la({},f,{horizontalPoints:S})),k.createElement(Vae,la({},f,{verticalPoints:j})))}$u.displayName="CartesianGrid";var Qae=["layout","type","stroke","connectNulls","isRange","ref"],Yae=["key"],YN;function vs(e){"@babel/helpers - typeof";return vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vs(e)}function JN(e,t){if(e==null)return{};var r=Jae(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Jae(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t0||!is(f,o)||!is(c,s))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,s,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,u=i.top,f=i.left,c=i.xAxis,h=i.yAxis,p=i.width,m=i.height,y=i.isAnimationActive,v=i.id;if(a||!s||!s.length)return null;var g=this.state.isAnimationFinished,b=s.length===1,x=fe("recharts-area",l),O=c&&c.allowDataOverflow,w=h&&h.allowDataOverflow,S=O||w,j=ce(v)?this.id:v,_=(n=ne(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},P=_.r,N=P===void 0?3:P,$=_.strokeWidth,T=$===void 0?2:$,L=k6(o)?o:{},R=L.clipDot,I=R===void 0?!0:R,D=N*2+T;return k.createElement(ye,{className:x},O||w?k.createElement("defs",null,k.createElement("clipPath",{id:"clipPath-".concat(j)},k.createElement("rect",{x:O?f:f-p/2,y:w?u:u-m/2,width:O?p:p*2,height:w?m:m*2})),!I&&k.createElement("clipPath",{id:"clipPath-dots-".concat(j)},k.createElement("rect",{x:f-D/2,y:u-D/2,width:p+D,height:m+D}))):null,b?null:this.renderArea(S,j),(o||b)&&this.renderDots(S,I,j),(!y||g)&&En.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])}(A.PureComponent);YN=sn;Zr(sn,"displayName","Area");Zr(sn,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Ka.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Zr(sn,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,s=o??a;if(K(s)&&typeof s=="number")return s;var l=i==="horizontal"?n:r,u=l.scale.domain();if(l.type==="number"){var f=Math.max(u[0],u[1]),c=Math.min(u[0],u[1]);return s==="dataMin"?c:s==="dataMax"||f<0?f:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]});Zr(sn,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,l=e.dataKey,u=e.stackedData,f=e.dataStartIndex,c=e.displayedData,h=e.offset,p=t.layout,m=u&&u.length,y=YN.getBaseValue(t,r,n,i),v=p==="horizontal",g=!1,b=c.map(function(O,w){var S;m?S=u[f+w]:(S=lt(O,l),Array.isArray(S)?g=!0:S=[y,S]);var j=S[1]==null||m&<(O,l)==null;return v?{x:rO({axis:n,ticks:a,bandSize:s,entry:O,index:w}),y:j?null:i.scale(S[1]),value:S,payload:O}:{x:j?null:n.scale(S[1]),y:rO({axis:i,ticks:o,bandSize:s,entry:O,index:w}),value:S,payload:O}}),x;return m||g?x=b.map(function(O){var w=Array.isArray(O.value)?O.value[0]:null;return v?{x:O.x,y:w!=null&&O.y!=null?i.scale(w):null}:{x:w!=null?n.scale(w):null,y:O.y}}):x=v?i.scale(y):n.scale(y),Vn({points:b,baseLine:x,layout:p,isRange:g},h)});Zr(sn,"renderDotItem",function(e,t){var r;if(k.isValidElement(e))r=k.cloneElement(e,t);else if(oe(e))r=e(t);else{var n=fe("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=JN(t,Yae);r=k.createElement(Xh,ua({},a,{key:i,className:n}))}return r});function gs(e){"@babel/helpers - typeof";return gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gs(e)}function ooe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function soe(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Voe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Goe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xoe(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?o:t&&t.length&&K(i)&&K(a)?t.slice(i,a+1):[]};function pC(e){return e==="number"?[0,"auto"]:void 0}var mg=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=sp(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(l,u){var f,c=(f=u.props.data)!==null&&f!==void 0?f:r;c&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(c=c.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var p=c===void 0?s:c;h=zf(p,o.dataKey,i)}else h=c&&c[n]||s[n];return h?[].concat(ws(l),[YE(u,h)]):l},[])},Mj=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=sse(a,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,f=EY(o,s,u,l);if(f>=0&&u){var c=u[f]&&u[f].value,h=mg(t,r,f,c),p=lse(n,s,f,a);return{activeTooltipIndex:f,activeLabel:c,activePayload:h,activeCoordinate:p}}return null},use=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,f=t.layout,c=t.children,h=t.stackOffset,p=KE(f,a);return n.reduce(function(m,y){var v,g=y.type.defaultProps!==void 0?z(z({},y.type.defaultProps),y.props):y.props,b=g.type,x=g.dataKey,O=g.allowDataOverflow,w=g.allowDuplicatedCategory,S=g.scale,j=g.ticks,_=g.includeHidden,P=g[o];if(m[P])return m;var N=sp(t.data,{graphicalItems:i.filter(function(H){var X,ie=o in H.props?H.props[o]:(X=H.type.defaultProps)===null||X===void 0?void 0:X[o];return ie===P}),dataStartIndex:l,dataEndIndex:u}),$=N.length,T,L,R;Ioe(g.domain,O,b)&&(T=Nv(g.domain,null,O),p&&(b==="number"||S!=="auto")&&(R=El(N,x,"category")));var I=pC(b);if(!T||T.length===0){var D,F=(D=g.domain)!==null&&D!==void 0?D:I;if(x){if(T=El(N,x,b),b==="category"&&p){var C=g6(T);w&&C?(L=T,T=Ad(0,$)):w||(T=oO(F,T,y).reduce(function(H,X){return H.indexOf(X)>=0?H:[].concat(ws(H),[X])},[]))}else if(b==="category")w?T=T.filter(function(H){return H!==""&&!ce(H)}):T=oO(F,T,y).reduce(function(H,X){return H.indexOf(X)>=0||X===""||ce(X)?H:[].concat(ws(H),[X])},[]);else if(b==="number"){var B=MY(N,i.filter(function(H){var X,ie,be=o in H.props?H.props[o]:(X=H.type.defaultProps)===null||X===void 0?void 0:X[o],ze="hide"in H.props?H.props.hide:(ie=H.type.defaultProps)===null||ie===void 0?void 0:ie.hide;return be===P&&(_||!ze)}),x,a,f);B&&(T=B)}p&&(b==="number"||S!=="auto")&&(R=El(N,x,"category"))}else p?T=Ad(0,$):s&&s[P]&&s[P].hasStack&&b==="number"?T=h==="expand"?[0,1]:QE(s[P].stackGroups,l,u):T=HE(N,i.filter(function(H){var X=o in H.props?H.props[o]:H.type.defaultProps[o],ie="hide"in H.props?H.props.hide:H.type.defaultProps.hide;return X===P&&(_||!ie)}),b,f,!0);if(b==="number")T=dg(c,T,P,a,j),F&&(T=Nv(F,T,O));else if(b==="category"&&F){var U=F,V=T.every(function(H){return U.indexOf(H)>=0});V&&(T=U)}}return z(z({},m),{},ae({},P,z(z({},g),{},{axisType:a,domain:T,categoricalDomain:R,duplicateDomain:L,originalDomain:(v=g.domain)!==null&&v!==void 0?v:I,isCategorical:p,layout:f})))},{})},cse=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,f=t.layout,c=t.children,h=sp(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:u}),p=h.length,m=KE(f,a),y=-1;return n.reduce(function(v,g){var b=g.type.defaultProps!==void 0?z(z({},g.type.defaultProps),g.props):g.props,x=b[o],O=pC("number");if(!v[x]){y++;var w;return m?w=Ad(0,p):s&&s[x]&&s[x].hasStack?(w=QE(s[x].stackGroups,l,u),w=dg(c,w,x,a)):(w=Nv(O,HE(h,n.filter(function(S){var j,_,P=o in S.props?S.props[o]:(j=S.type.defaultProps)===null||j===void 0?void 0:j[o],N="hide"in S.props?S.props.hide:(_=S.type.defaultProps)===null||_===void 0?void 0:_.hide;return P===x&&!N}),"number",f),i.defaultProps.allowDataOverflow),w=dg(c,w,x,a)),z(z({},v),{},ae({},x,z(z({axisType:a},i.defaultProps),{},{hide:!0,orientation:lr(ase,"".concat(a,".").concat(y%2),null),domain:w,originalDomain:O,isCategorical:m,layout:f})))}return v},{})},fse=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,f=t.children,c="".concat(i,"Id"),h=_r(f,a),p={};return h&&h.length?p=use(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):o&&o.length&&(p=cse(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),p},dse=function(t){var r=Zn(t),n=_n(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Z0(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:pd(r,n)}},Ij=function(t){var r=t.children,n=t.defaultShowTooltip,i=ir(r,fs),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},hse=function(t){return!t||!t.length?!1:t.some(function(r){var n=An(r&&r.type);return n&&n.indexOf("Bar")>=0})},Rj=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},pse=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,l=s===void 0?{}:s,u=n.width,f=n.height,c=n.children,h=n.margin||{},p=ir(c,fs),m=ir(c,Po),y=Object.keys(l).reduce(function(w,S){var j=l[S],_=j.orientation;return!j.mirror&&!j.hide?z(z({},w),{},ae({},_,w[_]+j.width)):w},{left:h.left||0,right:h.right||0}),v=Object.keys(o).reduce(function(w,S){var j=o[S],_=j.orientation;return!j.mirror&&!j.hide?z(z({},w),{},ae({},_,lr(w,"".concat(_))+j.height)):w},{top:h.top||0,bottom:h.bottom||0}),g=z(z({},v),y),b=g.bottom;p&&(g.bottom+=p.props.height||fs.defaultProps.height),m&&r&&(g=TY(g,i,n,r));var x=u-g.left-g.right,O=f-g.top-g.bottom;return z(z({brushBottom:b},g),{},{width:Math.max(x,0),height:Math.max(O,0)})},mse=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},Rb=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,l=t.axisComponents,u=t.legendContent,f=t.formatAxisMap,c=t.defaultProps,h=function(g,b){var x=b.graphicalItems,O=b.stackGroups,w=b.offset,S=b.updateId,j=b.dataStartIndex,_=b.dataEndIndex,P=g.barSize,N=g.layout,$=g.barGap,T=g.barCategoryGap,L=g.maxBarSize,R=Rj(N),I=R.numericAxisName,D=R.cateAxisName,F=hse(x),C=[];return x.forEach(function(B,U){var V=sp(g.data,{graphicalItems:[B],dataStartIndex:j,dataEndIndex:_}),H=B.type.defaultProps!==void 0?z(z({},B.type.defaultProps),B.props):B.props,X=H.dataKey,ie=H.maxBarSize,be=H["".concat(I,"Id")],ze=H["".concat(D,"Id")],we={},gt=l.reduce(function(Ui,Wi){var lp=b["".concat(Wi.axisType,"Map")],Db=H["".concat(Wi.axisType,"Id")];lp&&lp[Db]||Wi.axisType==="zAxis"||La();var Lb=lp[Db];return z(z({},Ui),{},ae(ae({},Wi.axisType,Lb),"".concat(Wi.axisType,"Ticks"),_n(Lb)))},we),G=gt[D],le=gt["".concat(D,"Ticks")],ue=O&&O[be]&&O[be].hasStack&&WY(B,O[be].stackGroups),W=An(B.type).indexOf("Bar")>=0,Ke=pd(G,le),ve=[],tt=F&&NY({barSize:P,stackGroups:O,totalSize:mse(gt,D)});if(W){var rt,Bt,Wn=ce(ie)?L:ie,Xa=(rt=(Bt=pd(G,le,!0))!==null&&Bt!==void 0?Bt:Wn)!==null&&rt!==void 0?rt:0;ve=CY({barGap:$,barCategoryGap:T,bandSize:Xa!==Ke?Xa:Ke,sizeList:tt[ze],maxBarSize:Wn}),Xa!==Ke&&(ve=ve.map(function(Ui){return z(z({},Ui),{},{position:z(z({},Ui.position),{},{offset:Ui.position.offset-Xa/2})})}))}var nc=B&&B.type&&B.type.getComposedData;nc&&C.push({props:z(z({},nc(z(z({},gt),{},{displayedData:V,props:g,dataKey:X,item:B,bandSize:Ke,barPosition:ve,offset:w,stackedData:ue,layout:N,dataStartIndex:j,dataEndIndex:_}))),{},ae(ae(ae({key:B.key||"item-".concat(U)},I,gt[I]),D,gt[D]),"animationId",S)),childIndex:C6(B,g.children),item:B})}),C},p=function(g,b){var x=g.props,O=g.dataStartIndex,w=g.dataEndIndex,S=g.updateId;if(!Z1({props:x}))return null;var j=x.children,_=x.layout,P=x.stackOffset,N=x.data,$=x.reverseStackOrder,T=Rj(_),L=T.numericAxisName,R=T.cateAxisName,I=_r(j,n),D=FY(N,I,"".concat(L,"Id"),"".concat(R,"Id"),P,$),F=l.reduce(function(H,X){var ie="".concat(X.axisType,"Map");return z(z({},H),{},ae({},ie,fse(x,z(z({},X),{},{graphicalItems:I,stackGroups:X.axisType===L&&D,dataStartIndex:O,dataEndIndex:w}))))},{}),C=pse(z(z({},F),{},{props:x,graphicalItems:I}),b==null?void 0:b.legendBBox);Object.keys(F).forEach(function(H){F[H]=f(x,F[H],C,H.replace("Map",""),r)});var B=F["".concat(R,"Map")],U=dse(B),V=h(x,z(z({},F),{},{dataStartIndex:O,dataEndIndex:w,updateId:S,graphicalItems:I,stackGroups:D,offset:C}));return z(z({formattedGraphicalItems:V,graphicalItems:I,offset:C,stackGroups:D},U),F)},m=function(v){function g(b){var x,O,w;return Goe(this,g),w=Yoe(this,g,[b]),ae(w,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ae(w,"accessibilityManager",new Moe),ae(w,"handleLegendBBoxUpdate",function(S){if(S){var j=w.state,_=j.dataStartIndex,P=j.dataEndIndex,N=j.updateId;w.setState(z({legendBBox:S},p({props:w.props,dataStartIndex:_,dataEndIndex:P,updateId:N},z(z({},w.state),{},{legendBBox:S}))))}}),ae(w,"handleReceiveSyncEvent",function(S,j,_){if(w.props.syncId===S){if(_===w.eventEmitterSymbol&&typeof w.props.syncMethod!="function")return;w.applySyncEvent(j)}}),ae(w,"handleBrushChange",function(S){var j=S.startIndex,_=S.endIndex;if(j!==w.state.dataStartIndex||_!==w.state.dataEndIndex){var P=w.state.updateId;w.setState(function(){return z({dataStartIndex:j,dataEndIndex:_},p({props:w.props,dataStartIndex:j,dataEndIndex:_,updateId:P},w.state))}),w.triggerSyncEvent({dataStartIndex:j,dataEndIndex:_})}}),ae(w,"handleMouseEnter",function(S){var j=w.getMouseInfo(S);if(j){var _=z(z({},j),{},{isTooltipActive:!0});w.setState(_),w.triggerSyncEvent(_);var P=w.props.onMouseEnter;oe(P)&&P(_,S)}}),ae(w,"triggeredAfterMouseMove",function(S){var j=w.getMouseInfo(S),_=j?z(z({},j),{},{isTooltipActive:!0}):{isTooltipActive:!1};w.setState(_),w.triggerSyncEvent(_);var P=w.props.onMouseMove;oe(P)&&P(_,S)}),ae(w,"handleItemMouseEnter",function(S){w.setState(function(){return{isTooltipActive:!0,activeItem:S,activePayload:S.tooltipPayload,activeCoordinate:S.tooltipPosition||{x:S.cx,y:S.cy}}})}),ae(w,"handleItemMouseLeave",function(){w.setState(function(){return{isTooltipActive:!1}})}),ae(w,"handleMouseMove",function(S){S.persist(),w.throttleTriggeredAfterMouseMove(S)}),ae(w,"handleMouseLeave",function(S){w.throttleTriggeredAfterMouseMove.cancel();var j={isTooltipActive:!1};w.setState(j),w.triggerSyncEvent(j);var _=w.props.onMouseLeave;oe(_)&&_(j,S)}),ae(w,"handleOuterEvent",function(S){var j=N6(S),_=lr(w.props,"".concat(j));if(j&&oe(_)){var P,N;/.*touch.*/i.test(j)?N=w.getMouseInfo(S.changedTouches[0]):N=w.getMouseInfo(S),_((P=N)!==null&&P!==void 0?P:{},S)}}),ae(w,"handleClick",function(S){var j=w.getMouseInfo(S);if(j){var _=z(z({},j),{},{isTooltipActive:!0});w.setState(_),w.triggerSyncEvent(_);var P=w.props.onClick;oe(P)&&P(_,S)}}),ae(w,"handleMouseDown",function(S){var j=w.props.onMouseDown;if(oe(j)){var _=w.getMouseInfo(S);j(_,S)}}),ae(w,"handleMouseUp",function(S){var j=w.props.onMouseUp;if(oe(j)){var _=w.getMouseInfo(S);j(_,S)}}),ae(w,"handleTouchMove",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&w.throttleTriggeredAfterMouseMove(S.changedTouches[0])}),ae(w,"handleTouchStart",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&w.handleMouseDown(S.changedTouches[0])}),ae(w,"handleTouchEnd",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&w.handleMouseUp(S.changedTouches[0])}),ae(w,"handleDoubleClick",function(S){var j=w.props.onDoubleClick;if(oe(j)){var _=w.getMouseInfo(S);j(_,S)}}),ae(w,"handleContextMenu",function(S){var j=w.props.onContextMenu;if(oe(j)){var _=w.getMouseInfo(S);j(_,S)}}),ae(w,"triggerSyncEvent",function(S){w.props.syncId!==void 0&&mm.emit(ym,w.props.syncId,S,w.eventEmitterSymbol)}),ae(w,"applySyncEvent",function(S){var j=w.props,_=j.layout,P=j.syncMethod,N=w.state.updateId,$=S.dataStartIndex,T=S.dataEndIndex;if(S.dataStartIndex!==void 0||S.dataEndIndex!==void 0)w.setState(z({dataStartIndex:$,dataEndIndex:T},p({props:w.props,dataStartIndex:$,dataEndIndex:T,updateId:N},w.state)));else if(S.activeTooltipIndex!==void 0){var L=S.chartX,R=S.chartY,I=S.activeTooltipIndex,D=w.state,F=D.offset,C=D.tooltipTicks;if(!F)return;if(typeof P=="function")I=P(C,S);else if(P==="value"){I=-1;for(var B=0;B=0){var ue,W;if(L.dataKey&&!L.allowDuplicatedCategory){var Ke=typeof L.dataKey=="function"?le:"payload.".concat(L.dataKey.toString());ue=zf(B,Ke,I),W=U&&V&&zf(V,Ke,I)}else ue=B==null?void 0:B[R],W=U&&V&&V[R];if(ze||be){var ve=S.props.activeIndex!==void 0?S.props.activeIndex:R;return[A.cloneElement(S,z(z(z({},P.props),gt),{},{activeIndex:ve})),null,null]}if(!ce(ue))return[G].concat(ws(w.renderActivePoints({item:P,activePoint:ue,basePoint:W,childIndex:R,isRange:U})))}else{var tt,rt=(tt=w.getItemByXY(w.state.activeCoordinate))!==null&&tt!==void 0?tt:{graphicalItem:G},Bt=rt.graphicalItem,Wn=Bt.item,Xa=Wn===void 0?S:Wn,nc=Bt.childIndex,Ui=z(z(z({},P.props),gt),{},{activeIndex:nc});return[A.cloneElement(Xa,Ui),null,null]}return U?[G,null,null]:[G,null]}),ae(w,"renderCustomized",function(S,j,_){return A.cloneElement(S,z(z({key:"recharts-customized-".concat(_)},w.props),w.state))}),ae(w,"renderMap",{CartesianGrid:{handler:Bc,once:!0},ReferenceArea:{handler:w.renderReferenceElement},ReferenceLine:{handler:Bc},ReferenceDot:{handler:w.renderReferenceElement},XAxis:{handler:Bc},YAxis:{handler:Bc},Brush:{handler:w.renderBrush,once:!0},Bar:{handler:w.renderGraphicChild},Line:{handler:w.renderGraphicChild},Area:{handler:w.renderGraphicChild},Radar:{handler:w.renderGraphicChild},RadialBar:{handler:w.renderGraphicChild},Scatter:{handler:w.renderGraphicChild},Pie:{handler:w.renderGraphicChild},Funnel:{handler:w.renderGraphicChild},Tooltip:{handler:w.renderCursor,once:!0},PolarGrid:{handler:w.renderPolarGrid,once:!0},PolarAngleAxis:{handler:w.renderPolarAxis},PolarRadiusAxis:{handler:w.renderPolarAxis},Customized:{handler:w.renderCustomized}}),w.clipPathId="".concat((x=b.id)!==null&&x!==void 0?x:Rs("recharts"),"-clip"),w.throttleTriggeredAfterMouseMove=U2(w.triggeredAfterMouseMove,(O=b.throttleDelay)!==null&&O!==void 0?O:1e3/60),w.state={},w}return ese(g,v),Qoe(g,[{key:"componentDidMount",value:function(){var x,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,O=x.children,w=x.data,S=x.height,j=x.layout,_=ir(O,Wt);if(_){var P=_.props.defaultIndex;if(!(typeof P!="number"||P<0||P>this.state.tooltipTicks.length-1)){var N=this.state.tooltipTicks[P]&&this.state.tooltipTicks[P].value,$=mg(this.state,w,P,N),T=this.state.tooltipTicks[P].coordinate,L=(this.state.offset.top+S)/2,R=j==="horizontal",I=R?{x:T,y:L}:{y:T,x:L},D=this.state.formattedGraphicalItems.find(function(C){var B=C.item;return B.type.name==="Scatter"});D&&(I=z(z({},I),D.props.points[P].tooltipPosition),$=D.props.points[P].tooltipPayload);var F={activeTooltipIndex:P,isTooltipActive:!0,activeLabel:N,activePayload:$,activeCoordinate:I};this.setState(F),this.renderCursor(_),this.accessibilityManager.setIndex(P)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var w,S;this.accessibilityManager.setDetails({offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0}})}return null}},{key:"componentDidUpdate",value:function(x){Ky([ir(x.children,Wt)],[ir(this.props.children,Wt)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=ir(this.props.children,Wt);if(x&&typeof x.props.shared=="boolean"){var O=x.props.shared?"axis":"item";return s.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var O=this.container,w=O.getBoundingClientRect(),S=nV(w),j={chartX:Math.round(x.pageX-S.left),chartY:Math.round(x.pageY-S.top)},_=w.width/O.offsetWidth||1,P=this.inRange(j.chartX,j.chartY,_);if(!P)return null;var N=this.state,$=N.xAxisMap,T=N.yAxisMap,L=this.getTooltipEventType(),R=Mj(this.state,this.props.data,this.props.layout,P);if(L!=="axis"&&$&&T){var I=Zn($).scale,D=Zn(T).scale,F=I&&I.invert?I.invert(j.chartX):null,C=D&&D.invert?D.invert(j.chartY):null;return z(z({},j),{},{xValue:F,yValue:C},R)}return R?z(z({},j),R):null}},{key:"inRange",value:function(x,O){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,S=this.props.layout,j=x/w,_=O/w;if(S==="horizontal"||S==="vertical"){var P=this.state.offset,N=j>=P.left&&j<=P.left+P.width&&_>=P.top&&_<=P.top+P.height;return N?{x:j,y:_}:null}var $=this.state,T=$.angleAxisMap,L=$.radiusAxisMap;if(T&&L){var R=Zn(T);return uO({x:j,y:_},R)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,O=this.getTooltipEventType(),w=ir(x,Wt),S={};w&&O==="axis"&&(w.props.trigger==="click"?S={onClick:this.handleClick}:S={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var j=Bf(this.props,this.handleOuterEvent);return z(z({},j),S)}},{key:"addListener",value:function(){mm.on(ym,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){mm.removeListener(ym,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,O,w){for(var S=this.state.formattedGraphicalItems,j=0,_=S.length;j<_;j++){var P=S[j];if(P.item===x||P.props.key===x.key||O===An(P.item.type)&&w===P.childIndex)return P}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,O=this.state.offset,w=O.left,S=O.top,j=O.height,_=O.width;return k.createElement("defs",null,k.createElement("clipPath",{id:x},k.createElement("rect",{x:w,y:S,height:j,width:_})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(O,w){var S=Cj(w,2),j=S[0],_=S[1];return z(z({},O),{},ae({},j,_.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(O,w){var S=Cj(w,2),j=S[0],_=S[1];return z(z({},O),{},ae({},j,_.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[x])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(x){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[x])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(x){var O=this.state,w=O.formattedGraphicalItems,S=O.activeItem;if(w&&w.length)for(var j=0,_=w.length;j<_;j++){var P=w[j],N=P.props,$=P.item,T=$.type.defaultProps!==void 0?z(z({},$.type.defaultProps),$.props):$.props,L=An($.type);if(L==="Bar"){var R=(N.data||[]).find(function(C){return Wee(x,C)});if(R)return{graphicalItem:P,payload:R}}else if(L==="RadialBar"){var I=(N.data||[]).find(function(C){return uO(x,C)});if(I)return{graphicalItem:P,payload:I}}else if(ep(P,S)||tp(P,S)||ku(P,S)){var D=Cre({graphicalItem:P,activeTooltipItem:S,itemData:T.data}),F=T.activeIndex===void 0?D:T.activeIndex;return{graphicalItem:z(z({},P),{},{childIndex:F}),payload:ku(P,S)?T.data[D]:P.props.data[D]}}}return null}},{key:"render",value:function(){var x=this;if(!Z1(this))return null;var O=this.props,w=O.children,S=O.className,j=O.width,_=O.height,P=O.style,N=O.compact,$=O.title,T=O.desc,L=Tj(O,Woe),R=ne(L,!1);if(N)return k.createElement(pj,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},k.createElement(Vy,go({},R,{width:j,height:_,title:$,desc:T}),this.renderClipPath(),tw(w,this.renderMap)));if(this.props.accessibilityLayer){var I,D;R.tabIndex=(I=this.props.tabIndex)!==null&&I!==void 0?I:0,R.role=(D=this.props.role)!==null&&D!==void 0?D:"application",R.onKeyDown=function(C){x.accessibilityManager.keyboardEvent(C)},R.onFocus=function(){x.accessibilityManager.focus()}}var F=this.parseEventsOfWrapper();return k.createElement(pj,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},k.createElement("div",go({className:fe("recharts-wrapper",S),style:z({position:"relative",cursor:"default",width:j,height:_},P)},F,{ref:function(B){x.container=B}}),k.createElement(Vy,go({},R,{width:j,height:_,title:$,desc:T,style:ose}),this.renderClipPath(),tw(w,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(A.Component);ae(m,"displayName",r),ae(m,"defaultProps",z({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},c)),ae(m,"getDerivedStateFromProps",function(v,g){var b=v.dataKey,x=v.data,O=v.children,w=v.width,S=v.height,j=v.layout,_=v.stackOffset,P=v.margin,N=g.dataStartIndex,$=g.dataEndIndex;if(g.updateId===void 0){var T=Ij(v);return z(z(z({},T),{},{updateId:0},p(z(z({props:v},T),{},{updateId:0}),g)),{},{prevDataKey:b,prevData:x,prevWidth:w,prevHeight:S,prevLayout:j,prevStackOffset:_,prevMargin:P,prevChildren:O})}if(b!==g.prevDataKey||x!==g.prevData||w!==g.prevWidth||S!==g.prevHeight||j!==g.prevLayout||_!==g.prevStackOffset||!_o(P,g.prevMargin)){var L=Ij(v),R={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},I=z(z({},Mj(g,x,j)),{},{updateId:g.updateId+1}),D=z(z(z({},L),R),I);return z(z(z({},D),p(z({props:v},D),g)),{},{prevDataKey:b,prevData:x,prevWidth:w,prevHeight:S,prevLayout:j,prevStackOffset:_,prevMargin:P,prevChildren:O})}if(!Ky(O,g.prevChildren)){var F,C,B,U,V=ir(O,fs),H=V&&(F=(C=V.props)===null||C===void 0?void 0:C.startIndex)!==null&&F!==void 0?F:N,X=V&&(B=(U=V.props)===null||U===void 0?void 0:U.endIndex)!==null&&B!==void 0?B:$,ie=H!==N||X!==$,be=!ce(x),ze=be&&!ie?g.updateId:g.updateId+1;return z(z({updateId:ze},p(z(z({props:v},g),{},{updateId:ze,dataStartIndex:H,dataEndIndex:X}),g)),{},{prevChildren:O,dataStartIndex:H,dataEndIndex:X})}return null}),ae(m,"renderActiveDot",function(v,g,b){var x;return A.isValidElement(v)?x=A.cloneElement(v,g):oe(v)?x=v(g):x=k.createElement(Xh,g),k.createElement(ye,{className:"recharts-active-dot",key:b},x)});var y=A.forwardRef(function(g,b){return k.createElement(m,go({},g,{ref:b}))});return y.displayName=m.displayName,y},mC=Rb({chartName:"BarChart",GraphicalChild:Fi,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Ni},{axisType:"yAxis",AxisComp:Ci}],formatAxisMap:CN}),yse=Rb({chartName:"PieChart",GraphicalChild:Un,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Zh},{axisType:"radiusAxis",AxisComp:Yh}],formatAxisMap:ZY,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),yC=Rb({chartName:"AreaChart",GraphicalChild:sn,axisComponents:[{axisType:"xAxis",AxisComp:Ni},{axisType:"yAxis",AxisComp:Ci}],formatAxisMap:CN});const Dj=["#6366f1","#22c55e","#f59e0b","#ef4444","#8b5cf6","#06b6d4"],vse=()=>d.jsx("div",{className:"stat-card",children:d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx("div",{className:"skeleton h-3 w-20"}),d.jsx("div",{className:"skeleton h-8 w-16"})]}),d.jsx("div",{className:"skeleton h-10 w-10 rounded-lg"})]})}),gm=()=>d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsx("div",{className:"skeleton h-4 w-32"})}),d.jsx("div",{className:"card-body",children:d.jsx("div",{className:"skeleton h-56 w-full rounded-lg"})})]}),bm=({active:e,payload:t,label:r})=>!e||!t?null:d.jsxs("div",{className:"bg-gray-900 border border-gray-700 rounded-lg px-3 py-2 shadow-xl text-xs",children:[d.jsx("p",{className:"text-gray-400 mb-1",children:r}),t.map((n,i)=>d.jsxs("p",{className:"text-white font-medium",children:[d.jsx("span",{className:"inline-block w-2 h-2 rounded-full mr-1.5",style:{backgroundColor:n.color}}),n.name,": ",n.value]},i))]});function gse(){const{currentOrg:e}=Zt(),{data:t,isLoading:r}=Ai({queryKey:["issues-stats",e==null?void 0:e.id],queryFn:()=>_l.stats(e.id),enabled:!!e}),{data:n,isLoading:i}=Ai({queryKey:["report-summary",e==null?void 0:e.id],queryFn:()=>Dy.summary(e.id,14),enabled:!!e});if(!e)return d.jsx("div",{className:"flex-1 flex items-center justify-center p-8",children:d.jsxs("div",{className:"text-center max-w-md",children:[d.jsx("div",{className:"w-16 h-16 rounded-2xl bg-indigo-600/10 flex items-center justify-center mx-auto mb-4",children:d.jsx($a,{size:28,className:"text-indigo-400"})}),d.jsx("h2",{className:"text-xl font-semibold text-white mb-2",children:"Select an organization"}),d.jsx("p",{className:"text-gray-400 text-sm",children:"Choose an organization from the sidebar to view your dashboard and manage issues."})]})});const a=(t==null?void 0:t.data)||{},o=(n==null?void 0:n.data)||{},s=r||i,l=[{label:"Total Issues",value:a.total||0,icon:E0,color:"text-blue-400",bg:"bg-blue-500/10",trend:"+12%",up:!0},{label:"Analyzed",value:a.analyzed||0,icon:ki,color:"text-emerald-400",bg:"bg-emerald-500/10",trend:"+8%",up:!0},{label:"PRs Created",value:a.pr_created||0,icon:hh,color:"text-purple-400",bg:"bg-purple-500/10",trend:"+15%",up:!0},{label:"Avg Confidence",value:a.avg_confidence?`${(a.avg_confidence*100).toFixed(0)}%`:"N/A",icon:yD,color:"text-amber-400",bg:"bg-amber-500/10",trend:"+3%",up:!0}],u=[{name:"Pending",value:a.pending||0},{name:"Analyzing",value:a.analyzing||0},{name:"Analyzed",value:a.analyzed||0},{name:"PR Created",value:a.pr_created||0},{name:"Error",value:a.error||0}].filter(c=>c.value>0),f=Object.entries(a.by_source||{}).map(([c,h])=>({name:c.replace("_"," ").replace(/\b\w/g,p=>p.toUpperCase()),value:h}));return d.jsxs("div",{className:"p-6 animate-fade-in",children:[d.jsxs("div",{className:"page-header",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"page-title",children:"Dashboard"}),d.jsx("p",{className:"page-subtitle",children:"Overview of your issue analysis pipeline"})]}),d.jsx("div",{className:"flex items-center gap-2",children:d.jsxs("span",{className:"badge badge-green",children:[d.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),"System operational"]})})]}),d.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:s?Array(4).fill(0).map((c,h)=>d.jsx(vse,{},h)):l.map(c=>{const h=c.icon;return d.jsx("div",{className:"stat-card",children:d.jsxs("div",{className:"flex items-center justify-between relative z-10",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-xs font-medium text-gray-400 uppercase tracking-wide",children:c.label}),d.jsx("p",{className:"text-2xl font-bold text-white mt-1",children:c.value}),d.jsxs("div",{className:_e("flex items-center gap-1 mt-1.5 text-xs font-medium",c.up?"text-emerald-400":"text-red-400"),children:[c.up?d.jsx(jD,{size:12}):d.jsx(SD,{size:12}),c.trend,d.jsx("span",{className:"text-gray-500 font-normal ml-0.5",children:"vs last week"})]})]}),d.jsx("div",{className:_e("w-11 h-11 rounded-xl flex items-center justify-center",c.bg),children:d.jsx(h,{size:20,className:c.color})})]})},c.label)})}),d.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 mb-6",children:s?d.jsxs(d.Fragment,{children:[d.jsx(gm,{}),d.jsx(gm,{})]}):d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"card",children:[d.jsxs("div",{className:"card-header",children:[d.jsx("h3",{className:"text-sm font-semibold",children:"Issues Trend"}),d.jsx("span",{className:"badge badge-gray text-[10px]",children:"Last 14 days"})]}),d.jsx("div",{className:"card-body",children:d.jsx("div",{className:"h-56",children:d.jsx(Pl,{width:"100%",height:"100%",children:d.jsxs(yC,{data:o.daily_breakdown||[],children:[d.jsxs("defs",{children:[d.jsxs("linearGradient",{id:"colorTotal",x1:"0",y1:"0",x2:"0",y2:"1",children:[d.jsx("stop",{offset:"5%",stopColor:"#6366f1",stopOpacity:.3}),d.jsx("stop",{offset:"95%",stopColor:"#6366f1",stopOpacity:0})]}),d.jsxs("linearGradient",{id:"colorAnalyzed",x1:"0",y1:"0",x2:"0",y2:"1",children:[d.jsx("stop",{offset:"5%",stopColor:"#22c55e",stopOpacity:.3}),d.jsx("stop",{offset:"95%",stopColor:"#22c55e",stopOpacity:0})]})]}),d.jsx($u,{strokeDasharray:"3 3",stroke:"#1e1e2a"}),d.jsx(Ni,{dataKey:"date",tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),d.jsx(Ci,{tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),d.jsx(Wt,{content:d.jsx(bm,{})}),d.jsx(sn,{type:"monotone",dataKey:"total",stroke:"#6366f1",fill:"url(#colorTotal)",strokeWidth:2,name:"Total"}),d.jsx(sn,{type:"monotone",dataKey:"analyzed",stroke:"#22c55e",fill:"url(#colorAnalyzed)",strokeWidth:2,name:"Analyzed"})]})})})})]}),d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsx("h3",{className:"text-sm font-semibold",children:"Status Distribution"})}),d.jsx("div",{className:"card-body",children:d.jsx("div",{className:"h-56 flex items-center",children:u.length>0?d.jsx(Pl,{width:"100%",height:"100%",children:d.jsxs(yse,{children:[d.jsx(Un,{data:u,cx:"50%",cy:"50%",innerRadius:55,outerRadius:80,paddingAngle:4,dataKey:"value",label:({name:c,percent:h})=>`${c} ${(h*100).toFixed(0)}%`,children:u.map((c,h)=>d.jsx(Dh,{fill:Dj[h%Dj.length]},c.name))}),d.jsx(Wt,{content:d.jsx(bm,{})})]})}):d.jsxs("div",{className:"w-full text-center",children:[d.jsx(Lf,{size:24,className:"text-gray-600 mx-auto mb-2"}),d.jsx("p",{className:"text-gray-500 text-sm",children:"No data yet"})]})})})]})]})}),s?d.jsx(gm,{}):d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsx("h3",{className:"text-sm font-semibold",children:"Issues by Source"})}),d.jsx("div",{className:"card-body",children:d.jsx("div",{className:"h-56",children:f.length>0?d.jsx(Pl,{width:"100%",height:"100%",children:d.jsxs(mC,{data:f,layout:"vertical",children:[d.jsx($u,{strokeDasharray:"3 3",stroke:"#1e1e2a",horizontal:!1}),d.jsx(Ni,{type:"number",tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),d.jsx(Ci,{type:"category",dataKey:"name",tick:{fill:"#8888a0",fontSize:12},width:100,tickLine:!1,axisLine:!1}),d.jsx(Wt,{content:d.jsx(bm,{})}),d.jsx(Fi,{dataKey:"value",fill:"#6366f1",radius:[0,6,6,0],barSize:24,name:"Issues"})]})}):d.jsx("div",{className:"h-full flex items-center justify-center",children:d.jsxs("div",{className:"text-center",children:[d.jsx(Lf,{size:24,className:"text-gray-600 mx-auto mb-2"}),d.jsx("p",{className:"text-gray-500 text-sm",children:"No data yet"}),d.jsx("p",{className:"text-gray-600 text-xs mt-1",children:"Connect an integration to start tracking"})]})})})})]})]})}const Fc={pending:{badge:"badge-yellow",icon:dh,label:"Pending"},analyzing:{badge:"badge-blue",icon:jr,label:"Analyzing"},analyzed:{badge:"badge-green",icon:ki,label:"Analyzed"},pr_created:{badge:"badge-purple",icon:hh,label:"PR Created"},completed:{badge:"badge-gray",icon:ki,label:"Completed"},error:{badge:"badge-red",icon:k0,label:"Error"}},Lj={critical:{badge:"badge-red",label:"Critical"},high:{badge:"badge-yellow",label:"High"},medium:{badge:"badge-blue",label:"Medium"},low:{badge:"badge-green",label:"Low"}},bse={jira_cloud:"🔵",servicenow:"⚙️",zendesk:"💚",github:"🐙",gitlab:"🦊",tickethub:"🎫",generic:"📝"},xse=()=>d.jsxs("div",{className:"flex items-center gap-4 px-5 py-4 table-row",children:[d.jsx("div",{className:"skeleton h-4 w-20"}),d.jsxs("div",{className:"flex-1 space-y-1.5",children:[d.jsx("div",{className:"skeleton h-4 w-3/4"}),d.jsx("div",{className:"skeleton h-3 w-1/4"})]}),d.jsx("div",{className:"skeleton h-5 w-16 rounded-md"})]});function wse(){var c,h;const{currentOrg:e}=Zt(),[t,r]=A.useState({status:"",source:""}),[n,i]=A.useState(""),[a,o]=A.useState(!1),{data:s,isLoading:l}=Ai({queryKey:["issues",e==null?void 0:e.id,t],queryFn:()=>_l.list(e.id,t),enabled:!!e});if(!e)return d.jsx("div",{className:"flex items-center justify-center h-full p-8",children:d.jsx("p",{className:"text-gray-500",children:"Select an organization"})});const u=((s==null?void 0:s.data)||[]).filter(p=>{var m,y;return!n||((m=p.title)==null?void 0:m.toLowerCase().includes(n.toLowerCase()))||((y=p.external_key)==null?void 0:y.toLowerCase().includes(n.toLowerCase()))}),f={};return((s==null?void 0:s.data)||[]).forEach(p=>{f[p.status]=(f[p.status]||0)+1}),d.jsxs("div",{className:"p-6 animate-fade-in",children:[d.jsxs("div",{className:"page-header",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"page-title",children:"Issues"}),d.jsxs("p",{className:"page-subtitle",children:[((c=s==null?void 0:s.data)==null?void 0:c.length)||0," total issues"]})]}),d.jsxs("button",{className:"btn btn-primary",children:[d.jsx(Ei,{size:16}),"New Issue"]})]}),d.jsxs("div",{className:"flex items-center gap-1 mb-4 overflow-x-auto pb-1",children:[d.jsxs("button",{onClick:()=>r({...t,status:""}),className:_e("badge cursor-pointer transition-all",t.status?"badge-gray hover:bg-gray-700/50":"badge-indigo"),children:["All ",((h=s==null?void 0:s.data)==null?void 0:h.length)||0]}),Object.entries(Fc).map(([p,m])=>{const y=f[p]||0;return!y&&p!=="pending"?null:d.jsxs("button",{onClick:()=>r({...t,status:t.status===p?"":p}),className:_e("badge cursor-pointer transition-all",t.status===p?m.badge:"badge-gray hover:bg-gray-700/50"),children:[m.label," ",y]},p)})]}),d.jsxs("div",{className:"card mb-4",children:[d.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[d.jsx(af,{size:16,className:"text-gray-500"}),d.jsx("input",{value:n,onChange:p=>i(p.target.value),placeholder:"Search issues by title or key...",className:"flex-1 bg-transparent text-sm outline-none placeholder:text-gray-500"}),d.jsxs("button",{onClick:()=>o(!a),className:_e("btn btn-sm btn-ghost",a&&"text-indigo-400"),children:[d.jsx(dD,{size:14}),"Filters"]})]}),a&&d.jsxs("div",{className:"px-4 py-3 border-t border-gray-800/50 flex items-center gap-3 animate-slide-up",children:[d.jsxs("select",{value:t.status,onChange:p=>r({...t,status:p.target.value}),className:"input-sm input w-36",children:[d.jsx("option",{value:"",children:"All Status"}),Object.entries(Fc).map(([p,m])=>d.jsx("option",{value:p,children:m.label},p))]}),d.jsxs("select",{value:t.source,onChange:p=>r({...t,source:p.target.value}),className:"input-sm input w-36",children:[d.jsx("option",{value:"",children:"All Sources"}),d.jsx("option",{value:"jira_cloud",children:"JIRA"}),d.jsx("option",{value:"servicenow",children:"ServiceNow"}),d.jsx("option",{value:"zendesk",children:"Zendesk"}),d.jsx("option",{value:"github",children:"GitHub"}),d.jsx("option",{value:"gitlab",children:"GitLab"}),d.jsx("option",{value:"tickethub",children:"TicketHub"})]}),(t.status||t.source)&&d.jsx("button",{onClick:()=>r({status:"",source:""}),className:"btn btn-sm btn-ghost text-red-400",children:"Clear"})]})]}),d.jsxs("div",{className:"card overflow-hidden",children:[d.jsxs("div",{className:"flex items-center gap-4 px-5 py-3 border-b border-gray-800/50 text-xs font-medium text-gray-500 uppercase tracking-wide",children:[d.jsx("div",{className:"w-24",children:"Key"}),d.jsx("div",{className:"flex-1",children:"Title"}),d.jsx("div",{className:"w-24",children:"Status"}),d.jsx("div",{className:"w-20",children:"Priority"}),d.jsx("div",{className:"w-20",children:"Confidence"}),d.jsx("div",{className:"w-8"})]}),l?Array(5).fill(0).map((p,m)=>d.jsx(xse,{},m)):u.length===0?d.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[d.jsx("div",{className:"w-14 h-14 rounded-2xl bg-gray-800/50 flex items-center justify-center mb-3",children:d.jsx(E0,{size:24,className:"text-gray-600"})}),d.jsx("p",{className:"text-gray-400 font-medium",children:"No issues found"}),d.jsx("p",{className:"text-gray-600 text-sm mt-1",children:"Issues from your integrations will appear here"})]}):u.map(p=>{var g;const m=Fc[p.status]||Fc.pending,y=Lj[p.priority]||Lj.medium,v=m.icon;return d.jsxs(Ea,{to:`/issues/${p.id}`,className:"flex items-center gap-4 px-5 py-3.5 table-row group",children:[d.jsx("div",{className:"w-24",children:d.jsx("span",{className:"font-mono text-xs text-indigo-400",children:p.external_key||`#${p.id}`})}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"text-sm font-medium truncate group-hover:text-white transition-colors",children:p.title}),d.jsx("p",{className:"text-xs text-gray-500 mt-0.5 flex items-center gap-2",children:d.jsxs("span",{children:[bse[p.source]||"📝"," ",(g=p.source)==null?void 0:g.replace("_"," ")]})})]}),d.jsx("div",{className:"w-24",children:d.jsxs("span",{className:_e("badge text-[10px]",m.badge),children:[d.jsx(v,{size:10,className:p.status==="analyzing"?"animate-spin":""}),m.label]})}),d.jsx("div",{className:"w-20",children:d.jsx("span",{className:_e("badge text-[10px]",y.badge),children:y.label})}),d.jsx("div",{className:"w-20",children:p.confidence?d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("div",{className:"flex-1 bg-gray-800 rounded-full h-1.5",children:d.jsx("div",{className:"bg-indigo-500 h-1.5 rounded-full transition-all",style:{width:`${p.confidence*100}%`}})}),d.jsxs("span",{className:"text-[10px] text-gray-400 font-mono w-7 text-right",children:[(p.confidence*100).toFixed(0),"%"]})]}):d.jsx("span",{className:"text-xs text-gray-600",children:"—"})}),d.jsx("div",{className:"w-8",children:d.jsx(zy,{size:14,className:"text-gray-600 group-hover:text-gray-400 transition-colors"})})]},p.id)})]})]})}const zj={pending:{badge:"badge-yellow",icon:dh,label:"Pending"},analyzing:{badge:"badge-blue",icon:jr,label:"Analyzing"},analyzed:{badge:"badge-green",icon:ki,label:"Analyzed"},pr_created:{badge:"badge-purple",icon:hh,label:"PR Created"},completed:{badge:"badge-gray",icon:ki,label:"Completed"},error:{badge:"badge-red",icon:k0,label:"Error"}},Sse=()=>d.jsxs("div",{className:"p-6 animate-fade-in",children:[d.jsx("div",{className:"skeleton h-4 w-24 mb-6"}),d.jsxs("div",{className:"flex items-start justify-between mb-6",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"skeleton h-6 w-20"}),d.jsx("div",{className:"skeleton h-5 w-16 rounded-md"})]}),d.jsx("div",{className:"skeleton h-7 w-96"}),d.jsx("div",{className:"skeleton h-4 w-48"})]}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx("div",{className:"skeleton h-9 w-28 rounded-lg"}),d.jsx("div",{className:"skeleton h-9 w-28 rounded-lg"})]})]}),d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-5",children:[d.jsxs("div",{className:"lg:col-span-2 space-y-5",children:[d.jsx("div",{className:"card card-body",children:d.jsx("div",{className:"skeleton h-32 w-full rounded-lg"})}),d.jsx("div",{className:"card card-body",children:d.jsx("div",{className:"skeleton h-48 w-full rounded-lg"})})]}),d.jsxs("div",{className:"space-y-5",children:[d.jsx("div",{className:"card card-body",children:d.jsx("div",{className:"skeleton h-24 w-full rounded-lg"})}),d.jsx("div",{className:"card card-body",children:d.jsx("div",{className:"skeleton h-32 w-full rounded-lg"})})]})]})]});function Ose(){var O,w,S,j;const{id:e}=OM(),{currentOrg:t}=Zt(),r=ih(),[n,i]=A.useState("analysis"),[a,o]=A.useState(""),[s,l]=A.useState(!1),{data:u,isLoading:f}=Ai({queryKey:["issue",t==null?void 0:t.id,e],queryFn:()=>_l.get(t.id,e),enabled:!!t}),c=Mf({mutationFn:()=>_l.reanalyze(t.id,e),onSuccess:()=>r.invalidateQueries(["issue",t==null?void 0:t.id,e])}),h=Mf({mutationFn:_=>_l.addComment(t.id,e,{content:_}),onSuccess:()=>{r.invalidateQueries(["issue",t==null?void 0:t.id,e]),o("")}}),p=_=>{navigator.clipboard.writeText(_),l(!0),setTimeout(()=>l(!1),2e3)};if(!t)return null;if(f)return d.jsx(Sse,{});const m=u==null?void 0:u.data;if(!m)return d.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-8",children:[d.jsx(Lf,{size:40,className:"text-gray-600 mb-3"}),d.jsx("p",{className:"text-gray-400 font-medium",children:"Issue not found"}),d.jsx(Ea,{to:"/issues",className:"text-indigo-400 text-sm mt-2 hover:underline",children:"← Back to Issues"})]});const y=zj[m.status]||zj.pending,v=y.icon,g=m.confidence?(m.confidence*100).toFixed(0):null,b=m.confidence>.8?"text-emerald-400":m.confidence>.5?"text-amber-400":"text-red-400",x=[{id:"analysis",label:"Analysis",icon:Df},{id:"code",label:"Suggested Fix",icon:By},{id:"comments",label:"Comments",icon:Q3}];return d.jsxs("div",{className:"p-6 animate-fade-in",children:[d.jsxs(Ea,{to:"/issues",className:"inline-flex items-center gap-1.5 text-sm text-gray-400 hover:text-white transition-colors mb-5",children:[d.jsx(o3,{size:14}),"Back to Issues"]}),d.jsxs("div",{className:"flex items-start justify-between mb-6",children:[d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[d.jsx("span",{className:"font-mono text-lg text-indigo-400 font-semibold",children:m.external_key||`#${m.id}`}),d.jsxs("span",{className:_e("badge",y.badge),children:[d.jsx(v,{size:12,className:m.status==="analyzing"?"animate-spin":""}),y.label]}),m.priority&&d.jsx("span",{className:_e("badge",m.priority==="critical"?"badge-red":m.priority==="high"?"badge-yellow":m.priority==="medium"?"badge-blue":"badge-green"),children:m.priority})]}),d.jsx("h1",{className:"text-xl font-semibold text-white",children:m.title}),d.jsxs("div",{className:"flex items-center gap-4 mt-2 text-xs text-gray-500",children:[d.jsxs("span",{className:"flex items-center gap-1",children:[d.jsx(d3,{size:12})," ",new Date(m.created_at).toLocaleDateString()]}),d.jsxs("span",{children:["Source: ",(O=m.source)==null?void 0:O.replace("_"," ")]})]})]}),d.jsxs("div",{className:"flex gap-2",children:[m.external_url&&d.jsxs("a",{href:m.external_url,target:"_blank",rel:"noopener noreferrer",className:"btn btn-secondary btn-sm",children:[d.jsx(L1,{size:14}),"Original"]}),d.jsxs("button",{onClick:()=>c.mutate(),disabled:c.isPending,className:"btn btn-primary btn-sm",children:[c.isPending?d.jsx(jr,{size:14,className:"animate-spin"}):d.jsx(Ok,{size:14}),"Re-analyze"]})]})]}),d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-5",children:[d.jsxs("div",{className:"lg:col-span-2 space-y-5",children:[d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsxs("h3",{className:"text-sm font-semibold flex items-center gap-2",children:[d.jsx(M3,{size:14,className:"text-gray-500"}),"Description"]})}),d.jsx("div",{className:"card-body",children:d.jsx("pre",{className:"whitespace-pre-wrap text-sm text-gray-300 font-sans leading-relaxed",children:m.description||"No description provided."})})]}),d.jsxs("div",{className:"card overflow-hidden",children:[d.jsx("div",{className:"flex items-center gap-0 border-b border-gray-800/50 px-1",children:x.map(_=>{const P=_.icon;return d.jsxs("button",{onClick:()=>i(_.id),className:_e("flex items-center gap-2 px-4 py-3 text-sm font-medium border-b-2 transition-all -mb-px",n===_.id?"border-indigo-500 text-indigo-400":"border-transparent text-gray-500 hover:text-gray-300"),children:[d.jsx(P,{size:14}),_.label]},_.id)})}),d.jsxs("div",{className:"card-body",children:[n==="analysis"&&d.jsx("div",{className:"space-y-4 animate-fade-in",children:m.root_cause?d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"p-4 rounded-lg bg-emerald-500/5 border border-emerald-500/10",children:[d.jsxs("h4",{className:"text-sm font-semibold text-emerald-400 mb-2 flex items-center gap-2",children:[d.jsx(W3,{size:14}),"Root Cause Analysis"]}),d.jsx("pre",{className:"whitespace-pre-wrap text-sm text-gray-300 font-sans leading-relaxed",children:m.root_cause})]}),((w=m.affected_files)==null?void 0:w.length)>0&&d.jsxs("div",{children:[d.jsxs("h4",{className:"text-sm font-semibold text-gray-300 mb-2 flex items-center gap-2",children:[d.jsx(R3,{size:14,className:"text-gray-500"}),"Affected Files"]}),d.jsx("div",{className:"flex flex-wrap gap-1.5",children:m.affected_files.map(_=>d.jsx("span",{className:"badge badge-gray font-mono text-[11px]",children:_},_))})]})]}):d.jsxs("div",{className:"text-center py-8",children:[d.jsx(Df,{size:28,className:"text-gray-600 mx-auto mb-2"}),d.jsx("p",{className:"text-gray-500 text-sm",children:"No analysis available yet"}),d.jsx("p",{className:"text-gray-600 text-xs mt-1",children:'Click "Re-analyze" to start AI analysis'})]})}),n==="code"&&d.jsx("div",{className:"animate-fade-in",children:m.suggested_fix?d.jsxs("div",{className:"relative",children:[d.jsx("button",{onClick:()=>p(m.suggested_fix),className:"absolute top-2 right-2 btn btn-ghost btn-sm text-gray-500",children:s?d.jsx(bk,{size:14,className:"text-emerald-400"}):d.jsx(Fy,{size:14})}),d.jsx("pre",{className:"whitespace-pre-wrap text-sm text-gray-300 font-mono bg-gray-950 p-4 rounded-lg border border-gray-800 overflow-x-auto leading-relaxed",children:m.suggested_fix})]}):d.jsxs("div",{className:"text-center py-8",children:[d.jsx(By,{size:28,className:"text-gray-600 mx-auto mb-2"}),d.jsx("p",{className:"text-gray-500 text-sm",children:"No suggested fix available"})]})}),n==="comments"&&d.jsxs("div",{className:"space-y-4 animate-fade-in",children:[((S=m.comments)==null?void 0:S.length)>0?m.comments.map((_,P)=>{var N,$;return d.jsxs("div",{className:"flex gap-3",children:[d.jsx("div",{className:"w-7 h-7 rounded-lg bg-gray-800 flex items-center justify-center flex-shrink-0 text-xs font-medium text-gray-400",children:(($=(N=_.author)==null?void 0:N[0])==null?void 0:$.toUpperCase())||"?"}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[d.jsx("span",{className:"text-sm font-medium text-gray-300",children:_.author||"System"}),d.jsx("span",{className:"text-xs text-gray-600",children:new Date(_.created_at).toLocaleString()})]}),d.jsx("p",{className:"text-sm text-gray-400",children:_.content})]})]},P)}):d.jsx("p",{className:"text-sm text-gray-500 text-center py-4",children:"No comments yet"}),d.jsxs("div",{className:"flex items-center gap-2 pt-3 border-t border-gray-800/50",children:[d.jsx("input",{value:a,onChange:_=>o(_.target.value),placeholder:"Add a comment...",className:"input flex-1",onKeyDown:_=>_.key==="Enter"&&a.trim()&&h.mutate(a)}),d.jsx("button",{onClick:()=>a.trim()&&h.mutate(a),disabled:!a.trim()||h.isPending,className:"btn btn-primary btn-sm",children:h.isPending?d.jsx(jr,{size:14,className:"animate-spin"}):d.jsx(lD,{size:14})})]})]})]})]})]}),d.jsxs("div",{className:"space-y-5",children:[g&&d.jsxs("div",{className:"card card-body text-center",children:[d.jsxs("div",{className:"relative w-24 h-24 mx-auto mb-3",children:[d.jsxs("svg",{className:"w-full h-full -rotate-90",viewBox:"0 0 36 36",children:[d.jsx("circle",{cx:"18",cy:"18",r:"16",fill:"none",stroke:"#1e1e2a",strokeWidth:"2.5"}),d.jsx("circle",{cx:"18",cy:"18",r:"16",fill:"none",stroke:"currentColor",className:b,strokeWidth:"2.5",strokeLinecap:"round",strokeDasharray:`${m.confidence*100}, 100`})]}),d.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:d.jsxs("span",{className:_e("text-xl font-bold",b),children:[g,"%"]})})]}),d.jsx("p",{className:"text-xs font-medium text-gray-400 uppercase tracking-wide",children:"AI Confidence"})]}),m.pr_url&&d.jsxs("div",{className:"card overflow-hidden",children:[d.jsx("div",{className:"card-header bg-purple-500/5",children:d.jsxs("h3",{className:"text-sm font-semibold flex items-center gap-2 text-purple-400",children:[d.jsx(hh,{size:14}),"Pull Request"]})}),d.jsxs("div",{className:"card-body space-y-3",children:[m.pr_branch&&d.jsxs("div",{children:[d.jsx("p",{className:"text-xs text-gray-500 mb-1",children:"Branch"}),d.jsx("span",{className:"badge badge-gray font-mono text-[11px]",children:m.pr_branch})]}),d.jsxs("a",{href:m.pr_url,target:"_blank",rel:"noopener noreferrer",className:"btn btn-primary w-full btn-sm",children:[d.jsx(L1,{size:14}),"View Pull Request"]})]})]}),((j=m.labels)==null?void 0:j.length)>0&&d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsxs("h3",{className:"text-sm font-semibold flex items-center gap-2",children:[d.jsx(pD,{size:14,className:"text-gray-500"}),"Labels"]})}),d.jsx("div",{className:"card-body",children:d.jsx("div",{className:"flex flex-wrap gap-1.5",children:m.labels.map(_=>d.jsx("span",{className:"badge badge-indigo",children:_},_))})})]}),d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsxs("h3",{className:"text-sm font-semibold flex items-center gap-2",children:[d.jsx(dh,{size:14,className:"text-gray-500"}),"Timeline"]})}),d.jsxs("div",{className:"card-body space-y-3",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-2 h-2 rounded-full bg-indigo-500"}),d.jsxs("div",{className:"flex-1",children:[d.jsx("p",{className:"text-xs text-gray-400",children:"Created"}),d.jsx("p",{className:"text-sm",children:new Date(m.created_at).toLocaleString()})]})]}),m.analysis_completed_at&&d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-2 h-2 rounded-full bg-emerald-500"}),d.jsxs("div",{className:"flex-1",children:[d.jsx("p",{className:"text-xs text-gray-400",children:"Analyzed"}),d.jsx("p",{className:"text-sm",children:new Date(m.analysis_completed_at).toLocaleString()})]})]}),m.pr_url&&d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-2 h-2 rounded-full bg-purple-500"}),d.jsxs("div",{className:"flex-1",children:[d.jsx("p",{className:"text-xs text-gray-400",children:"PR Created"}),d.jsx("p",{className:"text-sm",children:"Pull request generated"})]})]})]})]})]})]})]})}const Bj={jira_cloud:{name:"JIRA Cloud",color:"from-blue-600 to-blue-700",icon:"🔵",desc:"Atlassian JIRA Cloud integration"},servicenow:{name:"ServiceNow",color:"from-emerald-600 to-emerald-700",icon:"⚙️",desc:"ServiceNow ITSM platform"},github:{name:"GitHub",color:"from-gray-700 to-gray-800",icon:"🐙",desc:"GitHub issues and repositories"},gitlab:{name:"GitLab",color:"from-orange-600 to-orange-700",icon:"🦊",desc:"GitLab issues and merge requests"},zendesk:{name:"Zendesk",color:"from-green-600 to-green-700",icon:"💚",desc:"Zendesk support tickets"},slack:{name:"Slack",color:"from-purple-600 to-purple-700",icon:"💬",desc:"Slack notifications and alerts"}};function jse(){const{currentOrg:e}=Zt(),t=ih(),[r,n]=A.useState(!1),{data:i,isLoading:a}=Ai({queryKey:["integrations",e==null?void 0:e.id],queryFn:()=>Bp.list(e.id),enabled:!!e}),o=Mf({mutationFn:u=>Bp.test(e.id,u)}),s=Mf({mutationFn:u=>Bp.delete(e.id,u),onSuccess:()=>t.invalidateQueries(["integrations"])});if(!e)return d.jsx("div",{className:"flex items-center justify-center h-full p-8",children:d.jsx("p",{className:"text-gray-500",children:"Select an organization"})});const l=(i==null?void 0:i.data)||[];return d.jsxs("div",{className:"p-6 animate-fade-in",children:[d.jsxs("div",{className:"page-header",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"page-title",children:"Integrations"}),d.jsx("p",{className:"page-subtitle",children:"Connect your tools to start analyzing issues"})]}),d.jsxs("button",{onClick:()=>n(!r),className:"btn btn-primary",children:[d.jsx(Ei,{size:16})," Add Integration"]})]}),l.length>0&&d.jsxs("div",{className:"mb-8",children:[d.jsx("h2",{className:"text-sm font-semibold text-gray-400 uppercase tracking-wide mb-3",children:"Active Connections"}),d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:l.map(u=>{const f=Bj[u.platform]||{name:u.platform,color:"from-gray-600 to-gray-700",icon:"🔌"};return d.jsxs("div",{className:"card overflow-hidden",children:[d.jsx("div",{className:_e("h-1.5 bg-gradient-to-r",f.color)}),d.jsxs("div",{className:"p-5",children:[d.jsxs("div",{className:"flex items-start justify-between mb-3",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("span",{className:"text-2xl",children:f.icon}),d.jsxs("div",{children:[d.jsx("h3",{className:"font-semibold text-white",children:u.name||f.name}),d.jsx("p",{className:"text-xs text-gray-500",children:f.name})]})]}),d.jsx("span",{className:_e("badge",u.is_active?"badge-green":"badge-red"),children:u.is_active?d.jsxs(d.Fragment,{children:[d.jsx(ki,{size:10})," Active"]}):d.jsxs(d.Fragment,{children:[d.jsx(k0,{size:10})," Inactive"]})})]}),u.base_url&&d.jsx("p",{className:"text-xs text-gray-500 font-mono mb-3 truncate",children:u.base_url}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs("button",{onClick:()=>o.mutate(u.id),disabled:o.isPending,className:"btn btn-secondary btn-sm flex-1",children:[o.isPending?d.jsx(jr,{size:12,className:"animate-spin"}):d.jsx(gD,{size:12}),"Test"]}),d.jsxs("button",{className:"btn btn-secondary btn-sm flex-1",children:[d.jsx(jk,{size:12})," Configure"]}),d.jsx("button",{onClick:()=>s.mutate(u.id),className:"btn btn-danger btn-sm btn-icon",children:d.jsx(Pk,{size:12})})]})]})]},u.id)})})]}),d.jsxs("div",{children:[d.jsx("h2",{className:"text-sm font-semibold text-gray-400 uppercase tracking-wide mb-3",children:"Available Platforms"}),d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:Object.entries(Bj).map(([u,f])=>{const c=l.some(h=>h.platform===u);return d.jsxs("div",{className:"card-hover p-5",children:[d.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[d.jsx("div",{className:_e("w-10 h-10 rounded-xl bg-gradient-to-br flex items-center justify-center text-lg",f.color),children:f.icon}),d.jsxs("div",{children:[d.jsx("h3",{className:"font-semibold text-white",children:f.name}),d.jsx("p",{className:"text-xs text-gray-500",children:f.desc})]})]}),d.jsx("button",{className:_e("btn w-full btn-sm",c?"btn-secondary":"btn-primary"),children:c?d.jsxs(d.Fragment,{children:[d.jsx(ki,{size:14})," Connected"]}):d.jsxs(d.Fragment,{children:[d.jsx(Ei,{size:14})," Connect"]})})]},u)})})]})]})}const xm={owner:{label:"Owner",badge:"badge-yellow",icon:_3},admin:{label:"Admin",badge:"badge-red",icon:_k},member:{label:"Member",badge:"badge-blue",icon:kD},viewer:{label:"Viewer",badge:"badge-gray",icon:Uy}},_se=()=>d.jsxs("div",{className:"flex items-center gap-4 px-5 py-4 table-row",children:[d.jsx("div",{className:"skeleton w-9 h-9 rounded-lg"}),d.jsxs("div",{className:"flex-1 space-y-1.5",children:[d.jsx("div",{className:"skeleton h-4 w-32"}),d.jsx("div",{className:"skeleton h-3 w-48"})]}),d.jsx("div",{className:"skeleton h-5 w-16 rounded-md"})]});function Pse(){const{currentOrg:e}=Zt(),{data:t,isLoading:r}=Ai({queryKey:["org-members",e==null?void 0:e.id],queryFn:()=>ch.members(e.id),enabled:!!e});if(!e)return d.jsx("div",{className:"flex items-center justify-center h-full p-8",children:d.jsx("p",{className:"text-gray-500",children:"Select an organization"})});const n=(t==null?void 0:t.data)||[],i={};return n.forEach(a=>{const o=a.role||"member";i[o]||(i[o]=[]),i[o].push(a)}),d.jsxs("div",{className:"p-6 animate-fade-in",children:[d.jsxs("div",{className:"page-header",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"page-title",children:"Team"}),d.jsxs("p",{className:"page-subtitle",children:[n.length," member",n.length!==1?"s":""," in ",e.name]})]}),d.jsxs("button",{className:"btn btn-primary",children:[d.jsx(Ei,{size:16})," Invite Member"]})]}),d.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-6",children:Object.entries(xm).map(([a,o])=>{var u;const s=o.icon,l=((u=i[a])==null?void 0:u.length)||0;return d.jsx("div",{className:"stat-card",children:d.jsxs("div",{className:"flex items-center justify-between relative z-10",children:[d.jsxs("div",{children:[d.jsxs("p",{className:"text-xs font-medium text-gray-400 uppercase tracking-wide",children:[o.label,"s"]}),d.jsx("p",{className:"text-2xl font-bold text-white mt-1",children:l})]}),d.jsx(s,{size:18,className:"text-gray-600"})]})},a)})}),d.jsxs("div",{className:"card overflow-hidden",children:[d.jsxs("div",{className:"flex items-center gap-4 px-5 py-3 border-b border-gray-800/50 text-xs font-medium text-gray-500 uppercase tracking-wide",children:[d.jsx("div",{className:"w-9"}),d.jsx("div",{className:"flex-1",children:"Member"}),d.jsx("div",{className:"w-24",children:"Role"}),d.jsx("div",{className:"w-32",children:"Joined"}),d.jsx("div",{className:"w-8"})]}),r?Array(3).fill(0).map((a,o)=>d.jsx(_se,{},o)):n.length===0?d.jsxs("div",{className:"flex flex-col items-center justify-center py-16",children:[d.jsx("div",{className:"w-14 h-14 rounded-2xl bg-gray-800/50 flex items-center justify-center mb-3",children:d.jsx(Ak,{size:24,className:"text-gray-600"})}),d.jsx("p",{className:"text-gray-400 font-medium",children:"No team members"}),d.jsx("p",{className:"text-gray-600 text-sm mt-1",children:"Invite your team to collaborate"})]}):n.map(a=>{var l,u,f,c;const o=xm[a.role]||xm.member,s=o.icon;return d.jsxs("div",{className:"flex items-center gap-4 px-5 py-3.5 table-row group",children:[d.jsx("div",{className:"w-9 h-9 rounded-lg bg-gradient-to-br from-indigo-500 to-purple-600 flex items-center justify-center text-xs font-semibold text-white flex-shrink-0",children:((u=(l=a.full_name)==null?void 0:l[0])==null?void 0:u.toUpperCase())||((c=(f=a.email)==null?void 0:f[0])==null?void 0:c.toUpperCase())||"?"}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"text-sm font-medium text-gray-200 truncate",children:a.full_name||"Unnamed"}),d.jsxs("p",{className:"text-xs text-gray-500 flex items-center gap-1",children:[d.jsx(ph,{size:10})," ",a.email]})]}),d.jsx("div",{className:"w-24",children:d.jsxs("span",{className:_e("badge text-[10px]",o.badge),children:[d.jsx(s,{size:10}),o.label]})}),d.jsx("div",{className:"w-32 text-xs text-gray-500",children:a.joined_at?new Date(a.joined_at).toLocaleDateString():"—"}),d.jsx("div",{className:"w-8",children:d.jsx("button",{className:"btn btn-ghost btn-icon opacity-0 group-hover:opacity-100",children:d.jsx(E3,{size:14})})})]},a.id||a.user_id)})]})]})}const Fj=({active:e,payload:t,label:r})=>!e||!t?null:d.jsxs("div",{className:"bg-gray-900 border border-gray-700 rounded-lg px-3 py-2 shadow-xl text-xs",children:[d.jsx("p",{className:"text-gray-400 mb-1",children:r}),t.map((n,i)=>d.jsxs("p",{className:"text-white font-medium",children:[d.jsx("span",{className:"inline-block w-2 h-2 rounded-full mr-1.5",style:{backgroundColor:n.color}}),n.name,": ",n.value]},i))]});function Ase(){const{currentOrg:e}=Zt(),[t,r]=A.useState(30),{data:n,isLoading:i}=Ai({queryKey:["report-summary",e==null?void 0:e.id,t],queryFn:()=>Dy.summary(e.id,t),enabled:!!e}),a=async()=>{try{const l=await Dy.exportCsv(e.id,t),u=URL.createObjectURL(new Blob([l.data])),f=document.createElement("a");f.href=u,f.download=`report-${e.name}-${t}days.csv`,f.click(),URL.revokeObjectURL(u)}catch(l){console.error(l)}};if(!e)return d.jsx("div",{className:"flex items-center justify-center h-full p-8",children:d.jsx("p",{className:"text-gray-500",children:"Select an organization"})});const o=(n==null?void 0:n.data)||{},s=[{label:"Total Processed",value:o.total_issues||0,icon:gk,color:"text-indigo-400",bg:"bg-indigo-500/10"},{label:"Success Rate",value:o.success_rate?`${(o.success_rate*100).toFixed(0)}%`:"N/A",icon:ki,color:"text-emerald-400",bg:"bg-emerald-500/10"},{label:"Avg Resolution",value:o.avg_resolution_hours?`${o.avg_resolution_hours.toFixed(1)}h`:"N/A",icon:dh,color:"text-amber-400",bg:"bg-amber-500/10"},{label:"Error Rate",value:o.error_rate?`${(o.error_rate*100).toFixed(1)}%`:"0%",icon:PD,color:"text-red-400",bg:"bg-red-500/10"}];return d.jsxs("div",{className:"p-6 animate-fade-in",children:[d.jsxs("div",{className:"page-header",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"page-title",children:"Reports & Analytics"}),d.jsx("p",{className:"page-subtitle",children:"Performance metrics and insights"})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("div",{className:"flex items-center gap-1 bg-gray-900 border border-gray-800 rounded-lg p-0.5",children:[7,14,30,90].map(l=>d.jsxs("button",{onClick:()=>r(l),className:_e("px-3 py-1.5 rounded-md text-xs font-medium transition-all",t===l?"bg-indigo-600 text-white":"text-gray-400 hover:text-white"),children:[l,"d"]},l))}),d.jsxs("button",{onClick:a,className:"btn btn-secondary btn-sm",children:[d.jsx(A3,{size:14})," Export CSV"]})]})]}),d.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:s.map(l=>{const u=l.icon;return d.jsx("div",{className:"stat-card",children:d.jsxs("div",{className:"flex items-center justify-between relative z-10",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-xs font-medium text-gray-400 uppercase tracking-wide",children:l.label}),d.jsx("p",{className:"text-2xl font-bold text-white mt-1",children:i?"—":l.value})]}),d.jsx("div",{className:_e("w-11 h-11 rounded-xl flex items-center justify-center",l.bg),children:d.jsx(u,{size:20,className:l.color})})]})},l.label)})}),d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsx("h3",{className:"text-sm font-semibold",children:"Daily Volume"})}),d.jsx("div",{className:"card-body",children:d.jsx("div",{className:"h-64",children:i?d.jsx("div",{className:"skeleton h-full w-full rounded-lg"}):d.jsx(Pl,{width:"100%",height:"100%",children:d.jsxs(yC,{data:o.daily_breakdown||[],children:[d.jsx("defs",{children:d.jsxs("linearGradient",{id:"rptTotal",x1:"0",y1:"0",x2:"0",y2:"1",children:[d.jsx("stop",{offset:"5%",stopColor:"#6366f1",stopOpacity:.3}),d.jsx("stop",{offset:"95%",stopColor:"#6366f1",stopOpacity:0})]})}),d.jsx($u,{strokeDasharray:"3 3",stroke:"#1e1e2a"}),d.jsx(Ni,{dataKey:"date",tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),d.jsx(Ci,{tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),d.jsx(Wt,{content:d.jsx(Fj,{})}),d.jsx(sn,{type:"monotone",dataKey:"total",stroke:"#6366f1",fill:"url(#rptTotal)",strokeWidth:2,name:"Issues"})]})})})})]}),d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsx("h3",{className:"text-sm font-semibold",children:"Resolution by Source"})}),d.jsx("div",{className:"card-body",children:d.jsx("div",{className:"h-64",children:i?d.jsx("div",{className:"skeleton h-full w-full rounded-lg"}):d.jsx(Pl,{width:"100%",height:"100%",children:d.jsxs(mC,{data:Object.entries(o.by_source||{}).map(([l,u])=>({name:l.replace("_"," ").replace(/\b\w/g,f=>f.toUpperCase()),value:u})),layout:"vertical",children:[d.jsx($u,{strokeDasharray:"3 3",stroke:"#1e1e2a",horizontal:!1}),d.jsx(Ni,{type:"number",tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),d.jsx(Ci,{type:"category",dataKey:"name",tick:{fill:"#8888a0",fontSize:12},width:100,tickLine:!1,axisLine:!1}),d.jsx(Wt,{content:d.jsx(Fj,{})}),d.jsx(Fi,{dataKey:"value",fill:"#6366f1",radius:[0,6,6,0],barSize:20,name:"Issues"})]})})})})]})]})]})}const kse=[{id:"general",label:"General",icon:$a},{id:"ai",label:"AI Configuration",icon:Df},{id:"notifications",label:"Notifications",icon:vk},{id:"security",label:"Security",icon:_k},{id:"api",label:"API Keys",icon:wk},{id:"webhooks",label:"Webhooks",icon:xk}],wm=[{id:"openrouter",name:"OpenRouter",baseUrl:"https://openrouter.ai/api/v1",models:[{id:"meta-llama/llama-3.3-70b-instruct",name:"Llama 3.3 70B (Free)"},{id:"anthropic/claude-3.5-sonnet",name:"Claude 3.5 Sonnet"},{id:"openai/gpt-4o",name:"GPT-4o"},{id:"google/gemini-pro-1.5",name:"Gemini Pro 1.5"}]},{id:"anthropic",name:"Anthropic",baseUrl:"https://api.anthropic.com/v1",models:[{id:"claude-3-5-sonnet-20241022",name:"Claude 3.5 Sonnet"},{id:"claude-3-opus-20240229",name:"Claude 3 Opus"},{id:"claude-3-haiku-20240307",name:"Claude 3 Haiku (Fast)"}]},{id:"openai",name:"OpenAI",baseUrl:"https://api.openai.com/v1",models:[{id:"gpt-4o",name:"GPT-4o"},{id:"gpt-4o-mini",name:"GPT-4o Mini (Fast)"},{id:"gpt-4-turbo",name:"GPT-4 Turbo"}]},{id:"google",name:"Google AI",baseUrl:"https://generativelanguage.googleapis.com/v1beta",models:[{id:"gemini-1.5-pro",name:"Gemini 1.5 Pro"},{id:"gemini-1.5-flash",name:"Gemini 1.5 Flash (Fast)"}]},{id:"groq",name:"Groq",baseUrl:"https://api.groq.com/openai/v1",models:[{id:"llama-3.3-70b-versatile",name:"Llama 3.3 70B"},{id:"mixtral-8x7b-32768",name:"Mixtral 8x7B"}]}];function Ese(){const{currentOrg:e}=Zt(),[t,r]=A.useState("general"),[n,i]=A.useState(!1),[a,o]=A.useState(!1),[s,l]=A.useState({provider:"openrouter",apiKey:"",model:"meta-llama/llama-3.3-70b-instruct",autoAnalyze:!0,autoCreatePR:!0,confidenceThreshold:70}),[u,f]=A.useState(!1),[c,h]=A.useState(!1),[p,m]=A.useState(null),[y,v]=A.useState(!0);A.useEffect(()=>{e&&g()},[e]);const g=async()=>{var S;try{const j=await Oe.get(`/organizations/${e.id}/settings`);(S=j.data)!=null&&S.ai_config&&l(_=>({..._,...j.data.ai_config}))}catch{}finally{v(!1)}},b=async()=>{i(!0);try{await Oe.put(`/organizations/${e.id}/settings`,{ai_config:s}),m({type:"success",message:"Configuration saved!"})}catch{m({type:"error",message:"Failed to save configuration"})}finally{i(!1)}},x=async()=>{var S,j;h(!0),m(null);try{const _=await Oe.post(`/organizations/${e.id}/test-llm`,{provider:s.provider,api_key:s.apiKey,model:s.model});m({type:"success",message:"Connection successful! API key is valid."})}catch(_){m({type:"error",message:((j=(S=_.response)==null?void 0:S.data)==null?void 0:j.detail)||"Connection failed. Check your API key."})}finally{h(!1)}},O=wm.find(S=>S.id===s.provider);if(!e)return d.jsx("div",{className:"flex items-center justify-center h-full p-8",children:d.jsx("p",{className:"text-gray-500",children:"Select an organization"})});const w=async()=>{i(!0),await new Promise(S=>setTimeout(S,1e3)),i(!1)};return d.jsxs("div",{className:"p-6 animate-fade-in",children:[d.jsx("div",{className:"page-header",children:d.jsxs("div",{children:[d.jsx("h1",{className:"page-title",children:"Settings"}),d.jsx("p",{className:"page-subtitle",children:"Manage your organization settings"})]})}),d.jsxs("div",{className:"flex gap-6",children:[d.jsx("div",{className:"w-52 flex-shrink-0",children:d.jsx("div",{className:"space-y-0.5",children:kse.map(S=>{const j=S.icon;return d.jsxs("button",{onClick:()=>r(S.id),className:_e("w-full sidebar-item",t===S.id?"sidebar-item-active":"sidebar-item-inactive"),children:[d.jsx(j,{size:16}),d.jsx("span",{children:S.label})]},S.id)})})}),d.jsxs("div",{className:"flex-1 max-w-2xl",children:[t==="general"&&d.jsxs("div",{className:"card animate-fade-in",children:[d.jsx("div",{className:"card-header",children:d.jsx("h3",{className:"text-sm font-semibold",children:"Organization Details"})}),d.jsxs("div",{className:"card-body space-y-5",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Organization Name"}),d.jsx("input",{defaultValue:e.name,className:"input",placeholder:"My Organization"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Slug"}),d.jsx("input",{defaultValue:e.slug||"",className:"input font-mono",placeholder:"my-org"})]}),d.jsx("div",{className:"pt-3 border-t border-gray-800",children:d.jsxs("button",{onClick:w,disabled:n,className:"btn btn-primary",children:[n?d.jsx(jr,{size:14,className:"animate-spin"}):d.jsx(Up,{size:14}),"Save Changes"]})})]})]}),t==="ai"&&d.jsxs("div",{className:"space-y-6 animate-fade-in",children:[d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsxs("h3",{className:"text-sm font-semibold flex items-center gap-2",children:[d.jsx(Df,{size:16,className:"text-indigo-400"}),"AI Provider Configuration"]})}),d.jsxs("div",{className:"card-body space-y-5",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Provider"}),d.jsx("select",{value:s.provider,onChange:S=>{var _;const j=wm.find(P=>P.id===S.target.value);l({...s,provider:S.target.value,model:((_=j==null?void 0:j.models[0])==null?void 0:_.id)||""}),m(null)},className:"input",children:wm.map(S=>d.jsx("option",{value:S.id,children:S.name},S.id))})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"API Key"}),d.jsxs("div",{className:"relative",children:[d.jsx("input",{type:u?"text":"password",value:s.apiKey,onChange:S=>{l({...s,apiKey:S.target.value}),m(null)},className:"input pr-20 font-mono",placeholder:`Enter your ${O==null?void 0:O.name} API key`}),d.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 flex items-center gap-1",children:d.jsx("button",{type:"button",onClick:()=>f(!u),className:"p-1 text-gray-500 hover:text-gray-300",children:u?d.jsx(z1,{size:14}):d.jsx(Uy,{size:14})})})]}),d.jsxs("p",{className:"text-xs text-gray-600 mt-1",children:["Get your API key from"," ",d.jsxs("a",{href:(O==null?void 0:O.id)==="openrouter"?"https://openrouter.ai/keys":(O==null?void 0:O.id)==="anthropic"?"https://console.anthropic.com/settings/keys":(O==null?void 0:O.id)==="openai"?"https://platform.openai.com/api-keys":(O==null?void 0:O.id)==="google"?"https://aistudio.google.com/app/apikey":"https://console.groq.com/keys",target:"_blank",rel:"noopener noreferrer",className:"text-indigo-400 hover:text-indigo-300",children:[O==null?void 0:O.name," dashboard"]})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Model"}),d.jsx("select",{value:s.model,onChange:S=>l({...s,model:S.target.value}),className:"input",children:O==null?void 0:O.models.map(S=>d.jsx("option",{value:S.id,children:S.name},S.id))})]}),d.jsxs("div",{className:"flex items-center gap-3 pt-3 border-t border-gray-800",children:[d.jsxs("button",{onClick:x,disabled:c||!s.apiKey,className:"btn btn-secondary",children:[c?d.jsx(jr,{size:14,className:"animate-spin"}):d.jsx(Ok,{size:14}),"Test Connection"]}),p&&d.jsxs("div",{className:_e("flex items-center gap-2 text-sm",p.type==="success"?"text-green-400":"text-red-400"),children:[p.type==="success"?d.jsx(bk,{size:14}):d.jsx(Lf,{size:14}),p.message]})]})]})]}),d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsx("h3",{className:"text-sm font-semibold",children:"Analysis Settings"})}),d.jsxs("div",{className:"card-body space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between py-2",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-gray-200",children:"Auto-analyze new issues"}),d.jsx("p",{className:"text-xs text-gray-500",children:"Automatically analyze issues when received"})]}),d.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[d.jsx("input",{type:"checkbox",checked:s.autoAnalyze,onChange:S=>l({...s,autoAnalyze:S.target.checked}),className:"sr-only peer"}),d.jsx("div",{className:"w-9 h-5 bg-gray-700 rounded-full peer peer-checked:bg-indigo-600 after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:after:translate-x-4"})]})]}),d.jsxs("div",{className:"flex items-center justify-between py-2",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-gray-200",children:"Auto-create Pull Requests"}),d.jsx("p",{className:"text-xs text-gray-500",children:"Create PRs automatically for high-confidence fixes"})]}),d.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[d.jsx("input",{type:"checkbox",checked:s.autoCreatePR,onChange:S=>l({...s,autoCreatePR:S.target.checked}),className:"sr-only peer"}),d.jsx("div",{className:"w-9 h-5 bg-gray-700 rounded-full peer peer-checked:bg-indigo-600 after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:after:translate-x-4"})]})]}),d.jsxs("div",{children:[d.jsxs("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:["Confidence Threshold for Auto-PR (",s.confidenceThreshold,"%)"]}),d.jsx("input",{type:"range",min:"50",max:"95",step:"5",value:s.confidenceThreshold,onChange:S=>l({...s,confidenceThreshold:parseInt(S.target.value)}),className:"w-full h-2 bg-gray-700 rounded-lg appearance-none cursor-pointer accent-indigo-600"}),d.jsxs("div",{className:"flex justify-between text-xs text-gray-600 mt-1",children:[d.jsx("span",{children:"50% (More PRs)"}),d.jsx("span",{children:"95% (Higher quality)"})]})]})]})]}),d.jsx("div",{className:"flex justify-end",children:d.jsxs("button",{onClick:b,disabled:n,className:"btn btn-primary",children:[n?d.jsx(jr,{size:14,className:"animate-spin"}):d.jsx(Up,{size:14}),"Save AI Configuration"]})})]}),t==="notifications"&&d.jsxs("div",{className:"card animate-fade-in",children:[d.jsx("div",{className:"card-header",children:d.jsx("h3",{className:"text-sm font-semibold",children:"Notification Preferences"})}),d.jsxs("div",{className:"card-body space-y-4",children:[[{label:"New issue received",desc:"When a new issue arrives from an integration"},{label:"Analysis completed",desc:"When AI finishes analyzing an issue"},{label:"PR created",desc:"When a Pull Request is automatically generated"},{label:"Analysis error",desc:"When AI fails to analyze an issue"},{label:"Daily digest",desc:"Summary of daily activity"}].map(S=>d.jsxs("div",{className:"flex items-center justify-between py-2",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-gray-200",children:S.label}),d.jsx("p",{className:"text-xs text-gray-500",children:S.desc})]}),d.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[d.jsx("input",{type:"checkbox",defaultChecked:!0,className:"sr-only peer"}),d.jsx("div",{className:"w-9 h-5 bg-gray-700 rounded-full peer peer-checked:bg-indigo-600 after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:after:translate-x-4"})]})]},S.label)),d.jsxs("div",{className:"pt-3 border-t border-gray-800",children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Notification Email"}),d.jsxs("div",{className:"flex gap-2",children:[d.jsxs("div",{className:"relative flex-1",children:[d.jsx(ph,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),d.jsx("input",{className:"input pl-10",placeholder:"team@company.com"})]}),d.jsx("button",{className:"btn btn-primary btn-sm",children:d.jsx(Up,{size:14})})]})]})]})]}),t==="security"&&d.jsxs("div",{className:"card animate-fade-in",children:[d.jsx("div",{className:"card-header",children:d.jsx("h3",{className:"text-sm font-semibold",children:"Security Settings"})}),d.jsxs("div",{className:"card-body space-y-5",children:[d.jsxs("div",{className:"flex items-center justify-between py-2",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-gray-200",children:"Two-Factor Authentication"}),d.jsx("p",{className:"text-xs text-gray-500",children:"Require 2FA for all organization members"})]}),d.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[d.jsx("input",{type:"checkbox",className:"sr-only peer"}),d.jsx("div",{className:"w-9 h-5 bg-gray-700 rounded-full peer peer-checked:bg-indigo-600 after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:after:translate-x-4"})]})]}),d.jsxs("div",{className:"flex items-center justify-between py-2",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-gray-200",children:"SSO / SAML"}),d.jsx("p",{className:"text-xs text-gray-500",children:"Enable Single Sign-On with your identity provider"})]}),d.jsx("span",{className:"badge badge-gray",children:"Enterprise"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"IP Allowlist"}),d.jsx("textarea",{className:"input h-20 resize-none font-mono text-xs",placeholder:`192.168.1.0/24 -10.0.0.0/8`}),d.jsx("p",{className:"text-xs text-gray-600 mt-1",children:"One CIDR per line. Leave empty to allow all."})]})]})]}),t==="api"&&d.jsxs("div",{className:"card animate-fade-in",children:[d.jsxs("div",{className:"card-header",children:[d.jsx("h3",{className:"text-sm font-semibold",children:"API Keys"}),d.jsxs("button",{className:"btn btn-primary btn-sm",children:[d.jsx(Ei,{size:14})," Create Key"]})]}),d.jsxs("div",{className:"card-body",children:[d.jsx("div",{className:"space-y-3",children:d.jsxs("div",{className:"flex items-center gap-3 p-3 bg-gray-900/50 rounded-lg border border-gray-800/50",children:[d.jsx(wk,{size:16,className:"text-gray-500"}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"text-sm font-medium",children:"Production API Key"}),d.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[d.jsx("code",{className:"text-xs text-gray-500 font-mono",children:a?"jaf_live_sk_a1b2c3d4e5f6...":"jaf_live_sk_••••••••••••..."}),d.jsx("button",{onClick:()=>o(!a),className:"text-gray-500 hover:text-gray-300",children:a?d.jsx(z1,{size:12}):d.jsx(Uy,{size:12})}),d.jsx("button",{className:"text-gray-500 hover:text-gray-300",children:d.jsx(Fy,{size:12})})]})]}),d.jsx("span",{className:"badge badge-green text-[10px]",children:"Active"}),d.jsx("button",{className:"btn btn-danger btn-sm btn-icon",children:d.jsx(Pk,{size:12})})]})}),d.jsxs("div",{className:"mt-4 p-4 bg-gray-950 rounded-lg border border-gray-800",children:[d.jsxs("h4",{className:"text-xs font-semibold text-gray-400 mb-2 flex items-center gap-1.5",children:[d.jsx(By,{size:12})," Quick Start"]}),d.jsx("pre",{className:"text-xs text-gray-400 font-mono overflow-x-auto",children:`curl -X POST https://jira-fixer.startdata.com.br/api/issues \\ - -H "Authorization: Bearer YOUR_API_KEY" \\ - -H "Content-Type: application/json" \\ - -d '{"title": "Bug fix needed", "source": "api"}'`})]})]})]}),t==="webhooks"&&d.jsxs("div",{className:"card animate-fade-in",children:[d.jsxs("div",{className:"card-header",children:[d.jsx("h3",{className:"text-sm font-semibold",children:"Webhook Endpoints"}),d.jsxs("button",{className:"btn btn-primary btn-sm",children:[d.jsx(Ei,{size:14})," Add Endpoint"]})]}),d.jsxs("div",{className:"card-body",children:[d.jsxs("div",{className:"p-4 bg-gray-900/50 rounded-lg border border-gray-800/50 mb-4",children:[d.jsx("h4",{className:"text-xs font-semibold text-gray-400 mb-2",children:"Incoming Webhook URLs"}),d.jsx("div",{className:"space-y-2",children:["tickethub","jira","servicenow","github","gitlab","gitea"].map(S=>d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs("span",{className:"text-xs text-gray-500 w-24 capitalize",children:[S,":"]}),d.jsxs("code",{className:"text-xs text-indigo-400 font-mono flex-1 truncate",children:["https://jira-fixer.startdata.com.br/api/webhooks/",e.id,"/",S]}),d.jsx("button",{className:"text-gray-500 hover:text-gray-300",children:d.jsx(Fy,{size:12})})]},S))})]}),d.jsxs("div",{className:"text-center py-6 text-gray-500",children:[d.jsx(xk,{size:24,className:"mx-auto mb-2 text-gray-600"}),d.jsx("p",{className:"text-sm",children:"No outgoing webhook endpoints configured"}),d.jsx("p",{className:"text-xs text-gray-600 mt-1",children:"Add endpoints to receive event notifications"})]})]})]})]})]})]})}function Uj({children:e}){const{user:t,loading:r}=Zt();return r?d.jsx("div",{className:"flex items-center justify-center h-screen",children:"Loading..."}):t?e:d.jsx(yy,{to:"/login"})}function Nse({children:e}){const{user:t,currentOrg:r,loading:n}=Zt();return n?d.jsx("div",{className:"flex items-center justify-center h-screen",children:"Loading..."}):t?r?e:d.jsx(yy,{to:"/select-organization"}):d.jsx(yy,{to:"/login"})}function Cse(){return d.jsxs(BM,{children:[d.jsx(tr,{path:"/login",element:d.jsx(RD,{})}),d.jsx(tr,{path:"/register",element:d.jsx(DD,{})}),d.jsx(tr,{path:"/select-organization",element:d.jsx(Uj,{children:d.jsx(LD,{})})}),d.jsx(tr,{path:"/create-organization",element:d.jsx(Uj,{children:d.jsx(zD,{})})}),d.jsxs(tr,{path:"/",element:d.jsx(Nse,{children:d.jsx(ID,{})}),children:[d.jsx(tr,{index:!0,element:d.jsx(gse,{})}),d.jsx(tr,{path:"issues",element:d.jsx(wse,{})}),d.jsx(tr,{path:"issues/:id",element:d.jsx(Ose,{})}),d.jsx(tr,{path:"integrations",element:d.jsx(jse,{})}),d.jsx(tr,{path:"team",element:d.jsx(Pse,{})}),d.jsx(tr,{path:"reports",element:d.jsx(Ase,{})}),d.jsx(tr,{path:"settings",element:d.jsx(Ese,{})})]})]})}const Tse=new xI({defaultOptions:{queries:{staleTime:3e4,retry:1}}});Sm.createRoot(document.getElementById("root")).render(d.jsx(k.StrictMode,{children:d.jsx(wI,{client:Tse,children:d.jsx(VM,{children:d.jsx(c4,{children:d.jsx(Cse,{})})})})})); diff --git a/frontend_build/assets/index-CfAFg710.js b/frontend_build/assets/index-CfAFg710.js new file mode 100644 index 0000000..643f149 --- /dev/null +++ b/frontend_build/assets/index-CfAFg710.js @@ -0,0 +1,497 @@ +var Wb=e=>{throw TypeError(e)};var dp=(e,t,r)=>t.has(e)||Wb("Cannot "+r);var E=(e,t,r)=>(dp(e,t,"read from private field"),r?r.call(e):t.get(e)),re=(e,t,r)=>t.has(e)?Wb("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Q=(e,t,r,n)=>(dp(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),de=(e,t,r)=>(dp(e,t,"access private method"),r);var lc=(e,t,r,n)=>({set _(i){Q(e,t,i,r)},get _(){return E(e,t,n)}});function wC(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var uc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ae(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i_={exports:{}},qd={},a_={exports:{}},pe={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Hu=Symbol.for("react.element"),SC=Symbol.for("react.portal"),OC=Symbol.for("react.fragment"),jC=Symbol.for("react.strict_mode"),_C=Symbol.for("react.profiler"),PC=Symbol.for("react.provider"),AC=Symbol.for("react.context"),kC=Symbol.for("react.forward_ref"),EC=Symbol.for("react.suspense"),NC=Symbol.for("react.memo"),CC=Symbol.for("react.lazy"),Hb=Symbol.iterator;function TC(e){return e===null||typeof e!="object"?null:(e=Hb&&e[Hb]||e["@@iterator"],typeof e=="function"?e:null)}var o_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},s_=Object.assign,l_={};function Os(e,t,r){this.props=e,this.context=t,this.refs=l_,this.updater=r||o_}Os.prototype.isReactComponent={};Os.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Os.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function u_(){}u_.prototype=Os.prototype;function xg(e,t,r){this.props=e,this.context=t,this.refs=l_,this.updater=r||o_}var wg=xg.prototype=new u_;wg.constructor=xg;s_(wg,Os.prototype);wg.isPureReactComponent=!0;var qb=Array.isArray,c_=Object.prototype.hasOwnProperty,Sg={current:null},f_={key:!0,ref:!0,__self:!0,__source:!0};function d_(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)c_.call(t,n)&&!f_.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1>>1,H=C[V];if(0>>1;Vi(xe,U))zei(Se,xe)?(C[V]=Se,C[ze]=U,V=ze):(C[V]=xe,C[ie]=U,V=ie);else if(zei(Se,U))C[V]=Se,C[ze]=U,V=ze;else break e}}return F}function i(C,F){var U=C.sortIndex-F.sortIndex;return U!==0?U:C.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],f=1,c=null,h=3,p=!1,m=!1,y=!1,v=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(C){for(var F=r(u);F!==null;){if(F.callback===null)n(u);else if(F.startTime<=C)n(u),F.sortIndex=F.expirationTime,t(l,F);else break;F=r(u)}}function O(C){if(y=!1,w(C),!m)if(r(l)!==null)m=!0,D(x);else{var F=r(u);F!==null&&B(O,F.startTime-C)}}function x(C,F){m=!1,y&&(y=!1,g(_),_=-1),p=!0;var U=h;try{for(w(F),c=r(l);c!==null&&(!(c.expirationTime>F)||C&&!$());){var V=c.callback;if(typeof V=="function"){c.callback=null,h=c.priorityLevel;var H=V(c.expirationTime<=F);F=e.unstable_now(),typeof H=="function"?c.callback=H:c===r(l)&&n(l),w(F)}else n(l);c=r(l)}if(c!==null)var X=!0;else{var ie=r(u);ie!==null&&B(O,ie.startTime-F),X=!1}return X}finally{c=null,h=U,p=!1}}var S=!1,j=null,_=-1,P=5,N=-1;function $(){return!(e.unstable_now()-NC||125V?(C.sortIndex=U,t(u,C),r(l)===null&&C===r(u)&&(y?(g(_),_=-1):y=!0,B(O,U-V))):(C.sortIndex=H,t(l,C),m||p||(m=!0,D(x))),C},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(C){var F=h;return function(){var U=h;h=F;try{return C.apply(this,arguments)}finally{h=U}}}})(v_);y_.exports=v_;var HC=y_.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var qC=A,cr=HC;function K(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pm=Object.prototype.hasOwnProperty,KC=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Vb={},Gb={};function VC(e){return Pm.call(Gb,e)?!0:Pm.call(Vb,e)?!1:KC.test(e)?Gb[e]=!0:(Vb[e]=!0,!1)}function GC(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function XC(e,t,r,n){if(t===null||typeof t>"u"||GC(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function zt(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var St={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){St[e]=new zt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];St[t]=new zt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){St[e]=new zt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){St[e]=new zt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){St[e]=new zt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){St[e]=new zt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){St[e]=new zt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){St[e]=new zt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){St[e]=new zt(e,5,!1,e.toLowerCase(),null,!1,!1)});var jg=/[\-:]([a-z])/g;function _g(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(jg,_g);St[t]=new zt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(jg,_g);St[t]=new zt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(jg,_g);St[t]=new zt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){St[e]=new zt(e,1,!1,e.toLowerCase(),null,!1,!1)});St.xlinkHref=new zt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){St[e]=new zt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Pg(e,t,r,n){var i=St.hasOwnProperty(t)?St[t]:null;(i!==null?i.type!==0:n||!(2s||i[o]!==a[s]){var l=` +`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{mp=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?fl(e):""}function QC(e){switch(e.tag){case 5:return fl(e.type);case 16:return fl("Lazy");case 13:return fl("Suspense");case 19:return fl("SuspenseList");case 0:case 2:case 15:return e=yp(e.type,!1),e;case 11:return e=yp(e.type.render,!1),e;case 1:return e=yp(e.type,!0),e;default:return""}}function Nm(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case no:return"Fragment";case ro:return"Portal";case Am:return"Profiler";case Ag:return"StrictMode";case km:return"Suspense";case Em:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case x_:return(e.displayName||"Context")+".Consumer";case b_:return(e._context.displayName||"Context")+".Provider";case kg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Eg:return t=e.displayName||null,t!==null?t:Nm(e.type)||"Memo";case Xn:t=e._payload,e=e._init;try{return Nm(e(t))}catch{}}return null}function YC(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Nm(t);case 8:return t===Ag?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Pi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function S_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function JC(e){var t=S_(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function dc(e){e._valueTracker||(e._valueTracker=JC(e))}function O_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=S_(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function df(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Cm(e,t){var r=t.checked;return He({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Qb(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Pi(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function j_(e,t){t=t.checked,t!=null&&Pg(e,"checked",t,!1)}function Tm(e,t){j_(e,t);var r=Pi(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?$m(e,t.type,r):t.hasOwnProperty("defaultValue")&&$m(e,t.type,Pi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Yb(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function $m(e,t,r){(t!=="number"||df(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var dl=Array.isArray;function xo(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=hc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Rl(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var vl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ZC=["Webkit","ms","Moz","O"];Object.keys(vl).forEach(function(e){ZC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),vl[t]=vl[e]})});function k_(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||vl.hasOwnProperty(e)&&vl[e]?(""+t).trim():t+"px"}function E_(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=k_(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var eT=He({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Rm(e,t){if(t){if(eT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(K(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(K(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(K(61))}if(t.style!=null&&typeof t.style!="object")throw Error(K(62))}}function Dm(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Lm=null;function Ng(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zm=null,wo=null,So=null;function ex(e){if(e=Vu(e)){if(typeof zm!="function")throw Error(K(280));var t=e.stateNode;t&&(t=Qd(t),zm(e.stateNode,e.type,t))}}function N_(e){wo?So?So.push(e):So=[e]:wo=e}function C_(){if(wo){var e=wo,t=So;if(So=wo=null,ex(e),t)for(e=0;e>>=0,e===0?32:31-(fT(e)/dT|0)|0}var pc=64,mc=4194304;function hl(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function yf(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var s=o&~i;s!==0?n=hl(s):(a&=o,a!==0&&(n=hl(a)))}else o=r&~i,o!==0?n=hl(o):a!==0&&(n=hl(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function qu(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Fr(t),e[t]=r}function yT(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=bl),ux=" ",cx=!1;function Y_(e,t){switch(e){case"keyup":return HT.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function J_(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var io=!1;function KT(e,t){switch(e){case"compositionend":return J_(t);case"keypress":return t.which!==32?null:(cx=!0,ux);case"textInput":return e=t.data,e===ux&&cx?null:e;default:return null}}function VT(e,t){if(io)return e==="compositionend"||!Lg&&Y_(e,t)?(e=X_(),Qc=Ig=ci=null,io=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=px(r)}}function rP(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rP(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function nP(){for(var e=window,t=df();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=df(e.document)}return t}function zg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function r$(e){var t=nP(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&rP(r.ownerDocument.documentElement,r)){if(n!==null&&zg(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=mx(r,a);var o=mx(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,ao=null,qm=null,wl=null,Km=!1;function yx(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Km||ao==null||ao!==df(n)||(n=ao,"selectionStart"in n&&zg(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),wl&&Ul(wl,n)||(wl=n,n=bf(qm,"onSelect"),0lo||(e.current=Jm[lo],Jm[lo]=null,lo--)}function $e(e,t){lo++,Jm[lo]=e.current,e.current=t}var Ai={},Nt=$i(Ai),Gt=$i(!1),ja=Ai;function Ho(e,t){var r=e.type.contextTypes;if(!r)return Ai;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Xt(e){return e=e.childContextTypes,e!=null}function wf(){Le(Gt),Le(Nt)}function Ox(e,t,r){if(Nt.current!==Ai)throw Error(K(168));$e(Nt,t),$e(Gt,r)}function dP(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(K(108,YC(e)||"Unknown",i));return He({},r,n)}function Sf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ai,ja=Nt.current,$e(Nt,e),$e(Gt,Gt.current),!0}function jx(e,t,r){var n=e.stateNode;if(!n)throw Error(K(169));r?(e=dP(e,t,ja),n.__reactInternalMemoizedMergedChildContext=e,Le(Gt),Le(Nt),$e(Nt,e)):Le(Gt),$e(Gt,r)}var vn=null,Yd=!1,Np=!1;function hP(e){vn===null?vn=[e]:vn.push(e)}function p$(e){Yd=!0,hP(e)}function Mi(){if(!Np&&vn!==null){Np=!0;var e=0,t=Pe;try{var r=vn;for(Pe=1;e>=o,i-=o,Sn=1<<32-Fr(t)+i|r<_?(P=j,j=null):P=j.sibling;var N=h(g,j,w[_],O);if(N===null){j===null&&(j=P);break}e&&j&&N.alternate===null&&t(g,j),b=a(N,b,_),S===null?x=N:S.sibling=N,S=N,j=P}if(_===w.length)return r(g,j),Fe&&Gi(g,_),x;if(j===null){for(;__?(P=j,j=null):P=j.sibling;var $=h(g,j,N.value,O);if($===null){j===null&&(j=P);break}e&&j&&$.alternate===null&&t(g,j),b=a($,b,_),S===null?x=$:S.sibling=$,S=$,j=P}if(N.done)return r(g,j),Fe&&Gi(g,_),x;if(j===null){for(;!N.done;_++,N=w.next())N=c(g,N.value,O),N!==null&&(b=a(N,b,_),S===null?x=N:S.sibling=N,S=N);return Fe&&Gi(g,_),x}for(j=n(g,j);!N.done;_++,N=w.next())N=p(j,g,_,N.value,O),N!==null&&(e&&N.alternate!==null&&j.delete(N.key===null?_:N.key),b=a(N,b,_),S===null?x=N:S.sibling=N,S=N);return e&&j.forEach(function(T){return t(g,T)}),Fe&&Gi(g,_),x}function v(g,b,w,O){if(typeof w=="object"&&w!==null&&w.type===no&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case fc:e:{for(var x=w.key,S=b;S!==null;){if(S.key===x){if(x=w.type,x===no){if(S.tag===7){r(g,S.sibling),b=i(S,w.props.children),b.return=g,g=b;break e}}else if(S.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Xn&&Ax(x)===S.type){r(g,S.sibling),b=i(S,w.props),b.ref=Qs(g,S,w),b.return=g,g=b;break e}r(g,S);break}else t(g,S);S=S.sibling}w.type===no?(b=xa(w.props.children,g.mode,O,w.key),b.return=g,g=b):(O=af(w.type,w.key,w.props,null,g.mode,O),O.ref=Qs(g,b,w),O.return=g,g=O)}return o(g);case ro:e:{for(S=w.key;b!==null;){if(b.key===S)if(b.tag===4&&b.stateNode.containerInfo===w.containerInfo&&b.stateNode.implementation===w.implementation){r(g,b.sibling),b=i(b,w.children||[]),b.return=g,g=b;break e}else{r(g,b);break}else t(g,b);b=b.sibling}b=Lp(w,g.mode,O),b.return=g,g=b}return o(g);case Xn:return S=w._init,v(g,b,S(w._payload),O)}if(dl(w))return m(g,b,w,O);if(qs(w))return y(g,b,w,O);Sc(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,b!==null&&b.tag===6?(r(g,b.sibling),b=i(b,w),b.return=g,g=b):(r(g,b),b=Dp(w,g.mode,O),b.return=g,g=b),o(g)):r(g,b)}return v}var Ko=vP(!0),gP=vP(!1),_f=$i(null),Pf=null,fo=null,Wg=null;function Hg(){Wg=fo=Pf=null}function qg(e){var t=_f.current;Le(_f),e._currentValue=t}function ty(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function jo(e,t){Pf=e,Wg=fo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Kt=!0),e.firstContext=null)}function Pr(e){var t=e._currentValue;if(Wg!==e)if(e={context:e,memoizedValue:t,next:null},fo===null){if(Pf===null)throw Error(K(308));fo=e,Pf.dependencies={lanes:0,firstContext:e}}else fo=fo.next=e;return t}var ta=null;function Kg(e){ta===null?ta=[e]:ta.push(e)}function bP(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,Kg(t)):(r.next=i.next,i.next=r),t.interleaved=r,Mn(e,n)}function Mn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Qn=!1;function Vg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function xP(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function An(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bi(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,be&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Mn(e,r)}return i=n.interleaved,i===null?(t.next=t,Kg(n)):(t.next=i.next,i.next=t),n.interleaved=t,Mn(e,r)}function Jc(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Tg(e,r)}}function kx(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Af(e,t,r,n){var i=e.updateQueue;Qn=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,o===null?a=u:o.next=u,o=l;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==o&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=l))}if(a!==null){var c=i.baseState;o=0,f=u=l=null,s=a;do{var h=s.lane,p=s.eventTime;if((n&h)===h){f!==null&&(f=f.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,y=s;switch(h=t,p=r,y.tag){case 1:if(m=y.payload,typeof m=="function"){c=m.call(p,c,h);break e}c=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=y.payload,h=typeof m=="function"?m.call(p,c,h):m,h==null)break e;c=He({},c,h);break e;case 2:Qn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[s]:h.push(s))}else p={eventTime:p,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=p,l=c):f=f.next=p,o|=h;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;h=s,s=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(f===null&&(l=c),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Aa|=o,e.lanes=o,e.memoizedState=c}}function Ex(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=Tp.transition;Tp.transition={};try{e(!1),t()}finally{Pe=r,Tp.transition=n}}function DP(){return Ar().memoizedState}function g$(e,t,r){var n=wi(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},LP(e))zP(t,r);else if(r=bP(e,t,r,n),r!==null){var i=Dt();Br(r,e,n,i),FP(r,t,n)}}function b$(e,t,r){var n=wi(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(LP(e))zP(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,Wr(s,o)){var l=t.interleaved;l===null?(i.next=i,Kg(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=bP(e,t,i,n),r!==null&&(i=Dt(),Br(r,e,n,i),FP(r,t,n))}}function LP(e){var t=e.alternate;return e===We||t!==null&&t===We}function zP(e,t){Sl=Ef=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function FP(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Tg(e,r)}}var Nf={readContext:Pr,useCallback:Ot,useContext:Ot,useEffect:Ot,useImperativeHandle:Ot,useInsertionEffect:Ot,useLayoutEffect:Ot,useMemo:Ot,useReducer:Ot,useRef:Ot,useState:Ot,useDebugValue:Ot,useDeferredValue:Ot,useTransition:Ot,useMutableSource:Ot,useSyncExternalStore:Ot,useId:Ot,unstable_isNewReconciler:!1},x$={readContext:Pr,useCallback:function(e,t){return Gr().memoizedState=[e,t===void 0?null:t],e},useContext:Pr,useEffect:Cx,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,ef(4194308,4,TP.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ef(4194308,4,e,t)},useInsertionEffect:function(e,t){return ef(4,2,e,t)},useMemo:function(e,t){var r=Gr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Gr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=g$.bind(null,We,e),[n.memoizedState,e]},useRef:function(e){var t=Gr();return e={current:e},t.memoizedState=e},useState:Nx,useDebugValue:t0,useDeferredValue:function(e){return Gr().memoizedState=e},useTransition:function(){var e=Nx(!1),t=e[0];return e=v$.bind(null,e[1]),Gr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=We,i=Gr();if(Fe){if(r===void 0)throw Error(K(407));r=r()}else{if(r=t(),yt===null)throw Error(K(349));Pa&30||jP(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Cx(PP.bind(null,n,a,e),[e]),n.flags|=2048,Ql(9,_P.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=Gr(),t=yt.identifierPrefix;if(Fe){var r=On,n=Sn;r=(n&~(1<<32-Fr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Gl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[Jr]=t,e[ql]=n,QP(e,t,!1,!1),t.stateNode=e;e:{switch(o=Dm(r,n),r){case"dialog":Ie("cancel",e),Ie("close",e),i=n;break;case"iframe":case"object":case"embed":Ie("load",e),i=n;break;case"video":case"audio":for(i=0;iXo&&(t.flags|=128,n=!0,Ys(a,!1),t.lanes=4194304)}else{if(!n)if(e=kf(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ys(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Fe)return jt(t),null}else 2*Xe()-a.renderingStartTime>Xo&&r!==1073741824&&(t.flags|=128,n=!0,Ys(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,r=Ue.current,$e(Ue,n?r&1|2:r&1),t):(jt(t),null);case 22:case 23:return s0(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?ir&1073741824&&(jt(t),t.subtreeFlags&6&&(t.flags|=8192)):jt(t),null;case 24:return null;case 25:return null}throw Error(K(156,t.tag))}function k$(e,t){switch(Bg(t),t.tag){case 1:return Xt(t.type)&&wf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vo(),Le(Gt),Le(Nt),Qg(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Xg(t),null;case 13:if(Le(Ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(K(340));qo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Le(Ue),null;case 4:return Vo(),null;case 10:return qg(t.type._context),null;case 22:case 23:return s0(),null;case 24:return null;default:return null}}var jc=!1,At=!1,E$=typeof WeakSet=="function"?WeakSet:Set,Y=null;function ho(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ve(e,t,n)}else r.current=null}function cy(e,t,r){try{r()}catch(n){Ve(e,t,n)}}var Ux=!1;function N$(e,t){if(Vm=vf,e=nP(),zg(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,s=-1,l=-1,u=0,f=0,c=e,h=null;t:for(;;){for(var p;c!==r||i!==0&&c.nodeType!==3||(s=o+i),c!==a||n!==0&&c.nodeType!==3||(l=o+n),c.nodeType===3&&(o+=c.nodeValue.length),(p=c.firstChild)!==null;)h=c,c=p;for(;;){if(c===e)break t;if(h===r&&++u===i&&(s=o),h===a&&++f===n&&(l=o),(p=c.nextSibling)!==null)break;c=h,h=c.parentNode}c=p}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Gm={focusedElem:e,selectionRange:r},vf=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,v=m.memoizedState,g=t.stateNode,b=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:$r(t.type,y),v);g.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(K(163))}}catch(O){Ve(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return m=Ux,Ux=!1,m}function Ol(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&cy(t,r,a)}i=i.next}while(i!==n)}}function eh(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function fy(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function ZP(e){var t=e.alternate;t!==null&&(e.alternate=null,ZP(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Jr],delete t[ql],delete t[Ym],delete t[d$],delete t[h$])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function eA(e){return e.tag===5||e.tag===3||e.tag===4}function Wx(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||eA(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function dy(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=xf));else if(n!==4&&(e=e.child,e!==null))for(dy(e,t,r),e=e.sibling;e!==null;)dy(e,t,r),e=e.sibling}function hy(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(hy(e,t,r),e=e.sibling;e!==null;)hy(e,t,r),e=e.sibling}var xt=null,Rr=!1;function qn(e,t,r){for(r=r.child;r!==null;)tA(e,t,r),r=r.sibling}function tA(e,t,r){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(Kd,r)}catch{}switch(r.tag){case 5:At||ho(r,t);case 6:var n=xt,i=Rr;xt=null,qn(e,t,r),xt=n,Rr=i,xt!==null&&(Rr?(e=xt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):xt.removeChild(r.stateNode));break;case 18:xt!==null&&(Rr?(e=xt,r=r.stateNode,e.nodeType===8?Ep(e.parentNode,r):e.nodeType===1&&Ep(e,r),Fl(e)):Ep(xt,r.stateNode));break;case 4:n=xt,i=Rr,xt=r.stateNode.containerInfo,Rr=!0,qn(e,t,r),xt=n,Rr=i;break;case 0:case 11:case 14:case 15:if(!At&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&cy(r,t,o),i=i.next}while(i!==n)}qn(e,t,r);break;case 1:if(!At&&(ho(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Ve(r,t,s)}qn(e,t,r);break;case 21:qn(e,t,r);break;case 22:r.mode&1?(At=(n=At)||r.memoizedState!==null,qn(e,t,r),At=n):qn(e,t,r);break;default:qn(e,t,r)}}function Hx(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new E$),t.forEach(function(n){var i=z$.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Cr(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=o),n&=~a}if(n=i,n=Xe()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*T$(n/1960))-n,10e?16:e,fi===null)var n=!1;else{if(e=fi,fi=null,$f=0,be&6)throw Error(K(331));var i=be;for(be|=4,Y=e.current;Y!==null;){var a=Y,o=a.child;if(Y.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lXe()-a0?ba(e,0):i0|=r),Qt(e,t)}function uA(e,t){t===0&&(e.mode&1?(t=mc,mc<<=1,!(mc&130023424)&&(mc=4194304)):t=1);var r=Dt();e=Mn(e,t),e!==null&&(qu(e,t,r),Qt(e,r))}function L$(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),uA(e,r)}function z$(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(K(314))}n!==null&&n.delete(t),uA(e,r)}var cA;cA=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Gt.current)Kt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Kt=!1,P$(e,t,r);Kt=!!(e.flags&131072)}else Kt=!1,Fe&&t.flags&1048576&&pP(t,jf,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;tf(e,t),e=t.pendingProps;var i=Ho(t,Nt.current);jo(t,r),i=Jg(null,t,n,e,i,r);var a=Zg();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Xt(n)?(a=!0,Sf(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Vg(t),i.updater=Zd,t.stateNode=i,i._reactInternals=t,ny(t,n,e,r),t=oy(null,t,n,!0,a,r)):(t.tag=0,Fe&&a&&Fg(t),Tt(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(tf(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=B$(n),e=$r(n,e),i){case 0:t=ay(null,t,n,e,r);break e;case 1:t=zx(null,t,n,e,r);break e;case 11:t=Dx(null,t,n,e,r);break e;case 14:t=Lx(null,t,n,$r(n.type,e),r);break e}throw Error(K(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:$r(n,i),ay(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:$r(n,i),zx(e,t,n,i,r);case 3:e:{if(VP(t),e===null)throw Error(K(387));n=t.pendingProps,a=t.memoizedState,i=a.element,xP(e,t),Af(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Go(Error(K(423)),t),t=Fx(e,t,n,r,i);break e}else if(n!==i){i=Go(Error(K(424)),t),t=Fx(e,t,n,r,i);break e}else for(sr=gi(t.stateNode.containerInfo.firstChild),lr=t,Fe=!0,Lr=null,r=gP(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(qo(),n===i){t=In(e,t,r);break e}Tt(e,t,n,r)}t=t.child}return t;case 5:return wP(t),e===null&&ey(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Xm(n,i)?o=null:a!==null&&Xm(n,a)&&(t.flags|=32),KP(e,t),Tt(e,t,o,r),t.child;case 6:return e===null&&ey(t),null;case 13:return GP(e,t,r);case 4:return Gg(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ko(t,null,n,r):Tt(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:$r(n,i),Dx(e,t,n,i,r);case 7:return Tt(e,t,t.pendingProps,r),t.child;case 8:return Tt(e,t,t.pendingProps.children,r),t.child;case 12:return Tt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,$e(_f,n._currentValue),n._currentValue=o,a!==null)if(Wr(a.value,o)){if(a.children===i.children&&!Gt.current){t=In(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=An(-1,r&-r),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?l.next=l:(l.next=f.next,f.next=l),u.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),ty(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(K(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),ty(o,r,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Tt(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,jo(t,r),i=Pr(i),n=n(i),t.flags|=1,Tt(e,t,n,r),t.child;case 14:return n=t.type,i=$r(n,t.pendingProps),i=$r(n.type,i),Lx(e,t,n,i,r);case 15:return HP(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:$r(n,i),tf(e,t),t.tag=1,Xt(n)?(e=!0,Sf(t)):e=!1,jo(t,r),BP(t,n,i),ny(t,n,i,r),oy(null,t,n,!0,e,r);case 19:return XP(e,t,r);case 22:return qP(e,t,r)}throw Error(K(156,t.tag))};function fA(e,t){return L_(e,t)}function F$(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Sr(e,t,r,n){return new F$(e,t,r,n)}function u0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function B$(e){if(typeof e=="function")return u0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===kg)return 11;if(e===Eg)return 14}return 2}function Si(e,t){var r=e.alternate;return r===null?(r=Sr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function af(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")u0(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case no:return xa(r.children,i,a,t);case Ag:o=8,i|=8;break;case Am:return e=Sr(12,r,t,i|2),e.elementType=Am,e.lanes=a,e;case km:return e=Sr(13,r,t,i),e.elementType=km,e.lanes=a,e;case Em:return e=Sr(19,r,t,i),e.elementType=Em,e.lanes=a,e;case w_:return rh(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case b_:o=10;break e;case x_:o=9;break e;case kg:o=11;break e;case Eg:o=14;break e;case Xn:o=16,n=null;break e}throw Error(K(130,e==null?e:typeof e,""))}return t=Sr(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function xa(e,t,r,n){return e=Sr(7,e,n,t),e.lanes=r,e}function rh(e,t,r,n){return e=Sr(22,e,n,t),e.elementType=w_,e.lanes=r,e.stateNode={isHidden:!1},e}function Dp(e,t,r){return e=Sr(6,e,null,t),e.lanes=r,e}function Lp(e,t,r){return t=Sr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function U$(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gp(0),this.expirationTimes=gp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gp(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function c0(e,t,r,n,i,a,o,s,l){return e=new U$(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Sr(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vg(a),e}function W$(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(mA)}catch(e){console.error(e)}}mA(),m_.exports=fr;var G$=m_.exports,Jx=G$;_m.createRoot=Jx.createRoot,_m.hydrateRoot=Jx.hydrateRoot;/** + * @remix-run/router v1.23.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Jl(){return Jl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function p0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Q$(){return Math.random().toString(36).substr(2,8)}function e1(e,t){return{usr:e.state,key:e.key,idx:t}}function gy(e,t,r,n){return r===void 0&&(r=null),Jl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ps(t):t,{state:r,key:t&&t.key||n||Q$()})}function Rf(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Ps(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Y$(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:a=!1}=n,o=i.history,s=di.Pop,l=null,u=f();u==null&&(u=0,o.replaceState(Jl({},o.state,{idx:u}),""));function f(){return(o.state||{idx:null}).idx}function c(){s=di.Pop;let v=f(),g=v==null?null:v-u;u=v,l&&l({action:s,location:y.location,delta:g})}function h(v,g){s=di.Push;let b=gy(y.location,v,g);u=f()+1;let w=e1(b,u),O=y.createHref(b);try{o.pushState(w,"",O)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;i.location.assign(O)}a&&l&&l({action:s,location:y.location,delta:1})}function p(v,g){s=di.Replace;let b=gy(y.location,v,g);u=f();let w=e1(b,u),O=y.createHref(b);o.replaceState(w,"",O),a&&l&&l({action:s,location:y.location,delta:0})}function m(v){let g=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof v=="string"?v:Rf(v);return b=b.replace(/ $/,"%20"),Qe(g,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,g)}let y={get action(){return s},get location(){return e(i,o)},listen(v){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Zx,c),l=v,()=>{i.removeEventListener(Zx,c),l=null}},createHref(v){return t(i,v)},createURL:m,encodeLocation(v){let g=m(v);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:p,go(v){return o.go(v)}};return y}var t1;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(t1||(t1={}));function J$(e,t,r){return r===void 0&&(r="/"),Z$(e,t,r)}function Z$(e,t,r,n){let i=typeof t=="string"?Ps(t):t,a=m0(i.pathname||"/",r);if(a==null)return null;let o=yA(e);eM(o);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(Qe(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=Oi([n,l.relativePath]),f=r.concat(l);a.children&&a.children.length>0&&(Qe(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),yA(a.children,t,f,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:sM(u,a.index),routesMeta:f})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of vA(a.path))i(a,o,l)}),t}function vA(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return i?[a,""]:[a];let o=vA(n.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function eM(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:lM(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const tM=/^:[\w-]+$/,rM=3,nM=2,iM=1,aM=10,oM=-2,r1=e=>e==="*";function sM(e,t){let r=e.split("/"),n=r.length;return r.some(r1)&&(n+=oM),t&&(n+=nM),r.filter(i=>!r1(i)).reduce((i,a)=>i+(tM.test(a)?rM:a===""?iM:aM),n)}function lM(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function uM(e,t,r){let{routesMeta:n}=e,i={},a="/",o=[];for(let s=0;s{let{paramName:h,isOptional:p}=f;if(h==="*"){let y=s[c]||"";o=a.slice(0,a.length-y.length).replace(/(.)\/+$/,"$1")}const m=s[c];return p&&!m?u[h]=void 0:u[h]=(m||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:o,pattern:e}}function fM(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),p0(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function dM(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return p0(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function m0(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const hM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pM=e=>hM.test(e);function mM(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?Ps(e):e,a;if(r)if(pM(r))a=r;else{if(r.includes("//")){let o=r;r=r.replace(/\/\/+/g,"/"),p0(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+r))}r.startsWith("/")?a=n1(r.substring(1),"/"):a=n1(r,t)}else a=t;return{pathname:a,search:gM(n),hash:bM(i)}}function n1(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function zp(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function yM(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function y0(e,t){let r=yM(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function v0(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=Ps(e):(i=Jl({},e),Qe(!i.pathname||!i.pathname.includes("?"),zp("?","pathname","search",i)),Qe(!i.pathname||!i.pathname.includes("#"),zp("#","pathname","hash",i)),Qe(!i.search||!i.search.includes("#"),zp("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(o==null)s=r;else{let c=t.length-1;if(!n&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),c-=1;i.pathname=h.join("/")}s=c>=0?t[c]:"/"}let l=mM(i,s),u=o&&o!=="/"&&o.endsWith("/"),f=(a||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||f)&&(l.pathname+="/"),l}const Oi=e=>e.join("/").replace(/\/\/+/g,"/"),vM=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),gM=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bM=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function xM(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const gA=["post","put","patch","delete"];new Set(gA);const wM=["get",...gA];new Set(wM);/** + * React Router v6.30.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Zl(){return Zl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),A.useCallback(function(u,f){if(f===void 0&&(f={}),!s.current)return;if(typeof u=="number"){n.go(u);return}let c=v0(u,JSON.parse(o),a,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Oi([t,c.pathname])),(f.replace?n.replace:n.push)(c,f.state,f)},[t,n,o,a,e])}const _M=A.createContext(null);function PM(e){let t=A.useContext(un).outlet;return t&&A.createElement(_M.Provider,{value:e},t)}function AM(){let{matches:e}=A.useContext(un),t=e[e.length-1];return t?t.params:{}}function wA(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=A.useContext(Ii),{matches:i}=A.useContext(un),{pathname:a}=ks(),o=JSON.stringify(y0(i,n.v7_relativeSplatPath));return A.useMemo(()=>v0(e,JSON.parse(o),a,r==="path"),[e,o,a,r])}function kM(e,t){return EM(e,t)}function EM(e,t,r,n){As()||Qe(!1);let{navigator:i}=A.useContext(Ii),{matches:a}=A.useContext(un),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=ks(),f;if(t){var c;let v=typeof t=="string"?Ps(t):t;l==="/"||(c=v.pathname)!=null&&c.startsWith(l)||Qe(!1),f=v}else f=u;let h=f.pathname||"/",p=h;if(l!=="/"){let v=l.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(v.length).join("/")}let m=J$(e,{pathname:p}),y=MM(m&&m.map(v=>Object.assign({},v,{params:Object.assign({},s,v.params),pathname:Oi([l,i.encodeLocation?i.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:Oi([l,i.encodeLocation?i.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),a,r,n);return t&&y?A.createElement(sh.Provider,{value:{location:Zl({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:di.Pop}},y):y}function NM(){let e=LM(),t=xM(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},t),r?A.createElement("pre",{style:i},r):null,null)}const CM=A.createElement(NM,null);class TM extends A.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?A.createElement(un.Provider,{value:this.props.routeContext},A.createElement(bA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function $M(e){let{routeContext:t,match:r,children:n}=e,i=A.useContext(g0);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),A.createElement(un.Provider,{value:t},n)}function MM(e,t,r,n){var i;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var a;if(!r)return null;if(r.errors)e=r.matches;else if((a=n)!=null&&a.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,s=(i=r)==null?void 0:i.errors;if(s!=null){let f=o.findIndex(c=>c.route.id&&(s==null?void 0:s[c.route.id])!==void 0);f>=0||Qe(!1),o=o.slice(0,Math.min(o.length,f+1))}let l=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let f=0;f=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((f,c,h)=>{let p,m=!1,y=null,v=null;r&&(p=s&&c.route.id?s[c.route.id]:void 0,y=c.route.errorElement||CM,l&&(u<0&&h===0?(FM("route-fallback"),m=!0,v=null):u===h&&(m=!0,v=c.route.hydrateFallbackElement||null)));let g=t.concat(o.slice(0,h+1)),b=()=>{let w;return p?w=y:m?w=v:c.route.Component?w=A.createElement(c.route.Component,null):c.route.element?w=c.route.element:w=f,A.createElement($M,{match:c,routeContext:{outlet:f,matches:g,isDataRoute:r!=null},children:w})};return r&&(c.route.ErrorBoundary||c.route.errorElement||h===0)?A.createElement(TM,{location:r.location,revalidation:r.revalidation,component:y,error:p,children:b(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):b()},null)}var SA=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(SA||{}),OA=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(OA||{});function IM(e){let t=A.useContext(g0);return t||Qe(!1),t}function RM(e){let t=A.useContext(SM);return t||Qe(!1),t}function DM(e){let t=A.useContext(un);return t||Qe(!1),t}function jA(e){let t=DM(),r=t.matches[t.matches.length-1];return r.route.id||Qe(!1),r.route.id}function LM(){var e;let t=A.useContext(bA),r=RM(),n=jA();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function zM(){let{router:e}=IM(SA.UseNavigateStable),t=jA(OA.UseNavigateStable),r=A.useRef(!1);return xA(()=>{r.current=!0}),A.useCallback(function(i,a){a===void 0&&(a={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Zl({fromRouteId:t},a)))},[e,t])}const i1={};function FM(e,t,r){i1[e]||(i1[e]=!0)}function BM(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function by(e){let{to:t,replace:r,state:n,relative:i}=e;As()||Qe(!1);let{future:a,static:o}=A.useContext(Ii),{matches:s}=A.useContext(un),{pathname:l}=ks(),u=Wa(),f=v0(t,y0(s,a.v7_relativeSplatPath),l,i==="path"),c=JSON.stringify(f);return A.useEffect(()=>u(JSON.parse(c),{replace:r,state:n,relative:i}),[u,c,i,r,n]),null}function UM(e){return PM(e.context)}function rr(e){Qe(!1)}function WM(e){let{basename:t="/",children:r=null,location:n,navigationType:i=di.Pop,navigator:a,static:o=!1,future:s}=e;As()&&Qe(!1);let l=t.replace(/^\/*/,"/"),u=A.useMemo(()=>({basename:l,navigator:a,static:o,future:Zl({v7_relativeSplatPath:!1},s)}),[l,s,a,o]);typeof n=="string"&&(n=Ps(n));let{pathname:f="/",search:c="",hash:h="",state:p=null,key:m="default"}=n,y=A.useMemo(()=>{let v=m0(f,l);return v==null?null:{location:{pathname:v,search:c,hash:h,state:p,key:m},navigationType:i}},[l,f,c,h,p,m,i]);return y==null?null:A.createElement(Ii.Provider,{value:u},A.createElement(sh.Provider,{children:r,value:y}))}function HM(e){let{children:t,location:r}=e;return kM(xy(t),r)}new Promise(()=>{});function xy(e,t){t===void 0&&(t=[]);let r=[];return A.Children.forEach(e,(n,i)=>{if(!A.isValidElement(n))return;let a=[...t,i];if(n.type===A.Fragment){r.push.apply(r,xy(n.props.children,a));return}n.type!==rr&&Qe(!1),!n.props.index||!n.props.children||Qe(!1);let o={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=xy(n.props.children,a)),r.push(o)}),r}/** + * React Router DOM v6.30.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function wy(){return wy=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}function KM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function VM(e,t){return e.button===0&&(!t||t==="_self")&&!KM(e)}const GM=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],XM="6";try{window.__reactRouterVersion=XM}catch{}const QM="startTransition",a1=DC[QM];function YM(e){let{basename:t,children:r,future:n,window:i}=e,a=A.useRef();a.current==null&&(a.current=X$({window:i,v5Compat:!0}));let o=a.current,[s,l]=A.useState({action:o.action,location:o.location}),{v7_startTransition:u}=n||{},f=A.useCallback(c=>{u&&a1?a1(()=>l(c)):l(c)},[l,u]);return A.useLayoutEffect(()=>o.listen(f),[o,f]),A.useEffect(()=>BM(n),[n]),A.createElement(WM,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:o,future:n})}const JM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ZM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ea=A.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:a,replace:o,state:s,target:l,to:u,preventScrollReset:f,viewTransition:c}=t,h=qM(t,GM),{basename:p}=A.useContext(Ii),m,y=!1;if(typeof u=="string"&&ZM.test(u)&&(m=u,JM))try{let w=new URL(window.location.href),O=u.startsWith("//")?new URL(w.protocol+u):new URL(u),x=m0(O.pathname,p);O.origin===w.origin&&x!=null?u=x+O.search+O.hash:y=!0}catch{}let v=OM(u,{relative:i}),g=eI(u,{replace:o,state:s,target:l,preventScrollReset:f,relative:i,viewTransition:c});function b(w){n&&n(w),w.defaultPrevented||g(w)}return A.createElement("a",wy({},h,{href:m||v,onClick:y||a?n:b,ref:r,target:l}))});var o1;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(o1||(o1={}));var s1;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(s1||(s1={}));function eI(e,t){let{target:r,replace:n,state:i,preventScrollReset:a,relative:o,viewTransition:s}=t===void 0?{}:t,l=Wa(),u=ks(),f=wA(e,{relative:o});return A.useCallback(c=>{if(VM(c,r)){c.preventDefault();let h=n!==void 0?n:Rf(u)===Rf(f);l(e,{replace:h,state:i,preventScrollReset:a,relative:o,viewTransition:s})}},[u,l,f,n,i,r,e,a,o,s])}var Es=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},tI={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},ti,bg,Vj,rI=(Vj=class{constructor(){re(this,ti,tI);re(this,bg,!1)}setTimeoutProvider(e){Q(this,ti,e)}setTimeout(e,t){return E(this,ti).setTimeout(e,t)}clearTimeout(e){E(this,ti).clearTimeout(e)}setInterval(e,t){return E(this,ti).setInterval(e,t)}clearInterval(e){E(this,ti).clearInterval(e)}},ti=new WeakMap,bg=new WeakMap,Vj),na=new rI;function nI(e){setTimeout(e,0)}var Na=typeof window>"u"||"Deno"in globalThis;function $t(){}function iI(e,t){return typeof e=="function"?e(t):e}function Sy(e){return typeof e=="number"&&e>=0&&e!==1/0}function _A(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ji(e,t){return typeof e=="function"?e(t):e}function gr(e,t){return typeof e=="function"?e(t):e}function l1(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(n){if(t.queryHash!==b0(o,t.options))return!1}else if(!eu(t.queryKey,o))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function u1(e,t){const{exact:r,status:n,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(Ca(t.options.mutationKey)!==Ca(a))return!1}else if(!eu(t.options.mutationKey,a))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function b0(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ca)(e)}function Ca(e){return JSON.stringify(e,(t,r)=>Oy(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function eu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>eu(e[r],t[r])):!1}var aI=Object.prototype.hasOwnProperty;function PA(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=c1(e)&&c1(t);if(!n&&!(Oy(e)&&Oy(t)))return t;const a=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),s=o.length,l=n?new Array(s):{};let u=0;for(let f=0;f{na.setTimeout(t,e)})}function jy(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?PA(e,t):t}function sI(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function lI(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var x0=Symbol();function AA(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===x0?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function w0(e,t){return typeof e=="function"?e(...t):!!e}function uI(e,t,r){let n=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),n||(n=!0,i.aborted?r():i.addEventListener("abort",r,{once:!0})),i)}),e}var ca,ri,Co,Gj,cI=(Gj=class extends Es{constructor(){super();re(this,ca);re(this,ri);re(this,Co);Q(this,Co,t=>{if(!Na&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){E(this,ri)||this.setEventListener(E(this,Co))}onUnsubscribe(){var t;this.hasListeners()||((t=E(this,ri))==null||t.call(this),Q(this,ri,void 0))}setEventListener(t){var r;Q(this,Co,t),(r=E(this,ri))==null||r.call(this),Q(this,ri,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){E(this,ca)!==t&&(Q(this,ca,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof E(this,ca)=="boolean"?E(this,ca):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ca=new WeakMap,ri=new WeakMap,Co=new WeakMap,Gj),S0=new cI;function _y(){let e,t;const r=new Promise((i,a)=>{e=i,t=a});r.status="pending",r.catch(()=>{});function n(i){Object.assign(r,i),delete r.resolve,delete r.reject}return r.resolve=i=>{n({status:"fulfilled",value:i}),e(i)},r.reject=i=>{n({status:"rejected",reason:i}),t(i)},r}var fI=nI;function dI(){let e=[],t=0,r=s=>{s()},n=s=>{s()},i=fI;const a=s=>{t?e.push(s):i(()=>{r(s)})},o=()=>{const s=e;e=[],s.length&&i(()=>{n(()=>{s.forEach(l=>{r(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||o()}return l},batchCalls:s=>(...l)=>{a(()=>{s(...l)})},schedule:a,setNotifyFunction:s=>{r=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{i=s}}}var st=dI(),To,ni,$o,Xj,hI=(Xj=class extends Es{constructor(){super();re(this,To,!0);re(this,ni);re(this,$o);Q(this,$o,t=>{if(!Na&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){E(this,ni)||this.setEventListener(E(this,$o))}onUnsubscribe(){var t;this.hasListeners()||((t=E(this,ni))==null||t.call(this),Q(this,ni,void 0))}setEventListener(t){var r;Q(this,$o,t),(r=E(this,ni))==null||r.call(this),Q(this,ni,t(this.setOnline.bind(this)))}setOnline(t){E(this,To)!==t&&(Q(this,To,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return E(this,To)}},To=new WeakMap,ni=new WeakMap,$o=new WeakMap,Xj),Lf=new hI;function pI(e){return Math.min(1e3*2**e,3e4)}function kA(e){return(e??"online")==="online"?Lf.isOnline():!0}var Py=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function EA(e){let t=!1,r=0,n;const i=_y(),a=()=>i.status!=="pending",o=y=>{var v;if(!a()){const g=new Py(y);h(g),(v=e.onCancel)==null||v.call(e,g)}},s=()=>{t=!0},l=()=>{t=!1},u=()=>S0.isFocused()&&(e.networkMode==="always"||Lf.isOnline())&&e.canRun(),f=()=>kA(e.networkMode)&&e.canRun(),c=y=>{a()||(n==null||n(),i.resolve(y))},h=y=>{a()||(n==null||n(),i.reject(y))},p=()=>new Promise(y=>{var v;n=g=>{(a()||u())&&y(g)},(v=e.onPause)==null||v.call(e)}).then(()=>{var y;n=void 0,a()||(y=e.onContinue)==null||y.call(e)}),m=()=>{if(a())return;let y;const v=r===0?e.initialPromise:void 0;try{y=v??e.fn()}catch(g){y=Promise.reject(g)}Promise.resolve(y).then(c).catch(g=>{var S;if(a())return;const b=e.retry??(Na?0:3),w=e.retryDelay??pI,O=typeof w=="function"?w(r,g):w,x=b===!0||typeof b=="number"&&ru()?void 0:p()).then(()=>{t?h(g):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(n==null||n(),i),cancelRetry:s,continueRetry:l,canStart:f,start:()=>(f()?m():p().then(m),i)}}var fa,Qj,NA=(Qj=class{constructor(){re(this,fa)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Sy(this.gcTime)&&Q(this,fa,na.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Na?1/0:5*60*1e3))}clearGcTimeout(){E(this,fa)&&(na.clearTimeout(E(this,fa)),Q(this,fa,void 0))}},fa=new WeakMap,Qj),da,Mo,vr,ha,dt,zu,pa,Mr,pn,Yj,mI=(Yj=class extends NA{constructor(t){super();re(this,Mr);re(this,da);re(this,Mo);re(this,vr);re(this,ha);re(this,dt);re(this,zu);re(this,pa);Q(this,pa,!1),Q(this,zu,t.defaultOptions),this.setOptions(t.options),this.observers=[],Q(this,ha,t.client),Q(this,vr,E(this,ha).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Q(this,da,h1(this.options)),this.state=t.state??E(this,da),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=E(this,dt))==null?void 0:t.promise}setOptions(t){if(this.options={...E(this,zu),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=h1(this.options);r.data!==void 0&&(this.setState(d1(r.data,r.dataUpdatedAt)),Q(this,da,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&E(this,vr).remove(this)}setData(t,r){const n=jy(this.state.data,t,this.options);return de(this,Mr,pn).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){de(this,Mr,pn).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,i;const r=(n=E(this,dt))==null?void 0:n.promise;return(i=E(this,dt))==null||i.cancel(t),r?r.then($t).catch($t):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(E(this,da))}isActive(){return this.observers.some(t=>gr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===x0||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ji(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!_A(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=E(this,dt))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=E(this,dt))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),E(this,vr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(E(this,dt)&&(E(this,pa)?E(this,dt).cancel({revert:!0}):E(this,dt).cancelRetry()),this.scheduleGc()),E(this,vr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||de(this,Mr,pn).call(this,{type:"invalidate"})}async fetch(t,r){var l,u,f,c,h,p,m,y,v,g,b,w;if(this.state.fetchStatus!=="idle"&&((l=E(this,dt))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(E(this,dt))return E(this,dt).continueRetry(),E(this,dt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const O=this.observers.find(x=>x.options.queryFn);O&&this.setOptions(O.options)}const n=new AbortController,i=O=>{Object.defineProperty(O,"signal",{enumerable:!0,get:()=>(Q(this,pa,!0),n.signal)})},a=()=>{const O=AA(this.options,r),S=(()=>{const j={client:E(this,ha),queryKey:this.queryKey,meta:this.meta};return i(j),j})();return Q(this,pa,!1),this.options.persister?this.options.persister(O,S,this):O(S)},s=(()=>{const O={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:E(this,ha),state:this.state,fetchFn:a};return i(O),O})();(u=this.options.behavior)==null||u.onFetch(s,this),Q(this,Mo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=s.fetchOptions)==null?void 0:f.meta))&&de(this,Mr,pn).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta}),Q(this,dt,EA({initialPromise:r==null?void 0:r.initialPromise,fn:s.fetchFn,onCancel:O=>{O instanceof Py&&O.revert&&this.setState({...E(this,Mo),fetchStatus:"idle"}),n.abort()},onFail:(O,x)=>{de(this,Mr,pn).call(this,{type:"failed",failureCount:O,error:x})},onPause:()=>{de(this,Mr,pn).call(this,{type:"pause"})},onContinue:()=>{de(this,Mr,pn).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}));try{const O=await E(this,dt).start();if(O===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(O),(p=(h=E(this,vr).config).onSuccess)==null||p.call(h,O,this),(y=(m=E(this,vr).config).onSettled)==null||y.call(m,O,this.state.error,this),O}catch(O){if(O instanceof Py){if(O.silent)return E(this,dt).promise;if(O.revert){if(this.state.data===void 0)throw O;return this.state.data}}throw de(this,Mr,pn).call(this,{type:"error",error:O}),(g=(v=E(this,vr).config).onError)==null||g.call(v,O,this),(w=(b=E(this,vr).config).onSettled)==null||w.call(b,this.state.data,O,this),O}finally{this.scheduleGc()}}},da=new WeakMap,Mo=new WeakMap,vr=new WeakMap,ha=new WeakMap,dt=new WeakMap,zu=new WeakMap,pa=new WeakMap,Mr=new WeakSet,pn=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...CA(n.data,this.options),fetchMeta:t.meta??null};case"success":const i={...n,...d1(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Q(this,Mo,t.manual?i:void 0),i;case"error":const a=t.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),st.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),E(this,vr).notify({query:this,type:"updated",action:t})})},Yj);function CA(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:kA(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function d1(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function h1(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Bt,me,Fu,Ct,ma,Io,gn,ii,Bu,Ro,Do,ya,va,ai,Lo,_e,ml,Ay,ky,Ey,Ny,Cy,Ty,$y,TA,Jj,yI=(Jj=class extends Es{constructor(t,r){super();re(this,_e);re(this,Bt);re(this,me);re(this,Fu);re(this,Ct);re(this,ma);re(this,Io);re(this,gn);re(this,ii);re(this,Bu);re(this,Ro);re(this,Do);re(this,ya);re(this,va);re(this,ai);re(this,Lo,new Set);this.options=r,Q(this,Bt,t),Q(this,ii,null),Q(this,gn,_y()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(E(this,me).addObserver(this),p1(E(this,me),this.options)?de(this,_e,ml).call(this):this.updateResult(),de(this,_e,Ny).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return My(E(this,me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return My(E(this,me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,de(this,_e,Cy).call(this),de(this,_e,Ty).call(this),E(this,me).removeObserver(this)}setOptions(t){const r=this.options,n=E(this,me);if(this.options=E(this,Bt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof gr(this.options.enabled,E(this,me))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");de(this,_e,$y).call(this),E(this,me).setOptions(this.options),r._defaulted&&!Df(this.options,r)&&E(this,Bt).getQueryCache().notify({type:"observerOptionsUpdated",query:E(this,me),observer:this});const i=this.hasListeners();i&&m1(E(this,me),n,this.options,r)&&de(this,_e,ml).call(this),this.updateResult(),i&&(E(this,me)!==n||gr(this.options.enabled,E(this,me))!==gr(r.enabled,E(this,me))||ji(this.options.staleTime,E(this,me))!==ji(r.staleTime,E(this,me)))&&de(this,_e,Ay).call(this);const a=de(this,_e,ky).call(this);i&&(E(this,me)!==n||gr(this.options.enabled,E(this,me))!==gr(r.enabled,E(this,me))||a!==E(this,ai))&&de(this,_e,Ey).call(this,a)}getOptimisticResult(t){const r=E(this,Bt).getQueryCache().build(E(this,Bt),t),n=this.createResult(r,t);return gI(this,n)&&(Q(this,Ct,n),Q(this,Io,this.options),Q(this,ma,E(this,me).state)),n}getCurrentResult(){return E(this,Ct)}trackResult(t,r){return new Proxy(t,{get:(n,i)=>(this.trackProp(i),r==null||r(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&E(this,gn).status==="pending"&&E(this,gn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,i))})}trackProp(t){E(this,Lo).add(t)}getCurrentQuery(){return E(this,me)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=E(this,Bt).defaultQueryOptions(t),n=E(this,Bt).getQueryCache().build(E(this,Bt),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return de(this,_e,ml).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),E(this,Ct)))}createResult(t,r){var P;const n=E(this,me),i=this.options,a=E(this,Ct),o=E(this,ma),s=E(this,Io),u=t!==n?t.state:E(this,Fu),{state:f}=t;let c={...f},h=!1,p;if(r._optimisticResults){const N=this.hasListeners(),$=!N&&p1(t,r),T=N&&m1(t,n,r,i);($||T)&&(c={...c,...CA(f.data,t.options)}),r._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:m,errorUpdatedAt:y,status:v}=c;p=c.data;let g=!1;if(r.placeholderData!==void 0&&p===void 0&&v==="pending"){let N;a!=null&&a.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData)?(N=a.data,g=!0):N=typeof r.placeholderData=="function"?r.placeholderData((P=E(this,Do))==null?void 0:P.state.data,E(this,Do)):r.placeholderData,N!==void 0&&(v="success",p=jy(a==null?void 0:a.data,N,r),h=!0)}if(r.select&&p!==void 0&&!g)if(a&&p===(o==null?void 0:o.data)&&r.select===E(this,Bu))p=E(this,Ro);else try{Q(this,Bu,r.select),p=r.select(p),p=jy(a==null?void 0:a.data,p,r),Q(this,Ro,p),Q(this,ii,null)}catch(N){Q(this,ii,N)}E(this,ii)&&(m=E(this,ii),p=E(this,Ro),y=Date.now(),v="error");const b=c.fetchStatus==="fetching",w=v==="pending",O=v==="error",x=w&&b,S=p!==void 0,_={status:v,fetchStatus:c.fetchStatus,isPending:w,isSuccess:v==="success",isError:O,isInitialLoading:x,isLoading:x,data:p,dataUpdatedAt:c.dataUpdatedAt,error:m,errorUpdatedAt:y,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:b,isRefetching:b&&!w,isLoadingError:O&&!S,isPaused:c.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:O&&S,isStale:O0(t,r),refetch:this.refetch,promise:E(this,gn),isEnabled:gr(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const N=_.data!==void 0,$=_.status==="error"&&!N,T=I=>{$?I.reject(_.error):N&&I.resolve(_.data)},L=()=>{const I=Q(this,gn,_.promise=_y());T(I)},R=E(this,gn);switch(R.status){case"pending":t.queryHash===n.queryHash&&T(R);break;case"fulfilled":($||_.data!==R.value)&&L();break;case"rejected":(!$||_.error!==R.reason)&&L();break}}return _}updateResult(){const t=E(this,Ct),r=this.createResult(E(this,me),this.options);if(Q(this,ma,E(this,me).state),Q(this,Io,this.options),E(this,ma).data!==void 0&&Q(this,Do,E(this,me)),Df(r,t))return;Q(this,Ct,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!E(this,Lo).size)return!0;const o=new Set(a??E(this,Lo));return this.options.throwOnError&&o.add("error"),Object.keys(E(this,Ct)).some(s=>{const l=s;return E(this,Ct)[l]!==t[l]&&o.has(l)})};de(this,_e,TA).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&de(this,_e,Ny).call(this)}},Bt=new WeakMap,me=new WeakMap,Fu=new WeakMap,Ct=new WeakMap,ma=new WeakMap,Io=new WeakMap,gn=new WeakMap,ii=new WeakMap,Bu=new WeakMap,Ro=new WeakMap,Do=new WeakMap,ya=new WeakMap,va=new WeakMap,ai=new WeakMap,Lo=new WeakMap,_e=new WeakSet,ml=function(t){de(this,_e,$y).call(this);let r=E(this,me).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch($t)),r},Ay=function(){de(this,_e,Cy).call(this);const t=ji(this.options.staleTime,E(this,me));if(Na||E(this,Ct).isStale||!Sy(t))return;const n=_A(E(this,Ct).dataUpdatedAt,t)+1;Q(this,ya,na.setTimeout(()=>{E(this,Ct).isStale||this.updateResult()},n))},ky=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(E(this,me)):this.options.refetchInterval)??!1},Ey=function(t){de(this,_e,Ty).call(this),Q(this,ai,t),!(Na||gr(this.options.enabled,E(this,me))===!1||!Sy(E(this,ai))||E(this,ai)===0)&&Q(this,va,na.setInterval(()=>{(this.options.refetchIntervalInBackground||S0.isFocused())&&de(this,_e,ml).call(this)},E(this,ai)))},Ny=function(){de(this,_e,Ay).call(this),de(this,_e,Ey).call(this,de(this,_e,ky).call(this))},Cy=function(){E(this,ya)&&(na.clearTimeout(E(this,ya)),Q(this,ya,void 0))},Ty=function(){E(this,va)&&(na.clearInterval(E(this,va)),Q(this,va,void 0))},$y=function(){const t=E(this,Bt).getQueryCache().build(E(this,Bt),this.options);if(t===E(this,me))return;const r=E(this,me);Q(this,me,t),Q(this,Fu,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},TA=function(t){st.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(E(this,Ct))}),E(this,Bt).getQueryCache().notify({query:E(this,me),type:"observerResultsUpdated"})})},Jj);function vI(e,t){return gr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function p1(e,t){return vI(e,t)||e.state.data!==void 0&&My(e,t,t.refetchOnMount)}function My(e,t,r){if(gr(t.enabled,e)!==!1&&ji(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&O0(e,t)}return!1}function m1(e,t,r,n){return(e!==t||gr(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&O0(e,r)}function O0(e,t){return gr(t.enabled,e)!==!1&&e.isStaleByTime(ji(t.staleTime,e))}function gI(e,t){return!Df(e.getCurrentResult(),t)}function y1(e){return{onFetch:(t,r)=>{var f,c,h,p,m;const n=t.options,i=(h=(c=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:c.fetchMore)==null?void 0:h.direction,a=((p=t.state.data)==null?void 0:p.pages)||[],o=((m=t.state.data)==null?void 0:m.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const u=async()=>{let y=!1;const v=w=>{uI(w,()=>t.signal,()=>y=!0)},g=AA(t.options,t.fetchOptions),b=async(w,O,x)=>{if(y)return Promise.reject();if(O==null&&w.pages.length)return Promise.resolve(w);const j=(()=>{const $={client:t.client,queryKey:t.queryKey,pageParam:O,direction:x?"backward":"forward",meta:t.options.meta};return v($),$})(),_=await g(j),{maxPages:P}=t.options,N=x?lI:sI;return{pages:N(w.pages,_,P),pageParams:N(w.pageParams,O,P)}};if(i&&a.length){const w=i==="backward",O=w?bI:v1,x={pages:a,pageParams:o},S=O(n,x);s=await b(x,S,w)}else{const w=e??a.length;do{const O=l===0?o[0]??n.initialPageParam:v1(n,s);if(l>0&&O==null)break;s=await b(s,O),l++}while(l{var y,v;return(v=(y=t.options).persister)==null?void 0:v.call(y,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=u}}}function v1(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function bI(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var Uu,Xr,_t,ga,Qr,Vn,Zj,xI=(Zj=class extends NA{constructor(t){super();re(this,Qr);re(this,Uu);re(this,Xr);re(this,_t);re(this,ga);Q(this,Uu,t.client),this.mutationId=t.mutationId,Q(this,_t,t.mutationCache),Q(this,Xr,[]),this.state=t.state||$A(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){E(this,Xr).includes(t)||(E(this,Xr).push(t),this.clearGcTimeout(),E(this,_t).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Q(this,Xr,E(this,Xr).filter(r=>r!==t)),this.scheduleGc(),E(this,_t).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){E(this,Xr).length||(this.state.status==="pending"?this.scheduleGc():E(this,_t).remove(this))}continue(){var t;return((t=E(this,ga))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,l,u,f,c,h,p,m,y,v,g,b,w,O,x,S,j;const r=()=>{de(this,Qr,Vn).call(this,{type:"continue"})},n={client:E(this,Uu),meta:this.options.meta,mutationKey:this.options.mutationKey};Q(this,ga,EA({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(_,P)=>{de(this,Qr,Vn).call(this,{type:"failed",failureCount:_,error:P})},onPause:()=>{de(this,Qr,Vn).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>E(this,_t).canRun(this)}));const i=this.state.status==="pending",a=!E(this,ga).canStart();try{if(i)r();else{de(this,Qr,Vn).call(this,{type:"pending",variables:t,isPaused:a}),E(this,_t).config.onMutate&&await E(this,_t).config.onMutate(t,this,n);const P=await((s=(o=this.options).onMutate)==null?void 0:s.call(o,t,n));P!==this.state.context&&de(this,Qr,Vn).call(this,{type:"pending",context:P,variables:t,isPaused:a})}const _=await E(this,ga).start();return await((u=(l=E(this,_t).config).onSuccess)==null?void 0:u.call(l,_,t,this.state.context,this,n)),await((c=(f=this.options).onSuccess)==null?void 0:c.call(f,_,t,this.state.context,n)),await((p=(h=E(this,_t).config).onSettled)==null?void 0:p.call(h,_,null,this.state.variables,this.state.context,this,n)),await((y=(m=this.options).onSettled)==null?void 0:y.call(m,_,null,t,this.state.context,n)),de(this,Qr,Vn).call(this,{type:"success",data:_}),_}catch(_){try{await((g=(v=E(this,_t).config).onError)==null?void 0:g.call(v,_,t,this.state.context,this,n))}catch(P){Promise.reject(P)}try{await((w=(b=this.options).onError)==null?void 0:w.call(b,_,t,this.state.context,n))}catch(P){Promise.reject(P)}try{await((x=(O=E(this,_t).config).onSettled)==null?void 0:x.call(O,void 0,_,this.state.variables,this.state.context,this,n))}catch(P){Promise.reject(P)}try{await((j=(S=this.options).onSettled)==null?void 0:j.call(S,void 0,_,t,this.state.context,n))}catch(P){Promise.reject(P)}throw de(this,Qr,Vn).call(this,{type:"error",error:_}),_}finally{E(this,_t).runNext(this)}}},Uu=new WeakMap,Xr=new WeakMap,_t=new WeakMap,ga=new WeakMap,Qr=new WeakSet,Vn=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),st.batch(()=>{E(this,Xr).forEach(n=>{n.onMutationUpdate(t)}),E(this,_t).notify({mutation:this,type:"updated",action:t})})},Zj);function $A(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var bn,Ir,Wu,e_,wI=(e_=class extends Es{constructor(t={}){super();re(this,bn);re(this,Ir);re(this,Wu);this.config=t,Q(this,bn,new Set),Q(this,Ir,new Map),Q(this,Wu,0)}build(t,r,n){const i=new xI({client:t,mutationCache:this,mutationId:++lc(this,Wu)._,options:t.defaultMutationOptions(r),state:n});return this.add(i),i}add(t){E(this,bn).add(t);const r=Ac(t);if(typeof r=="string"){const n=E(this,Ir).get(r);n?n.push(t):E(this,Ir).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(E(this,bn).delete(t)){const r=Ac(t);if(typeof r=="string"){const n=E(this,Ir).get(r);if(n)if(n.length>1){const i=n.indexOf(t);i!==-1&&n.splice(i,1)}else n[0]===t&&E(this,Ir).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=Ac(t);if(typeof r=="string"){const n=E(this,Ir).get(r),i=n==null?void 0:n.find(a=>a.state.status==="pending");return!i||i===t}else return!0}runNext(t){var n;const r=Ac(t);if(typeof r=="string"){const i=(n=E(this,Ir).get(r))==null?void 0:n.find(a=>a!==t&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){st.batch(()=>{E(this,bn).forEach(t=>{this.notify({type:"removed",mutation:t})}),E(this,bn).clear(),E(this,Ir).clear()})}getAll(){return Array.from(E(this,bn))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>u1(r,n))}findAll(t={}){return this.getAll().filter(r=>u1(t,r))}notify(t){st.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return st.batch(()=>Promise.all(t.map(r=>r.continue().catch($t))))}},bn=new WeakMap,Ir=new WeakMap,Wu=new WeakMap,e_);function Ac(e){var t;return(t=e.options.scope)==null?void 0:t.id}var xn,oi,Ut,wn,Cn,of,Iy,t_,SI=(t_=class extends Es{constructor(r,n){super();re(this,Cn);re(this,xn);re(this,oi);re(this,Ut);re(this,wn);Q(this,xn,r),this.setOptions(n),this.bindMethods(),de(this,Cn,of).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var i;const n=this.options;this.options=E(this,xn).defaultMutationOptions(r),Df(this.options,n)||E(this,xn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:E(this,Ut),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Ca(n.mutationKey)!==Ca(this.options.mutationKey)?this.reset():((i=E(this,Ut))==null?void 0:i.state.status)==="pending"&&E(this,Ut).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=E(this,Ut))==null||r.removeObserver(this)}onMutationUpdate(r){de(this,Cn,of).call(this),de(this,Cn,Iy).call(this,r)}getCurrentResult(){return E(this,oi)}reset(){var r;(r=E(this,Ut))==null||r.removeObserver(this),Q(this,Ut,void 0),de(this,Cn,of).call(this),de(this,Cn,Iy).call(this)}mutate(r,n){var i;return Q(this,wn,n),(i=E(this,Ut))==null||i.removeObserver(this),Q(this,Ut,E(this,xn).getMutationCache().build(E(this,xn),this.options)),E(this,Ut).addObserver(this),E(this,Ut).execute(r)}},xn=new WeakMap,oi=new WeakMap,Ut=new WeakMap,wn=new WeakMap,Cn=new WeakSet,of=function(){var n;const r=((n=E(this,Ut))==null?void 0:n.state)??$A();Q(this,oi,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Iy=function(r){st.batch(()=>{var n,i,a,o,s,l,u,f;if(E(this,wn)&&this.hasListeners()){const c=E(this,oi).variables,h=E(this,oi).context,p={client:E(this,xn),meta:this.options.meta,mutationKey:this.options.mutationKey};if((r==null?void 0:r.type)==="success"){try{(i=(n=E(this,wn)).onSuccess)==null||i.call(n,r.data,c,h,p)}catch(m){Promise.reject(m)}try{(o=(a=E(this,wn)).onSettled)==null||o.call(a,r.data,null,c,h,p)}catch(m){Promise.reject(m)}}else if((r==null?void 0:r.type)==="error"){try{(l=(s=E(this,wn)).onError)==null||l.call(s,r.error,c,h,p)}catch(m){Promise.reject(m)}try{(f=(u=E(this,wn)).onSettled)==null||f.call(u,void 0,r.error,c,h,p)}catch(m){Promise.reject(m)}}}this.listeners.forEach(c=>{c(E(this,oi))})})},t_),Yr,r_,OI=(r_=class extends Es{constructor(t={}){super();re(this,Yr);this.config=t,Q(this,Yr,new Map)}build(t,r,n){const i=r.queryKey,a=r.queryHash??b0(i,r);let o=this.get(a);return o||(o=new mI({client:t,queryKey:i,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){E(this,Yr).has(t.queryHash)||(E(this,Yr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=E(this,Yr).get(t.queryHash);r&&(t.destroy(),r===t&&E(this,Yr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){st.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return E(this,Yr).get(t)}getAll(){return[...E(this,Yr).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>l1(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>l1(t,n)):r}notify(t){st.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){st.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){st.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Yr=new WeakMap,r_),Ke,si,li,zo,Fo,ui,Bo,Uo,n_,jI=(n_=class{constructor(e={}){re(this,Ke);re(this,si);re(this,li);re(this,zo);re(this,Fo);re(this,ui);re(this,Bo);re(this,Uo);Q(this,Ke,e.queryCache||new OI),Q(this,si,e.mutationCache||new wI),Q(this,li,e.defaultOptions||{}),Q(this,zo,new Map),Q(this,Fo,new Map),Q(this,ui,0)}mount(){lc(this,ui)._++,E(this,ui)===1&&(Q(this,Bo,S0.subscribe(async e=>{e&&(await this.resumePausedMutations(),E(this,Ke).onFocus())})),Q(this,Uo,Lf.subscribe(async e=>{e&&(await this.resumePausedMutations(),E(this,Ke).onOnline())})))}unmount(){var e,t;lc(this,ui)._--,E(this,ui)===0&&((e=E(this,Bo))==null||e.call(this),Q(this,Bo,void 0),(t=E(this,Uo))==null||t.call(this),Q(this,Uo,void 0))}isFetching(e){return E(this,Ke).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return E(this,si).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=E(this,Ke).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=E(this,Ke).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(ji(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return E(this,Ke).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=E(this,Ke).get(n.queryHash),a=i==null?void 0:i.state.data,o=iI(t,a);if(o!==void 0)return E(this,Ke).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return st.batch(()=>E(this,Ke).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=E(this,Ke).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=E(this,Ke);st.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=E(this,Ke);return st.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=st.batch(()=>E(this,Ke).findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then($t).catch($t)}invalidateQueries(e,t={}){return st.batch(()=>(E(this,Ke).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=st.batch(()=>E(this,Ke).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let a=i.fetch(void 0,r);return r.throwOnError||(a=a.catch($t)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(n).then($t)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=E(this,Ke).build(this,t);return r.isStaleByTime(ji(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then($t).catch($t)}fetchInfiniteQuery(e){return e.behavior=y1(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then($t).catch($t)}ensureInfiniteQueryData(e){return e.behavior=y1(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Lf.isOnline()?E(this,si).resumePausedMutations():Promise.resolve()}getQueryCache(){return E(this,Ke)}getMutationCache(){return E(this,si)}getDefaultOptions(){return E(this,li)}setDefaultOptions(e){Q(this,li,e)}setQueryDefaults(e,t){E(this,zo).set(Ca(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...E(this,zo).values()],r={};return t.forEach(n=>{eu(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){E(this,Fo).set(Ca(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...E(this,Fo).values()],r={};return t.forEach(n=>{eu(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...E(this,li).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=b0(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===x0&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...E(this,li).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){E(this,Ke).clear(),E(this,si).clear()}},Ke=new WeakMap,si=new WeakMap,li=new WeakMap,zo=new WeakMap,Fo=new WeakMap,ui=new WeakMap,Bo=new WeakMap,Uo=new WeakMap,n_),MA=A.createContext(void 0),lh=e=>{const t=A.useContext(MA);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},_I=({client:e,children:t})=>(A.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),d.jsx(MA.Provider,{value:e,children:t})),IA=A.createContext(!1),PI=()=>A.useContext(IA);IA.Provider;function AI(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var kI=A.createContext(AI()),EI=()=>A.useContext(kI),NI=(e,t,r)=>{const n=r!=null&&r.state.error&&typeof e.throwOnError=="function"?w0(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))},CI=e=>{A.useEffect(()=>{e.clearReset()},[e])},TI=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(i&&e.data===void 0||w0(r,[e.error,n])),$I=e=>{if(e.suspense){const r=i=>i==="static"?i:Math.max(i??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...i)=>r(n(...i)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},MI=(e,t)=>e.isLoading&&e.isFetching&&!t,II=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,g1=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function RI(e,t,r){var h,p,m,y;const n=PI(),i=EI(),a=lh(),o=a.defaultQueryOptions(e);(p=(h=a.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||p.call(h,o);const s=a.getQueryCache().get(o.queryHash);o._optimisticResults=n?"isRestoring":"optimistic",$I(o),NI(o,i,s),CI(i);const l=!a.getQueryCache().get(o.queryHash),[u]=A.useState(()=>new t(a,o)),f=u.getOptimisticResult(o),c=!n&&e.subscribed!==!1;if(A.useSyncExternalStore(A.useCallback(v=>{const g=c?u.subscribe(st.batchCalls(v)):$t;return u.updateResult(),g},[u,c]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),A.useEffect(()=>{u.setOptions(o)},[o,u]),II(o,f))throw g1(o,u,i);if(TI({result:f,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw f.error;if((y=(m=a.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||y.call(m,o,f),o.experimental_prefetchInRender&&!Na&&MI(f,n)){const v=l?g1(o,u,i):s==null?void 0:s.promise;v==null||v.catch($t).finally(()=>{u.updateResult()})}return o.notifyOnChangeProps?f:u.trackResult(f)}function ki(e,t){return RI(e,yI)}function Pl(e,t){const r=lh(),[n]=A.useState(()=>new SI(r,e));A.useEffect(()=>{n.setOptions(e)},[n,e]);const i=A.useSyncExternalStore(A.useCallback(o=>n.subscribe(st.batchCalls(o)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),a=A.useCallback((o,s)=>{n.mutate(o,s).catch($t)},[n]);if(i.error&&w0(n.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function RA(e,t){return function(){return e.apply(t,arguments)}}const{toString:DI}=Object.prototype,{getPrototypeOf:j0}=Object,{iterator:uh,toStringTag:DA}=Symbol,ch=(e=>t=>{const r=DI.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Hr=e=>(e=e.toLowerCase(),t=>ch(t)===e),fh=e=>t=>typeof t===e,{isArray:Ns}=Array,Qo=fh("undefined");function Xu(e){return e!==null&&!Qo(e)&&e.constructor!==null&&!Qo(e.constructor)&&Yt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const LA=Hr("ArrayBuffer");function LI(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&LA(e.buffer),t}const zI=fh("string"),Yt=fh("function"),zA=fh("number"),Qu=e=>e!==null&&typeof e=="object",FI=e=>e===!0||e===!1,sf=e=>{if(ch(e)!=="object")return!1;const t=j0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(DA in e)&&!(uh in e)},BI=e=>{if(!Qu(e)||Xu(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},UI=Hr("Date"),WI=Hr("File"),HI=Hr("Blob"),qI=Hr("FileList"),KI=e=>Qu(e)&&Yt(e.pipe),VI=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Yt(e.append)&&((t=ch(e))==="formdata"||t==="object"&&Yt(e.toString)&&e.toString()==="[object FormData]"))},GI=Hr("URLSearchParams"),[XI,QI,YI,JI]=["ReadableStream","Request","Response","Headers"].map(Hr),ZI=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Yu(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Ns(e))for(n=0,i=e.length;n0;)if(i=r[n],t===i.toLowerCase())return i;return null}const ia=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,BA=e=>!Qo(e)&&e!==ia;function Ry(){const{caseless:e,skipUndefined:t}=BA(this)&&this||{},r={},n=(i,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const o=e&&FA(r,a)||a;sf(r[o])&&sf(i)?r[o]=Ry(r[o],i):sf(i)?r[o]=Ry({},i):Ns(i)?r[o]=i.slice():(!t||!Qo(i))&&(r[o]=i)};for(let i=0,a=arguments.length;i(Yu(t,(i,a)=>{r&&Yt(i)?Object.defineProperty(e,a,{value:RA(i,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,a,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),tR=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),rR=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},nR=(e,t,r,n)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!n||n(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=r!==!1&&j0(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},iR=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},aR=e=>{if(!e)return null;if(Ns(e))return e;let t=e.length;if(!zA(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},oR=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&j0(Uint8Array)),sR=(e,t)=>{const n=(e&&e[uh]).call(e);let i;for(;(i=n.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},lR=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},uR=Hr("HTMLFormElement"),cR=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),b1=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),fR=Hr("RegExp"),UA=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Yu(r,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(n[a]=o||i)}),Object.defineProperties(e,n)},dR=e=>{UA(e,(t,r)=>{if(Yt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Yt(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},hR=(e,t)=>{const r={},n=i=>{i.forEach(a=>{r[a]=!0})};return Ns(e)?n(e):n(String(e).split(t)),r},pR=()=>{},mR=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function yR(e){return!!(e&&Yt(e.append)&&e[DA]==="FormData"&&e[uh])}const vR=e=>{const t=new Array(10),r=(n,i)=>{if(Qu(n)){if(t.indexOf(n)>=0)return;if(Xu(n))return n;if(!("toJSON"in n)){t[i]=n;const a=Ns(n)?[]:{};return Yu(n,(o,s)=>{const l=r(o,i+1);!Qo(l)&&(a[s]=l)}),t[i]=void 0,a}}return n};return r(e,0)},gR=Hr("AsyncFunction"),bR=e=>e&&(Qu(e)||Yt(e))&&Yt(e.then)&&Yt(e.catch),WA=((e,t)=>e?setImmediate:t?((r,n)=>(ia.addEventListener("message",({source:i,data:a})=>{i===ia&&a===r&&n.length&&n.shift()()},!1),i=>{n.push(i),ia.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Yt(ia.postMessage)),xR=typeof queueMicrotask<"u"?queueMicrotask.bind(ia):typeof process<"u"&&process.nextTick||WA,wR=e=>e!=null&&Yt(e[uh]),M={isArray:Ns,isArrayBuffer:LA,isBuffer:Xu,isFormData:VI,isArrayBufferView:LI,isString:zI,isNumber:zA,isBoolean:FI,isObject:Qu,isPlainObject:sf,isEmptyObject:BI,isReadableStream:XI,isRequest:QI,isResponse:YI,isHeaders:JI,isUndefined:Qo,isDate:UI,isFile:WI,isBlob:HI,isRegExp:fR,isFunction:Yt,isStream:KI,isURLSearchParams:GI,isTypedArray:oR,isFileList:qI,forEach:Yu,merge:Ry,extend:eR,trim:ZI,stripBOM:tR,inherits:rR,toFlatObject:nR,kindOf:ch,kindOfTest:Hr,endsWith:iR,toArray:aR,forEachEntry:sR,matchAll:lR,isHTMLForm:uR,hasOwnProperty:b1,hasOwnProp:b1,reduceDescriptors:UA,freezeMethods:dR,toObjectSet:hR,toCamelCase:cR,noop:pR,toFiniteNumber:mR,findKey:FA,global:ia,isContextDefined:BA,isSpecCompliantForm:yR,toJSONObject:vR,isAsyncFn:gR,isThenable:bR,setImmediate:WA,asap:xR,isIterable:wR};let se=class HA extends Error{static from(t,r,n,i,a,o){const s=new HA(t.message,r||t.code,n,i,a);return s.cause=t,s.name=t.name,o&&Object.assign(s,o),s}constructor(t,r,n,i,a){super(t),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),i&&(this.request=i),a&&(this.response=a,this.status=a.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:M.toJSONObject(this.config),code:this.code,status:this.status}}};se.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";se.ERR_BAD_OPTION="ERR_BAD_OPTION";se.ECONNABORTED="ECONNABORTED";se.ETIMEDOUT="ETIMEDOUT";se.ERR_NETWORK="ERR_NETWORK";se.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";se.ERR_DEPRECATED="ERR_DEPRECATED";se.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";se.ERR_BAD_REQUEST="ERR_BAD_REQUEST";se.ERR_CANCELED="ERR_CANCELED";se.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";se.ERR_INVALID_URL="ERR_INVALID_URL";const SR=null;function Dy(e){return M.isPlainObject(e)||M.isArray(e)}function qA(e){return M.endsWith(e,"[]")?e.slice(0,-2):e}function x1(e,t,r){return e?e.concat(t).map(function(i,a){return i=qA(i),!r&&a?"["+i+"]":i}).join(r?".":""):t}function OR(e){return M.isArray(e)&&!e.some(Dy)}const jR=M.toFlatObject(M,{},null,function(t){return/^is[A-Z]/.test(t)});function dh(e,t,r){if(!M.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=M.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,v){return!M.isUndefined(v[y])});const n=r.metaTokens,i=r.visitor||f,a=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&M.isSpecCompliantForm(t);if(!M.isFunction(i))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(M.isDate(m))return m.toISOString();if(M.isBoolean(m))return m.toString();if(!l&&M.isBlob(m))throw new se("Blob is not supported. Use a Buffer instead.");return M.isArrayBuffer(m)||M.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function f(m,y,v){let g=m;if(m&&!v&&typeof m=="object"){if(M.endsWith(y,"{}"))y=n?y:y.slice(0,-2),m=JSON.stringify(m);else if(M.isArray(m)&&OR(m)||(M.isFileList(m)||M.endsWith(y,"[]"))&&(g=M.toArray(m)))return y=qA(y),g.forEach(function(w,O){!(M.isUndefined(w)||w===null)&&t.append(o===!0?x1([y],O,a):o===null?y:y+"[]",u(w))}),!1}return Dy(m)?!0:(t.append(x1(v,y,a),u(m)),!1)}const c=[],h=Object.assign(jR,{defaultVisitor:f,convertValue:u,isVisitable:Dy});function p(m,y){if(!M.isUndefined(m)){if(c.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));c.push(m),M.forEach(m,function(g,b){(!(M.isUndefined(g)||g===null)&&i.call(t,g,M.isString(b)?b.trim():b,y,h))===!0&&p(g,y?y.concat(b):[b])}),c.pop()}}if(!M.isObject(e))throw new TypeError("data must be an object");return p(e),t}function w1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function _0(e,t){this._pairs=[],e&&dh(e,this,t)}const KA=_0.prototype;KA.append=function(t,r){this._pairs.push([t,r])};KA.toString=function(t){const r=t?function(n){return t.call(this,n,w1)}:w1;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function _R(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function VA(e,t,r){if(!t)return e;const n=r&&r.encode||_R,i=M.isFunction(r)?{serialize:r}:r,a=i&&i.serialize;let o;if(a?o=a(t,i):o=M.isURLSearchParams(t)?t.toString():new _0(t,i).toString(n),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class S1{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){M.forEach(this.handlers,function(n){n!==null&&t(n)})}}const P0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},PR=typeof URLSearchParams<"u"?URLSearchParams:_0,AR=typeof FormData<"u"?FormData:null,kR=typeof Blob<"u"?Blob:null,ER={isBrowser:!0,classes:{URLSearchParams:PR,FormData:AR,Blob:kR},protocols:["http","https","file","blob","url","data"]},A0=typeof window<"u"&&typeof document<"u",Ly=typeof navigator=="object"&&navigator||void 0,NR=A0&&(!Ly||["ReactNative","NativeScript","NS"].indexOf(Ly.product)<0),CR=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",TR=A0&&window.location.href||"http://localhost",$R=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:A0,hasStandardBrowserEnv:NR,hasStandardBrowserWebWorkerEnv:CR,navigator:Ly,origin:TR},Symbol.toStringTag,{value:"Module"})),Et={...$R,...ER};function MR(e,t){return dh(e,new Et.classes.URLSearchParams,{visitor:function(r,n,i,a){return Et.isNode&&M.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function IR(e){return M.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function RR(e){const t={},r=Object.keys(e);let n;const i=r.length;let a;for(n=0;n=r.length;return o=!o&&M.isArray(i)?i.length:o,l?(M.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!s):((!i[o]||!M.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],a)&&M.isArray(i[o])&&(i[o]=RR(i[o])),!s)}if(M.isFormData(e)&&M.isFunction(e.entries)){const r={};return M.forEachEntry(e,(n,i)=>{t(IR(n),i,r,0)}),r}return null}function DR(e,t,r){if(M.isString(e))try{return(t||JSON.parse)(e),M.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Ju={transitional:P0,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,a=M.isObject(t);if(a&&M.isHTMLForm(t)&&(t=new FormData(t)),M.isFormData(t))return i?JSON.stringify(GA(t)):t;if(M.isArrayBuffer(t)||M.isBuffer(t)||M.isStream(t)||M.isFile(t)||M.isBlob(t)||M.isReadableStream(t))return t;if(M.isArrayBufferView(t))return t.buffer;if(M.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return MR(t,this.formSerializer).toString();if((s=M.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return dh(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(r.setContentType("application/json",!1),DR(t)):t}],transformResponse:[function(t){const r=this.transitional||Ju.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(M.isResponse(t)||M.isReadableStream(t))return t;if(t&&M.isString(t)&&(n&&!this.responseType||i)){const o=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(s){if(o)throw s.name==="SyntaxError"?se.from(s,se.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Et.classes.FormData,Blob:Et.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};M.forEach(["delete","get","head","post","put","patch"],e=>{Ju.headers[e]={}});const LR=M.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),zR=e=>{const t={};let r,n,i;return e&&e.split(` +`).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||t[r]&&LR[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},O1=Symbol("internals");function Zs(e){return e&&String(e).trim().toLowerCase()}function lf(e){return e===!1||e==null?e:M.isArray(e)?e.map(lf):String(e)}function FR(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const BR=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Fp(e,t,r,n,i){if(M.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!M.isString(t)){if(M.isString(n))return t.indexOf(n)!==-1;if(M.isRegExp(n))return n.test(t)}}function UR(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function WR(e,t){const r=M.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,a,o){return this[n].call(this,t,i,a,o)},configurable:!0})})}let Jt=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function a(s,l,u){const f=Zs(l);if(!f)throw new Error("header name must be a non-empty string");const c=M.findKey(i,f);(!c||i[c]===void 0||u===!0||u===void 0&&i[c]!==!1)&&(i[c||l]=lf(s))}const o=(s,l)=>M.forEach(s,(u,f)=>a(u,f,l));if(M.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(M.isString(t)&&(t=t.trim())&&!BR(t))o(zR(t),r);else if(M.isObject(t)&&M.isIterable(t)){let s={},l,u;for(const f of t){if(!M.isArray(f))throw TypeError("Object iterator must return a key-value pair");s[u=f[0]]=(l=s[u])?M.isArray(l)?[...l,f[1]]:[l,f[1]]:f[1]}o(s,r)}else t!=null&&a(r,t,n);return this}get(t,r){if(t=Zs(t),t){const n=M.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return FR(i);if(M.isFunction(r))return r.call(this,i,n);if(M.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Zs(t),t){const n=M.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Fp(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function a(o){if(o=Zs(o),o){const s=M.findKey(n,o);s&&(!r||Fp(n,n[s],s,r))&&(delete n[s],i=!0)}}return M.isArray(t)?t.forEach(a):a(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const a=r[n];(!t||Fp(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const r=this,n={};return M.forEach(this,(i,a)=>{const o=M.findKey(n,a);if(o){r[o]=lf(i),delete r[a];return}const s=t?UR(a):String(a).trim();s!==a&&delete r[a],r[s]=lf(i),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return M.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&M.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` +`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const n=(this[O1]=this[O1]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=Zs(o);n[s]||(WR(i,o),n[s]=!0)}return M.isArray(t)?t.forEach(a):a(t),this}};Jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);M.reduceDescriptors(Jt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});M.freezeMethods(Jt);function Bp(e,t){const r=this||Ju,n=t||r,i=Jt.from(n.headers);let a=n.data;return M.forEach(e,function(s){a=s.call(r,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function XA(e){return!!(e&&e.__CANCEL__)}let Zu=class extends se{constructor(t,r,n){super(t??"canceled",se.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function QA(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new se("Request failed with status code "+r.status,[se.ERR_BAD_REQUEST,se.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function HR(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function qR(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),f=n[a];o||(o=u),r[i]=l,n[i]=u;let c=a,h=0;for(;c!==i;)h+=r[c++],c=c%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-o{r=f,i=null,a&&(clearTimeout(a),a=null),e(...u)};return[(...u)=>{const f=Date.now(),c=f-r;c>=n?o(u,f):(i=u,a||(a=setTimeout(()=>{a=null,o(i)},n-c)))},()=>i&&o(i)]}const zf=(e,t,r=3)=>{let n=0;const i=qR(50,250);return KR(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-n,u=i(l),f=o<=s;n=o;const c={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&f?(s-o)/u:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(c)},r)},j1=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},_1=e=>(...t)=>M.asap(()=>e(...t)),VR=Et.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Et.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Et.origin),Et.navigator&&/(msie|trident)/i.test(Et.navigator.userAgent)):()=>!0,GR=Et.hasStandardBrowserEnv?{write(e,t,r,n,i,a,o){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];M.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),M.isString(n)&&s.push(`path=${n}`),M.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push("secure"),M.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function XR(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function QR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function YA(e,t,r){let n=!XR(t);return e&&(n||r==!1)?QR(e,t):t}const P1=e=>e instanceof Jt?{...e}:e;function Ta(e,t){t=t||{};const r={};function n(u,f,c,h){return M.isPlainObject(u)&&M.isPlainObject(f)?M.merge.call({caseless:h},u,f):M.isPlainObject(f)?M.merge({},f):M.isArray(f)?f.slice():f}function i(u,f,c,h){if(M.isUndefined(f)){if(!M.isUndefined(u))return n(void 0,u,c,h)}else return n(u,f,c,h)}function a(u,f){if(!M.isUndefined(f))return n(void 0,f)}function o(u,f){if(M.isUndefined(f)){if(!M.isUndefined(u))return n(void 0,u)}else return n(void 0,f)}function s(u,f,c){if(c in t)return n(u,f);if(c in e)return n(void 0,u)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,f,c)=>i(P1(u),P1(f),c,!0)};return M.forEach(Object.keys({...e,...t}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const c=M.hasOwnProp(l,f)?l[f]:i,h=c(e[f],t[f],f);M.isUndefined(h)&&c!==s||(r[f]=h)}),r}const JA=e=>{const t=Ta({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;if(t.headers=o=Jt.from(o),t.url=VA(YA(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),M.isFormData(r)){if(Et.hasStandardBrowserEnv||Et.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(M.isFunction(r.getHeaders)){const l=r.getHeaders(),u=["content-type","content-length"];Object.entries(l).forEach(([f,c])=>{u.includes(f.toLowerCase())&&o.set(f,c)})}}if(Et.hasStandardBrowserEnv&&(n&&M.isFunction(n)&&(n=n(t)),n||n!==!1&&VR(t.url))){const l=i&&a&&GR.read(a);l&&o.set(i,l)}return t},YR=typeof XMLHttpRequest<"u",JR=YR&&function(e){return new Promise(function(r,n){const i=JA(e);let a=i.data;const o=Jt.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,f,c,h,p,m;function y(){p&&p(),m&&m(),i.cancelToken&&i.cancelToken.unsubscribe(f),i.signal&&i.signal.removeEventListener("abort",f)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function g(){if(!v)return;const w=Jt.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:w,config:e,request:v};QA(function(j){r(j),y()},function(j){n(j),y()},x),v=null}"onloadend"in v?v.onloadend=g:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(g)},v.onabort=function(){v&&(n(new se("Request aborted",se.ECONNABORTED,e,v)),v=null)},v.onerror=function(O){const x=O&&O.message?O.message:"Network Error",S=new se(x,se.ERR_NETWORK,e,v);S.event=O||null,n(S),v=null},v.ontimeout=function(){let O=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const x=i.transitional||P0;i.timeoutErrorMessage&&(O=i.timeoutErrorMessage),n(new se(O,x.clarifyTimeoutError?se.ETIMEDOUT:se.ECONNABORTED,e,v)),v=null},a===void 0&&o.setContentType(null),"setRequestHeader"in v&&M.forEach(o.toJSON(),function(O,x){v.setRequestHeader(x,O)}),M.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),s&&s!=="json"&&(v.responseType=i.responseType),u&&([h,m]=zf(u,!0),v.addEventListener("progress",h)),l&&v.upload&&([c,p]=zf(l),v.upload.addEventListener("progress",c),v.upload.addEventListener("loadend",p)),(i.cancelToken||i.signal)&&(f=w=>{v&&(n(!w||w.type?new Zu(null,e,v):w),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(f),i.signal&&(i.signal.aborted?f():i.signal.addEventListener("abort",f)));const b=HR(i.url);if(b&&Et.protocols.indexOf(b)===-1){n(new se("Unsupported protocol "+b+":",se.ERR_BAD_REQUEST,e));return}v.send(a||null)})},ZR=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const a=function(u){if(!i){i=!0,s();const f=u instanceof Error?u:this.reason;n.abort(f instanceof se?f:new Zu(f instanceof Error?f.message:f))}};let o=t&&setTimeout(()=>{o=null,a(new se(`timeout of ${t}ms exceeded`,se.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:l}=n;return l.unsubscribe=()=>M.asap(s),l}},e3=function*(e,t){let r=e.byteLength;if(r{const i=t3(e,t);let a=0,o,s=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:u,value:f}=await i.next();if(u){s(),l.close();return}let c=f.byteLength;if(r){let h=a+=c;r(h)}l.enqueue(new Uint8Array(f))}catch(u){throw s(u),u}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},k1=64*1024,{isFunction:kc}=M,n3=(({Request:e,Response:t})=>({Request:e,Response:t}))(M.global),{ReadableStream:E1,TextEncoder:N1}=M.global,C1=(e,...t)=>{try{return!!e(...t)}catch{return!1}},i3=e=>{e=M.merge.call({skipUndefined:!0},n3,e);const{fetch:t,Request:r,Response:n}=e,i=t?kc(t):typeof fetch=="function",a=kc(r),o=kc(n);if(!i)return!1;const s=i&&kc(E1),l=i&&(typeof N1=="function"?(m=>y=>m.encode(y))(new N1):async m=>new Uint8Array(await new r(m).arrayBuffer())),u=a&&s&&C1(()=>{let m=!1;const y=new r(Et.origin,{body:new E1,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!y}),f=o&&s&&C1(()=>M.isReadableStream(new n("").body)),c={stream:f&&(m=>m.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!c[m]&&(c[m]=(y,v)=>{let g=y&&y[m];if(g)return g.call(y);throw new se(`Response type '${m}' is not supported`,se.ERR_NOT_SUPPORT,v)})});const h=async m=>{if(m==null)return 0;if(M.isBlob(m))return m.size;if(M.isSpecCompliantForm(m))return(await new r(Et.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(M.isArrayBufferView(m)||M.isArrayBuffer(m))return m.byteLength;if(M.isURLSearchParams(m)&&(m=m+""),M.isString(m))return(await l(m)).byteLength},p=async(m,y)=>{const v=M.toFiniteNumber(m.getContentLength());return v??h(y)};return async m=>{let{url:y,method:v,data:g,signal:b,cancelToken:w,timeout:O,onDownloadProgress:x,onUploadProgress:S,responseType:j,headers:_,withCredentials:P="same-origin",fetchOptions:N}=JA(m),$=t||fetch;j=j?(j+"").toLowerCase():"text";let T=ZR([b,w&&w.toAbortSignal()],O),L=null;const R=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let I;try{if(S&&u&&v!=="get"&&v!=="head"&&(I=await p(_,g))!==0){let V=new r(y,{method:"POST",body:g,duplex:"half"}),H;if(M.isFormData(g)&&(H=V.headers.get("content-type"))&&_.setContentType(H),V.body){const[X,ie]=j1(I,zf(_1(S)));g=A1(V.body,k1,X,ie)}}M.isString(P)||(P=P?"include":"omit");const D=a&&"credentials"in r.prototype,B={...N,signal:T,method:v.toUpperCase(),headers:_.normalize().toJSON(),body:g,duplex:"half",credentials:D?P:void 0};L=a&&new r(y,B);let C=await(a?$(L,N):$(y,B));const F=f&&(j==="stream"||j==="response");if(f&&(x||F&&R)){const V={};["status","statusText","headers"].forEach(xe=>{V[xe]=C[xe]});const H=M.toFiniteNumber(C.headers.get("content-length")),[X,ie]=x&&j1(H,zf(_1(x),!0))||[];C=new n(A1(C.body,k1,X,()=>{ie&&ie(),R&&R()}),V)}j=j||"text";let U=await c[M.findKey(c,j)||"text"](C,m);return!F&&R&&R(),await new Promise((V,H)=>{QA(V,H,{data:U,headers:Jt.from(C.headers),status:C.status,statusText:C.statusText,config:m,request:L})})}catch(D){throw R&&R(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new se("Network Error",se.ERR_NETWORK,m,L,D&&D.response),{cause:D.cause||D}):se.from(D,D&&D.code,m,L,D&&D.response)}}},a3=new Map,ZA=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:i}=t,a=[n,i,r];let o=a.length,s=o,l,u,f=a3;for(;s--;)l=a[s],u=f.get(l),u===void 0&&f.set(l,u=s?new Map:i3(t)),f=u;return u};ZA();const k0={http:SR,xhr:JR,fetch:{get:ZA}};M.forEach(k0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const T1=e=>`- ${e}`,o3=e=>M.isFunction(e)||e===null||e===!1;function s3(e,t){e=M.isArray(e)?e:[e];const{length:r}=e;let n,i;const a={};for(let o=0;o`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=r?o.length>1?`since : +`+o.map(T1).join(` +`):" "+T1(o[0]):"as no adapter specified";throw new se("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i}const e2={getAdapter:s3,adapters:k0};function Up(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Zu(null,e)}function $1(e){return Up(e),e.headers=Jt.from(e.headers),e.data=Bp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),e2.getAdapter(e.adapter||Ju.adapter,e)(e).then(function(n){return Up(e),n.data=Bp.call(e,e.transformResponse,n),n.headers=Jt.from(n.headers),n},function(n){return XA(n)||(Up(e),n&&n.response&&(n.response.data=Bp.call(e,e.transformResponse,n.response),n.response.headers=Jt.from(n.response.headers))),Promise.reject(n)})}const t2="1.13.5",hh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{hh[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const M1={};hh.transitional=function(t,r,n){function i(a,o){return"[Axios v"+t2+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return(a,o,s)=>{if(t===!1)throw new se(i(o," has been removed"+(r?" in "+r:"")),se.ERR_DEPRECATED);return r&&!M1[o]&&(M1[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,o,s):!0}};hh.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function l3(e,t,r){if(typeof e!="object")throw new se("options must be an object",se.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const a=n[i],o=t[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new se("option "+a+" must be "+l,se.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new se("Unknown option "+a,se.ERR_BAD_OPTION)}}const uf={assertOptions:l3,validators:hh},hr=uf.validators;let wa=class{constructor(t){this.defaults=t||{},this.interceptors={request:new S1,response:new S1}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=` +`+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ta(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:a}=r;n!==void 0&&uf.assertOptions(n,{silentJSONParsing:hr.transitional(hr.boolean),forcedJSONParsing:hr.transitional(hr.boolean),clarifyTimeoutError:hr.transitional(hr.boolean),legacyInterceptorReqResOrdering:hr.transitional(hr.boolean)},!1),i!=null&&(M.isFunction(i)?r.paramsSerializer={serialize:i}:uf.assertOptions(i,{encode:hr.function,serialize:hr.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),uf.assertOptions(r,{baseUrl:hr.spelling("baseURL"),withXsrfToken:hr.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=a&&M.merge(a.common,a[r.method]);a&&M.forEach(["delete","get","head","post","put","patch","common"],m=>{delete a[m]}),r.headers=Jt.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(r)===!1)return;l=l&&y.synchronous;const v=r.transitional||P0;v&&v.legacyInterceptorReqResOrdering?s.unshift(y.fulfilled,y.rejected):s.push(y.fulfilled,y.rejected)});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let f,c=0,h;if(!l){const m=[$1.bind(this),void 0];for(m.unshift(...s),m.push(...u),h=m.length,f=Promise.resolve(r);c{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](i);n._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{n.subscribe(s),a=s}).then(i);return o.cancel=function(){n.unsubscribe(a)},o},t(function(a,o,s){n.reason||(n.reason=new Zu(a,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new r2(function(i){t=i}),cancel:t}}};function c3(e){return function(r){return e.apply(null,r)}}function f3(e){return M.isObject(e)&&e.isAxiosError===!0}const zy={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(zy).forEach(([e,t])=>{zy[t]=e});function n2(e){const t=new wa(e),r=RA(wa.prototype.request,t);return M.extend(r,wa.prototype,t,{allOwnKeys:!0}),M.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return n2(Ta(e,i))},r}const Ye=n2(Ju);Ye.Axios=wa;Ye.CanceledError=Zu;Ye.CancelToken=u3;Ye.isCancel=XA;Ye.VERSION=t2;Ye.toFormData=dh;Ye.AxiosError=se;Ye.Cancel=Ye.CanceledError;Ye.all=function(t){return Promise.all(t)};Ye.spread=c3;Ye.isAxiosError=f3;Ye.mergeConfig=Ta;Ye.AxiosHeaders=Jt;Ye.formToJSON=e=>GA(M.isHTMLForm(e)?new FormData(e):e);Ye.getAdapter=e2.getAdapter;Ye.HttpStatusCode=zy;Ye.default=Ye;const{Axios:Gse,AxiosError:Xse,CanceledError:Qse,isCancel:Yse,CancelToken:Jse,VERSION:Zse,all:ele,Cancel:tle,isAxiosError:rle,spread:nle,toFormData:ile,AxiosHeaders:ale,HttpStatusCode:ole,formToJSON:sle,getAdapter:lle,mergeConfig:ule}=Ye,je=Ye.create({baseURL:"/api",headers:{"Content-Type":"application/json"}});je.interceptors.request.use(e=>{const t=localStorage.getItem("access_token");return t&&(e.headers.Authorization=`Bearer ${t}`),e});je.interceptors.response.use(e=>e,async e=>{var t;return((t=e.response)==null?void 0:t.status)===401&&(localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token"),window.location.href="/login"),Promise.reject(e)});const d3={login:(e,t)=>je.post("/auth/login",{email:e,password:t}),register:e=>je.post("/auth/register",e),refresh:e=>je.post("/auth/refresh",{refresh_token:e})},h3={me:()=>je.get("/users/me"),updateMe:e=>je.patch("/users/me",e)},ph={list:()=>je.get("/organizations"),create:e=>je.post("/organizations",e),get:e=>je.get(`/organizations/${e}`),update:(e,t)=>je.patch(`/organizations/${e}`,t),members:e=>je.get(`/organizations/${e}/members`),invite:(e,t)=>je.post(`/organizations/${e}/members`,t)},Ec={list:e=>je.get("/integrations",{params:{org_id:e}}),create:(e,t)=>je.post("/integrations",t,{params:{org_id:e}}),get:(e,t)=>je.get(`/integrations/${t}`,{params:{org_id:e}}),update:(e,t,r)=>je.patch(`/integrations/${t}`,r,{params:{org_id:e}}),delete:(e,t)=>je.delete(`/integrations/${t}`,{params:{org_id:e}}),test:(e,t)=>je.post(`/integrations/${t}/test`,null,{params:{org_id:e}})},Al={list:(e,t={})=>je.get("/issues",{params:{org_id:e,...t}}),stats:e=>je.get("/issues/stats",{params:{org_id:e}}),get:(e,t)=>je.get(`/issues/${t}`,{params:{org_id:e}}),create:(e,t)=>je.post("/issues",t,{params:{org_id:e}}),reanalyze:(e,t)=>je.post(`/issues/${t}/reanalyze`,null,{params:{org_id:e}}),addComment:(e,t,r)=>je.post(`/issues/${t}/comments`,r,{params:{org_id:e}})},Fy={summary:(e,t=30)=>je.get("/reports/summary",{params:{org_id:e,days:t}}),exportCsv:(e,t=30)=>je.get("/reports/export/csv",{params:{org_id:e,days:t},responseType:"blob"})},i2=A.createContext(null);function p3({children:e}){const[t,r]=A.useState(null),[n,i]=A.useState(!0),[a,o]=A.useState(null);A.useEffect(()=>{localStorage.getItem("access_token")?s():i(!1)},[]);const s=async()=>{try{const c=await h3.me();r(c.data);const h=localStorage.getItem("current_org");h&&o(JSON.parse(h))}catch{localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token")}finally{i(!1)}},l=async(c,h)=>{const p=await d3.login(c,h);localStorage.setItem("access_token",p.data.access_token),localStorage.setItem("refresh_token",p.data.refresh_token),await s()},u=()=>{localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token"),localStorage.removeItem("current_org"),r(null),o(null)},f=c=>{o(c),localStorage.setItem("current_org",JSON.stringify(c))};return d.jsx(i2.Provider,{value:{user:t,loading:n,login:l,logout:u,currentOrg:a,selectOrg:f},children:e})}const er=()=>A.useContext(i2);function a2(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t{const r=new Array(e.length+t.length);for(let n=0;n({classGroupId:e,validator:t}),o2=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Ff="-",I1=[],v3="arbitrary..",g3=e=>{const t=x3(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return b3(o);const s=o.split(Ff),l=s[0]===""&&s.length>1?1:0;return s2(s,l,t)},getConflictingClassGroupIds:(o,s)=>{if(s){const l=n[o],u=r[o];return l?u?m3(u,l):l:u||I1}return r[o]||I1}}},s2=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const i=e[t],a=r.nextPart.get(i);if(a){const u=s2(e,t+1,a);if(u)return u}const o=r.validators;if(o===null)return;const s=t===0?e.join(Ff):e.slice(t).join(Ff),l=o.length;for(let u=0;ue.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?v3+n:void 0})(),x3=e=>{const{theme:t,classGroups:r}=e;return w3(r,t)},w3=(e,t)=>{const r=o2();for(const n in e){const i=e[n];E0(i,r,n,t)}return r},E0=(e,t,r,n)=>{const i=e.length;for(let a=0;a{if(typeof e=="string"){O3(e,t,r);return}if(typeof e=="function"){j3(e,t,r,n);return}_3(e,t,r,n)},O3=(e,t,r)=>{const n=e===""?t:l2(t,e);n.classGroupId=r},j3=(e,t,r,n)=>{if(P3(e)){E0(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(y3(r,e))},_3=(e,t,r,n)=>{const i=Object.entries(e),a=i.length;for(let o=0;o{let r=e;const n=t.split(Ff),i=n.length;for(let a=0;a"isThemeGetter"in e&&e.isThemeGetter===!0,A3=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const i=(a,o)=>{r[a]=o,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(a){let o=r[a];if(o!==void 0)return o;if((o=n[a])!==void 0)return i(a,o),o},set(a,o){a in r?r[a]=o:i(a,o)}}},By="!",R1=":",k3=[],D1=(e,t,r,n,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:i}),E3=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=i=>{const a=[];let o=0,s=0,l=0,u;const f=i.length;for(let y=0;yl?u-l:void 0;return D1(a,p,h,m)};if(t){const i=t+R1,a=n;n=o=>o.startsWith(i)?a(o.slice(i.length)):D1(k3,!1,o,void 0,!0)}if(r){const i=n;n=a=>r({className:a,parseClassName:i})}return n},N3=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let i=[];for(let a=0;a0&&(i.sort(),n.push(...i),i=[]),n.push(o)):i.push(o)}return i.length>0&&(i.sort(),n.push(...i)),n}},C3=e=>({cache:A3(e.cacheSize),parseClassName:E3(e),sortModifiers:N3(e),...g3(e)}),T3=/\s+/,$3=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(T3);let l="";for(let u=s.length-1;u>=0;u-=1){const f=s[u],{isExternal:c,modifiers:h,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:y}=r(f);if(c){l=f+(l.length>0?" "+l:l);continue}let v=!!y,g=n(v?m.substring(0,y):m);if(!g){if(!v){l=f+(l.length>0?" "+l:l);continue}if(g=n(m),!g){l=f+(l.length>0?" "+l:l);continue}v=!1}const b=h.length===0?"":h.length===1?h[0]:a(h).join(":"),w=p?b+By:b,O=w+g;if(o.indexOf(O)>-1)continue;o.push(O);const x=i(g,v);for(let S=0;S0?" "+l:l)}return l},M3=(...e)=>{let t=0,r,n,i="";for(;t{if(typeof e=="string")return e;let t,r="";for(let n=0;n{let r,n,i,a;const o=l=>{const u=t.reduce((f,c)=>c(f),e());return r=C3(u),n=r.cache.get,i=r.cache.set,a=s,s(l)},s=l=>{const u=n(l);if(u)return u;const f=$3(l,r);return i(l,f),f};return a=o,(...l)=>a(M3(...l))},R3=[],nt=e=>{const t=r=>r[e]||R3;return t.isThemeGetter=!0,t},c2=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,f2=/^\((?:(\w[\w-]*):)?(.+)\)$/i,D3=/^\d+\/\d+$/,L3=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,z3=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,F3=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,B3=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,U3=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ja=e=>D3.test(e),he=e=>!!e&&!Number.isNaN(Number(e)),Kn=e=>!!e&&Number.isInteger(Number(e)),Wp=e=>e.endsWith("%")&&he(e.slice(0,-1)),dn=e=>L3.test(e),d2=()=>!0,W3=e=>z3.test(e)&&!F3.test(e),N0=()=>!1,H3=e=>B3.test(e),q3=e=>U3.test(e),K3=e=>!Z(e)&&!ee(e),V3=e=>Ri(e,m2,N0),Z=e=>c2.test(e),Hi=e=>Ri(e,y2,W3),L1=e=>Ri(e,t4,he),G3=e=>Ri(e,g2,d2),X3=e=>Ri(e,v2,N0),z1=e=>Ri(e,h2,N0),Q3=e=>Ri(e,p2,q3),Nc=e=>Ri(e,b2,H3),ee=e=>f2.test(e),el=e=>Ha(e,y2),Y3=e=>Ha(e,v2),F1=e=>Ha(e,h2),J3=e=>Ha(e,m2),Z3=e=>Ha(e,p2),Cc=e=>Ha(e,b2,!0),e4=e=>Ha(e,g2,!0),Ri=(e,t,r)=>{const n=c2.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Ha=(e,t,r=!1)=>{const n=f2.exec(e);return n?n[1]?t(n[1]):r:!1},h2=e=>e==="position"||e==="percentage",p2=e=>e==="image"||e==="url",m2=e=>e==="length"||e==="size"||e==="bg-size",y2=e=>e==="length",t4=e=>e==="number",v2=e=>e==="family-name",g2=e=>e==="number"||e==="weight",b2=e=>e==="shadow",r4=()=>{const e=nt("color"),t=nt("font"),r=nt("text"),n=nt("font-weight"),i=nt("tracking"),a=nt("leading"),o=nt("breakpoint"),s=nt("container"),l=nt("spacing"),u=nt("radius"),f=nt("shadow"),c=nt("inset-shadow"),h=nt("text-shadow"),p=nt("drop-shadow"),m=nt("blur"),y=nt("perspective"),v=nt("aspect"),g=nt("ease"),b=nt("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],x=()=>[...O(),ee,Z],S=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],_=()=>[ee,Z,l],P=()=>[Ja,"full","auto",..._()],N=()=>[Kn,"none","subgrid",ee,Z],$=()=>["auto",{span:["full",Kn,ee,Z]},Kn,ee,Z],T=()=>[Kn,"auto",ee,Z],L=()=>["auto","min","max","fr",ee,Z],R=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],I=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",..._()],B=()=>[Ja,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],C=()=>[e,ee,Z],F=()=>[...O(),F1,z1,{position:[ee,Z]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",J3,V3,{size:[ee,Z]}],H=()=>[Wp,el,Hi],X=()=>["","none","full",u,ee,Z],ie=()=>["",he,el,Hi],xe=()=>["solid","dashed","dotted","double"],ze=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Se=()=>[he,Wp,F1,z1],gt=()=>["","none",m,ee,Z],G=()=>["none",he,ee,Z],le=()=>["none",he,ee,Z],ue=()=>[he,ee,Z],W=()=>[Ja,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[dn],breakpoint:[dn],color:[d2],container:[dn],"drop-shadow":[dn],ease:["in","out","in-out"],font:[K3],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[dn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[dn],shadow:[dn],spacing:["px",he],text:[dn],"text-shadow":[dn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ja,Z,ee,v]}],container:["container"],columns:[{columns:[he,Z,ee,s]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{start:P()}],end:[{end:P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[Kn,"auto",ee,Z]}],basis:[{basis:[Ja,"full","auto",s,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[he,Ja,"auto","initial","none",Z]}],grow:[{grow:["",he,ee,Z]}],shrink:[{shrink:["",he,ee,Z]}],order:[{order:[Kn,"first","last","none",ee,Z]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":L()}],"auto-rows":[{"auto-rows":L()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...R(),"normal"]}],"justify-items":[{"justify-items":[...I(),"normal"]}],"justify-self":[{"justify-self":["auto",...I()]}],"align-content":[{content:["normal",...R()]}],"align-items":[{items:[...I(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...I(),{baseline:["","last"]}]}],"place-content":[{"place-content":R()}],"place-items":[{"place-items":[...I(),"baseline"]}],"place-self":[{"place-self":["auto",...I()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],w:[{w:[s,"screen",...B()]}],"min-w":[{"min-w":[s,"screen","none",...B()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh",...B()]}],"font-size":[{text:["base",r,el,Hi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,e4,G3]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Wp,Z]}],"font-family":[{font:[Y3,X3,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,ee,Z]}],"line-clamp":[{"line-clamp":[he,"none",ee,L1]}],leading:[{leading:[a,..._()]}],"list-image":[{"list-image":["none",ee,Z]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ee,Z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...xe(),"wavy"]}],"text-decoration-thickness":[{decoration:[he,"from-font","auto",ee,Hi]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[he,"auto",ee,Z]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ee,Z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ee,Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Kn,ee,Z],radial:["",ee,Z],conic:[Kn,ee,Z]},Z3,Q3]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:H()}],"gradient-via-pos":[{via:H()}],"gradient-to-pos":[{to:H()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:X()}],"rounded-s":[{"rounded-s":X()}],"rounded-e":[{"rounded-e":X()}],"rounded-t":[{"rounded-t":X()}],"rounded-r":[{"rounded-r":X()}],"rounded-b":[{"rounded-b":X()}],"rounded-l":[{"rounded-l":X()}],"rounded-ss":[{"rounded-ss":X()}],"rounded-se":[{"rounded-se":X()}],"rounded-ee":[{"rounded-ee":X()}],"rounded-es":[{"rounded-es":X()}],"rounded-tl":[{"rounded-tl":X()}],"rounded-tr":[{"rounded-tr":X()}],"rounded-br":[{"rounded-br":X()}],"rounded-bl":[{"rounded-bl":X()}],"border-w":[{border:ie()}],"border-w-x":[{"border-x":ie()}],"border-w-y":[{"border-y":ie()}],"border-w-s":[{"border-s":ie()}],"border-w-e":[{"border-e":ie()}],"border-w-t":[{"border-t":ie()}],"border-w-r":[{"border-r":ie()}],"border-w-b":[{"border-b":ie()}],"border-w-l":[{"border-l":ie()}],"divide-x":[{"divide-x":ie()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ie()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...xe(),"hidden","none"]}],"divide-style":[{divide:[...xe(),"hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...xe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[he,ee,Z]}],"outline-w":[{outline:["",he,el,Hi]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",f,Cc,Nc]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",c,Cc,Nc]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[he,Hi]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":ie()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",h,Cc,Nc]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[he,ee,Z]}],"mix-blend":[{"mix-blend":[...ze(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ze()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[he]}],"mask-image-linear-from-pos":[{"mask-linear-from":Se()}],"mask-image-linear-to-pos":[{"mask-linear-to":Se()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":Se()}],"mask-image-t-to-pos":[{"mask-t-to":Se()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":Se()}],"mask-image-r-to-pos":[{"mask-r-to":Se()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":Se()}],"mask-image-b-to-pos":[{"mask-b-to":Se()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":Se()}],"mask-image-l-to-pos":[{"mask-l-to":Se()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":Se()}],"mask-image-x-to-pos":[{"mask-x-to":Se()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":Se()}],"mask-image-y-to-pos":[{"mask-y-to":Se()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[ee,Z]}],"mask-image-radial-from-pos":[{"mask-radial-from":Se()}],"mask-image-radial-to-pos":[{"mask-radial-to":Se()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[he]}],"mask-image-conic-from-pos":[{"mask-conic-from":Se()}],"mask-image-conic-to-pos":[{"mask-conic-to":Se()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ee,Z]}],filter:[{filter:["","none",ee,Z]}],blur:[{blur:gt()}],brightness:[{brightness:[he,ee,Z]}],contrast:[{contrast:[he,ee,Z]}],"drop-shadow":[{"drop-shadow":["","none",p,Cc,Nc]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",he,ee,Z]}],"hue-rotate":[{"hue-rotate":[he,ee,Z]}],invert:[{invert:["",he,ee,Z]}],saturate:[{saturate:[he,ee,Z]}],sepia:[{sepia:["",he,ee,Z]}],"backdrop-filter":[{"backdrop-filter":["","none",ee,Z]}],"backdrop-blur":[{"backdrop-blur":gt()}],"backdrop-brightness":[{"backdrop-brightness":[he,ee,Z]}],"backdrop-contrast":[{"backdrop-contrast":[he,ee,Z]}],"backdrop-grayscale":[{"backdrop-grayscale":["",he,ee,Z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[he,ee,Z]}],"backdrop-invert":[{"backdrop-invert":["",he,ee,Z]}],"backdrop-opacity":[{"backdrop-opacity":[he,ee,Z]}],"backdrop-saturate":[{"backdrop-saturate":[he,ee,Z]}],"backdrop-sepia":[{"backdrop-sepia":["",he,ee,Z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ee,Z]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[he,"initial",ee,Z]}],ease:[{ease:["linear","initial",g,ee,Z]}],delay:[{delay:[he,ee,Z]}],animate:[{animate:["none",b,ee,Z]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,ee,Z]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:G()}],"rotate-x":[{"rotate-x":G()}],"rotate-y":[{"rotate-y":G()}],"rotate-z":[{"rotate-z":G()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[ee,Z,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:W()}],"translate-x":[{"translate-x":W()}],"translate-y":[{"translate-y":W()}],"translate-z":[{"translate-z":W()}],"translate-none":["translate-none"],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ee,Z]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ee,Z]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[he,el,Hi,L1]}],stroke:[{stroke:["none",...C()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},n4=I3(r4);function ye(...e){return n4(fe(e))}/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const x2=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const i4=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const a4=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase());/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const B1=e=>{const t=a4(e);return t.charAt(0).toUpperCase()+t.slice(1)};/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var o4={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const s4=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const l4=A.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:a,iconNode:o,...s},l)=>A.createElement("svg",{ref:l,...o4,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:x2("lucide",i),...!a&&!s4(s)&&{"aria-hidden":"true"},...s},[...o.map(([u,f])=>A.createElement(u,f)),...Array.isArray(a)?a:[a]]));/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const te=(e,t)=>{const r=A.forwardRef(({className:n,...i},a)=>A.createElement(l4,{ref:a,iconNode:t,className:x2(`lucide-${i4(B1(e))}`,`lucide-${e}`,n),...i}));return r.displayName=B1(e),r};/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const u4=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],c4=te("arrow-left",u4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const f4=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],ec=te("arrow-right",f4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const d4=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],w2=te("bell",d4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const h4=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],Bf=te("brain",h4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const p4=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],$a=te("building-2",p4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const m4=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],y4=te("calendar",m4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const v4=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],S2=te("chart-column",v4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const g4=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],C0=te("check",g4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const b4=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Uy=te("chevron-right",b4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const x4=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],w4=te("chevrons-up-down",x4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const S4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],tu=te("circle-alert",S4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const O4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Ei=te("circle-check",O4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const j4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],T0=te("circle-x",j4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],mh=te("clock",_4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const P4=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],Wy=te("code-xml",P4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const A4=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Hy=te("copy",A4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const k4=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],E4=te("crown",k4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const N4=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],C4=te("download",N4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const T4=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],$4=te("ellipsis-vertical",T4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const M4=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],U1=te("external-link",M4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const I4=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Uf=te("eye",I4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const R4=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],qy=te("eye-off",R4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const D4=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],L4=te("file-code",D4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const z4=[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]],F4=te("folder-tree",z4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const B4=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],Hp=te("git-branch",B4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const U4=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]],yh=te("git-pull-request",U4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const W4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],O2=te("globe",W4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const H4=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],j2=te("key",H4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const q4=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],K4=te("layout-dashboard",q4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const V4=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],G4=te("lightbulb",V4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const X4=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],Q4=te("link-2",X4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Y4=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Zt=te("loader-circle",Y4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const J4=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],_2=te("lock",J4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Z4=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],eD=te("log-out",Z4);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const tD=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],vh=te("mail",tD);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const rD=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],nD=te("message-square",rD);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const iD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],aD=te("panel-left-close",iD);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const oD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],sD=te("panel-left-open",oD);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const lD=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],P2=te("plug",lD);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const uD=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Ma=te("plus",uD);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const cD=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],A2=te("refresh-cw",cD);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const fD=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],qp=te("save",fD);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const dD=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],cf=te("search",dD);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const hD=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],pD=te("send",hD);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const mD=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],yD=te("server",mD);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const vD=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],k2=te("settings",vD);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const gD=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],E2=te("shield",gD);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const bD=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],xD=te("sliders-horizontal",bD);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const wD=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],SD=te("tag",wD);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const OD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],jD=te("target",OD);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _D=[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]],W1=te("test-tube",_D);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const PD=[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],$0=te("ticket-check",PD);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const AD=[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]],H1=te("ticket",AD);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const kD=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],N2=te("trash-2",kD);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ED=[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]],ND=te("trending-down",ED);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const CD=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],TD=te("trending-up",CD);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $D=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],MD=te("triangle-alert",$D);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ID=[["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m14.305 16.53.923-.382",key:"1itpsq"}],["path",{d:"m15.228 13.852-.923-.383",key:"eplpkm"}],["path",{d:"m16.852 12.228-.383-.923",key:"13v3q0"}],["path",{d:"m16.852 17.772-.383.924",key:"1i8mnm"}],["path",{d:"m19.148 12.228.383-.923",key:"1q8j1v"}],["path",{d:"m19.53 18.696-.382-.924",key:"vk1qj3"}],["path",{d:"m20.772 13.852.924-.383",key:"n880s0"}],["path",{d:"m20.772 16.148.924.383",key:"1g6xey"}],["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],RD=te("user-cog",ID);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const DD=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],LD=te("user",DD);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const zD=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],C2=te("users",zD);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const FD=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],BD=te("x",FD);/** + * @license lucide-react v0.574.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const UD=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],ru=te("zap",UD),WD=[{label:"Main",items:[{path:"/",label:"Dashboard",icon:K4},{path:"/issues",label:"Issues",icon:$0}]},{label:"Management",items:[{path:"/integrations",label:"Integrations",icon:P2},{path:"/team",label:"Team",icon:C2},{path:"/reports",label:"Reports",icon:S2}]},{label:"System",items:[{path:"/settings",label:"Settings",icon:k2}]}],HD={"/":"Dashboard","/issues":"Issues","/integrations":"Integrations","/team":"Team","/reports":"Reports","/settings":"Settings"};function qD(){var w,O,x,S;const{user:e,logout:t,currentOrg:r,selectOrg:n}=er(),i=ks(),a=Wa(),[o,s]=A.useState(!1),[l,u]=A.useState(!1),[f,c]=A.useState(!1),[h,p]=A.useState(!1),[m,y]=A.useState(""),{data:v}=ki({queryKey:["organizations"],queryFn:()=>ph.list()});A.useEffect(()=>{const j=_=>{(_.metaKey||_.ctrlKey)&&_.key==="k"&&(_.preventDefault(),c(P=>!P)),_.key==="Escape"&&(c(!1),u(!1))};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[]);const g=()=>{const j=i.pathname.split("/").filter(Boolean);if(j.length===0)return[{label:"Dashboard",path:"/"}];const _=[];let P="";for(const N of j)P+=`/${N}`,_.push({label:HD[P]||N.charAt(0).toUpperCase()+N.slice(1),path:P});return _},b=j=>j==="/"?i.pathname==="/":i.pathname.startsWith(j);return d.jsxs("div",{className:"min-h-screen flex bg-gray-950 text-gray-200",children:[f&&d.jsxs("div",{className:"fixed inset-0 z-50 flex items-start justify-center pt-[20vh]",onClick:()=>c(!1),children:[d.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm"}),d.jsx("div",{className:"relative w-full max-w-lg mx-4 animate-slide-up",onClick:j=>j.stopPropagation(),children:d.jsxs("div",{className:"card border-gray-700 shadow-2xl",children:[d.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 border-b border-gray-800",children:[d.jsx(cf,{size:18,className:"text-gray-500"}),d.jsx("input",{autoFocus:!0,value:m,onChange:j=>y(j.target.value),placeholder:"Search issues, projects, settings...",className:"flex-1 bg-transparent text-sm outline-none placeholder:text-gray-500"}),d.jsx("kbd",{className:"kbd",children:"ESC"})]}),d.jsxs("div",{className:"p-2 max-h-80 overflow-auto",children:[["Dashboard","Issues","Integrations","Team","Reports","Settings"].filter(j=>j.toLowerCase().includes(m.toLowerCase())).map(j=>d.jsxs("button",{className:"w-full flex items-center gap-3 px-3 py-2 rounded-lg text-sm text-gray-300 hover:bg-gray-800 transition-colors",onClick:()=>{a(`/${j.toLowerCase()==="dashboard"?"":j.toLowerCase()}`),c(!1),y("")},children:[d.jsx(Uy,{size:14,className:"text-gray-600"}),j]},j)),m&&d.jsxs("div",{className:"px-3 py-6 text-center text-sm text-gray-500",children:['Press Enter to search for "',m,'"']})]})]})})]}),d.jsxs("aside",{className:ye("fixed top-0 left-0 h-full flex flex-col border-r border-gray-800/50 bg-gray-950 z-40 transition-all duration-300",o?"w-[68px]":"w-[260px]"),children:[d.jsx("div",{className:ye("h-14 flex items-center border-b border-gray-800/50 px-4",o&&"justify-center px-0"),children:o?d.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-600 flex items-center justify-center",children:d.jsx(ru,{size:16,className:"text-white"})}):d.jsxs("div",{className:"flex items-center gap-2.5",children:[d.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-600 flex items-center justify-center shadow-lg shadow-indigo-500/20",children:d.jsx(ru,{size:16,className:"text-white"})}),d.jsxs("div",{children:[d.jsx("h1",{className:"text-sm font-semibold text-white",children:"JIRA AI Fixer"}),d.jsx("p",{className:"text-[10px] text-gray-500 font-medium",children:"Enterprise v2.0"})]})]})}),!o&&d.jsxs("div",{className:"px-3 py-3 border-b border-gray-800/50 relative",children:[d.jsxs("button",{onClick:()=>u(!l),className:"w-full flex items-center gap-2.5 px-3 py-2 rounded-lg bg-gray-900/60 hover:bg-gray-800/80 border border-gray-800/50 transition-all",children:[d.jsx("div",{className:"w-6 h-6 rounded bg-indigo-600/20 flex items-center justify-center flex-shrink-0",children:d.jsx($a,{size:12,className:"text-indigo-400"})}),d.jsx("span",{className:"flex-1 text-left text-sm truncate",children:(r==null?void 0:r.name)||"Select org"}),d.jsx(w4,{size:14,className:"text-gray-500"})]}),l&&(v==null?void 0:v.data)&&d.jsxs("div",{className:"absolute left-3 right-3 top-full mt-1 bg-gray-900 border border-gray-700 rounded-lg shadow-xl z-50 animate-slide-up",children:[v.data.map(j=>d.jsxs("button",{onClick:()=>{n(j),u(!1)},className:ye("w-full flex items-center gap-2.5 px-3 py-2 text-sm hover:bg-gray-800 first:rounded-t-lg last:rounded-b-lg transition-colors",(r==null?void 0:r.id)===j.id&&"bg-indigo-600/10 text-indigo-400"),children:[d.jsx($a,{size:14}),j.name]},j.id)),d.jsxs("button",{onClick:()=>{a("/settings"),u(!1)},className:"w-full flex items-center gap-2.5 px-3 py-2 text-sm text-indigo-400 hover:bg-gray-800 border-t border-gray-800 rounded-b-lg",children:[d.jsx(Ma,{size:14}),"New organization"]})]})]}),!o&&d.jsx("div",{className:"px-3 pt-3",children:d.jsxs("button",{onClick:()=>c(!0),className:"w-full flex items-center gap-2.5 px-3 py-2 rounded-lg text-gray-500 hover:text-gray-300 bg-gray-900/40 hover:bg-gray-800/60 border border-gray-800/30 transition-all text-sm",children:[d.jsx(cf,{size:14}),d.jsx("span",{className:"flex-1 text-left",children:"Search..."}),d.jsxs("div",{className:"flex items-center gap-0.5",children:[d.jsx("kbd",{className:"kbd",children:"⌘"}),d.jsx("kbd",{className:"kbd",children:"K"})]})]})}),d.jsx("nav",{className:"flex-1 overflow-auto px-3 py-4 space-y-5",children:WD.map(j=>d.jsxs("div",{children:[!o&&d.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-gray-600 px-3 mb-1.5",children:j.label}),d.jsx("div",{className:"space-y-0.5",children:j.items.map(_=>{const P=_.icon,N=b(_.path);return d.jsxs(Ea,{to:_.path,title:o?_.label:void 0,className:ye("sidebar-item",N?"sidebar-item-active":"sidebar-item-inactive",o&&"justify-center px-0"),children:[d.jsx(P,{size:18,strokeWidth:N?2:1.5}),!o&&d.jsx("span",{children:_.label})]},_.path)})})]},j.label))}),d.jsx("div",{className:"px-3 py-2 border-t border-gray-800/50",children:d.jsxs("button",{onClick:()=>s(!o),className:ye("sidebar-item sidebar-item-inactive w-full",o&&"justify-center px-0"),children:[o?d.jsx(sD,{size:18}):d.jsx(aD,{size:18}),!o&&d.jsx("span",{children:"Collapse"})]})}),d.jsx("div",{className:ye("px-3 py-3 border-t border-gray-800/50",o&&"px-2"),children:d.jsxs("div",{className:ye("flex items-center gap-2.5",o&&"justify-center"),children:[d.jsx("div",{className:"w-8 h-8 rounded-lg bg-gradient-to-br from-indigo-500 to-purple-600 flex items-center justify-center text-xs font-semibold text-white flex-shrink-0",children:((O=(w=e==null?void 0:e.full_name)==null?void 0:w[0])==null?void 0:O.toUpperCase())||((S=(x=e==null?void 0:e.email)==null?void 0:x[0])==null?void 0:S.toUpperCase())||"?"}),!o&&d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"text-sm font-medium truncate",children:(e==null?void 0:e.full_name)||(e==null?void 0:e.email)}),d.jsxs("button",{onClick:t,className:"text-xs text-gray-500 hover:text-red-400 transition-colors flex items-center gap-1",children:[d.jsx(eD,{size:10}),"Sign out"]})]})]})})]}),d.jsxs("div",{className:ye("flex-1 flex flex-col transition-all duration-300",o?"ml-[68px]":"ml-[260px]"),children:[d.jsxs("header",{className:"h-14 flex items-center justify-between px-6 border-b border-gray-800/50 bg-gray-950/80 backdrop-blur-md sticky top-0 z-30",children:[d.jsx("div",{className:"flex items-center gap-1.5 text-sm",children:g().map((j,_)=>d.jsxs("div",{className:"flex items-center gap-1.5",children:[_>0&&d.jsx(Uy,{size:12,className:"text-gray-600"}),d.jsx(Ea,{to:j.path,className:ye("hover:text-white transition-colors",_===g().length-1?"text-white font-medium":"text-gray-400"),children:j.label})]},j.path))}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("button",{onClick:()=>c(!0),className:"btn-ghost btn-icon rounded-lg",children:d.jsx(cf,{size:16})}),d.jsxs("button",{onClick:()=>p(!h),className:"btn-ghost btn-icon rounded-lg relative",children:[d.jsx(w2,{size:16}),d.jsx("span",{className:"absolute top-1.5 right-1.5 w-2 h-2 rounded-full bg-indigo-500"})]})]})]}),d.jsx("main",{className:"flex-1 overflow-auto",children:d.jsx(UM,{})})]})]})}function KD(){const[e,t]=A.useState(""),[r,n]=A.useState(""),[i,a]=A.useState(""),[o,s]=A.useState(!1),{login:l}=er(),u=Wa(),f=async c=>{var h,p;c.preventDefault(),a(""),s(!0);try{await l(e,r),u("/")}catch(m){a(((p=(h=m.response)==null?void 0:h.data)==null?void 0:p.detail)||"Invalid email or password")}finally{s(!1)}};return d.jsxs("div",{className:"min-h-screen flex bg-gray-950",children:[d.jsxs("div",{className:"hidden lg:flex lg:w-1/2 relative overflow-hidden",children:[d.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-indigo-600 via-indigo-700 to-purple-800"}),d.jsx("div",{className:"absolute inset-0 opacity-10",style:{backgroundImage:"radial-gradient(circle at 2px 2px, white 1px, transparent 0)",backgroundSize:"32px 32px"}}),d.jsxs("div",{className:"relative z-10 flex flex-col justify-center px-16",children:[d.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[d.jsx("div",{className:"w-12 h-12 rounded-xl bg-white/10 backdrop-blur flex items-center justify-center",children:d.jsx(ru,{size:24,className:"text-white"})}),d.jsxs("div",{children:[d.jsx("h1",{className:"text-2xl font-bold text-white",children:"JIRA AI Fixer"}),d.jsx("p",{className:"text-sm text-indigo-200",children:"Enterprise v2.0"})]})]}),d.jsxs("h2",{className:"text-4xl font-bold text-white leading-tight mb-4",children:["AI-Powered Issue",d.jsx("br",{}),"Analysis & Resolution"]}),d.jsx("p",{className:"text-lg text-indigo-200 max-w-md",children:"Automatically analyze issues from JIRA, ServiceNow, GitHub and more. Get root cause analysis and automated Pull Requests."}),d.jsx("div",{className:"mt-12 grid grid-cols-3 gap-6",children:[{value:"95%",label:"Accuracy"},{value:"10x",label:"Faster Resolution"},{value:"24/7",label:"Automated"}].map(c=>d.jsxs("div",{children:[d.jsx("p",{className:"text-3xl font-bold text-white",children:c.value}),d.jsx("p",{className:"text-sm text-indigo-300 mt-1",children:c.label})]},c.label))})]})]}),d.jsx("div",{className:"flex-1 flex items-center justify-center px-6",children:d.jsxs("div",{className:"w-full max-w-sm",children:[d.jsx("div",{className:"lg:hidden text-center mb-8",children:d.jsxs("div",{className:"inline-flex items-center gap-2.5",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-indigo-600 flex items-center justify-center shadow-lg shadow-indigo-500/25",children:d.jsx(ru,{size:20,className:"text-white"})}),d.jsxs("div",{className:"text-left",children:[d.jsx("h1",{className:"text-lg font-bold text-white",children:"JIRA AI Fixer"}),d.jsx("p",{className:"text-xs text-gray-500",children:"Enterprise v2.0"})]})]})}),d.jsxs("div",{className:"mb-8",children:[d.jsx("h2",{className:"text-2xl font-bold text-white",children:"Welcome back"}),d.jsx("p",{className:"text-gray-400 mt-1",children:"Sign in to your account to continue"})]}),d.jsxs("form",{onSubmit:f,className:"space-y-4",children:[i&&d.jsx("div",{className:"p-3 bg-red-500/10 border border-red-500/20 rounded-lg text-sm text-red-400 animate-fade-in",children:i}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Email"}),d.jsxs("div",{className:"relative",children:[d.jsx(vh,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),d.jsx("input",{type:"email",value:e,onChange:c=>t(c.target.value),className:"input pl-10",placeholder:"you@company.com",required:!0})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Password"}),d.jsxs("div",{className:"relative",children:[d.jsx(_2,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),d.jsx("input",{type:"password",value:r,onChange:c=>n(c.target.value),className:"input pl-10",placeholder:"••••••••",required:!0})]})]}),d.jsx("button",{type:"submit",disabled:o,className:"btn btn-primary w-full h-11 justify-center mt-2",children:o?d.jsx(Zt,{size:16,className:"animate-spin"}):d.jsxs(d.Fragment,{children:["Sign in",d.jsx(ec,{size:16})]})})]}),d.jsxs("p",{className:"text-center mt-6 text-sm text-gray-500",children:["Don't have an account?"," ",d.jsx(Ea,{to:"/register",className:"text-indigo-400 hover:text-indigo-300 transition-colors",children:"Create account"})]})]})})]})}function VD(){const[e,t]=A.useState({email:"",password:"",full_name:""}),[r,n]=A.useState(""),[i,a]=A.useState(!1),{register:o}=er(),s=Wa(),l=async u=>{var f,c;u.preventDefault(),n(""),a(!0);try{await o(e),s("/")}catch(h){n(((c=(f=h.response)==null?void 0:f.data)==null?void 0:c.detail)||"Registration failed")}finally{a(!1)}};return d.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-950 px-6",children:d.jsxs("div",{className:"w-full max-w-sm",children:[d.jsx("div",{className:"text-center mb-8",children:d.jsxs("div",{className:"inline-flex items-center gap-2.5",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-indigo-600 flex items-center justify-center shadow-lg shadow-indigo-500/25",children:d.jsx(ru,{size:20,className:"text-white"})}),d.jsxs("div",{className:"text-left",children:[d.jsx("h1",{className:"text-lg font-bold text-white",children:"JIRA AI Fixer"}),d.jsx("p",{className:"text-xs text-gray-500",children:"Enterprise v2.0"})]})]})}),d.jsxs("div",{className:"mb-8",children:[d.jsx("h2",{className:"text-2xl font-bold text-white",children:"Create account"}),d.jsx("p",{className:"text-gray-400 mt-1",children:"Get started with AI-powered issue analysis"})]}),d.jsxs("form",{onSubmit:l,className:"space-y-4",children:[r&&d.jsx("div",{className:"p-3 bg-red-500/10 border border-red-500/20 rounded-lg text-sm text-red-400 animate-fade-in",children:r}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Full Name"}),d.jsxs("div",{className:"relative",children:[d.jsx(LD,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),d.jsx("input",{type:"text",value:e.full_name,onChange:u=>t({...e,full_name:u.target.value}),className:"input pl-10",placeholder:"John Doe",required:!0})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Email"}),d.jsxs("div",{className:"relative",children:[d.jsx(vh,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),d.jsx("input",{type:"email",value:e.email,onChange:u=>t({...e,email:u.target.value}),className:"input pl-10",placeholder:"you@company.com",required:!0})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Password"}),d.jsxs("div",{className:"relative",children:[d.jsx(_2,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),d.jsx("input",{type:"password",value:e.password,onChange:u=>t({...e,password:u.target.value}),className:"input pl-10",placeholder:"••••••••",minLength:8,required:!0})]})]}),d.jsx("button",{type:"submit",disabled:i,className:"btn btn-primary w-full h-11 justify-center mt-2",children:i?d.jsx(Zt,{size:16,className:"animate-spin"}):d.jsxs(d.Fragment,{children:[d.jsx("span",{children:"Create account"}),d.jsx(ec,{size:16})]})})]}),d.jsxs("p",{className:"text-center mt-6 text-sm text-gray-500",children:["Already have an account?"," ",d.jsx(Ea,{to:"/login",className:"text-indigo-400 hover:text-indigo-300 transition-colors",children:"Sign in"})]})]})})}function GD(){const[e,t]=A.useState([]),[r,n]=A.useState(!0),[i,a]=A.useState(""),{selectOrg:o}=er(),s=Wa();A.useEffect(()=>{l()},[]);const l=async()=>{var f,c;try{const h=await ph.list();t(h.data),h.data.length===1&&u(h.data[0])}catch(h){a(((c=(f=h.response)==null?void 0:f.data)==null?void 0:c.detail)||"Failed to load organizations")}finally{n(!1)}},u=f=>{o(f),s("/")};return r?d.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-950",children:d.jsx(Zt,{size:32,className:"text-indigo-400 animate-spin"})}):e.length===0?(s("/create-organization"),null):d.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-950 px-6",children:d.jsxs("div",{className:"w-full max-w-2xl",children:[d.jsxs("div",{className:"text-center mb-8",children:[d.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-2xl bg-indigo-600/10 border border-indigo-500/20 mb-4",children:d.jsx($a,{size:32,className:"text-indigo-400"})}),d.jsx("h1",{className:"text-2xl font-bold text-white mb-2",children:"Select Organization"}),d.jsx("p",{className:"text-gray-400",children:"Choose which organization you want to work with"})]}),i&&d.jsx("div",{className:"p-3 bg-red-500/10 border border-red-500/20 rounded-lg text-sm text-red-400 mb-6 animate-fade-in",children:i}),d.jsx("div",{className:"grid gap-3 mb-6",children:e.map(f=>d.jsx("button",{onClick:()=>u(f),className:"card hover:bg-gray-800/50 transition-colors p-6 text-left group",children:d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsx("div",{className:"w-12 h-12 rounded-xl bg-indigo-600/10 border border-indigo-500/20 flex items-center justify-center",children:d.jsx($a,{size:24,className:"text-indigo-400"})}),d.jsxs("div",{children:[d.jsx("h3",{className:"font-semibold text-white mb-1",children:f.name}),d.jsxs("p",{className:"text-sm text-gray-500",children:[f.member_count||0," ",f.member_count===1?"member":"members"]})]})]}),d.jsx(ec,{size:20,className:"text-gray-600 group-hover:text-indigo-400 transition-colors"})]})},f.id))}),d.jsxs("button",{onClick:()=>s("/create-organization"),className:"btn btn-secondary w-full h-11 justify-center",children:[d.jsx(Ma,{size:16}),"Create New Organization"]})]})})}function XD(){const[e,t]=A.useState(""),[r,n]=A.useState(""),[i,a]=A.useState(!1),{selectOrg:o}=er(),s=Wa(),l=async u=>{var f,c;u.preventDefault(),n(""),a(!0);try{const h=await ph.create({name:e});o(h.data),s("/")}catch(h){n(((c=(f=h.response)==null?void 0:f.data)==null?void 0:c.detail)||"Failed to create organization")}finally{a(!1)}};return d.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-950 px-6",children:d.jsxs("div",{className:"w-full max-w-md",children:[d.jsxs("div",{className:"text-center mb-8",children:[d.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-2xl bg-indigo-600/10 border border-indigo-500/20 mb-4",children:d.jsx($a,{size:32,className:"text-indigo-400"})}),d.jsx("h1",{className:"text-2xl font-bold text-white mb-2",children:"Create Your Organization"}),d.jsx("p",{className:"text-gray-400",children:"Get started by creating your first organization"})]}),d.jsx("div",{className:"card",children:d.jsxs("form",{onSubmit:l,className:"space-y-6",children:[r&&d.jsx("div",{className:"p-3 bg-red-500/10 border border-red-500/20 rounded-lg text-sm text-red-400 animate-fade-in",children:r}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-2 uppercase tracking-wide",children:"Organization Name"}),d.jsx("input",{type:"text",value:e,onChange:u=>t(u.target.value),className:"input",placeholder:"Acme Inc.",required:!0,autoFocus:!0}),d.jsx("p",{className:"mt-2 text-xs text-gray-500",children:"You can change this later in settings"})]}),d.jsx("button",{type:"submit",disabled:i,className:"btn btn-primary w-full h-11 justify-center",children:i?d.jsx(Zt,{size:16,className:"animate-spin"}):d.jsxs(d.Fragment,{children:["Create Organization",d.jsx(ec,{size:16})]})})]})}),d.jsx("p",{className:"text-center mt-6 text-xs text-gray-500",children:"You can invite team members after creating your organization"})]})})}var QD=Array.isArray,tr=QD,YD=typeof uc=="object"&&uc&&uc.Object===Object&&uc,T2=YD,JD=T2,ZD=typeof self=="object"&&self&&self.Object===Object&&self,eL=JD||ZD||Function("return this")(),cn=eL,tL=cn,rL=tL.Symbol,tc=rL,q1=tc,$2=Object.prototype,nL=$2.hasOwnProperty,iL=$2.toString,tl=q1?q1.toStringTag:void 0;function aL(e){var t=nL.call(e,tl),r=e[tl];try{e[tl]=void 0;var n=!0}catch{}var i=iL.call(e);return n&&(t?e[tl]=r:delete e[tl]),i}var oL=aL,sL=Object.prototype,lL=sL.toString;function uL(e){return lL.call(e)}var cL=uL,K1=tc,fL=oL,dL=cL,hL="[object Null]",pL="[object Undefined]",V1=K1?K1.toStringTag:void 0;function mL(e){return e==null?e===void 0?pL:hL:V1&&V1 in Object(e)?fL(e):dL(e)}var Fn=mL;function yL(e){return e!=null&&typeof e=="object"}var Bn=yL,vL=Fn,gL=Bn,bL="[object Symbol]";function xL(e){return typeof e=="symbol"||gL(e)&&vL(e)==bL}var Cs=xL,wL=tr,SL=Cs,OL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jL=/^\w*$/;function _L(e,t){if(wL(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||SL(e)?!0:jL.test(e)||!OL.test(e)||t!=null&&e in Object(t)}var M0=_L;function PL(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Di=PL;const Ts=Ae(Di);var AL=Fn,kL=Di,EL="[object AsyncFunction]",NL="[object Function]",CL="[object GeneratorFunction]",TL="[object Proxy]";function $L(e){if(!kL(e))return!1;var t=AL(e);return t==NL||t==CL||t==EL||t==TL}var I0=$L;const oe=Ae(I0);var ML=cn,IL=ML["__core-js_shared__"],RL=IL,Kp=RL,G1=function(){var e=/[^.]+$/.exec(Kp&&Kp.keys&&Kp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function DL(e){return!!G1&&G1 in e}var LL=DL,zL=Function.prototype,FL=zL.toString;function BL(e){if(e!=null){try{return FL.call(e)}catch{}try{return e+""}catch{}}return""}var M2=BL,UL=I0,WL=LL,HL=Di,qL=M2,KL=/[\\^$.*+?()[\]{}|]/g,VL=/^\[object .+?Constructor\]$/,GL=Function.prototype,XL=Object.prototype,QL=GL.toString,YL=XL.hasOwnProperty,JL=RegExp("^"+QL.call(YL).replace(KL,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ZL(e){if(!HL(e)||WL(e))return!1;var t=UL(e)?JL:VL;return t.test(qL(e))}var e5=ZL;function t5(e,t){return e==null?void 0:e[t]}var r5=t5,n5=e5,i5=r5;function a5(e,t){var r=i5(e,t);return n5(r)?r:void 0}var qa=a5,o5=qa,s5=o5(Object,"create"),gh=s5,X1=gh;function l5(){this.__data__=X1?X1(null):{},this.size=0}var u5=l5;function c5(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var f5=c5,d5=gh,h5="__lodash_hash_undefined__",p5=Object.prototype,m5=p5.hasOwnProperty;function y5(e){var t=this.__data__;if(d5){var r=t[e];return r===h5?void 0:r}return m5.call(t,e)?t[e]:void 0}var v5=y5,g5=gh,b5=Object.prototype,x5=b5.hasOwnProperty;function w5(e){var t=this.__data__;return g5?t[e]!==void 0:x5.call(t,e)}var S5=w5,O5=gh,j5="__lodash_hash_undefined__";function _5(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=O5&&t===void 0?j5:t,this}var P5=_5,A5=u5,k5=f5,E5=v5,N5=S5,C5=P5;function $s(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var G5=V5,X5=bh;function Q5(e,t){var r=this.__data__,n=X5(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Y5=Q5,J5=M5,Z5=U5,ez=q5,tz=G5,rz=Y5;function Ms(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t0?1:-1},aa=function(t){return Ia(t)&&t.indexOf("%")===t.length-1},q=function(t){return S6(t)&&!Rs(t)},P6=function(t){return ce(t)},ct=function(t){return q(t)||Ia(t)},A6=0,Ds=function(t){var r=++A6;return"".concat(t||"").concat(r)},It=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!q(t)&&!Ia(t))return n;var a;if(aa(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Rs(a)&&(a=n),i&&a>r&&(a=r),a},ei=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},k6=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function I6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Vy(e){"@babel/helpers - typeof";return Vy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vy(e)}var rw={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},kn=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},nw=null,Gp=null,q0=function e(t){if(t===nw&&Array.isArray(Gp))return Gp;var r=[];return A.Children.forEach(t,function(n){ce(n)||(v6.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Gp=r,nw=t,r};function _r(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return kn(i)}):n=[kn(t)],q0(e).forEach(function(i){var a=ur(i,"type.displayName")||ur(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function ar(e,t){var r=_r(e,t);return r&&r[0]}var iw=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!q(n)||n<=0||!q(i)||i<=0)},R6=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],D6=function(t){return t&&t.type&&Ia(t.type)&&R6.indexOf(t.type)>=0},L6=function(t){return t&&Vy(t)==="object"&&"clipDot"in t},z6=function(t,r,n,i){var a,o=(a=Vp==null?void 0:Vp[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!oe(t)&&(i&&o.includes(r)||C6.includes(r))||n&&H0.includes(r)},ne=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(A.isValidElement(t)&&(i=t.props),!Ts(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;z6((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},Gy=function e(t,r){if(t===r)return!0;var n=A.Children.count(t);if(n!==A.Children.count(r))return!1;if(n===0)return!0;if(n===1)return aw(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function H6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Qy(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,l=e.desc,u=W6(e,U6),f=i||{width:r,height:n,x:0,y:0},c=fe("recharts-surface",a);return k.createElement("svg",Xy({},ne(u,!0,"svg"),{className:c,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),k.createElement("title",null,s),k.createElement("desc",null,l),t)}var q6=["children","className"];function Yy(){return Yy=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function V6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ve=k.forwardRef(function(e,t){var r=e.children,n=e.className,i=K6(e,q6),a=fe("recharts-layer",n);return k.createElement("g",Yy({className:a},ne(i,!0),{ref:t}),r)}),Ur=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;ai?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n=n?e:Q6(e,t,r)}var J6=Y6,Z6="\\ud800-\\udfff",e8="\\u0300-\\u036f",t8="\\ufe20-\\ufe2f",r8="\\u20d0-\\u20ff",n8=e8+t8+r8,i8="\\ufe0e\\ufe0f",a8="\\u200d",o8=RegExp("["+a8+Z6+n8+i8+"]");function s8(e){return o8.test(e)}var H2=s8;function l8(e){return e.split("")}var u8=l8,q2="\\ud800-\\udfff",c8="\\u0300-\\u036f",f8="\\ufe20-\\ufe2f",d8="\\u20d0-\\u20ff",h8=c8+f8+d8,p8="\\ufe0e\\ufe0f",m8="["+q2+"]",Jy="["+h8+"]",Zy="\\ud83c[\\udffb-\\udfff]",y8="(?:"+Jy+"|"+Zy+")",K2="[^"+q2+"]",V2="(?:\\ud83c[\\udde6-\\uddff]){2}",G2="[\\ud800-\\udbff][\\udc00-\\udfff]",v8="\\u200d",X2=y8+"?",Q2="["+p8+"]?",g8="(?:"+v8+"(?:"+[K2,V2,G2].join("|")+")"+Q2+X2+")*",b8=Q2+X2+g8,x8="(?:"+[K2+Jy+"?",Jy,V2,G2,m8].join("|")+")",w8=RegExp(Zy+"(?="+Zy+")|"+x8+b8,"g");function S8(e){return e.match(w8)||[]}var O8=S8,j8=u8,_8=H2,P8=O8;function A8(e){return _8(e)?P8(e):j8(e)}var k8=A8,E8=J6,N8=H2,C8=k8,T8=L2;function $8(e){return function(t){t=T8(t);var r=N8(t)?C8(t):void 0,n=r?r[0]:t.charAt(0),i=r?E8(r,1).join(""):t.slice(1);return n[e]()+i}}var M8=$8,I8=M8,R8=I8("toUpperCase"),D8=R8;const $h=Ae(D8);function Te(e){return function(){return e}}const Y2=Math.cos,qf=Math.sin,qr=Math.sqrt,Kf=Math.PI,Mh=2*Kf,ev=Math.PI,tv=2*ev,Qi=1e-6,L8=tv-Qi;function J2(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return J2;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;iQi)if(!(Math.abs(c*l-u*f)>Qi)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,m=i-s,y=l*l+u*u,v=p*p+m*m,g=Math.sqrt(y),b=Math.sqrt(h),w=a*Math.tan((ev-Math.acos((y+h-v)/(2*g*b)))/2),O=w/b,x=w/g;Math.abs(O-1)>Qi&&this._append`L${t+O*f},${r+O*c}`,this._append`A${a},${a},0,0,${+(c*p>f*m)},${this._x1=t+x*l},${this._y1=r+x*u}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),l=n*Math.sin(i),u=t+s,f=r+l,c=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>Qi||Math.abs(this._y1-f)>Qi)&&this._append`L${u},${f}`,n&&(h<0&&(h=h%tv+tv),h>L8?this._append`A${n},${n},0,1,${c},${t-s},${r-l}A${n},${n},0,1,${c},${this._x1=u},${this._y1=f}`:h>Qi&&this._append`A${n},${n},0,${+(h>=ev)},${c},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function K0(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new F8(t)}function V0(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Z2(e){this._context=e}Z2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Ih(e){return new Z2(e)}function ek(e){return e[0]}function tk(e){return e[1]}function rk(e,t){var r=Te(!0),n=null,i=Ih,a=null,o=K0(s);e=typeof e=="function"?e:e===void 0?ek:Te(e),t=typeof t=="function"?t:t===void 0?tk:Te(t);function s(l){var u,f=(l=V0(l)).length,c,h=!1,p;for(n==null&&(a=i(p=o())),u=0;u<=f;++u)!(u=p;--m)s.point(w[m],O[m]);s.lineEnd(),s.areaEnd()}g&&(w[h]=+e(v,h,c),O[h]=+t(v,h,c),s.point(n?+n(v,h,c):w[h],r?+r(v,h,c):O[h]))}if(b)return s=null,b+""||null}function f(){return rk().defined(i).curve(o).context(a)}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:Te(+c),n=null,u):e},u.x0=function(c){return arguments.length?(e=typeof c=="function"?c:Te(+c),u):e},u.x1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:Te(+c),u):n},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:Te(+c),r=null,u):t},u.y0=function(c){return arguments.length?(t=typeof c=="function"?c:Te(+c),u):t},u.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:Te(+c),u):r},u.lineX0=u.lineY0=function(){return f().x(e).y(t)},u.lineY1=function(){return f().x(e).y(r)},u.lineX1=function(){return f().x(n).y(t)},u.defined=function(c){return arguments.length?(i=typeof c=="function"?c:Te(!!c),u):i},u.curve=function(c){return arguments.length?(o=c,a!=null&&(s=o(a)),u):o},u.context=function(c){return arguments.length?(c==null?a=s=null:s=o(a=c),u):a},u}class nk{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function B8(e){return new nk(e,!0)}function U8(e){return new nk(e,!1)}const G0={draw(e,t){const r=qr(t/Kf);e.moveTo(r,0),e.arc(0,0,r,0,Mh)}},W8={draw(e,t){const r=qr(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},ik=qr(1/3),H8=ik*2,q8={draw(e,t){const r=qr(t/H8),n=r*ik;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},K8={draw(e,t){const r=qr(t),n=-r/2;e.rect(n,n,r,r)}},V8=.8908130915292852,ak=qf(Kf/10)/qf(7*Kf/10),G8=qf(Mh/10)*ak,X8=-Y2(Mh/10)*ak,Q8={draw(e,t){const r=qr(t*V8),n=G8*r,i=X8*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Mh*a/5,s=Y2(o),l=qf(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}},Xp=qr(3),Y8={draw(e,t){const r=-qr(t/(Xp*3));e.moveTo(0,r*2),e.lineTo(-Xp*r,-r),e.lineTo(Xp*r,-r),e.closePath()}},pr=-.5,mr=qr(3)/2,rv=1/qr(12),J8=(rv/2+1)*3,Z8={draw(e,t){const r=qr(t/J8),n=r/2,i=r*rv,a=n,o=r*rv+r,s=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(pr*n-mr*i,mr*n+pr*i),e.lineTo(pr*a-mr*o,mr*a+pr*o),e.lineTo(pr*s-mr*l,mr*s+pr*l),e.lineTo(pr*n+mr*i,pr*i-mr*n),e.lineTo(pr*a+mr*o,pr*o-mr*a),e.lineTo(pr*s+mr*l,pr*l-mr*s),e.closePath()}};function eF(e,t){let r=null,n=K0(i);e=typeof e=="function"?e:Te(e||G0),t=typeof t=="function"?t:Te(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:Te(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Te(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Vf(){}function Gf(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function ok(e){this._context=e}ok.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Gf(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Gf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function tF(e){return new ok(e)}function sk(e){this._context=e}sk.prototype={areaStart:Vf,areaEnd:Vf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Gf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function rF(e){return new sk(e)}function lk(e){this._context=e}lk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Gf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function nF(e){return new lk(e)}function uk(e){this._context=e}uk.prototype={areaStart:Vf,areaEnd:Vf,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function iF(e){return new uk(e)}function sw(e){return e<0?-1:1}function lw(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(sw(a)+sw(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function uw(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Qp(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function Xf(e){this._context=e}Xf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Qp(this,this._t0,uw(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Qp(this,uw(this,r=lw(this,e,t)),r);break;default:Qp(this,this._t0,r=lw(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function ck(e){this._context=new fk(e)}(ck.prototype=Object.create(Xf.prototype)).point=function(e,t){Xf.prototype.point.call(this,t,e)};function fk(e){this._context=e}fk.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function aF(e){return new Xf(e)}function oF(e){return new ck(e)}function dk(e){this._context=e}dk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=cw(e),i=cw(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function lF(e){return new Rh(e,.5)}function uF(e){return new Rh(e,0)}function cF(e){return new Rh(e,1)}function Yo(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r=0;)r[t]=t;return r}function fF(e,t){return e[t]}function dF(e){const t=[];return t.key=e,t}function hF(){var e=Te([]),t=nv,r=Yo,n=fF;function i(a){var o=Array.from(e.apply(this,arguments),dF),s,l=o.length,u=-1,f;for(const c of a)for(s=0,++u;s0){for(var r,n,i=0,a=e[0].length,o;i0){for(var r=0,n=e[t[0]],i,a=n.length;r0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function SF(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var hk={symbolCircle:G0,symbolCross:W8,symbolDiamond:q8,symbolSquare:K8,symbolStar:Q8,symbolTriangle:Y8,symbolWye:Z8},OF=Math.PI/180,jF=function(t){var r="symbol".concat($h(t));return hk[r]||G0},_F=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*OF;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},PF=function(t,r){hk["symbol".concat($h(t))]=r},X0=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,l=wF(t,vF),u=dw(dw({},l),{},{type:n,size:a,sizeType:s}),f=function(){var v=jF(n),g=eF().type(v).size(_F(a,s,n));return g()},c=u.className,h=u.cx,p=u.cy,m=ne(u,!0);return h===+h&&p===+p&&a===+a?k.createElement("path",iv({},m,{className:fe("recharts-symbols",c),transform:"translate(".concat(h,", ").concat(p,")"),d:f()})):null};X0.registerSymbol=PF;function Jo(e){"@babel/helpers - typeof";return Jo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jo(e)}function av(){return av=Object.assign?Object.assign.bind():function(e){for(var t=1;t`);var b=p.inactive?u:p.color;return k.createElement("li",av({className:v,style:c,key:"legend-item-".concat(m)},Ra(n.props,p,m)),k.createElement(Qy,{width:o,height:o,viewBox:f,style:h},n.renderIcon(p)),k.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},y?y(g,p,m):g))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return k.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(A.PureComponent);iu(Q0,"displayName","Legend");iu(Q0,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var RF=xh;function DF(){this.__data__=new RF,this.size=0}var LF=DF;function zF(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var FF=zF;function BF(e){return this.__data__.get(e)}var UF=BF;function WF(e){return this.__data__.has(e)}var HF=WF,qF=xh,KF=D0,VF=L0,GF=200;function XF(e,t){var r=this.__data__;if(r instanceof qF){var n=r.__data__;if(!KF||n.lengths))return!1;var u=a.get(e),f=a.get(t);if(u&&f)return u==t&&f==e;var c=-1,h=!0,p=r&vB?new hB:void 0;for(a.set(e,t),a.set(t,e);++c-1&&e%1==0&&e-1&&e%1==0&&e<=wU}var eb=SU,OU=Fn,jU=eb,_U=Bn,PU="[object Arguments]",AU="[object Array]",kU="[object Boolean]",EU="[object Date]",NU="[object Error]",CU="[object Function]",TU="[object Map]",$U="[object Number]",MU="[object Object]",IU="[object RegExp]",RU="[object Set]",DU="[object String]",LU="[object WeakMap]",zU="[object ArrayBuffer]",FU="[object DataView]",BU="[object Float32Array]",UU="[object Float64Array]",WU="[object Int8Array]",HU="[object Int16Array]",qU="[object Int32Array]",KU="[object Uint8Array]",VU="[object Uint8ClampedArray]",GU="[object Uint16Array]",XU="[object Uint32Array]",Re={};Re[BU]=Re[UU]=Re[WU]=Re[HU]=Re[qU]=Re[KU]=Re[VU]=Re[GU]=Re[XU]=!0;Re[PU]=Re[AU]=Re[zU]=Re[kU]=Re[FU]=Re[EU]=Re[NU]=Re[CU]=Re[TU]=Re[$U]=Re[MU]=Re[IU]=Re[RU]=Re[DU]=Re[LU]=!1;function QU(e){return _U(e)&&jU(e.length)&&!!Re[OU(e)]}var YU=QU;function JU(e){return function(t){return e(t)}}var jk=JU,Zf={exports:{}};Zf.exports;(function(e,t){var r=T2,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(Zf,Zf.exports);var ZU=Zf.exports,e7=YU,t7=jk,bw=ZU,xw=bw&&bw.isTypedArray,r7=xw?t7(xw):e7,_k=r7,n7=oU,i7=J0,a7=tr,o7=Ok,s7=Z0,l7=_k,u7=Object.prototype,c7=u7.hasOwnProperty;function f7(e,t){var r=a7(e),n=!r&&i7(e),i=!r&&!n&&o7(e),a=!r&&!n&&!i&&l7(e),o=r||n||i||a,s=o?n7(e.length,String):[],l=s.length;for(var u in e)(t||c7.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||s7(u,l)))&&s.push(u);return s}var d7=f7,h7=Object.prototype;function p7(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||h7;return e===r}var m7=p7;function y7(e,t){return function(r){return e(t(r))}}var Pk=y7,v7=Pk,g7=v7(Object.keys,Object),b7=g7,x7=m7,w7=b7,S7=Object.prototype,O7=S7.hasOwnProperty;function j7(e){if(!x7(e))return w7(e);var t=[];for(var r in Object(e))O7.call(e,r)&&r!="constructor"&&t.push(r);return t}var _7=j7,P7=I0,A7=eb;function k7(e){return e!=null&&A7(e.length)&&!P7(e)}var rc=k7,E7=d7,N7=_7,C7=rc;function T7(e){return C7(e)?E7(e):N7(e)}var Dh=T7,$7=GB,M7=iU,I7=Dh;function R7(e){return $7(e,I7,M7)}var D7=R7,ww=D7,L7=1,z7=Object.prototype,F7=z7.hasOwnProperty;function B7(e,t,r,n,i,a){var o=r&L7,s=ww(e),l=s.length,u=ww(t),f=u.length;if(l!=f&&!o)return!1;for(var c=l;c--;){var h=s[c];if(!(o?h in t:F7.call(t,h)))return!1}var p=a.get(e),m=a.get(t);if(p&&m)return p==t&&m==e;var y=!0;a.set(e,t),a.set(t,e);for(var v=o;++c-1}var zW=LW;function FW(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=tH){var u=t?null:ZW(e);if(u)return eH(u);o=!1,i=JW,l=new XW}else l=t?[]:s;e:for(;++n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function gH(e){return e.value}function bH(e,t){if(k.isValidElement(e))return k.cloneElement(e,t);if(typeof e=="function")return k.createElement(e,t);t.ref;var r=yH(t,lH);return k.createElement(Q0,r)}var Dw=1,Ao=function(e){function t(){var r;uH(this,t);for(var n=arguments.length,i=new Array(n),a=0;aDw||Math.abs(i.height-this.lastBoundingBox.height)>Dw)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?hn({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,s=i.verticalAlign,l=i.margin,u=i.chartWidth,f=i.chartHeight,c,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();c={left:((u||0)-p.width)/2}}else c=o==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var m=this.getBBoxSnapshot();h={top:((f||0)-m.height)/2}}else h=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return hn(hn({},c),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,l=i.wrapperStyle,u=i.payloadUniqBy,f=i.payload,c=hn(hn({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return k.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(p){n.wrapperNode=p}},bH(a,hn(hn({},this.props),{},{payload:$k(f,u,gH)})))}}],[{key:"getWithHeight",value:function(n,i){var a=hn(hn({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&q(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}(A.PureComponent);Lh(Ao,"displayName","Legend");Lh(Ao,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Lw=tc,xH=J0,wH=tr,zw=Lw?Lw.isConcatSpreadable:void 0;function SH(e){return wH(e)||xH(e)||!!(zw&&e&&e[zw])}var OH=SH,jH=wk,_H=OH;function Rk(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=_H),i||(i=[]);++a0&&r(s)?t>1?Rk(s,t-1,r,n,i):jH(i,s):n||(i[i.length]=s)}return i}var Dk=Rk;function PH(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++i];if(r(a[l],l,a)===!1)break}return t}}var AH=PH,kH=AH,EH=kH(),NH=EH,CH=NH,TH=Dh;function $H(e,t){return e&&CH(e,t,TH)}var Lk=$H,MH=rc;function IH(e,t){return function(r,n){if(r==null)return r;if(!MH(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++at||a&&o&&l&&!s&&!u||n&&o&&l||!r&&l||!i)return 1;if(!n&&!a&&!u&&e=s)return l;var u=r[n];return l*(u=="desc"?-1:1)}}return e.index-t.index}var XH=GH,em=F0,QH=B0,YH=fn,JH=zk,ZH=HH,eq=jk,tq=XH,rq=Fs,nq=tr;function iq(e,t,r){t.length?t=em(t,function(a){return nq(a)?function(o){return QH(o,a.length===1?a[0]:a)}:a}):t=[rq];var n=-1;t=em(t,eq(YH));var i=JH(e,function(a,o,s){var l=em(t,function(u){return u(a)});return{criteria:l,index:++n,value:a}});return ZH(i,function(a,o){return tq(a,o,r)})}var aq=iq;function oq(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var sq=oq,lq=sq,Bw=Math.max;function uq(e,t,r){return t=Bw(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=Bw(n.length-t,0),o=Array(a);++i0){if(++t>=bq)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Oq=Sq,jq=gq,_q=Oq,Pq=_q(jq),Aq=Pq,kq=Fs,Eq=cq,Nq=Aq;function Cq(e,t){return Nq(Eq(e,t,kq),e+"")}var Tq=Cq,$q=R0,Mq=rc,Iq=Z0,Rq=Di;function Dq(e,t,r){if(!Rq(r))return!1;var n=typeof t;return(n=="number"?Mq(r)&&Iq(t,r.length):n=="string"&&t in r)?$q(r[t],e):!1}var zh=Dq,Lq=Dk,zq=aq,Fq=Tq,Ww=zh,Bq=Fq(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Ww(e,t[0],t[1])?t=[]:r>2&&Ww(t[0],t[1],t[2])&&(t=[t[0]]),zq(e,Lq(t,1),[])}),Uq=Bq;const nb=Ae(Uq);function au(e){"@babel/helpers - typeof";return au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},au(e)}function hv(){return hv=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t.x),"".concat(rl,"-left"),q(r)&&t&&q(t.x)&&r=t.y),"".concat(rl,"-top"),q(n)&&t&&q(t.y)&&ny?Math.max(f,l[n]):Math.max(c,l[n])}function nK(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function iK(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,f,c;return o.height>0&&o.width>0&&r?(f=Kw({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),c=Kw({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),u=nK({translateX:f,translateY:c,useTranslate3d:s})):u=tK,{cssProperties:u,cssClasses:rK({translateX:f,translateY:c,coordinate:r})}}function es(e){"@babel/helpers - typeof";return es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},es(e)}function Vw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gw(e){for(var t=1;tXw||Math.abs(n.height-this.state.lastBoundingBox.height)>Xw)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.children,f=i.coordinate,c=i.hasPayload,h=i.isAnimationActive,p=i.offset,m=i.position,y=i.reverseDirection,v=i.useTranslate3d,g=i.viewBox,b=i.wrapperStyle,w=iK({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:m,reverseDirection:y,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:g}),O=w.cssClasses,x=w.cssProperties,S=Gw(Gw({transition:h&&a?"transform ".concat(s,"ms ").concat(l):void 0},x),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&c?"visible":"hidden",position:"absolute",top:0,left:0},b);return k.createElement("div",{tabIndex:-1,className:O,style:S,ref:function(_){n.wrapperNode=_}},u)}}])}(A.PureComponent),pK=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ka={isSsr:pK()};function ts(e){"@babel/helpers - typeof";return ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ts(e)}function Qw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Yw(e){for(var t=1;t0;return k.createElement(hK,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:h,active:a,coordinate:f,hasPayload:S,offset:p,position:v,reverseDirection:g,useTranslate3d:b,viewBox:w,wrapperStyle:O},jK(u,Yw(Yw({},this.props),{},{payload:x})))}}])}(A.PureComponent);ib(Wt,"displayName","Tooltip");ib(Wt,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ka.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var _K=cn,PK=function(){return _K.Date.now()},AK=PK,kK=/\s/;function EK(e){for(var t=e.length;t--&&kK.test(e.charAt(t)););return t}var NK=EK,CK=NK,TK=/^\s+/;function $K(e){return e&&e.slice(0,CK(e)+1).replace(TK,"")}var MK=$K,IK=MK,Jw=Di,RK=Cs,Zw=NaN,DK=/^[-+]0x[0-9a-f]+$/i,LK=/^0b[01]+$/i,zK=/^0o[0-7]+$/i,FK=parseInt;function BK(e){if(typeof e=="number")return e;if(RK(e))return Zw;if(Jw(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Jw(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=IK(e);var r=LK.test(e);return r||zK.test(e)?FK(e.slice(2),r?2:8):DK.test(e)?Zw:+e}var qk=BK,UK=Di,rm=AK,eS=qk,WK="Expected a function",HK=Math.max,qK=Math.min;function KK(e,t,r){var n,i,a,o,s,l,u=0,f=!1,c=!1,h=!0;if(typeof e!="function")throw new TypeError(WK);t=eS(t)||0,UK(r)&&(f=!!r.leading,c="maxWait"in r,a=c?HK(eS(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h);function p(S){var j=n,_=i;return n=i=void 0,u=S,o=e.apply(_,j),o}function m(S){return u=S,s=setTimeout(g,t),f?p(S):o}function y(S){var j=S-l,_=S-u,P=t-j;return c?qK(P,a-_):P}function v(S){var j=S-l,_=S-u;return l===void 0||j>=t||j<0||c&&_>=a}function g(){var S=rm();if(v(S))return b(S);s=setTimeout(g,y(S))}function b(S){return s=void 0,h&&n?p(S):(n=i=void 0,o)}function w(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function O(){return s===void 0?o:b(rm())}function x(){var S=rm(),j=v(S);if(n=arguments,i=this,l=S,j){if(s===void 0)return m(l);if(c)return clearTimeout(s),s=setTimeout(g,t),p(l)}return s===void 0&&(s=setTimeout(g,t)),o}return x.cancel=w,x.flush=O,x}var VK=KK,GK=VK,XK=Di,QK="Expected a function";function YK(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(QK);return XK(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),GK(e,t,{leading:n,maxWait:t,trailing:i})}var JK=YK;const Kk=Ae(JK);function su(e){"@babel/helpers - typeof";return su=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},su(e)}function tS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ic(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(L=Kk(L,y,{trailing:!0,leading:!1}));var R=new ResizeObserver(L),I=x.current.getBoundingClientRect(),D=I.width,B=I.height;return $(D,B),R.observe(x.current),function(){R.disconnect()}},[$,y]);var T=A.useMemo(function(){var L=P.containerWidth,R=P.containerHeight;if(L<0||R<0)return null;Ur(aa(o)||aa(l),`The width(%s) and height(%s) are both fixed numbers, + maybe you don't need to use a ResponsiveContainer.`,o,l),Ur(!r||r>0,"The aspect(%s) must be greater than zero.",r);var I=aa(o)?L:o,D=aa(l)?R:l;r&&r>0&&(I?D=I/r:D&&(I=D*r),h&&D>h&&(D=h)),Ur(I>0||D>0,`The width(%s) and height(%s) of chart should be greater than 0, + please check the style of container, or the props width(%s) and height(%s), + or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the + height and width.`,I,D,o,l,f,c,r);var B=!Array.isArray(p)&&kn(p.type).endsWith("Chart");return k.Children.map(p,function(C){return k.isValidElement(C)?A.cloneElement(C,Ic({width:I,height:D},B?{style:Ic({height:"100%",width:"100%",maxHeight:D,maxWidth:I},C.props.style)}:{})):C})},[r,p,l,h,c,f,P,o]);return k.createElement("div",{id:v?"".concat(v):void 0,className:fe("recharts-responsive-container",g),style:Ic(Ic({},O),{},{width:o,height:l,minWidth:f,minHeight:c,maxHeight:h}),ref:x},T)}),Fh=function(t){return null};Fh.displayName="Cell";function lu(e){"@babel/helpers - typeof";return lu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lu(e)}function nS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vv(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ka.isSsr)return{width:0,height:0};var n=dV(r),i=JSON.stringify({text:t,copyStyle:n});if(Za.widthCache[i])return Za.widthCache[i];try{var a=document.getElementById(iS);a||(a=document.createElement("span"),a.setAttribute("id",iS),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=vv(vv({},fV),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return Za.widthCache[i]=l,++Za.cacheCount>cV&&(Za.cacheCount=0,Za.widthCache={}),l}catch{return{width:0,height:0}}},hV=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function uu(e){"@babel/helpers - typeof";return uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uu(e)}function nd(e,t){return vV(e)||yV(e,t)||mV(e,t)||pV()}function pV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mV(e,t){if(e){if(typeof e=="string")return aS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return aS(e,t)}}function aS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function CV(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function fS(e,t){return IV(e)||MV(e,t)||$V(e,t)||TV()}function TV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $V(e,t){if(e){if(typeof e=="string")return dS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dS(e,t)}}function dS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[];return I.reduce(function(D,B){var C=B.word,F=B.width,U=D[D.length-1];if(U&&(i==null||a||U.width+F+nB.width?D:B})};if(!f)return p;for(var y="…",v=function(I){var D=c.slice(0,I),B=Qk({breakAll:u,style:l,children:D+y}).wordsWithComputedWidth,C=h(B),F=C.length>o||m(C).width>Number(i);return[F,C]},g=0,b=c.length-1,w=0,O;g<=b&&w<=c.length-1;){var x=Math.floor((g+b)/2),S=x-1,j=v(S),_=fS(j,2),P=_[0],N=_[1],$=v(x),T=fS($,1),L=T[0];if(!P&&!L&&(g=x+1),P&&L&&(b=x-1),!P&&L){O=N;break}w++}return O||p},hS=function(t){var r=ce(t)?[]:t.toString().split(Xk);return[{words:r}]},DV=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!Ka.isSsr){var l,u,f=Qk({breakAll:o,children:i,style:a});if(f){var c=f.wordsWithComputedWidth,h=f.spaceWidth;l=c,u=h}else return hS(i);return RV({breakAll:o,children:i,maxLines:s,style:a},l,u,r,n)}return hS(i)},pS="#808080",Da=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,u=l===void 0?"0.71em":l,f=t.scaleToFit,c=f===void 0?!1:f,h=t.textAnchor,p=h===void 0?"start":h,m=t.verticalAnchor,y=m===void 0?"end":m,v=t.fill,g=v===void 0?pS:v,b=cS(t,EV),w=A.useMemo(function(){return DV({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:c,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,c,b.style,b.width]),O=b.dx,x=b.dy,S=b.angle,j=b.className,_=b.breakAll,P=cS(b,NV);if(!ct(n)||!ct(a))return null;var N=n+(q(O)?O:0),$=a+(q(x)?x:0),T;switch(y){case"start":T=nm("calc(".concat(u,")"));break;case"middle":T=nm("calc(".concat((w.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:T=nm("calc(".concat(w.length-1," * -").concat(s,")"));break}var L=[];if(c){var R=w[0].width,I=b.width;L.push("scale(".concat((q(I)?I/R:1)/R,")"))}return S&&L.push("rotate(".concat(S,", ").concat(N,", ").concat($,")")),L.length&&(P.transform=L.join(" ")),k.createElement("text",gv({},ne(P,!0),{x:N,y:$,className:fe("recharts-text",j),textAnchor:p,fill:g.includes("url")?pS:g}),w.map(function(D,B){var C=D.words.join(_?"":" ");return k.createElement("tspan",{x:N,dy:B===0?T:s,key:"".concat(C,"-").concat(B)},C)}))};function _i(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function LV(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function ab(e){let t,r,n;e.length!==2?(t=_i,r=(s,l)=>_i(e(s),l),n=(s,l)=>e(s)-l):(t=e===_i||e===LV?e:zV,r=e,n=e);function i(s,l,u=0,f=s.length){if(u>>1;r(s[c],l)<0?u=c+1:f=c}while(u>>1;r(s[c],l)<=0?u=c+1:f=c}while(uu&&n(s[c-1],l)>-n(s[c],l)?c-1:c}return{left:i,center:o,right:a}}function zV(){return 0}function Yk(e){return e===null?NaN:+e}function*FV(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const BV=ab(_i),nc=BV.right;ab(Yk).center;class mS extends Map{constructor(t,r=HV){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(yS(this,t))}has(t){return super.has(yS(this,t))}set(t,r){return super.set(UV(this,t),r)}delete(t){return super.delete(WV(this,t))}}function yS({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function UV({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function WV({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function HV(e){return e!==null&&typeof e=="object"?e.valueOf():e}function qV(e=_i){if(e===_i)return Jk;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function Jk(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const KV=Math.sqrt(50),VV=Math.sqrt(10),GV=Math.sqrt(2);function id(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=KV?10:a>=VV?5:a>=GV?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/o,s=Math.round(e*u),l=Math.round(t*u),s/ut&&--l,u=-u):(u=Math.pow(10,i)*o,s=Math.round(e/u),l=Math.round(t/u),s*ut&&--l),l0))return[];if(e===t)return[e];const n=t=i))return[];const s=a-i+1,l=new Array(s);if(n)if(o<0)for(let u=0;u=n)&&(r=n);return r}function gS(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function Zk(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?Jk:qV(i);n>r;){if(n-r>600){const l=n-r+1,u=t-r+1,f=Math.log(l),c=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*c*(l-c)/l)*(u-l/2<0?-1:1),p=Math.max(r,Math.floor(t-u*c/l+h)),m=Math.min(n,Math.floor(t+(l-u)*c/l+h));Zk(e,t,p,m,i)}const a=e[t];let o=r,s=n;for(nl(e,r,t),i(e[n],a)>0&&nl(e,r,n);o0;)--s}i(e[r],a)===0?nl(e,r,s):(++s,nl(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function nl(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function XV(e,t,r){if(e=Float64Array.from(FV(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return gS(e);if(t>=1)return vS(e);var n,i=(n-1)*t,a=Math.floor(i),o=vS(Zk(e,a).subarray(0,a+1)),s=gS(e.subarray(a+1));return o+(s-o)*(i-a)}}function QV(e,t,r=Yk){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function YV(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Dc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Dc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=ZV.exec(e))?new Vt(t[1],t[2],t[3],1):(t=eG.exec(e))?new Vt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=tG.exec(e))?Dc(t[1],t[2],t[3],t[4]):(t=rG.exec(e))?Dc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=nG.exec(e))?_S(t[1],t[2]/100,t[3]/100,1):(t=iG.exec(e))?_S(t[1],t[2]/100,t[3]/100,t[4]):bS.hasOwnProperty(e)?SS(bS[e]):e==="transparent"?new Vt(NaN,NaN,NaN,0):null}function SS(e){return new Vt(e>>16&255,e>>8&255,e&255,1)}function Dc(e,t,r,n){return n<=0&&(e=t=r=NaN),new Vt(e,t,r,n)}function sG(e){return e instanceof ic||(e=hu(e)),e?(e=e.rgb(),new Vt(e.r,e.g,e.b,e.opacity)):new Vt}function Ov(e,t,r,n){return arguments.length===1?sG(e):new Vt(e,t,r,n??1)}function Vt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}sb(Vt,Ov,tE(ic,{brighter(e){return e=e==null?ad:Math.pow(ad,e),new Vt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?fu:Math.pow(fu,e),new Vt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Vt(Sa(this.r),Sa(this.g),Sa(this.b),od(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:OS,formatHex:OS,formatHex8:lG,formatRgb:jS,toString:jS}));function OS(){return`#${oa(this.r)}${oa(this.g)}${oa(this.b)}`}function lG(){return`#${oa(this.r)}${oa(this.g)}${oa(this.b)}${oa((isNaN(this.opacity)?1:this.opacity)*255)}`}function jS(){const e=od(this.opacity);return`${e===1?"rgb(":"rgba("}${Sa(this.r)}, ${Sa(this.g)}, ${Sa(this.b)}${e===1?")":`, ${e})`}`}function od(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Sa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function oa(e){return e=Sa(e),(e<16?"0":"")+e.toString(16)}function _S(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new zr(e,t,r,n)}function rE(e){if(e instanceof zr)return new zr(e.h,e.s,e.l,e.opacity);if(e instanceof ic||(e=hu(e)),!e)return new zr;if(e instanceof zr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r0&&l<1?0:o,new zr(o,s,l,e.opacity)}function uG(e,t,r,n){return arguments.length===1?rE(e):new zr(e,t,r,n??1)}function zr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}sb(zr,uG,tE(ic,{brighter(e){return e=e==null?ad:Math.pow(ad,e),new zr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?fu:Math.pow(fu,e),new zr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Vt(im(e>=240?e-240:e+120,i,n),im(e,i,n),im(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new zr(PS(this.h),Lc(this.s),Lc(this.l),od(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=od(this.opacity);return`${e===1?"hsl(":"hsla("}${PS(this.h)}, ${Lc(this.s)*100}%, ${Lc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function PS(e){return e=(e||0)%360,e<0?e+360:e}function Lc(e){return Math.max(0,Math.min(1,e||0))}function im(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const lb=e=>()=>e;function cG(e,t){return function(r){return e+r*t}}function fG(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function dG(e){return(e=+e)==1?nE:function(t,r){return r-t?fG(t,r,e):lb(isNaN(t)?r:t)}}function nE(e,t){var r=t-e;return r?cG(e,r):lb(isNaN(e)?t:e)}const AS=function e(t){var r=dG(t);function n(i,a){var o=r((i=Ov(i)).r,(a=Ov(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),u=nE(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=s(f),i.b=l(f),i.opacity=u(f),i+""}}return n.gamma=e,n}(1);function hG(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;ir&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:sd(n,i)})),r=am.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function jG(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i2?_G:jG,l=u=null,c}function c(h){return h==null||isNaN(h=+h)?a:(l||(l=s(e.map(n),t,r)))(n(o(h)))}return c.invert=function(h){return o(i((u||(u=s(t,e.map(n),sd)))(h)))},c.domain=function(h){return arguments.length?(e=Array.from(h,ld),f()):e.slice()},c.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},c.rangeRound=function(h){return t=Array.from(h),r=ub,f()},c.clamp=function(h){return arguments.length?(o=h?!0:Rt,f()):o!==Rt},c.interpolate=function(h){return arguments.length?(r=h,f()):r},c.unknown=function(h){return arguments.length?(a=h,c):a},function(h,p){return n=h,i=p,f()}}function cb(){return Bh()(Rt,Rt)}function PG(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ud(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function rs(e){return e=ud(Math.abs(e)),e?e[1]:NaN}function AG(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(r.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function kG(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var EG=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function pu(e){if(!(t=EG.exec(e)))throw new Error("invalid format: "+e);var t;return new fb({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}pu.prototype=fb.prototype;function fb(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}fb.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function NG(e){e:for(var t=e.length,r=1,n=-1,i;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var cd;function CG(e,t){var r=ud(e,t);if(!r)return cd=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(cd=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+ud(e,Math.max(0,t+a-1))[0]}function ES(e,t){var r=ud(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const NS={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:PG,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>ES(e*100,t),r:ES,s:CG,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function CS(e){return e}var TS=Array.prototype.map,$S=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function TG(e){var t=e.grouping===void 0||e.thousands===void 0?CS:AG(TS.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?CS:kG(TS.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(c,h){c=pu(c);var p=c.fill,m=c.align,y=c.sign,v=c.symbol,g=c.zero,b=c.width,w=c.comma,O=c.precision,x=c.trim,S=c.type;S==="n"?(w=!0,S="g"):NS[S]||(O===void 0&&(O=12),x=!0,S="g"),(g||p==="0"&&m==="=")&&(g=!0,p="0",m="=");var j=(h&&h.prefix!==void 0?h.prefix:"")+(v==="$"?r:v==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():""),_=(v==="$"?n:/[%p]/.test(S)?o:"")+(h&&h.suffix!==void 0?h.suffix:""),P=NS[S],N=/[defgprs%]/.test(S);O=O===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function $(T){var L=j,R=_,I,D,B;if(S==="c")R=P(T)+R,T="";else{T=+T;var C=T<0||1/T<0;if(T=isNaN(T)?l:P(Math.abs(T),O),x&&(T=NG(T)),C&&+T==0&&y!=="+"&&(C=!1),L=(C?y==="("?y:s:y==="-"||y==="("?"":y)+L,R=(S==="s"&&!isNaN(T)&&cd!==void 0?$S[8+cd/3]:"")+R+(C&&y==="("?")":""),N){for(I=-1,D=T.length;++IB||B>57){R=(B===46?i+T.slice(I+1):T.slice(I))+R,T=T.slice(0,I);break}}}w&&!g&&(T=t(T,1/0));var F=L.length+T.length+R.length,U=F>1)+L+T+R+U.slice(F);break;default:T=U+L+T+R;break}return a(T)}return $.toString=function(){return c+""},$}function f(c,h){var p=Math.max(-8,Math.min(8,Math.floor(rs(h)/3)))*3,m=Math.pow(10,-p),y=u((c=pu(c),c.type="f",c),{suffix:$S[8+p/3]});return function(v){return y(m*v)}}return{format:u,formatPrefix:f}}var zc,db,iE;$G({thousands:",",grouping:[3],currency:["$",""]});function $G(e){return zc=TG(e),db=zc.format,iE=zc.formatPrefix,zc}function MG(e){return Math.max(0,-rs(Math.abs(e)))}function IG(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(rs(t)/3)))*3-rs(Math.abs(e)))}function RG(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,rs(t)-rs(e))+1}function aE(e,t,r,n){var i=wv(e,t,r),a;switch(n=pu(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=IG(i,o))&&(n.precision=a),iE(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=RG(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=MG(i))&&(n.precision=a-(n.type==="%")*2);break}}return db(n)}function Li(e){var t=e.domain;return e.ticks=function(r){var n=t();return bv(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return aE(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],l,u,f=10;for(s0;){if(u=xv(o,s,r),u===l)return n[i]=o,n[a]=s,t(n);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function fd(){var e=cb();return e.copy=function(){return ac(e,fd())},Nr.apply(e,arguments),Li(e)}function oE(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,ld),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return oE(e).unknown(t)},e=arguments.length?Array.from(e,ld):[0,1],Li(r)}function sE(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return aMath.pow(e,t)}function BG(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function RS(e){return(t,r)=>-e(-t,r)}function hb(e){const t=e(MS,IS),r=t.domain;let n=10,i,a;function o(){return i=BG(n),a=FG(n),r()[0]<0?(i=RS(i),a=RS(a),e(DG,LG)):e(MS,IS),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let u=l[0],f=l[l.length-1];const c=f0){for(;h<=p;++h)for(m=1;mf)break;g.push(y)}}else for(;h<=p;++h)for(m=n-1;m>=1;--m)if(y=h>0?m/a(-h):m*a(h),!(yf)break;g.push(y)}g.length*2{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=pu(l)).precision==null&&(l.trim=!0),l=db(l)),s===1/0)return l;const u=Math.max(1,n*s/t.ticks().length);return f=>{let c=f/a(Math.round(i(f)));return c*nr(sE(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function lE(){const e=hb(Bh()).domain([1,10]);return e.copy=()=>ac(e,lE()).base(e.base()),Nr.apply(e,arguments),e}function DS(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function LS(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function pb(e){var t=1,r=e(DS(t),LS(t));return r.constant=function(n){return arguments.length?e(DS(t=+n),LS(t)):t},Li(r)}function uE(){var e=pb(Bh());return e.copy=function(){return ac(e,uE()).constant(e.constant())},Nr.apply(e,arguments)}function zS(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function UG(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function WG(e){return e<0?-e*e:e*e}function mb(e){var t=e(Rt,Rt),r=1;function n(){return r===1?e(Rt,Rt):r===.5?e(UG,WG):e(zS(r),zS(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Li(t)}function yb(){var e=mb(Bh());return e.copy=function(){return ac(e,yb()).exponent(e.exponent())},Nr.apply(e,arguments),e}function HG(){return yb.apply(null,arguments).exponent(.5)}function FS(e){return Math.sign(e)*e*e}function qG(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function cE(){var e=cb(),t=[0,1],r=!1,n;function i(a){var o=qG(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(FS(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,ld)).map(FS)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return cE(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Nr.apply(i,arguments),Li(i)}function fE(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o0?r[s-1]:e[0],s=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return dE().domain([e,t]).range(i).unknown(a)},Nr.apply(Li(o),arguments)}function hE(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[nc(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return hE().domain(e).range(t).unknown(r)},Nr.apply(i,arguments)}const om=new Date,sm=new Date;function ft(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a0))return l;let u;do l.push(u=new Date(+a)),t(a,s),e(a);while(uft(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(om.setTime(+a),sm.setTime(+o),e(om),e(sm),Math.floor(r(om,sm))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const dd=ft(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);dd.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ft(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):dd);dd.range;const jn=1e3,Or=jn*60,_n=Or*60,Rn=_n*24,vb=Rn*7,BS=Rn*30,lm=Rn*365,sa=ft(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*jn)},(e,t)=>(t-e)/jn,e=>e.getUTCSeconds());sa.range;const gb=ft(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*jn)},(e,t)=>{e.setTime(+e+t*Or)},(e,t)=>(t-e)/Or,e=>e.getMinutes());gb.range;const bb=ft(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Or)},(e,t)=>(t-e)/Or,e=>e.getUTCMinutes());bb.range;const xb=ft(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*jn-e.getMinutes()*Or)},(e,t)=>{e.setTime(+e+t*_n)},(e,t)=>(t-e)/_n,e=>e.getHours());xb.range;const wb=ft(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*_n)},(e,t)=>(t-e)/_n,e=>e.getUTCHours());wb.range;const oc=ft(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Or)/Rn,e=>e.getDate()-1);oc.range;const Uh=ft(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Rn,e=>e.getUTCDate()-1);Uh.range;const pE=ft(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Rn,e=>Math.floor(e/Rn));pE.range;function Va(e){return ft(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Or)/vb)}const Wh=Va(0),hd=Va(1),KG=Va(2),VG=Va(3),ns=Va(4),GG=Va(5),XG=Va(6);Wh.range;hd.range;KG.range;VG.range;ns.range;GG.range;XG.range;function Ga(e){return ft(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/vb)}const Hh=Ga(0),pd=Ga(1),QG=Ga(2),YG=Ga(3),is=Ga(4),JG=Ga(5),ZG=Ga(6);Hh.range;pd.range;QG.range;YG.range;is.range;JG.range;ZG.range;const Sb=ft(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Sb.range;const Ob=ft(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Ob.range;const Dn=ft(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Dn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ft(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Dn.range;const Ln=ft(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Ln.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ft(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Ln.range;function mE(e,t,r,n,i,a){const o=[[sa,1,jn],[sa,5,5*jn],[sa,15,15*jn],[sa,30,30*jn],[a,1,Or],[a,5,5*Or],[a,15,15*Or],[a,30,30*Or],[i,1,_n],[i,3,3*_n],[i,6,6*_n],[i,12,12*_n],[n,1,Rn],[n,2,2*Rn],[r,1,vb],[t,1,BS],[t,3,3*BS],[e,1,lm]];function s(u,f,c){const h=fv).right(o,h);if(p===o.length)return e.every(wv(u/lm,f/lm,c));if(p===0)return dd.every(Math.max(wv(u,f,c),1));const[m,y]=o[h/o[p-1][2]53)return null;"w"in W||(W.w=1),"Z"in W?(ge=cm(il(W.y,0,1)),tt=ge.getUTCDay(),ge=tt>4||tt===0?pd.ceil(ge):pd(ge),ge=Uh.offset(ge,(W.V-1)*7),W.y=ge.getUTCFullYear(),W.m=ge.getUTCMonth(),W.d=ge.getUTCDate()+(W.w+6)%7):(ge=um(il(W.y,0,1)),tt=ge.getDay(),ge=tt>4||tt===0?hd.ceil(ge):hd(ge),ge=oc.offset(ge,(W.V-1)*7),W.y=ge.getFullYear(),W.m=ge.getMonth(),W.d=ge.getDate()+(W.w+6)%7)}else("W"in W||"U"in W)&&("w"in W||(W.w="u"in W?W.u%7:"W"in W?1:0),tt="Z"in W?cm(il(W.y,0,1)).getUTCDay():um(il(W.y,0,1)).getDay(),W.m=0,W.d="W"in W?(W.w+6)%7+W.W*7-(tt+5)%7:W.w+W.U*7-(tt+6)%7);return"Z"in W?(W.H+=W.Z/100|0,W.M+=W.Z%100,cm(W)):um(W)}}function _(G,le,ue,W){for(var qe=0,ge=le.length,tt=ue.length,rt,Ft;qe=tt)return-1;if(rt=le.charCodeAt(qe++),rt===37){if(rt=le.charAt(qe++),Ft=x[rt in US?le.charAt(qe++):rt],!Ft||(W=Ft(G,ue,W))<0)return-1}else if(rt!=ue.charCodeAt(W++))return-1}return W}function P(G,le,ue){var W=u.exec(le.slice(ue));return W?(G.p=f.get(W[0].toLowerCase()),ue+W[0].length):-1}function N(G,le,ue){var W=p.exec(le.slice(ue));return W?(G.w=m.get(W[0].toLowerCase()),ue+W[0].length):-1}function $(G,le,ue){var W=c.exec(le.slice(ue));return W?(G.w=h.get(W[0].toLowerCase()),ue+W[0].length):-1}function T(G,le,ue){var W=g.exec(le.slice(ue));return W?(G.m=b.get(W[0].toLowerCase()),ue+W[0].length):-1}function L(G,le,ue){var W=y.exec(le.slice(ue));return W?(G.m=v.get(W[0].toLowerCase()),ue+W[0].length):-1}function R(G,le,ue){return _(G,t,le,ue)}function I(G,le,ue){return _(G,r,le,ue)}function D(G,le,ue){return _(G,n,le,ue)}function B(G){return o[G.getDay()]}function C(G){return a[G.getDay()]}function F(G){return l[G.getMonth()]}function U(G){return s[G.getMonth()]}function V(G){return i[+(G.getHours()>=12)]}function H(G){return 1+~~(G.getMonth()/3)}function X(G){return o[G.getUTCDay()]}function ie(G){return a[G.getUTCDay()]}function xe(G){return l[G.getUTCMonth()]}function ze(G){return s[G.getUTCMonth()]}function Se(G){return i[+(G.getUTCHours()>=12)]}function gt(G){return 1+~~(G.getUTCMonth()/3)}return{format:function(G){var le=S(G+="",w);return le.toString=function(){return G},le},parse:function(G){var le=j(G+="",!1);return le.toString=function(){return G},le},utcFormat:function(G){var le=S(G+="",O);return le.toString=function(){return G},le},utcParse:function(G){var le=j(G+="",!0);return le.toString=function(){return G},le}}}var US={"-":"",_:" ",0:"0"},vt=/^\s*\d+/,aX=/^%/,oX=/[\\^$*+?|[\]().{}]/g;function we(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a[t.toLowerCase(),r]))}function lX(e,t,r){var n=vt.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function uX(e,t,r){var n=vt.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function cX(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function fX(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function dX(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function WS(e,t,r){var n=vt.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function HS(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function hX(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function pX(e,t,r){var n=vt.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function mX(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function qS(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function yX(e,t,r){var n=vt.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function KS(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function vX(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function gX(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function bX(e,t,r){var n=vt.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function xX(e,t,r){var n=vt.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function wX(e,t,r){var n=aX.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function SX(e,t,r){var n=vt.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function OX(e,t,r){var n=vt.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function VS(e,t){return we(e.getDate(),t,2)}function jX(e,t){return we(e.getHours(),t,2)}function _X(e,t){return we(e.getHours()%12||12,t,2)}function PX(e,t){return we(1+oc.count(Dn(e),e),t,3)}function yE(e,t){return we(e.getMilliseconds(),t,3)}function AX(e,t){return yE(e,t)+"000"}function kX(e,t){return we(e.getMonth()+1,t,2)}function EX(e,t){return we(e.getMinutes(),t,2)}function NX(e,t){return we(e.getSeconds(),t,2)}function CX(e){var t=e.getDay();return t===0?7:t}function TX(e,t){return we(Wh.count(Dn(e)-1,e),t,2)}function vE(e){var t=e.getDay();return t>=4||t===0?ns(e):ns.ceil(e)}function $X(e,t){return e=vE(e),we(ns.count(Dn(e),e)+(Dn(e).getDay()===4),t,2)}function MX(e){return e.getDay()}function IX(e,t){return we(hd.count(Dn(e)-1,e),t,2)}function RX(e,t){return we(e.getFullYear()%100,t,2)}function DX(e,t){return e=vE(e),we(e.getFullYear()%100,t,2)}function LX(e,t){return we(e.getFullYear()%1e4,t,4)}function zX(e,t){var r=e.getDay();return e=r>=4||r===0?ns(e):ns.ceil(e),we(e.getFullYear()%1e4,t,4)}function FX(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+we(t/60|0,"0",2)+we(t%60,"0",2)}function GS(e,t){return we(e.getUTCDate(),t,2)}function BX(e,t){return we(e.getUTCHours(),t,2)}function UX(e,t){return we(e.getUTCHours()%12||12,t,2)}function WX(e,t){return we(1+Uh.count(Ln(e),e),t,3)}function gE(e,t){return we(e.getUTCMilliseconds(),t,3)}function HX(e,t){return gE(e,t)+"000"}function qX(e,t){return we(e.getUTCMonth()+1,t,2)}function KX(e,t){return we(e.getUTCMinutes(),t,2)}function VX(e,t){return we(e.getUTCSeconds(),t,2)}function GX(e){var t=e.getUTCDay();return t===0?7:t}function XX(e,t){return we(Hh.count(Ln(e)-1,e),t,2)}function bE(e){var t=e.getUTCDay();return t>=4||t===0?is(e):is.ceil(e)}function QX(e,t){return e=bE(e),we(is.count(Ln(e),e)+(Ln(e).getUTCDay()===4),t,2)}function YX(e){return e.getUTCDay()}function JX(e,t){return we(pd.count(Ln(e)-1,e),t,2)}function ZX(e,t){return we(e.getUTCFullYear()%100,t,2)}function eQ(e,t){return e=bE(e),we(e.getUTCFullYear()%100,t,2)}function tQ(e,t){return we(e.getUTCFullYear()%1e4,t,4)}function rQ(e,t){var r=e.getUTCDay();return e=r>=4||r===0?is(e):is.ceil(e),we(e.getUTCFullYear()%1e4,t,4)}function nQ(){return"+0000"}function XS(){return"%"}function QS(e){return+e}function YS(e){return Math.floor(+e/1e3)}var eo,xE,wE;iQ({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function iQ(e){return eo=iX(e),xE=eo.format,eo.parse,wE=eo.utcFormat,eo.utcParse,eo}function aQ(e){return new Date(e)}function oQ(e){return e instanceof Date?+e:+new Date(+e)}function jb(e,t,r,n,i,a,o,s,l,u){var f=cb(),c=f.invert,h=f.domain,p=u(".%L"),m=u(":%S"),y=u("%I:%M"),v=u("%I %p"),g=u("%a %d"),b=u("%b %d"),w=u("%B"),O=u("%Y");function x(S){return(l(S)t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>XV(e,a/n))},r.copy=function(){return _E(t).domain(e)},Un.apply(r,arguments)}function Kh(){var e=0,t=.5,r=1,n=1,i,a,o,s,l,u=Rt,f,c=!1,h;function p(y){return isNaN(y=+y)?h:(y=.5+((y=+f(y))-a)*(n*yt}var EE=hQ,pQ=Vh,mQ=EE,yQ=Fs;function vQ(e){return e&&e.length?pQ(e,yQ,mQ):void 0}var gQ=vQ;const hi=Ae(gQ);function bQ(e,t){return ee.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=ne.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};J.decimalPlaces=J.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*De;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};J.dividedBy=J.div=function(e){return En(this,new this.constructor(e))};J.dividedToIntegerBy=J.idiv=function(e){var t=this,r=t.constructor;return Ne(En(t,new r(e),0,1),r.precision)};J.equals=J.eq=function(e){return!this.cmp(e)};J.exponent=function(){return et(this)};J.greaterThan=J.gt=function(e){return this.cmp(e)>0};J.greaterThanOrEqualTo=J.gte=function(e){return this.cmp(e)>=0};J.isInteger=J.isint=function(){return this.e>this.d.length-2};J.isNegative=J.isneg=function(){return this.s<0};J.isPositive=J.ispos=function(){return this.s>0};J.isZero=function(){return this.s===0};J.lessThan=J.lt=function(e){return this.cmp(e)<0};J.lessThanOrEqualTo=J.lte=function(e){return this.cmp(e)<1};J.logarithm=J.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(or))throw Error(kr+"NaN");if(r.s<1)throw Error(kr+(r.s?"NaN":"-Infinity"));return r.eq(or)?new n(0):(Be=!1,t=En(mu(r,a),mu(e,a),a),Be=!0,Ne(t,i))};J.minus=J.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?ME(t,e):TE(t,(e.s=-e.s,e))};J.modulo=J.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(kr+"NaN");return r.s?(Be=!1,t=En(r,e,0,1).times(e),Be=!0,r.minus(t)):Ne(new n(r),i)};J.naturalExponential=J.exp=function(){return $E(this)};J.naturalLogarithm=J.ln=function(){return mu(this)};J.negated=J.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};J.plus=J.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?TE(t,e):ME(t,(e.s=-e.s,e))};J.precision=J.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Oa+e);if(t=et(i)+1,n=i.d.length-1,r=n*De+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};J.squareRoot=J.sqrt=function(){var e,t,r,n,i,a,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(kr+"NaN")}for(e=et(s),Be=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Zr(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Ws((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=o=r+3;;)if(a=n,n=a.plus(En(s,a,o+2)).times(.5),Zr(a.d).slice(0,o)===(t=Zr(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Ne(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return Be=!0,Ne(n,r)};J.times=J.mul=function(e){var t,r,n,i,a,o,s,l,u,f=this,c=f.constructor,h=f.d,p=(e=new c(e)).d;if(!f.s||!e.s)return new c(0);for(e.s*=f.s,r=f.e+e.e,l=h.length,u=p.length,l=0;){for(t=0,i=l+n;i>n;)s=a[i]+p[n]*h[i-n-1]+t,a[i--]=s%ht|0,t=s/ht|0;a[i]=(a[i]+t)%ht|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Be?Ne(e,c.precision):e};J.toDecimalPlaces=J.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(on(e,0,Us),t===void 0?t=n.rounding:on(t,0,8),Ne(r,e+et(r)+1,t))};J.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=La(n,!0):(on(e,0,Us),t===void 0?t=i.rounding:on(t,0,8),n=Ne(new i(n),e+1,t),r=La(n,!0,e+1)),r};J.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?La(i):(on(e,0,Us),t===void 0?t=a.rounding:on(t,0,8),n=Ne(new a(i),e+et(i)+1,t),r=La(n.abs(),!1,e+et(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};J.toInteger=J.toint=function(){var e=this,t=e.constructor;return Ne(new t(e),et(e)+1,t.rounding)};J.toNumber=function(){return+this};J.toPower=J.pow=function(e){var t,r,n,i,a,o,s=this,l=s.constructor,u=12,f=+(e=new l(e));if(!e.s)return new l(or);if(s=new l(s),!s.s){if(e.s<1)throw Error(kr+"Infinity");return s}if(s.eq(or))return s;if(n=l.precision,e.eq(or))return Ne(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=f<0?-f:f)<=CE){for(i=new l(or),t=Math.ceil(n/De+4),Be=!1;r%2&&(i=i.times(s),eO(i.d,t)),r=Ws(r/2),r!==0;)s=s.times(s),eO(s.d,t);return Be=!0,e.s<0?new l(or).div(i):Ne(i,n)}}else if(a<0)throw Error(kr+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,Be=!1,i=e.times(mu(s,n+u)),Be=!0,i=$E(i),i.s=a,i};J.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=et(i),n=La(i,r<=a.toExpNeg||r>=a.toExpPos)):(on(e,1,Us),t===void 0?t=a.rounding:on(t,0,8),i=Ne(new a(i),e,t),r=et(i),n=La(i,e<=r||r<=a.toExpNeg,e)),n};J.toSignificantDigits=J.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(on(e,1,Us),t===void 0?t=n.rounding:on(t,0,8)),Ne(new n(r),e,t)};J.toString=J.valueOf=J.val=J.toJSON=J[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=et(e),r=e.constructor;return La(e,t<=r.toExpNeg||t>=r.toExpPos)};function TE(e,t){var r,n,i,a,o,s,l,u,f=e.constructor,c=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),Be?Ne(t,c):t;if(l=e.d,u=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(n=l,a=-a,s=u.length):(n=u,i=o,s=l.length),o=Math.ceil(c/De),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=l.length,a=u.length,s-a<0&&(a=s,n=u,u=l,l=n),r=0;a;)r=(l[--a]=l[a]+u[a]+r)/ht|0,l[a]%=ht;for(r&&(l.unshift(r),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,Be?Ne(t,c):t}function on(e,t,r){if(e!==~~e||er)throw Error(Oa+e)}function Zr(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;to?1:-1;else for(s=l=0;si[s]?1:-1;break}return l}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]1;)n.shift()}return function(n,i,a,o){var s,l,u,f,c,h,p,m,y,v,g,b,w,O,x,S,j,_,P=n.constructor,N=n.s==i.s?1:-1,$=n.d,T=i.d;if(!n.s)return new P(n);if(!i.s)throw Error(kr+"Division by zero");for(l=n.e-i.e,j=T.length,x=$.length,p=new P(N),m=p.d=[],u=0;T[u]==($[u]||0);)++u;if(T[u]>($[u]||0)&&--l,a==null?b=a=P.precision:o?b=a+(et(n)-et(i))+1:b=a,b<0)return new P(0);if(b=b/De+2|0,u=0,j==1)for(f=0,T=T[0],b++;(u1&&(T=e(T,f),$=e($,f),j=T.length,x=$.length),O=j,y=$.slice(0,j),v=y.length;v=ht/2&&++S;do f=0,s=t(T,y,j,v),s<0?(g=y[0],j!=v&&(g=g*ht+(y[1]||0)),f=g/S|0,f>1?(f>=ht&&(f=ht-1),c=e(T,f),h=c.length,v=y.length,s=t(c,y,h,v),s==1&&(f--,r(c,j16)throw Error(Ab+et(e));if(!e.s)return new f(or);for(Be=!1,s=c,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(Ji(2,u))/Math.LN10*2+5|0,s+=n,r=i=a=new f(or),f.precision=s;;){if(i=Ne(i.times(e),s),r=r.times(++l),o=a.plus(En(i,r,s)),Zr(o.d).slice(0,s)===Zr(a.d).slice(0,s)){for(;u--;)a=Ne(a.times(a),s);return f.precision=c,t==null?(Be=!0,Ne(a,c)):a}a=o}}function et(e){for(var t=e.e*De,r=e.d[0];r>=10;r/=10)t++;return t}function fm(e,t,r){if(t>e.LN10.sd())throw Be=!0,r&&(e.precision=r),Error(kr+"LN10 precision limit exceeded");return Ne(new e(e.LN10),t)}function Yn(e){for(var t="";e--;)t+="0";return t}function mu(e,t){var r,n,i,a,o,s,l,u,f,c=1,h=10,p=e,m=p.d,y=p.constructor,v=y.precision;if(p.s<1)throw Error(kr+(p.s?"NaN":"-Infinity"));if(p.eq(or))return new y(0);if(t==null?(Be=!1,u=v):u=t,p.eq(10))return t==null&&(Be=!0),fm(y,u);if(u+=h,y.precision=u,r=Zr(m),n=r.charAt(0),a=et(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=Zr(p.d),n=r.charAt(0),c++;a=et(p),n>1?(p=new y("0."+r),a++):p=new y(n+"."+r.slice(1))}else return l=fm(y,u+2,v).times(a+""),p=mu(new y(n+"."+r.slice(1)),u-h).plus(l),y.precision=v,t==null?(Be=!0,Ne(p,v)):p;for(s=o=p=En(p.minus(or),p.plus(or),u),f=Ne(p.times(p),u),i=3;;){if(o=Ne(o.times(f),u),l=s.plus(En(o,new y(i),u)),Zr(l.d).slice(0,u)===Zr(s.d).slice(0,u))return s=s.times(2),a!==0&&(s=s.plus(fm(y,u+2,v).times(a+""))),s=En(s,new y(c),u),y.precision=v,t==null?(Be=!0,Ne(s,v)):s;s=l,i+=2}}function ZS(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Ws(r/De),e.d=[],n=(r+1)%De,r<0&&(n+=De),nmd||e.e<-md))throw Error(Ab+r)}else e.s=0,e.e=0,e.d=[0];return e}function Ne(e,t,r){var n,i,a,o,s,l,u,f,c=e.d;for(o=1,a=c[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=De,i=t,u=c[f=0];else{if(f=Math.ceil((n+1)/De),a=c.length,f>=a)return e;for(u=a=c[f],o=1;a>=10;a/=10)o++;n%=De,i=n-De+o}if(r!==void 0&&(a=Ji(10,o-i-1),s=u/a%10|0,l=t<0||c[f+1]!==void 0||u%a,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?i>0?u/Ji(10,o-i):0:c[f-1])%10&1||r==(e.s<0?8:7))),t<1||!c[0])return l?(a=et(e),c.length=1,t=t-a-1,c[0]=Ji(10,(De-t%De)%De),e.e=Ws(-t/De)||0):(c.length=1,c[0]=e.e=e.s=0),e;if(n==0?(c.length=f,a=1,f--):(c.length=f+1,a=Ji(10,De-n),c[f]=i>0?(u/Ji(10,o-i)%Ji(10,i)|0)*a:0),l)for(;;)if(f==0){(c[0]+=a)==ht&&(c[0]=1,++e.e);break}else{if(c[f]+=a,c[f]!=ht)break;c[f--]=0,a=1}for(n=c.length;c[--n]===0;)c.pop();if(Be&&(e.e>md||e.e<-md))throw Error(Ab+et(e));return e}function ME(e,t){var r,n,i,a,o,s,l,u,f,c,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),Be?Ne(t,p):t;if(l=e.d,c=t.d,n=t.e,u=e.e,l=l.slice(),o=u-n,o){for(f=o<0,f?(r=l,o=-o,s=c.length):(r=c,n=u,s=l.length),i=Math.max(Math.ceil(p/De),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=l.length,s=c.length,f=i0;--i)l[s++]=0;for(i=c.length;i>o;){if(l[--i]0?a=a.charAt(0)+"."+a.slice(1)+Yn(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Yn(-i-1)+a,r&&(n=r-o)>0&&(a+=Yn(n))):i>=o?(a+=Yn(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Yn(n))):((n=i+1)0&&(i+1===o&&(a+="."),a+=Yn(n))),e.s<0?"-"+a:a}function eO(e,t){if(e.length>t)return e.length=t,!0}function IE(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Oa+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return ZS(o,a.toString())}else if(typeof a!="string")throw Error(Oa+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,FQ.test(a))ZS(o,a);else throw Error(Oa+a)}if(i.prototype=J,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=IE,i.config=i.set=BQ,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Oa+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Oa+r+": "+n);return this}var kb=IE(zQ);or=new kb(1);const Ee=kb;function UQ(e){return KQ(e)||qQ(e)||HQ(e)||WQ()}function WQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HQ(e,t){if(e){if(typeof e=="string")return Pv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pv(e,t)}}function qQ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function KQ(e){if(Array.isArray(e))return Pv(e)}function Pv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t?r.apply(void 0,i):e(t-o,tO(function(){for(var s=arguments.length,l=new Array(s),u=0;ue.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){i=!0,a=l}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function sY(e){if(Array.isArray(e))return e}function FE(e){var t=yu(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function BE(e,t,r){if(e.lte(0))return new Ee(0);var n=Qh.getDigitCount(e.toNumber()),i=new Ee(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new Ee(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=s.mul(i);return t?l:new Ee(Math.ceil(l))}function lY(e,t,r){var n=1,i=new Ee(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new Ee(10).pow(Qh.getDigitCount(e)-1),i=new Ee(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Ee(Math.floor(e)))}else e===0?i=new Ee(Math.floor((t-1)/2)):r||(i=new Ee(Math.floor(e)));var o=Math.floor((t-1)/2),s=QQ(XQ(function(l){return i.add(new Ee(l-o).mul(n)).toNumber()}),Av);return s(0,t)}function UE(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new Ee(0),tickMin:new Ee(0),tickMax:new Ee(0)};var a=BE(new Ee(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new Ee(0):(o=new Ee(e).add(t).div(2),o=o.sub(new Ee(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new Ee(t).sub(o).div(a).toNumber()),u=s+l+1;return u>r?UE(e,t,r,n,i+1):(u0?l+(r-u):l,s=t>0?s:s+(r-u)),{step:a,tickMin:o.sub(new Ee(s).mul(a)),tickMax:o.add(new Ee(l).mul(a))})}function uY(e){var t=yu(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=FE([r,n]),l=yu(s,2),u=l[0],f=l[1];if(u===-1/0||f===1/0){var c=f===1/0?[u].concat(Ev(Av(0,i-1).map(function(){return 1/0}))):[].concat(Ev(Av(0,i-1).map(function(){return-1/0})),[f]);return r>n?kv(c):c}if(u===f)return lY(u,i,a);var h=UE(u,f,o,a),p=h.step,m=h.tickMin,y=h.tickMax,v=Qh.rangeStep(m,y.add(new Ee(.1).mul(p)),p);return r>n?kv(v):v}function cY(e,t){var r=yu(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=FE([n,i]),s=yu(o,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[n,i];if(l===u)return[l];var f=Math.max(t,2),c=BE(new Ee(u).sub(l).div(f-1),a,0),h=[].concat(Ev(Qh.rangeStep(new Ee(l),new Ee(u).sub(new Ee(.99).mul(c)),c)),[u]);return n>i?kv(h):h}var fY=LE(uY),dY=LE(cY),hY="Invariant failed";function za(e,t){throw new Error(hY)}var pY=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function os(e){"@babel/helpers - typeof";return os=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},os(e)}function yd(){return yd=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function wY(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function SY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OY(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,u=0;u0?i[u-1].coordinate:i[s-1].coordinate,c=i[u].coordinate,h=u>=s-1?i[0].coordinate:i[u+1].coordinate,p=void 0;if(Mt(c-f)!==Mt(h-c)){var m=[];if(Mt(h-c)===Mt(l[1]-l[0])){p=h;var y=c+l[1]-l[0];m[0]=Math.min(y,(y+f)/2),m[1]=Math.max(y,(y+f)/2)}else{p=f;var v=h+l[1]-l[0];m[0]=Math.min(c,(v+c)/2),m[1]=Math.max(c,(v+c)/2)}var g=[Math.min(c,(p+c)/2),Math.max(c,(p+c)/2)];if(t>g[0]&&t<=g[1]||t>=m[0]&&t<=m[1]){o=i[u].index;break}}else{var b=Math.min(f,h),w=Math.max(f,h);if(t>(b+c)/2&&t<=(w+c)/2){o=i[u].index;break}}}else for(var O=0;O0&&O(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===s-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},Eb=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ge(Ge({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,l;switch(i){case"Line":l=o;break;case"Area":case"Radar":l=o&&o!=="none"?o:s;break;default:l=s;break}return l},FY=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},s=Object.keys(a),l=0,u=s.length;l=0});if(g&&g.length){var b=g[0].type.defaultProps,w=b!==void 0?Ge(Ge({},b),g[0].props):g[0].props,O=w.barSize,x=w[v];o[x]||(o[x]=[]);var S=ce(O)?r:O;o[x].push({item:g[0],stackList:g.slice(1),barSize:ce(S)?void 0:It(S,n,0)})}}return o},BY=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,l=o.length;if(l<1)return null;var u=It(r,i,0,!0),f,c=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=i/l,m=o.reduce(function(O,x){return O+x.barSize||0},0);m+=(l-1)*u,m>=i&&(m-=(l-1)*u,u=0),m>=i&&p>0&&(h=!0,p*=.9,m=l*p);var y=(i-m)/2>>0,v={offset:y-u,size:0};f=o.reduce(function(O,x){var S={item:x.item,position:{offset:v.offset+v.size+u,size:h?p:x.barSize}},j=[].concat(iO(O),[S]);return v=j[j.length-1].position,x.stackList&&x.stackList.length&&x.stackList.forEach(function(_){j.push({item:_,position:v})}),j},c)}else{var g=It(n,i,0,!0);i-2*g-(l-1)*u<=0&&(u=0);var b=(i-2*g-(l-1)*u)/l;b>1&&(b>>=0);var w=s===+s?Math.min(b,s):b;f=o.reduce(function(O,x,S){var j=[].concat(iO(O),[{item:x.item,position:{offset:g+(b+u)*S+(b-w)/2,size:w}}]);return x.stackList&&x.stackList.length&&x.stackList.forEach(function(_){j.push({item:_,position:j[j.length-1].position})}),j},c)}return f},UY=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),u=KE({children:a,legendWidth:l});if(u){var f=i||{},c=f.width,h=f.height,p=u.align,m=u.verticalAlign,y=u.layout;if((y==="vertical"||y==="horizontal"&&m==="middle")&&p!=="center"&&q(t[p]))return Ge(Ge({},t),{},Eo({},p,t[p]+(c||0)));if((y==="horizontal"||y==="vertical"&&p==="center")&&m!=="middle"&&q(t[m]))return Ge(Ge({},t),{},Eo({},m,t[m]+(h||0)))}return t},WY=function(t,r,n){return ce(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},VE=function(t,r,n,i,a){var o=r.props.children,s=_r(o,Yh).filter(function(u){return WY(i,a,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,f){var c=lt(f,n);if(ce(c))return u;var h=Array.isArray(c)?[Gh(c),hi(c)]:[c,c],p=l.reduce(function(m,y){var v=lt(f,y,0),g=h[0]-Math.abs(Array.isArray(v)?v[0]:v),b=h[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(g,m[0]),Math.max(b,m[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},HY=function(t,r,n,i,a){var o=r.map(function(s){return VE(t,s,n,a,i)}).filter(function(s){return!ce(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},GE=function(t,r,n,i,a){var o=r.map(function(l){var u=l.props.dataKey;return n==="number"&&u&&VE(t,l,u,i)||Cl(t,u,n,a)});if(n==="number")return o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,u){for(var f=0,c=u.length;f=2?Mt(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(c){var h=a?a.indexOf(c):c;return{coordinate:i(h)+u,value:c,offset:u}});return f.filter(function(c){return!Rs(c.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(c,h){return{coordinate:i(c)+u,value:c,index:h,offset:u}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(c){return{coordinate:i(c)+u,value:c,offset:u}}):i.domain().map(function(c,h){return{coordinate:i(c)+u,value:a?a[c]:c,index:h,offset:u}})},dm=new WeakMap,Fc=function(t,r){if(typeof r!="function")return t;dm.has(t)||dm.set(t,new WeakMap);var n=dm.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},YE=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:cu(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:fd(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Nl(),realScaleType:"point"}:a==="category"?{scale:cu(),realScaleType:"band"}:{scale:fd(),realScaleType:"linear"};if(Ia(i)){var l="scale".concat($h(i));return{scale:(JS[l]||Nl)(),realScaleType:JS[l]?l:"point"}}return oe(i)?{scale:i}:{scale:Nl(),realScaleType:"point"}},oO=1e-4,JE=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-oO,o=Math.max(i[0],i[1])+oO,s=t(r[0]),l=t(r[n-1]);(so||lo)&&t.domain([r[0],r[n-1]])}},qY=function(t,r){if(!t)return null;for(var n=0,i=t.length;ni)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]=0?(t[s][n][0]=a,t[s][n][1]=a+l,a=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1])}},GY=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n=0?(t[o][n][0]=a,t[o][n][1]=a+s,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},XY={sign:VY,expand:pF,none:Yo,silhouette:mF,wiggle:yF,positive:GY},QY=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=XY[n],o=hF().keys(i).value(function(s,l){return+lt(s,l,0)}).order(nv).offset(a);return o(t)},YY=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,l={},u=s.reduce(function(c,h){var p,m=(p=h.type)!==null&&p!==void 0&&p.defaultProps?Ge(Ge({},h.type.defaultProps),h.props):h.props,y=m.stackId,v=m.hide;if(v)return c;var g=m[n],b=c[g]||{hasStack:!1,stackGroups:{}};if(ct(y)){var w=b.stackGroups[y]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(h),b.hasStack=!0,b.stackGroups[y]=w}else b.stackGroups[Ds("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return Ge(Ge({},c),{},Eo({},g,b))},l),f={};return Object.keys(u).reduce(function(c,h){var p=u[h];if(p.hasStack){var m={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(y,v){var g=p.stackGroups[v];return Ge(Ge({},y),{},Eo({},v,{numericAxisId:n,cateAxisId:i,items:g.items,stackedData:QY(t,g.items,a)}))},m)}return Ge(Ge({},c),{},Eo({},h,p))},f)},ZE=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var f=fY(u,a,s);return t.domain([Gh(f),hi(f)]),{niceTicks:f}}if(a&&i==="number"){var c=t.domain(),h=dY(c,a,s);return{niceTicks:h}}return null};function sO(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ce(i[t.dataKey])){var s=Wf(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var l=lt(i,ce(o)?t.dataKey:o);return ce(l)?null:t.scale(l)}var lO=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var l=lt(o,r.dataKey,r.domain[s]);return ce(l)?null:r.scale(l)-a/2+i},JY=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},ZY=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ge(Ge({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(ct(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},eJ=function(t){return t.reduce(function(r,n){return[Gh(n.concat([r[0]]).filter(q)),hi(n.concat([r[1]]).filter(q))]},[1/0,-1/0])},eN=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,l=s.reduce(function(u,f){var c=eJ(f.slice(r,n+1));return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},uO=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cO=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,$v=function(t,r,n){if(oe(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(q(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(uO.test(t[0])){var a=+uO.exec(t[0])[1];i[0]=r[0]-a}else oe(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(q(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(cO.test(t[1])){var o=+cO.exec(t[1])[1];i[1]=r[1]+o}else oe(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},gd=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=nb(r,function(c){return c.coordinate}),o=1/0,s=1,l=a.length;se.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},uJ=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.startAngle,u=t.endAngle,f=It(t.cx,o,o/2),c=It(t.cy,s,s/2),h=nN(o,s,n),p=It(t.innerRadius,h,0),m=It(t.outerRadius,h,h*.8),y=Object.keys(r);return y.reduce(function(v,g){var b=r[g],w=b.domain,O=b.reversed,x;if(ce(b.range))i==="angleAxis"?x=[l,u]:i==="radiusAxis"&&(x=[p,m]),O&&(x=[x[1],x[0]]);else{x=b.range;var S=x,j=nJ(S,2);l=j[0],u=j[1]}var _=YE(b,a),P=_.realScaleType,N=_.scale;N.domain(w).range(x),JE(N);var $=ZE(N,yn(yn({},b),{},{realScaleType:P})),T=yn(yn(yn({},b),$),{},{range:x,radius:m,realScaleType:P,scale:N,cx:f,cy:c,innerRadius:p,outerRadius:m,startAngle:l,endAngle:u});return yn(yn({},v),{},rN({},g,T))},{})},cJ=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},fJ=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=cJ({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var l=(n-a)/s,u=Math.acos(l);return i>o&&(u=2*Math.PI-u),{radius:s,angle:lJ(u),angleInRadian:u}},dJ=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},hJ=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},pO=function(t,r){var n=t.x,i=t.y,a=fJ({x:n,y:i},r),o=a.radius,s=a.angle,l=r.innerRadius,u=r.outerRadius;if(ou)return!1;if(o===0)return!0;var f=dJ(r),c=f.startAngle,h=f.endAngle,p=s,m;if(c<=h){for(;p>h;)p-=360;for(;p=c&&p<=h}else{for(;p>c;)p-=360;for(;p=h&&p<=c}return m?yn(yn({},r),{},{radius:o,angle:hJ(p,r)}):null},iN=function(t){return!A.isValidElement(t)&&!oe(t)&&typeof t!="boolean"?t.className:""};function xu(e){"@babel/helpers - typeof";return xu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xu(e)}var pJ=["offset"];function mJ(e){return bJ(e)||gJ(e)||vJ(e)||yJ()}function yJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vJ(e,t){if(e){if(typeof e=="string")return Mv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mv(e,t)}}function gJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bJ(e){if(Array.isArray(e))return Mv(e)}function Mv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function wJ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function mO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function at(e){for(var t=1;t=0?1:-1,w,O;i==="insideStart"?(w=p+b*o,O=y):i==="insideEnd"?(w=m-b*o,O=!y):i==="end"&&(w=m+b*o,O=y),O=g<=0?O:!O;var x=Me(u,f,v,w),S=Me(u,f,v,w+(O?1:-1)*359),j="M".concat(x.x,",").concat(x.y,` + A`).concat(v,",").concat(v,",0,1,").concat(O?0:1,`, + `).concat(S.x,",").concat(S.y),_=ce(t.id)?Ds("recharts-radial-line-"):t.id;return k.createElement("text",wu({},n,{dominantBaseline:"central",className:fe("recharts-radial-bar-label",s)}),k.createElement("defs",null,k.createElement("path",{id:_,d:j})),k.createElement("textPath",{xlinkHref:"#".concat(_)},r))},kJ=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,l=a.innerRadius,u=a.outerRadius,f=a.startAngle,c=a.endAngle,h=(f+c)/2;if(i==="outside"){var p=Me(o,s,u+n,h),m=p.x,y=p.y;return{x:m,y,textAnchor:m>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var v=(l+u)/2,g=Me(o,s,v,h),b=g.x,w=g.y;return{x:b,y:w,textAnchor:"middle",verticalAnchor:"middle"}},EJ=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,l=o.y,u=o.width,f=o.height,c=f>=0?1:-1,h=c*i,p=c>0?"end":"start",m=c>0?"start":"end",y=u>=0?1:-1,v=y*i,g=y>0?"end":"start",b=y>0?"start":"end";if(a==="top"){var w={x:s+u/2,y:l-c*i,textAnchor:"middle",verticalAnchor:p};return at(at({},w),n?{height:Math.max(l-n.y,0),width:u}:{})}if(a==="bottom"){var O={x:s+u/2,y:l+f+h,textAnchor:"middle",verticalAnchor:m};return at(at({},O),n?{height:Math.max(n.y+n.height-(l+f),0),width:u}:{})}if(a==="left"){var x={x:s-v,y:l+f/2,textAnchor:g,verticalAnchor:"middle"};return at(at({},x),n?{width:Math.max(x.x-n.x,0),height:f}:{})}if(a==="right"){var S={x:s+u+v,y:l+f/2,textAnchor:b,verticalAnchor:"middle"};return at(at({},S),n?{width:Math.max(n.x+n.width-S.x,0),height:f}:{})}var j=n?{width:u,height:f}:{};return a==="insideLeft"?at({x:s+v,y:l+f/2,textAnchor:b,verticalAnchor:"middle"},j):a==="insideRight"?at({x:s+u-v,y:l+f/2,textAnchor:g,verticalAnchor:"middle"},j):a==="insideTop"?at({x:s+u/2,y:l+h,textAnchor:"middle",verticalAnchor:m},j):a==="insideBottom"?at({x:s+u/2,y:l+f-h,textAnchor:"middle",verticalAnchor:p},j):a==="insideTopLeft"?at({x:s+v,y:l+h,textAnchor:b,verticalAnchor:m},j):a==="insideTopRight"?at({x:s+u-v,y:l+h,textAnchor:g,verticalAnchor:m},j):a==="insideBottomLeft"?at({x:s+v,y:l+f-h,textAnchor:b,verticalAnchor:p},j):a==="insideBottomRight"?at({x:s+u-v,y:l+f-h,textAnchor:g,verticalAnchor:p},j):Ts(a)&&(q(a.x)||aa(a.x))&&(q(a.y)||aa(a.y))?at({x:s+It(a.x,u),y:l+It(a.y,f),textAnchor:"end",verticalAnchor:"end"},j):at({x:s+u/2,y:l+f/2,textAnchor:"middle",verticalAnchor:"middle"},j)},NJ=function(t){return"cx"in t&&q(t.cx)};function mt(e){var t=e.offset,r=t===void 0?5:t,n=xJ(e,pJ),i=at({offset:r},n),a=i.viewBox,o=i.position,s=i.value,l=i.children,u=i.content,f=i.className,c=f===void 0?"":f,h=i.textBreakAll;if(!a||ce(s)&&ce(l)&&!A.isValidElement(u)&&!oe(u))return null;if(A.isValidElement(u))return A.cloneElement(u,i);var p;if(oe(u)){if(p=A.createElement(u,i),A.isValidElement(p))return p}else p=_J(i);var m=NJ(a),y=ne(i,!0);if(m&&(o==="insideStart"||o==="insideEnd"||o==="end"))return AJ(i,p,y);var v=m?kJ(i):EJ(i);return k.createElement(Da,wu({className:fe("recharts-label",c)},y,v,{breakAll:h}),p)}mt.displayName="Label";var aN=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,f=t.outerRadius,c=t.x,h=t.y,p=t.top,m=t.left,y=t.width,v=t.height,g=t.clockWise,b=t.labelViewBox;if(b)return b;if(q(y)&&q(v)){if(q(c)&&q(h))return{x:c,y:h,width:y,height:v};if(q(p)&&q(m))return{x:p,y:m,width:y,height:v}}return q(c)&&q(h)?{x:c,y:h,width:0,height:0}:q(r)&&q(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:f||l||s||0,clockWise:g}:t.viewBox?t.viewBox:{}},CJ=function(t,r){return t?t===!0?k.createElement(mt,{key:"label-implicit",viewBox:r}):ct(t)?k.createElement(mt,{key:"label-implicit",viewBox:r,value:t}):A.isValidElement(t)?t.type===mt?A.cloneElement(t,{key:"label-implicit",viewBox:r}):k.createElement(mt,{key:"label-implicit",content:t,viewBox:r}):oe(t)?k.createElement(mt,{key:"label-implicit",content:t,viewBox:r}):Ts(t)?k.createElement(mt,wu({viewBox:r},t,{key:"label-implicit"})):null:null},TJ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=aN(t),o=_r(i,mt).map(function(l,u){return A.cloneElement(l,{viewBox:r||a,key:"label-".concat(u)})});if(!n)return o;var s=CJ(t.label,r||a);return[s].concat(mJ(o))};mt.parseViewBox=aN;mt.renderCallByParent=TJ;function $J(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var MJ=$J;const IJ=Ae(MJ);function Su(e){"@babel/helpers - typeof";return Su=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Su(e)}var RJ=["valueAccessor"],DJ=["data","dataKey","clockWise","id","textBreakAll"];function LJ(e){return UJ(e)||BJ(e)||FJ(e)||zJ()}function zJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FJ(e,t){if(e){if(typeof e=="string")return Iv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Iv(e,t)}}function BJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UJ(e){if(Array.isArray(e))return Iv(e)}function Iv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function KJ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var VJ=function(t){return Array.isArray(t.value)?IJ(t.value):t.value};function Nn(e){var t=e.valueAccessor,r=t===void 0?VJ:t,n=gO(e,RJ),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,u=gO(n,DJ);return!i||!i.length?null:k.createElement(ve,{className:"recharts-label-list"},i.map(function(f,c){var h=ce(a)?r(f,c):lt(f&&f.payload,a),p=ce(s)?{}:{id:"".concat(s,"-").concat(c)};return k.createElement(mt,xd({},ne(f,!0),u,p,{parentViewBox:f.parentViewBox,value:h,textBreakAll:l,viewBox:mt.parseViewBox(ce(o)?f:vO(vO({},f),{},{clockWise:o})),key:"label-".concat(c),index:c}))}))}Nn.displayName="LabelList";function GJ(e,t){return e?e===!0?k.createElement(Nn,{key:"labelList-implicit",data:t}):k.isValidElement(e)||oe(e)?k.createElement(Nn,{key:"labelList-implicit",data:t,content:e}):Ts(e)?k.createElement(Nn,xd({data:t},e,{key:"labelList-implicit"})):null:null}function XJ(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=_r(n,Nn).map(function(o,s){return A.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=GJ(e.label,t);return[a].concat(LJ(i))}Nn.renderCallByParent=XJ;function Ou(e){"@babel/helpers - typeof";return Ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ou(e)}function Rv(){return Rv=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(o>u),`, + `).concat(c.x,",").concat(c.y,` + `);if(i>0){var p=Me(r,n,i,o),m=Me(r,n,i,u);h+="L ".concat(m.x,",").concat(m.y,` + A `).concat(i,",").concat(i,`,0, + `).concat(+(Math.abs(l)>180),",").concat(+(o<=u),`, + `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},eZ=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,f=t.endAngle,c=Mt(f-u),h=Bc({cx:r,cy:n,radius:a,angle:u,sign:c,cornerRadius:o,cornerIsExternal:l}),p=h.circleTangency,m=h.lineTangency,y=h.theta,v=Bc({cx:r,cy:n,radius:a,angle:f,sign:-c,cornerRadius:o,cornerIsExternal:l}),g=v.circleTangency,b=v.lineTangency,w=v.theta,O=l?Math.abs(u-f):Math.abs(u-f)-y-w;if(O<0)return s?"M ".concat(m.x,",").concat(m.y,` + a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 + a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 + `):oN({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:u,endAngle:f});var x="M ".concat(m.x,",").concat(m.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(p.x,",").concat(p.y,` + A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(c<0),",").concat(g.x,",").concat(g.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(b.x,",").concat(b.y,` + `);if(i>0){var S=Bc({cx:r,cy:n,radius:i,angle:u,sign:c,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),j=S.circleTangency,_=S.lineTangency,P=S.theta,N=Bc({cx:r,cy:n,radius:i,angle:f,sign:-c,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),$=N.circleTangency,T=N.lineTangency,L=N.theta,R=l?Math.abs(u-f):Math.abs(u-f)-P-L;if(R<0&&o===0)return"".concat(x,"L").concat(r,",").concat(n,"Z");x+="L".concat(T.x,",").concat(T.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat($.x,",").concat($.y,` + A`).concat(i,",").concat(i,",0,").concat(+(R>180),",").concat(+(c>0),",").concat(j.x,",").concat(j.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(_.x,",").concat(_.y,"Z")}else x+="L".concat(r,",").concat(n,"Z");return x},tZ={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},sN=function(t){var r=xO(xO({},tZ),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,u=r.cornerIsExternal,f=r.startAngle,c=r.endAngle,h=r.className;if(o0&&Math.abs(f-c)<360?v=eZ({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(y,m/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:f,endAngle:c}):v=oN({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:c}),k.createElement("path",Rv({},ne(r,!0),{className:p,d:v,role:"img"}))};function ju(e){"@babel/helpers - typeof";return ju=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ju(e)}function Dv(){return Dv=Object.assign?Object.assign.bind():function(e){for(var t=1;tpZ.call(e,t));function Xa(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const vZ="__v",gZ="__o",bZ="_owner",{getOwnPropertyDescriptor:_O,keys:PO}=Object;function xZ(e,t){return e.byteLength===t.byteLength&&wd(new Uint8Array(e),new Uint8Array(t))}function wZ(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function SZ(e,t){return e.byteLength===t.byteLength&&wd(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function OZ(e,t){return Xa(e.getTime(),t.getTime())}function jZ(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function _Z(e,t){return e===t}function AO(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,s,l=0;for(;(o=a.next())&&!o.done;){const u=t.entries();let f=!1,c=0;for(;(s=u.next())&&!s.done;){if(i[c]){c++;continue}const h=o.value,p=s.value;if(r.equals(h[0],p[0],l,c,e,t,r)&&r.equals(h[1],p[1],h[0],p[0],e,t,r)){f=i[c]=!0;break}c++}if(!f)return!1;l++}return!0}const PZ=Xa;function AZ(e,t,r){const n=PO(e);let i=n.length;if(PO(t).length!==i)return!1;for(;i-- >0;)if(!fN(e,t,r,n[i]))return!1;return!0}function ul(e,t,r){const n=jO(e);let i=n.length;if(jO(t).length!==i)return!1;let a,o,s;for(;i-- >0;)if(a=n[i],!fN(e,t,r,a)||(o=_O(e,a),s=_O(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function kZ(e,t){return Xa(e.valueOf(),t.valueOf())}function EZ(e,t){return e.source===t.source&&e.flags===t.flags}function kO(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,s;for(;(o=a.next())&&!o.done;){const l=t.values();let u=!1,f=0;for(;(s=l.next())&&!s.done;){if(!i[f]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){u=i[f]=!0;break}f++}if(!u)return!1}return!0}function wd(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function NZ(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function fN(e,t,r,n){return(n===bZ||n===gZ||n===vZ)&&(e.$$typeof||t.$$typeof)?!0:yZ(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const CZ="[object ArrayBuffer]",TZ="[object Arguments]",$Z="[object Boolean]",MZ="[object DataView]",IZ="[object Date]",RZ="[object Error]",DZ="[object Map]",LZ="[object Number]",zZ="[object Object]",FZ="[object RegExp]",BZ="[object Set]",UZ="[object String]",WZ={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},HZ="[object URL]",qZ=Object.prototype.toString;function KZ({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:l,arePrimitiveWrappersEqual:u,areRegExpsEqual:f,areSetsEqual:c,areTypedArraysEqual:h,areUrlsEqual:p,unknownTagComparators:m}){return function(v,g,b){if(v===g)return!0;if(v==null||g==null)return!1;const w=typeof v;if(w!==typeof g)return!1;if(w!=="object")return w==="number"?s(v,g,b):w==="function"?a(v,g,b):!1;const O=v.constructor;if(O!==g.constructor)return!1;if(O===Object)return l(v,g,b);if(Array.isArray(v))return t(v,g,b);if(O===Date)return n(v,g,b);if(O===RegExp)return f(v,g,b);if(O===Map)return o(v,g,b);if(O===Set)return c(v,g,b);const x=qZ.call(v);if(x===IZ)return n(v,g,b);if(x===FZ)return f(v,g,b);if(x===DZ)return o(v,g,b);if(x===BZ)return c(v,g,b);if(x===zZ)return typeof v.then!="function"&&typeof g.then!="function"&&l(v,g,b);if(x===HZ)return p(v,g,b);if(x===RZ)return i(v,g,b);if(x===TZ)return l(v,g,b);if(WZ[x])return h(v,g,b);if(x===CZ)return e(v,g,b);if(x===MZ)return r(v,g,b);if(x===$Z||x===LZ||x===UZ)return u(v,g,b);if(m){let S=m[x];if(!S){const j=mZ(v);j&&(S=m[j])}if(S)return S(v,g,b)}return!1}}function VZ({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:xZ,areArraysEqual:r?ul:wZ,areDataViewsEqual:SZ,areDatesEqual:OZ,areErrorsEqual:jZ,areFunctionsEqual:_Z,areMapsEqual:r?hm(AO,ul):AO,areNumbersEqual:PZ,areObjectsEqual:r?ul:AZ,arePrimitiveWrappersEqual:kZ,areRegExpsEqual:EZ,areSetsEqual:r?hm(kO,ul):kO,areTypedArraysEqual:r?hm(wd,ul):wd,areUrlsEqual:NZ,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=Wc(n.areArraysEqual),a=Wc(n.areMapsEqual),o=Wc(n.areObjectsEqual),s=Wc(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:s})}return n}function GZ(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function XZ({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(s,l){const{cache:u=e?new WeakMap:void 0,meta:f}=r();return t(s,l,{cache:u,equals:n,meta:f,strict:i})};if(e)return function(s,l){return t(s,l,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(s,l){return t(s,l,a)}}const QZ=Fi();Fi({strict:!0});Fi({circular:!0});Fi({circular:!0,strict:!0});Fi({createInternalComparator:()=>Xa});Fi({strict:!0,createInternalComparator:()=>Xa});Fi({circular:!0,createInternalComparator:()=>Xa});Fi({circular:!0,createInternalComparator:()=>Xa,strict:!0});function Fi(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=VZ(e),o=KZ(a),s=r?r(o):GZ(o);return XZ({circular:t,comparator:o,createState:n,equals:s,strict:i})}function YZ(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function EO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):YZ(i)};requestAnimationFrame(n)}function Lv(e){"@babel/helpers - typeof";return Lv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lv(e)}function JZ(e){return ree(e)||tee(e)||eee(e)||ZZ()}function ZZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eee(e,t){if(e){if(typeof e=="string")return NO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return NO(e,t)}}function NO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?1:g<0?0:g},y=function(g){for(var b=g>1?1:g,w=b,O=0;O<8;++O){var x=c(w)-b,S=p(w);if(Math.abs(x-b)0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,l=function(f,c,h){var p=-(f-c)*n,m=h*a,y=h+(p-m)*s/1e3,v=h*s/1e3+f;return Math.abs(v-c)e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $ee(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function pm(e){return Dee(e)||Ree(e)||Iee(e)||Mee()}function Mee(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Iee(e,t){if(e){if(typeof e=="string")return Wv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wv(e,t)}}function Ree(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Dee(e){if(Array.isArray(e))return Wv(e)}function Wv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function jd(e){return jd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},jd(e)}var sn=function(e){Uee(r,e);var t=Wee(r);function r(n,i){var a;Lee(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,l=o.attributeName,u=o.from,f=o.to,c=o.steps,h=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Kv(a)),a.changeStyle=a.changeStyle.bind(Kv(a)),!s||p<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:f}),qv(a);if(c&&c.length)a.state={style:c[0].style};else if(u){if(typeof h=="function")return a.state={style:u},qv(a);a.state={style:l?yl({},l,u):u}}else a.state={style:{}};return a}return Fee(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,l=a.attributeName,u=a.shouldReAnimate,f=a.to,c=a.from,h=this.state.style;if(s){if(!o){var p={style:l?yl({},l,f):f};this.state&&h&&(l&&h[l]!==f||!l&&h!==f)&&this.setState(p);return}if(!(QZ(i.to,f)&&i.canBegin&&i.isActive)){var m=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var y=m||u?c:i.to;if(this.state&&h){var v={style:l?yl({},l,y):y};(l&&h[l]!==y||!l&&h!==y)&&this.setState(v)}this.runAnimation(Tr(Tr({},this.props),{},{from:y,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,l=i.duration,u=i.easing,f=i.begin,c=i.onAnimationEnd,h=i.onAnimationStart,p=Nee(o,s,bee(u),l,this.changeStyle),m=function(){a.stopJSAnimation=p()};this.manager.start([h,f,m,l,c])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,l=i.onAnimationStart,u=o[0],f=u.style,c=u.duration,h=c===void 0?0:c,p=function(y,v,g){if(g===0)return y;var b=v.duration,w=v.easing,O=w===void 0?"ease":w,x=v.style,S=v.properties,j=v.onAnimationEnd,_=g>0?o[g-1]:v,P=S||Object.keys(x);if(typeof O=="function"||O==="spring")return[].concat(pm(y),[a.runJSAnimation.bind(a,{from:_.style,to:x,duration:b,easing:O}),b]);var N=$O(P,b,O),$=Tr(Tr(Tr({},_.style),x),{},{transition:N});return[].concat(pm(y),[$,b,j]).filter(see)};return this.manager.start([l].concat(pm(o.reduce(p,[f,Math.max(h,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=nee());var a=i.begin,o=i.duration,s=i.attributeName,l=i.to,u=i.easing,f=i.onAnimationStart,c=i.onAnimationEnd,h=i.steps,p=i.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var y=s?yl({},s,l):l,v=$O(Object.keys(y),o,u);m.start([f,a,Tr(Tr({},y),{},{transition:v}),o,c])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=Tee(i,Cee),u=A.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!s||u===0||o<=0)return a;var c=function(p){var m=p.props,y=m.style,v=y===void 0?{}:y,g=m.className,b=A.cloneElement(p,Tr(Tr({},l),{},{style:Tr(Tr({},v),f),className:g}));return b};return u===1?c(A.Children.only(a)):k.createElement("div",null,A.Children.map(a,function(h){return c(h)}))}}]),r}(A.PureComponent);sn.displayName="Animate";sn.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};sn.propTypes={from:Oe.oneOfType([Oe.object,Oe.string]),to:Oe.oneOfType([Oe.object,Oe.string]),attributeName:Oe.string,duration:Oe.number,begin:Oe.number,easing:Oe.oneOfType([Oe.string,Oe.func]),steps:Oe.arrayOf(Oe.shape({duration:Oe.number.isRequired,style:Oe.object.isRequired,easing:Oe.oneOfType([Oe.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Oe.func]),properties:Oe.arrayOf("string"),onAnimationEnd:Oe.func})),children:Oe.oneOfType([Oe.node,Oe.func]),isActive:Oe.bool,canBegin:Oe.bool,onAnimationEnd:Oe.func,shouldReAnimate:Oe.bool,onAnimationStart:Oe.func,onAnimationReStart:Oe.func};function Au(e){"@babel/helpers - typeof";return Au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Au(e)}function _d(){return _d=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0?1:-1,l=n>=0?1:-1,u=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var c=[0,0,0,0],h=0,p=4;ho?o:a[h];f="M".concat(t,",").concat(r+s*c[0]),c[0]>0&&(f+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(u,",").concat(t+l*c[0],",").concat(r)),f+="L ".concat(t+n-l*c[1],",").concat(r),c[1]>0&&(f+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(u,`, + `).concat(t+n,",").concat(r+s*c[1])),f+="L ".concat(t+n,",").concat(r+i-s*c[2]),c[2]>0&&(f+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(u,`, + `).concat(t+n-l*c[2],",").concat(r+i)),f+="L ".concat(t+l*c[3],",").concat(r+i),c[3]>0&&(f+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(u,`, + `).concat(t,",").concat(r+i-s*c[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var m=Math.min(o,a);f="M ".concat(t,",").concat(r+s*m,` + A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+l*m,",").concat(r,` + L `).concat(t+n-l*m,",").concat(r,` + A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+n,",").concat(r+s*m,` + L `).concat(t+n,",").concat(r+i-s*m,` + A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+n-l*m,",").concat(r+i,` + L `).concat(t+l*m,",").concat(r+i,` + A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t,",").concat(r+i-s*m," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},Zee=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(a,a+s),f=Math.max(a,a+s),c=Math.min(o,o+l),h=Math.max(o,o+l);return n>=u&&n<=f&&i>=c&&i<=h}return!1},ete={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Nb=function(t){var r=BO(BO({},ete),t),n=A.useRef(),i=A.useState(-1),a=qee(i,2),o=a[0],s=a[1];A.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&s(O)}catch{}},[]);var l=r.x,u=r.y,f=r.width,c=r.height,h=r.radius,p=r.className,m=r.animationEasing,y=r.animationDuration,v=r.animationBegin,g=r.isAnimationActive,b=r.isUpdateAnimationActive;if(l!==+l||u!==+u||f!==+f||c!==+c||f===0||c===0)return null;var w=fe("recharts-rectangle",p);return b?k.createElement(sn,{canBegin:o>0,from:{width:f,height:c,x:l,y:u},to:{width:f,height:c,x:l,y:u},duration:y,animationEasing:m,isActive:b},function(O){var x=O.width,S=O.height,j=O.x,_=O.y;return k.createElement(sn,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:y,isActive:g,easing:m},k.createElement("path",_d({},ne(r,!0),{className:w,d:UO(j,_,x,S,h),ref:n})))}):k.createElement("path",_d({},ne(r,!0),{className:w,d:UO(l,u,f,c,h)}))},tte=["points","className","baseLinePoints","connectNulls"];function yo(){return yo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nte(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function WO(e){return ste(e)||ote(e)||ate(e)||ite()}function ite(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ate(e,t){if(e){if(typeof e=="string")return Vv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vv(e,t)}}function ote(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ste(e){if(Array.isArray(e))return Vv(e)}function Vv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){HO(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),HO(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},$l=function(t,r){var n=lte(t);r&&(n=[n.reduce(function(a,o){return[].concat(WO(a),WO(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,s,l){return"".concat(o).concat(l===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},ute=function(t,r,n){var i=$l(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat($l(r.reverse(),n).slice(1))},cte=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=rte(t,tte);if(!r||!r.length)return null;var s=fe("recharts-polygon",n);if(i&&i.length){var l=o.stroke&&o.stroke!=="none",u=ute(r,i,a);return k.createElement("g",{className:s},k.createElement("path",yo({},ne(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),l?k.createElement("path",yo({},ne(o,!0),{fill:"none",d:$l(r,a)})):null,l?k.createElement("path",yo({},ne(o,!0),{fill:"none",d:$l(i,a)})):null)}var f=$l(r,a);return k.createElement("path",yo({},ne(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:s,d:f}))};function Gv(){return Gv=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vte(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var gte=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},bte=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,l=t.left,u=l===void 0?0:l,f=t.width,c=f===void 0?0:f,h=t.height,p=h===void 0?0:h,m=t.className,y=yte(t,fte),v=dte({x:n,y:a,top:s,left:u,width:c,height:p},y);return!q(n)||!q(a)||!q(c)||!q(p)||!q(s)||!q(u)?null:k.createElement("path",Xv({},ne(v,!0),{className:fe("recharts-cross",m),d:gte(n,a,c,p,s,u)}))},xte=Vh,wte=EE,Ste=fn;function Ote(e,t){return e&&e.length?xte(e,Ste(t),wte):void 0}var jte=Ote;const _te=Ae(jte);var Pte=Vh,Ate=fn,kte=NE;function Ete(e,t){return e&&e.length?Pte(e,Ate(t),kte):void 0}var Nte=Ete;const Cte=Ae(Nte);var Tte=["cx","cy","angle","ticks","axisLine"],$te=["ticks","tick","angle","tickFormatter","stroke"];function ls(e){"@babel/helpers - typeof";return ls=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ls(e)}function Ml(){return Ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Mte(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ite(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GO(e,t){for(var r=0;rYO?o=i==="outer"?"start":"end":a<-YO?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,s=n.axisLine,l=n.axisLineType,u=Vi(Vi({},ne(this.props,!1)),{},{fill:"none"},ne(s,!1));if(l==="circle")return k.createElement(Jh,Zi({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:a,r:o}));var f=this.props.ticks,c=f.map(function(h){return Me(i,a,o,h.coordinate)});return k.createElement(cte,Zi({className:"recharts-polar-angle-axis-line"},u,{points:c}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.tickLine,l=i.tickFormatter,u=i.stroke,f=ne(this.props,!1),c=ne(o,!1),h=Vi(Vi({},f),{},{fill:"none"},ne(s,!1)),p=a.map(function(m,y){var v=n.getTickLineCoord(m),g=n.getTickTextAnchor(m),b=Vi(Vi(Vi({textAnchor:g},f),{},{stroke:"none",fill:u},c),{},{index:y,payload:m,x:v.x2,y:v.y2});return k.createElement(ve,Zi({className:fe("recharts-polar-angle-axis-tick",iN(o)),key:"tick-".concat(m.coordinate)},Ra(n.props,m,y)),s&&k.createElement("line",Zi({className:"recharts-polar-angle-axis-tick-line"},h,v)),o&&t.renderTickItem(o,b,l?l(m.value,y):m.value))});return k.createElement(ve,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:k.createElement(ve,{className:fe("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return k.isValidElement(n)?o=k.cloneElement(n,i):oe(n)?o=n(i):o=k.createElement(Da,Zi({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(A.PureComponent);tp(rp,"displayName","PolarAngleAxis");tp(rp,"axisType","angleAxis");tp(rp,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Qte=Pk,Yte=Qte(Object.getPrototypeOf,Object),Jte=Yte,Zte=Fn,ere=Jte,tre=Bn,rre="[object Object]",nre=Function.prototype,ire=Object.prototype,SN=nre.toString,are=ire.hasOwnProperty,ore=SN.call(Object);function sre(e){if(!tre(e)||Zte(e)!=rre)return!1;var t=ere(e);if(t===null)return!0;var r=are.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&SN.call(r)==ore}var lre=sre;const ure=Ae(lre);var cre=Fn,fre=Bn,dre="[object Boolean]";function hre(e){return e===!0||e===!1||fre(e)&&cre(e)==dre}var pre=hre;const mre=Ae(pre);function Eu(e){"@babel/helpers - typeof";return Eu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eu(e)}function kd(){return kd=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,from:{upperWidth:0,lowerWidth:0,height:h,x:l,y:u},to:{upperWidth:f,lowerWidth:c,height:h,x:l,y:u},duration:y,animationEasing:m,isActive:g},function(w){var O=w.upperWidth,x=w.lowerWidth,S=w.height,j=w.x,_=w.y;return k.createElement(sn,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:y,easing:m},k.createElement("path",kd({},ne(r,!0),{className:b,d:tj(j,_,O,x,S),ref:n})))}):k.createElement("g",null,k.createElement("path",kd({},ne(r,!0),{className:b,d:tj(l,u,f,c,h)})))},Pre=["option","shapeType","propTransformer","activeClassName","isActive"];function Nu(e){"@babel/helpers - typeof";return Nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nu(e)}function Are(e,t){if(e==null)return{};var r=kre(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function kre(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function rj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ed(e){for(var t=1;t0?ur(w,"paddingAngle",0):0;if(x){var j=qt(x.endAngle-x.startAngle,w.endAngle-w.startAngle),_=Ce(Ce({},w),{},{startAngle:b+S,endAngle:b+j(y)+S});v.push(_),b=_.endAngle}else{var P=w.endAngle,N=w.startAngle,$=qt(0,P-N),T=$(y),L=Ce(Ce({},w),{},{startAngle:b+S,endAngle:b+T+S});v.push(L),b=L.endAngle}}),k.createElement(ve,null,n.renderSectorsStatically(v))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var s=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!as(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,s=i.className,l=i.label,u=i.cx,f=i.cy,c=i.innerRadius,h=i.outerRadius,p=i.isAnimationActive,m=this.state.isAnimationFinished;if(a||!o||!o.length||!q(u)||!q(f)||!q(c)||!q(h))return null;var y=fe("recharts-pie",s);return k.createElement(ve,{tabIndex:this.props.rootTabIndex,className:y,ref:function(g){n.pieRef=g}},this.renderSectors(),l&&this.renderLabels(o),mt.renderCallByParent(this.props,null,!1),(!p||m)&&Nn.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n=360?b:b-1)*l,O=v-b*p-w,x=i.reduce(function(_,P){var N=lt(P,g,0);return _+(q(N)?N:0)},0),S;if(x>0){var j;S=i.map(function(_,P){var N=lt(_,g,0),$=lt(_,f,P),T=(q(N)?N:0)/x,L;P?L=j.endAngle+Mt(y)*l*(N!==0?1:0):L=o;var R=L+Mt(y)*((N!==0?p:0)+T*O),I=(L+R)/2,D=(m.innerRadius+m.outerRadius)/2,B=[{name:$,value:N,payload:_,dataKey:g,type:h}],C=Me(m.cx,m.cy,D,I);return j=Ce(Ce(Ce({percent:T,cornerRadius:a,name:$,tooltipPayload:B,midAngle:I,middleRadius:D,tooltipPosition:C},_),m),{},{value:lt(_,g),startAngle:L,endAngle:R,payload:_,paddingAngle:Mt(y)*l}),j})}return Ce(Ce({},m),{},{sectors:S,data:i})});var Xre=Math.ceil,Qre=Math.max;function Yre(e,t,r,n){for(var i=-1,a=Qre(Xre((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var Jre=Yre,Zre=qk,oj=1/0,ene=17976931348623157e292;function tne(e){if(!e)return e===0?e:0;if(e=Zre(e),e===oj||e===-oj){var t=e<0?-1:1;return t*ene}return e===e?e:0}var PN=tne,rne=Jre,nne=zh,mm=PN;function ine(e){return function(t,r,n){return n&&typeof n!="number"&&nne(t,r,n)&&(r=n=void 0),t=mm(t),r===void 0?(r=t,t=0):r=mm(r),n=n===void 0?t0&&n.handleDrag(i.changedTouches[0])}),nr(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o==null||o({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),nr(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),nr(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),nr(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),nr(n,"handleSlideDragStart",function(i){var a=fj(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return gne(t,e),pne(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,s=this.props,l=s.gap,u=s.data,f=u.length-1,c=Math.min(i,a),h=Math.max(i,a),p=t.getIndexInRange(o,c),m=t.getIndexInRange(o,h);return{startIndex:p-p%l,endIndex:m===f?f:m-m%l}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,l=lt(a[n],s,n);return oe(o)?o(l,n):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,s=i.endX,l=this.props,u=l.x,f=l.width,c=l.travellerWidth,h=l.startIndex,p=l.endIndex,m=l.onChange,y=n.pageX-a;y>0?y=Math.min(y,u+f-c-s,u+f-c-o):y<0&&(y=Math.max(y,u-o,u-s));var v=this.getIndex({startX:o+y,endX:s+y});(v.startIndex!==h||v.endIndex!==p)&&m&&m(v),this.setState({startX:o+y,endX:s+y,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=fj(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,s=i.endX,l=i.startX,u=this.state[o],f=this.props,c=f.x,h=f.width,p=f.travellerWidth,m=f.onChange,y=f.gap,v=f.data,g={startX:this.state.startX,endX:this.state.endX},b=n.pageX-a;b>0?b=Math.min(b,c+h-p-u):b<0&&(b=Math.max(b,c-u)),g[o]=u+b;var w=this.getIndex(g),O=w.startIndex,x=w.endIndex,S=function(){var _=v.length-1;return o==="startX"&&(s>l?O%y===0:x%y===0)||sl?x%y===0:O%y===0)||s>l&&x===_};this.setState(nr(nr({},o,u+b),"brushMoveStartX",n.pageX),function(){m&&S()&&m(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,l=o.startX,u=o.endX,f=this.state[i],c=s.indexOf(f);if(c!==-1){var h=c+n;if(!(h===-1||h>=s.length)){var p=s[h];i==="startX"&&p>=u||i==="endX"&&p<=l||this.setState(nr({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.fill,u=n.stroke;return k.createElement("rect",{stroke:u,fill:l,x:i,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.data,u=n.children,f=n.padding,c=A.Children.only(u);return c?k.cloneElement(c,{x:i,y:a,width:o,height:s,margin:f,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,l=this.props,u=l.y,f=l.travellerWidth,c=l.height,h=l.traveller,p=l.ariaLabel,m=l.data,y=l.startIndex,v=l.endIndex,g=Math.max(n,this.props.x),b=ym(ym({},ne(this.props,!1)),{},{x:g,y:u,width:f,height:c}),w=p||"Min value: ".concat((a=m[y])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=m[v])===null||o===void 0?void 0:o.name);return k.createElement(ve,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(x){["ArrowLeft","ArrowRight"].includes(x.key)&&(x.preventDefault(),x.stopPropagation(),s.handleTravellerMoveKeyboard(x.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,b))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,l=a.stroke,u=a.travellerWidth,f=Math.min(n,i)+u,c=Math.max(Math.abs(i-n)-u,0);return k.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:f,y:o,width:c,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,s=n.height,l=n.travellerWidth,u=n.stroke,f=this.state,c=f.startX,h=f.endX,p=5,m={pointerEvents:"none",fill:u};return k.createElement(ve,{className:"recharts-brush-texts"},k.createElement(Da,Td({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,h)-p,y:o+s/2},m),this.getTextOfTick(i)),k.createElement(Da,Td({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,h)+l+p,y:o+s/2},m),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,l=n.y,u=n.width,f=n.height,c=n.alwaysShowText,h=this.state,p=h.startX,m=h.endX,y=h.isTextActive,v=h.isSlideMoving,g=h.isTravellerMoving,b=h.isTravellerFocused;if(!i||!i.length||!q(s)||!q(l)||!q(u)||!q(f)||u<=0||f<=0)return null;var w=fe("recharts-brush",a),O=k.Children.count(o)===1,x=dne("userSelect","none");return k.createElement(ve,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:x},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(p,m),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(m,"endX"),(y||v||g||b||c)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,l=n.stroke,u=Math.floor(a+s/2)-1;return k.createElement(k.Fragment,null,k.createElement("rect",{x:i,y:a,width:o,height:s,fill:l,stroke:"none"}),k.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),k.createElement("line",{x1:i+1,y1:u+2,x2:i+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return k.isValidElement(n)?a=k.cloneElement(n,i):oe(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,s=n.x,l=n.travellerWidth,u=n.updateId,f=n.startIndex,c=n.endIndex;if(a!==i.prevData||u!==i.prevUpdateId)return ym({prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o},a&&a.length?xne({data:a,width:o,x:s,travellerWidth:l,startIndex:f,endIndex:c}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+o-l]);var h=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,s=a-1;s-o>1;){var l=Math.floor((o+s)/2);n[l]>i?s=l:o=l}return i>=n[s]?s:o}}])}(A.PureComponent);nr(ds,"displayName","Brush");nr(ds,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var wne=rb;function Sne(e,t){var r;return wne(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var One=Sne,jne=gk,_ne=fn,Pne=One,Ane=tr,kne=zh;function Ene(e,t,r){var n=Ane(e)?jne:Pne;return r&&kne(e,t,r)&&(t=void 0),n(e,_ne(t))}var Nne=Ene;const Cne=Ae(Nne);var an=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},dj=Fk;function Tne(e,t,r){t=="__proto__"&&dj?dj(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var $ne=Tne,Mne=$ne,Ine=Lk,Rne=fn;function Dne(e,t){var r={};return t=Rne(t),Ine(e,function(n,i,a){Mne(r,i,t(n,i,a))}),r}var Lne=Dne;const zne=Ae(Lne);function Fne(e,t){for(var r=-1,n=e==null?0:e.length;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nie(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function iie(e,t){var r=e.x,n=e.y,i=rie(e,Jne),a="".concat(r),o=parseInt(a,10),s="".concat(n),l=parseInt(s,10),u="".concat(t.height||i.height),f=parseInt(u,10),c="".concat(t.width||i.width),h=parseInt(c,10);return cl(cl(cl(cl(cl({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function pj(e){return k.createElement(ON,eg({shapeType:"rectangle",propTransformer:iie,activeClassName:"recharts-active-bar"},e))}var aie=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=q(n)||P6(n);return a?t(n,i):(a||za(),r)}},oie=["value","background"],CN;function hs(e){"@babel/helpers - typeof";return hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hs(e)}function sie(e,t){if(e==null)return{};var r=lie(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lie(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Md(){return Md=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&Math.abs(I)0&&Math.abs(R)0&&(L=Math.min((ie||0)-(R[xe-1]||0),L))}),Number.isFinite(L)){var I=L/T,D=y.layout==="vertical"?n.height:n.width;if(y.padding==="gap"&&(j=I*D/2),y.padding==="no-gap"){var B=It(t.barCategoryGap,I*D),C=I*D/2;j=C-B-(C-B)/D*B}}}i==="xAxis"?_=[n.left+(w.left||0)+(j||0),n.left+n.width-(w.right||0)-(j||0)]:i==="yAxis"?_=l==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(j||0),n.top+n.height-(w.bottom||0)-(j||0)]:_=y.range,x&&(_=[_[1],_[0]]);var F=YE(y,a,h),U=F.scale,V=F.realScaleType;U.domain(g).range(_),JE(U);var H=ZE(U,Dr(Dr({},y),{},{realScaleType:V}));i==="xAxis"?($=v==="top"&&!O||v==="bottom"&&O,P=n.left,N=c[S]-$*y.height):i==="yAxis"&&($=v==="left"&&!O||v==="right"&&O,P=c[S]-$*y.width,N=n.top);var X=Dr(Dr(Dr({},y),H),{},{realScaleType:V,x:P,y:N,scale:U,width:i==="xAxis"?n.width:y.width,height:i==="yAxis"?n.height:y.height});return X.bandSize=gd(X,H),!y.hide&&i==="xAxis"?c[S]+=($?-1:1)*X.height:y.hide||(c[S]+=($?-1:1)*X.width),Dr(Dr({},p),{},ap({},m,X))},{})},RN=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},bie=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return RN({x:r,y:n},{x:i,y:a})},DN=function(){function e(t){yie(this,e),this.scale=t}return vie(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])}();ap(DN,"EPS",1e-4);var Cb=function(t){var r=Object.keys(t).reduce(function(n,i){return Dr(Dr({},n),{},ap({},i,DN.create(t[i])))},{});return Dr(Dr({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return zne(i,function(l,u){return r[u].apply(l,{bandAware:o,position:s})})},isInRange:function(i){return NN(i,function(a,o){return r[o].isInRange(a)})}})};function xie(e){return(e%180+180)%180}var wie=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=xie(i),o=a*Math.PI/180,s=Math.atan(n/r),l=o>s&&o-1?i[a?t[o]:o]:void 0}}var Pie=_ie,Aie=PN;function kie(e){var t=Aie(e),r=t%1;return t===t?r?t-r:t:0}var Eie=kie,Nie=Tk,Cie=fn,Tie=Eie,$ie=Math.max;function Mie(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:Tie(r);return i<0&&(i=$ie(n+i,0)),Nie(e,Cie(t),i)}var Iie=Mie,Rie=Pie,Die=Iie,Lie=Rie(Die),zie=Lie;const Fie=Ae(zie);var Bie=Tz(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),Tb=A.createContext(void 0),$b=A.createContext(void 0),LN=A.createContext(void 0),zN=A.createContext({}),FN=A.createContext(void 0),BN=A.createContext(0),UN=A.createContext(0),bj=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,l=t.width,u=t.height,f=Bie(a);return k.createElement(Tb.Provider,{value:n},k.createElement($b.Provider,{value:i},k.createElement(zN.Provider,{value:a},k.createElement(LN.Provider,{value:f},k.createElement(FN.Provider,{value:o},k.createElement(BN.Provider,{value:u},k.createElement(UN.Provider,{value:l},s)))))))},Uie=function(){return A.useContext(FN)},WN=function(t){var r=A.useContext(Tb);r==null&&za();var n=r[t];return n==null&&za(),n},Wie=function(){var t=A.useContext(Tb);return ei(t)},Hie=function(){var t=A.useContext($b),r=Fie(t,function(n){return NN(n.domain,Number.isFinite)});return r||ei(t)},HN=function(t){var r=A.useContext($b);r==null&&za();var n=r[t];return n==null&&za(),n},qie=function(){var t=A.useContext(LN);return t},Kie=function(){return A.useContext(zN)},Mb=function(){return A.useContext(UN)},Ib=function(){return A.useContext(BN)};function ps(e){"@babel/helpers - typeof";return ps=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ps(e)}function Vie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gie(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);re*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function Eae(e,t){return YN(e,t+1)}function Nae(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,l=0,u=1,f=o,c=function(){var m=n==null?void 0:n[l];if(m===void 0)return{v:YN(n,u)};var y=l,v,g=function(){return v===void 0&&(v=r(m,y)),v},b=m.coordinate,w=l===0||zd(e,b,g,f,s);w||(l=0,f=o,u+=1),w&&(f=b+e*(g()/2+i),l+=u)},h;u<=a.length;)if(h=c(),h)return h.v;return[]}function Iu(e){"@babel/helpers - typeof";return Iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Iu(e)}function Aj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pt(e){for(var t=1;t0?p.coordinate-v*e:p.coordinate})}else a[h]=p=Pt(Pt({},p),{},{tickCoord:p.coordinate});var g=zd(e,p.tickCoord,y,s,l);g&&(l=p.tickCoord-e*(y()/2+i),a[h]=Pt(Pt({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)u(f);return a}function Iae(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,l=t.start,u=t.end;if(a){var f=n[s-1],c=r(f,s-1),h=e*(f.coordinate+e*c/2-u);o[s-1]=f=Pt(Pt({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var p=zd(e,f.tickCoord,function(){return c},l,u);p&&(u=f.tickCoord-e*(c/2+i),o[s-1]=Pt(Pt({},f),{},{isShow:!0}))}for(var m=a?s-1:s,y=function(b){var w=o[b],O,x=function(){return O===void 0&&(O=r(w,b)),O};if(b===0){var S=e*(w.coordinate-e*x()/2-l);o[b]=w=Pt(Pt({},w),{},{tickCoord:S<0?w.coordinate-S*e:w.coordinate})}else o[b]=w=Pt(Pt({},w),{},{tickCoord:w.coordinate});var j=zd(e,w.tickCoord,x,l,u);j&&(l=w.tickCoord+e*(x()/2+i),o[b]=Pt(Pt({},w),{},{isShow:!0}))},v=0;v=2?Mt(i[1].coordinate-i[0].coordinate):1,g=kae(a,v,p);return l==="equidistantPreserveStart"?Nae(v,g,y,i,o):(l==="preserveStart"||l==="preserveStartEnd"?h=Iae(v,g,y,i,o,l==="preserveStartEnd"):h=Mae(v,g,y,i,o),h.filter(function(b){return b.isShow}))}var Rae=["viewBox"],Dae=["viewBox"],Lae=["ticks"];function vs(e){"@babel/helpers - typeof";return vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vs(e)}function go(){return go=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zae(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Fae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ej(e,t){for(var r=0;r0?l(this.props):l(p)),o<=0||s<=0||!m||!m.length?null:k.createElement(ve,{className:fe("recharts-cartesian-axis",u),ref:function(v){n.layerReference=v}},a&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),mt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=fe(i.className,"recharts-cartesian-axis-tick-value");return k.isValidElement(n)?o=k.cloneElement(n,it(it({},i),{},{className:s})):oe(n)?o=n(it(it({},i),{},{className:s})):o=k.createElement(Da,go({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(A.Component);zb(Hs,"displayName","CartesianAxis");zb(Hs,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Vae=["x1","y1","x2","y2","key"],Gae=["offset"];function Fa(e){"@babel/helpers - typeof";return Fa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fa(e)}function Nj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kt(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Jae(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Zae=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,s=t.height,l=t.ry;return k.createElement("rect",{x:i,y:a,ry:l,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function eC(e,t){var r;if(k.isValidElement(e))r=k.cloneElement(e,t);else if(oe(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,l=Cj(t,Vae),u=ne(l,!1);u.offset;var f=Cj(u,Gae);r=k.createElement("line",la({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function eoe(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=kt(kt({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return eC(i,u)});return k.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function toe(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=kt(kt({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return eC(i,u)});return k.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function roe(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,l=e.horizontal,u=l===void 0?!0:l;if(!u||!t||!t.length)return null;var f=s.map(function(h){return Math.round(h+i-i)}).sort(function(h,p){return h-p});i!==f[0]&&f.unshift(0);var c=f.map(function(h,p){var m=!f[p+1],y=m?i+o-h:f[p+1]-h;if(y<=0)return null;var v=p%t.length;return k.createElement("rect",{key:"react-".concat(p),y:h,x:n,height:y,width:a,stroke:"none",fill:t[v],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return k.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},c)}function noe(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,l=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var f=u.map(function(h){return Math.round(h+a-a)}).sort(function(h,p){return h-p});a!==f[0]&&f.unshift(0);var c=f.map(function(h,p){var m=!f[p+1],y=m?a+s-h:f[p+1]-h;if(y<=0)return null;var v=p%n.length;return k.createElement("rect",{key:"react-".concat(p),x:h,y:o,width:y,height:l,stroke:"none",fill:n[v],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return k.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},c)}var ioe=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return QE(Lb(kt(kt(kt({},Hs.defaultProps),n),{},{ticks:Pn(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},aoe=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return QE(Lb(kt(kt(kt({},Hs.defaultProps),n),{},{ticks:Pn(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},to={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Ru(e){var t,r,n,i,a,o,s=Mb(),l=Ib(),u=Kie(),f=kt(kt({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:to.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:to.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:to.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:to.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:to.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:to.verticalFill,x:q(e.x)?e.x:u.left,y:q(e.y)?e.y:u.top,width:q(e.width)?e.width:u.width,height:q(e.height)?e.height:u.height}),c=f.x,h=f.y,p=f.width,m=f.height,y=f.syncWithTicks,v=f.horizontalValues,g=f.verticalValues,b=Wie(),w=Hie();if(!q(p)||p<=0||!q(m)||m<=0||!q(c)||c!==+c||!q(h)||h!==+h)return null;var O=f.verticalCoordinatesGenerator||ioe,x=f.horizontalCoordinatesGenerator||aoe,S=f.horizontalPoints,j=f.verticalPoints;if((!S||!S.length)&&oe(x)){var _=v&&v.length,P=x({yAxis:w?kt(kt({},w),{},{ticks:_?v:w.ticks}):void 0,width:s,height:l,offset:u},_?!0:y);Ur(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Fa(P),"]")),Array.isArray(P)&&(S=P)}if((!j||!j.length)&&oe(O)){var N=g&&g.length,$=O({xAxis:b?kt(kt({},b),{},{ticks:N?g:b.ticks}):void 0,width:s,height:l,offset:u},N?!0:y);Ur(Array.isArray($),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Fa($),"]")),Array.isArray($)&&(j=$)}return k.createElement("g",{className:"recharts-cartesian-grid"},k.createElement(Zae,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),k.createElement(eoe,la({},f,{offset:u,horizontalPoints:S,xAxis:b,yAxis:w})),k.createElement(toe,la({},f,{offset:u,verticalPoints:j,xAxis:b,yAxis:w})),k.createElement(roe,la({},f,{horizontalPoints:S})),k.createElement(noe,la({},f,{verticalPoints:j})))}Ru.displayName="CartesianGrid";var ooe=["layout","type","stroke","connectNulls","isRange","ref"],soe=["key"],tC;function gs(e){"@babel/helpers - typeof";return gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gs(e)}function rC(e,t){if(e==null)return{};var r=loe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function loe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t0||!as(f,o)||!as(c,s))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,s,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,u=i.top,f=i.left,c=i.xAxis,h=i.yAxis,p=i.width,m=i.height,y=i.isAnimationActive,v=i.id;if(a||!s||!s.length)return null;var g=this.state.isAnimationFinished,b=s.length===1,w=fe("recharts-area",l),O=c&&c.allowDataOverflow,x=h&&h.allowDataOverflow,S=O||x,j=ce(v)?this.id:v,_=(n=ne(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},P=_.r,N=P===void 0?3:P,$=_.strokeWidth,T=$===void 0?2:$,L=L6(o)?o:{},R=L.clipDot,I=R===void 0?!0:R,D=N*2+T;return k.createElement(ve,{className:w},O||x?k.createElement("defs",null,k.createElement("clipPath",{id:"clipPath-".concat(j)},k.createElement("rect",{x:O?f:f-p/2,y:x?u:u-m/2,width:O?p:p*2,height:x?m:m*2})),!I&&k.createElement("clipPath",{id:"clipPath-dots-".concat(j)},k.createElement("rect",{x:f-D/2,y:u-D/2,width:p+D,height:m+D}))):null,b?null:this.renderArea(S,j),(o||b)&&this.renderDots(S,I,j),(!y||g)&&Nn.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])}(A.PureComponent);tC=ln;en(ln,"displayName","Area");en(ln,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Ka.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});en(ln,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,s=o??a;if(q(s)&&typeof s=="number")return s;var l=i==="horizontal"?n:r,u=l.scale.domain();if(l.type==="number"){var f=Math.max(u[0],u[1]),c=Math.min(u[0],u[1]);return s==="dataMin"?c:s==="dataMax"||f<0?f:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]});en(ln,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,l=e.dataKey,u=e.stackedData,f=e.dataStartIndex,c=e.displayedData,h=e.offset,p=t.layout,m=u&&u.length,y=tC.getBaseValue(t,r,n,i),v=p==="horizontal",g=!1,b=c.map(function(O,x){var S;m?S=u[f+x]:(S=lt(O,l),Array.isArray(S)?g=!0:S=[y,S]);var j=S[1]==null||m&<(O,l)==null;return v?{x:sO({axis:n,ticks:a,bandSize:s,entry:O,index:x}),y:j?null:i.scale(S[1]),value:S,payload:O}:{x:j?null:n.scale(S[1]),y:sO({axis:i,ticks:o,bandSize:s,entry:O,index:x}),value:S,payload:O}}),w;return m||g?w=b.map(function(O){var x=Array.isArray(O.value)?O.value[0]:null;return v?{x:O.x,y:x!=null&&O.y!=null?i.scale(x):null}:{x:x!=null?n.scale(x):null,y:O.y}}):w=v?i.scale(y):n.scale(y),Gn({points:b,baseLine:w,layout:p,isRange:g},h)});en(ln,"renderDotItem",function(e,t){var r;if(k.isValidElement(e))r=k.cloneElement(e,t);else if(oe(e))r=e(t);else{var n=fe("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=rC(t,soe);r=k.createElement(Jh,ua({},a,{key:i,className:n}))}return r});function bs(e){"@babel/helpers - typeof";return bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bs(e)}function yoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function voe(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nse(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ise(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ase(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?o:t&&t.length&&q(i)&&q(a)?t.slice(i,a+1):[]};function gC(e){return e==="number"?[0,"auto"]:void 0}var gg=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=cp(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(l,u){var f,c=(f=u.props.data)!==null&&f!==void 0?f:r;c&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(c=c.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var p=c===void 0?s:c;h=Wf(p,o.dataKey,i)}else h=c&&c[n]||s[n];return h?[].concat(Ss(l),[tN(u,h)]):l},[])},zj=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=vse(a,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,f=zY(o,s,u,l);if(f>=0&&u){var c=u[f]&&u[f].value,h=gg(t,r,f,c),p=gse(n,s,f,a);return{activeTooltipIndex:f,activeLabel:c,activePayload:h,activeCoordinate:p}}return null},bse=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,f=t.layout,c=t.children,h=t.stackOffset,p=XE(f,a);return n.reduce(function(m,y){var v,g=y.type.defaultProps!==void 0?z(z({},y.type.defaultProps),y.props):y.props,b=g.type,w=g.dataKey,O=g.allowDataOverflow,x=g.allowDuplicatedCategory,S=g.scale,j=g.ticks,_=g.includeHidden,P=g[o];if(m[P])return m;var N=cp(t.data,{graphicalItems:i.filter(function(H){var X,ie=o in H.props?H.props[o]:(X=H.type.defaultProps)===null||X===void 0?void 0:X[o];return ie===P}),dataStartIndex:l,dataEndIndex:u}),$=N.length,T,L,R;qoe(g.domain,O,b)&&(T=$v(g.domain,null,O),p&&(b==="number"||S!=="auto")&&(R=Cl(N,w,"category")));var I=gC(b);if(!T||T.length===0){var D,B=(D=g.domain)!==null&&D!==void 0?D:I;if(w){if(T=Cl(N,w,b),b==="category"&&p){var C=k6(T);x&&C?(L=T,T=Cd(0,$)):x||(T=fO(B,T,y).reduce(function(H,X){return H.indexOf(X)>=0?H:[].concat(Ss(H),[X])},[]))}else if(b==="category")x?T=T.filter(function(H){return H!==""&&!ce(H)}):T=fO(B,T,y).reduce(function(H,X){return H.indexOf(X)>=0||X===""||ce(X)?H:[].concat(Ss(H),[X])},[]);else if(b==="number"){var F=HY(N,i.filter(function(H){var X,ie,xe=o in H.props?H.props[o]:(X=H.type.defaultProps)===null||X===void 0?void 0:X[o],ze="hide"in H.props?H.props.hide:(ie=H.type.defaultProps)===null||ie===void 0?void 0:ie.hide;return xe===P&&(_||!ze)}),w,a,f);F&&(T=F)}p&&(b==="number"||S!=="auto")&&(R=Cl(N,w,"category"))}else p?T=Cd(0,$):s&&s[P]&&s[P].hasStack&&b==="number"?T=h==="expand"?[0,1]:eN(s[P].stackGroups,l,u):T=GE(N,i.filter(function(H){var X=o in H.props?H.props[o]:H.type.defaultProps[o],ie="hide"in H.props?H.props.hide:H.type.defaultProps.hide;return X===P&&(_||!ie)}),b,f,!0);if(b==="number")T=mg(c,T,P,a,j),B&&(T=$v(B,T,O));else if(b==="category"&&B){var U=B,V=T.every(function(H){return U.indexOf(H)>=0});V&&(T=U)}}return z(z({},m),{},ae({},P,z(z({},g),{},{axisType:a,domain:T,categoricalDomain:R,duplicateDomain:L,originalDomain:(v=g.domain)!==null&&v!==void 0?v:I,isCategorical:p,layout:f})))},{})},xse=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,f=t.layout,c=t.children,h=cp(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:u}),p=h.length,m=XE(f,a),y=-1;return n.reduce(function(v,g){var b=g.type.defaultProps!==void 0?z(z({},g.type.defaultProps),g.props):g.props,w=b[o],O=gC("number");if(!v[w]){y++;var x;return m?x=Cd(0,p):s&&s[w]&&s[w].hasStack?(x=eN(s[w].stackGroups,l,u),x=mg(c,x,w,a)):(x=$v(O,GE(h,n.filter(function(S){var j,_,P=o in S.props?S.props[o]:(j=S.type.defaultProps)===null||j===void 0?void 0:j[o],N="hide"in S.props?S.props.hide:(_=S.type.defaultProps)===null||_===void 0?void 0:_.hide;return P===w&&!N}),"number",f),i.defaultProps.allowDataOverflow),x=mg(c,x,w,a)),z(z({},v),{},ae({},w,z(z({axisType:a},i.defaultProps),{},{hide:!0,orientation:ur(mse,"".concat(a,".").concat(y%2),null),domain:x,originalDomain:O,isCategorical:m,layout:f})))}return v},{})},wse=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,f=t.children,c="".concat(i,"Id"),h=_r(f,a),p={};return h&&h.length?p=bse(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):o&&o.length&&(p=xse(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),p},Sse=function(t){var r=ei(t),n=Pn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:nb(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:gd(r,n)}},Fj=function(t){var r=t.children,n=t.defaultShowTooltip,i=ar(r,ds),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},Ose=function(t){return!t||!t.length?!1:t.some(function(r){var n=kn(r&&r.type);return n&&n.indexOf("Bar")>=0})},Bj=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},jse=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,l=s===void 0?{}:s,u=n.width,f=n.height,c=n.children,h=n.margin||{},p=ar(c,ds),m=ar(c,Ao),y=Object.keys(l).reduce(function(x,S){var j=l[S],_=j.orientation;return!j.mirror&&!j.hide?z(z({},x),{},ae({},_,x[_]+j.width)):x},{left:h.left||0,right:h.right||0}),v=Object.keys(o).reduce(function(x,S){var j=o[S],_=j.orientation;return!j.mirror&&!j.hide?z(z({},x),{},ae({},_,ur(x,"".concat(_))+j.height)):x},{top:h.top||0,bottom:h.bottom||0}),g=z(z({},v),y),b=g.bottom;p&&(g.bottom+=p.props.height||ds.defaultProps.height),m&&r&&(g=UY(g,i,n,r));var w=u-g.left-g.right,O=f-g.top-g.bottom;return z(z({brushBottom:b},g),{},{width:Math.max(w,0),height:Math.max(O,0)})},_se=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},Fb=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,l=t.axisComponents,u=t.legendContent,f=t.formatAxisMap,c=t.defaultProps,h=function(g,b){var w=b.graphicalItems,O=b.stackGroups,x=b.offset,S=b.updateId,j=b.dataStartIndex,_=b.dataEndIndex,P=g.barSize,N=g.layout,$=g.barGap,T=g.barCategoryGap,L=g.maxBarSize,R=Bj(N),I=R.numericAxisName,D=R.cateAxisName,B=Ose(w),C=[];return w.forEach(function(F,U){var V=cp(g.data,{graphicalItems:[F],dataStartIndex:j,dataEndIndex:_}),H=F.type.defaultProps!==void 0?z(z({},F.type.defaultProps),F.props):F.props,X=H.dataKey,ie=H.maxBarSize,xe=H["".concat(I,"Id")],ze=H["".concat(D,"Id")],Se={},gt=l.reduce(function(Ui,Wi){var fp=b["".concat(Wi.axisType,"Map")],Bb=H["".concat(Wi.axisType,"Id")];fp&&fp[Bb]||Wi.axisType==="zAxis"||za();var Ub=fp[Bb];return z(z({},Ui),{},ae(ae({},Wi.axisType,Ub),"".concat(Wi.axisType,"Ticks"),Pn(Ub)))},Se),G=gt[D],le=gt["".concat(D,"Ticks")],ue=O&&O[xe]&&O[xe].hasStack&&ZY(F,O[xe].stackGroups),W=kn(F.type).indexOf("Bar")>=0,qe=gd(G,le),ge=[],tt=B&&FY({barSize:P,stackGroups:O,totalSize:_se(gt,D)});if(W){var rt,Ft,Hn=ce(ie)?L:ie,Qa=(rt=(Ft=gd(G,le,!0))!==null&&Ft!==void 0?Ft:Hn)!==null&&rt!==void 0?rt:0;ge=BY({barGap:$,barCategoryGap:T,bandSize:Qa!==qe?Qa:qe,sizeList:tt[ze],maxBarSize:Hn}),Qa!==qe&&(ge=ge.map(function(Ui){return z(z({},Ui),{},{position:z(z({},Ui.position),{},{offset:Ui.position.offset-Qa/2})})}))}var sc=F&&F.type&&F.type.getComposedData;sc&&C.push({props:z(z({},sc(z(z({},gt),{},{displayedData:V,props:g,dataKey:X,item:F,bandSize:qe,barPosition:ge,offset:x,stackedData:ue,layout:N,dataStartIndex:j,dataEndIndex:_}))),{},ae(ae(ae({key:F.key||"item-".concat(U)},I,gt[I]),D,gt[D]),"animationId",S)),childIndex:B6(F,g.children),item:F})}),C},p=function(g,b){var w=g.props,O=g.dataStartIndex,x=g.dataEndIndex,S=g.updateId;if(!iw({props:w}))return null;var j=w.children,_=w.layout,P=w.stackOffset,N=w.data,$=w.reverseStackOrder,T=Bj(_),L=T.numericAxisName,R=T.cateAxisName,I=_r(j,n),D=YY(N,I,"".concat(L,"Id"),"".concat(R,"Id"),P,$),B=l.reduce(function(H,X){var ie="".concat(X.axisType,"Map");return z(z({},H),{},ae({},ie,wse(w,z(z({},X),{},{graphicalItems:I,stackGroups:X.axisType===L&&D,dataStartIndex:O,dataEndIndex:x}))))},{}),C=jse(z(z({},B),{},{props:w,graphicalItems:I}),b==null?void 0:b.legendBBox);Object.keys(B).forEach(function(H){B[H]=f(w,B[H],C,H.replace("Map",""),r)});var F=B["".concat(R,"Map")],U=Sse(F),V=h(w,z(z({},B),{},{dataStartIndex:O,dataEndIndex:x,updateId:S,graphicalItems:I,stackGroups:D,offset:C}));return z(z({formattedGraphicalItems:V,graphicalItems:I,offset:C,stackGroups:D},U),B)},m=function(v){function g(b){var w,O,x;return ise(this,g),x=sse(this,g,[b]),ae(x,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ae(x,"accessibilityManager",new Hoe),ae(x,"handleLegendBBoxUpdate",function(S){if(S){var j=x.state,_=j.dataStartIndex,P=j.dataEndIndex,N=j.updateId;x.setState(z({legendBBox:S},p({props:x.props,dataStartIndex:_,dataEndIndex:P,updateId:N},z(z({},x.state),{},{legendBBox:S}))))}}),ae(x,"handleReceiveSyncEvent",function(S,j,_){if(x.props.syncId===S){if(_===x.eventEmitterSymbol&&typeof x.props.syncMethod!="function")return;x.applySyncEvent(j)}}),ae(x,"handleBrushChange",function(S){var j=S.startIndex,_=S.endIndex;if(j!==x.state.dataStartIndex||_!==x.state.dataEndIndex){var P=x.state.updateId;x.setState(function(){return z({dataStartIndex:j,dataEndIndex:_},p({props:x.props,dataStartIndex:j,dataEndIndex:_,updateId:P},x.state))}),x.triggerSyncEvent({dataStartIndex:j,dataEndIndex:_})}}),ae(x,"handleMouseEnter",function(S){var j=x.getMouseInfo(S);if(j){var _=z(z({},j),{},{isTooltipActive:!0});x.setState(_),x.triggerSyncEvent(_);var P=x.props.onMouseEnter;oe(P)&&P(_,S)}}),ae(x,"triggeredAfterMouseMove",function(S){var j=x.getMouseInfo(S),_=j?z(z({},j),{},{isTooltipActive:!0}):{isTooltipActive:!1};x.setState(_),x.triggerSyncEvent(_);var P=x.props.onMouseMove;oe(P)&&P(_,S)}),ae(x,"handleItemMouseEnter",function(S){x.setState(function(){return{isTooltipActive:!0,activeItem:S,activePayload:S.tooltipPayload,activeCoordinate:S.tooltipPosition||{x:S.cx,y:S.cy}}})}),ae(x,"handleItemMouseLeave",function(){x.setState(function(){return{isTooltipActive:!1}})}),ae(x,"handleMouseMove",function(S){S.persist(),x.throttleTriggeredAfterMouseMove(S)}),ae(x,"handleMouseLeave",function(S){x.throttleTriggeredAfterMouseMove.cancel();var j={isTooltipActive:!1};x.setState(j),x.triggerSyncEvent(j);var _=x.props.onMouseLeave;oe(_)&&_(j,S)}),ae(x,"handleOuterEvent",function(S){var j=F6(S),_=ur(x.props,"".concat(j));if(j&&oe(_)){var P,N;/.*touch.*/i.test(j)?N=x.getMouseInfo(S.changedTouches[0]):N=x.getMouseInfo(S),_((P=N)!==null&&P!==void 0?P:{},S)}}),ae(x,"handleClick",function(S){var j=x.getMouseInfo(S);if(j){var _=z(z({},j),{},{isTooltipActive:!0});x.setState(_),x.triggerSyncEvent(_);var P=x.props.onClick;oe(P)&&P(_,S)}}),ae(x,"handleMouseDown",function(S){var j=x.props.onMouseDown;if(oe(j)){var _=x.getMouseInfo(S);j(_,S)}}),ae(x,"handleMouseUp",function(S){var j=x.props.onMouseUp;if(oe(j)){var _=x.getMouseInfo(S);j(_,S)}}),ae(x,"handleTouchMove",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&x.throttleTriggeredAfterMouseMove(S.changedTouches[0])}),ae(x,"handleTouchStart",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&x.handleMouseDown(S.changedTouches[0])}),ae(x,"handleTouchEnd",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&x.handleMouseUp(S.changedTouches[0])}),ae(x,"handleDoubleClick",function(S){var j=x.props.onDoubleClick;if(oe(j)){var _=x.getMouseInfo(S);j(_,S)}}),ae(x,"handleContextMenu",function(S){var j=x.props.onContextMenu;if(oe(j)){var _=x.getMouseInfo(S);j(_,S)}}),ae(x,"triggerSyncEvent",function(S){x.props.syncId!==void 0&&gm.emit(bm,x.props.syncId,S,x.eventEmitterSymbol)}),ae(x,"applySyncEvent",function(S){var j=x.props,_=j.layout,P=j.syncMethod,N=x.state.updateId,$=S.dataStartIndex,T=S.dataEndIndex;if(S.dataStartIndex!==void 0||S.dataEndIndex!==void 0)x.setState(z({dataStartIndex:$,dataEndIndex:T},p({props:x.props,dataStartIndex:$,dataEndIndex:T,updateId:N},x.state)));else if(S.activeTooltipIndex!==void 0){var L=S.chartX,R=S.chartY,I=S.activeTooltipIndex,D=x.state,B=D.offset,C=D.tooltipTicks;if(!B)return;if(typeof P=="function")I=P(C,S);else if(P==="value"){I=-1;for(var F=0;F=0){var ue,W;if(L.dataKey&&!L.allowDuplicatedCategory){var qe=typeof L.dataKey=="function"?le:"payload.".concat(L.dataKey.toString());ue=Wf(F,qe,I),W=U&&V&&Wf(V,qe,I)}else ue=F==null?void 0:F[R],W=U&&V&&V[R];if(ze||xe){var ge=S.props.activeIndex!==void 0?S.props.activeIndex:R;return[A.cloneElement(S,z(z(z({},P.props),gt),{},{activeIndex:ge})),null,null]}if(!ce(ue))return[G].concat(Ss(x.renderActivePoints({item:P,activePoint:ue,basePoint:W,childIndex:R,isRange:U})))}else{var tt,rt=(tt=x.getItemByXY(x.state.activeCoordinate))!==null&&tt!==void 0?tt:{graphicalItem:G},Ft=rt.graphicalItem,Hn=Ft.item,Qa=Hn===void 0?S:Hn,sc=Ft.childIndex,Ui=z(z(z({},P.props),gt),{},{activeIndex:sc});return[A.cloneElement(Qa,Ui),null,null]}return U?[G,null,null]:[G,null]}),ae(x,"renderCustomized",function(S,j,_){return A.cloneElement(S,z(z({key:"recharts-customized-".concat(_)},x.props),x.state))}),ae(x,"renderMap",{CartesianGrid:{handler:qc,once:!0},ReferenceArea:{handler:x.renderReferenceElement},ReferenceLine:{handler:qc},ReferenceDot:{handler:x.renderReferenceElement},XAxis:{handler:qc},YAxis:{handler:qc},Brush:{handler:x.renderBrush,once:!0},Bar:{handler:x.renderGraphicChild},Line:{handler:x.renderGraphicChild},Area:{handler:x.renderGraphicChild},Radar:{handler:x.renderGraphicChild},RadialBar:{handler:x.renderGraphicChild},Scatter:{handler:x.renderGraphicChild},Pie:{handler:x.renderGraphicChild},Funnel:{handler:x.renderGraphicChild},Tooltip:{handler:x.renderCursor,once:!0},PolarGrid:{handler:x.renderPolarGrid,once:!0},PolarAngleAxis:{handler:x.renderPolarAxis},PolarRadiusAxis:{handler:x.renderPolarAxis},Customized:{handler:x.renderCustomized}}),x.clipPathId="".concat((w=b.id)!==null&&w!==void 0?w:Ds("recharts"),"-clip"),x.throttleTriggeredAfterMouseMove=Kk(x.triggeredAfterMouseMove,(O=b.throttleDelay)!==null&&O!==void 0?O:1e3/60),x.state={},x}return cse(g,v),ose(g,[{key:"componentDidMount",value:function(){var w,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,O=w.children,x=w.data,S=w.height,j=w.layout,_=ar(O,Wt);if(_){var P=_.props.defaultIndex;if(!(typeof P!="number"||P<0||P>this.state.tooltipTicks.length-1)){var N=this.state.tooltipTicks[P]&&this.state.tooltipTicks[P].value,$=gg(this.state,x,P,N),T=this.state.tooltipTicks[P].coordinate,L=(this.state.offset.top+S)/2,R=j==="horizontal",I=R?{x:T,y:L}:{y:T,x:L},D=this.state.formattedGraphicalItems.find(function(C){var F=C.item;return F.type.name==="Scatter"});D&&(I=z(z({},I),D.props.points[P].tooltipPosition),$=D.props.points[P].tooltipPayload);var B={activeTooltipIndex:P,isTooltipActive:!0,activeLabel:N,activePayload:$,activeCoordinate:I};this.setState(B),this.renderCursor(_),this.accessibilityManager.setIndex(P)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var x,S;this.accessibilityManager.setDetails({offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0}})}return null}},{key:"componentDidUpdate",value:function(w){Gy([ar(w.children,Wt)],[ar(this.props.children,Wt)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=ar(this.props.children,Wt);if(w&&typeof w.props.shared=="boolean"){var O=w.props.shared?"axis":"item";return s.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var O=this.container,x=O.getBoundingClientRect(),S=hV(x),j={chartX:Math.round(w.pageX-S.left),chartY:Math.round(w.pageY-S.top)},_=x.width/O.offsetWidth||1,P=this.inRange(j.chartX,j.chartY,_);if(!P)return null;var N=this.state,$=N.xAxisMap,T=N.yAxisMap,L=this.getTooltipEventType(),R=zj(this.state,this.props.data,this.props.layout,P);if(L!=="axis"&&$&&T){var I=ei($).scale,D=ei(T).scale,B=I&&I.invert?I.invert(j.chartX):null,C=D&&D.invert?D.invert(j.chartY):null;return z(z({},j),{},{xValue:B,yValue:C},R)}return R?z(z({},j),R):null}},{key:"inRange",value:function(w,O){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,S=this.props.layout,j=w/x,_=O/x;if(S==="horizontal"||S==="vertical"){var P=this.state.offset,N=j>=P.left&&j<=P.left+P.width&&_>=P.top&&_<=P.top+P.height;return N?{x:j,y:_}:null}var $=this.state,T=$.angleAxisMap,L=$.radiusAxisMap;if(T&&L){var R=ei(T);return pO({x:j,y:_},R)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),x=ar(w,Wt),S={};x&&O==="axis"&&(x.props.trigger==="click"?S={onClick:this.handleClick}:S={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var j=Hf(this.props,this.handleOuterEvent);return z(z({},j),S)}},{key:"addListener",value:function(){gm.on(bm,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){gm.removeListener(bm,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,O,x){for(var S=this.state.formattedGraphicalItems,j=0,_=S.length;j<_;j++){var P=S[j];if(P.item===w||P.props.key===w.key||O===kn(P.item.type)&&x===P.childIndex)return P}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,O=this.state.offset,x=O.left,S=O.top,j=O.height,_=O.width;return k.createElement("defs",null,k.createElement("clipPath",{id:w},k.createElement("rect",{x,y:S,height:j,width:_})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(O,x){var S=Rj(x,2),j=S[0],_=S[1];return z(z({},O),{},ae({},j,_.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(O,x){var S=Rj(x,2),j=S[0],_=S[1];return z(z({},O),{},ae({},j,_.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(w){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(w){var O=this.state,x=O.formattedGraphicalItems,S=O.activeItem;if(x&&x.length)for(var j=0,_=x.length;j<_;j++){var P=x[j],N=P.props,$=P.item,T=$.type.defaultProps!==void 0?z(z({},$.type.defaultProps),$.props):$.props,L=kn($.type);if(L==="Bar"){var R=(N.data||[]).find(function(C){return Zee(w,C)});if(R)return{graphicalItem:P,payload:R}}else if(L==="RadialBar"){var I=(N.data||[]).find(function(C){return pO(w,C)});if(I)return{graphicalItem:P,payload:I}}else if(np(P,S)||ip(P,S)||Cu(P,S)){var D=Bre({graphicalItem:P,activeTooltipItem:S,itemData:T.data}),B=T.activeIndex===void 0?D:T.activeIndex;return{graphicalItem:z(z({},P),{},{childIndex:B}),payload:Cu(P,S)?T.data[D]:P.props.data[D]}}}return null}},{key:"render",value:function(){var w=this;if(!iw(this))return null;var O=this.props,x=O.children,S=O.className,j=O.width,_=O.height,P=O.style,N=O.compact,$=O.title,T=O.desc,L=Dj(O,Zoe),R=ne(L,!1);if(N)return k.createElement(bj,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},k.createElement(Qy,bo({},R,{width:j,height:_,title:$,desc:T}),this.renderClipPath(),ow(x,this.renderMap)));if(this.props.accessibilityLayer){var I,D;R.tabIndex=(I=this.props.tabIndex)!==null&&I!==void 0?I:0,R.role=(D=this.props.role)!==null&&D!==void 0?D:"application",R.onKeyDown=function(C){w.accessibilityManager.keyboardEvent(C)},R.onFocus=function(){w.accessibilityManager.focus()}}var B=this.parseEventsOfWrapper();return k.createElement(bj,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},k.createElement("div",bo({className:fe("recharts-wrapper",S),style:z({position:"relative",cursor:"default",width:j,height:_},P)},B,{ref:function(F){w.container=F}}),k.createElement(Qy,bo({},R,{width:j,height:_,title:$,desc:T,style:yse}),this.renderClipPath(),ow(x,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(A.Component);ae(m,"displayName",r),ae(m,"defaultProps",z({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},c)),ae(m,"getDerivedStateFromProps",function(v,g){var b=v.dataKey,w=v.data,O=v.children,x=v.width,S=v.height,j=v.layout,_=v.stackOffset,P=v.margin,N=g.dataStartIndex,$=g.dataEndIndex;if(g.updateId===void 0){var T=Fj(v);return z(z(z({},T),{},{updateId:0},p(z(z({props:v},T),{},{updateId:0}),g)),{},{prevDataKey:b,prevData:w,prevWidth:x,prevHeight:S,prevLayout:j,prevStackOffset:_,prevMargin:P,prevChildren:O})}if(b!==g.prevDataKey||w!==g.prevData||x!==g.prevWidth||S!==g.prevHeight||j!==g.prevLayout||_!==g.prevStackOffset||!Po(P,g.prevMargin)){var L=Fj(v),R={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},I=z(z({},zj(g,w,j)),{},{updateId:g.updateId+1}),D=z(z(z({},L),R),I);return z(z(z({},D),p(z({props:v},D),g)),{},{prevDataKey:b,prevData:w,prevWidth:x,prevHeight:S,prevLayout:j,prevStackOffset:_,prevMargin:P,prevChildren:O})}if(!Gy(O,g.prevChildren)){var B,C,F,U,V=ar(O,ds),H=V&&(B=(C=V.props)===null||C===void 0?void 0:C.startIndex)!==null&&B!==void 0?B:N,X=V&&(F=(U=V.props)===null||U===void 0?void 0:U.endIndex)!==null&&F!==void 0?F:$,ie=H!==N||X!==$,xe=!ce(w),ze=xe&&!ie?g.updateId:g.updateId+1;return z(z({updateId:ze},p(z(z({props:v},g),{},{updateId:ze,dataStartIndex:H,dataEndIndex:X}),g)),{},{prevChildren:O,dataStartIndex:H,dataEndIndex:X})}return null}),ae(m,"renderActiveDot",function(v,g,b){var w;return A.isValidElement(v)?w=A.cloneElement(v,g):oe(v)?w=v(g):w=k.createElement(Jh,g),k.createElement(ve,{className:"recharts-active-dot",key:b},w)});var y=A.forwardRef(function(g,b){return k.createElement(m,bo({},g,{ref:b}))});return y.displayName=m.displayName,y},bC=Fb({chartName:"BarChart",GraphicalChild:Bi,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Ni},{axisType:"yAxis",AxisComp:Ci}],formatAxisMap:IN}),Pse=Fb({chartName:"PieChart",GraphicalChild:Wn,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:rp},{axisType:"radiusAxis",AxisComp:ep}],formatAxisMap:uJ,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),xC=Fb({chartName:"AreaChart",GraphicalChild:ln,axisComponents:[{axisType:"xAxis",AxisComp:Ni},{axisType:"yAxis",AxisComp:Ci}],formatAxisMap:IN});const Uj=["#6366f1","#22c55e","#f59e0b","#ef4444","#8b5cf6","#06b6d4"],Ase=()=>d.jsx("div",{className:"stat-card",children:d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx("div",{className:"skeleton h-3 w-20"}),d.jsx("div",{className:"skeleton h-8 w-16"})]}),d.jsx("div",{className:"skeleton h-10 w-10 rounded-lg"})]})}),wm=()=>d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsx("div",{className:"skeleton h-4 w-32"})}),d.jsx("div",{className:"card-body",children:d.jsx("div",{className:"skeleton h-56 w-full rounded-lg"})})]}),Sm=({active:e,payload:t,label:r})=>!e||!t?null:d.jsxs("div",{className:"bg-gray-900 border border-gray-700 rounded-lg px-3 py-2 shadow-xl text-xs",children:[d.jsx("p",{className:"text-gray-400 mb-1",children:r}),t.map((n,i)=>d.jsxs("p",{className:"text-white font-medium",children:[d.jsx("span",{className:"inline-block w-2 h-2 rounded-full mr-1.5",style:{backgroundColor:n.color}}),n.name,": ",n.value]},i))]});function kse(){const{currentOrg:e}=er(),{data:t,isLoading:r}=ki({queryKey:["issues-stats",e==null?void 0:e.id],queryFn:()=>Al.stats(e.id),enabled:!!e}),{data:n,isLoading:i}=ki({queryKey:["report-summary",e==null?void 0:e.id],queryFn:()=>Fy.summary(e.id,14),enabled:!!e});if(!e)return d.jsx("div",{className:"flex-1 flex items-center justify-center p-8",children:d.jsxs("div",{className:"text-center max-w-md",children:[d.jsx("div",{className:"w-16 h-16 rounded-2xl bg-indigo-600/10 flex items-center justify-center mx-auto mb-4",children:d.jsx($a,{size:28,className:"text-indigo-400"})}),d.jsx("h2",{className:"text-xl font-semibold text-white mb-2",children:"Select an organization"}),d.jsx("p",{className:"text-gray-400 text-sm",children:"Choose an organization from the sidebar to view your dashboard and manage issues."})]})});const a=(t==null?void 0:t.data)||{},o=(n==null?void 0:n.data)||{},s=r||i,l=[{label:"Total Issues",value:a.total||0,icon:$0,color:"text-blue-400",bg:"bg-blue-500/10",trend:"+12%",up:!0},{label:"Analyzed",value:a.analyzed||0,icon:Ei,color:"text-emerald-400",bg:"bg-emerald-500/10",trend:"+8%",up:!0},{label:"PRs Created",value:a.pr_created||0,icon:yh,color:"text-purple-400",bg:"bg-purple-500/10",trend:"+15%",up:!0},{label:"Avg Confidence",value:a.avg_confidence?`${(a.avg_confidence*100).toFixed(0)}%`:"N/A",icon:jD,color:"text-amber-400",bg:"bg-amber-500/10",trend:"+3%",up:!0}],u=[{name:"Pending",value:a.pending||0},{name:"Analyzing",value:a.analyzing||0},{name:"Analyzed",value:a.analyzed||0},{name:"PR Created",value:a.pr_created||0},{name:"Error",value:a.error||0}].filter(c=>c.value>0),f=Object.entries(a.by_source||{}).map(([c,h])=>({name:c.replace("_"," ").replace(/\b\w/g,p=>p.toUpperCase()),value:h}));return d.jsxs("div",{className:"p-6 animate-fade-in",children:[d.jsxs("div",{className:"page-header",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"page-title",children:"Dashboard"}),d.jsx("p",{className:"page-subtitle",children:"Overview of your issue analysis pipeline"})]}),d.jsx("div",{className:"flex items-center gap-2",children:d.jsxs("span",{className:"badge badge-green",children:[d.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),"System operational"]})})]}),d.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:s?Array(4).fill(0).map((c,h)=>d.jsx(Ase,{},h)):l.map(c=>{const h=c.icon;return d.jsx("div",{className:"stat-card",children:d.jsxs("div",{className:"flex items-center justify-between relative z-10",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-xs font-medium text-gray-400 uppercase tracking-wide",children:c.label}),d.jsx("p",{className:"text-2xl font-bold text-white mt-1",children:c.value}),d.jsxs("div",{className:ye("flex items-center gap-1 mt-1.5 text-xs font-medium",c.up?"text-emerald-400":"text-red-400"),children:[c.up?d.jsx(TD,{size:12}):d.jsx(ND,{size:12}),c.trend,d.jsx("span",{className:"text-gray-500 font-normal ml-0.5",children:"vs last week"})]})]}),d.jsx("div",{className:ye("w-11 h-11 rounded-xl flex items-center justify-center",c.bg),children:d.jsx(h,{size:20,className:c.color})})]})},c.label)})}),d.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 mb-6",children:s?d.jsxs(d.Fragment,{children:[d.jsx(wm,{}),d.jsx(wm,{})]}):d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"card",children:[d.jsxs("div",{className:"card-header",children:[d.jsx("h3",{className:"text-sm font-semibold",children:"Issues Trend"}),d.jsx("span",{className:"badge badge-gray text-[10px]",children:"Last 14 days"})]}),d.jsx("div",{className:"card-body",children:d.jsx("div",{className:"h-56",children:d.jsx(kl,{width:"100%",height:"100%",children:d.jsxs(xC,{data:o.daily_breakdown||[],children:[d.jsxs("defs",{children:[d.jsxs("linearGradient",{id:"colorTotal",x1:"0",y1:"0",x2:"0",y2:"1",children:[d.jsx("stop",{offset:"5%",stopColor:"#6366f1",stopOpacity:.3}),d.jsx("stop",{offset:"95%",stopColor:"#6366f1",stopOpacity:0})]}),d.jsxs("linearGradient",{id:"colorAnalyzed",x1:"0",y1:"0",x2:"0",y2:"1",children:[d.jsx("stop",{offset:"5%",stopColor:"#22c55e",stopOpacity:.3}),d.jsx("stop",{offset:"95%",stopColor:"#22c55e",stopOpacity:0})]})]}),d.jsx(Ru,{strokeDasharray:"3 3",stroke:"#1e1e2a"}),d.jsx(Ni,{dataKey:"date",tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),d.jsx(Ci,{tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),d.jsx(Wt,{content:d.jsx(Sm,{})}),d.jsx(ln,{type:"monotone",dataKey:"total",stroke:"#6366f1",fill:"url(#colorTotal)",strokeWidth:2,name:"Total"}),d.jsx(ln,{type:"monotone",dataKey:"analyzed",stroke:"#22c55e",fill:"url(#colorAnalyzed)",strokeWidth:2,name:"Analyzed"})]})})})})]}),d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsx("h3",{className:"text-sm font-semibold",children:"Status Distribution"})}),d.jsx("div",{className:"card-body",children:d.jsx("div",{className:"h-56 flex items-center",children:u.length>0?d.jsx(kl,{width:"100%",height:"100%",children:d.jsxs(Pse,{children:[d.jsx(Wn,{data:u,cx:"50%",cy:"50%",innerRadius:55,outerRadius:80,paddingAngle:4,dataKey:"value",label:({name:c,percent:h})=>`${c} ${(h*100).toFixed(0)}%`,children:u.map((c,h)=>d.jsx(Fh,{fill:Uj[h%Uj.length]},c.name))}),d.jsx(Wt,{content:d.jsx(Sm,{})})]})}):d.jsxs("div",{className:"w-full text-center",children:[d.jsx(tu,{size:24,className:"text-gray-600 mx-auto mb-2"}),d.jsx("p",{className:"text-gray-500 text-sm",children:"No data yet"})]})})})]})]})}),s?d.jsx(wm,{}):d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsx("h3",{className:"text-sm font-semibold",children:"Issues by Source"})}),d.jsx("div",{className:"card-body",children:d.jsx("div",{className:"h-56",children:f.length>0?d.jsx(kl,{width:"100%",height:"100%",children:d.jsxs(bC,{data:f,layout:"vertical",children:[d.jsx(Ru,{strokeDasharray:"3 3",stroke:"#1e1e2a",horizontal:!1}),d.jsx(Ni,{type:"number",tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),d.jsx(Ci,{type:"category",dataKey:"name",tick:{fill:"#8888a0",fontSize:12},width:100,tickLine:!1,axisLine:!1}),d.jsx(Wt,{content:d.jsx(Sm,{})}),d.jsx(Bi,{dataKey:"value",fill:"#6366f1",radius:[0,6,6,0],barSize:24,name:"Issues"})]})}):d.jsx("div",{className:"h-full flex items-center justify-center",children:d.jsxs("div",{className:"text-center",children:[d.jsx(tu,{size:24,className:"text-gray-600 mx-auto mb-2"}),d.jsx("p",{className:"text-gray-500 text-sm",children:"No data yet"}),d.jsx("p",{className:"text-gray-600 text-xs mt-1",children:"Connect an integration to start tracking"})]})})})})]})]})}const Kc={pending:{badge:"badge-yellow",icon:mh,label:"Pending"},analyzing:{badge:"badge-blue",icon:Zt,label:"Analyzing"},analyzed:{badge:"badge-green",icon:Ei,label:"Analyzed"},pr_created:{badge:"badge-purple",icon:yh,label:"PR Created"},completed:{badge:"badge-gray",icon:Ei,label:"Completed"},error:{badge:"badge-red",icon:T0,label:"Error"}},Wj={critical:{badge:"badge-red",label:"Critical"},high:{badge:"badge-yellow",label:"High"},medium:{badge:"badge-blue",label:"Medium"},low:{badge:"badge-green",label:"Low"}},Ese={jira_cloud:"🔵",servicenow:"⚙️",zendesk:"💚",github:"🐙",gitlab:"🦊",tickethub:"🎫",generic:"📝"},Nse=()=>d.jsxs("div",{className:"flex items-center gap-4 px-5 py-4 table-row",children:[d.jsx("div",{className:"skeleton h-4 w-20"}),d.jsxs("div",{className:"flex-1 space-y-1.5",children:[d.jsx("div",{className:"skeleton h-4 w-3/4"}),d.jsx("div",{className:"skeleton h-3 w-1/4"})]}),d.jsx("div",{className:"skeleton h-5 w-16 rounded-md"})]});function Cse(){var c,h;const{currentOrg:e}=er(),[t,r]=A.useState({status:"",source:""}),[n,i]=A.useState(""),[a,o]=A.useState(!1),{data:s,isLoading:l}=ki({queryKey:["issues",e==null?void 0:e.id,t],queryFn:()=>Al.list(e.id,t),enabled:!!e});if(!e)return d.jsx("div",{className:"flex items-center justify-center h-full p-8",children:d.jsx("p",{className:"text-gray-500",children:"Select an organization"})});const u=((s==null?void 0:s.data)||[]).filter(p=>{var m,y;return!n||((m=p.title)==null?void 0:m.toLowerCase().includes(n.toLowerCase()))||((y=p.external_key)==null?void 0:y.toLowerCase().includes(n.toLowerCase()))}),f={};return((s==null?void 0:s.data)||[]).forEach(p=>{f[p.status]=(f[p.status]||0)+1}),d.jsxs("div",{className:"p-6 animate-fade-in",children:[d.jsxs("div",{className:"page-header",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"page-title",children:"Issues"}),d.jsxs("p",{className:"page-subtitle",children:[((c=s==null?void 0:s.data)==null?void 0:c.length)||0," total issues"]})]}),d.jsxs("button",{className:"btn btn-primary",children:[d.jsx(Ma,{size:16}),"New Issue"]})]}),d.jsxs("div",{className:"flex items-center gap-1 mb-4 overflow-x-auto pb-1",children:[d.jsxs("button",{onClick:()=>r({...t,status:""}),className:ye("badge cursor-pointer transition-all",t.status?"badge-gray hover:bg-gray-700/50":"badge-indigo"),children:["All ",((h=s==null?void 0:s.data)==null?void 0:h.length)||0]}),Object.entries(Kc).map(([p,m])=>{const y=f[p]||0;return!y&&p!=="pending"?null:d.jsxs("button",{onClick:()=>r({...t,status:t.status===p?"":p}),className:ye("badge cursor-pointer transition-all",t.status===p?m.badge:"badge-gray hover:bg-gray-700/50"),children:[m.label," ",y]},p)})]}),d.jsxs("div",{className:"card mb-4",children:[d.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[d.jsx(cf,{size:16,className:"text-gray-500"}),d.jsx("input",{value:n,onChange:p=>i(p.target.value),placeholder:"Search issues by title or key...",className:"flex-1 bg-transparent text-sm outline-none placeholder:text-gray-500"}),d.jsxs("button",{onClick:()=>o(!a),className:ye("btn btn-sm btn-ghost",a&&"text-indigo-400"),children:[d.jsx(xD,{size:14}),"Filters"]})]}),a&&d.jsxs("div",{className:"px-4 py-3 border-t border-gray-800/50 flex items-center gap-3 animate-slide-up",children:[d.jsxs("select",{value:t.status,onChange:p=>r({...t,status:p.target.value}),className:"input-sm input w-36",children:[d.jsx("option",{value:"",children:"All Status"}),Object.entries(Kc).map(([p,m])=>d.jsx("option",{value:p,children:m.label},p))]}),d.jsxs("select",{value:t.source,onChange:p=>r({...t,source:p.target.value}),className:"input-sm input w-36",children:[d.jsx("option",{value:"",children:"All Sources"}),d.jsx("option",{value:"jira_cloud",children:"JIRA"}),d.jsx("option",{value:"servicenow",children:"ServiceNow"}),d.jsx("option",{value:"zendesk",children:"Zendesk"}),d.jsx("option",{value:"github",children:"GitHub"}),d.jsx("option",{value:"gitlab",children:"GitLab"}),d.jsx("option",{value:"tickethub",children:"TicketHub"})]}),(t.status||t.source)&&d.jsx("button",{onClick:()=>r({status:"",source:""}),className:"btn btn-sm btn-ghost text-red-400",children:"Clear"})]})]}),d.jsxs("div",{className:"card overflow-hidden",children:[d.jsxs("div",{className:"flex items-center gap-4 px-5 py-3 border-b border-gray-800/50 text-xs font-medium text-gray-500 uppercase tracking-wide",children:[d.jsx("div",{className:"w-24",children:"Key"}),d.jsx("div",{className:"flex-1",children:"Title"}),d.jsx("div",{className:"w-24",children:"Status"}),d.jsx("div",{className:"w-20",children:"Priority"}),d.jsx("div",{className:"w-20",children:"Confidence"}),d.jsx("div",{className:"w-8"})]}),l?Array(5).fill(0).map((p,m)=>d.jsx(Nse,{},m)):u.length===0?d.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[d.jsx("div",{className:"w-14 h-14 rounded-2xl bg-gray-800/50 flex items-center justify-center mb-3",children:d.jsx($0,{size:24,className:"text-gray-600"})}),d.jsx("p",{className:"text-gray-400 font-medium",children:"No issues found"}),d.jsx("p",{className:"text-gray-600 text-sm mt-1",children:"Issues from your integrations will appear here"})]}):u.map(p=>{var g;const m=Kc[p.status]||Kc.pending,y=Wj[p.priority]||Wj.medium,v=m.icon;return d.jsxs(Ea,{to:`/issues/${p.id}`,className:"flex items-center gap-4 px-5 py-3.5 table-row group",children:[d.jsx("div",{className:"w-24",children:d.jsx("span",{className:"font-mono text-xs text-indigo-400",children:p.external_key||`#${p.id}`})}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"text-sm font-medium truncate group-hover:text-white transition-colors",children:p.title}),d.jsx("p",{className:"text-xs text-gray-500 mt-0.5 flex items-center gap-2",children:d.jsxs("span",{children:[Ese[p.source]||"📝"," ",(g=p.source)==null?void 0:g.replace("_"," ")]})})]}),d.jsx("div",{className:"w-24",children:d.jsxs("span",{className:ye("badge text-[10px]",m.badge),children:[d.jsx(v,{size:10,className:p.status==="analyzing"?"animate-spin":""}),m.label]})}),d.jsx("div",{className:"w-20",children:d.jsx("span",{className:ye("badge text-[10px]",y.badge),children:y.label})}),d.jsx("div",{className:"w-20",children:p.confidence?d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("div",{className:"flex-1 bg-gray-800 rounded-full h-1.5",children:d.jsx("div",{className:"bg-indigo-500 h-1.5 rounded-full transition-all",style:{width:`${p.confidence*100}%`}})}),d.jsxs("span",{className:"text-[10px] text-gray-400 font-mono w-7 text-right",children:[(p.confidence*100).toFixed(0),"%"]})]}):d.jsx("span",{className:"text-xs text-gray-600",children:"—"})}),d.jsx("div",{className:"w-8",children:d.jsx(Uy,{size:14,className:"text-gray-600 group-hover:text-gray-400 transition-colors"})})]},p.id)})]})]})}const Hj={pending:{badge:"badge-yellow",icon:mh,label:"Pending"},analyzing:{badge:"badge-blue",icon:Zt,label:"Analyzing"},analyzed:{badge:"badge-green",icon:Ei,label:"Analyzed"},pr_created:{badge:"badge-purple",icon:yh,label:"PR Created"},completed:{badge:"badge-gray",icon:Ei,label:"Completed"},error:{badge:"badge-red",icon:T0,label:"Error"}},Tse=()=>d.jsxs("div",{className:"p-6 animate-fade-in",children:[d.jsx("div",{className:"skeleton h-4 w-24 mb-6"}),d.jsxs("div",{className:"flex items-start justify-between mb-6",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"skeleton h-6 w-20"}),d.jsx("div",{className:"skeleton h-5 w-16 rounded-md"})]}),d.jsx("div",{className:"skeleton h-7 w-96"}),d.jsx("div",{className:"skeleton h-4 w-48"})]}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx("div",{className:"skeleton h-9 w-28 rounded-lg"}),d.jsx("div",{className:"skeleton h-9 w-28 rounded-lg"})]})]}),d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-5",children:[d.jsxs("div",{className:"lg:col-span-2 space-y-5",children:[d.jsx("div",{className:"card card-body",children:d.jsx("div",{className:"skeleton h-32 w-full rounded-lg"})}),d.jsx("div",{className:"card card-body",children:d.jsx("div",{className:"skeleton h-48 w-full rounded-lg"})})]}),d.jsxs("div",{className:"space-y-5",children:[d.jsx("div",{className:"card card-body",children:d.jsx("div",{className:"skeleton h-24 w-full rounded-lg"})}),d.jsx("div",{className:"card card-body",children:d.jsx("div",{className:"skeleton h-32 w-full rounded-lg"})})]})]})]});function $se(){var O,x,S,j;const{id:e}=AM(),{currentOrg:t}=er(),r=lh(),[n,i]=A.useState("analysis"),[a,o]=A.useState(""),[s,l]=A.useState(!1),{data:u,isLoading:f}=ki({queryKey:["issue",t==null?void 0:t.id,e],queryFn:()=>Al.get(t.id,e),enabled:!!t}),c=Pl({mutationFn:()=>Al.reanalyze(t.id,e),onSuccess:()=>r.invalidateQueries(["issue",t==null?void 0:t.id,e])}),h=Pl({mutationFn:_=>Al.addComment(t.id,e,{content:_}),onSuccess:()=>{r.invalidateQueries(["issue",t==null?void 0:t.id,e]),o("")}}),p=_=>{navigator.clipboard.writeText(_),l(!0),setTimeout(()=>l(!1),2e3)};if(!t)return null;if(f)return d.jsx(Tse,{});const m=u==null?void 0:u.data;if(!m)return d.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-8",children:[d.jsx(tu,{size:40,className:"text-gray-600 mb-3"}),d.jsx("p",{className:"text-gray-400 font-medium",children:"Issue not found"}),d.jsx(Ea,{to:"/issues",className:"text-indigo-400 text-sm mt-2 hover:underline",children:"← Back to Issues"})]});const y=Hj[m.status]||Hj.pending,v=y.icon,g=m.confidence?(m.confidence*100).toFixed(0):null,b=m.confidence>.8?"text-emerald-400":m.confidence>.5?"text-amber-400":"text-red-400",w=[{id:"analysis",label:"Analysis",icon:Bf},{id:"code",label:"Suggested Fix",icon:Wy},{id:"comments",label:"Comments",icon:nD}];return d.jsxs("div",{className:"p-6 animate-fade-in",children:[d.jsxs(Ea,{to:"/issues",className:"inline-flex items-center gap-1.5 text-sm text-gray-400 hover:text-white transition-colors mb-5",children:[d.jsx(c4,{size:14}),"Back to Issues"]}),d.jsxs("div",{className:"flex items-start justify-between mb-6",children:[d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[d.jsx("span",{className:"font-mono text-lg text-indigo-400 font-semibold",children:m.external_key||`#${m.id}`}),d.jsxs("span",{className:ye("badge",y.badge),children:[d.jsx(v,{size:12,className:m.status==="analyzing"?"animate-spin":""}),y.label]}),m.priority&&d.jsx("span",{className:ye("badge",m.priority==="critical"?"badge-red":m.priority==="high"?"badge-yellow":m.priority==="medium"?"badge-blue":"badge-green"),children:m.priority})]}),d.jsx("h1",{className:"text-xl font-semibold text-white",children:m.title}),d.jsxs("div",{className:"flex items-center gap-4 mt-2 text-xs text-gray-500",children:[d.jsxs("span",{className:"flex items-center gap-1",children:[d.jsx(y4,{size:12})," ",new Date(m.created_at).toLocaleDateString()]}),d.jsxs("span",{children:["Source: ",(O=m.source)==null?void 0:O.replace("_"," ")]})]})]}),d.jsxs("div",{className:"flex gap-2",children:[m.external_url&&d.jsxs("a",{href:m.external_url,target:"_blank",rel:"noopener noreferrer",className:"btn btn-secondary btn-sm",children:[d.jsx(U1,{size:14}),"Original"]}),d.jsxs("button",{onClick:()=>c.mutate(),disabled:c.isPending,className:"btn btn-primary btn-sm",children:[c.isPending?d.jsx(Zt,{size:14,className:"animate-spin"}):d.jsx(A2,{size:14}),"Re-analyze"]})]})]}),d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-5",children:[d.jsxs("div",{className:"lg:col-span-2 space-y-5",children:[d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsxs("h3",{className:"text-sm font-semibold flex items-center gap-2",children:[d.jsx(L4,{size:14,className:"text-gray-500"}),"Description"]})}),d.jsx("div",{className:"card-body",children:d.jsx("pre",{className:"whitespace-pre-wrap text-sm text-gray-300 font-sans leading-relaxed",children:m.description||"No description provided."})})]}),d.jsxs("div",{className:"card overflow-hidden",children:[d.jsx("div",{className:"flex items-center gap-0 border-b border-gray-800/50 px-1",children:w.map(_=>{const P=_.icon;return d.jsxs("button",{onClick:()=>i(_.id),className:ye("flex items-center gap-2 px-4 py-3 text-sm font-medium border-b-2 transition-all -mb-px",n===_.id?"border-indigo-500 text-indigo-400":"border-transparent text-gray-500 hover:text-gray-300"),children:[d.jsx(P,{size:14}),_.label]},_.id)})}),d.jsxs("div",{className:"card-body",children:[n==="analysis"&&d.jsx("div",{className:"space-y-4 animate-fade-in",children:m.root_cause?d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"p-4 rounded-lg bg-emerald-500/5 border border-emerald-500/10",children:[d.jsxs("h4",{className:"text-sm font-semibold text-emerald-400 mb-2 flex items-center gap-2",children:[d.jsx(G4,{size:14}),"Root Cause Analysis"]}),d.jsx("pre",{className:"whitespace-pre-wrap text-sm text-gray-300 font-sans leading-relaxed",children:m.root_cause})]}),((x=m.affected_files)==null?void 0:x.length)>0&&d.jsxs("div",{children:[d.jsxs("h4",{className:"text-sm font-semibold text-gray-300 mb-2 flex items-center gap-2",children:[d.jsx(F4,{size:14,className:"text-gray-500"}),"Affected Files"]}),d.jsx("div",{className:"flex flex-wrap gap-1.5",children:m.affected_files.map(_=>d.jsx("span",{className:"badge badge-gray font-mono text-[11px]",children:_},_))})]})]}):d.jsxs("div",{className:"text-center py-8",children:[d.jsx(Bf,{size:28,className:"text-gray-600 mx-auto mb-2"}),d.jsx("p",{className:"text-gray-500 text-sm",children:"No analysis available yet"}),d.jsx("p",{className:"text-gray-600 text-xs mt-1",children:'Click "Re-analyze" to start AI analysis'})]})}),n==="code"&&d.jsx("div",{className:"animate-fade-in",children:m.suggested_fix?d.jsxs("div",{className:"relative",children:[d.jsx("button",{onClick:()=>p(m.suggested_fix),className:"absolute top-2 right-2 btn btn-ghost btn-sm text-gray-500",children:s?d.jsx(C0,{size:14,className:"text-emerald-400"}):d.jsx(Hy,{size:14})}),d.jsx("pre",{className:"whitespace-pre-wrap text-sm text-gray-300 font-mono bg-gray-950 p-4 rounded-lg border border-gray-800 overflow-x-auto leading-relaxed",children:m.suggested_fix})]}):d.jsxs("div",{className:"text-center py-8",children:[d.jsx(Wy,{size:28,className:"text-gray-600 mx-auto mb-2"}),d.jsx("p",{className:"text-gray-500 text-sm",children:"No suggested fix available"})]})}),n==="comments"&&d.jsxs("div",{className:"space-y-4 animate-fade-in",children:[((S=m.comments)==null?void 0:S.length)>0?m.comments.map((_,P)=>{var N,$;return d.jsxs("div",{className:"flex gap-3",children:[d.jsx("div",{className:"w-7 h-7 rounded-lg bg-gray-800 flex items-center justify-center flex-shrink-0 text-xs font-medium text-gray-400",children:(($=(N=_.author)==null?void 0:N[0])==null?void 0:$.toUpperCase())||"?"}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[d.jsx("span",{className:"text-sm font-medium text-gray-300",children:_.author||"System"}),d.jsx("span",{className:"text-xs text-gray-600",children:new Date(_.created_at).toLocaleString()})]}),d.jsx("p",{className:"text-sm text-gray-400",children:_.content})]})]},P)}):d.jsx("p",{className:"text-sm text-gray-500 text-center py-4",children:"No comments yet"}),d.jsxs("div",{className:"flex items-center gap-2 pt-3 border-t border-gray-800/50",children:[d.jsx("input",{value:a,onChange:_=>o(_.target.value),placeholder:"Add a comment...",className:"input flex-1",onKeyDown:_=>_.key==="Enter"&&a.trim()&&h.mutate(a)}),d.jsx("button",{onClick:()=>a.trim()&&h.mutate(a),disabled:!a.trim()||h.isPending,className:"btn btn-primary btn-sm",children:h.isPending?d.jsx(Zt,{size:14,className:"animate-spin"}):d.jsx(pD,{size:14})})]})]})]})]})]}),d.jsxs("div",{className:"space-y-5",children:[g&&d.jsxs("div",{className:"card card-body text-center",children:[d.jsxs("div",{className:"relative w-24 h-24 mx-auto mb-3",children:[d.jsxs("svg",{className:"w-full h-full -rotate-90",viewBox:"0 0 36 36",children:[d.jsx("circle",{cx:"18",cy:"18",r:"16",fill:"none",stroke:"#1e1e2a",strokeWidth:"2.5"}),d.jsx("circle",{cx:"18",cy:"18",r:"16",fill:"none",stroke:"currentColor",className:b,strokeWidth:"2.5",strokeLinecap:"round",strokeDasharray:`${m.confidence*100}, 100`})]}),d.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:d.jsxs("span",{className:ye("text-xl font-bold",b),children:[g,"%"]})})]}),d.jsx("p",{className:"text-xs font-medium text-gray-400 uppercase tracking-wide",children:"AI Confidence"})]}),m.pr_url&&d.jsxs("div",{className:"card overflow-hidden",children:[d.jsx("div",{className:"card-header bg-purple-500/5",children:d.jsxs("h3",{className:"text-sm font-semibold flex items-center gap-2 text-purple-400",children:[d.jsx(yh,{size:14}),"Pull Request"]})}),d.jsxs("div",{className:"card-body space-y-3",children:[m.pr_branch&&d.jsxs("div",{children:[d.jsx("p",{className:"text-xs text-gray-500 mb-1",children:"Branch"}),d.jsx("span",{className:"badge badge-gray font-mono text-[11px]",children:m.pr_branch})]}),d.jsxs("a",{href:m.pr_url,target:"_blank",rel:"noopener noreferrer",className:"btn btn-primary w-full btn-sm",children:[d.jsx(U1,{size:14}),"View Pull Request"]})]})]}),((j=m.labels)==null?void 0:j.length)>0&&d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsxs("h3",{className:"text-sm font-semibold flex items-center gap-2",children:[d.jsx(SD,{size:14,className:"text-gray-500"}),"Labels"]})}),d.jsx("div",{className:"card-body",children:d.jsx("div",{className:"flex flex-wrap gap-1.5",children:m.labels.map(_=>d.jsx("span",{className:"badge badge-indigo",children:_},_))})})]}),d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsxs("h3",{className:"text-sm font-semibold flex items-center gap-2",children:[d.jsx(mh,{size:14,className:"text-gray-500"}),"Timeline"]})}),d.jsxs("div",{className:"card-body space-y-3",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-2 h-2 rounded-full bg-indigo-500"}),d.jsxs("div",{className:"flex-1",children:[d.jsx("p",{className:"text-xs text-gray-400",children:"Created"}),d.jsx("p",{className:"text-sm",children:new Date(m.created_at).toLocaleString()})]})]}),m.analysis_completed_at&&d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-2 h-2 rounded-full bg-emerald-500"}),d.jsxs("div",{className:"flex-1",children:[d.jsx("p",{className:"text-xs text-gray-400",children:"Analyzed"}),d.jsx("p",{className:"text-sm",children:new Date(m.analysis_completed_at).toLocaleString()})]})]}),m.pr_url&&d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-2 h-2 rounded-full bg-purple-500"}),d.jsxs("div",{className:"flex-1",children:[d.jsx("p",{className:"text-xs text-gray-400",children:"PR Created"}),d.jsx("p",{className:"text-sm",children:"Pull request generated"})]})]})]})]})]})]})]})}const Vr={tickethub:{name:"TicketHub",color:"from-indigo-600 to-indigo-700",icon:d.jsx(H1,{size:18}),desc:"Internal ticket management system",fields:[{id:"base_url",label:"TicketHub URL",placeholder:"https://tickethub.example.com",type:"url"},{id:"api_key",label:"API Key",placeholder:"Your TicketHub API key",type:"password"},{id:"webhook_secret",label:"Webhook Secret",placeholder:"Shared secret for webhook validation",type:"password"}]},gitea:{name:"Gitea",color:"from-green-600 to-green-700",icon:d.jsx(Hp,{size:18}),desc:"Self-hosted Git service for code repositories",fields:[{id:"base_url",label:"Gitea URL",placeholder:"https://gitea.example.com",type:"url"},{id:"api_key",label:"Access Token",placeholder:"Personal access token",type:"password"},{id:"repository",label:"Default Repository",placeholder:"owner/repo",type:"text"}]},github:{name:"GitHub",color:"from-gray-700 to-gray-800",icon:d.jsx(Hp,{size:18}),desc:"GitHub issues and repositories",fields:[{id:"api_key",label:"Personal Access Token",placeholder:"ghp_...",type:"password"},{id:"repository",label:"Repository",placeholder:"owner/repo",type:"text"}]},jira_cloud:{name:"JIRA Cloud",color:"from-blue-600 to-blue-700",icon:d.jsx(H1,{size:18}),desc:"Atlassian JIRA Cloud integration",fields:[{id:"base_url",label:"JIRA URL",placeholder:"https://your-domain.atlassian.net",type:"url"},{id:"email",label:"Email",placeholder:"your-email@company.com",type:"email"},{id:"api_key",label:"API Token",placeholder:"Your Atlassian API token",type:"password"},{id:"project_key",label:"Project Key",placeholder:"PROJ",type:"text"}]},servicenow:{name:"ServiceNow",color:"from-emerald-600 to-emerald-700",icon:d.jsx(yD,{size:18}),desc:"ServiceNow ITSM platform",fields:[{id:"base_url",label:"Instance URL",placeholder:"https://your-instance.service-now.com",type:"url"},{id:"username",label:"Username",placeholder:"admin",type:"text"},{id:"api_key",label:"Password",placeholder:"••••••••",type:"password"}]},gitlab:{name:"GitLab",color:"from-orange-600 to-orange-700",icon:d.jsx(Hp,{size:18}),desc:"GitLab issues and merge requests",fields:[{id:"base_url",label:"GitLab URL",placeholder:"https://gitlab.com",type:"url"},{id:"api_key",label:"Personal Access Token",placeholder:"glpat-...",type:"password"},{id:"project_id",label:"Project ID",placeholder:"12345",type:"text"}]}};function Mse(){const{currentOrg:e}=er(),t=lh(),[r,n]=A.useState(!1),[i,a]=A.useState(null),[o,s]=A.useState({}),[l,u]=A.useState({}),[f,c]=A.useState(null),{data:h,isLoading:p}=ki({queryKey:["integrations",e==null?void 0:e.id],queryFn:()=>Ec.list(e.id),enabled:!!e}),m=Pl({mutationFn:x=>Ec.create(e.id,x),onSuccess:()=>{t.invalidateQueries(["integrations"]),n(!1),a(null),s({})}}),y=Pl({mutationFn:x=>Ec.test(e.id,x),onSuccess:x=>c({success:!0,message:"Connection successful!"}),onError:x=>{var S,j;return c({success:!1,message:((j=(S=x.response)==null?void 0:S.data)==null?void 0:j.detail)||"Connection failed"})}}),v=Pl({mutationFn:x=>Ec.delete(e.id,x),onSuccess:()=>t.invalidateQueries(["integrations"])});if(!e)return d.jsx("div",{className:"flex items-center justify-center h-full p-8",children:d.jsx("p",{className:"text-gray-500",children:"Select an organization"})});const g=(h==null?void 0:h.data)||[],b=x=>{a(x),s({platform:x,name:Vr[x].name}),n(!0),c(null)},w=x=>{x.preventDefault();const S={...o};delete S.platform,delete S.name,delete S.base_url,m.mutate({type:o.platform,name:o.name,base_url:o.base_url||null,api_key:o.api_key||null,config:S})},O=async()=>{c(null);const j=Vr[i].fields.filter(_=>_.id==="base_url"||_.id==="api_key").filter(_=>!o[_.id]);if(j.length>0){c({success:!1,message:`Please fill in: ${j.map(_=>_.label).join(", ")}`});return}c({success:!0,message:"Configuration looks valid!"})};return d.jsxs("div",{className:"p-6 animate-fade-in",children:[d.jsx("div",{className:"page-header",children:d.jsxs("div",{children:[d.jsx("h1",{className:"page-title",children:"Integrations"}),d.jsx("p",{className:"page-subtitle",children:"Connect your tools to start analyzing issues"})]})}),g.length>0&&d.jsxs("div",{className:"mb-8",children:[d.jsx("h2",{className:"text-sm font-semibold text-gray-400 uppercase tracking-wide mb-3",children:"Active Connections"}),d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:g.map(x=>{const S=Vr[x.type]||{name:x.type,color:"from-gray-600 to-gray-700",icon:d.jsx(P2,{size:18})};return d.jsxs("div",{className:"card overflow-hidden",children:[d.jsx("div",{className:ye("h-1.5 bg-gradient-to-r",S.color)}),d.jsxs("div",{className:"p-5",children:[d.jsxs("div",{className:"flex items-start justify-between mb-3",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:ye("w-10 h-10 rounded-xl bg-gradient-to-br flex items-center justify-center text-white",S.color),children:S.icon}),d.jsxs("div",{children:[d.jsx("h3",{className:"font-semibold text-white",children:x.name||S.name}),d.jsx("p",{className:"text-xs text-gray-500",children:S.name})]})]}),d.jsx("span",{className:ye("badge",x.is_active?"badge-green":"badge-red"),children:x.is_active?d.jsxs(d.Fragment,{children:[d.jsx(Ei,{size:10})," Active"]}):d.jsxs(d.Fragment,{children:[d.jsx(T0,{size:10})," Inactive"]})})]}),x.base_url&&d.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-500 font-mono mb-3",children:[d.jsx(Q4,{size:12}),d.jsx("span",{className:"truncate",children:x.base_url})]}),d.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-600 mb-3",children:[d.jsxs("span",{children:["Issues processed: ",x.issues_processed||0]}),x.last_sync_at&&d.jsxs("span",{className:"text-gray-700",children:["• Last sync: ",new Date(x.last_sync_at).toLocaleDateString()]})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs("button",{onClick:()=>y.mutate(x.id),disabled:y.isPending,className:"btn btn-secondary btn-sm flex-1",children:[y.isPending?d.jsx(Zt,{size:12,className:"animate-spin"}):d.jsx(W1,{size:12}),"Test"]}),d.jsxs("button",{className:"btn btn-secondary btn-sm flex-1",children:[d.jsx(k2,{size:12})," Configure"]}),d.jsx("button",{onClick:()=>v.mutate(x.id),disabled:v.isPending,className:"btn btn-danger btn-sm btn-icon",children:v.isPending?d.jsx(Zt,{size:12,className:"animate-spin"}):d.jsx(N2,{size:12})})]})]})]},x.id)})})]}),d.jsxs("div",{children:[d.jsx("h2",{className:"text-sm font-semibold text-gray-400 uppercase tracking-wide mb-3",children:"Available Platforms"}),d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:Object.entries(Vr).map(([x,S])=>{const j=g.some(_=>_.type===x);return d.jsxs("div",{className:"card-hover p-5",children:[d.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[d.jsx("div",{className:ye("w-10 h-10 rounded-xl bg-gradient-to-br flex items-center justify-center text-white",S.color),children:S.icon}),d.jsxs("div",{children:[d.jsx("h3",{className:"font-semibold text-white",children:S.name}),d.jsx("p",{className:"text-xs text-gray-500",children:S.desc})]})]}),d.jsx("button",{onClick:()=>b(x),className:ye("btn w-full btn-sm",j?"btn-secondary":"btn-primary"),children:j?d.jsxs(d.Fragment,{children:[d.jsx(Ei,{size:14})," Connected"]}):d.jsxs(d.Fragment,{children:[d.jsx(Ma,{size:14})," Connect"]})})]},x)})})]}),r&&i&&d.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center z-50 animate-fade-in",children:d.jsxs("div",{className:"bg-gray-900 rounded-xl border border-gray-800 w-full max-w-lg mx-4 shadow-2xl",children:[d.jsx("div",{className:ye("h-1.5 rounded-t-xl bg-gradient-to-r",Vr[i].color)}),d.jsxs("div",{className:"p-6",children:[d.jsxs("div",{className:"flex items-center justify-between mb-6",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:ye("w-10 h-10 rounded-xl bg-gradient-to-br flex items-center justify-center text-white",Vr[i].color),children:Vr[i].icon}),d.jsxs("div",{children:[d.jsxs("h2",{className:"text-lg font-semibold text-white",children:["Connect ",Vr[i].name]}),d.jsx("p",{className:"text-xs text-gray-500",children:Vr[i].desc})]})]}),d.jsx("button",{onClick:()=>n(!1),className:"text-gray-500 hover:text-gray-300",children:d.jsx(BD,{size:20})})]}),d.jsxs("form",{onSubmit:w,className:"space-y-4",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Display Name"}),d.jsx("input",{type:"text",value:o.name||"",onChange:x=>s({...o,name:x.target.value}),className:"input",placeholder:"My Integration"})]}),Vr[i].fields.map(x=>d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:x.label}),d.jsxs("div",{className:"relative",children:[d.jsx("input",{type:x.type==="password"&&!l[x.id]?"password":"text",value:o[x.id]||"",onChange:S=>s({...o,[x.id]:S.target.value}),className:ye("input",x.type==="password"&&"pr-10"),placeholder:x.placeholder}),x.type==="password"&&d.jsx("button",{type:"button",onClick:()=>u({...l,[x.id]:!l[x.id]}),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-500 hover:text-gray-300",children:l[x.id]?d.jsx(qy,{size:14}):d.jsx(Uf,{size:14})})]})]},x.id)),f&&d.jsxs("div",{className:ye("flex items-center gap-2 p-3 rounded-lg text-sm",f.success?"bg-green-900/30 text-green-400 border border-green-800":"bg-red-900/30 text-red-400 border border-red-800"),children:[f.success?d.jsx(C0,{size:16}):d.jsx(tu,{size:16}),f.message]}),d.jsxs("div",{className:"flex gap-3 pt-4 border-t border-gray-800",children:[d.jsxs("button",{type:"button",onClick:O,className:"btn btn-secondary flex-1",children:[d.jsx(W1,{size:14})," Test Connection"]}),d.jsxs("button",{type:"submit",disabled:m.isPending,className:"btn btn-primary flex-1",children:[m.isPending?d.jsx(Zt,{size:14,className:"animate-spin"}):d.jsx(ec,{size:14}),"Save Integration"]})]})]})]})]})})]})}const Om={owner:{label:"Owner",badge:"badge-yellow",icon:E4},admin:{label:"Admin",badge:"badge-red",icon:E2},member:{label:"Member",badge:"badge-blue",icon:RD},viewer:{label:"Viewer",badge:"badge-gray",icon:Uf}},Ise=()=>d.jsxs("div",{className:"flex items-center gap-4 px-5 py-4 table-row",children:[d.jsx("div",{className:"skeleton w-9 h-9 rounded-lg"}),d.jsxs("div",{className:"flex-1 space-y-1.5",children:[d.jsx("div",{className:"skeleton h-4 w-32"}),d.jsx("div",{className:"skeleton h-3 w-48"})]}),d.jsx("div",{className:"skeleton h-5 w-16 rounded-md"})]});function Rse(){const{currentOrg:e}=er(),{data:t,isLoading:r}=ki({queryKey:["org-members",e==null?void 0:e.id],queryFn:()=>ph.members(e.id),enabled:!!e});if(!e)return d.jsx("div",{className:"flex items-center justify-center h-full p-8",children:d.jsx("p",{className:"text-gray-500",children:"Select an organization"})});const n=(t==null?void 0:t.data)||[],i={};return n.forEach(a=>{const o=a.role||"member";i[o]||(i[o]=[]),i[o].push(a)}),d.jsxs("div",{className:"p-6 animate-fade-in",children:[d.jsxs("div",{className:"page-header",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"page-title",children:"Team"}),d.jsxs("p",{className:"page-subtitle",children:[n.length," member",n.length!==1?"s":""," in ",e.name]})]}),d.jsxs("button",{className:"btn btn-primary",children:[d.jsx(Ma,{size:16})," Invite Member"]})]}),d.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-6",children:Object.entries(Om).map(([a,o])=>{var u;const s=o.icon,l=((u=i[a])==null?void 0:u.length)||0;return d.jsx("div",{className:"stat-card",children:d.jsxs("div",{className:"flex items-center justify-between relative z-10",children:[d.jsxs("div",{children:[d.jsxs("p",{className:"text-xs font-medium text-gray-400 uppercase tracking-wide",children:[o.label,"s"]}),d.jsx("p",{className:"text-2xl font-bold text-white mt-1",children:l})]}),d.jsx(s,{size:18,className:"text-gray-600"})]})},a)})}),d.jsxs("div",{className:"card overflow-hidden",children:[d.jsxs("div",{className:"flex items-center gap-4 px-5 py-3 border-b border-gray-800/50 text-xs font-medium text-gray-500 uppercase tracking-wide",children:[d.jsx("div",{className:"w-9"}),d.jsx("div",{className:"flex-1",children:"Member"}),d.jsx("div",{className:"w-24",children:"Role"}),d.jsx("div",{className:"w-32",children:"Joined"}),d.jsx("div",{className:"w-8"})]}),r?Array(3).fill(0).map((a,o)=>d.jsx(Ise,{},o)):n.length===0?d.jsxs("div",{className:"flex flex-col items-center justify-center py-16",children:[d.jsx("div",{className:"w-14 h-14 rounded-2xl bg-gray-800/50 flex items-center justify-center mb-3",children:d.jsx(C2,{size:24,className:"text-gray-600"})}),d.jsx("p",{className:"text-gray-400 font-medium",children:"No team members"}),d.jsx("p",{className:"text-gray-600 text-sm mt-1",children:"Invite your team to collaborate"})]}):n.map(a=>{var l,u,f,c;const o=Om[a.role]||Om.member,s=o.icon;return d.jsxs("div",{className:"flex items-center gap-4 px-5 py-3.5 table-row group",children:[d.jsx("div",{className:"w-9 h-9 rounded-lg bg-gradient-to-br from-indigo-500 to-purple-600 flex items-center justify-center text-xs font-semibold text-white flex-shrink-0",children:((u=(l=a.full_name)==null?void 0:l[0])==null?void 0:u.toUpperCase())||((c=(f=a.email)==null?void 0:f[0])==null?void 0:c.toUpperCase())||"?"}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"text-sm font-medium text-gray-200 truncate",children:a.full_name||"Unnamed"}),d.jsxs("p",{className:"text-xs text-gray-500 flex items-center gap-1",children:[d.jsx(vh,{size:10})," ",a.email]})]}),d.jsx("div",{className:"w-24",children:d.jsxs("span",{className:ye("badge text-[10px]",o.badge),children:[d.jsx(s,{size:10}),o.label]})}),d.jsx("div",{className:"w-32 text-xs text-gray-500",children:a.joined_at?new Date(a.joined_at).toLocaleDateString():"—"}),d.jsx("div",{className:"w-8",children:d.jsx("button",{className:"btn btn-ghost btn-icon opacity-0 group-hover:opacity-100",children:d.jsx($4,{size:14})})})]},a.id||a.user_id)})]})]})}const qj=({active:e,payload:t,label:r})=>!e||!t?null:d.jsxs("div",{className:"bg-gray-900 border border-gray-700 rounded-lg px-3 py-2 shadow-xl text-xs",children:[d.jsx("p",{className:"text-gray-400 mb-1",children:r}),t.map((n,i)=>d.jsxs("p",{className:"text-white font-medium",children:[d.jsx("span",{className:"inline-block w-2 h-2 rounded-full mr-1.5",style:{backgroundColor:n.color}}),n.name,": ",n.value]},i))]});function Dse(){const{currentOrg:e}=er(),[t,r]=A.useState(30),{data:n,isLoading:i}=ki({queryKey:["report-summary",e==null?void 0:e.id,t],queryFn:()=>Fy.summary(e.id,t),enabled:!!e}),a=async()=>{try{const l=await Fy.exportCsv(e.id,t),u=URL.createObjectURL(new Blob([l.data])),f=document.createElement("a");f.href=u,f.download=`report-${e.name}-${t}days.csv`,f.click(),URL.revokeObjectURL(u)}catch(l){console.error(l)}};if(!e)return d.jsx("div",{className:"flex items-center justify-center h-full p-8",children:d.jsx("p",{className:"text-gray-500",children:"Select an organization"})});const o=(n==null?void 0:n.data)||{},s=[{label:"Total Processed",value:o.total_issues||0,icon:S2,color:"text-indigo-400",bg:"bg-indigo-500/10"},{label:"Success Rate",value:o.success_rate?`${(o.success_rate*100).toFixed(0)}%`:"N/A",icon:Ei,color:"text-emerald-400",bg:"bg-emerald-500/10"},{label:"Avg Resolution",value:o.avg_resolution_hours?`${o.avg_resolution_hours.toFixed(1)}h`:"N/A",icon:mh,color:"text-amber-400",bg:"bg-amber-500/10"},{label:"Error Rate",value:o.error_rate?`${(o.error_rate*100).toFixed(1)}%`:"0%",icon:MD,color:"text-red-400",bg:"bg-red-500/10"}];return d.jsxs("div",{className:"p-6 animate-fade-in",children:[d.jsxs("div",{className:"page-header",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"page-title",children:"Reports & Analytics"}),d.jsx("p",{className:"page-subtitle",children:"Performance metrics and insights"})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("div",{className:"flex items-center gap-1 bg-gray-900 border border-gray-800 rounded-lg p-0.5",children:[7,14,30,90].map(l=>d.jsxs("button",{onClick:()=>r(l),className:ye("px-3 py-1.5 rounded-md text-xs font-medium transition-all",t===l?"bg-indigo-600 text-white":"text-gray-400 hover:text-white"),children:[l,"d"]},l))}),d.jsxs("button",{onClick:a,className:"btn btn-secondary btn-sm",children:[d.jsx(C4,{size:14})," Export CSV"]})]})]}),d.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:s.map(l=>{const u=l.icon;return d.jsx("div",{className:"stat-card",children:d.jsxs("div",{className:"flex items-center justify-between relative z-10",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-xs font-medium text-gray-400 uppercase tracking-wide",children:l.label}),d.jsx("p",{className:"text-2xl font-bold text-white mt-1",children:i?"—":l.value})]}),d.jsx("div",{className:ye("w-11 h-11 rounded-xl flex items-center justify-center",l.bg),children:d.jsx(u,{size:20,className:l.color})})]})},l.label)})}),d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsx("h3",{className:"text-sm font-semibold",children:"Daily Volume"})}),d.jsx("div",{className:"card-body",children:d.jsx("div",{className:"h-64",children:i?d.jsx("div",{className:"skeleton h-full w-full rounded-lg"}):d.jsx(kl,{width:"100%",height:"100%",children:d.jsxs(xC,{data:o.daily_breakdown||[],children:[d.jsx("defs",{children:d.jsxs("linearGradient",{id:"rptTotal",x1:"0",y1:"0",x2:"0",y2:"1",children:[d.jsx("stop",{offset:"5%",stopColor:"#6366f1",stopOpacity:.3}),d.jsx("stop",{offset:"95%",stopColor:"#6366f1",stopOpacity:0})]})}),d.jsx(Ru,{strokeDasharray:"3 3",stroke:"#1e1e2a"}),d.jsx(Ni,{dataKey:"date",tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),d.jsx(Ci,{tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),d.jsx(Wt,{content:d.jsx(qj,{})}),d.jsx(ln,{type:"monotone",dataKey:"total",stroke:"#6366f1",fill:"url(#rptTotal)",strokeWidth:2,name:"Issues"})]})})})})]}),d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsx("h3",{className:"text-sm font-semibold",children:"Resolution by Source"})}),d.jsx("div",{className:"card-body",children:d.jsx("div",{className:"h-64",children:i?d.jsx("div",{className:"skeleton h-full w-full rounded-lg"}):d.jsx(kl,{width:"100%",height:"100%",children:d.jsxs(bC,{data:Object.entries(o.by_source||{}).map(([l,u])=>({name:l.replace("_"," ").replace(/\b\w/g,f=>f.toUpperCase()),value:u})),layout:"vertical",children:[d.jsx(Ru,{strokeDasharray:"3 3",stroke:"#1e1e2a",horizontal:!1}),d.jsx(Ni,{type:"number",tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),d.jsx(Ci,{type:"category",dataKey:"name",tick:{fill:"#8888a0",fontSize:12},width:100,tickLine:!1,axisLine:!1}),d.jsx(Wt,{content:d.jsx(qj,{})}),d.jsx(Bi,{dataKey:"value",fill:"#6366f1",radius:[0,6,6,0],barSize:20,name:"Issues"})]})})})})]})]})]})}const Lse=[{id:"general",label:"General",icon:$a},{id:"ai",label:"AI Configuration",icon:Bf},{id:"notifications",label:"Notifications",icon:w2},{id:"security",label:"Security",icon:E2},{id:"api",label:"API Keys",icon:j2},{id:"webhooks",label:"Webhooks",icon:O2}],jm=[{id:"openrouter",name:"OpenRouter",baseUrl:"https://openrouter.ai/api/v1",models:[{id:"meta-llama/llama-3.3-70b-instruct",name:"Llama 3.3 70B (Free)"},{id:"anthropic/claude-3.5-sonnet",name:"Claude 3.5 Sonnet"},{id:"openai/gpt-4o",name:"GPT-4o"},{id:"google/gemini-pro-1.5",name:"Gemini Pro 1.5"}]},{id:"anthropic",name:"Anthropic",baseUrl:"https://api.anthropic.com/v1",models:[{id:"claude-3-5-sonnet-20241022",name:"Claude 3.5 Sonnet"},{id:"claude-3-opus-20240229",name:"Claude 3 Opus"},{id:"claude-3-haiku-20240307",name:"Claude 3 Haiku (Fast)"}]},{id:"openai",name:"OpenAI",baseUrl:"https://api.openai.com/v1",models:[{id:"gpt-4o",name:"GPT-4o"},{id:"gpt-4o-mini",name:"GPT-4o Mini (Fast)"},{id:"gpt-4-turbo",name:"GPT-4 Turbo"}]},{id:"google",name:"Google AI",baseUrl:"https://generativelanguage.googleapis.com/v1beta",models:[{id:"gemini-1.5-pro",name:"Gemini 1.5 Pro"},{id:"gemini-1.5-flash",name:"Gemini 1.5 Flash (Fast)"}]},{id:"groq",name:"Groq",baseUrl:"https://api.groq.com/openai/v1",models:[{id:"llama-3.3-70b-versatile",name:"Llama 3.3 70B"},{id:"mixtral-8x7b-32768",name:"Mixtral 8x7B"}]}];function zse(){const{currentOrg:e}=er(),[t,r]=A.useState("general"),[n,i]=A.useState(!1),[a,o]=A.useState(!1),[s,l]=A.useState({provider:"openrouter",apiKey:"",model:"meta-llama/llama-3.3-70b-instruct",autoAnalyze:!0,autoCreatePR:!0,confidenceThreshold:70}),[u,f]=A.useState(!1),[c,h]=A.useState(!1),[p,m]=A.useState(null),[y,v]=A.useState(!0);A.useEffect(()=>{e&&g()},[e]);const g=async()=>{var S;try{const j=await je.get(`/organizations/${e.id}/settings`);(S=j.data)!=null&&S.ai_config&&l(_=>({..._,...j.data.ai_config}))}catch{}finally{v(!1)}},b=async()=>{i(!0);try{await je.put(`/organizations/${e.id}/settings`,{ai_config:s}),m({type:"success",message:"Configuration saved!"})}catch{m({type:"error",message:"Failed to save configuration"})}finally{i(!1)}},w=async()=>{var S,j;h(!0),m(null);try{const _=await je.post(`/organizations/${e.id}/test-llm`,{provider:s.provider,api_key:s.apiKey,model:s.model});m({type:"success",message:"Connection successful! API key is valid."})}catch(_){m({type:"error",message:((j=(S=_.response)==null?void 0:S.data)==null?void 0:j.detail)||"Connection failed. Check your API key."})}finally{h(!1)}},O=jm.find(S=>S.id===s.provider);if(!e)return d.jsx("div",{className:"flex items-center justify-center h-full p-8",children:d.jsx("p",{className:"text-gray-500",children:"Select an organization"})});const x=async()=>{i(!0),await new Promise(S=>setTimeout(S,1e3)),i(!1)};return d.jsxs("div",{className:"p-6 animate-fade-in",children:[d.jsx("div",{className:"page-header",children:d.jsxs("div",{children:[d.jsx("h1",{className:"page-title",children:"Settings"}),d.jsx("p",{className:"page-subtitle",children:"Manage your organization settings"})]})}),d.jsxs("div",{className:"flex gap-6",children:[d.jsx("div",{className:"w-52 flex-shrink-0",children:d.jsx("div",{className:"space-y-0.5",children:Lse.map(S=>{const j=S.icon;return d.jsxs("button",{onClick:()=>r(S.id),className:ye("w-full sidebar-item",t===S.id?"sidebar-item-active":"sidebar-item-inactive"),children:[d.jsx(j,{size:16}),d.jsx("span",{children:S.label})]},S.id)})})}),d.jsxs("div",{className:"flex-1 max-w-2xl",children:[t==="general"&&d.jsxs("div",{className:"card animate-fade-in",children:[d.jsx("div",{className:"card-header",children:d.jsx("h3",{className:"text-sm font-semibold",children:"Organization Details"})}),d.jsxs("div",{className:"card-body space-y-5",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Organization Name"}),d.jsx("input",{defaultValue:e.name,className:"input",placeholder:"My Organization"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Slug"}),d.jsx("input",{defaultValue:e.slug||"",className:"input font-mono",placeholder:"my-org"})]}),d.jsx("div",{className:"pt-3 border-t border-gray-800",children:d.jsxs("button",{onClick:x,disabled:n,className:"btn btn-primary",children:[n?d.jsx(Zt,{size:14,className:"animate-spin"}):d.jsx(qp,{size:14}),"Save Changes"]})})]})]}),t==="ai"&&d.jsxs("div",{className:"space-y-6 animate-fade-in",children:[d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsxs("h3",{className:"text-sm font-semibold flex items-center gap-2",children:[d.jsx(Bf,{size:16,className:"text-indigo-400"}),"AI Provider Configuration"]})}),d.jsxs("div",{className:"card-body space-y-5",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Provider"}),d.jsx("select",{value:s.provider,onChange:S=>{var _;const j=jm.find(P=>P.id===S.target.value);l({...s,provider:S.target.value,model:((_=j==null?void 0:j.models[0])==null?void 0:_.id)||""}),m(null)},className:"input",children:jm.map(S=>d.jsx("option",{value:S.id,children:S.name},S.id))})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"API Key"}),d.jsxs("div",{className:"relative",children:[d.jsx("input",{type:u?"text":"password",value:s.apiKey,onChange:S=>{l({...s,apiKey:S.target.value}),m(null)},className:"input pr-20 font-mono",placeholder:`Enter your ${O==null?void 0:O.name} API key`}),d.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 flex items-center gap-1",children:d.jsx("button",{type:"button",onClick:()=>f(!u),className:"p-1 text-gray-500 hover:text-gray-300",children:u?d.jsx(qy,{size:14}):d.jsx(Uf,{size:14})})})]}),d.jsxs("p",{className:"text-xs text-gray-600 mt-1",children:["Get your API key from"," ",d.jsxs("a",{href:(O==null?void 0:O.id)==="openrouter"?"https://openrouter.ai/keys":(O==null?void 0:O.id)==="anthropic"?"https://console.anthropic.com/settings/keys":(O==null?void 0:O.id)==="openai"?"https://platform.openai.com/api-keys":(O==null?void 0:O.id)==="google"?"https://aistudio.google.com/app/apikey":"https://console.groq.com/keys",target:"_blank",rel:"noopener noreferrer",className:"text-indigo-400 hover:text-indigo-300",children:[O==null?void 0:O.name," dashboard"]})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Model"}),d.jsx("select",{value:s.model,onChange:S=>l({...s,model:S.target.value}),className:"input",children:O==null?void 0:O.models.map(S=>d.jsx("option",{value:S.id,children:S.name},S.id))})]}),d.jsxs("div",{className:"flex items-center gap-3 pt-3 border-t border-gray-800",children:[d.jsxs("button",{onClick:w,disabled:c||!s.apiKey,className:"btn btn-secondary",children:[c?d.jsx(Zt,{size:14,className:"animate-spin"}):d.jsx(A2,{size:14}),"Test Connection"]}),p&&d.jsxs("div",{className:ye("flex items-center gap-2 text-sm",p.type==="success"?"text-green-400":"text-red-400"),children:[p.type==="success"?d.jsx(C0,{size:14}):d.jsx(tu,{size:14}),p.message]})]})]})]}),d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsx("h3",{className:"text-sm font-semibold",children:"Analysis Settings"})}),d.jsxs("div",{className:"card-body space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between py-2",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-gray-200",children:"Auto-analyze new issues"}),d.jsx("p",{className:"text-xs text-gray-500",children:"Automatically analyze issues when received"})]}),d.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[d.jsx("input",{type:"checkbox",checked:s.autoAnalyze,onChange:S=>l({...s,autoAnalyze:S.target.checked}),className:"sr-only peer"}),d.jsx("div",{className:"w-9 h-5 bg-gray-700 rounded-full peer peer-checked:bg-indigo-600 after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:after:translate-x-4"})]})]}),d.jsxs("div",{className:"flex items-center justify-between py-2",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-gray-200",children:"Auto-create Pull Requests"}),d.jsx("p",{className:"text-xs text-gray-500",children:"Create PRs automatically for high-confidence fixes"})]}),d.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[d.jsx("input",{type:"checkbox",checked:s.autoCreatePR,onChange:S=>l({...s,autoCreatePR:S.target.checked}),className:"sr-only peer"}),d.jsx("div",{className:"w-9 h-5 bg-gray-700 rounded-full peer peer-checked:bg-indigo-600 after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:after:translate-x-4"})]})]}),d.jsxs("div",{children:[d.jsxs("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:["Confidence Threshold for Auto-PR (",s.confidenceThreshold,"%)"]}),d.jsx("input",{type:"range",min:"50",max:"95",step:"5",value:s.confidenceThreshold,onChange:S=>l({...s,confidenceThreshold:parseInt(S.target.value)}),className:"w-full h-2 bg-gray-700 rounded-lg appearance-none cursor-pointer accent-indigo-600"}),d.jsxs("div",{className:"flex justify-between text-xs text-gray-600 mt-1",children:[d.jsx("span",{children:"50% (More PRs)"}),d.jsx("span",{children:"95% (Higher quality)"})]})]})]})]}),d.jsx("div",{className:"flex justify-end",children:d.jsxs("button",{onClick:b,disabled:n,className:"btn btn-primary",children:[n?d.jsx(Zt,{size:14,className:"animate-spin"}):d.jsx(qp,{size:14}),"Save AI Configuration"]})})]}),t==="notifications"&&d.jsxs("div",{className:"card animate-fade-in",children:[d.jsx("div",{className:"card-header",children:d.jsx("h3",{className:"text-sm font-semibold",children:"Notification Preferences"})}),d.jsxs("div",{className:"card-body space-y-4",children:[[{label:"New issue received",desc:"When a new issue arrives from an integration"},{label:"Analysis completed",desc:"When AI finishes analyzing an issue"},{label:"PR created",desc:"When a Pull Request is automatically generated"},{label:"Analysis error",desc:"When AI fails to analyze an issue"},{label:"Daily digest",desc:"Summary of daily activity"}].map(S=>d.jsxs("div",{className:"flex items-center justify-between py-2",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-gray-200",children:S.label}),d.jsx("p",{className:"text-xs text-gray-500",children:S.desc})]}),d.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[d.jsx("input",{type:"checkbox",defaultChecked:!0,className:"sr-only peer"}),d.jsx("div",{className:"w-9 h-5 bg-gray-700 rounded-full peer peer-checked:bg-indigo-600 after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:after:translate-x-4"})]})]},S.label)),d.jsxs("div",{className:"pt-3 border-t border-gray-800",children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Notification Email"}),d.jsxs("div",{className:"flex gap-2",children:[d.jsxs("div",{className:"relative flex-1",children:[d.jsx(vh,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),d.jsx("input",{className:"input pl-10",placeholder:"team@company.com"})]}),d.jsx("button",{className:"btn btn-primary btn-sm",children:d.jsx(qp,{size:14})})]})]})]})]}),t==="security"&&d.jsxs("div",{className:"card animate-fade-in",children:[d.jsx("div",{className:"card-header",children:d.jsx("h3",{className:"text-sm font-semibold",children:"Security Settings"})}),d.jsxs("div",{className:"card-body space-y-5",children:[d.jsxs("div",{className:"flex items-center justify-between py-2",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-gray-200",children:"Two-Factor Authentication"}),d.jsx("p",{className:"text-xs text-gray-500",children:"Require 2FA for all organization members"})]}),d.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[d.jsx("input",{type:"checkbox",className:"sr-only peer"}),d.jsx("div",{className:"w-9 h-5 bg-gray-700 rounded-full peer peer-checked:bg-indigo-600 after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:after:translate-x-4"})]})]}),d.jsxs("div",{className:"flex items-center justify-between py-2",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-gray-200",children:"SSO / SAML"}),d.jsx("p",{className:"text-xs text-gray-500",children:"Enable Single Sign-On with your identity provider"})]}),d.jsx("span",{className:"badge badge-gray",children:"Enterprise"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"IP Allowlist"}),d.jsx("textarea",{className:"input h-20 resize-none font-mono text-xs",placeholder:`192.168.1.0/24 +10.0.0.0/8`}),d.jsx("p",{className:"text-xs text-gray-600 mt-1",children:"One CIDR per line. Leave empty to allow all."})]})]})]}),t==="api"&&d.jsxs("div",{className:"card animate-fade-in",children:[d.jsxs("div",{className:"card-header",children:[d.jsx("h3",{className:"text-sm font-semibold",children:"API Keys"}),d.jsxs("button",{className:"btn btn-primary btn-sm",children:[d.jsx(Ma,{size:14})," Create Key"]})]}),d.jsxs("div",{className:"card-body",children:[d.jsx("div",{className:"space-y-3",children:d.jsxs("div",{className:"flex items-center gap-3 p-3 bg-gray-900/50 rounded-lg border border-gray-800/50",children:[d.jsx(j2,{size:16,className:"text-gray-500"}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"text-sm font-medium",children:"Production API Key"}),d.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[d.jsx("code",{className:"text-xs text-gray-500 font-mono",children:a?"jaf_live_sk_a1b2c3d4e5f6...":"jaf_live_sk_••••••••••••..."}),d.jsx("button",{onClick:()=>o(!a),className:"text-gray-500 hover:text-gray-300",children:a?d.jsx(qy,{size:12}):d.jsx(Uf,{size:12})}),d.jsx("button",{className:"text-gray-500 hover:text-gray-300",children:d.jsx(Hy,{size:12})})]})]}),d.jsx("span",{className:"badge badge-green text-[10px]",children:"Active"}),d.jsx("button",{className:"btn btn-danger btn-sm btn-icon",children:d.jsx(N2,{size:12})})]})}),d.jsxs("div",{className:"mt-4 p-4 bg-gray-950 rounded-lg border border-gray-800",children:[d.jsxs("h4",{className:"text-xs font-semibold text-gray-400 mb-2 flex items-center gap-1.5",children:[d.jsx(Wy,{size:12})," Quick Start"]}),d.jsx("pre",{className:"text-xs text-gray-400 font-mono overflow-x-auto",children:`curl -X POST https://jira-fixer.startdata.com.br/api/issues \\ + -H "Authorization: Bearer YOUR_API_KEY" \\ + -H "Content-Type: application/json" \\ + -d '{"title": "Bug fix needed", "source": "api"}'`})]})]})]}),t==="webhooks"&&d.jsxs("div",{className:"card animate-fade-in",children:[d.jsxs("div",{className:"card-header",children:[d.jsx("h3",{className:"text-sm font-semibold",children:"Webhook Endpoints"}),d.jsxs("button",{className:"btn btn-primary btn-sm",children:[d.jsx(Ma,{size:14})," Add Endpoint"]})]}),d.jsxs("div",{className:"card-body",children:[d.jsxs("div",{className:"p-4 bg-gray-900/50 rounded-lg border border-gray-800/50 mb-4",children:[d.jsx("h4",{className:"text-xs font-semibold text-gray-400 mb-2",children:"Incoming Webhook URLs"}),d.jsx("div",{className:"space-y-2",children:["tickethub","jira","servicenow","github","gitlab","gitea"].map(S=>d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs("span",{className:"text-xs text-gray-500 w-24 capitalize",children:[S,":"]}),d.jsxs("code",{className:"text-xs text-indigo-400 font-mono flex-1 truncate",children:["https://jira-fixer.startdata.com.br/api/webhooks/",e.id,"/",S]}),d.jsx("button",{className:"text-gray-500 hover:text-gray-300",children:d.jsx(Hy,{size:12})})]},S))})]}),d.jsxs("div",{className:"text-center py-6 text-gray-500",children:[d.jsx(O2,{size:24,className:"mx-auto mb-2 text-gray-600"}),d.jsx("p",{className:"text-sm",children:"No outgoing webhook endpoints configured"}),d.jsx("p",{className:"text-xs text-gray-600 mt-1",children:"Add endpoints to receive event notifications"})]})]})]})]})]})]})}function Kj({children:e}){const{user:t,loading:r}=er();return r?d.jsx("div",{className:"flex items-center justify-center h-screen",children:"Loading..."}):t?e:d.jsx(by,{to:"/login"})}function Fse({children:e}){const{user:t,currentOrg:r,loading:n}=er();return n?d.jsx("div",{className:"flex items-center justify-center h-screen",children:"Loading..."}):t?r?e:d.jsx(by,{to:"/select-organization"}):d.jsx(by,{to:"/login"})}function Bse(){return d.jsxs(HM,{children:[d.jsx(rr,{path:"/login",element:d.jsx(KD,{})}),d.jsx(rr,{path:"/register",element:d.jsx(VD,{})}),d.jsx(rr,{path:"/select-organization",element:d.jsx(Kj,{children:d.jsx(GD,{})})}),d.jsx(rr,{path:"/create-organization",element:d.jsx(Kj,{children:d.jsx(XD,{})})}),d.jsxs(rr,{path:"/",element:d.jsx(Fse,{children:d.jsx(qD,{})}),children:[d.jsx(rr,{index:!0,element:d.jsx(kse,{})}),d.jsx(rr,{path:"issues",element:d.jsx(Cse,{})}),d.jsx(rr,{path:"issues/:id",element:d.jsx($se,{})}),d.jsx(rr,{path:"integrations",element:d.jsx(Mse,{})}),d.jsx(rr,{path:"team",element:d.jsx(Rse,{})}),d.jsx(rr,{path:"reports",element:d.jsx(Dse,{})}),d.jsx(rr,{path:"settings",element:d.jsx(zse,{})})]})]})}const Use=new jI({defaultOptions:{queries:{staleTime:3e4,retry:1}}});_m.createRoot(document.getElementById("root")).render(d.jsx(k.StrictMode,{children:d.jsx(_I,{client:Use,children:d.jsx(YM,{children:d.jsx(p3,{children:d.jsx(Bse,{})})})})})); diff --git a/frontend_build/index.html b/frontend_build/index.html index 9e5fcaf..a89bc9b 100644 --- a/frontend_build/index.html +++ b/frontend_build/index.html @@ -5,8 +5,8 @@ JIRA AI Fixer - - + +