Skip to content

armgit / strix

Public Imported from GitHub
0

Open-source AI penetration testing tool to find and fix your app’s vulnerabilities.

Local viewer: UI polish and a Feedback & support tab (#847)

Ahmed Allamef07bad9452d
diff --git a/strix/viewer/auth.py b/strix/viewer/auth.py
index 1c7c5fef..c25d12b6 100644
--- a/strix/viewer/auth.py
+++ b/strix/viewer/auth.py
@@ -207,6 +207,26 @@ def otp_verify(email: str, code: str) -> dict[str, Any]:
raise RelayError("unavailable")
+def feedback_submit(email: str, message: str) -> None:
+ """Relay a feedback message + email to Strix. No verification is required;
+ the email is taken as given. Raises RelayError on failure."""
+ status, data = _post_json(
+ "/api/oss/feedback",
+ {"email": email, "message": message},
+ timeout=_OTP_TIMEOUT,
+ )
+ if status == 200:
+ return
+ if status == 429:
+ raise RelayError("rate_limited")
+ if status == 400:
+ code = data.get("error")
+ if code in ("invalid_email", "invalid_message"):
+ raise RelayError(str(code))
+ raise RelayError("invalid_message")
+ raise RelayError("unavailable")
+
+
def report_send(
token: str,
pdf_bytes: bytes,
@@ -241,6 +261,7 @@ def report_send(
__all__ = [
"AUTH_PATH",
"RelayError",
+ "feedback_submit",
"forget",
"is_verified",
"otp_start",
diff --git a/strix/viewer/frontend/package-lock.json b/strix/viewer/frontend/package-lock.json
index 1c74cd0c..9f86e348 100644
--- a/strix/viewer/frontend/package-lock.json
+++ b/strix/viewer/frontend/package-lock.json
@@ -16,6 +16,7 @@
"lucide-react": "^0.563.0",
"react": "^19.2.0",
"react-dom": "^19.2.0",
+ "react-icons": "^5.7.0",
"react-markdown": "^10.1.0",
"remark-gfm": "^4.0.1",
"tailwind-merge": "^3.4.0"
@@ -62,6 +63,7 @@
"integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"@babel/code-frame": "^7.29.7",
"@babel/generator": "^7.29.7",
@@ -919,9 +921,6 @@
"arm"
],
"dev": true,
- "libc": [
- "glibc"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -936,9 +935,6 @@
"arm"
],
"dev": true,
- "libc": [
- "musl"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -953,9 +949,6 @@
"arm64"
],
"dev": true,
- "libc": [
- "glibc"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -970,9 +963,6 @@
"arm64"
],
"dev": true,
- "libc": [
- "musl"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -987,9 +977,6 @@
"loong64"
],
"dev": true,
- "libc": [
- "glibc"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -1004,9 +991,6 @@
"loong64"
],
"dev": true,
- "libc": [
- "musl"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -1021,9 +1005,6 @@
"ppc64"
],
"dev": true,
- "libc": [
- "glibc"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -1038,9 +1019,6 @@
"ppc64"
],
"dev": true,
- "libc": [
- "musl"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -1055,9 +1033,6 @@
"riscv64"
],
"dev": true,
- "libc": [
- "glibc"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -1072,9 +1047,6 @@
"riscv64"
],
"dev": true,
- "libc": [
- "musl"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -1089,9 +1061,6 @@
"s390x"
],
"dev": true,
- "libc": [
- "glibc"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -1106,9 +1075,6 @@
"x64"
],
"dev": true,
- "libc": [
- "glibc"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -1123,9 +1089,6 @@
"x64"
],
"dev": true,
- "libc": [
- "musl"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -1349,9 +1312,6 @@
"arm64"
],
"dev": true,
- "libc": [
- "glibc"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -1369,9 +1329,6 @@
"arm64"
],
"dev": true,
- "libc": [
- "musl"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -1389,9 +1346,6 @@
"x64"
],
"dev": true,
- "libc": [
- "glibc"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -1409,9 +1363,6 @@
"x64"
],
"dev": true,
- "libc": [
- "musl"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -1654,6 +1605,7 @@
"resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.17.tgz",
"integrity": "sha512-MXfmqaVPEVgkBT/aY0aGCkRWWtByiYQXo3xdQ8r5RzuFrPiRn8Gar2tQdXSUQ2GKV3bkXckek89V8wQBY2Q/Aw==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"csstype": "^3.2.2"
}
@@ -1664,6 +1616,7 @@
"integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==",
"devOptional": true,
"license": "MIT",
+ "peer": true,
"peerDependencies": {
"@types/react": "^19.2.0"
}
@@ -1786,6 +1739,7 @@
}
],
"license": "MIT",
+ "peer": true,
"dependencies": {
"baseline-browser-mapping": "^2.10.42",
"caniuse-lite": "^1.0.30001803",
@@ -1966,6 +1920,7 @@
"resolved": "https://registry.npmjs.org/d3-selection/-/d3-selection-3.0.0.tgz",
"integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==",
"license": "ISC",
+ "peer": true,
"engines": {
"node": ">=12"
}
@@ -2543,9 +2498,6 @@
"arm64"
],
"dev": true,
- "libc": [
- "glibc"
- ],
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -2567,9 +2519,6 @@
"arm64"
],
"dev": true,
- "libc": [
- "musl"
- ],
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -2591,9 +2540,6 @@
"x64"
],
"dev": true,
- "libc": [
- "glibc"
- ],
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -2615,9 +2561,6 @@
"x64"
],
"dev": true,
- "libc": [
- "musl"
- ],
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -3628,6 +3571,7 @@
"integrity": "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==",
"dev": true,
"license": "MIT",
+ "peer": true,
"engines": {
"node": ">=12"
},
@@ -3679,6 +3623,7 @@
"resolved": "https://registry.npmjs.org/react/-/react-19.2.7.tgz",
"integrity": "sha512-HNe9WslTbXmFK8o8cmwgAeJFSBvt1bPdHCVKtaaV+WlAN36mpT4hcRpwbf3fY56ar2oIXzsBpOAiIRHAdY0OlQ==",
"license": "MIT",
+ "peer": true,
"engines": {
"node": ">=0.10.0"
}
@@ -3688,6 +3633,7 @@
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.7.tgz",
"integrity": "sha512-t0BRVXvbiE/o20Hfw669rLbMCDWtYZLvmJigy2f0MxsXF+71pxhR3xOkspmsO8h3ZlNzyibAmtCa3l4lYKk6gQ==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"scheduler": "^0.27.0"
},
@@ -3695,6 +3641,15 @@
"react": "^19.2.7"
}
},
+ "node_modules/react-icons": {
+ "version": "5.7.0",
+ "resolved": "https://registry.npmjs.org/react-icons/-/react-icons-5.7.0.tgz",
+ "integrity": "sha512-LBLy340Rzqy6+/yVhZKT3B/QpP1BZaesGqasf09HPOBzRarcDIFH0WwXlXQfE7q7ipxK4MSiC5DIBWURCny6fw==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "*"
+ }
+ },
"node_modules/react-markdown": {
"version": "10.1.0",
"resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-10.1.0.tgz",
@@ -4154,6 +4109,7 @@
"integrity": "sha512-NTKlcQjlAK7MlQoyb6LgaqHc8sso/pVyUJYWMws3jg21uTJw/LddqIFPcPqP6PzpgbIcZyKI85sFE4HBrQDA8A==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"esbuild": "^0.25.0",
"fdir": "^6.4.4",
diff --git a/strix/viewer/frontend/package.json b/strix/viewer/frontend/package.json
index 37eaff55..e79db76f 100644
--- a/strix/viewer/frontend/package.json
+++ b/strix/viewer/frontend/package.json
@@ -17,6 +17,7 @@
"lucide-react": "^0.563.0",
"react": "^19.2.0",
"react-dom": "^19.2.0",
+ "react-icons": "^5.7.0",
"react-markdown": "^10.1.0",
"remark-gfm": "^4.0.1",
"tailwind-merge": "^3.4.0"
diff --git a/strix/viewer/frontend/src/App.tsx b/strix/viewer/frontend/src/App.tsx
index 8afc025c..00c0b9c8 100644
--- a/strix/viewer/frontend/src/App.tsx
+++ b/strix/viewer/frontend/src/App.tsx
@@ -2,14 +2,10 @@ import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import {
ArrowLeft,
AlertCircle,
- Waypoints,
+ Bot,
Mail,
ChevronDown,
- Wrench,
- FileCheck2,
- CalendarClock,
Radar,
- GitPullRequest,
Rocket,
ArrowUpRight,
History,
@@ -45,11 +41,10 @@ import PastRunsView from "@/components/PastRunsView";
import EmailReportView from "@/components/EmailReportView";
import { RunDetails } from "@/components/RunDetails";
import { TrustToast } from "@/components/TrustToast";
-import FeatureDetail from "@/components/FeatureDetail";
-import { ProTile, ProInlineCta, type ProItem } from "@/components/ProCta";
-import { FEATURES } from "@/lib/pro-features";
+import FeedbackView from "@/components/FeedbackView";
+import { ProInlineCta } from "@/components/ProCta";
-export type View = "overview" | "issues" | "agents" | "history" | "feature" | "email";
+export type View = "overview" | "issues" | "agents" | "history" | "email" | "feedback";
const TRUST_BANNER =
"Your findings stay on your machine. They're rendered here locally in your browser and never uploaded or stored by Strix.";
@@ -57,25 +52,12 @@ const TRUST_BANNER =
const SEVERITY_ORDER: VulnerabilitySeverity[] = ["critical", "high", "medium", "low"];
const POLL_MS = 500;
-// Curated inline CTAs. Continuous-coverage row on Overview (the restyled upsell
-// tiles), plus the recommendations pairing.
-const RECOMMENDATION_CTAS: ProItem[] = [
- { title: "One-click autofix + open a fix PR", desc: "Fix it for you and open a PR, retested.", slug: "autofix", icon: Wrench },
- { title: "Export SOC 2 / ISO 27001 report", desc: "Share an auditor-ready report with your team.", slug: "compliance", icon: FileCheck2 },
-];
-const COVERAGE_CTAS: ProItem[] = [
- { title: "Scheduled pentesting", desc: "Continuous coverage for your whole org.", slug: "scheduled", icon: CalendarClock },
- { title: "Attack surface monitoring", desc: "Continuous coverage for your whole org.", slug: "asm", icon: Radar },
- { title: "PR reviews", desc: "Pentest every pull request your team opens.", slug: "pr_reviews", icon: GitPullRequest },
-];
-
export default function App() {
const [activeRun, setActiveRun] = useState<string | null>(null);
const [run, setRun] = useState<LoadedRun | null>(null);
const [error, setError] = useState<string | null>(null);
const [selectedId, setSelectedId] = useState<string | null>(null);
const [view, setView] = useState<View>("overview");
- const [activeFeature, setActiveFeature] = useState<string | null>(null);
const [auth, setAuth] = useState<AuthStatus | null>(null);
const [runs, setRuns] = useState<RunsPayload | null>(null);
const [emailPurpose, setEmailPurpose] = useState<"report" | "verify">("report");
@@ -249,12 +231,6 @@ export default function App() {
await refreshRuns();
}, [refreshAuth, refreshRuns]);
- const selectFeature = useCallback((slug: string) => {
- trackCta(slug, "sidebar_nav");
- setActiveFeature(slug);
- userSetView("feature");
- }, [userSetView]);
-
const onForget = useCallback(async () => {
await forgetAuth();
await refreshAuth();
@@ -266,11 +242,13 @@ export default function App() {
<Sidebar
view={view}
onSelectView={(v) => {
+ // Clicking a sidebar view always lands on that section's top level,
+ // so leaving a specific issue's detail view and clicking "Issues"
+ // returns to the full findings list.
+ setSelectedId(null);
if (v === "history") openHistory();
else userSetView(v);
}}
- activeFeature={activeFeature}
- onSelectFeature={selectFeature}
issuesCount={run?.vulnerabilities.length ?? 0}
agentCount={agentCount}
runCount={runs?.count ?? 0}
@@ -285,7 +263,7 @@ export default function App() {
<div className="flex-1 min-w-0">
{/* Top bar */}
<div className="border-b border-[#222]">
- <div className="max-w-[72rem] mx-auto px-6 py-4 flex items-center gap-1.5">
+ <div className="max-w-[88rem] mx-auto px-3 sm:px-6 py-4 flex items-center gap-1.5">
<a
href={ctaUrl("https://app.strix.ai", "logo")}
target="_blank"
@@ -297,7 +275,6 @@ export default function App() {
<img src="./logo.png" alt="Strix" className="w-10 h-8 object-cover" />
<div className="text-base text-white font-medium tracking-tight">Strix</div>
</a>
- <span className="text-xs text-[#666]">Local results</span>
{run && <LiveIndicator finished={run.finished} />}
<div className="ml-auto flex items-center gap-3">
{verified && runs && !runs.locked && runs.runs.length > 0 && (
@@ -322,14 +299,20 @@ export default function App() {
</div>
</div>
- <div className="max-w-[72rem] mx-auto px-6 py-8 space-y-6">
- {error && !run && view !== "history" && view !== "email" && view !== "feature" && (
+ <div className="max-w-[88rem] mx-auto px-3 sm:px-6 py-8 sm:py-12 space-y-6">
+ {error && !run && view !== "history" && view !== "email" && (
<div className="rounded-lg px-4 py-3 flex gap-3 items-start border border-red-500/30 bg-red-500/5">
<AlertCircle className="w-5 h-5 flex-shrink-0 mt-0.5 text-red-400" aria-hidden="true" />
<p className="text-sm text-red-300">{error}</p>
</div>
)}
+ {/* Keyed wrapper: re-mounts on every view / finding / run change so the
+ page-in transition replays. */}
+ <div
+ key={`${activeRun ?? "launched"}:${view}:${selectedId ?? ""}`}
+ className="animate-page-in space-y-6"
+ >
{view === "email" ? (
<EmailReportView
activeRun={activeRun}
@@ -342,8 +325,11 @@ export default function App() {
}}
onExit={(dest) => setView(dest === "history" ? "history" : "overview")}
/>
- ) : view === "feature" && activeFeature && FEATURES[activeFeature] ? (
- <FeatureDetail feature={FEATURES[activeFeature]} />
+ ) : view === "feedback" ? (
+ <FeedbackView
+ defaultEmail={auth?.email ?? null}
+ onExit={(dest) => setView(dest)}
+ />
) : view === "history" ? (
<div className="space-y-4">
<div className="flex items-center gap-2">
@@ -412,6 +398,7 @@ export default function App() {
)}
</>
) : null}
+ </div>
</div>
</div>
<TrustToast message={TRUST_BANNER} />
@@ -573,7 +560,7 @@ function FindingsList({
<button
key={v.id}
onClick={() => onSelect(v.id)}
- className="cursor-pointer w-full text-left rounded-lg border border-[#222] hover:border-[#444] bg-[rgba(255,255,255,0.02)] px-4 py-3 transition-colors flex items-center gap-3"
+ className="animate-card-in cursor-pointer w-full text-left rounded-lg border border-[#222] hover:border-[#444] bg-[rgba(255,255,255,0.02)] px-4 py-3 transition-colors flex items-center gap-3"
>
<span className={`w-2.5 h-2.5 rounded-full flex-shrink-0 ${getSeverityDot(v.severity)}`} aria-hidden="true" />
<span className="flex-1 min-w-0">
@@ -636,7 +623,7 @@ function EmailReportCta({ onOpenEmail }: { onOpenEmail: () => void }) {
</p>
</div>
<span className="flex-shrink-0 rounded-lg bg-white px-3 py-1.5 text-xs font-semibold text-black transition-opacity group-hover:opacity-90">
- Email report
+ Export report to PDF
</span>
</div>
</button>
@@ -673,26 +660,32 @@ function OverviewTab({
return (
<div className="space-y-6">
- <RunDetails raw={raw} durationSeconds={summary.durationSeconds} />
+ <div className="animate-card-in">
+ <RunDetails raw={raw} durationSeconds={summary.durationSeconds} />
+ </div>
{total > 0 && (
- <div className="rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5">
+ <div className="animate-card-in rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5">
<IssueSeveritySummary findings={{ total, ...counts }} />
</div>
)}
{/* Primary CTA: the one primary on Overview. Hidden until the run is
finished, since a live scan would only email a partial report. */}
- {finished && <EmailReportCta onOpenEmail={onOpenEmail} />}
+ {finished && (
+ <div className="animate-card-in">
+ <EmailReportCta onOpenEmail={onOpenEmail} />
+ </div>
+ )}
{sections.length > 0 ? (
- <div className="rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5 space-y-8">
+ <div className="animate-card-in rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5 space-y-8">
{sections.map((s) => (
<ContentSection key={s.title} title={s.title} content={s.content} />
))}
</div>
) : reportMarkdown ? (
- <div className="rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5">
+ <div className="animate-card-in rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5">
<ContentSection content={dedupeHeadings(reportMarkdown)} />
</div>
) : (
@@ -701,22 +694,6 @@ function OverviewTab({
)
)}
- {/* Near Recommendations: act on the fixes. */}
- <div className="grid grid-cols-1 sm:grid-cols-2 gap-3">
- {RECOMMENDATION_CTAS.map((item) => (
- <ProTile key={item.slug} item={item} surface="overview" />
- ))}
- </div>
-
- {/* Continuous coverage for your org (restyled upsell tiles). */}
- <div>
- <p className="mb-2 text-sm font-semibold text-white">Continuous coverage for your org</p>
- <div className="grid grid-cols-1 sm:grid-cols-3 gap-3">
- {COVERAGE_CTAS.map((item) => (
- <ProTile key={item.slug} item={item} surface="overview" />
- ))}
- </div>
- </div>
</div>
);
}
@@ -746,8 +723,7 @@ function TabButton({
function AgentsTab({ run, canSteer }: { run: LoadedRun; canSteer: boolean }) {
const { agents, events } = run.transcript;
const graphAgents = useMemo(() => buildGraphAgents(agents, events), [agents, events]);
- // Clicking a graph node opens the agent's transcript in a modal (matching the
- // cloud app); no node selected means no modal.
+ // Clicking a graph node opens the agent's transcript in a modal; no node selected means no modal.
const [selectedId, setSelectedId] = useState<string | null>(null);
const selectedAgent = selectedId ? (agents.find((a) => a.id === selectedId) ?? null) : null;
@@ -758,7 +734,7 @@ function AgentsTab({ run, canSteer }: { run: LoadedRun; canSteer: boolean }) {
<div className="space-y-5">
<div className="rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5">
<div className="flex items-center gap-2">
- <Waypoints className="w-4 h-4 text-[#888]" aria-hidden="true" />
+ <Bot className="w-4 h-4 text-[#888]" aria-hidden="true" />
<h2 className="text-sm font-semibold text-white">Agent graph</h2>
<span className="text-xs text-[#666]">
{agents.length} agent{agents.length === 1 ? "" : "s"}
@@ -797,14 +773,13 @@ function AgentsTab({ run, canSteer }: { run: LoadedRun; canSteer: boolean }) {
</div>
</div>
- {selectedAgent && (
- <AgentDetailModal
- agent={selectedAgent}
- events={events}
- steerable={steerable}
- onClose={() => setSelectedId(null)}
- />
- )}
+ <AgentDetailModal
+ open={selectedAgent !== null}
+ agent={selectedAgent}
+ events={events}
+ steerable={steerable}
+ onClose={() => setSelectedId(null)}
+ />
</div>
);
}
diff --git a/strix/viewer/frontend/src/components/EmailReportView.tsx b/strix/viewer/frontend/src/components/EmailReportView.tsx
index 7f84cddf..7c95365f 100644
--- a/strix/viewer/frontend/src/components/EmailReportView.tsx
+++ b/strix/viewer/frontend/src/components/EmailReportView.tsx
@@ -180,7 +180,7 @@ export default function EmailReportView({
const confirmationEmail = sentTo || auth?.email || email.trim();
return (
- <div className="mx-auto max-w-md space-y-4">
+ <div className="mx-auto max-w-xl space-y-4">
<button
onClick={() => onExit(verifyOnly ? "history" : "overview")}
className="cursor-pointer inline-flex items-center gap-1.5 text-sm text-[#888] transition-colors hover:text-white"
@@ -192,7 +192,7 @@ export default function EmailReportView({
<div className="flex items-center gap-2">
<Mail className="h-5 w-5 text-[#888]" aria-hidden="true" />
<h1 className="text-2xl font-semibold text-white">
- {verifyOnly ? "Verify your email" : "Email report"}
+ {verifyOnly ? "Verify your email" : "Export report to PDF"}
</h1>
</div>
@@ -225,16 +225,13 @@ export default function EmailReportView({
<div className="flex items-start gap-2.5">
<ShieldCheck className="mt-0.5 h-4 w-4 flex-shrink-0 text-emerald-400" aria-hidden="true" />
<p className="text-xs leading-relaxed text-[#aaa]">
- Viewing stays local and nothing is uploaded. Emailing is an explicit
- opt-in: we send an <span className="text-white">encrypted PDF</span>.
+ We email an <span className="text-white">encrypted PDF</span>. Nothing else leaves your machine.
</p>
</div>
<div className="flex items-start gap-2.5">
<Lock className="mt-0.5 h-4 w-4 flex-shrink-0 text-[#888]" aria-hidden="true" />
<p className="text-xs leading-relaxed text-[#aaa]">
- The report is encrypted with a password that only you hold. Strix
- cannot read it and never stores it. We collect only your email so we
- can send it.
+ Only you hold the password; Strix can&apos;t read it.
</p>
</div>
</div>
@@ -269,7 +266,6 @@ export default function EmailReportView({
className="w-full rounded-lg bg-black px-3 py-2.5 text-sm text-white outline-none transition-colors focus:border-[#444]"
style={{ border: "1px solid #2a2a2a" }}
/>
- <span className="mt-1.5 block text-[11px] text-[#666]">Use your work email.</span>
</label>
<button
type="submit"
diff --git a/strix/viewer/frontend/src/components/FeatureDetail.tsx b/strix/viewer/frontend/src/components/FeatureDetail.tsx
deleted file mode 100644
index d5eb4326..00000000
--- a/strix/viewer/frontend/src/components/FeatureDetail.tsx
+++ /dev/null
@@ -1,96 +0,0 @@
-import {
- CalendarClock,
- WandSparkles,
- Puzzle,
- Users,
- ArrowUpRight,
-} from "lucide-react";
-import { SIGNUP_URL, PRICING_URL, ctaUrl, trackCta } from "@/lib/cta";
-import type { ProFeature } from "@/lib/pro-features";
-import { ProTag } from "@/components/ProCta";
-
-/**
- * In-app upsell page for a single platform feature. Modeled on the cloud app's
- * Networks upsell: a centered bordered card with an icon medallion, tier pill,
- * headline, one-line description, a shared "Included in Strix Pro" bullet list,
- * then a primary sign-up CTA and a secondary link to all plans.
- */
-
-const INCLUDED = [
- {
- icon: CalendarClock,
- text: "Continuous coverage: scheduled pentests and attack surface monitoring",
- },
- { icon: WandSparkles, text: "One-click autofix that opens a retested pull request" },
- { icon: Puzzle, text: "Two-way sync to Jira, Linear, and Slack" },
- { icon: Users, text: "Your whole team, with roles and shared history" },
-];
-
-export default function FeatureDetail({ feature }: { feature: ProFeature }) {
- const Icon = feature.icon;
- return (
- <div className="mx-auto w-full max-w-lg">
- <div className="rounded-2xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-8 text-center">
- <div
- className="mx-auto flex h-12 w-12 items-center justify-center rounded-xl"
- style={{ border: "1px solid #2a2a2a", background: "rgba(255,255,255,0.04)" }}
- >
- <Icon className="h-5 w-5 text-[#888]" aria-hidden="true" />
- </div>
-
- <div className="mt-4 flex justify-center">
- <ProTag label={feature.tier} />
- </div>
-
- <h2 className="mt-3 text-2xl font-semibold text-white">{feature.headline}</h2>
- <p className="mx-auto mt-2 max-w-md text-sm text-[#888]">{feature.description}</p>
-
- <div
- className="mt-6 rounded-xl p-4 text-left"
- style={{ border: "1px solid #222", background: "rgba(255,255,255,0.02)" }}
- >
- <p className="mb-3 text-xs font-semibold uppercase tracking-wide text-[#666]">
- Included in Strix Pro
- </p>
- <ul className="space-y-2.5">
- {INCLUDED.map((item) => {
- const BulletIcon = item.icon;
- return (
- <li key={item.text} className="flex items-start gap-2.5">
- <BulletIcon
- className="mt-0.5 h-4 w-4 flex-shrink-0 text-[#888]"
- aria-hidden="true"
- />
- <span className="text-sm text-[#aaa]">{item.text}</span>
- </li>
- );
- })}
- </ul>
- </div>
-
- <div className="mt-6 flex flex-col items-center gap-3">
- <a
- href={ctaUrl(SIGNUP_URL, feature.slug)}
- target="_blank"
- rel="noopener noreferrer"
- onClick={() => trackCta(feature.slug, "feature_page")}
- className="inline-flex w-full items-center justify-center gap-1.5 rounded-lg bg-white px-4 py-2.5 text-sm font-semibold text-black transition-opacity hover:opacity-90"
- >
- Start free
- <ArrowUpRight className="h-3.5 w-3.5" aria-hidden="true" />
- </a>
- <a
- href={ctaUrl(PRICING_URL, feature.slug)}
- target="_blank"
- rel="noopener noreferrer"
- onClick={() => trackCta(feature.slug, "feature_page_plans")}
- className="inline-flex items-center gap-1 text-xs text-[#888] transition-colors hover:text-white"
- >
- View all plans
- <ArrowUpRight className="h-3 w-3" aria-hidden="true" />
- </a>
- </div>
- </div>
- </div>
- );
-}
diff --git a/strix/viewer/frontend/src/components/FeedbackView.tsx b/strix/viewer/frontend/src/components/FeedbackView.tsx
new file mode 100644
index 00000000..f9d6985f
--- /dev/null
+++ b/strix/viewer/frontend/src/components/FeedbackView.tsx
@@ -0,0 +1,134 @@
+import { useState } from "react";
+import { ArrowLeft, AlertCircle, CheckCircle2 } from "lucide-react";
+import { IoChatbubblesOutline } from "react-icons/io5";
+import { submitFeedback } from "@/data/serverSource";
+import type { View } from "@/App";
+
+const MAX_MESSAGE = 5000;
+
+const ERROR_COPY: Record<string, string> = {
+ invalid_email: "That email doesn't look right.",
+ invalid_message: "Please write a little more.",
+ unavailable: "Couldn't send that just now. Try again.",
+};
+
+/**
+ * Feedback & support form. Collects a message plus a work email (no
+ * verification — the email is taken as-is) and relays it to Strix via the local
+ * server. Mirrors EmailReportView's centered-card styling and palette.
+ */
+export default function FeedbackView({
+ defaultEmail,
+ onExit,
+}: {
+ defaultEmail: string | null;
+ onExit: (dest: View) => void;
+}) {
+ const [message, setMessage] = useState("");
+ const [email, setEmail] = useState(defaultEmail ?? "");
+ const [step, setStep] = useState<"form" | "sending" | "sent">("form");
+ const [error, setError] = useState<string | null>(null);
+
+ const canSend = message.trim().length > 0 && email.trim().length > 0 && step !== "sending";
+
+ const send = async () => {
+ if (!canSend) return;
+ setStep("sending");
+ setError(null);
+ const result = await submitFeedback(message.trim(), email.trim());
+ if (result.ok) {
+ setStep("sent");
+ return;
+ }
+ setStep("form");
+ setError(ERROR_COPY[result.error] ?? ERROR_COPY.unavailable);
+ };
+
+ return (
+ <div className="mx-auto max-w-xl space-y-4">
+ <button
+ onClick={() => onExit("overview")}
+ className="cursor-pointer inline-flex items-center gap-1.5 text-sm text-[#888] transition-colors hover:text-white"
+ >
+ <ArrowLeft className="h-4 w-4" />
+ Back to results
+ </button>
+
+ <div className="flex items-center gap-2">
+ <IoChatbubblesOutline className="h-5 w-5 text-[#888]" aria-hidden="true" />
+ <h1 className="text-2xl font-semibold text-white">Feedback &amp; support</h1>
+ </div>
+
+ <div
+ className="w-full rounded-2xl bg-[rgba(255,255,255,0.02)] p-6"
+ style={{ border: "1px solid #2a2a2a" }}
+ >
+ {step === "sent" ? (
+ <div className="flex items-start gap-3">
+ <CheckCircle2 className="mt-0.5 h-5 w-5 flex-shrink-0 text-emerald-400" aria-hidden="true" />
+ <div className="min-w-0">
+ <p className="text-sm font-semibold text-white">Thanks, we got it.</p>
+ <p className="mt-1 text-xs text-[#888]">
+ We read every message. If it needs a reply, we&apos;ll reach out to the email you gave.
+ </p>
+ <button
+ onClick={() => {
+ setMessage("");
+ setStep("form");
+ }}
+ className="mt-4 cursor-pointer text-xs text-[#888] transition-colors hover:text-white"
+ >
+ Send more feedback
+ </button>
+ </div>
+ </div>
+ ) : (
+ <>
+ <p className="mb-4 text-xs text-[#666]">
+ Bugs, feature requests, or anything else. Tell us what&apos;s on your mind.
+ </p>
+
+ {error && (
+ <div className="mb-4 flex items-start gap-2 rounded-lg border border-red-500/30 bg-red-500/5 px-3 py-2">
+ <AlertCircle className="mt-0.5 h-4 w-4 flex-shrink-0 text-red-400" aria-hidden="true" />
+ <p className="text-xs text-red-300">{error}</p>
+ </div>
+ )}
+
+ <label className="block">
+ <span className="mb-1.5 block text-xs text-[#888]">Your feedback</span>
+ <textarea
+ autoFocus
+ value={message}
+ maxLength={MAX_MESSAGE}
+ onChange={(e) => setMessage(e.target.value)}
+ rows={5}
+ placeholder="What's working, what's not, what you'd love to see…"
+ className="w-full resize-y rounded-lg border border-[#2a2a2a] bg-black px-3 py-2.5 text-sm text-white outline-none transition-colors focus:border-white/50 focus:ring-2 focus:ring-white/10"
+ />
+ </label>
+
+ <label className="mt-4 block">
+ <span className="mb-1.5 block text-xs text-[#888]">Your work email</span>
+ <input
+ type="email"
+ value={email}
+ onChange={(e) => setEmail(e.target.value)}
+ placeholder="[email protected]"
+ className="w-full rounded-lg border border-[#2a2a2a] bg-black px-3 py-2.5 text-sm text-white outline-none transition-colors focus:border-white/50 focus:ring-2 focus:ring-white/10"
+ />
+ </label>
+
+ <button
+ onClick={() => void send()}
+ disabled={!canSend}
+ className="mt-4 flex w-full cursor-pointer items-center justify-center gap-2 rounded-lg bg-white px-4 py-2.5 text-sm font-semibold text-black transition-opacity hover:opacity-90 disabled:opacity-60"
+ >
+ {step === "sending" ? "Sending…" : "Send feedback"}
+ </button>
+ </>
+ )}
+ </div>
+ </div>
+ );
+}
diff --git a/strix/viewer/frontend/src/components/PastRunsView.tsx b/strix/viewer/frontend/src/components/PastRunsView.tsx
index ac043097..adfeb4dd 100644
--- a/strix/viewer/frontend/src/components/PastRunsView.tsx
+++ b/strix/viewer/frontend/src/components/PastRunsView.tsx
@@ -143,7 +143,7 @@ export default function PastRunsView({
<button
key={run.name}
onClick={() => onSelectRun(run.name)}
- className={`group flex w-full cursor-pointer items-center gap-4 rounded-lg border px-4 py-3 text-left transition-colors ${
+ className={`animate-card-in group flex w-full cursor-pointer items-center gap-4 rounded-lg border px-4 py-3 text-left transition-colors ${
active
? "border-[#444] bg-[rgba(255,255,255,0.04)]"
: "border-[#222] bg-[rgba(255,255,255,0.02)] hover:border-[#444]"
diff --git a/strix/viewer/frontend/src/components/ProCta.tsx b/strix/viewer/frontend/src/components/ProCta.tsx
index 686b4d40..80fda320 100644
--- a/strix/viewer/frontend/src/components/ProCta.tsx
+++ b/strix/viewer/frontend/src/components/ProCta.tsx
@@ -1,26 +1,5 @@
import React, { useState } from "react";
-import { ArrowUpRight } from "lucide-react";
import { SIGNUP_URL, ctaUrl, trackCta } from "@/lib/cta";
-import type { ProFeature } from "@/lib/pro-features";
-
-/**
- * Shared Pro CTA primitives. Every Pro item is a direct link-out to the cloud
- * sign-up in a new tab with a hover tooltip one-liner (no modal, no lock icon).
- * Built once here and reused by the sidebar Platform section, the top upsell
- * row, and the inline CTAs in the tabs.
- */
-
-/** Small tier pill ("Pro" or "Enterprise"). Deliberately not a padlock. */
-export function ProTag({ label = "Pro", className = "" }: { label?: string; className?: string }) {
- return (
- <span
- className={`inline-flex items-center rounded-full px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-[#aaa] ${className}`}
- style={{ border: "1px solid #2a2a2a", background: "rgba(255,255,255,0.04)" }}
- >
- {label}
- </span>
- );
-}
/**
* Lightweight hover tooltip. Wraps a trigger and reveals `text` above it on
@@ -58,100 +37,10 @@ export function Tooltip({
);
}
-export interface ProItem {
- title: string;
- desc: string;
- slug: string;
- icon: React.ElementType;
-}
-
-/**
- * Card-style Pro feature tile: icon + name + one-liner + Pro tag + arrow.
- * Used in the top upsell row and inline CTA grids.
- */
-export function ProTile({ item, surface }: { item: ProItem; surface?: string }) {
- const Icon = item.icon;
- return (
- <a
- href={ctaUrl(SIGNUP_URL, item.slug)}
- target="_blank"
- rel="noopener noreferrer"
- onClick={() => trackCta(item.slug, surface)}
- title={item.desc}
- className="group block cursor-pointer rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-4 text-left transition-colors hover:border-[#444]"
- >
- <div className="mb-2 flex items-center justify-between">
- <Icon className="h-4 w-4 text-[#888] transition-colors group-hover:text-white" aria-hidden="true" />
- <div className="flex items-center gap-1.5">
- <ProTag />
- <ArrowUpRight className="h-3.5 w-3.5 text-[#555] transition-colors group-hover:text-[#aaa]" aria-hidden="true" />
- </div>
- </div>
- <p className="text-sm font-medium text-white">{item.title}</p>
- <p className="mt-0.5 text-xs text-[#666]">{item.desc}</p>
- </a>
- );
-}
-
-/**
- * Sidebar-row Pro item: a two-line row (icon + label + short one-liner
- * underneath) with a small right-aligned tier tag. Opens the in-app
- * FeatureDetail view via onClick (no link-out) so it sits uniformly beside the
- * run/local rows in the themed nav list.
- */
-export function ProNavItem({
- feature,
- active,
- onClick,
- collapsed = false,
-}: {
- feature: ProFeature;
- active?: boolean;
- onClick: () => void;
- collapsed?: boolean;
-}) {
- const Icon = feature.icon;
- if (collapsed) {
- return (
- <button
- onClick={onClick}
- title={`${feature.title} (${feature.tier})`}
- className={`group flex w-full cursor-pointer items-center justify-center rounded-md px-2.5 py-2 transition-colors ${
- active
- ? "text-white"
- : "text-[#888] hover:bg-[rgba(255,255,255,0.06)] hover:text-white"
- }`}
- style={active ? { background: "rgba(255,255,255,0.12)" } : undefined}
- >
- <Icon className="h-4 w-4 flex-shrink-0" aria-hidden="true" />
- </button>
- );
- }
- return (
- <button
- onClick={onClick}
- className={`group flex w-full cursor-pointer items-start gap-2.5 rounded-md px-2.5 py-1.5 text-left transition-colors ${
- active
- ? "text-white"
- : "text-[#888] hover:bg-[rgba(255,255,255,0.06)] hover:text-white"
- }`}
- style={active ? { background: "rgba(255,255,255,0.12)" } : undefined}
- >
- <Icon className="mt-0.5 h-4 w-4 flex-shrink-0" aria-hidden="true" />
- <span className="min-w-0 flex-1">
- <span className="flex items-center gap-1.5">
- <span className="flex-1 truncate text-sm">{feature.title}</span>
- <ProTag label={feature.tier} />
- </span>
- <span className="mt-0.5 block text-[11px] leading-snug text-[#666]">{feature.navDesc}</span>
- </span>
- </button>
- );
-}
-
/**
- * Inline Pro CTA button (compact). Used in the finding detail and per-surface
- * rows where a full card is too heavy.
+ * Compact inline CTA button that links out to sign-up in a new tab, with a
+ * hover tooltip one-liner. Used in per-surface rows where a full card is too
+ * heavy.
*/
export function ProInlineCta({
label,
@@ -177,7 +66,6 @@ export function ProInlineCta({
>
<Icon className="h-4 w-4 text-[#888] transition-colors group-hover:text-white" aria-hidden="true" />
<span>{label}</span>
- <ProTag className="ml-0.5" />
</a>
</Tooltip>
);
diff --git a/strix/viewer/frontend/src/components/RunDetails.tsx b/strix/viewer/frontend/src/components/RunDetails.tsx
index a387950b..0860b319 100644
--- a/strix/viewer/frontend/src/components/RunDetails.tsx
+++ b/strix/viewer/frontend/src/components/RunDetails.tsx
@@ -72,7 +72,13 @@ export function RunDetails({
const diffMode = str(diff.mode);
const diffBase = str(raw.diff_base);
const nonInteractive = raw.non_interactive === true;
- const localSources = arr(raw.local_sources).map((x) => String(x)).filter(Boolean);
+ const localSources = arr(raw.local_sources)
+ .map((x) => {
+ if (typeof x === "string") return x;
+ const o = rec(x);
+ return str(o.source_path) ?? str(o.target_path) ?? "";
+ })
+ .filter(Boolean);
const status = cap(str(raw.status));
let scope = scopeMode ?? "auto";
diff --git a/strix/viewer/frontend/src/components/Sidebar.tsx b/strix/viewer/frontend/src/components/Sidebar.tsx
index 6ff870c3..f21771c3 100644
--- a/strix/viewer/frontend/src/components/Sidebar.tsx
+++ b/strix/viewer/frontend/src/components/Sidebar.tsx
@@ -1,40 +1,40 @@
-import React, { useEffect, useState } from "react";
+import React, { useCallback, useEffect, useRef, useState } from "react";
import {
- FileText,
- Bug,
- Waypoints,
+ AlertTriangle,
+ Bot,
+ Users,
History,
Mail,
- ArrowUpRight,
LogOut,
- ShieldCheck,
- PanelLeftClose,
- PanelLeft,
+ ChevronsUpDown,
} from "lucide-react";
-import { SIGNUP_URL, ctaUrl, trackCta } from "@/lib/cta";
-import { ProNavItem } from "@/components/ProCta";
-import { FEATURES, PLATFORM_ORDER } from "@/lib/pro-features";
+import { LuGitPullRequestArrow } from "react-icons/lu";
+import { VscExtensions } from "react-icons/vsc";
+import { IoChatbubblesOutline } from "react-icons/io5";
+import { cn } from "@/lib/utils";
+import { ctaUrl, trackCta } from "@/lib/cta";
+import { UpgradeModal } from "@/components/UpgradeModal";
import type { View } from "@/App";
/**
- * Persistent left rail. A single, ungrouped, ordered list of uniform two-line
- * rows (icon + label + short one-liner): the current run's views, the local
- * run-history + email-report actions, then the platform features. No section
- * headers. Tier is shown only by the inline Pro/Enterprise tag on platform
- * rows. Matches App.tsx's dark palette.
- *
- * Can collapse to a narrow icon-only rail; the collapsed state persists in
- * localStorage and each icon row keeps a `title` tooltip so the labels stay
- * discoverable.
+ * Persistent left rail: a black rail with a right hairline border, an
+ * account-switcher-style header, a single ungrouped list of h-9 nav rows (36px
+ * icon slot, 14px label, rgba(255,255,255,0.12) active fill), a hairline
+ * separator, and a user footer. Drag the right edge to resize; drag past the
+ * collapse threshold to hide it, then click the left pull-zone to bring it back.
*/
+const MIN_WIDTH = 160;
+const DEFAULT_WIDTH = 260;
+const MAX_WIDTH = 400;
+const COLLAPSE_THRESHOLD = 140;
+
+const WIDTH_KEY = "strix_viewer_sidebar_width";
const COLLAPSE_KEY = "strix_viewer_sidebar_collapsed";
interface SidebarProps {
view: View;
onSelectView: (view: View) => void;
- activeFeature: string | null;
- onSelectFeature: (slug: string) => void;
issuesCount: number;
agentCount: number;
runCount: number;
@@ -46,11 +46,19 @@ interface SidebarProps {
onForget: () => void;
}
+function readInt(key: string, fallback: number): number {
+ try {
+ const raw = localStorage.getItem(key);
+ const n = raw ? parseInt(raw, 10) : NaN;
+ return Number.isFinite(n) ? n : fallback;
+ } catch {
+ return fallback;
+ }
+}
+
export default function Sidebar({
view,
onSelectView,
- activeFeature,
- onSelectFeature,
issuesCount,
agentCount,
runCount,
@@ -61,229 +69,357 @@ export default function Sidebar({
onOpenHistory,
onForget,
}: SidebarProps) {
- const [collapsed, setCollapsed] = useState(false);
+ const [width, setWidth] = useState(() => {
+ const w = readInt(WIDTH_KEY, DEFAULT_WIDTH);
+ return Math.min(MAX_WIDTH, Math.max(MIN_WIDTH, w));
+ });
+ const [collapsed, setCollapsed] = useState(() => {
+ try {
+ return localStorage.getItem(COLLAPSE_KEY) === "1";
+ } catch {
+ return false;
+ }
+ });
+ const [isResizing, setIsResizing] = useState(false);
+ const [showUserMenu, setShowUserMenu] = useState(false);
+ const [upgradeFeature, setUpgradeFeature] = useState<string | null>(null);
+ const userMenuRef = useRef<HTMLDivElement>(null);
- useEffect(() => {
+ const persistWidth = useCallback((w: number) => {
+ setWidth(w);
+ try {
+ localStorage.setItem(WIDTH_KEY, String(w));
+ } catch {
+ /* best-effort persistence */
+ }
+ }, []);
+
+ const persistCollapsed = useCallback((c: boolean) => {
+ setCollapsed(c);
try {
- setCollapsed(localStorage.getItem(COLLAPSE_KEY) === "1");
+ localStorage.setItem(COLLAPSE_KEY, c ? "1" : "0");
} catch {
- /* localStorage may be unavailable; default to expanded */
+ /* best-effort persistence */
}
}, []);
- const toggleCollapsed = () => {
- setCollapsed((prev) => {
- const next = !prev;
- try {
- localStorage.setItem(COLLAPSE_KEY, next ? "1" : "0");
- } catch {
- /* best-effort persistence */
+ const expandSidebar = useCallback(() => {
+ persistCollapsed(false);
+ persistWidth(DEFAULT_WIDTH);
+ }, [persistCollapsed, persistWidth]);
+
+ const handleResizeStart = useCallback((e: React.MouseEvent) => {
+ e.preventDefault();
+ setIsResizing(true);
+ }, []);
+
+ // Global drag handlers for the resize handle. Dragging below the collapse
+ // threshold hides the rail entirely.
+ useEffect(() => {
+ if (!isResizing || collapsed) return;
+
+ const handleMouseMove = (e: MouseEvent) => {
+ const newWidth = e.clientX;
+ if (newWidth >= MIN_WIDTH && newWidth <= MAX_WIDTH) {
+ setWidth(newWidth);
+ } else if (newWidth > MAX_WIDTH) {
+ setWidth(MAX_WIDTH);
+ }
+ };
+ const handleMouseUp = (e: MouseEvent) => {
+ const finalWidth = e.clientX;
+ if (finalWidth < COLLAPSE_THRESHOLD) {
+ persistCollapsed(true);
+ persistWidth(DEFAULT_WIDTH);
+ } else {
+ persistWidth(Math.min(MAX_WIDTH, Math.max(MIN_WIDTH, finalWidth)));
+ }
+ setIsResizing(false);
+ };
+
+ window.addEventListener("mousemove", handleMouseMove);
+ window.addEventListener("mouseup", handleMouseUp);
+ return () => {
+ window.removeEventListener("mousemove", handleMouseMove);
+ window.removeEventListener("mouseup", handleMouseUp);
+ };
+ }, [isResizing, collapsed, persistCollapsed, persistWidth]);
+
+ // Close the user menu when clicking outside it.
+ useEffect(() => {
+ if (!showUserMenu) return;
+ const onDown = (e: MouseEvent) => {
+ if (userMenuRef.current && !userMenuRef.current.contains(e.target as Node)) {
+ setShowUserMenu(false);
}
- return next;
- });
- };
+ };
+ document.addEventListener("mousedown", onDown);
+ return () => document.removeEventListener("mousedown", onDown);
+ }, [showUserMenu]);
return (
- <aside
- className={`hidden flex-shrink-0 border-r border-[#222] lg:block ${collapsed ? "w-14" : "w-72"}`}
- >
- <div className="sticky top-0 flex h-screen flex-col overflow-y-auto px-3 py-4">
- {/* Header: wordmark + Explore full platform + signed-in chip */}
- <div className="px-1.5">
- <div className={`flex items-center ${collapsed ? "flex-col gap-2" : "justify-between"}`}>
- <a
- href={ctaUrl("https://app.strix.ai", "logo")}
- target="_blank"
- rel="noopener noreferrer"
- onClick={() => trackCta("logo", "sidebar")}
- className="flex items-center gap-1.5 opacity-90 transition-opacity hover:opacity-100"
- title="Open Strix Cloud"
- >
- <img src="./logo.png" alt="Strix" className="h-8 w-10 object-cover" />
- {!collapsed && (
- <span className="text-base font-medium tracking-tight text-white">Strix</span>
- )}
- </a>
- <button
- onClick={toggleCollapsed}
- title={collapsed ? "Expand sidebar" : "Collapse sidebar"}
- aria-label={collapsed ? "Expand sidebar" : "Collapse sidebar"}
- className="flex-shrink-0 cursor-pointer rounded-md p-1.5 text-[#666] transition-colors hover:bg-[rgba(255,255,255,0.06)] hover:text-white"
- >
- {collapsed ? (
- <PanelLeft className="h-4 w-4" aria-hidden="true" />
- ) : (
- <PanelLeftClose className="h-4 w-4" aria-hidden="true" />
- )}
- </button>
+ <>
+ {/* Left-edge pull zone: click to bring the rail back when collapsed. */}
+ {collapsed && (
+ <div
+ className="fixed left-0 top-0 z-40 hidden h-full w-4 cursor-pointer transition-colors hover:bg-[rgba(255,255,255,0.08)] lg:block"
+ onClick={expandSidebar}
+ title="Expand sidebar"
+ />
+ )}
+
+ <aside
+ className={cn(
+ "sticky top-0 z-20 hidden h-screen flex-shrink-0 flex-col overflow-hidden border-r border-[rgba(255,255,255,0.08)] bg-black lg:flex",
+ !isResizing && "transition-[width] duration-200 ease-out"
+ )}
+ style={{ width: collapsed ? 0 : width }}
+ >
+ {/* Header — account-switcher stand-in (links out to Strix Cloud). */}
+ <header className="relative flex flex-col gap-1 pt-1 min-w-[160px]">
+ <div className="flex flex-row py-1 px-2">
+ <div className="flex h-10 w-full flex-row items-center">
+ <a
+ href={ctaUrl("https://app.strix.ai", "logo")}
+ target="_blank"
+ rel="noopener noreferrer"
+ onClick={() => trackCta("logo", "sidebar")}
+ className="flex flex-1 flex-row items-center gap-2 rounded-md py-2 pl-2.5 pr-1 min-w-0 transition-colors hover:bg-[rgba(255,255,255,0.06)]"
+ title="Open Strix Cloud"
+ >
+ <span
+ className="flex flex-shrink-0 items-center justify-center rounded-full bg-gradient-to-br from-emerald-400 to-cyan-500"
+ style={{ width: 20, height: 20 }}
+ >
+ <span className="text-[10px] font-semibold text-white">S</span>
+ </span>
+ <span className="flex flex-1 flex-row items-center gap-2 min-w-0">
+ <span className="truncate min-w-0 text-[14px] font-medium text-[#ededed]">Strix</span>
+ <span className="flex h-5 flex-shrink-0 items-center rounded px-2 text-[11px] font-medium text-[#888] bg-[rgba(255,255,255,0.08)]">
+ Local
+ </span>
+ </span>
+ </a>
+ <a
+ href={ctaUrl("https://app.strix.ai", "logo")}
+ target="_blank"
+ rel="noopener noreferrer"
+ onClick={() => trackCta("logo", "sidebar")}
+ className="flex flex-none items-center rounded-md px-1.5 py-2 transition-colors hover:bg-[rgba(255,255,255,0.06)]"
+ aria-label="Open Strix Cloud"
+ >
+ <ChevronsUpDown className="h-4 w-4 text-[#666]" />
+ </a>
+ </div>
+ </div>
+ </header>
+
+ {/* Navigation */}
+ <nav className="relative min-w-[160px] flex-1 overflow-y-auto overflow-x-clip scrollbar-thin pb-10 pt-2">
+ <div className="relative flex flex-col gap-px px-2">
+ <NavItem
+ icon={<ProjectsIcon />}
+ label="Overview"
+ active={view === "overview"}
+ onClick={() => onSelectView("overview")}
+ />
+ <NavItem
+ icon={<AlertTriangle className="h-4 w-4" />}
+ label="Issues"
+ count={issuesCount > 0 ? issuesCount : undefined}
+ active={view === "issues"}
+ onClick={() => onSelectView("issues")}
+ />
+ {agentCount > 0 && (
+ <NavItem
+ icon={<Bot className="h-4 w-4" />}
+ label="Agents"
+ count={agentCount}
+ active={view === "agents"}
+ onClick={() => onSelectView("agents")}
+ />
+ )}
+ <NavItem
+ icon={<History className="h-4 w-4" />}
+ label="Past runs"
+ count={runCount > 0 ? runCount : undefined}
+ active={view === "history"}
+ onClick={onOpenHistory}
+ />
+ {finished && (
+ <NavItem
+ icon={<Mail className="h-4 w-4" />}
+ label="Export report"
+ active={view === "email"}
+ onClick={onOpenEmail}
+ />
+ )}
+ <NavItem
+ icon={<IoChatbubblesOutline className="h-4 w-4" />}
+ label="Feedback & support"
+ active={view === "feedback"}
+ onClick={() => onSelectView("feedback")}
+ />
+
+ <hr className="mx-0 my-1 h-px w-full border-0 bg-[rgba(255,255,255,0.08)]" />
+
+ <NavItem
+ icon={<LuGitPullRequestArrow className="h-4 w-4" />}
+ label="PR Security Reviews"
+ active={false}
+ onClick={() =>
+ setUpgradeFeature(
+ "Strix reviews every pull request and flags exploitable changes before they merge."
+ )
+ }
+ />
+ <NavItem
+ icon={<VscExtensions className="h-4 w-4" />}
+ label="Integrations"
+ active={false}
+ onClick={() =>
+ setUpgradeFeature(
+ "Sync findings to Jira, Linear, and Slack so fixes happen where your team already works."
+ )
+ }
+ />
+ <NavItem
+ icon={<Users className="h-4 w-4" />}
+ label="Members"
+ active={false}
+ onClick={() =>
+ setUpgradeFeature(
+ "Invite your team, set roles, and share findings and run history across your org."
+ )
+ }
+ />
</div>
- <a
- href={ctaUrl(SIGNUP_URL, "sidebar_start_free")}
- target="_blank"
- rel="noopener noreferrer"
- onClick={() => trackCta("sidebar_start_free", "sidebar")}
- title="Explore full platform"
- className={`mt-3 flex w-full cursor-pointer items-center justify-center gap-1.5 rounded-lg bg-white font-semibold text-black transition-opacity hover:opacity-90 ${
- collapsed ? "px-0 py-2" : "px-3 py-2 text-sm"
- }`}
- >
- {!collapsed && "Explore full platform"}
- <ArrowUpRight className="h-3.5 w-3.5" aria-hidden="true" />
- </a>
- {verified && email && (
- collapsed ? (
- <div
- className="mt-2.5 flex items-center justify-center rounded-lg py-2"
- style={{ border: "1px solid #222", background: "rgba(255,255,255,0.02)" }}
- title={`Linked email: ${email}`}
+ </nav>
+
+ {/* User footer — verified-email footer. */}
+ <section className="flex min-w-[160px] flex-col gap-0.5" ref={userMenuRef}>
+ <div className="relative p-2">
+ {verified && email ? (
+ <button
+ onClick={() => setShowUserMenu((v) => !v)}
+ className="relative flex w-full cursor-pointer items-center gap-2 rounded-md bg-transparent px-2.5 py-2 transition-colors hover:bg-[rgba(255,255,255,0.06)]"
>
- <ShieldCheck className="h-3.5 w-3.5 flex-shrink-0 text-emerald-400" aria-hidden="true" />
- </div>
+ <span
+ className="flex flex-shrink-0 items-center justify-center rounded-full bg-gradient-to-br from-emerald-400 to-cyan-500"
+ style={{ width: 20, height: 20 }}
+ >
+ <span className="text-[9px] font-semibold text-white">
+ {email[0]?.toUpperCase() || "U"}
+ </span>
+ </span>
+ <span className="flex min-w-0 flex-1 flex-col text-left">
+ <span className="truncate text-[13px] font-medium text-[#ededed]">{email}</span>
+ <span className="truncate text-[11px] text-[#555]">Linked to this machine</span>
+ </span>
+ </button>
) : (
- <div
- className="mt-2.5 flex items-center gap-2 rounded-lg px-2.5 py-2"
- style={{ border: "1px solid #222", background: "rgba(255,255,255,0.02)" }}
- >
- <ShieldCheck className="h-3.5 w-3.5 flex-shrink-0 text-emerald-400" aria-hidden="true" />
- <div className="min-w-0 flex-1">
- <p className="truncate text-[11px] text-[#666]">Linked email</p>
- <p className="truncate text-xs text-[#aaa]" title={email}>{email}</p>
+ <div className="flex items-center gap-2 rounded-md px-2.5 py-2">
+ <span
+ className="flex flex-shrink-0 items-center justify-center rounded-full bg-gradient-to-br from-emerald-400 to-cyan-500"
+ style={{ width: 20, height: 20 }}
+ >
+ <span className="text-[9px] font-semibold text-white">S</span>
+ </span>
+ <span className="flex min-w-0 flex-1 flex-col text-left">
+ <span className="truncate text-[13px] font-medium text-[#ededed]">Local viewer</span>
+ </span>
+ </div>
+ )}
+
+ {showUserMenu && verified && email && (
+ <div className="absolute bottom-full left-2 right-2 z-50 mb-1 overflow-hidden rounded-lg border border-[#333] bg-black shadow-xl">
+ <div className="border-b border-[#333] px-3 py-2">
+ <p className="truncate text-[13px] font-medium text-white">Linked email</p>
+ <p className="truncate text-[11px] text-[#666]">{email}</p>
</div>
<button
- onClick={onForget}
- title="Forget this email on this machine"
- className="flex-shrink-0 cursor-pointer text-[#666] transition-colors hover:text-white"
- aria-label="Forget"
+ onClick={() => {
+ setShowUserMenu(false);
+ onForget();
+ }}
+ className="flex w-full items-center gap-2 px-3 py-2 text-[13px] text-[#888] transition-colors hover:bg-[rgba(255,255,255,0.06)] hover:text-red-400"
>
- <LogOut className="h-3.5 w-3.5" />
+ <LogOut className="h-4 w-4" />
+ Forget this email
</button>
</div>
- )
- )}
- </div>
+ )}
+ </div>
+ </section>
- {/* One single ordered list, no section headers. */}
- <div className="mt-6 space-y-0.5">
- <NavItem
- icon={FileText}
- label="Overview"
- desc="This run's executive report"
- active={view === "overview"}
- onClick={() => onSelectView("overview")}
- collapsed={collapsed}
- />
- <NavItem
- icon={Bug}
- label="Issues"
- desc="Findings from this run"
- count={issuesCount > 0 ? issuesCount : undefined}
- active={view === "issues"}
- onClick={() => onSelectView("issues")}
- collapsed={collapsed}
- />
- {agentCount > 0 && (
- <NavItem
- icon={Waypoints}
- label="Agents"
- desc="What each agent did"
- count={agentCount}
- active={view === "agents"}
- onClick={() => onSelectView("agents")}
- collapsed={collapsed}
- />
- )}
- <NavItem
- icon={History}
- label="Past runs"
- desc="Every run on this machine"
- count={runCount > 0 ? runCount : undefined}
- active={view === "history"}
- onClick={onOpenHistory}
- collapsed={collapsed}
+ {/* Resize handle */}
+ <div
+ className="group absolute right-0 top-0 z-30 h-full w-1 cursor-col-resize"
+ onMouseDown={handleResizeStart}
+ >
+ <div
+ className={cn(
+ "absolute right-0 top-0 h-full w-px bg-[rgba(255,255,255,0.08)] transition-all duration-100",
+ isResizing ? "w-0.5 bg-[rgba(255,255,255,0.3)]" : "group-hover:bg-[rgba(255,255,255,0.2)]"
+ )}
/>
- {/* Emailing a report only makes sense once the run is complete; a
- live scan would send a partial report, so hide it until finished. */}
- {finished && (
- <NavItem
- icon={Mail}
- label="Email report"
- desc="Get an encrypted PDF by email"
- active={view === "email"}
- onClick={onOpenEmail}
- collapsed={collapsed}
- />
- )}
-
- {PLATFORM_ORDER.map((slug) => {
- const feature = FEATURES[slug];
- if (!feature) return null;
- return (
- <ProNavItem
- key={slug}
- feature={feature}
- active={view === "feature" && activeFeature === slug}
- onClick={() => onSelectFeature(slug)}
- collapsed={collapsed}
- />
- );
- })}
</div>
- </div>
- </aside>
+ </aside>
+
+ {/* Overlay during resize to prevent text selection. */}
+ {isResizing && <div className="fixed inset-0 z-10 cursor-col-resize" />}
+
+ <UpgradeModal
+ open={upgradeFeature !== null}
+ description={upgradeFeature ?? ""}
+ source="sidebar"
+ onClose={() => setUpgradeFeature(null)}
+ />
+ </>
);
}
-function NavItem({
- icon: Icon,
- label,
- desc,
- count,
- active,
- onClick,
- collapsed = false,
-}: {
- icon: React.ElementType;
+interface NavItemProps {
+ icon: React.ReactNode;
label: string;
- desc: string;
- count?: number;
- active?: boolean;
+ active: boolean;
onClick: () => void;
- collapsed?: boolean;
-}) {
- if (collapsed) {
- return (
- <button
- onClick={onClick}
- title={count != null ? `${label} (${count})` : label}
- className={`flex w-full cursor-pointer items-center justify-center rounded-md px-2.5 py-2 transition-colors ${
- active
- ? "text-white"
- : "text-[#888] hover:bg-[rgba(255,255,255,0.06)] hover:text-white"
- }`}
- style={active ? { background: "rgba(255,255,255,0.12)" } : undefined}
- >
- <Icon className="h-4 w-4 flex-shrink-0" aria-hidden="true" />
- </button>
- );
- }
+ count?: number;
+}
+
+function NavItem({ icon, label, active, onClick, count }: NavItemProps) {
return (
<button
onClick={onClick}
- className={`flex w-full cursor-pointer items-start gap-2.5 rounded-md px-2.5 py-1.5 text-left transition-colors ${
+ className={cn(
+ "group flex h-9 w-full origin-left flex-row items-center rounded-md transition-colors",
active
- ? "text-white"
- : "text-[#888] hover:bg-[rgba(255,255,255,0.06)] hover:text-white"
- }`}
- style={active ? { background: "rgba(255,255,255,0.12)" } : undefined}
+ ? "bg-[rgba(255,255,255,0.12)] text-white"
+ : "text-[#888] hover:bg-[rgba(255,255,255,0.06)] hover:text-[#ededed]"
+ )}
>
- <Icon className="mt-0.5 h-4 w-4 flex-shrink-0" aria-hidden="true" />
- <span className="min-w-0 flex-1">
- <span className="flex items-center gap-1.5">
- <span className="flex-1 truncate text-sm">{label}</span>
- {count != null && <span className="text-xs text-[#666] tabular-nums">{count}</span>}
+ <div className="grid flex-none place-content-center" style={{ width: 36, height: 36 }}>
+ {icon}
+ </div>
+ <span className="min-w-0 flex-1 truncate text-left text-[14px] font-medium">{label}</span>
+ {count != null && (
+ <span className="mr-2 flex-none rounded-full border border-white/10 px-2 py-0.5 text-[10px] tabular-nums leading-none text-[#777]">
+ {count}
</span>
- <span className="mt-0.5 block text-[11px] leading-snug text-[#666]">{desc}</span>
- </span>
+ )}
</button>
);
}
+
+// Overview icon: a dashboard grid glyph (16x16 viewBox).
+function ProjectsIcon() {
+ return (
+ <svg style={{ width: 16, height: 16, color: "currentcolor" }} viewBox="0 0 16 16" fill="currentColor">
+ <path
+ fillRule="evenodd"
+ clipRule="evenodd"
+ d="M2.5 5.5V2.5H5.5V5.5H2.5ZM1 2C1 1.44772 1.44772 1 2 1H6C6.55228 1 7 1.44772 7 2V6C7 6.55228 6.55228 7 6 7H2C1.44772 7 1 6.55228 1 6V2ZM2.5 13.5V10.5H5.5V13.5H2.5ZM1 10C1 9.44772 1.44772 9 2 9H6C6.55228 9 7 9.44772 7 10V14C7 14.5523 6.55228 15 6 15H2C1.44772 15 1 14.5523 1 14V10ZM10.5 2.5V5.5H13.5V2.5H10.5ZM10 1C9.44772 1 9 1.44772 9 2V6C9 6.55228 9.44772 7 10 7H14C14.5523 7 15 6.55228 15 6V2C15 1.44772 14.5523 1 14 1H10ZM10.5 13.5V10.5H13.5V13.5H10.5ZM9 10C9 9.44772 9.44772 9 10 9H14C14.5523 9 15 9.44772 15 10V14C15 14.5523 14.5523 15 14 15H10C9.44772 15 9 14.5523 9 14V10Z"
+ />
+ </svg>
+ );
+}
diff --git a/strix/viewer/frontend/src/components/UpgradeModal.tsx b/strix/viewer/frontend/src/components/UpgradeModal.tsx
new file mode 100644
index 00000000..1c39b976
--- /dev/null
+++ b/strix/viewer/frontend/src/components/UpgradeModal.tsx
@@ -0,0 +1,150 @@
+import { useEffect, useState } from "react";
+import {
+ X,
+ Sparkles,
+ ExternalLink,
+ GitPullRequest,
+ Shield,
+ Zap,
+ CalendarClock,
+ WandSparkles,
+ Plug,
+} from "lucide-react";
+import { SIGNUP_URL, PRICING_URL, ctaUrl, trackCta } from "@/lib/cta";
+
+/**
+ * Dialog shown when a platform feature is clicked in the sidebar: a short
+ * description of the feature plus what Strix Cloud includes. The local viewer
+ * has no billing, so both CTAs link out to the public sign-up / pricing pages.
+ */
+
+const CLOUD_HIGHLIGHTS: { icon: React.ElementType; label: string }[] = [
+ { icon: GitPullRequest, label: "PR security reviews" },
+ { icon: Shield, label: "Attack surface monitoring" },
+ { icon: Zap, label: "Real-time threat intelligence" },
+ { icon: CalendarClock, label: "Scheduled pentesting" },
+ { icon: WandSparkles, label: "One-click autofix" },
+ { icon: Plug, label: "Jira, Linear & Slack integrations" },
+];
+
+export function UpgradeModal({
+ open,
+ onClose,
+ description,
+ source = "sidebar",
+}: {
+ open: boolean;
+ onClose: () => void;
+ /** A short sentence describing what the clicked feature does. */
+ description: string;
+ source?: string;
+}) {
+ // Keep the dialog mounted through its exit animation: `render` controls
+ // presence in the DOM and `state` ("open"/"closed") drives the keyframe. On
+ // close we flip to "closed", let the 200ms animation play, then unmount --
+ // the same lifecycle Radix gives shadcn's Dialog.
+ const [render, setRender] = useState(open);
+ const [state, setState] = useState<"open" | "closed">(open ? "open" : "closed");
+
+ useEffect(() => {
+ if (open) {
+ setRender(true);
+ setState("open");
+ return;
+ }
+ setState("closed");
+ const t = setTimeout(() => setRender(false), 200);
+ return () => clearTimeout(t);
+ }, [open]);
+
+ useEffect(() => {
+ if (!render) return;
+ const onKey = (e: KeyboardEvent) => {
+ if (e.key === "Escape") onClose();
+ };
+ document.addEventListener("keydown", onKey);
+ const prevOverflow = document.body.style.overflow;
+ document.body.style.overflow = "hidden";
+ return () => {
+ document.removeEventListener("keydown", onKey);
+ document.body.style.overflow = prevOverflow;
+ };
+ }, [render, onClose]);
+
+ if (!render) return null;
+
+ return (
+ <div
+ data-state={state}
+ className="dialog-overlay fixed inset-0 z-50 flex items-center justify-center bg-black/80 p-4"
+ onClick={onClose}
+ role="dialog"
+ aria-modal="true"
+ aria-label="Upgrade your plan"
+ >
+ <div
+ data-state={state}
+ className="dialog-panel relative w-full max-w-md rounded-2xl border border-[#222] bg-black p-6 shadow-lg sm:rounded-lg"
+ onClick={(e) => e.stopPropagation()}
+ >
+ <button
+ type="button"
+ onClick={onClose}
+ aria-label="Close"
+ className="absolute right-4 top-4 rounded-md p-1 text-[#888] transition-colors hover:bg-[#1a1a1a] hover:text-white"
+ >
+ <X className="h-4 w-4" />
+ </button>
+
+ <div>
+ <h2 className="text-lg text-white">Available in Strix Cloud</h2>
+ {description && (
+ <p className="mt-2 text-base leading-relaxed text-[#e5e5e5]">{description}</p>
+ )}
+ </div>
+
+ <div className="space-y-4 pt-4">
+ <div className="rounded-xl border border-[#333] bg-[#0a0a0a] p-4 sm:rounded-lg">
+ <div className="mb-3 flex items-center gap-2">
+ <Sparkles className="h-4 w-4 text-blue-400" />
+ <span className="text-sm font-medium text-white">Strix Cloud also includes</span>
+ </div>
+ <ul className="space-y-2 text-sm text-[#888]">
+ {CLOUD_HIGHLIGHTS.map((f) => (
+ <li key={f.label} className="flex items-center gap-2">
+ <f.icon className="h-3.5 w-3.5 text-[#555]" />
+ {f.label}
+ </li>
+ ))}
+ </ul>
+ </div>
+
+ <div className="flex flex-col gap-2">
+ <a
+ href={ctaUrl(SIGNUP_URL, "upgrade_try_free")}
+ target="_blank"
+ rel="noopener noreferrer"
+ onClick={() => trackCta("upgrade_try_free", source)}
+ className="flex h-10 w-full items-center justify-center gap-2 rounded-lg bg-white px-4 text-sm font-semibold text-black transition-colors hover:bg-neutral-200"
+ >
+ Open Strix Cloud
+ <ExternalLink className="h-3.5 w-3.5" />
+ </a>
+ <a
+ href={ctaUrl(PRICING_URL, "upgrade_view_plans")}
+ target="_blank"
+ rel="noopener noreferrer"
+ onClick={() => trackCta("upgrade_view_plans", source)}
+ className="flex h-9 w-full items-center justify-center gap-1.5 rounded-lg border border-[#333] px-4 text-sm font-medium text-[#888] transition-colors hover:border-[#555] hover:text-white"
+ >
+ Learn more
+ <ExternalLink className="h-3 w-3" />
+ </a>
+ </div>
+ </div>
+ </div>
+ </div>
+ );
+}
+
+export default UpgradeModal;
diff --git a/strix/viewer/frontend/src/components/live/AgentDetailModal.tsx b/strix/viewer/frontend/src/components/live/AgentDetailModal.tsx
index 529e918a..c871ba81 100644
--- a/strix/viewer/frontend/src/components/live/AgentDetailModal.tsx
+++ b/strix/viewer/frontend/src/components/live/AgentDetailModal.tsx
@@ -1,4 +1,4 @@
-import { useCallback, useEffect, useRef } from "react";
+import { useCallback, useEffect, useRef, useState } from "react";
import { X } from "lucide-react";
import { AgentTranscript } from "./AgentTranscript";
import { ScanPromptComposer } from "./ScanPromptComposer";
@@ -18,19 +18,27 @@ const STATUS_DOT: Record<string, string> = {
const NEAR_BOTTOM_PX = 80;
/**
- * Overlay modal showing a single agent's full transcript. Matches the cloud
- * app: a fixed-size panel with a pinned header (status dot + agent name), the
- * transcript scrolling beneath it, and a footer. Auto-scrolls to follow new
- * activity while the user is near the bottom (so a live run trails). Closes on
- * backdrop click, the X button, or Escape.
+ * Overlay modal showing a single agent's full transcript. A centered
+ * ``max-w-6xl`` / ``60vh`` panel that animates in and out via the shared
+ * ``agent-modal`` data-state keyframes (fade), with a pinned header
+ * (status dot + agent name),
+ * the transcript scrolling beneath it, and a footer. Auto-scrolls to follow new
+ * activity while the user is near the bottom. Closes on backdrop click, the X
+ * button, or Escape.
+ *
+ * Driven by an ``open`` prop (rather than conditional mounting) so the exit
+ * animation can play before unmount; the last agent is retained through the
+ * close so content doesn't blank out mid-animation.
*/
export function AgentDetailModal({
+ open,
agent,
events,
steerable,
onClose,
}: {
- agent: TranscriptAgent;
+ open: boolean;
+ agent: TranscriptAgent | null;
events: TranscriptEvent[];
steerable: boolean;
onClose: () => void;
@@ -38,6 +46,42 @@ export function AgentDetailModal({
const scrollRef = useRef<HTMLDivElement>(null);
const nearBottom = useRef(false);
+ // Keep the modal mounted through its exit animation (see UpgradeModal).
+ const [render, setRender] = useState(open);
+ const [state, setState] = useState<"open" | "closed">(open ? "open" : "closed");
+ // Defer the (heavy) transcript one frame so the shell + fade paint instantly
+ // instead of waiting on the full event list to render.
+ const [contentReady, setContentReady] = useState(false);
+
+ // Retain the last non-null agent so the panel keeps rendering its content
+ // during the close animation, after the parent has cleared the selection.
+ const lastAgentRef = useRef<TranscriptAgent | null>(agent);
+ useEffect(() => {
+ if (agent) lastAgentRef.current = agent;
+ }, [agent]);
+ const shownAgent = agent ?? lastAgentRef.current;
+
+ useEffect(() => {
+ if (open) {
+ setRender(true);
+ setState("open");
+ return;
+ }
+ setState("closed");
+ const t = setTimeout(() => setRender(false), 140);
+ return () => clearTimeout(t);
+ }, [open]);
+
+ // Mount the transcript a frame after the shell is on screen.
+ useEffect(() => {
+ if (!render) {
+ setContentReady(false);
+ return;
+ }
+ const id = requestAnimationFrame(() => setContentReady(true));
+ return () => cancelAnimationFrame(id);
+ }, [render]);
+
const handleScroll = useCallback(() => {
const el = scrollRef.current;
if (!el) return;
@@ -54,6 +98,7 @@ export function AgentDetailModal({
}, [events]);
useEffect(() => {
+ if (!render) return;
const onKey = (e: KeyboardEvent) => {
if (e.key === "Escape") onClose();
};
@@ -64,27 +109,30 @@ export function AgentDetailModal({
document.removeEventListener("keydown", onKey);
document.body.style.overflow = prevOverflow;
};
- }, [onClose]);
+ }, [render, onClose]);
+
+ if (!render || !shownAgent) return null;
return (
<div
- className="fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4 sm:p-8"
+ data-state={state}
+ className="agent-modal fixed inset-0 z-50 flex items-center justify-center bg-black/80 p-4 sm:p-8"
onClick={onClose}
role="dialog"
aria-modal="true"
- aria-label={`Agent ${agent.name}`}
+ aria-label={`Agent ${shownAgent.name}`}
>
<div
- className="relative flex h-[80vh] w-full max-w-5xl flex-col rounded-xl border border-[#222] bg-[#0a0a0a] shadow-2xl"
+ className="relative flex h-[60vh] w-[calc(100vw-4rem)] max-w-6xl flex-col overflow-hidden rounded-xl border border-[#222] bg-[#0a0a0a] shadow-2xl"
onClick={(e) => e.stopPropagation()}
>
<div className="flex items-center justify-between gap-3 border-b border-[#222] px-5 py-3.5">
<div className="flex min-w-0 items-center gap-2">
<span
- className={`h-2 w-2 flex-shrink-0 rounded-full ${STATUS_DOT[agent.status] ?? "bg-[#888]"}`}
+ className={`h-2 w-2 flex-shrink-0 rounded-full ${STATUS_DOT[shownAgent.status] ?? "bg-[#888]"}`}
/>
- <span className="truncate text-sm font-semibold text-white">{agent.name}</span>
- <span className="flex-shrink-0 font-mono text-xs text-[#555]">{agent.id}</span>
+ <span className="truncate text-sm font-semibold text-white">{shownAgent.name}</span>
+ <span className="flex-shrink-0 font-mono text-xs text-[#555]">{shownAgent.id}</span>
</div>
<button
type="button"
@@ -97,14 +145,16 @@ export function AgentDetailModal({
</div>
<div ref={scrollRef} onScroll={handleScroll} className="flex-1 overflow-y-auto p-5">
- <AgentTranscript agent={agent} events={events} showHeader={false} />
+ {contentReady && (
+ <AgentTranscript agent={shownAgent} events={events} showHeader={false} />
+ )}
</div>
{steerable && (
<div className="border-t border-[#222] px-5 py-3">
<ScanPromptComposer
- agents={[agent]}
- fixedAgentId={agent.id}
+ agents={[shownAgent]}
+ fixedAgentId={shownAgent.id}
className="mt-0"
/>
</div>
diff --git a/strix/viewer/frontend/src/components/live/tool-renderers/LoadSkillRenderer.tsx b/strix/viewer/frontend/src/components/live/tool-renderers/LoadSkillRenderer.tsx
index ef99d710..c0aa2292 100644
--- a/strix/viewer/frontend/src/components/live/tool-renderers/LoadSkillRenderer.tsx
+++ b/strix/viewer/frontend/src/components/live/tool-renderers/LoadSkillRenderer.tsx
@@ -3,10 +3,11 @@
import type { ToolRendererProps } from "@/types/events";
export default function LoadSkillRenderer({ args }: ToolRendererProps) {
- const requestedRaw = (args.skills as string) ?? "";
- const requestedSkills = requestedRaw
- .split(",")
- .map((skill) => skill.trim())
+ // `skills` may arrive as an array of names or a comma-separated string
+ // depending on the tool call, so normalize both to a clean list.
+ const raw = args.skills;
+ const requestedSkills = (Array.isArray(raw) ? raw : String(raw ?? "").split(","))
+ .map((skill) => String(skill).trim())
.filter(Boolean);
return (
diff --git a/strix/viewer/frontend/src/components/vulnerability/VulnerabilityDetail.tsx b/strix/viewer/frontend/src/components/vulnerability/VulnerabilityDetail.tsx
index 1f324f4b..09e591ba 100644
--- a/strix/viewer/frontend/src/components/vulnerability/VulnerabilityDetail.tsx
+++ b/strix/viewer/frontend/src/components/vulnerability/VulnerabilityDetail.tsx
@@ -1,8 +1,8 @@
"use client";
import React, { useState } from "react";
-import { Clock, CheckCircle2, Ban, History, BellOff, Wrench, GitMerge, GitPullRequest } from "lucide-react";
-import { ProInlineCta } from "@/components/ProCta";
+import { Clock, CheckCircle2, Ban, History, BellOff, Wrench, GitMerge } from "lucide-react";
+import { SIGNUP_URL, ctaUrl, trackCta } from "@/lib/cta";
import { Vulnerability, VulnerabilityStatus, SEVERITY_COLORS, STATUS_META, isSeverityOverridden } from "@/types/issues";
import { formatTimeAgo } from "@/lib/utils";
import { getSeverityDot } from "@/lib/vulnerability-utils";
@@ -29,6 +29,15 @@ const STATUS_BANNER: Record<VulnerabilityStatus, { icon: React.ElementType; labe
type BottomTab = "fix" | "reproduction";
+// Team-workflow actions shown top-right of the finding header; each links out
+// to sign-up. `requiresCode` actions only appear when the finding has concrete
+// code locations to act on -- an autofix PR makes no sense for a black-box
+// finding with no code to change.
+const WORKFLOW_CTAS: { label: string; slug: string; icon: React.ElementType; requiresCode?: boolean }[] = [
+ { label: "Auto-fix & open a PR", slug: "autofix", icon: Wrench, requiresCode: true },
+ { label: "Sync to Jira / Linear", slug: "integrations", icon: GitMerge },
+];
+
interface VulnerabilityDetailProps {
vulnerability: Vulnerability;
}
@@ -54,8 +63,9 @@ export default function VulnerabilityDetail({ vulnerability }: VulnerabilityDeta
return (
<div className="space-y-6">
- {/* Header */}
- <div>
+ {/* Header: title/badges on the left, workflow actions top-right. */}
+ <div className="flex flex-wrap items-start justify-between gap-4">
+ <div className="min-w-0 flex-1">
<div className="mb-2">
{vulnerability.display_number && (
<span className="text-xs font-mono text-[#555] block mb-1">
@@ -88,6 +98,26 @@ export default function VulnerabilityDetail({ vulnerability }: VulnerabilityDeta
</>
)}
</div>
+ </div>
+
+ <div className="flex flex-shrink-0 flex-wrap items-center gap-2">
+ {WORKFLOW_CTAS.filter((cta) => !cta.requiresCode || hasCodeLocations).map((cta) => {
+ const Icon = cta.icon;
+ return (
+ <a
+ key={cta.slug}
+ href={ctaUrl(SIGNUP_URL, cta.slug)}
+ target="_blank"
+ rel="noopener noreferrer"
+ onClick={() => trackCta(cta.slug, "finding_detail")}
+ className="inline-flex items-center gap-1.5 rounded-lg bg-white px-3 py-1.5 text-xs font-semibold text-black transition-opacity hover:opacity-90"
+ >
+ <Icon className="h-3.5 w-3.5" aria-hidden="true" />
+ {cta.label}
+ </a>
+ );
+ })}
+ </div>
</div>
{/* Status banner */}
@@ -230,36 +260,6 @@ export default function VulnerabilityDetail({ vulnerability }: VulnerabilityDeta
</div>
</div>
- {/* Team-workflow CTAs (Pro). Highest-intent surface: act on this finding. */}
- <div className="rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5">
- <p className="text-sm font-semibold text-white">Ship the fix with your team</p>
- <p className="mt-0.5 text-xs text-[#666]">
- Take this finding into your team's workflow.
- </p>
- <div className="mt-3 flex flex-wrap gap-2.5">
- <ProInlineCta
- label="Auto-fix & open a PR"
- desc="Fix it for you and open a PR, retested."
- slug="autofix"
- icon={Wrench}
- surface="finding_detail"
- />
- <ProInlineCta
- label="Sync to Jira / Linear"
- desc="Two-way sync findings to Jira, Linear, and Slack."
- slug="integrations"
- icon={GitMerge}
- surface="finding_detail"
- />
- <ProInlineCta
- label="Catch this in PR reviews"
- desc="Pentest every pull request your team opens."
- slug="pr_reviews"
- icon={GitPullRequest}
- surface="finding_detail"
- />
- </div>
- </div>
</div>
);
}
diff --git a/strix/viewer/frontend/src/data/serverSource.ts b/strix/viewer/frontend/src/data/serverSource.ts
index 43e36be4..a0bd5593 100644
--- a/strix/viewer/frontend/src/data/serverSource.ts
+++ b/strix/viewer/frontend/src/data/serverSource.ts
@@ -6,10 +6,9 @@ import {
} from "@/lib/local-run-parser";
/**
- * Data seam for the local viewer. Replaces strix-app's browser file-picker
- * (`loadFromTexts`) with fetches against the local Python server's JSON
- * endpoints (same origin, relative URLs). Produces the same in-memory
- * `LoadedRun` shape the UI renders, plus a `finished` flag driving live polling.
+ * Data seam for the local viewer: fetches against the local Python server's
+ * JSON endpoints (same origin, relative URLs), producing the in-memory
+ * `LoadedRun` shape the UI renders plus a `finished` flag driving live polling.
*
* The server serves a live in-progress run and a finished one identically; the
* only signal is `run.finished`.
@@ -201,6 +200,21 @@ export async function steerAgent(agentId: string, message: string): Promise<Stee
return { ok: false, error: String(data.error ?? "unavailable") };
}
+export type SubmitFeedbackResult = { ok: true } | { ok: false; error: string };
+
+/**
+ * POST /api/feedback. Sends a feedback message plus a work email (no
+ * verification) to the local server, which relays it to Strix.
+ */
+export async function submitFeedback(
+ message: string,
+ email: string
+): Promise<SubmitFeedbackResult> {
+ const { ok, data } = await postJson("/api/feedback", { message, email });
+ if (ok && data.ok === true) return { ok: true };
+ return { ok: false, error: String(data.error ?? "unavailable") };
+}
+
export async function fetchAuthStatus(): Promise<AuthStatus> {
const obj = (await getJson("/api/auth/status")) as Partial<AuthStatus>;
return { verified: obj?.verified === true, email: obj?.email ?? null };
diff --git a/strix/viewer/frontend/src/index.css b/strix/viewer/frontend/src/index.css
index 5825be03..cc02b76c 100644
--- a/strix/viewer/frontend/src/index.css
+++ b/strix/viewer/frontend/src/index.css
@@ -19,7 +19,161 @@ body {
font-family: var(--font-geist-sans);
}
-/* Tab content transition (lifted from strix-app globals.css) */
+/* Thin sidebar scrollbar */
+.scrollbar-thin {
+ scrollbar-width: thin;
+ scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
+}
+.scrollbar-thin::-webkit-scrollbar {
+ width: 6px;
+ height: 6px;
+}
+.scrollbar-thin::-webkit-scrollbar-thumb {
+ background: rgba(255, 255, 255, 0.15);
+ border-radius: 3px;
+}
+.scrollbar-thin::-webkit-scrollbar-track {
+ background: transparent;
+}
+
+/* Motion vocabulary --------------------- */
+
+/* Page transition: replayed on every view change via a keyed wrapper. */
+@keyframes page-in {
+ from {
+ opacity: 0;
+ filter: blur(8px);
+ transform: translateY(8px);
+ }
+ to {
+ opacity: 1;
+ filter: blur(0px);
+ transform: translateY(0px);
+ }
+}
+.animate-page-in {
+ animation: page-in 150ms ease-out;
+}
+
+/* Plain fade. */
+@keyframes fade-in {
+ from {
+ opacity: 0;
+ }
+ to {
+ opacity: 1;
+ }
+}
+.animate-fade-in {
+ animation: fade-in 350ms ease-out;
+}
+
+/* Staggered card entrance for lists/grids (first four cascade). */
+@keyframes cardIn {
+ from {
+ opacity: 0;
+ filter: blur(4px);
+ transform: translateY(8px) scale(0.97);
+ }
+ to {
+ opacity: 1;
+ filter: blur(0px);
+ transform: translateY(0) scale(1);
+ }
+}
+.animate-card-in {
+ opacity: 0;
+ animation: cardIn 300ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
+}
+.animate-card-in:nth-child(1) {
+ animation-delay: 0ms;
+}
+.animate-card-in:nth-child(2) {
+ animation-delay: 50ms;
+}
+.animate-card-in:nth-child(3) {
+ animation-delay: 100ms;
+}
+.animate-card-in:nth-child(4) {
+ animation-delay: 150ms;
+}
+
+/* Shimmer sweep for progress indicators. */
+@keyframes shimmer {
+ 0% {
+ transform: translateX(-100%);
+ }
+ 100% {
+ transform: translateX(400%);
+ }
+}
+.animate-shimmer {
+ animation: shimmer 2s infinite;
+}
+
+/* Dialog enter/exit — mirrors shadcn's data-[state]:animate-in/animate-out
+ (fade-in-0/zoom-in-95 in, fade-out-0/zoom-out-95 out) driven off a
+ data-state attribute rather than a transition, so the enter always plays. */
+@keyframes dialog-overlay-in {
+ from {
+ opacity: 0;
+ }
+ to {
+ opacity: 1;
+ }
+}
+@keyframes dialog-overlay-out {
+ from {
+ opacity: 1;
+ }
+ to {
+ opacity: 0;
+ }
+}
+@keyframes dialog-panel-in {
+ from {
+ opacity: 0;
+ transform: scale(0.95);
+ }
+ to {
+ opacity: 1;
+ transform: scale(1);
+ }
+}
+@keyframes dialog-panel-out {
+ from {
+ opacity: 1;
+ transform: scale(1);
+ }
+ to {
+ opacity: 0;
+ transform: scale(0.95);
+ }
+}
+.dialog-overlay[data-state="open"] {
+ animation: dialog-overlay-in 200ms ease;
+}
+.dialog-overlay[data-state="closed"] {
+ animation: dialog-overlay-out 200ms ease forwards;
+}
+.dialog-panel[data-state="open"] {
+ animation: dialog-panel-in 200ms ease;
+}
+.dialog-panel[data-state="closed"] {
+ animation: dialog-panel-out 200ms ease forwards;
+}
+
+/* Agent detail modal: fade only (no scale) and faster. Its panel holds the full
+ transcript, and animating a transform on that much DOM janks; fading the
+ overlay (the panel inherits its opacity) stays cheap and snappy. */
+.agent-modal[data-state="open"] {
+ animation: dialog-overlay-in 140ms ease;
+}
+.agent-modal[data-state="closed"] {
+ animation: dialog-overlay-out 140ms ease forwards;
+}
+
+/* Tab content transition. */
@keyframes tab-in {
from {
opacity: 0;
@@ -32,12 +186,11 @@ body {
transform: translateY(0px);
}
}
-
.animate-tab-in {
animation: tab-in 200ms ease-out;
}
-/* Markdown prose styling (lifted from strix-app globals.css) */
+/* Markdown prose styling */
.prose-markdown {
font-size: 14px;
line-height: 1.7;
diff --git a/strix/viewer/frontend/src/lib/pro-features.ts b/strix/viewer/frontend/src/lib/pro-features.ts
deleted file mode 100644
index 0d7977f1..00000000
--- a/strix/viewer/frontend/src/lib/pro-features.ts
+++ /dev/null
@@ -1,174 +0,0 @@
-import type React from "react";
-import {
- GitPullRequest,
- Layers,
- Globe,
- Puzzle,
- Users,
- Search,
- LayoutDashboard,
- AlertTriangle,
- MessageSquare,
- Network,
- Database,
-} from "lucide-react";
-
-/**
- * Platform (Pro / Enterprise) feature catalog. Powers both the unified sidebar
- * nav rows and the in-app FeatureDetail upsell view. Everything is "Pro" except
- * Networks, which is "Enterprise". No lock icons anywhere.
- */
-
-export type FeatureTier = "Pro" | "Enterprise";
-
-export interface ProFeature {
- slug: string;
- title: string;
- icon: React.ElementType;
- tier: FeatureTier;
- /** Short one-liner for the sidebar nav row (two-line layout). */
- navDesc: string;
- /** Headline shown on the FeatureDetail upsell page. */
- headline: string;
- /** Longer sentence shown on the FeatureDetail upsell page. */
- description: string;
-}
-
-// Flat catalog of every platform feature, keyed by slug for routing. The
-// sidebar groups these into capability themes (see PLATFORM_THEMES); nothing
-// here implies a tier ordering.
-export const PLATFORM_FEATURES: ProFeature[] = [
- {
- slug: "pr_reviews",
- title: "PR Reviews",
- icon: GitPullRequest,
- tier: "Pro",
- navDesc: "Pentest every pull request",
- headline: "Pentest every pull request",
- description:
- "Strix reviews every pull request your team opens and catches exploitable changes before they merge.",
- },
- {
- slug: "repositories",
- title: "Repositories",
- icon: Layers,
- tier: "Pro",
- navDesc: "Connect your team's repos",
- headline: "Connect your team's repositories",
- description:
- "Link your org's repositories so Strix can scan them continuously and track findings over time.",
- },
- {
- slug: "domains",
- title: "Domains",
- icon: Globe,
- tier: "Pro",
- navDesc: "Cover the domains you own",
- headline: "Cover every domain you own",
- description:
- "Add the domains your team owns and let Strix watch them for newly exposed paths and drift.",
- },
- {
- slug: "integrations",
- title: "Integrations",
- icon: Puzzle,
- tier: "Pro",
- navDesc: "Sync to Jira, Linear, Slack",
- headline: "Sync findings to your tools",
- description:
- "Two-way sync findings to Jira, Linear, and Slack so fixes happen where your team already works.",
- },
- {
- slug: "members",
- title: "Members",
- icon: Users,
- tier: "Pro",
- navDesc: "Invite your team, set roles",
- headline: "Bring your whole team",
- description:
- "Invite your team, set roles, and share findings and run history across your org.",
- },
- {
- slug: "pentests",
- title: "Pentests",
- icon: Search,
- tier: "Pro",
- navDesc: "Deeper scans on managed infra",
- headline: "Launch deeper pentests",
- description:
- "Run deeper, longer pentests on managed infrastructure whenever you need them.",
- },
- {
- slug: "dashboard",
- title: "Dashboard",
- icon: LayoutDashboard,
- tier: "Pro",
- navDesc: "Everything in one place",
- headline: "See everything in one place",
- description:
- "Track every project, run, and finding across your org from a single dashboard.",
- },
- {
- slug: "platform_issues",
- title: "Issues",
- icon: AlertTriangle,
- tier: "Pro",
- navDesc: "Triage across your org",
- headline: "Triage findings across your org",
- description:
- "Manage and triage findings across every project and repository in one queue.",
- },
- {
- slug: "chat",
- title: "Chat",
- icon: MessageSquare,
- tier: "Pro",
- navDesc: "Ask about any finding",
- headline: "Ask Strix anything",
- description:
- "Ask the agents about any finding, run, or part of your app in natural language.",
- },
- {
- slug: "networks",
- title: "Networks",
- icon: Network,
- tier: "Enterprise",
- navDesc: "Reach internal, VPN-only targets",
- headline: "Scan internal networks",
- description:
- "Connect private networks to scan internal applications, VPN-only services, and RFC1918 targets.",
- },
- {
- slug: "knowledge",
- title: "Knowledge",
- icon: Database,
- tier: "Pro",
- navDesc: "Give agents context",
- headline: "Give agents context",
- description:
- "Teach Strix about your systems and business logic so every run gets smarter.",
- },
-];
-
-export const FEATURES: Record<string, ProFeature> = Object.fromEntries(
- PLATFORM_FEATURES.map((f) => [f.slug, f])
-);
-
-/**
- * Order the platform rows appear in the sidebar's single, ungrouped nav list
- * (after the run/local rows). No section headers; tier is shown only by each
- * row's inline tag.
- */
-export const PLATFORM_ORDER: string[] = [
- "pr_reviews",
- "repositories",
- "domains",
- "integrations",
- "members",
- "pentests",
- "networks",
- "chat",
- "dashboard",
- "platform_issues",
- "knowledge",
-];
diff --git a/strix/viewer/server.py b/strix/viewer/server.py
index 1af45407..6e698fc8 100644
--- a/strix/viewer/server.py
+++ b/strix/viewer/server.py
@@ -174,6 +174,8 @@ def _make_handler(state: _ViewerState) -> type[BaseHTTPRequestHandler]:
self._handle_forget()
elif path == "/api/report/send":
self._handle_report_send()
+ elif path == "/api/feedback":
+ self._handle_feedback()
elif path == "/api/agents/steer":
self._handle_steer()
else:
@@ -379,6 +381,32 @@ def _make_handler(state: _ViewerState) -> type[BaseHTTPRequestHandler]:
{"ok": True, "password": password, "filename": filename},
)
+ # Cap on a feedback message so a runaway client cannot flood the relay.
+ _FEEDBACK_MESSAGE_MAX = 5000
+
+ def _handle_feedback(self) -> None:
+ # Requires this process's session capability, like the other POSTs,
+ # so an exposed --host port can't be used to spam the relay.
+ if not self._has_session():
+ self._send_json(HTTPStatus.FORBIDDEN, {"error": "forbidden"})
+ return
+ body = self._read_body()
+ email = str(body.get("email") or "").strip()
+ message = str(body.get("message") or "").strip()
+ if not email:
+ self._send_json(HTTPStatus.BAD_REQUEST, {"error": "invalid_email"})
+ return
+ if not message:
+ self._send_json(HTTPStatus.BAD_REQUEST, {"error": "invalid_message"})
+ return
+ message = message[: self._FEEDBACK_MESSAGE_MAX]
+ try:
+ auth.feedback_submit(email, message)
+ except auth.RelayError as exc:
+ self._send_relay_error(exc)
+ return
+ self._send_json(HTTPStatus.OK, {"ok": True})
+
# Cap on a steering message so a runaway client cannot flood the agent.
_STEER_MESSAGE_MAX = 4000
@@ -413,6 +441,7 @@ def _make_handler(state: _ViewerState) -> type[BaseHTTPRequestHandler]:
status_by_code = {
"rate_limited": HTTPStatus.TOO_MANY_REQUESTS,
"invalid_email": HTTPStatus.BAD_REQUEST,
+ "invalid_message": HTTPStatus.BAD_REQUEST,
"work_email_required": HTTPStatus.BAD_REQUEST,
"invalid_code": HTTPStatus.FORBIDDEN,
"reverify": HTTPStatus.UNAUTHORIZED,
diff --git a/strix/viewer/static/assets/index-BU_tk5L-.js b/strix/viewer/static/assets/index-BU_tk5L-.js
deleted file mode 100644
index 85e64afa..00000000
--- a/strix/viewer/static/assets/index-BU_tk5L-.js
+++ /dev/null
@@ -1,517 +0,0 @@
-(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))a(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function i(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(s){if(s.ep)return;s.ep=!0;const o=i(s);fetch(s.href,o)}})();function ko(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lh={exports:{}},Gl={};/**
- * @license React
- * react-jsx-runtime.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var $0;function u2(){if($0)return Gl;$0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function i(a,s,o){var c=null;if(o!==void 0&&(c=""+o),s.key!==void 0&&(c=""+s.key),"key"in s){o={};for(var d in s)d!=="key"&&(o[d]=s[d])}else o=s;return s=o.ref,{$$typeof:e,type:a,key:c,ref:s!==void 0?s:null,props:o}}return Gl.Fragment=t,Gl.jsx=i,Gl.jsxs=i,Gl}var q0;function d2(){return q0||(q0=1,lh.exports=u2()),lh.exports}var g=d2(),oh={exports:{}},Ve={};/**
- * @license React
- * react.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var P0;function f2(){if(P0)return Ve;P0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),y=Symbol.iterator;function x(L){return L===null||typeof L!="object"?null:(L=y&&L[y]||L["@@iterator"],typeof L=="function"?L:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,S={};function w(L,Y,D){this.props=L,this.context=Y,this.refs=S,this.updater=D||_}w.prototype.isReactComponent={},w.prototype.setState=function(L,Y){if(typeof L!="object"&&typeof L!="function"&&L!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,L,Y,"setState")},w.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function k(){}k.prototype=w.prototype;function E(L,Y,D){this.props=L,this.context=Y,this.refs=S,this.updater=D||_}var M=E.prototype=new k;M.constructor=E,N(M,w.prototype),M.isPureReactComponent=!0;var U=Array.isArray;function R(){}var B={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function Z(L,Y,D){var F=D.ref;return{$$typeof:e,type:L,key:Y,ref:F!==void 0?F:null,props:D}}function j(L,Y){return Z(L.type,Y,L.props)}function z(L){return typeof L=="object"&&L!==null&&L.$$typeof===e}function V(L){var Y={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(D){return Y[D]})}var G=/\/+/g;function A(L,Y){return typeof L=="object"&&L!==null&&L.key!=null?V(""+L.key):Y.toString(36)}function q(L){switch(L.status){case"fulfilled":return L.value;case"rejected":throw L.reason;default:switch(typeof L.status=="string"?L.then(R,R):(L.status="pending",L.then(function(Y){L.status==="pending"&&(L.status="fulfilled",L.value=Y)},function(Y){L.status==="pending"&&(L.status="rejected",L.reason=Y)})),L.status){case"fulfilled":return L.value;case"rejected":throw L.reason}}throw L}function O(L,Y,D,F,$){var Q=typeof L;(Q==="undefined"||Q==="boolean")&&(L=null);var J=!1;if(L===null)J=!0;else switch(Q){case"bigint":case"string":case"number":J=!0;break;case"object":switch(L.$$typeof){case e:case t:J=!0;break;case m:return J=L._init,O(J(L._payload),Y,D,F,$)}}if(J)return $=$(L),J=F===""?"."+A(L,0):F,U($)?(D="",J!=null&&(D=J.replace(G,"$&/")+"/"),O($,Y,D,"",function(oe){return oe})):$!=null&&(z($)&&($=j($,D+($.key==null||L&&L.key===$.key?"":(""+$.key).replace(G,"$&/")+"/")+J)),Y.push($)),1;J=0;var W=F===""?".":F+":";if(U(L))for(var te=0;te<L.length;te++)F=L[te],Q=W+A(F,te),J+=O(F,Y,D,Q,$);else if(te=x(L),typeof te=="function")for(L=te.call(L),te=0;!(F=L.next()).done;)F=F.value,Q=W+A(F,te++),J+=O(F,Y,D,Q,$);else if(Q==="object"){if(typeof L.then=="function")return O(q(L),Y,D,F,$);throw Y=String(L),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return J}function H(L,Y,D){if(L==null)return L;var F=[],$=0;return O(L,F,"","",function(Q){return Y.call(D,Q,$++)}),F}function K(L){if(L._status===-1){var Y=L._result;Y=Y(),Y.then(function(D){(L._status===0||L._status===-1)&&(L._status=1,L._result=D)},function(D){(L._status===0||L._status===-1)&&(L._status=2,L._result=D)}),L._status===-1&&(L._status=0,L._result=Y)}if(L._status===1)return L._result.default;throw L._result}var X=typeof reportError=="function"?reportError:function(L){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof L=="object"&&L!==null&&typeof L.message=="string"?String(L.message):String(L),error:L});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",L);return}console.error(L)},C={map:H,forEach:function(L,Y,D){H(L,function(){Y.apply(this,arguments)},D)},count:function(L){var Y=0;return H(L,function(){Y++}),Y},toArray:function(L){return H(L,function(Y){return Y})||[]},only:function(L){if(!z(L))throw Error("React.Children.only expected to receive a single React element child.");return L}};return Ve.Activity=p,Ve.Children=C,Ve.Component=w,Ve.Fragment=i,Ve.Profiler=s,Ve.PureComponent=E,Ve.StrictMode=a,Ve.Suspense=f,Ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,Ve.__COMPILER_RUNTIME={__proto__:null,c:function(L){return B.H.useMemoCache(L)}},Ve.cache=function(L){return function(){return L.apply(null,arguments)}},Ve.cacheSignal=function(){return null},Ve.cloneElement=function(L,Y,D){if(L==null)throw Error("The argument must be a React element, but you passed "+L+".");var F=N({},L.props),$=L.key;if(Y!=null)for(Q in Y.key!==void 0&&($=""+Y.key),Y)!I.call(Y,Q)||Q==="key"||Q==="__self"||Q==="__source"||Q==="ref"&&Y.ref===void 0||(F[Q]=Y[Q]);var Q=arguments.length-2;if(Q===1)F.children=D;else if(1<Q){for(var J=Array(Q),W=0;W<Q;W++)J[W]=arguments[W+2];F.children=J}return Z(L.type,$,F)},Ve.createContext=function(L){return L={$$typeof:c,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null},L.Provider=L,L.Consumer={$$typeof:o,_context:L},L},Ve.createElement=function(L,Y,D){var F,$={},Q=null;if(Y!=null)for(F in Y.key!==void 0&&(Q=""+Y.key),Y)I.call(Y,F)&&F!=="key"&&F!=="__self"&&F!=="__source"&&($[F]=Y[F]);var J=arguments.length-2;if(J===1)$.children=D;else if(1<J){for(var W=Array(J),te=0;te<J;te++)W[te]=arguments[te+2];$.children=W}if(L&&L.defaultProps)for(F in J=L.defaultProps,J)$[F]===void 0&&($[F]=J[F]);return Z(L,Q,$)},Ve.createRef=function(){return{current:null}},Ve.forwardRef=function(L){return{$$typeof:d,render:L}},Ve.isValidElement=z,Ve.lazy=function(L){return{$$typeof:m,_payload:{_status:-1,_result:L},_init:K}},Ve.memo=function(L,Y){return{$$typeof:h,type:L,compare:Y===void 0?null:Y}},Ve.startTransition=function(L){var Y=B.T,D={};B.T=D;try{var F=L(),$=B.S;$!==null&&$(D,F),typeof F=="object"&&F!==null&&typeof F.then=="function"&&F.then(R,X)}catch(Q){X(Q)}finally{Y!==null&&D.types!==null&&(Y.types=D.types),B.T=Y}},Ve.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},Ve.use=function(L){return B.H.use(L)},Ve.useActionState=function(L,Y,D){return B.H.useActionState(L,Y,D)},Ve.useCallback=function(L,Y){return B.H.useCallback(L,Y)},Ve.useContext=function(L){return B.H.useContext(L)},Ve.useDebugValue=function(){},Ve.useDeferredValue=function(L,Y){return B.H.useDeferredValue(L,Y)},Ve.useEffect=function(L,Y){return B.H.useEffect(L,Y)},Ve.useEffectEvent=function(L){return B.H.useEffectEvent(L)},Ve.useId=function(){return B.H.useId()},Ve.useImperativeHandle=function(L,Y,D){return B.H.useImperativeHandle(L,Y,D)},Ve.useInsertionEffect=function(L,Y){return B.H.useInsertionEffect(L,Y)},Ve.useLayoutEffect=function(L,Y){return B.H.useLayoutEffect(L,Y)},Ve.useMemo=function(L,Y){return B.H.useMemo(L,Y)},Ve.useOptimistic=function(L,Y){return B.H.useOptimistic(L,Y)},Ve.useReducer=function(L,Y,D){return B.H.useReducer(L,Y,D)},Ve.useRef=function(L){return B.H.useRef(L)},Ve.useState=function(L){return B.H.useState(L)},Ve.useSyncExternalStore=function(L,Y,D){return B.H.useSyncExternalStore(L,Y,D)},Ve.useTransition=function(){return B.H.useTransition()},Ve.version="19.2.7",Ve}var F0;function To(){return F0||(F0=1,oh.exports=f2()),oh.exports}var ee=To();const h2=ko(ee);var ch={exports:{}},Vl={},uh={exports:{}},dh={};/**
- * @license React
- * scheduler.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var G0;function m2(){return G0||(G0=1,(function(e){function t(O,H){var K=O.length;O.push(H);e:for(;0<K;){var X=K-1>>>1,C=O[X];if(0<s(C,H))O[X]=H,O[K]=C,K=X;else break e}}function i(O){return O.length===0?null:O[0]}function a(O){if(O.length===0)return null;var H=O[0],K=O.pop();if(K!==H){O[0]=K;e:for(var X=0,C=O.length,L=C>>>1;X<L;){var Y=2*(X+1)-1,D=O[Y],F=Y+1,$=O[F];if(0>s(D,K))F<C&&0>s($,D)?(O[X]=$,O[F]=K,X=F):(O[X]=D,O[Y]=K,X=Y);else if(F<C&&0>s($,K))O[X]=$,O[F]=K,X=F;else break e}}return H}function s(O,H){var K=O.sortIndex-H.sortIndex;return K!==0?K:O.id-H.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var f=[],h=[],m=1,p=null,y=3,x=!1,_=!1,N=!1,S=!1,w=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function M(O){for(var H=i(h);H!==null;){if(H.callback===null)a(h);else if(H.startTime<=O)a(h),H.sortIndex=H.expirationTime,t(f,H);else break;H=i(h)}}function U(O){if(N=!1,M(O),!_)if(i(f)!==null)_=!0,R||(R=!0,V());else{var H=i(h);H!==null&&q(U,H.startTime-O)}}var R=!1,B=-1,I=5,Z=-1;function j(){return S?!0:!(e.unstable_now()-Z<I)}function z(){if(S=!1,R){var O=e.unstable_now();Z=O;var H=!0;try{e:{_=!1,N&&(N=!1,k(B),B=-1),x=!0;var K=y;try{t:{for(M(O),p=i(f);p!==null&&!(p.expirationTime>O&&j());){var X=p.callback;if(typeof X=="function"){p.callback=null,y=p.priorityLevel;var C=X(p.expirationTime<=O);if(O=e.unstable_now(),typeof C=="function"){p.callback=C,M(O),H=!0;break t}p===i(f)&&a(f),M(O)}else a(f);p=i(f)}if(p!==null)H=!0;else{var L=i(h);L!==null&&q(U,L.startTime-O),H=!1}}break e}finally{p=null,y=K,x=!1}H=void 0}}finally{H?V():R=!1}}}var V;if(typeof E=="function")V=function(){E(z)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,A=G.port2;G.port1.onmessage=z,V=function(){A.postMessage(null)}}else V=function(){w(z,0)};function q(O,H){B=w(function(){O(e.unstable_now())},H)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(O){O.callback=null},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(O){switch(y){case 1:case 2:case 3:var H=3;break;default:H=y}var K=y;y=H;try{return O()}finally{y=K}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(O,H){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var K=y;y=O;try{return H()}finally{y=K}},e.unstable_scheduleCallback=function(O,H,K){var X=e.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?X+K:X):K=X,O){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=K+C,O={id:m++,callback:H,priorityLevel:O,startTime:K,expirationTime:C,sortIndex:-1},K>X?(O.sortIndex=K,t(h,O),i(f)===null&&O===i(h)&&(N?(k(B),B=-1):N=!0,q(U,K-X))):(O.sortIndex=C,t(f,O),_||x||(_=!0,R||(R=!0,V()))),O},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(O){var H=y;return function(){var K=y;y=H;try{return O.apply(this,arguments)}finally{y=K}}}})(dh)),dh}var V0;function p2(){return V0||(V0=1,uh.exports=m2()),uh.exports}var fh={exports:{}},kn={};/**
- * @license React
- * react-dom.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var Y0;function g2(){if(Y0)return kn;Y0=1;var e=To();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var a={d:{f:i,r:function(){throw Error(t(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},s=Symbol.for("react.portal");function o(f,h,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:p==null?null:""+p,children:f,containerInfo:h,implementation:m}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return kn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,kn.createPortal=function(f,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return o(f,h,null,m)},kn.flushSync=function(f){var h=c.T,m=a.p;try{if(c.T=null,a.p=2,f)return f()}finally{c.T=h,a.p=m,a.d.f()}},kn.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,a.d.C(f,h))},kn.prefetchDNS=function(f){typeof f=="string"&&a.d.D(f)},kn.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var m=h.as,p=d(m,h.crossOrigin),y=typeof h.integrity=="string"?h.integrity:void 0,x=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?a.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:y,fetchPriority:x}):m==="script"&&a.d.X(f,{crossOrigin:p,integrity:y,fetchPriority:x,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},kn.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=d(h.as,h.crossOrigin);a.d.M(f,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&a.d.M(f)},kn.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,p=d(m,h.crossOrigin);a.d.L(f,m,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},kn.preloadModule=function(f,h){if(typeof f=="string")if(h){var m=d(h.as,h.crossOrigin);a.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else a.d.m(f)},kn.requestFormReset=function(f){a.d.r(f)},kn.unstable_batchedUpdates=function(f,h){return f(h)},kn.useFormState=function(f,h,m){return c.H.useFormState(f,h,m)},kn.useFormStatus=function(){return c.H.useHostTransitionStatus()},kn.version="19.2.7",kn}var X0;function x_(){if(X0)return fh.exports;X0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),fh.exports=g2(),fh.exports}/**
- * @license React
- * react-dom-client.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var K0;function b2(){if(K0)return Vl;K0=1;var e=p2(),t=To(),i=x_();function a(n){var r="https://react.dev/errors/"+n;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)r+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+n+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function o(n){var r=n,l=n;if(n.alternate)for(;r.return;)r=r.return;else{n=r;do r=n,(r.flags&4098)!==0&&(l=r.return),n=r.return;while(n)}return r.tag===3?l:null}function c(n){if(n.tag===13){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function d(n){if(n.tag===31){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function f(n){if(o(n)!==n)throw Error(a(188))}function h(n){var r=n.alternate;if(!r){if(r=o(n),r===null)throw Error(a(188));return r!==n?null:n}for(var l=n,u=r;;){var b=l.return;if(b===null)break;var v=b.alternate;if(v===null){if(u=b.return,u!==null){l=u;continue}break}if(b.child===v.child){for(v=b.child;v;){if(v===l)return f(b),n;if(v===u)return f(b),r;v=v.sibling}throw Error(a(188))}if(l.return!==u.return)l=b,u=v;else{for(var T=!1,P=b.child;P;){if(P===l){T=!0,l=b,u=v;break}if(P===u){T=!0,u=b,l=v;break}P=P.sibling}if(!T){for(P=v.child;P;){if(P===l){T=!0,l=v,u=b;break}if(P===u){T=!0,u=v,l=b;break}P=P.sibling}if(!T)throw Error(a(189))}}if(l.alternate!==u)throw Error(a(190))}if(l.tag!==3)throw Error(a(188));return l.stateNode.current===l?n:r}function m(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n;for(n=n.child;n!==null;){if(r=m(n),r!==null)return r;n=n.sibling}return null}var p=Object.assign,y=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),E=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),j=Symbol.for("react.memo_cache_sentinel"),z=Symbol.iterator;function V(n){return n===null||typeof n!="object"?null:(n=z&&n[z]||n["@@iterator"],typeof n=="function"?n:null)}var G=Symbol.for("react.client.reference");function A(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===G?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case N:return"Fragment";case w:return"Profiler";case S:return"StrictMode";case U:return"Suspense";case R:return"SuspenseList";case Z:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case _:return"Portal";case E:return n.displayName||"Context";case k:return(n._context.displayName||"Context")+".Consumer";case M:var r=n.render;return n=n.displayName,n||(n=r.displayName||r.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case B:return r=n.displayName||null,r!==null?r:A(n.type)||"Memo";case I:r=n._payload,n=n._init;try{return A(n(r))}catch{}}return null}var q=Array.isArray,O=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},X=[],C=-1;function L(n){return{current:n}}function Y(n){0>C||(n.current=X[C],X[C]=null,C--)}function D(n,r){C++,X[C]=n.current,n.current=r}var F=L(null),$=L(null),Q=L(null),J=L(null);function W(n,r){switch(D(Q,r),D($,n),D(F,null),r.nodeType){case 9:case 11:n=(n=r.documentElement)&&(n=n.namespaceURI)?u0(n):0;break;default:if(n=r.tagName,r=r.namespaceURI)r=u0(r),n=d0(r,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}Y(F),D(F,n)}function te(){Y(F),Y($),Y(Q)}function oe(n){n.memoizedState!==null&&D(J,n);var r=F.current,l=d0(r,n.type);r!==l&&(D($,n),D(F,l))}function fe(n){$.current===n&&(Y(F),Y($)),J.current===n&&(Y(J),$l._currentValue=K)}var be,we;function Ne(n){if(be===void 0)try{throw Error()}catch(l){var r=l.stack.trim().match(/\n( *(at )?)/);be=r&&r[1]||"",we=-1<l.stack.indexOf(`
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
-`+be+n+we}var je=!1;function $e(n,r){if(!n||je)return"";je=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(r){var ge=function(){throw Error()};if(Object.defineProperty(ge.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ge,[])}catch(de){var ce=de}Reflect.construct(n,[],ge)}else{try{ge.call()}catch(de){ce=de}n.call(ge.prototype)}}else{try{throw Error()}catch(de){ce=de}(ge=n())&&typeof ge.catch=="function"&&ge.catch(function(){})}}catch(de){if(de&&ce&&typeof de.stack=="string")return[de.stack,ce.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var b=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");b&&b.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=u.DetermineComponentFrameRoot(),T=v[0],P=v[1];if(T&&P){var ne=T.split(`
-`),le=P.split(`
-`);for(b=u=0;u<ne.length&&!ne[u].includes("DetermineComponentFrameRoot");)u++;for(;b<le.length&&!le[b].includes("DetermineComponentFrameRoot");)b++;if(u===ne.length||b===le.length)for(u=ne.length-1,b=le.length-1;1<=u&&0<=b&&ne[u]!==le[b];)b--;for(;1<=u&&0<=b;u--,b--)if(ne[u]!==le[b]){if(u!==1||b!==1)do if(u--,b--,0>b||ne[u]!==le[b]){var he=`
-`+ne[u].replace(" at new "," at ");return n.displayName&&he.includes("<anonymous>")&&(he=he.replace("<anonymous>",n.displayName)),he}while(1<=u&&0<=b);break}}}finally{je=!1,Error.prepareStackTrace=l}return(l=n?n.displayName||n.name:"")?Ne(l):""}function st(n,r){switch(n.tag){case 26:case 27:case 5:return Ne(n.type);case 16:return Ne("Lazy");case 13:return n.child!==r&&r!==null?Ne("Suspense Fallback"):Ne("Suspense");case 19:return Ne("SuspenseList");case 0:case 15:return $e(n.type,!1);case 11:return $e(n.type.render,!1);case 1:return $e(n.type,!0);case 31:return Ne("Activity");default:return""}}function Rt(n){try{var r="",l=null;do r+=st(n,l),l=n,n=n.return;while(n);return r}catch(u){return`
-Error generating stack: `+u.message+`
-`+u.stack}}var Yt=Object.prototype.hasOwnProperty,Pt=e.unstable_scheduleCallback,Xt=e.unstable_cancelCallback,Yn=e.unstable_shouldYield,wn=e.unstable_requestPaint,ct=e.unstable_now,It=e.unstable_getCurrentPriorityLevel,ue=e.unstable_ImmediatePriority,xe=e.unstable_UserBlockingPriority,Oe=e.unstable_NormalPriority,Fe=e.unstable_LowPriority,Ze=e.unstable_IdlePriority,on=e.log,En=e.unstable_setDisableYieldValue,Kt=null,Ct=null;function Wt(n){if(typeof on=="function"&&En(n),Ct&&typeof Ct.setStrictMode=="function")try{Ct.setStrictMode(Kt,n)}catch{}}var ut=Math.clz32?Math.clz32:wr,zn=Math.log,cn=Math.LN2;function wr(n){return n>>>=0,n===0?32:31-(zn(n)/cn|0)|0}var nt=256,Xn=262144,Cn=4194304;function hn(n){var r=n&42;if(r!==0)return r;switch(n&-n){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function ie(n,r,l){var u=n.pendingLanes;if(u===0)return 0;var b=0,v=n.suspendedLanes,T=n.pingedLanes;n=n.warmLanes;var P=u&134217727;return P!==0?(u=P&~v,u!==0?b=hn(u):(T&=P,T!==0?b=hn(T):l||(l=P&~n,l!==0&&(b=hn(l))))):(P=u&~v,P!==0?b=hn(P):T!==0?b=hn(T):l||(l=u&~n,l!==0&&(b=hn(l)))),b===0?0:r!==0&&r!==b&&(r&v)===0&&(v=b&-b,l=r&-r,v>=l||v===32&&(l&4194048)!==0)?r:b}function me(n,r){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&r)===0}function Ee(n,r){switch(n){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32: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 r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Pe(){var n=Cn;return Cn<<=1,(Cn&62914560)===0&&(Cn=4194304),n}function St(n){for(var r=[],l=0;31>l;l++)r.push(n);return r}function gt(n,r){n.pendingLanes|=r,r!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Me(n,r,l,u,b,v){var T=n.pendingLanes;n.pendingLanes=l,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=l,n.entangledLanes&=l,n.errorRecoveryDisabledLanes&=l,n.shellSuspendCounter=0;var P=n.entanglements,ne=n.expirationTimes,le=n.hiddenUpdates;for(l=T&~l;0<l;){var he=31-ut(l),ge=1<<he;P[he]=0,ne[he]=-1;var ce=le[he];if(ce!==null)for(le[he]=null,he=0;he<ce.length;he++){var de=ce[he];de!==null&&(de.lane&=-536870913)}l&=~ge}u!==0&&Se(n,u,0),v!==0&&b===0&&n.tag!==0&&(n.suspendedLanes|=v&~(T&~r))}function Se(n,r,l){n.pendingLanes|=r,n.suspendedLanes&=~r;var u=31-ut(r);n.entangledLanes|=r,n.entanglements[u]=n.entanglements[u]|1073741824|l&261930}function Ue(n,r){var l=n.entangledLanes|=r;for(n=n.entanglements;l;){var u=31-ut(l),b=1<<u;b&r|n[u]&r&&(n[u]|=r),l&=~b}}function Bt(n,r){var l=r&-r;return l=(l&42)!==0?1:Mt(l),(l&(n.suspendedLanes|r))!==0?0:l}function Mt(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function bi(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Er(){var n=H.p;return n!==0?n:(n=window.event,n===void 0?32:j0(n.type))}function Nr(n,r){var l=H.p;try{return H.p=n,r()}finally{H.p=l}}var si=Math.random().toString(36).slice(2),Ut="__reactFiber$"+si,mn="__reactProps$"+si,xi="__reactContainer$"+si,Sr="__reactEvents$"+si,fa="__reactListeners$"+si,kr="__reactHandles$"+si,Qa="__reactResources$"+si,Qi="__reactMarker$"+si;function ha(n){delete n[Ut],delete n[mn],delete n[Sr],delete n[fa],delete n[kr]}function bn(n){var r=n[Ut];if(r)return r;for(var l=n.parentNode;l;){if(r=l[xi]||l[Ut]){if(l=r.alternate,r.child!==null||l!==null&&l.child!==null)for(n=x0(n);n!==null;){if(l=n[Ut])return l;n=x0(n)}return r}n=l,l=n.parentNode}return null}function yi(n){if(n=n[Ut]||n[xi]){var r=n.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return n}return null}function vi(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n.stateNode;throw Error(a(33))}function zi(n){var r=n[Qa];return r||(r=n[Qa]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function Ft(n){n[Qi]=!0}var Wa=new Set,Wi={};function _i(n,r){ye(n,r),ye(n+"Capture",r)}function ye(n,r){for(Wi[n]=r,n=0;n<r.length;n++)Wa.add(r[n])}var Le=RegExp("^[: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]*$"),Qe={},ft={};function Ht(n){return Yt.call(ft,n)?!0:Yt.call(Qe,n)?!1:Le.test(n)?ft[n]=!0:(Qe[n]=!0,!1)}function pn(n,r,l){if(Ht(r))if(l===null)n.removeAttribute(r);else{switch(typeof l){case"undefined":case"function":case"symbol":n.removeAttribute(r);return;case"boolean":var u=r.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){n.removeAttribute(r);return}}n.setAttribute(r,""+l)}}function Mn(n,r,l){if(l===null)n.removeAttribute(r);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(r);return}n.setAttribute(r,""+l)}}function Nn(n,r,l,u){if(u===null)n.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(l);return}n.setAttributeNS(r,l,""+u)}}function _t(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function On(n){var r=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function Ja(n,r,l){var u=Object.getOwnPropertyDescriptor(n.constructor.prototype,r);if(!n.hasOwnProperty(r)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var b=u.get,v=u.set;return Object.defineProperty(n,r,{configurable:!0,get:function(){return b.call(this)},set:function(T){l=""+T,v.call(this,T)}}),Object.defineProperty(n,r,{enumerable:u.enumerable}),{getValue:function(){return l},setValue:function(T){l=""+T},stopTracking:function(){n._valueTracker=null,delete n[r]}}}}function Tr(n){if(!n._valueTracker){var r=On(n)?"checked":"value";n._valueTracker=Ja(n,r,""+n[r])}}function Ii(n){if(!n)return!1;var r=n._valueTracker;if(!r)return!0;var l=r.getValue(),u="";return n&&(u=On(n)?n.checked?"true":"false":n.value),n=u,n!==l?(r.setValue(n),!0):!1}function Ar(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var es=/[\n"\\]/g;function Sn(n){return n.replace(es,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function ma(n,r,l,u,b,v,T,P){n.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?n.type=T:n.removeAttribute("type"),r!=null?T==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=""+_t(r)):n.value!==""+_t(r)&&(n.value=""+_t(r)):T!=="submit"&&T!=="reset"||n.removeAttribute("value"),r!=null?Cr(n,T,_t(r)):l!=null?Cr(n,T,_t(l)):u!=null&&n.removeAttribute("value"),b==null&&v!=null&&(n.defaultChecked=!!v),b!=null&&(n.checked=b&&typeof b!="function"&&typeof b!="symbol"),P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"?n.name=""+_t(P):n.removeAttribute("name")}function wi(n,r,l,u,b,v,T,P){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(n.type=v),r!=null||l!=null){if(!(v!=="submit"&&v!=="reset"||r!=null)){Tr(n);return}l=l!=null?""+_t(l):"",r=r!=null?""+_t(r):l,P||r===n.value||(n.value=r),n.defaultValue=r}u=u??b,u=typeof u!="function"&&typeof u!="symbol"&&!!u,n.checked=P?n.checked:!!u,n.defaultChecked=!!u,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(n.name=T),Tr(n)}function Cr(n,r,l){r==="number"&&Ar(n.ownerDocument)===n||n.defaultValue===""+l||(n.defaultValue=""+l)}function un(n,r,l,u){if(n=n.options,r){r={};for(var b=0;b<l.length;b++)r["$"+l[b]]=!0;for(l=0;l<n.length;l++)b=r.hasOwnProperty("$"+n[l].value),n[l].selected!==b&&(n[l].selected=b),b&&u&&(n[l].defaultSelected=!0)}else{for(l=""+_t(l),r=null,b=0;b<n.length;b++){if(n[b].value===l){n[b].selected=!0,u&&(n[b].defaultSelected=!0);return}r!==null||n[b].disabled||(r=n[b])}r!==null&&(r.selected=!0)}}function pa(n,r,l){if(r!=null&&(r=""+_t(r),r!==n.value&&(n.value=r),l==null)){n.defaultValue!==r&&(n.defaultValue=r);return}n.defaultValue=l!=null?""+_t(l):""}function ts(n,r,l,u){if(r==null){if(u!=null){if(l!=null)throw Error(a(92));if(q(u)){if(1<u.length)throw Error(a(93));u=u[0]}l=u}l==null&&(l=""),r=l}l=_t(r),n.defaultValue=l,u=n.textContent,u===l&&u!==""&&u!==null&&(n.value=u),Tr(n)}function qe(n,r){if(r){var l=n.firstChild;if(l&&l===n.lastChild&&l.nodeType===3){l.nodeValue=r;return}}n.textContent=r}var Ho=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Jt(n,r,l){var u=r.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?u?n.setProperty(r,""):r==="float"?n.cssFloat="":n[r]="":u?n.setProperty(r,l):typeof l!="number"||l===0||Ho.has(r)?r==="float"?n.cssFloat=l:n[r]=(""+l).trim():n[r]=l+"px"}function bt(n,r,l){if(r!=null&&typeof r!="object")throw Error(a(62));if(n=n.style,l!=null){for(var u in l)!l.hasOwnProperty(u)||r!=null&&r.hasOwnProperty(u)||(u.indexOf("--")===0?n.setProperty(u,""):u==="float"?n.cssFloat="":n[u]="");for(var b in r)u=r[b],r.hasOwnProperty(b)&&l[b]!==u&&Jt(n,b,u)}else for(var v in r)r.hasOwnProperty(v)&&Jt(n,v,r[v])}function Mr(n){if(n.indexOf("-")===-1)return!1;switch(n){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 Ji=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),nl=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Or(n){return nl.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function _e(){}var Re=null;function Ye(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var it=null,$t=null;function li(n){var r=yi(n);if(r&&(n=r.stateNode)){var l=n[mn]||null;e:switch(n=r.stateNode,r.type){case"input":if(ma(n,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),r=l.name,l.type==="radio"&&r!=null){for(l=n;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Sn(""+r)+'"][type="radio"]'),r=0;r<l.length;r++){var u=l[r];if(u!==n&&u.form===n.form){var b=u[mn]||null;if(!b)throw Error(a(90));ma(u,b.value,b.defaultValue,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name)}}for(r=0;r<l.length;r++)u=l[r],u.form===n.form&&Ii(u)}break e;case"textarea":pa(n,l.value,l.defaultValue);break e;case"select":r=l.value,r!=null&&un(n,!!l.multiple,r,!1)}}}var il=!1;function $o(n,r,l){if(il)return n(r,l);il=!0;try{var u=n(r);return u}finally{if(il=!1,(it!==null||$t!==null)&&(Ac(),it&&(r=it,n=$t,$t=it=null,li(r),n)))for(r=0;r<n.length;r++)li(n[r])}}function rl(n,r){var l=n.stateNode;if(l===null)return null;var u=l[mn]||null;if(u===null)return null;l=u[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(n=n.type,u=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!u;break e;default:n=!1}if(n)return null;if(l&&typeof l!="function")throw Error(a(231,r,typeof l));return l}var er=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sd=!1;if(er)try{var al={};Object.defineProperty(al,"passive",{get:function(){sd=!0}}),window.addEventListener("test",al,al),window.removeEventListener("test",al,al)}catch{sd=!1}var Rr=null,ld=null,qo=null;function dg(){if(qo)return qo;var n,r=ld,l=r.length,u,b="value"in Rr?Rr.value:Rr.textContent,v=b.length;for(n=0;n<l&&r[n]===b[n];n++);var T=l-n;for(u=1;u<=T&&r[l-u]===b[v-u];u++);return qo=b.slice(n,1<u?1-u:void 0)}function Po(n){var r=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&r===13&&(n=13)):n=r,n===10&&(n=13),32<=n||n===13?n:0}function Fo(){return!0}function fg(){return!1}function In(n){function r(l,u,b,v,T){this._reactName=l,this._targetInst=b,this.type=u,this.nativeEvent=v,this.target=T,this.currentTarget=null;for(var P in n)n.hasOwnProperty(P)&&(l=n[P],this[P]=l?l(v):v[P]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?Fo:fg,this.isPropagationStopped=fg,this}return p(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Fo)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Fo)},persist:function(){},isPersistent:Fo}),r}var ga={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Go=In(ga),sl=p({},ga,{view:0,detail:0}),oS=In(sl),od,cd,ll,Vo=p({},sl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dd,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==ll&&(ll&&n.type==="mousemove"?(od=n.screenX-ll.screenX,cd=n.screenY-ll.screenY):cd=od=0,ll=n),od)},movementY:function(n){return"movementY"in n?n.movementY:cd}}),hg=In(Vo),cS=p({},Vo,{dataTransfer:0}),uS=In(cS),dS=p({},sl,{relatedTarget:0}),ud=In(dS),fS=p({},ga,{animationName:0,elapsedTime:0,pseudoElement:0}),hS=In(fS),mS=p({},ga,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),pS=In(mS),gS=p({},ga,{data:0}),mg=In(gS),bS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xS={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},yS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vS(n){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(n):(n=yS[n])?!!r[n]:!1}function dd(){return vS}var _S=p({},sl,{key:function(n){if(n.key){var r=bS[n.key]||n.key;if(r!=="Unidentified")return r}return n.type==="keypress"?(n=Po(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?xS[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dd,charCode:function(n){return n.type==="keypress"?Po(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Po(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),wS=In(_S),ES=p({},Vo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pg=In(ES),NS=p({},sl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dd}),SS=In(NS),kS=p({},ga,{propertyName:0,elapsedTime:0,pseudoElement:0}),TS=In(kS),AS=p({},Vo,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),CS=In(AS),MS=p({},ga,{newState:0,oldState:0}),OS=In(MS),RS=[9,13,27,32],fd=er&&"CompositionEvent"in window,ol=null;er&&"documentMode"in document&&(ol=document.documentMode);var DS=er&&"TextEvent"in window&&!ol,gg=er&&(!fd||ol&&8<ol&&11>=ol),bg=" ",xg=!1;function yg(n,r){switch(n){case"keyup":return RS.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vg(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var ns=!1;function jS(n,r){switch(n){case"compositionend":return vg(r);case"keypress":return r.which!==32?null:(xg=!0,bg);case"textInput":return n=r.data,n===bg&&xg?null:n;default:return null}}function LS(n,r){if(ns)return n==="compositionend"||!fd&&yg(n,r)?(n=dg(),qo=ld=Rr=null,ns=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return gg&&r.locale!=="ko"?null:r.data;default:return null}}var zS={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function _g(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r==="input"?!!zS[n.type]:r==="textarea"}function wg(n,r,l,u){it?$t?$t.push(u):$t=[u]:it=u,r=Lc(r,"onChange"),0<r.length&&(l=new Go("onChange","change",null,l,u),n.push({event:l,listeners:r}))}var cl=null,ul=null;function IS(n){r0(n,0)}function Yo(n){var r=vi(n);if(Ii(r))return n}function Eg(n,r){if(n==="change")return r}var Ng=!1;if(er){var hd;if(er){var md="oninput"in document;if(!md){var Sg=document.createElement("div");Sg.setAttribute("oninput","return;"),md=typeof Sg.oninput=="function"}hd=md}else hd=!1;Ng=hd&&(!document.documentMode||9<document.documentMode)}function kg(){cl&&(cl.detachEvent("onpropertychange",Tg),ul=cl=null)}function Tg(n){if(n.propertyName==="value"&&Yo(ul)){var r=[];wg(r,ul,n,Ye(n)),$o(IS,r)}}function BS(n,r,l){n==="focusin"?(kg(),cl=r,ul=l,cl.attachEvent("onpropertychange",Tg)):n==="focusout"&&kg()}function US(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Yo(ul)}function HS(n,r){if(n==="click")return Yo(r)}function $S(n,r){if(n==="input"||n==="change")return Yo(r)}function qS(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var Kn=typeof Object.is=="function"?Object.is:qS;function dl(n,r){if(Kn(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;var l=Object.keys(n),u=Object.keys(r);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var b=l[u];if(!Yt.call(r,b)||!Kn(n[b],r[b]))return!1}return!0}function Ag(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Cg(n,r){var l=Ag(n);n=0;for(var u;l;){if(l.nodeType===3){if(u=n+l.textContent.length,n<=r&&u>=r)return{node:l,offset:r-n};n=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Ag(l)}}function Mg(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?Mg(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function Og(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var r=Ar(n.document);r instanceof n.HTMLIFrameElement;){try{var l=typeof r.contentWindow.location.href=="string"}catch{l=!1}if(l)n=r.contentWindow;else break;r=Ar(n.document)}return r}function pd(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r&&(r==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||r==="textarea"||n.contentEditable==="true")}var PS=er&&"documentMode"in document&&11>=document.documentMode,is=null,gd=null,fl=null,bd=!1;function Rg(n,r,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;bd||is==null||is!==Ar(u)||(u=is,"selectionStart"in u&&pd(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),fl&&dl(fl,u)||(fl=u,u=Lc(gd,"onSelect"),0<u.length&&(r=new Go("onSelect","select",null,r,l),n.push({event:r,listeners:u}),r.target=is)))}function ba(n,r){var l={};return l[n.toLowerCase()]=r.toLowerCase(),l["Webkit"+n]="webkit"+r,l["Moz"+n]="moz"+r,l}var rs={animationend:ba("Animation","AnimationEnd"),animationiteration:ba("Animation","AnimationIteration"),animationstart:ba("Animation","AnimationStart"),transitionrun:ba("Transition","TransitionRun"),transitionstart:ba("Transition","TransitionStart"),transitioncancel:ba("Transition","TransitionCancel"),transitionend:ba("Transition","TransitionEnd")},xd={},Dg={};er&&(Dg=document.createElement("div").style,"AnimationEvent"in window||(delete rs.animationend.animation,delete rs.animationiteration.animation,delete rs.animationstart.animation),"TransitionEvent"in window||delete rs.transitionend.transition);function xa(n){if(xd[n])return xd[n];if(!rs[n])return n;var r=rs[n],l;for(l in r)if(r.hasOwnProperty(l)&&l in Dg)return xd[n]=r[l];return n}var jg=xa("animationend"),Lg=xa("animationiteration"),zg=xa("animationstart"),FS=xa("transitionrun"),GS=xa("transitionstart"),VS=xa("transitioncancel"),Ig=xa("transitionend"),Bg=new Map,yd="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");yd.push("scrollEnd");function Ei(n,r){Bg.set(n,r),_i(r,[n])}var Xo=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},oi=[],as=0,vd=0;function Ko(){for(var n=as,r=vd=as=0;r<n;){var l=oi[r];oi[r++]=null;var u=oi[r];oi[r++]=null;var b=oi[r];oi[r++]=null;var v=oi[r];if(oi[r++]=null,u!==null&&b!==null){var T=u.pending;T===null?b.next=b:(b.next=T.next,T.next=b),u.pending=b}v!==0&&Ug(l,b,v)}}function Zo(n,r,l,u){oi[as++]=n,oi[as++]=r,oi[as++]=l,oi[as++]=u,vd|=u,n.lanes|=u,n=n.alternate,n!==null&&(n.lanes|=u)}function _d(n,r,l,u){return Zo(n,r,l,u),Qo(n)}function ya(n,r){return Zo(n,null,null,r),Qo(n)}function Ug(n,r,l){n.lanes|=l;var u=n.alternate;u!==null&&(u.lanes|=l);for(var b=!1,v=n.return;v!==null;)v.childLanes|=l,u=v.alternate,u!==null&&(u.childLanes|=l),v.tag===22&&(n=v.stateNode,n===null||n._visibility&1||(b=!0)),n=v,v=v.return;return n.tag===3?(v=n.stateNode,b&&r!==null&&(b=31-ut(l),n=v.hiddenUpdates,u=n[b],u===null?n[b]=[r]:u.push(r),r.lane=l|536870912),v):null}function Qo(n){if(50<jl)throw jl=0,Of=null,Error(a(185));for(var r=n.return;r!==null;)n=r,r=n.return;return n.tag===3?n.stateNode:null}var ss={};function YS(n,r,l,u){this.tag=n,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Zn(n,r,l,u){return new YS(n,r,l,u)}function wd(n){return n=n.prototype,!(!n||!n.isReactComponent)}function tr(n,r){var l=n.alternate;return l===null?(l=Zn(n.tag,r,n.key,n.mode),l.elementType=n.elementType,l.type=n.type,l.stateNode=n.stateNode,l.alternate=n,n.alternate=l):(l.pendingProps=r,l.type=n.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=n.flags&65011712,l.childLanes=n.childLanes,l.lanes=n.lanes,l.child=n.child,l.memoizedProps=n.memoizedProps,l.memoizedState=n.memoizedState,l.updateQueue=n.updateQueue,r=n.dependencies,l.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},l.sibling=n.sibling,l.index=n.index,l.ref=n.ref,l.refCleanup=n.refCleanup,l}function Hg(n,r){n.flags&=65011714;var l=n.alternate;return l===null?(n.childLanes=0,n.lanes=r,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=l.childLanes,n.lanes=l.lanes,n.child=l.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=l.memoizedProps,n.memoizedState=l.memoizedState,n.updateQueue=l.updateQueue,n.type=l.type,r=l.dependencies,n.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),n}function Wo(n,r,l,u,b,v){var T=0;if(u=n,typeof n=="function")wd(n)&&(T=1);else if(typeof n=="string")T=Wk(n,l,F.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case Z:return n=Zn(31,l,r,b),n.elementType=Z,n.lanes=v,n;case N:return va(l.children,b,v,r);case S:T=8,b|=24;break;case w:return n=Zn(12,l,r,b|2),n.elementType=w,n.lanes=v,n;case U:return n=Zn(13,l,r,b),n.elementType=U,n.lanes=v,n;case R:return n=Zn(19,l,r,b),n.elementType=R,n.lanes=v,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case E:T=10;break e;case k:T=9;break e;case M:T=11;break e;case B:T=14;break e;case I:T=16,u=null;break e}T=29,l=Error(a(130,n===null?"null":typeof n,"")),u=null}return r=Zn(T,l,r,b),r.elementType=n,r.type=u,r.lanes=v,r}function va(n,r,l,u){return n=Zn(7,n,u,r),n.lanes=l,n}function Ed(n,r,l){return n=Zn(6,n,null,r),n.lanes=l,n}function $g(n){var r=Zn(18,null,null,0);return r.stateNode=n,r}function Nd(n,r,l){return r=Zn(4,n.children!==null?n.children:[],n.key,r),r.lanes=l,r.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},r}var qg=new WeakMap;function ci(n,r){if(typeof n=="object"&&n!==null){var l=qg.get(n);return l!==void 0?l:(r={value:n,source:r,stack:Rt(r)},qg.set(n,r),r)}return{value:n,source:r,stack:Rt(r)}}var ls=[],os=0,Jo=null,hl=0,ui=[],di=0,Dr=null,Bi=1,Ui="";function nr(n,r){ls[os++]=hl,ls[os++]=Jo,Jo=n,hl=r}function Pg(n,r,l){ui[di++]=Bi,ui[di++]=Ui,ui[di++]=Dr,Dr=n;var u=Bi;n=Ui;var b=32-ut(u)-1;u&=~(1<<b),l+=1;var v=32-ut(r)+b;if(30<v){var T=b-b%5;v=(u&(1<<T)-1).toString(32),u>>=T,b-=T,Bi=1<<32-ut(r)+b|l<<b|u,Ui=v+n}else Bi=1<<v|l<<b|u,Ui=n}function Sd(n){n.return!==null&&(nr(n,1),Pg(n,1,0))}function kd(n){for(;n===Jo;)Jo=ls[--os],ls[os]=null,hl=ls[--os],ls[os]=null;for(;n===Dr;)Dr=ui[--di],ui[di]=null,Ui=ui[--di],ui[di]=null,Bi=ui[--di],ui[di]=null}function Fg(n,r){ui[di++]=Bi,ui[di++]=Ui,ui[di++]=Dr,Bi=r.id,Ui=r.overflow,Dr=n}var xn=null,Dt=null,lt=!1,jr=null,fi=!1,Td=Error(a(519));function Lr(n){var r=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ml(ci(r,n)),Td}function Gg(n){var r=n.stateNode,l=n.type,u=n.memoizedProps;switch(r[Ut]=n,r[mn]=u,l){case"dialog":et("cancel",r),et("close",r);break;case"iframe":case"object":case"embed":et("load",r);break;case"video":case"audio":for(l=0;l<zl.length;l++)et(zl[l],r);break;case"source":et("error",r);break;case"img":case"image":case"link":et("error",r),et("load",r);break;case"details":et("toggle",r);break;case"input":et("invalid",r),wi(r,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":et("invalid",r);break;case"textarea":et("invalid",r),ts(r,u.value,u.defaultValue,u.children)}l=u.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||r.textContent===""+l||u.suppressHydrationWarning===!0||o0(r.textContent,l)?(u.popover!=null&&(et("beforetoggle",r),et("toggle",r)),u.onScroll!=null&&et("scroll",r),u.onScrollEnd!=null&&et("scrollend",r),u.onClick!=null&&(r.onclick=_e),r=!0):r=!1,r||Lr(n,!0)}function Vg(n){for(xn=n.return;xn;)switch(xn.tag){case 5:case 31:case 13:fi=!1;return;case 27:case 3:fi=!0;return;default:xn=xn.return}}function cs(n){if(n!==xn)return!1;if(!lt)return Vg(n),lt=!0,!1;var r=n.tag,l;if((l=r!==3&&r!==27)&&((l=r===5)&&(l=n.type,l=!(l!=="form"&&l!=="button")||Vf(n.type,n.memoizedProps)),l=!l),l&&Dt&&Lr(n),Vg(n),r===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(317));Dt=b0(n)}else if(r===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(317));Dt=b0(n)}else r===27?(r=Dt,Kr(n.type)?(n=Qf,Qf=null,Dt=n):Dt=r):Dt=xn?mi(n.stateNode.nextSibling):null;return!0}function _a(){Dt=xn=null,lt=!1}function Ad(){var n=jr;return n!==null&&($n===null?$n=n:$n.push.apply($n,n),jr=null),n}function ml(n){jr===null?jr=[n]:jr.push(n)}var Cd=L(null),wa=null,ir=null;function zr(n,r,l){D(Cd,r._currentValue),r._currentValue=l}function rr(n){n._currentValue=Cd.current,Y(Cd)}function Md(n,r,l){for(;n!==null;){var u=n.alternate;if((n.childLanes&r)!==r?(n.childLanes|=r,u!==null&&(u.childLanes|=r)):u!==null&&(u.childLanes&r)!==r&&(u.childLanes|=r),n===l)break;n=n.return}}function Od(n,r,l,u){var b=n.child;for(b!==null&&(b.return=n);b!==null;){var v=b.dependencies;if(v!==null){var T=b.child;v=v.firstContext;e:for(;v!==null;){var P=v;v=b;for(var ne=0;ne<r.length;ne++)if(P.context===r[ne]){v.lanes|=l,P=v.alternate,P!==null&&(P.lanes|=l),Md(v.return,l,n),u||(T=null);break e}v=P.next}}else if(b.tag===18){if(T=b.return,T===null)throw Error(a(341));T.lanes|=l,v=T.alternate,v!==null&&(v.lanes|=l),Md(T,l,n),T=null}else T=b.child;if(T!==null)T.return=b;else for(T=b;T!==null;){if(T===n){T=null;break}if(b=T.sibling,b!==null){b.return=T.return,T=b;break}T=T.return}b=T}}function us(n,r,l,u){n=null;for(var b=r,v=!1;b!==null;){if(!v){if((b.flags&524288)!==0)v=!0;else if((b.flags&262144)!==0)break}if(b.tag===10){var T=b.alternate;if(T===null)throw Error(a(387));if(T=T.memoizedProps,T!==null){var P=b.type;Kn(b.pendingProps.value,T.value)||(n!==null?n.push(P):n=[P])}}else if(b===J.current){if(T=b.alternate,T===null)throw Error(a(387));T.memoizedState.memoizedState!==b.memoizedState.memoizedState&&(n!==null?n.push($l):n=[$l])}b=b.return}n!==null&&Od(r,n,l,u),r.flags|=262144}function ec(n){for(n=n.firstContext;n!==null;){if(!Kn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Ea(n){wa=n,ir=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function yn(n){return Yg(wa,n)}function tc(n,r){return wa===null&&Ea(n),Yg(n,r)}function Yg(n,r){var l=r._currentValue;if(r={context:r,memoizedValue:l,next:null},ir===null){if(n===null)throw Error(a(308));ir=r,n.dependencies={lanes:0,firstContext:r},n.flags|=524288}else ir=ir.next=r;return l}var XS=typeof AbortController<"u"?AbortController:function(){var n=[],r=this.signal={aborted:!1,addEventListener:function(l,u){n.push(u)}};this.abort=function(){r.aborted=!0,n.forEach(function(l){return l()})}},KS=e.unstable_scheduleCallback,ZS=e.unstable_NormalPriority,en={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Rd(){return{controller:new XS,data:new Map,refCount:0}}function pl(n){n.refCount--,n.refCount===0&&KS(ZS,function(){n.controller.abort()})}var gl=null,Dd=0,ds=0,fs=null;function QS(n,r){if(gl===null){var l=gl=[];Dd=0,ds=If(),fs={status:"pending",value:void 0,then:function(u){l.push(u)}}}return Dd++,r.then(Xg,Xg),r}function Xg(){if(--Dd===0&&gl!==null){fs!==null&&(fs.status="fulfilled");var n=gl;gl=null,ds=0,fs=null;for(var r=0;r<n.length;r++)(0,n[r])()}}function WS(n,r){var l=[],u={status:"pending",value:null,reason:null,then:function(b){l.push(b)}};return n.then(function(){u.status="fulfilled",u.value=r;for(var b=0;b<l.length;b++)(0,l[b])(r)},function(b){for(u.status="rejected",u.reason=b,b=0;b<l.length;b++)(0,l[b])(void 0)}),u}var Kg=O.S;O.S=function(n,r){Rx=ct(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&QS(n,r),Kg!==null&&Kg(n,r)};var Na=L(null);function jd(){var n=Na.current;return n!==null?n:kt.pooledCache}function nc(n,r){r===null?D(Na,Na.current):D(Na,r.pool)}function Zg(){var n=jd();return n===null?null:{parent:en._currentValue,pool:n}}var hs=Error(a(460)),Ld=Error(a(474)),ic=Error(a(542)),rc={then:function(){}};function Qg(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Wg(n,r,l){switch(l=n[l],l===void 0?n.push(r):l!==r&&(r.then(_e,_e),r=l),r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,eb(n),n;default:if(typeof r.status=="string")r.then(_e,_e);else{if(n=kt,n!==null&&100<n.shellSuspendCounter)throw Error(a(482));n=r,n.status="pending",n.then(function(u){if(r.status==="pending"){var b=r;b.status="fulfilled",b.value=u}},function(u){if(r.status==="pending"){var b=r;b.status="rejected",b.reason=u}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,eb(n),n}throw ka=r,hs}}function Sa(n){try{var r=n._init;return r(n._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ka=l,hs):l}}var ka=null;function Jg(){if(ka===null)throw Error(a(459));var n=ka;return ka=null,n}function eb(n){if(n===hs||n===ic)throw Error(a(483))}var ms=null,bl=0;function ac(n){var r=bl;return bl+=1,ms===null&&(ms=[]),Wg(ms,n,r)}function xl(n,r){r=r.props.ref,n.ref=r!==void 0?r:null}function sc(n,r){throw r.$$typeof===y?Error(a(525)):(n=Object.prototype.toString.call(r),Error(a(31,n==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":n)))}function tb(n){function r(ae,re){if(n){var se=ae.deletions;se===null?(ae.deletions=[re],ae.flags|=16):se.push(re)}}function l(ae,re){if(!n)return null;for(;re!==null;)r(ae,re),re=re.sibling;return null}function u(ae){for(var re=new Map;ae!==null;)ae.key!==null?re.set(ae.key,ae):re.set(ae.index,ae),ae=ae.sibling;return re}function b(ae,re){return ae=tr(ae,re),ae.index=0,ae.sibling=null,ae}function v(ae,re,se){return ae.index=se,n?(se=ae.alternate,se!==null?(se=se.index,se<re?(ae.flags|=67108866,re):se):(ae.flags|=67108866,re)):(ae.flags|=1048576,re)}function T(ae){return n&&ae.alternate===null&&(ae.flags|=67108866),ae}function P(ae,re,se,pe){return re===null||re.tag!==6?(re=Ed(se,ae.mode,pe),re.return=ae,re):(re=b(re,se),re.return=ae,re)}function ne(ae,re,se,pe){var Ie=se.type;return Ie===N?he(ae,re,se.props.children,pe,se.key):re!==null&&(re.elementType===Ie||typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===I&&Sa(Ie)===re.type)?(re=b(re,se.props),xl(re,se),re.return=ae,re):(re=Wo(se.type,se.key,se.props,null,ae.mode,pe),xl(re,se),re.return=ae,re)}function le(ae,re,se,pe){return re===null||re.tag!==4||re.stateNode.containerInfo!==se.containerInfo||re.stateNode.implementation!==se.implementation?(re=Nd(se,ae.mode,pe),re.return=ae,re):(re=b(re,se.children||[]),re.return=ae,re)}function he(ae,re,se,pe,Ie){return re===null||re.tag!==7?(re=va(se,ae.mode,pe,Ie),re.return=ae,re):(re=b(re,se),re.return=ae,re)}function ge(ae,re,se){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return re=Ed(""+re,ae.mode,se),re.return=ae,re;if(typeof re=="object"&&re!==null){switch(re.$$typeof){case x:return se=Wo(re.type,re.key,re.props,null,ae.mode,se),xl(se,re),se.return=ae,se;case _:return re=Nd(re,ae.mode,se),re.return=ae,re;case I:return re=Sa(re),ge(ae,re,se)}if(q(re)||V(re))return re=va(re,ae.mode,se,null),re.return=ae,re;if(typeof re.then=="function")return ge(ae,ac(re),se);if(re.$$typeof===E)return ge(ae,tc(ae,re),se);sc(ae,re)}return null}function ce(ae,re,se,pe){var Ie=re!==null?re.key:null;if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return Ie!==null?null:P(ae,re,""+se,pe);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case x:return se.key===Ie?ne(ae,re,se,pe):null;case _:return se.key===Ie?le(ae,re,se,pe):null;case I:return se=Sa(se),ce(ae,re,se,pe)}if(q(se)||V(se))return Ie!==null?null:he(ae,re,se,pe,null);if(typeof se.then=="function")return ce(ae,re,ac(se),pe);if(se.$$typeof===E)return ce(ae,re,tc(ae,se),pe);sc(ae,se)}return null}function de(ae,re,se,pe,Ie){if(typeof pe=="string"&&pe!==""||typeof pe=="number"||typeof pe=="bigint")return ae=ae.get(se)||null,P(re,ae,""+pe,Ie);if(typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case x:return ae=ae.get(pe.key===null?se:pe.key)||null,ne(re,ae,pe,Ie);case _:return ae=ae.get(pe.key===null?se:pe.key)||null,le(re,ae,pe,Ie);case I:return pe=Sa(pe),de(ae,re,se,pe,Ie)}if(q(pe)||V(pe))return ae=ae.get(se)||null,he(re,ae,pe,Ie,null);if(typeof pe.then=="function")return de(ae,re,se,ac(pe),Ie);if(pe.$$typeof===E)return de(ae,re,se,tc(re,pe),Ie);sc(re,pe)}return null}function Ce(ae,re,se,pe){for(var Ie=null,ht=null,De=re,Ke=re=0,at=null;De!==null&&Ke<se.length;Ke++){De.index>Ke?(at=De,De=null):at=De.sibling;var mt=ce(ae,De,se[Ke],pe);if(mt===null){De===null&&(De=at);break}n&&De&&mt.alternate===null&&r(ae,De),re=v(mt,re,Ke),ht===null?Ie=mt:ht.sibling=mt,ht=mt,De=at}if(Ke===se.length)return l(ae,De),lt&&nr(ae,Ke),Ie;if(De===null){for(;Ke<se.length;Ke++)De=ge(ae,se[Ke],pe),De!==null&&(re=v(De,re,Ke),ht===null?Ie=De:ht.sibling=De,ht=De);return lt&&nr(ae,Ke),Ie}for(De=u(De);Ke<se.length;Ke++)at=de(De,ae,Ke,se[Ke],pe),at!==null&&(n&&at.alternate!==null&&De.delete(at.key===null?Ke:at.key),re=v(at,re,Ke),ht===null?Ie=at:ht.sibling=at,ht=at);return n&&De.forEach(function(ea){return r(ae,ea)}),lt&&nr(ae,Ke),Ie}function He(ae,re,se,pe){if(se==null)throw Error(a(151));for(var Ie=null,ht=null,De=re,Ke=re=0,at=null,mt=se.next();De!==null&&!mt.done;Ke++,mt=se.next()){De.index>Ke?(at=De,De=null):at=De.sibling;var ea=ce(ae,De,mt.value,pe);if(ea===null){De===null&&(De=at);break}n&&De&&ea.alternate===null&&r(ae,De),re=v(ea,re,Ke),ht===null?Ie=ea:ht.sibling=ea,ht=ea,De=at}if(mt.done)return l(ae,De),lt&&nr(ae,Ke),Ie;if(De===null){for(;!mt.done;Ke++,mt=se.next())mt=ge(ae,mt.value,pe),mt!==null&&(re=v(mt,re,Ke),ht===null?Ie=mt:ht.sibling=mt,ht=mt);return lt&&nr(ae,Ke),Ie}for(De=u(De);!mt.done;Ke++,mt=se.next())mt=de(De,ae,Ke,mt.value,pe),mt!==null&&(n&&mt.alternate!==null&&De.delete(mt.key===null?Ke:mt.key),re=v(mt,re,Ke),ht===null?Ie=mt:ht.sibling=mt,ht=mt);return n&&De.forEach(function(c2){return r(ae,c2)}),lt&&nr(ae,Ke),Ie}function Nt(ae,re,se,pe){if(typeof se=="object"&&se!==null&&se.type===N&&se.key===null&&(se=se.props.children),typeof se=="object"&&se!==null){switch(se.$$typeof){case x:e:{for(var Ie=se.key;re!==null;){if(re.key===Ie){if(Ie=se.type,Ie===N){if(re.tag===7){l(ae,re.sibling),pe=b(re,se.props.children),pe.return=ae,ae=pe;break e}}else if(re.elementType===Ie||typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===I&&Sa(Ie)===re.type){l(ae,re.sibling),pe=b(re,se.props),xl(pe,se),pe.return=ae,ae=pe;break e}l(ae,re);break}else r(ae,re);re=re.sibling}se.type===N?(pe=va(se.props.children,ae.mode,pe,se.key),pe.return=ae,ae=pe):(pe=Wo(se.type,se.key,se.props,null,ae.mode,pe),xl(pe,se),pe.return=ae,ae=pe)}return T(ae);case _:e:{for(Ie=se.key;re!==null;){if(re.key===Ie)if(re.tag===4&&re.stateNode.containerInfo===se.containerInfo&&re.stateNode.implementation===se.implementation){l(ae,re.sibling),pe=b(re,se.children||[]),pe.return=ae,ae=pe;break e}else{l(ae,re);break}else r(ae,re);re=re.sibling}pe=Nd(se,ae.mode,pe),pe.return=ae,ae=pe}return T(ae);case I:return se=Sa(se),Nt(ae,re,se,pe)}if(q(se))return Ce(ae,re,se,pe);if(V(se)){if(Ie=V(se),typeof Ie!="function")throw Error(a(150));return se=Ie.call(se),He(ae,re,se,pe)}if(typeof se.then=="function")return Nt(ae,re,ac(se),pe);if(se.$$typeof===E)return Nt(ae,re,tc(ae,se),pe);sc(ae,se)}return typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint"?(se=""+se,re!==null&&re.tag===6?(l(ae,re.sibling),pe=b(re,se),pe.return=ae,ae=pe):(l(ae,re),pe=Ed(se,ae.mode,pe),pe.return=ae,ae=pe),T(ae)):l(ae,re)}return function(ae,re,se,pe){try{bl=0;var Ie=Nt(ae,re,se,pe);return ms=null,Ie}catch(De){if(De===hs||De===ic)throw De;var ht=Zn(29,De,null,ae.mode);return ht.lanes=pe,ht.return=ae,ht}finally{}}}var Ta=tb(!0),nb=tb(!1),Ir=!1;function zd(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Id(n,r){n=n.updateQueue,r.updateQueue===n&&(r.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Br(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Ur(n,r,l){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,(pt&2)!==0){var b=u.pending;return b===null?r.next=r:(r.next=b.next,b.next=r),u.pending=r,r=Qo(n),Ug(n,null,l),r}return Zo(n,u,r,l),Qo(n)}function yl(n,r,l){if(r=r.updateQueue,r!==null&&(r=r.shared,(l&4194048)!==0)){var u=r.lanes;u&=n.pendingLanes,l|=u,r.lanes=l,Ue(n,l)}}function Bd(n,r){var l=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var b=null,v=null;if(l=l.firstBaseUpdate,l!==null){do{var T={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};v===null?b=v=T:v=v.next=T,l=l.next}while(l!==null);v===null?b=v=r:v=v.next=r}else b=v=r;l={baseState:u.baseState,firstBaseUpdate:b,lastBaseUpdate:v,shared:u.shared,callbacks:u.callbacks},n.updateQueue=l;return}n=l.lastBaseUpdate,n===null?l.firstBaseUpdate=r:n.next=r,l.lastBaseUpdate=r}var Ud=!1;function vl(){if(Ud){var n=fs;if(n!==null)throw n}}function _l(n,r,l,u){Ud=!1;var b=n.updateQueue;Ir=!1;var v=b.firstBaseUpdate,T=b.lastBaseUpdate,P=b.shared.pending;if(P!==null){b.shared.pending=null;var ne=P,le=ne.next;ne.next=null,T===null?v=le:T.next=le,T=ne;var he=n.alternate;he!==null&&(he=he.updateQueue,P=he.lastBaseUpdate,P!==T&&(P===null?he.firstBaseUpdate=le:P.next=le,he.lastBaseUpdate=ne))}if(v!==null){var ge=b.baseState;T=0,he=le=ne=null,P=v;do{var ce=P.lane&-536870913,de=ce!==P.lane;if(de?(rt&ce)===ce:(u&ce)===ce){ce!==0&&ce===ds&&(Ud=!0),he!==null&&(he=he.next={lane:0,tag:P.tag,payload:P.payload,callback:null,next:null});e:{var Ce=n,He=P;ce=r;var Nt=l;switch(He.tag){case 1:if(Ce=He.payload,typeof Ce=="function"){ge=Ce.call(Nt,ge,ce);break e}ge=Ce;break e;case 3:Ce.flags=Ce.flags&-65537|128;case 0:if(Ce=He.payload,ce=typeof Ce=="function"?Ce.call(Nt,ge,ce):Ce,ce==null)break e;ge=p({},ge,ce);break e;case 2:Ir=!0}}ce=P.callback,ce!==null&&(n.flags|=64,de&&(n.flags|=8192),de=b.callbacks,de===null?b.callbacks=[ce]:de.push(ce))}else de={lane:ce,tag:P.tag,payload:P.payload,callback:P.callback,next:null},he===null?(le=he=de,ne=ge):he=he.next=de,T|=ce;if(P=P.next,P===null){if(P=b.shared.pending,P===null)break;de=P,P=de.next,de.next=null,b.lastBaseUpdate=de,b.shared.pending=null}}while(!0);he===null&&(ne=ge),b.baseState=ne,b.firstBaseUpdate=le,b.lastBaseUpdate=he,v===null&&(b.shared.lanes=0),Fr|=T,n.lanes=T,n.memoizedState=ge}}function ib(n,r){if(typeof n!="function")throw Error(a(191,n));n.call(r)}function rb(n,r){var l=n.callbacks;if(l!==null)for(n.callbacks=null,n=0;n<l.length;n++)ib(l[n],r)}var ps=L(null),lc=L(0);function ab(n,r){n=hr,D(lc,n),D(ps,r),hr=n|r.baseLanes}function Hd(){D(lc,hr),D(ps,ps.current)}function $d(){hr=lc.current,Y(ps),Y(lc)}var Qn=L(null),hi=null;function Hr(n){var r=n.alternate;D(Zt,Zt.current&1),D(Qn,n),hi===null&&(r===null||ps.current!==null||r.memoizedState!==null)&&(hi=n)}function qd(n){D(Zt,Zt.current),D(Qn,n),hi===null&&(hi=n)}function sb(n){n.tag===22?(D(Zt,Zt.current),D(Qn,n),hi===null&&(hi=n)):$r()}function $r(){D(Zt,Zt.current),D(Qn,Qn.current)}function Wn(n){Y(Qn),hi===n&&(hi=null),Y(Zt)}var Zt=L(0);function oc(n){for(var r=n;r!==null;){if(r.tag===13){var l=r.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Kf(l)||Zf(l)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var ar=0,Xe=null,wt=null,tn=null,cc=!1,gs=!1,Aa=!1,uc=0,wl=0,bs=null,JS=0;function Gt(){throw Error(a(321))}function Pd(n,r){if(r===null)return!1;for(var l=0;l<r.length&&l<n.length;l++)if(!Kn(n[l],r[l]))return!1;return!0}function Fd(n,r,l,u,b,v){return ar=v,Xe=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,O.H=n===null||n.memoizedState===null?Pb:sf,Aa=!1,v=l(u,b),Aa=!1,gs&&(v=ob(r,l,u,b)),lb(n),v}function lb(n){O.H=Sl;var r=wt!==null&&wt.next!==null;if(ar=0,tn=wt=Xe=null,cc=!1,wl=0,bs=null,r)throw Error(a(300));n===null||nn||(n=n.dependencies,n!==null&&ec(n)&&(nn=!0))}function ob(n,r,l,u){Xe=n;var b=0;do{if(gs&&(bs=null),wl=0,gs=!1,25<=b)throw Error(a(301));if(b+=1,tn=wt=null,n.updateQueue!=null){var v=n.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}O.H=Fb,v=r(l,u)}while(gs);return v}function ek(){var n=O.H,r=n.useState()[0];return r=typeof r.then=="function"?El(r):r,n=n.useState()[0],(wt!==null?wt.memoizedState:null)!==n&&(Xe.flags|=1024),r}function Gd(){var n=uc!==0;return uc=0,n}function Vd(n,r,l){r.updateQueue=n.updateQueue,r.flags&=-2053,n.lanes&=~l}function Yd(n){if(cc){for(n=n.memoizedState;n!==null;){var r=n.queue;r!==null&&(r.pending=null),n=n.next}cc=!1}ar=0,tn=wt=Xe=null,gs=!1,wl=uc=0,bs=null}function Rn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tn===null?Xe.memoizedState=tn=n:tn=tn.next=n,tn}function Qt(){if(wt===null){var n=Xe.alternate;n=n!==null?n.memoizedState:null}else n=wt.next;var r=tn===null?Xe.memoizedState:tn.next;if(r!==null)tn=r,wt=n;else{if(n===null)throw Xe.alternate===null?Error(a(467)):Error(a(310));wt=n,n={memoizedState:wt.memoizedState,baseState:wt.baseState,baseQueue:wt.baseQueue,queue:wt.queue,next:null},tn===null?Xe.memoizedState=tn=n:tn=tn.next=n}return tn}function dc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function El(n){var r=wl;return wl+=1,bs===null&&(bs=[]),n=Wg(bs,n,r),r=Xe,(tn===null?r.memoizedState:tn.next)===null&&(r=r.alternate,O.H=r===null||r.memoizedState===null?Pb:sf),n}function fc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return El(n);if(n.$$typeof===E)return yn(n)}throw Error(a(438,String(n)))}function Xd(n){var r=null,l=Xe.updateQueue;if(l!==null&&(r=l.memoCache),r==null){var u=Xe.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(r={data:u.data.map(function(b){return b.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),l===null&&(l=dc(),Xe.updateQueue=l),l.memoCache=r,l=r.data[r.index],l===void 0)for(l=r.data[r.index]=Array(n),u=0;u<n;u++)l[u]=j;return r.index++,l}function sr(n,r){return typeof r=="function"?r(n):r}function hc(n){var r=Qt();return Kd(r,wt,n)}function Kd(n,r,l){var u=n.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=l;var b=n.baseQueue,v=u.pending;if(v!==null){if(b!==null){var T=b.next;b.next=v.next,v.next=T}r.baseQueue=b=v,u.pending=null}if(v=n.baseState,b===null)n.memoizedState=v;else{r=b.next;var P=T=null,ne=null,le=r,he=!1;do{var ge=le.lane&-536870913;if(ge!==le.lane?(rt&ge)===ge:(ar&ge)===ge){var ce=le.revertLane;if(ce===0)ne!==null&&(ne=ne.next={lane:0,revertLane:0,gesture:null,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null}),ge===ds&&(he=!0);else if((ar&ce)===ce){le=le.next,ce===ds&&(he=!0);continue}else ge={lane:0,revertLane:le.revertLane,gesture:null,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null},ne===null?(P=ne=ge,T=v):ne=ne.next=ge,Xe.lanes|=ce,Fr|=ce;ge=le.action,Aa&&l(v,ge),v=le.hasEagerState?le.eagerState:l(v,ge)}else ce={lane:ge,revertLane:le.revertLane,gesture:le.gesture,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null},ne===null?(P=ne=ce,T=v):ne=ne.next=ce,Xe.lanes|=ge,Fr|=ge;le=le.next}while(le!==null&&le!==r);if(ne===null?T=v:ne.next=P,!Kn(v,n.memoizedState)&&(nn=!0,he&&(l=fs,l!==null)))throw l;n.memoizedState=v,n.baseState=T,n.baseQueue=ne,u.lastRenderedState=v}return b===null&&(u.lanes=0),[n.memoizedState,u.dispatch]}function Zd(n){var r=Qt(),l=r.queue;if(l===null)throw Error(a(311));l.lastRenderedReducer=n;var u=l.dispatch,b=l.pending,v=r.memoizedState;if(b!==null){l.pending=null;var T=b=b.next;do v=n(v,T.action),T=T.next;while(T!==b);Kn(v,r.memoizedState)||(nn=!0),r.memoizedState=v,r.baseQueue===null&&(r.baseState=v),l.lastRenderedState=v}return[v,u]}function cb(n,r,l){var u=Xe,b=Qt(),v=lt;if(v){if(l===void 0)throw Error(a(407));l=l()}else l=r();var T=!Kn((wt||b).memoizedState,l);if(T&&(b.memoizedState=l,nn=!0),b=b.queue,Jd(fb.bind(null,u,b,n),[n]),b.getSnapshot!==r||T||tn!==null&&tn.memoizedState.tag&1){if(u.flags|=2048,xs(9,{destroy:void 0},db.bind(null,u,b,l,r),null),kt===null)throw Error(a(349));v||(ar&127)!==0||ub(u,r,l)}return l}function ub(n,r,l){n.flags|=16384,n={getSnapshot:r,value:l},r=Xe.updateQueue,r===null?(r=dc(),Xe.updateQueue=r,r.stores=[n]):(l=r.stores,l===null?r.stores=[n]:l.push(n))}function db(n,r,l,u){r.value=l,r.getSnapshot=u,hb(r)&&mb(n)}function fb(n,r,l){return l(function(){hb(r)&&mb(n)})}function hb(n){var r=n.getSnapshot;n=n.value;try{var l=r();return!Kn(n,l)}catch{return!0}}function mb(n){var r=ya(n,2);r!==null&&qn(r,n,2)}function Qd(n){var r=Rn();if(typeof n=="function"){var l=n;if(n=l(),Aa){Wt(!0);try{l()}finally{Wt(!1)}}}return r.memoizedState=r.baseState=n,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sr,lastRenderedState:n},r}function pb(n,r,l,u){return n.baseState=l,Kd(n,wt,typeof u=="function"?u:sr)}function tk(n,r,l,u,b){if(gc(n))throw Error(a(485));if(n=r.action,n!==null){var v={payload:b,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(T){v.listeners.push(T)}};O.T!==null?l(!0):v.isTransition=!1,u(v),l=r.pending,l===null?(v.next=r.pending=v,gb(r,v)):(v.next=l.next,r.pending=l.next=v)}}function gb(n,r){var l=r.action,u=r.payload,b=n.state;if(r.isTransition){var v=O.T,T={};O.T=T;try{var P=l(b,u),ne=O.S;ne!==null&&ne(T,P),bb(n,r,P)}catch(le){Wd(n,r,le)}finally{v!==null&&T.types!==null&&(v.types=T.types),O.T=v}}else try{v=l(b,u),bb(n,r,v)}catch(le){Wd(n,r,le)}}function bb(n,r,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(u){xb(n,r,u)},function(u){return Wd(n,r,u)}):xb(n,r,l)}function xb(n,r,l){r.status="fulfilled",r.value=l,yb(r),n.state=l,r=n.pending,r!==null&&(l=r.next,l===r?n.pending=null:(l=l.next,r.next=l,gb(n,l)))}function Wd(n,r,l){var u=n.pending;if(n.pending=null,u!==null){u=u.next;do r.status="rejected",r.reason=l,yb(r),r=r.next;while(r!==u)}n.action=null}function yb(n){n=n.listeners;for(var r=0;r<n.length;r++)(0,n[r])()}function vb(n,r){return r}function _b(n,r){if(lt){var l=kt.formState;if(l!==null){e:{var u=Xe;if(lt){if(Dt){t:{for(var b=Dt,v=fi;b.nodeType!==8;){if(!v){b=null;break t}if(b=mi(b.nextSibling),b===null){b=null;break t}}v=b.data,b=v==="F!"||v==="F"?b:null}if(b){Dt=mi(b.nextSibling),u=b.data==="F!";break e}}Lr(u)}u=!1}u&&(r=l[0])}}return l=Rn(),l.memoizedState=l.baseState=r,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vb,lastRenderedState:r},l.queue=u,l=Hb.bind(null,Xe,u),u.dispatch=l,u=Qd(!1),v=af.bind(null,Xe,!1,u.queue),u=Rn(),b={state:r,dispatch:null,action:n,pending:null},u.queue=b,l=tk.bind(null,Xe,b,v,l),b.dispatch=l,u.memoizedState=n,[r,l,!1]}function wb(n){var r=Qt();return Eb(r,wt,n)}function Eb(n,r,l){if(r=Kd(n,r,vb)[0],n=hc(sr)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var u=El(r)}catch(T){throw T===hs?ic:T}else u=r;r=Qt();var b=r.queue,v=b.dispatch;return l!==r.memoizedState&&(Xe.flags|=2048,xs(9,{destroy:void 0},nk.bind(null,b,l),null)),[u,v,n]}function nk(n,r){n.action=r}function Nb(n){var r=Qt(),l=wt;if(l!==null)return Eb(r,l,n);Qt(),r=r.memoizedState,l=Qt();var u=l.queue.dispatch;return l.memoizedState=n,[r,u,!1]}function xs(n,r,l,u){return n={tag:n,create:l,deps:u,inst:r,next:null},r=Xe.updateQueue,r===null&&(r=dc(),Xe.updateQueue=r),l=r.lastEffect,l===null?r.lastEffect=n.next=n:(u=l.next,l.next=n,n.next=u,r.lastEffect=n),n}function Sb(){return Qt().memoizedState}function mc(n,r,l,u){var b=Rn();Xe.flags|=n,b.memoizedState=xs(1|r,{destroy:void 0},l,u===void 0?null:u)}function pc(n,r,l,u){var b=Qt();u=u===void 0?null:u;var v=b.memoizedState.inst;wt!==null&&u!==null&&Pd(u,wt.memoizedState.deps)?b.memoizedState=xs(r,v,l,u):(Xe.flags|=n,b.memoizedState=xs(1|r,v,l,u))}function kb(n,r){mc(8390656,8,n,r)}function Jd(n,r){pc(2048,8,n,r)}function ik(n){Xe.flags|=4;var r=Xe.updateQueue;if(r===null)r=dc(),Xe.updateQueue=r,r.events=[n];else{var l=r.events;l===null?r.events=[n]:l.push(n)}}function Tb(n){var r=Qt().memoizedState;return ik({ref:r,nextImpl:n}),function(){if((pt&2)!==0)throw Error(a(440));return r.impl.apply(void 0,arguments)}}function Ab(n,r){return pc(4,2,n,r)}function Cb(n,r){return pc(4,4,n,r)}function Mb(n,r){if(typeof r=="function"){n=n();var l=r(n);return function(){typeof l=="function"?l():r(null)}}if(r!=null)return n=n(),r.current=n,function(){r.current=null}}function Ob(n,r,l){l=l!=null?l.concat([n]):null,pc(4,4,Mb.bind(null,r,n),l)}function ef(){}function Rb(n,r){var l=Qt();r=r===void 0?null:r;var u=l.memoizedState;return r!==null&&Pd(r,u[1])?u[0]:(l.memoizedState=[n,r],n)}function Db(n,r){var l=Qt();r=r===void 0?null:r;var u=l.memoizedState;if(r!==null&&Pd(r,u[1]))return u[0];if(u=n(),Aa){Wt(!0);try{n()}finally{Wt(!1)}}return l.memoizedState=[u,r],u}function tf(n,r,l){return l===void 0||(ar&1073741824)!==0&&(rt&261930)===0?n.memoizedState=r:(n.memoizedState=l,n=jx(),Xe.lanes|=n,Fr|=n,l)}function jb(n,r,l,u){return Kn(l,r)?l:ps.current!==null?(n=tf(n,l,u),Kn(n,r)||(nn=!0),n):(ar&42)===0||(ar&1073741824)!==0&&(rt&261930)===0?(nn=!0,n.memoizedState=l):(n=jx(),Xe.lanes|=n,Fr|=n,r)}function Lb(n,r,l,u,b){var v=H.p;H.p=v!==0&&8>v?v:8;var T=O.T,P={};O.T=P,af(n,!1,r,l);try{var ne=b(),le=O.S;if(le!==null&&le(P,ne),ne!==null&&typeof ne=="object"&&typeof ne.then=="function"){var he=WS(ne,u);Nl(n,r,he,ti(n))}else Nl(n,r,u,ti(n))}catch(ge){Nl(n,r,{then:function(){},status:"rejected",reason:ge},ti())}finally{H.p=v,T!==null&&P.types!==null&&(T.types=P.types),O.T=T}}function rk(){}function nf(n,r,l,u){if(n.tag!==5)throw Error(a(476));var b=zb(n).queue;Lb(n,b,r,K,l===null?rk:function(){return Ib(n),l(u)})}function zb(n){var r=n.memoizedState;if(r!==null)return r;r={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sr,lastRenderedState:K},next:null};var l={};return r.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sr,lastRenderedState:l},next:null},n.memoizedState=r,n=n.alternate,n!==null&&(n.memoizedState=r),r}function Ib(n){var r=zb(n);r.next===null&&(r=n.alternate.memoizedState),Nl(n,r.next.queue,{},ti())}function rf(){return yn($l)}function Bb(){return Qt().memoizedState}function Ub(){return Qt().memoizedState}function ak(n){for(var r=n.return;r!==null;){switch(r.tag){case 24:case 3:var l=ti();n=Br(l);var u=Ur(r,n,l);u!==null&&(qn(u,r,l),yl(u,r,l)),r={cache:Rd()},n.payload=r;return}r=r.return}}function sk(n,r,l){var u=ti();l={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},gc(n)?$b(r,l):(l=_d(n,r,l,u),l!==null&&(qn(l,n,u),qb(l,r,u)))}function Hb(n,r,l){var u=ti();Nl(n,r,l,u)}function Nl(n,r,l,u){var b={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(gc(n))$b(r,b);else{var v=n.alternate;if(n.lanes===0&&(v===null||v.lanes===0)&&(v=r.lastRenderedReducer,v!==null))try{var T=r.lastRenderedState,P=v(T,l);if(b.hasEagerState=!0,b.eagerState=P,Kn(P,T))return Zo(n,r,b,0),kt===null&&Ko(),!1}catch{}finally{}if(l=_d(n,r,b,u),l!==null)return qn(l,n,u),qb(l,r,u),!0}return!1}function af(n,r,l,u){if(u={lane:2,revertLane:If(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},gc(n)){if(r)throw Error(a(479))}else r=_d(n,l,u,2),r!==null&&qn(r,n,2)}function gc(n){var r=n.alternate;return n===Xe||r!==null&&r===Xe}function $b(n,r){gs=cc=!0;var l=n.pending;l===null?r.next=r:(r.next=l.next,l.next=r),n.pending=r}function qb(n,r,l){if((l&4194048)!==0){var u=r.lanes;u&=n.pendingLanes,l|=u,r.lanes=l,Ue(n,l)}}var Sl={readContext:yn,use:fc,useCallback:Gt,useContext:Gt,useEffect:Gt,useImperativeHandle:Gt,useLayoutEffect:Gt,useInsertionEffect:Gt,useMemo:Gt,useReducer:Gt,useRef:Gt,useState:Gt,useDebugValue:Gt,useDeferredValue:Gt,useTransition:Gt,useSyncExternalStore:Gt,useId:Gt,useHostTransitionStatus:Gt,useFormState:Gt,useActionState:Gt,useOptimistic:Gt,useMemoCache:Gt,useCacheRefresh:Gt};Sl.useEffectEvent=Gt;var Pb={readContext:yn,use:fc,useCallback:function(n,r){return Rn().memoizedState=[n,r===void 0?null:r],n},useContext:yn,useEffect:kb,useImperativeHandle:function(n,r,l){l=l!=null?l.concat([n]):null,mc(4194308,4,Mb.bind(null,r,n),l)},useLayoutEffect:function(n,r){return mc(4194308,4,n,r)},useInsertionEffect:function(n,r){mc(4,2,n,r)},useMemo:function(n,r){var l=Rn();r=r===void 0?null:r;var u=n();if(Aa){Wt(!0);try{n()}finally{Wt(!1)}}return l.memoizedState=[u,r],u},useReducer:function(n,r,l){var u=Rn();if(l!==void 0){var b=l(r);if(Aa){Wt(!0);try{l(r)}finally{Wt(!1)}}}else b=r;return u.memoizedState=u.baseState=b,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:b},u.queue=n,n=n.dispatch=sk.bind(null,Xe,n),[u.memoizedState,n]},useRef:function(n){var r=Rn();return n={current:n},r.memoizedState=n},useState:function(n){n=Qd(n);var r=n.queue,l=Hb.bind(null,Xe,r);return r.dispatch=l,[n.memoizedState,l]},useDebugValue:ef,useDeferredValue:function(n,r){var l=Rn();return tf(l,n,r)},useTransition:function(){var n=Qd(!1);return n=Lb.bind(null,Xe,n.queue,!0,!1),Rn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,r,l){var u=Xe,b=Rn();if(lt){if(l===void 0)throw Error(a(407));l=l()}else{if(l=r(),kt===null)throw Error(a(349));(rt&127)!==0||ub(u,r,l)}b.memoizedState=l;var v={value:l,getSnapshot:r};return b.queue=v,kb(fb.bind(null,u,v,n),[n]),u.flags|=2048,xs(9,{destroy:void 0},db.bind(null,u,v,l,r),null),l},useId:function(){var n=Rn(),r=kt.identifierPrefix;if(lt){var l=Ui,u=Bi;l=(u&~(1<<32-ut(u)-1)).toString(32)+l,r="_"+r+"R_"+l,l=uc++,0<l&&(r+="H"+l.toString(32)),r+="_"}else l=JS++,r="_"+r+"r_"+l.toString(32)+"_";return n.memoizedState=r},useHostTransitionStatus:rf,useFormState:_b,useActionState:_b,useOptimistic:function(n){var r=Rn();r.memoizedState=r.baseState=n;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=l,r=af.bind(null,Xe,!0,l),l.dispatch=r,[n,r]},useMemoCache:Xd,useCacheRefresh:function(){return Rn().memoizedState=ak.bind(null,Xe)},useEffectEvent:function(n){var r=Rn(),l={impl:n};return r.memoizedState=l,function(){if((pt&2)!==0)throw Error(a(440));return l.impl.apply(void 0,arguments)}}},sf={readContext:yn,use:fc,useCallback:Rb,useContext:yn,useEffect:Jd,useImperativeHandle:Ob,useInsertionEffect:Ab,useLayoutEffect:Cb,useMemo:Db,useReducer:hc,useRef:Sb,useState:function(){return hc(sr)},useDebugValue:ef,useDeferredValue:function(n,r){var l=Qt();return jb(l,wt.memoizedState,n,r)},useTransition:function(){var n=hc(sr)[0],r=Qt().memoizedState;return[typeof n=="boolean"?n:El(n),r]},useSyncExternalStore:cb,useId:Bb,useHostTransitionStatus:rf,useFormState:wb,useActionState:wb,useOptimistic:function(n,r){var l=Qt();return pb(l,wt,n,r)},useMemoCache:Xd,useCacheRefresh:Ub};sf.useEffectEvent=Tb;var Fb={readContext:yn,use:fc,useCallback:Rb,useContext:yn,useEffect:Jd,useImperativeHandle:Ob,useInsertionEffect:Ab,useLayoutEffect:Cb,useMemo:Db,useReducer:Zd,useRef:Sb,useState:function(){return Zd(sr)},useDebugValue:ef,useDeferredValue:function(n,r){var l=Qt();return wt===null?tf(l,n,r):jb(l,wt.memoizedState,n,r)},useTransition:function(){var n=Zd(sr)[0],r=Qt().memoizedState;return[typeof n=="boolean"?n:El(n),r]},useSyncExternalStore:cb,useId:Bb,useHostTransitionStatus:rf,useFormState:Nb,useActionState:Nb,useOptimistic:function(n,r){var l=Qt();return wt!==null?pb(l,wt,n,r):(l.baseState=n,[n,l.queue.dispatch])},useMemoCache:Xd,useCacheRefresh:Ub};Fb.useEffectEvent=Tb;function lf(n,r,l,u){r=n.memoizedState,l=l(u,r),l=l==null?r:p({},r,l),n.memoizedState=l,n.lanes===0&&(n.updateQueue.baseState=l)}var of={enqueueSetState:function(n,r,l){n=n._reactInternals;var u=ti(),b=Br(u);b.payload=r,l!=null&&(b.callback=l),r=Ur(n,b,u),r!==null&&(qn(r,n,u),yl(r,n,u))},enqueueReplaceState:function(n,r,l){n=n._reactInternals;var u=ti(),b=Br(u);b.tag=1,b.payload=r,l!=null&&(b.callback=l),r=Ur(n,b,u),r!==null&&(qn(r,n,u),yl(r,n,u))},enqueueForceUpdate:function(n,r){n=n._reactInternals;var l=ti(),u=Br(l);u.tag=2,r!=null&&(u.callback=r),r=Ur(n,u,l),r!==null&&(qn(r,n,l),yl(r,n,l))}};function Gb(n,r,l,u,b,v,T){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(u,v,T):r.prototype&&r.prototype.isPureReactComponent?!dl(l,u)||!dl(b,v):!0}function Vb(n,r,l,u){n=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(l,u),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(l,u),r.state!==n&&of.enqueueReplaceState(r,r.state,null)}function Ca(n,r){var l=r;if("ref"in r){l={};for(var u in r)u!=="ref"&&(l[u]=r[u])}if(n=n.defaultProps){l===r&&(l=p({},l));for(var b in n)l[b]===void 0&&(l[b]=n[b])}return l}function Yb(n){Xo(n)}function Xb(n){console.error(n)}function Kb(n){Xo(n)}function bc(n,r){try{var l=n.onUncaughtError;l(r.value,{componentStack:r.stack})}catch(u){setTimeout(function(){throw u})}}function Zb(n,r,l){try{var u=n.onCaughtError;u(l.value,{componentStack:l.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(b){setTimeout(function(){throw b})}}function cf(n,r,l){return l=Br(l),l.tag=3,l.payload={element:null},l.callback=function(){bc(n,r)},l}function Qb(n){return n=Br(n),n.tag=3,n}function Wb(n,r,l,u){var b=l.type.getDerivedStateFromError;if(typeof b=="function"){var v=u.value;n.payload=function(){return b(v)},n.callback=function(){Zb(r,l,u)}}var T=l.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(n.callback=function(){Zb(r,l,u),typeof b!="function"&&(Gr===null?Gr=new Set([this]):Gr.add(this));var P=u.stack;this.componentDidCatch(u.value,{componentStack:P!==null?P:""})})}function lk(n,r,l,u,b){if(l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(r=l.alternate,r!==null&&us(r,l,b,!0),l=Qn.current,l!==null){switch(l.tag){case 31:case 13:return hi===null?Cc():l.alternate===null&&Vt===0&&(Vt=3),l.flags&=-257,l.flags|=65536,l.lanes=b,u===rc?l.flags|=16384:(r=l.updateQueue,r===null?l.updateQueue=new Set([u]):r.add(u),jf(n,u,b)),!1;case 22:return l.flags|=65536,u===rc?l.flags|=16384:(r=l.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([u])},l.updateQueue=r):(l=r.retryQueue,l===null?r.retryQueue=new Set([u]):l.add(u)),jf(n,u,b)),!1}throw Error(a(435,l.tag))}return jf(n,u,b),Cc(),!1}if(lt)return r=Qn.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=b,u!==Td&&(n=Error(a(422),{cause:u}),ml(ci(n,l)))):(u!==Td&&(r=Error(a(423),{cause:u}),ml(ci(r,l))),n=n.current.alternate,n.flags|=65536,b&=-b,n.lanes|=b,u=ci(u,l),b=cf(n.stateNode,u,b),Bd(n,b),Vt!==4&&(Vt=2)),!1;var v=Error(a(520),{cause:u});if(v=ci(v,l),Dl===null?Dl=[v]:Dl.push(v),Vt!==4&&(Vt=2),r===null)return!0;u=ci(u,l),l=r;do{switch(l.tag){case 3:return l.flags|=65536,n=b&-b,l.lanes|=n,n=cf(l.stateNode,u,n),Bd(l,n),!1;case 1:if(r=l.type,v=l.stateNode,(l.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Gr===null||!Gr.has(v))))return l.flags|=65536,b&=-b,l.lanes|=b,b=Qb(b),Wb(b,n,l,u),Bd(l,b),!1}l=l.return}while(l!==null);return!1}var uf=Error(a(461)),nn=!1;function vn(n,r,l,u){r.child=n===null?nb(r,null,l,u):Ta(r,n.child,l,u)}function Jb(n,r,l,u,b){l=l.render;var v=r.ref;if("ref"in u){var T={};for(var P in u)P!=="ref"&&(T[P]=u[P])}else T=u;return Ea(r),u=Fd(n,r,l,T,v,b),P=Gd(),n!==null&&!nn?(Vd(n,r,b),lr(n,r,b)):(lt&&P&&Sd(r),r.flags|=1,vn(n,r,u,b),r.child)}function ex(n,r,l,u,b){if(n===null){var v=l.type;return typeof v=="function"&&!wd(v)&&v.defaultProps===void 0&&l.compare===null?(r.tag=15,r.type=v,tx(n,r,v,u,b)):(n=Wo(l.type,null,u,r,r.mode,b),n.ref=r.ref,n.return=r,r.child=n)}if(v=n.child,!xf(n,b)){var T=v.memoizedProps;if(l=l.compare,l=l!==null?l:dl,l(T,u)&&n.ref===r.ref)return lr(n,r,b)}return r.flags|=1,n=tr(v,u),n.ref=r.ref,n.return=r,r.child=n}function tx(n,r,l,u,b){if(n!==null){var v=n.memoizedProps;if(dl(v,u)&&n.ref===r.ref)if(nn=!1,r.pendingProps=u=v,xf(n,b))(n.flags&131072)!==0&&(nn=!0);else return r.lanes=n.lanes,lr(n,r,b)}return df(n,r,l,u,b)}function nx(n,r,l,u){var b=u.children,v=n!==null?n.memoizedState:null;if(n===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((r.flags&128)!==0){if(v=v!==null?v.baseLanes|l:l,n!==null){for(u=r.child=n.child,b=0;u!==null;)b=b|u.lanes|u.childLanes,u=u.sibling;u=b&~v}else u=0,r.child=null;return ix(n,r,v,l,u)}if((l&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},n!==null&&nc(r,v!==null?v.cachePool:null),v!==null?ab(r,v):Hd(),sb(r);else return u=r.lanes=536870912,ix(n,r,v!==null?v.baseLanes|l:l,l,u)}else v!==null?(nc(r,v.cachePool),ab(r,v),$r(),r.memoizedState=null):(n!==null&&nc(r,null),Hd(),$r());return vn(n,r,b,l),r.child}function kl(n,r){return n!==null&&n.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function ix(n,r,l,u,b){var v=jd();return v=v===null?null:{parent:en._currentValue,pool:v},r.memoizedState={baseLanes:l,cachePool:v},n!==null&&nc(r,null),Hd(),sb(r),n!==null&&us(n,r,u,!0),r.childLanes=b,null}function xc(n,r){return r=vc({mode:r.mode,children:r.children},n.mode),r.ref=n.ref,n.child=r,r.return=n,r}function rx(n,r,l){return Ta(r,n.child,null,l),n=xc(r,r.pendingProps),n.flags|=2,Wn(r),r.memoizedState=null,n}function ok(n,r,l){var u=r.pendingProps,b=(r.flags&128)!==0;if(r.flags&=-129,n===null){if(lt){if(u.mode==="hidden")return n=xc(r,u),r.lanes=536870912,kl(null,n);if(qd(r),(n=Dt)?(n=g0(n,fi),n=n!==null&&n.data==="&"?n:null,n!==null&&(r.memoizedState={dehydrated:n,treeContext:Dr!==null?{id:Bi,overflow:Ui}:null,retryLane:536870912,hydrationErrors:null},l=$g(n),l.return=r,r.child=l,xn=r,Dt=null)):n=null,n===null)throw Lr(r);return r.lanes=536870912,null}return xc(r,u)}var v=n.memoizedState;if(v!==null){var T=v.dehydrated;if(qd(r),b)if(r.flags&256)r.flags&=-257,r=rx(n,r,l);else if(r.memoizedState!==null)r.child=n.child,r.flags|=128,r=null;else throw Error(a(558));else if(nn||us(n,r,l,!1),b=(l&n.childLanes)!==0,nn||b){if(u=kt,u!==null&&(T=Bt(u,l),T!==0&&T!==v.retryLane))throw v.retryLane=T,ya(n,T),qn(u,n,T),uf;Cc(),r=rx(n,r,l)}else n=v.treeContext,Dt=mi(T.nextSibling),xn=r,lt=!0,jr=null,fi=!1,n!==null&&Fg(r,n),r=xc(r,u),r.flags|=4096;return r}return n=tr(n.child,{mode:u.mode,children:u.children}),n.ref=r.ref,r.child=n,n.return=r,n}function yc(n,r){var l=r.ref;if(l===null)n!==null&&n.ref!==null&&(r.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(a(284));(n===null||n.ref!==l)&&(r.flags|=4194816)}}function df(n,r,l,u,b){return Ea(r),l=Fd(n,r,l,u,void 0,b),u=Gd(),n!==null&&!nn?(Vd(n,r,b),lr(n,r,b)):(lt&&u&&Sd(r),r.flags|=1,vn(n,r,l,b),r.child)}function ax(n,r,l,u,b,v){return Ea(r),r.updateQueue=null,l=ob(r,u,l,b),lb(n),u=Gd(),n!==null&&!nn?(Vd(n,r,v),lr(n,r,v)):(lt&&u&&Sd(r),r.flags|=1,vn(n,r,l,v),r.child)}function sx(n,r,l,u,b){if(Ea(r),r.stateNode===null){var v=ss,T=l.contextType;typeof T=="object"&&T!==null&&(v=yn(T)),v=new l(u,v),r.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=of,r.stateNode=v,v._reactInternals=r,v=r.stateNode,v.props=u,v.state=r.memoizedState,v.refs={},zd(r),T=l.contextType,v.context=typeof T=="object"&&T!==null?yn(T):ss,v.state=r.memoizedState,T=l.getDerivedStateFromProps,typeof T=="function"&&(lf(r,l,T,u),v.state=r.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(T=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),T!==v.state&&of.enqueueReplaceState(v,v.state,null),_l(r,u,v,b),vl(),v.state=r.memoizedState),typeof v.componentDidMount=="function"&&(r.flags|=4194308),u=!0}else if(n===null){v=r.stateNode;var P=r.memoizedProps,ne=Ca(l,P);v.props=ne;var le=v.context,he=l.contextType;T=ss,typeof he=="object"&&he!==null&&(T=yn(he));var ge=l.getDerivedStateFromProps;he=typeof ge=="function"||typeof v.getSnapshotBeforeUpdate=="function",P=r.pendingProps!==P,he||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(P||le!==T)&&Vb(r,v,u,T),Ir=!1;var ce=r.memoizedState;v.state=ce,_l(r,u,v,b),vl(),le=r.memoizedState,P||ce!==le||Ir?(typeof ge=="function"&&(lf(r,l,ge,u),le=r.memoizedState),(ne=Ir||Gb(r,l,ne,u,ce,le,T))?(he||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(r.flags|=4194308)):(typeof v.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=u,r.memoizedState=le),v.props=u,v.state=le,v.context=T,u=ne):(typeof v.componentDidMount=="function"&&(r.flags|=4194308),u=!1)}else{v=r.stateNode,Id(n,r),T=r.memoizedProps,he=Ca(l,T),v.props=he,ge=r.pendingProps,ce=v.context,le=l.contextType,ne=ss,typeof le=="object"&&le!==null&&(ne=yn(le)),P=l.getDerivedStateFromProps,(le=typeof P=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(T!==ge||ce!==ne)&&Vb(r,v,u,ne),Ir=!1,ce=r.memoizedState,v.state=ce,_l(r,u,v,b),vl();var de=r.memoizedState;T!==ge||ce!==de||Ir||n!==null&&n.dependencies!==null&&ec(n.dependencies)?(typeof P=="function"&&(lf(r,l,P,u),de=r.memoizedState),(he=Ir||Gb(r,l,he,u,ce,de,ne)||n!==null&&n.dependencies!==null&&ec(n.dependencies))?(le||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(u,de,ne),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(u,de,ne)),typeof v.componentDidUpdate=="function"&&(r.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof v.componentDidUpdate!="function"||T===n.memoizedProps&&ce===n.memoizedState||(r.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&ce===n.memoizedState||(r.flags|=1024),r.memoizedProps=u,r.memoizedState=de),v.props=u,v.state=de,v.context=ne,u=he):(typeof v.componentDidUpdate!="function"||T===n.memoizedProps&&ce===n.memoizedState||(r.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&ce===n.memoizedState||(r.flags|=1024),u=!1)}return v=u,yc(n,r),u=(r.flags&128)!==0,v||u?(v=r.stateNode,l=u&&typeof l.getDerivedStateFromError!="function"?null:v.render(),r.flags|=1,n!==null&&u?(r.child=Ta(r,n.child,null,b),r.child=Ta(r,null,l,b)):vn(n,r,l,b),r.memoizedState=v.state,n=r.child):n=lr(n,r,b),n}function lx(n,r,l,u){return _a(),r.flags|=256,vn(n,r,l,u),r.child}var ff={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function hf(n){return{baseLanes:n,cachePool:Zg()}}function mf(n,r,l){return n=n!==null?n.childLanes&~l:0,r&&(n|=ei),n}function ox(n,r,l){var u=r.pendingProps,b=!1,v=(r.flags&128)!==0,T;if((T=v)||(T=n!==null&&n.memoizedState===null?!1:(Zt.current&2)!==0),T&&(b=!0,r.flags&=-129),T=(r.flags&32)!==0,r.flags&=-33,n===null){if(lt){if(b?Hr(r):$r(),(n=Dt)?(n=g0(n,fi),n=n!==null&&n.data!=="&"?n:null,n!==null&&(r.memoizedState={dehydrated:n,treeContext:Dr!==null?{id:Bi,overflow:Ui}:null,retryLane:536870912,hydrationErrors:null},l=$g(n),l.return=r,r.child=l,xn=r,Dt=null)):n=null,n===null)throw Lr(r);return Zf(n)?r.lanes=32:r.lanes=536870912,null}var P=u.children;return u=u.fallback,b?($r(),b=r.mode,P=vc({mode:"hidden",children:P},b),u=va(u,b,l,null),P.return=r,u.return=r,P.sibling=u,r.child=P,u=r.child,u.memoizedState=hf(l),u.childLanes=mf(n,T,l),r.memoizedState=ff,kl(null,u)):(Hr(r),pf(r,P))}var ne=n.memoizedState;if(ne!==null&&(P=ne.dehydrated,P!==null)){if(v)r.flags&256?(Hr(r),r.flags&=-257,r=gf(n,r,l)):r.memoizedState!==null?($r(),r.child=n.child,r.flags|=128,r=null):($r(),P=u.fallback,b=r.mode,u=vc({mode:"visible",children:u.children},b),P=va(P,b,l,null),P.flags|=2,u.return=r,P.return=r,u.sibling=P,r.child=u,Ta(r,n.child,null,l),u=r.child,u.memoizedState=hf(l),u.childLanes=mf(n,T,l),r.memoizedState=ff,r=kl(null,u));else if(Hr(r),Zf(P)){if(T=P.nextSibling&&P.nextSibling.dataset,T)var le=T.dgst;T=le,u=Error(a(419)),u.stack="",u.digest=T,ml({value:u,source:null,stack:null}),r=gf(n,r,l)}else if(nn||us(n,r,l,!1),T=(l&n.childLanes)!==0,nn||T){if(T=kt,T!==null&&(u=Bt(T,l),u!==0&&u!==ne.retryLane))throw ne.retryLane=u,ya(n,u),qn(T,n,u),uf;Kf(P)||Cc(),r=gf(n,r,l)}else Kf(P)?(r.flags|=192,r.child=n.child,r=null):(n=ne.treeContext,Dt=mi(P.nextSibling),xn=r,lt=!0,jr=null,fi=!1,n!==null&&Fg(r,n),r=pf(r,u.children),r.flags|=4096);return r}return b?($r(),P=u.fallback,b=r.mode,ne=n.child,le=ne.sibling,u=tr(ne,{mode:"hidden",children:u.children}),u.subtreeFlags=ne.subtreeFlags&65011712,le!==null?P=tr(le,P):(P=va(P,b,l,null),P.flags|=2),P.return=r,u.return=r,u.sibling=P,r.child=u,kl(null,u),u=r.child,P=n.child.memoizedState,P===null?P=hf(l):(b=P.cachePool,b!==null?(ne=en._currentValue,b=b.parent!==ne?{parent:ne,pool:ne}:b):b=Zg(),P={baseLanes:P.baseLanes|l,cachePool:b}),u.memoizedState=P,u.childLanes=mf(n,T,l),r.memoizedState=ff,kl(n.child,u)):(Hr(r),l=n.child,n=l.sibling,l=tr(l,{mode:"visible",children:u.children}),l.return=r,l.sibling=null,n!==null&&(T=r.deletions,T===null?(r.deletions=[n],r.flags|=16):T.push(n)),r.child=l,r.memoizedState=null,l)}function pf(n,r){return r=vc({mode:"visible",children:r},n.mode),r.return=n,n.child=r}function vc(n,r){return n=Zn(22,n,null,r),n.lanes=0,n}function gf(n,r,l){return Ta(r,n.child,null,l),n=pf(r,r.pendingProps.children),n.flags|=2,r.memoizedState=null,n}function cx(n,r,l){n.lanes|=r;var u=n.alternate;u!==null&&(u.lanes|=r),Md(n.return,r,l)}function bf(n,r,l,u,b,v){var T=n.memoizedState;T===null?n.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:b,treeForkCount:v}:(T.isBackwards=r,T.rendering=null,T.renderingStartTime=0,T.last=u,T.tail=l,T.tailMode=b,T.treeForkCount=v)}function ux(n,r,l){var u=r.pendingProps,b=u.revealOrder,v=u.tail;u=u.children;var T=Zt.current,P=(T&2)!==0;if(P?(T=T&1|2,r.flags|=128):T&=1,D(Zt,T),vn(n,r,u,l),u=lt?hl:0,!P&&n!==null&&(n.flags&128)!==0)e:for(n=r.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&cx(n,l,r);else if(n.tag===19)cx(n,l,r);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===r)break e;for(;n.sibling===null;){if(n.return===null||n.return===r)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(b){case"forwards":for(l=r.child,b=null;l!==null;)n=l.alternate,n!==null&&oc(n)===null&&(b=l),l=l.sibling;l=b,l===null?(b=r.child,r.child=null):(b=l.sibling,l.sibling=null),bf(r,!1,b,l,v,u);break;case"backwards":case"unstable_legacy-backwards":for(l=null,b=r.child,r.child=null;b!==null;){if(n=b.alternate,n!==null&&oc(n)===null){r.child=b;break}n=b.sibling,b.sibling=l,l=b,b=n}bf(r,!0,l,null,v,u);break;case"together":bf(r,!1,null,null,void 0,u);break;default:r.memoizedState=null}return r.child}function lr(n,r,l){if(n!==null&&(r.dependencies=n.dependencies),Fr|=r.lanes,(l&r.childLanes)===0)if(n!==null){if(us(n,r,l,!1),(l&r.childLanes)===0)return null}else return null;if(n!==null&&r.child!==n.child)throw Error(a(153));if(r.child!==null){for(n=r.child,l=tr(n,n.pendingProps),r.child=l,l.return=r;n.sibling!==null;)n=n.sibling,l=l.sibling=tr(n,n.pendingProps),l.return=r;l.sibling=null}return r.child}function xf(n,r){return(n.lanes&r)!==0?!0:(n=n.dependencies,!!(n!==null&&ec(n)))}function ck(n,r,l){switch(r.tag){case 3:W(r,r.stateNode.containerInfo),zr(r,en,n.memoizedState.cache),_a();break;case 27:case 5:oe(r);break;case 4:W(r,r.stateNode.containerInfo);break;case 10:zr(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,qd(r),null;break;case 13:var u=r.memoizedState;if(u!==null)return u.dehydrated!==null?(Hr(r),r.flags|=128,null):(l&r.child.childLanes)!==0?ox(n,r,l):(Hr(r),n=lr(n,r,l),n!==null?n.sibling:null);Hr(r);break;case 19:var b=(n.flags&128)!==0;if(u=(l&r.childLanes)!==0,u||(us(n,r,l,!1),u=(l&r.childLanes)!==0),b){if(u)return ux(n,r,l);r.flags|=128}if(b=r.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),D(Zt,Zt.current),u)break;return null;case 22:return r.lanes=0,nx(n,r,l,r.pendingProps);case 24:zr(r,en,n.memoizedState.cache)}return lr(n,r,l)}function dx(n,r,l){if(n!==null)if(n.memoizedProps!==r.pendingProps)nn=!0;else{if(!xf(n,l)&&(r.flags&128)===0)return nn=!1,ck(n,r,l);nn=(n.flags&131072)!==0}else nn=!1,lt&&(r.flags&1048576)!==0&&Pg(r,hl,r.index);switch(r.lanes=0,r.tag){case 16:e:{var u=r.pendingProps;if(n=Sa(r.elementType),r.type=n,typeof n=="function")wd(n)?(u=Ca(n,u),r.tag=1,r=sx(null,r,n,u,l)):(r.tag=0,r=df(null,r,n,u,l));else{if(n!=null){var b=n.$$typeof;if(b===M){r.tag=11,r=Jb(null,r,n,u,l);break e}else if(b===B){r.tag=14,r=ex(null,r,n,u,l);break e}}throw r=A(n)||n,Error(a(306,r,""))}}return r;case 0:return df(n,r,r.type,r.pendingProps,l);case 1:return u=r.type,b=Ca(u,r.pendingProps),sx(n,r,u,b,l);case 3:e:{if(W(r,r.stateNode.containerInfo),n===null)throw Error(a(387));u=r.pendingProps;var v=r.memoizedState;b=v.element,Id(n,r),_l(r,u,null,l);var T=r.memoizedState;if(u=T.cache,zr(r,en,u),u!==v.cache&&Od(r,[en],l,!0),vl(),u=T.element,v.isDehydrated)if(v={element:u,isDehydrated:!1,cache:T.cache},r.updateQueue.baseState=v,r.memoizedState=v,r.flags&256){r=lx(n,r,u,l);break e}else if(u!==b){b=ci(Error(a(424)),r),ml(b),r=lx(n,r,u,l);break e}else{switch(n=r.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(Dt=mi(n.firstChild),xn=r,lt=!0,jr=null,fi=!0,l=nb(r,null,u,l),r.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(_a(),u===b){r=lr(n,r,l);break e}vn(n,r,u,l)}r=r.child}return r;case 26:return yc(n,r),n===null?(l=w0(r.type,null,r.pendingProps,null))?r.memoizedState=l:lt||(l=r.type,n=r.pendingProps,u=zc(Q.current).createElement(l),u[Ut]=r,u[mn]=n,_n(u,l,n),Ft(u),r.stateNode=u):r.memoizedState=w0(r.type,n.memoizedProps,r.pendingProps,n.memoizedState),null;case 27:return oe(r),n===null&&lt&&(u=r.stateNode=y0(r.type,r.pendingProps,Q.current),xn=r,fi=!0,b=Dt,Kr(r.type)?(Qf=b,Dt=mi(u.firstChild)):Dt=b),vn(n,r,r.pendingProps.children,l),yc(n,r),n===null&&(r.flags|=4194304),r.child;case 5:return n===null&&lt&&((b=u=Dt)&&(u=Uk(u,r.type,r.pendingProps,fi),u!==null?(r.stateNode=u,xn=r,Dt=mi(u.firstChild),fi=!1,b=!0):b=!1),b||Lr(r)),oe(r),b=r.type,v=r.pendingProps,T=n!==null?n.memoizedProps:null,u=v.children,Vf(b,v)?u=null:T!==null&&Vf(b,T)&&(r.flags|=32),r.memoizedState!==null&&(b=Fd(n,r,ek,null,null,l),$l._currentValue=b),yc(n,r),vn(n,r,u,l),r.child;case 6:return n===null&&lt&&((n=l=Dt)&&(l=Hk(l,r.pendingProps,fi),l!==null?(r.stateNode=l,xn=r,Dt=null,n=!0):n=!1),n||Lr(r)),null;case 13:return ox(n,r,l);case 4:return W(r,r.stateNode.containerInfo),u=r.pendingProps,n===null?r.child=Ta(r,null,u,l):vn(n,r,u,l),r.child;case 11:return Jb(n,r,r.type,r.pendingProps,l);case 7:return vn(n,r,r.pendingProps,l),r.child;case 8:return vn(n,r,r.pendingProps.children,l),r.child;case 12:return vn(n,r,r.pendingProps.children,l),r.child;case 10:return u=r.pendingProps,zr(r,r.type,u.value),vn(n,r,u.children,l),r.child;case 9:return b=r.type._context,u=r.pendingProps.children,Ea(r),b=yn(b),u=u(b),r.flags|=1,vn(n,r,u,l),r.child;case 14:return ex(n,r,r.type,r.pendingProps,l);case 15:return tx(n,r,r.type,r.pendingProps,l);case 19:return ux(n,r,l);case 31:return ok(n,r,l);case 22:return nx(n,r,l,r.pendingProps);case 24:return Ea(r),u=yn(en),n===null?(b=jd(),b===null&&(b=kt,v=Rd(),b.pooledCache=v,v.refCount++,v!==null&&(b.pooledCacheLanes|=l),b=v),r.memoizedState={parent:u,cache:b},zd(r),zr(r,en,b)):((n.lanes&l)!==0&&(Id(n,r),_l(r,null,null,l),vl()),b=n.memoizedState,v=r.memoizedState,b.parent!==u?(b={parent:u,cache:u},r.memoizedState=b,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=b),zr(r,en,u)):(u=v.cache,zr(r,en,u),u!==b.cache&&Od(r,[en],l,!0))),vn(n,r,r.pendingProps.children,l),r.child;case 29:throw r.pendingProps}throw Error(a(156,r.tag))}function or(n){n.flags|=4}function yf(n,r,l,u,b){if((r=(n.mode&32)!==0)&&(r=!1),r){if(n.flags|=16777216,(b&335544128)===b)if(n.stateNode.complete)n.flags|=8192;else if(Bx())n.flags|=8192;else throw ka=rc,Ld}else n.flags&=-16777217}function fx(n,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!T0(r))if(Bx())n.flags|=8192;else throw ka=rc,Ld}function _c(n,r){r!==null&&(n.flags|=4),n.flags&16384&&(r=n.tag!==22?Pe():536870912,n.lanes|=r,ws|=r)}function Tl(n,r){if(!lt)switch(n.tailMode){case"hidden":r=n.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?n.tail=null:l.sibling=null;break;case"collapsed":l=n.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?r||n.tail===null?n.tail=null:n.tail.sibling=null:u.sibling=null}}function jt(n){var r=n.alternate!==null&&n.alternate.child===n.child,l=0,u=0;if(r)for(var b=n.child;b!==null;)l|=b.lanes|b.childLanes,u|=b.subtreeFlags&65011712,u|=b.flags&65011712,b.return=n,b=b.sibling;else for(b=n.child;b!==null;)l|=b.lanes|b.childLanes,u|=b.subtreeFlags,u|=b.flags,b.return=n,b=b.sibling;return n.subtreeFlags|=u,n.childLanes=l,r}function uk(n,r,l){var u=r.pendingProps;switch(kd(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jt(r),null;case 1:return jt(r),null;case 3:return l=r.stateNode,u=null,n!==null&&(u=n.memoizedState.cache),r.memoizedState.cache!==u&&(r.flags|=2048),rr(en),te(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(n===null||n.child===null)&&(cs(r)?or(r):n===null||n.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Ad())),jt(r),null;case 26:var b=r.type,v=r.memoizedState;return n===null?(or(r),v!==null?(jt(r),fx(r,v)):(jt(r),yf(r,b,null,u,l))):v?v!==n.memoizedState?(or(r),jt(r),fx(r,v)):(jt(r),r.flags&=-16777217):(n=n.memoizedProps,n!==u&&or(r),jt(r),yf(r,b,n,u,l)),null;case 27:if(fe(r),l=Q.current,b=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==u&&or(r);else{if(!u){if(r.stateNode===null)throw Error(a(166));return jt(r),null}n=F.current,cs(r)?Gg(r):(n=y0(b,u,l),r.stateNode=n,or(r))}return jt(r),null;case 5:if(fe(r),b=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==u&&or(r);else{if(!u){if(r.stateNode===null)throw Error(a(166));return jt(r),null}if(v=F.current,cs(r))Gg(r);else{var T=zc(Q.current);switch(v){case 1:v=T.createElementNS("http://www.w3.org/2000/svg",b);break;case 2:v=T.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;default:switch(b){case"svg":v=T.createElementNS("http://www.w3.org/2000/svg",b);break;case"math":v=T.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;case"script":v=T.createElement("div"),v.innerHTML="<script><\/script>",v=v.removeChild(v.firstChild);break;case"select":v=typeof u.is=="string"?T.createElement("select",{is:u.is}):T.createElement("select"),u.multiple?v.multiple=!0:u.size&&(v.size=u.size);break;default:v=typeof u.is=="string"?T.createElement(b,{is:u.is}):T.createElement(b)}}v[Ut]=r,v[mn]=u;e:for(T=r.child;T!==null;){if(T.tag===5||T.tag===6)v.appendChild(T.stateNode);else if(T.tag!==4&&T.tag!==27&&T.child!==null){T.child.return=T,T=T.child;continue}if(T===r)break e;for(;T.sibling===null;){if(T.return===null||T.return===r)break e;T=T.return}T.sibling.return=T.return,T=T.sibling}r.stateNode=v;e:switch(_n(v,b,u),b){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&or(r)}}return jt(r),yf(r,r.type,n===null?null:n.memoizedProps,r.pendingProps,l),null;case 6:if(n&&r.stateNode!=null)n.memoizedProps!==u&&or(r);else{if(typeof u!="string"&&r.stateNode===null)throw Error(a(166));if(n=Q.current,cs(r)){if(n=r.stateNode,l=r.memoizedProps,u=null,b=xn,b!==null)switch(b.tag){case 27:case 5:u=b.memoizedProps}n[Ut]=r,n=!!(n.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||o0(n.nodeValue,l)),n||Lr(r,!0)}else n=zc(n).createTextNode(u),n[Ut]=r,r.stateNode=n}return jt(r),null;case 31:if(l=r.memoizedState,n===null||n.memoizedState!==null){if(u=cs(r),l!==null){if(n===null){if(!u)throw Error(a(318));if(n=r.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(557));n[Ut]=r}else _a(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;jt(r),n=!1}else l=Ad(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=l),n=!0;if(!n)return r.flags&256?(Wn(r),r):(Wn(r),null);if((r.flags&128)!==0)throw Error(a(558))}return jt(r),null;case 13:if(u=r.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(b=cs(r),u!==null&&u.dehydrated!==null){if(n===null){if(!b)throw Error(a(318));if(b=r.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(a(317));b[Ut]=r}else _a(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;jt(r),b=!1}else b=Ad(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=b),b=!0;if(!b)return r.flags&256?(Wn(r),r):(Wn(r),null)}return Wn(r),(r.flags&128)!==0?(r.lanes=l,r):(l=u!==null,n=n!==null&&n.memoizedState!==null,l&&(u=r.child,b=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(b=u.alternate.memoizedState.cachePool.pool),v=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(v=u.memoizedState.cachePool.pool),v!==b&&(u.flags|=2048)),l!==n&&l&&(r.child.flags|=8192),_c(r,r.updateQueue),jt(r),null);case 4:return te(),n===null&&$f(r.stateNode.containerInfo),jt(r),null;case 10:return rr(r.type),jt(r),null;case 19:if(Y(Zt),u=r.memoizedState,u===null)return jt(r),null;if(b=(r.flags&128)!==0,v=u.rendering,v===null)if(b)Tl(u,!1);else{if(Vt!==0||n!==null&&(n.flags&128)!==0)for(n=r.child;n!==null;){if(v=oc(n),v!==null){for(r.flags|=128,Tl(u,!1),n=v.updateQueue,r.updateQueue=n,_c(r,n),r.subtreeFlags=0,n=l,l=r.child;l!==null;)Hg(l,n),l=l.sibling;return D(Zt,Zt.current&1|2),lt&&nr(r,u.treeForkCount),r.child}n=n.sibling}u.tail!==null&&ct()>kc&&(r.flags|=128,b=!0,Tl(u,!1),r.lanes=4194304)}else{if(!b)if(n=oc(v),n!==null){if(r.flags|=128,b=!0,n=n.updateQueue,r.updateQueue=n,_c(r,n),Tl(u,!0),u.tail===null&&u.tailMode==="hidden"&&!v.alternate&&!lt)return jt(r),null}else 2*ct()-u.renderingStartTime>kc&&l!==536870912&&(r.flags|=128,b=!0,Tl(u,!1),r.lanes=4194304);u.isBackwards?(v.sibling=r.child,r.child=v):(n=u.last,n!==null?n.sibling=v:r.child=v,u.last=v)}return u.tail!==null?(n=u.tail,u.rendering=n,u.tail=n.sibling,u.renderingStartTime=ct(),n.sibling=null,l=Zt.current,D(Zt,b?l&1|2:l&1),lt&&nr(r,u.treeForkCount),n):(jt(r),null);case 22:case 23:return Wn(r),$d(),u=r.memoizedState!==null,n!==null?n.memoizedState!==null!==u&&(r.flags|=8192):u&&(r.flags|=8192),u?(l&536870912)!==0&&(r.flags&128)===0&&(jt(r),r.subtreeFlags&6&&(r.flags|=8192)):jt(r),l=r.updateQueue,l!==null&&_c(r,l.retryQueue),l=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),u=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),u!==l&&(r.flags|=2048),n!==null&&Y(Na),null;case 24:return l=null,n!==null&&(l=n.memoizedState.cache),r.memoizedState.cache!==l&&(r.flags|=2048),rr(en),jt(r),null;case 25:return null;case 30:return null}throw Error(a(156,r.tag))}function dk(n,r){switch(kd(r),r.tag){case 1:return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 3:return rr(en),te(),n=r.flags,(n&65536)!==0&&(n&128)===0?(r.flags=n&-65537|128,r):null;case 26:case 27:case 5:return fe(r),null;case 31:if(r.memoizedState!==null){if(Wn(r),r.alternate===null)throw Error(a(340));_a()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 13:if(Wn(r),n=r.memoizedState,n!==null&&n.dehydrated!==null){if(r.alternate===null)throw Error(a(340));_a()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 19:return Y(Zt),null;case 4:return te(),null;case 10:return rr(r.type),null;case 22:case 23:return Wn(r),$d(),n!==null&&Y(Na),n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 24:return rr(en),null;case 25:return null;default:return null}}function hx(n,r){switch(kd(r),r.tag){case 3:rr(en),te();break;case 26:case 27:case 5:fe(r);break;case 4:te();break;case 31:r.memoizedState!==null&&Wn(r);break;case 13:Wn(r);break;case 19:Y(Zt);break;case 10:rr(r.type);break;case 22:case 23:Wn(r),$d(),n!==null&&Y(Na);break;case 24:rr(en)}}function Al(n,r){try{var l=r.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var b=u.next;l=b;do{if((l.tag&n)===n){u=void 0;var v=l.create,T=l.inst;u=v(),T.destroy=u}l=l.next}while(l!==b)}}catch(P){yt(r,r.return,P)}}function qr(n,r,l){try{var u=r.updateQueue,b=u!==null?u.lastEffect:null;if(b!==null){var v=b.next;u=v;do{if((u.tag&n)===n){var T=u.inst,P=T.destroy;if(P!==void 0){T.destroy=void 0,b=r;var ne=l,le=P;try{le()}catch(he){yt(b,ne,he)}}}u=u.next}while(u!==v)}}catch(he){yt(r,r.return,he)}}function mx(n){var r=n.updateQueue;if(r!==null){var l=n.stateNode;try{rb(r,l)}catch(u){yt(n,n.return,u)}}}function px(n,r,l){l.props=Ca(n.type,n.memoizedProps),l.state=n.memoizedState;try{l.componentWillUnmount()}catch(u){yt(n,r,u)}}function Cl(n,r){try{var l=n.ref;if(l!==null){switch(n.tag){case 26:case 27:case 5:var u=n.stateNode;break;case 30:u=n.stateNode;break;default:u=n.stateNode}typeof l=="function"?n.refCleanup=l(u):l.current=u}}catch(b){yt(n,r,b)}}function Hi(n,r){var l=n.ref,u=n.refCleanup;if(l!==null)if(typeof u=="function")try{u()}catch(b){yt(n,r,b)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(b){yt(n,r,b)}else l.current=null}function gx(n){var r=n.type,l=n.memoizedProps,u=n.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":l.autoFocus&&u.focus();break e;case"img":l.src?u.src=l.src:l.srcSet&&(u.srcset=l.srcSet)}}catch(b){yt(n,n.return,b)}}function vf(n,r,l){try{var u=n.stateNode;Dk(u,n.type,l,r),u[mn]=r}catch(b){yt(n,n.return,b)}}function bx(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Kr(n.type)||n.tag===4}function _f(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||bx(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Kr(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function wf(n,r,l){var u=n.tag;if(u===5||u===6)n=n.stateNode,r?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(n,r):(r=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,r.appendChild(n),l=l._reactRootContainer,l!=null||r.onclick!==null||(r.onclick=_e));else if(u!==4&&(u===27&&Kr(n.type)&&(l=n.stateNode,r=null),n=n.child,n!==null))for(wf(n,r,l),n=n.sibling;n!==null;)wf(n,r,l),n=n.sibling}function wc(n,r,l){var u=n.tag;if(u===5||u===6)n=n.stateNode,r?l.insertBefore(n,r):l.appendChild(n);else if(u!==4&&(u===27&&Kr(n.type)&&(l=n.stateNode),n=n.child,n!==null))for(wc(n,r,l),n=n.sibling;n!==null;)wc(n,r,l),n=n.sibling}function xx(n){var r=n.stateNode,l=n.memoizedProps;try{for(var u=n.type,b=r.attributes;b.length;)r.removeAttributeNode(b[0]);_n(r,u,l),r[Ut]=n,r[mn]=l}catch(v){yt(n,n.return,v)}}var cr=!1,rn=!1,Ef=!1,yx=typeof WeakSet=="function"?WeakSet:Set,gn=null;function fk(n,r){if(n=n.containerInfo,Ff=Pc,n=Og(n),pd(n)){if("selectionStart"in n)var l={start:n.selectionStart,end:n.selectionEnd};else e:{l=(l=n.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var b=u.anchorOffset,v=u.focusNode;u=u.focusOffset;try{l.nodeType,v.nodeType}catch{l=null;break e}var T=0,P=-1,ne=-1,le=0,he=0,ge=n,ce=null;t:for(;;){for(var de;ge!==l||b!==0&&ge.nodeType!==3||(P=T+b),ge!==v||u!==0&&ge.nodeType!==3||(ne=T+u),ge.nodeType===3&&(T+=ge.nodeValue.length),(de=ge.firstChild)!==null;)ce=ge,ge=de;for(;;){if(ge===n)break t;if(ce===l&&++le===b&&(P=T),ce===v&&++he===u&&(ne=T),(de=ge.nextSibling)!==null)break;ge=ce,ce=ge.parentNode}ge=de}l=P===-1||ne===-1?null:{start:P,end:ne}}else l=null}l=l||{start:0,end:0}}else l=null;for(Gf={focusedElem:n,selectionRange:l},Pc=!1,gn=r;gn!==null;)if(r=gn,n=r.child,(r.subtreeFlags&1028)!==0&&n!==null)n.return=r,gn=n;else for(;gn!==null;){switch(r=gn,v=r.alternate,n=r.flags,r.tag){case 0:if((n&4)!==0&&(n=r.updateQueue,n=n!==null?n.events:null,n!==null))for(l=0;l<n.length;l++)b=n[l],b.ref.impl=b.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&v!==null){n=void 0,l=r,b=v.memoizedProps,v=v.memoizedState,u=l.stateNode;try{var Ce=Ca(l.type,b);n=u.getSnapshotBeforeUpdate(Ce,v),u.__reactInternalSnapshotBeforeUpdate=n}catch(He){yt(l,l.return,He)}}break;case 3:if((n&1024)!==0){if(n=r.stateNode.containerInfo,l=n.nodeType,l===9)Xf(n);else if(l===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Xf(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(a(163))}if(n=r.sibling,n!==null){n.return=r.return,gn=n;break}gn=r.return}}function vx(n,r,l){var u=l.flags;switch(l.tag){case 0:case 11:case 15:dr(n,l),u&4&&Al(5,l);break;case 1:if(dr(n,l),u&4)if(n=l.stateNode,r===null)try{n.componentDidMount()}catch(T){yt(l,l.return,T)}else{var b=Ca(l.type,r.memoizedProps);r=r.memoizedState;try{n.componentDidUpdate(b,r,n.__reactInternalSnapshotBeforeUpdate)}catch(T){yt(l,l.return,T)}}u&64&&mx(l),u&512&&Cl(l,l.return);break;case 3:if(dr(n,l),u&64&&(n=l.updateQueue,n!==null)){if(r=null,l.child!==null)switch(l.child.tag){case 27:case 5:r=l.child.stateNode;break;case 1:r=l.child.stateNode}try{rb(n,r)}catch(T){yt(l,l.return,T)}}break;case 27:r===null&&u&4&&xx(l);case 26:case 5:dr(n,l),r===null&&u&4&&gx(l),u&512&&Cl(l,l.return);break;case 12:dr(n,l);break;case 31:dr(n,l),u&4&&Ex(n,l);break;case 13:dr(n,l),u&4&&Nx(n,l),u&64&&(n=l.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(l=_k.bind(null,l),$k(n,l))));break;case 22:if(u=l.memoizedState!==null||cr,!u){r=r!==null&&r.memoizedState!==null||rn,b=cr;var v=rn;cr=u,(rn=r)&&!v?fr(n,l,(l.subtreeFlags&8772)!==0):dr(n,l),cr=b,rn=v}break;case 30:break;default:dr(n,l)}}function _x(n){var r=n.alternate;r!==null&&(n.alternate=null,_x(r)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(r=n.stateNode,r!==null&&ha(r)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var zt=null,Bn=!1;function ur(n,r,l){for(l=l.child;l!==null;)wx(n,r,l),l=l.sibling}function wx(n,r,l){if(Ct&&typeof Ct.onCommitFiberUnmount=="function")try{Ct.onCommitFiberUnmount(Kt,l)}catch{}switch(l.tag){case 26:rn||Hi(l,r),ur(n,r,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:rn||Hi(l,r);var u=zt,b=Bn;Kr(l.type)&&(zt=l.stateNode,Bn=!1),ur(n,r,l),Bl(l.stateNode),zt=u,Bn=b;break;case 5:rn||Hi(l,r);case 6:if(u=zt,b=Bn,zt=null,ur(n,r,l),zt=u,Bn=b,zt!==null)if(Bn)try{(zt.nodeType===9?zt.body:zt.nodeName==="HTML"?zt.ownerDocument.body:zt).removeChild(l.stateNode)}catch(v){yt(l,r,v)}else try{zt.removeChild(l.stateNode)}catch(v){yt(l,r,v)}break;case 18:zt!==null&&(Bn?(n=zt,m0(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,l.stateNode),Ms(n)):m0(zt,l.stateNode));break;case 4:u=zt,b=Bn,zt=l.stateNode.containerInfo,Bn=!0,ur(n,r,l),zt=u,Bn=b;break;case 0:case 11:case 14:case 15:qr(2,l,r),rn||qr(4,l,r),ur(n,r,l);break;case 1:rn||(Hi(l,r),u=l.stateNode,typeof u.componentWillUnmount=="function"&&px(l,r,u)),ur(n,r,l);break;case 21:ur(n,r,l);break;case 22:rn=(u=rn)||l.memoizedState!==null,ur(n,r,l),rn=u;break;default:ur(n,r,l)}}function Ex(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{Ms(n)}catch(l){yt(r,r.return,l)}}}function Nx(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Ms(n)}catch(l){yt(r,r.return,l)}}function hk(n){switch(n.tag){case 31:case 13:case 19:var r=n.stateNode;return r===null&&(r=n.stateNode=new yx),r;case 22:return n=n.stateNode,r=n._retryCache,r===null&&(r=n._retryCache=new yx),r;default:throw Error(a(435,n.tag))}}function Ec(n,r){var l=hk(n);r.forEach(function(u){if(!l.has(u)){l.add(u);var b=wk.bind(null,n,u);u.then(b,b)}})}function Un(n,r){var l=r.deletions;if(l!==null)for(var u=0;u<l.length;u++){var b=l[u],v=n,T=r,P=T;e:for(;P!==null;){switch(P.tag){case 27:if(Kr(P.type)){zt=P.stateNode,Bn=!1;break e}break;case 5:zt=P.stateNode,Bn=!1;break e;case 3:case 4:zt=P.stateNode.containerInfo,Bn=!0;break e}P=P.return}if(zt===null)throw Error(a(160));wx(v,T,b),zt=null,Bn=!1,v=b.alternate,v!==null&&(v.return=null),b.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)Sx(r,n),r=r.sibling}var Ni=null;function Sx(n,r){var l=n.alternate,u=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:Un(r,n),Hn(n),u&4&&(qr(3,n,n.return),Al(3,n),qr(5,n,n.return));break;case 1:Un(r,n),Hn(n),u&512&&(rn||l===null||Hi(l,l.return)),u&64&&cr&&(n=n.updateQueue,n!==null&&(u=n.callbacks,u!==null&&(l=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=l===null?u:l.concat(u))));break;case 26:var b=Ni;if(Un(r,n),Hn(n),u&512&&(rn||l===null||Hi(l,l.return)),u&4){var v=l!==null?l.memoizedState:null;if(u=n.memoizedState,l===null)if(u===null)if(n.stateNode===null){e:{u=n.type,l=n.memoizedProps,b=b.ownerDocument||b;t:switch(u){case"title":v=b.getElementsByTagName("title")[0],(!v||v[Qi]||v[Ut]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=b.createElement(u),b.head.insertBefore(v,b.querySelector("head > title"))),_n(v,u,l),v[Ut]=n,Ft(v),u=v;break e;case"link":var T=S0("link","href",b).get(u+(l.href||""));if(T){for(var P=0;P<T.length;P++)if(v=T[P],v.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&v.getAttribute("rel")===(l.rel==null?null:l.rel)&&v.getAttribute("title")===(l.title==null?null:l.title)&&v.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){T.splice(P,1);break t}}v=b.createElement(u),_n(v,u,l),b.head.appendChild(v);break;case"meta":if(T=S0("meta","content",b).get(u+(l.content||""))){for(P=0;P<T.length;P++)if(v=T[P],v.getAttribute("content")===(l.content==null?null:""+l.content)&&v.getAttribute("name")===(l.name==null?null:l.name)&&v.getAttribute("property")===(l.property==null?null:l.property)&&v.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&v.getAttribute("charset")===(l.charSet==null?null:l.charSet)){T.splice(P,1);break t}}v=b.createElement(u),_n(v,u,l),b.head.appendChild(v);break;default:throw Error(a(468,u))}v[Ut]=n,Ft(v),u=v}n.stateNode=u}else k0(b,n.type,n.stateNode);else n.stateNode=N0(b,u,n.memoizedProps);else v!==u?(v===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):v.count--,u===null?k0(b,n.type,n.stateNode):N0(b,u,n.memoizedProps)):u===null&&n.stateNode!==null&&vf(n,n.memoizedProps,l.memoizedProps)}break;case 27:Un(r,n),Hn(n),u&512&&(rn||l===null||Hi(l,l.return)),l!==null&&u&4&&vf(n,n.memoizedProps,l.memoizedProps);break;case 5:if(Un(r,n),Hn(n),u&512&&(rn||l===null||Hi(l,l.return)),n.flags&32){b=n.stateNode;try{qe(b,"")}catch(Ce){yt(n,n.return,Ce)}}u&4&&n.stateNode!=null&&(b=n.memoizedProps,vf(n,b,l!==null?l.memoizedProps:b)),u&1024&&(Ef=!0);break;case 6:if(Un(r,n),Hn(n),u&4){if(n.stateNode===null)throw Error(a(162));u=n.memoizedProps,l=n.stateNode;try{l.nodeValue=u}catch(Ce){yt(n,n.return,Ce)}}break;case 3:if(Uc=null,b=Ni,Ni=Ic(r.containerInfo),Un(r,n),Ni=b,Hn(n),u&4&&l!==null&&l.memoizedState.isDehydrated)try{Ms(r.containerInfo)}catch(Ce){yt(n,n.return,Ce)}Ef&&(Ef=!1,kx(n));break;case 4:u=Ni,Ni=Ic(n.stateNode.containerInfo),Un(r,n),Hn(n),Ni=u;break;case 12:Un(r,n),Hn(n);break;case 31:Un(r,n),Hn(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,Ec(n,u)));break;case 13:Un(r,n),Hn(n),n.child.flags&8192&&n.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Sc=ct()),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,Ec(n,u)));break;case 22:b=n.memoizedState!==null;var ne=l!==null&&l.memoizedState!==null,le=cr,he=rn;if(cr=le||b,rn=he||ne,Un(r,n),rn=he,cr=le,Hn(n),u&8192)e:for(r=n.stateNode,r._visibility=b?r._visibility&-2:r._visibility|1,b&&(l===null||ne||cr||rn||Ma(n)),l=null,r=n;;){if(r.tag===5||r.tag===26){if(l===null){ne=l=r;try{if(v=ne.stateNode,b)T=v.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none";else{P=ne.stateNode;var ge=ne.memoizedProps.style,ce=ge!=null&&ge.hasOwnProperty("display")?ge.display:null;P.style.display=ce==null||typeof ce=="boolean"?"":(""+ce).trim()}}catch(Ce){yt(ne,ne.return,Ce)}}}else if(r.tag===6){if(l===null){ne=r;try{ne.stateNode.nodeValue=b?"":ne.memoizedProps}catch(Ce){yt(ne,ne.return,Ce)}}}else if(r.tag===18){if(l===null){ne=r;try{var de=ne.stateNode;b?p0(de,!0):p0(ne.stateNode,!1)}catch(Ce){yt(ne,ne.return,Ce)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===n)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break e;for(;r.sibling===null;){if(r.return===null||r.return===n)break e;l===r&&(l=null),r=r.return}l===r&&(l=null),r.sibling.return=r.return,r=r.sibling}u&4&&(u=n.updateQueue,u!==null&&(l=u.retryQueue,l!==null&&(u.retryQueue=null,Ec(n,l))));break;case 19:Un(r,n),Hn(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,Ec(n,u)));break;case 30:break;case 21:break;default:Un(r,n),Hn(n)}}function Hn(n){var r=n.flags;if(r&2){try{for(var l,u=n.return;u!==null;){if(bx(u)){l=u;break}u=u.return}if(l==null)throw Error(a(160));switch(l.tag){case 27:var b=l.stateNode,v=_f(n);wc(n,v,b);break;case 5:var T=l.stateNode;l.flags&32&&(qe(T,""),l.flags&=-33);var P=_f(n);wc(n,P,T);break;case 3:case 4:var ne=l.stateNode.containerInfo,le=_f(n);wf(n,le,ne);break;default:throw Error(a(161))}}catch(he){yt(n,n.return,he)}n.flags&=-3}r&4096&&(n.flags&=-4097)}function kx(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var r=n;kx(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),n=n.sibling}}function dr(n,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)vx(n,r.alternate,r),r=r.sibling}function Ma(n){for(n=n.child;n!==null;){var r=n;switch(r.tag){case 0:case 11:case 14:case 15:qr(4,r,r.return),Ma(r);break;case 1:Hi(r,r.return);var l=r.stateNode;typeof l.componentWillUnmount=="function"&&px(r,r.return,l),Ma(r);break;case 27:Bl(r.stateNode);case 26:case 5:Hi(r,r.return),Ma(r);break;case 22:r.memoizedState===null&&Ma(r);break;case 30:Ma(r);break;default:Ma(r)}n=n.sibling}}function fr(n,r,l){for(l=l&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var u=r.alternate,b=n,v=r,T=v.flags;switch(v.tag){case 0:case 11:case 15:fr(b,v,l),Al(4,v);break;case 1:if(fr(b,v,l),u=v,b=u.stateNode,typeof b.componentDidMount=="function")try{b.componentDidMount()}catch(le){yt(u,u.return,le)}if(u=v,b=u.updateQueue,b!==null){var P=u.stateNode;try{var ne=b.shared.hiddenCallbacks;if(ne!==null)for(b.shared.hiddenCallbacks=null,b=0;b<ne.length;b++)ib(ne[b],P)}catch(le){yt(u,u.return,le)}}l&&T&64&&mx(v),Cl(v,v.return);break;case 27:xx(v);case 26:case 5:fr(b,v,l),l&&u===null&&T&4&&gx(v),Cl(v,v.return);break;case 12:fr(b,v,l);break;case 31:fr(b,v,l),l&&T&4&&Ex(b,v);break;case 13:fr(b,v,l),l&&T&4&&Nx(b,v);break;case 22:v.memoizedState===null&&fr(b,v,l),Cl(v,v.return);break;case 30:break;default:fr(b,v,l)}r=r.sibling}}function Nf(n,r){var l=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),n=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(n=r.memoizedState.cachePool.pool),n!==l&&(n!=null&&n.refCount++,l!=null&&pl(l))}function Sf(n,r){n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&pl(n))}function Si(n,r,l,u){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Tx(n,r,l,u),r=r.sibling}function Tx(n,r,l,u){var b=r.flags;switch(r.tag){case 0:case 11:case 15:Si(n,r,l,u),b&2048&&Al(9,r);break;case 1:Si(n,r,l,u);break;case 3:Si(n,r,l,u),b&2048&&(n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&pl(n)));break;case 12:if(b&2048){Si(n,r,l,u),n=r.stateNode;try{var v=r.memoizedProps,T=v.id,P=v.onPostCommit;typeof P=="function"&&P(T,r.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(ne){yt(r,r.return,ne)}}else Si(n,r,l,u);break;case 31:Si(n,r,l,u);break;case 13:Si(n,r,l,u);break;case 23:break;case 22:v=r.stateNode,T=r.alternate,r.memoizedState!==null?v._visibility&2?Si(n,r,l,u):Ml(n,r):v._visibility&2?Si(n,r,l,u):(v._visibility|=2,ys(n,r,l,u,(r.subtreeFlags&10256)!==0||!1)),b&2048&&Nf(T,r);break;case 24:Si(n,r,l,u),b&2048&&Sf(r.alternate,r);break;default:Si(n,r,l,u)}}function ys(n,r,l,u,b){for(b=b&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var v=n,T=r,P=l,ne=u,le=T.flags;switch(T.tag){case 0:case 11:case 15:ys(v,T,P,ne,b),Al(8,T);break;case 23:break;case 22:var he=T.stateNode;T.memoizedState!==null?he._visibility&2?ys(v,T,P,ne,b):Ml(v,T):(he._visibility|=2,ys(v,T,P,ne,b)),b&&le&2048&&Nf(T.alternate,T);break;case 24:ys(v,T,P,ne,b),b&&le&2048&&Sf(T.alternate,T);break;default:ys(v,T,P,ne,b)}r=r.sibling}}function Ml(n,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var l=n,u=r,b=u.flags;switch(u.tag){case 22:Ml(l,u),b&2048&&Nf(u.alternate,u);break;case 24:Ml(l,u),b&2048&&Sf(u.alternate,u);break;default:Ml(l,u)}r=r.sibling}}var Ol=8192;function vs(n,r,l){if(n.subtreeFlags&Ol)for(n=n.child;n!==null;)Ax(n,r,l),n=n.sibling}function Ax(n,r,l){switch(n.tag){case 26:vs(n,r,l),n.flags&Ol&&n.memoizedState!==null&&Jk(l,Ni,n.memoizedState,n.memoizedProps);break;case 5:vs(n,r,l);break;case 3:case 4:var u=Ni;Ni=Ic(n.stateNode.containerInfo),vs(n,r,l),Ni=u;break;case 22:n.memoizedState===null&&(u=n.alternate,u!==null&&u.memoizedState!==null?(u=Ol,Ol=16777216,vs(n,r,l),Ol=u):vs(n,r,l));break;default:vs(n,r,l)}}function Cx(n){var r=n.alternate;if(r!==null&&(n=r.child,n!==null)){r.child=null;do r=n.sibling,n.sibling=null,n=r;while(n!==null)}}function Rl(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var l=0;l<r.length;l++){var u=r[l];gn=u,Ox(u,n)}Cx(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Mx(n),n=n.sibling}function Mx(n){switch(n.tag){case 0:case 11:case 15:Rl(n),n.flags&2048&&qr(9,n,n.return);break;case 3:Rl(n);break;case 12:Rl(n);break;case 22:var r=n.stateNode;n.memoizedState!==null&&r._visibility&2&&(n.return===null||n.return.tag!==13)?(r._visibility&=-3,Nc(n)):Rl(n);break;default:Rl(n)}}function Nc(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var l=0;l<r.length;l++){var u=r[l];gn=u,Ox(u,n)}Cx(n)}for(n=n.child;n!==null;){switch(r=n,r.tag){case 0:case 11:case 15:qr(8,r,r.return),Nc(r);break;case 22:l=r.stateNode,l._visibility&2&&(l._visibility&=-3,Nc(r));break;default:Nc(r)}n=n.sibling}}function Ox(n,r){for(;gn!==null;){var l=gn;switch(l.tag){case 0:case 11:case 15:qr(8,l,r);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var u=l.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:pl(l.memoizedState.cache)}if(u=l.child,u!==null)u.return=l,gn=u;else e:for(l=n;gn!==null;){u=gn;var b=u.sibling,v=u.return;if(_x(u),u===l){gn=null;break e}if(b!==null){b.return=v,gn=b;break e}gn=v}}}var mk={getCacheForType:function(n){var r=yn(en),l=r.data.get(n);return l===void 0&&(l=n(),r.data.set(n,l)),l},cacheSignal:function(){return yn(en).controller.signal}},pk=typeof WeakMap=="function"?WeakMap:Map,pt=0,kt=null,Je=null,rt=0,xt=0,Jn=null,Pr=!1,_s=!1,kf=!1,hr=0,Vt=0,Fr=0,Oa=0,Tf=0,ei=0,ws=0,Dl=null,$n=null,Af=!1,Sc=0,Rx=0,kc=1/0,Tc=null,Gr=null,dn=0,Vr=null,Es=null,mr=0,Cf=0,Mf=null,Dx=null,jl=0,Of=null;function ti(){return(pt&2)!==0&&rt!==0?rt&-rt:O.T!==null?If():Er()}function jx(){if(ei===0)if((rt&536870912)===0||lt){var n=Xn;Xn<<=1,(Xn&3932160)===0&&(Xn=262144),ei=n}else ei=536870912;return n=Qn.current,n!==null&&(n.flags|=32),ei}function qn(n,r,l){(n===kt&&(xt===2||xt===9)||n.cancelPendingCommit!==null)&&(Ns(n,0),Yr(n,rt,ei,!1)),gt(n,l),((pt&2)===0||n!==kt)&&(n===kt&&((pt&2)===0&&(Oa|=l),Vt===4&&Yr(n,rt,ei,!1)),$i(n))}function Lx(n,r,l){if((pt&6)!==0)throw Error(a(327));var u=!l&&(r&127)===0&&(r&n.expiredLanes)===0||me(n,r),b=u?xk(n,r):Df(n,r,!0),v=u;do{if(b===0){_s&&!u&&Yr(n,r,0,!1);break}else{if(l=n.current.alternate,v&&!gk(l)){b=Df(n,r,!1),v=!1;continue}if(b===2){if(v=r,n.errorRecoveryDisabledLanes&v)var T=0;else T=n.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){r=T;e:{var P=n;b=Dl;var ne=P.current.memoizedState.isDehydrated;if(ne&&(Ns(P,T).flags|=256),T=Df(P,T,!1),T!==2){if(kf&&!ne){P.errorRecoveryDisabledLanes|=v,Oa|=v,b=4;break e}v=$n,$n=b,v!==null&&($n===null?$n=v:$n.push.apply($n,v))}b=T}if(v=!1,b!==2)continue}}if(b===1){Ns(n,0),Yr(n,r,0,!0);break}e:{switch(u=n,v=b,v){case 0:case 1:throw Error(a(345));case 4:if((r&4194048)!==r)break;case 6:Yr(u,r,ei,!Pr);break e;case 2:$n=null;break;case 3:case 5:break;default:throw Error(a(329))}if((r&62914560)===r&&(b=Sc+300-ct(),10<b)){if(Yr(u,r,ei,!Pr),ie(u,0,!0)!==0)break e;mr=r,u.timeoutHandle=f0(zx.bind(null,u,l,$n,Tc,Af,r,ei,Oa,ws,Pr,v,"Throttled",-0,0),b);break e}zx(u,l,$n,Tc,Af,r,ei,Oa,ws,Pr,v,null,-0,0)}}break}while(!0);$i(n)}function zx(n,r,l,u,b,v,T,P,ne,le,he,ge,ce,de){if(n.timeoutHandle=-1,ge=r.subtreeFlags,ge&8192||(ge&16785408)===16785408){ge={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:_e},Ax(r,v,ge);var Ce=(v&62914560)===v?Sc-ct():(v&4194048)===v?Rx-ct():0;if(Ce=e2(ge,Ce),Ce!==null){mr=v,n.cancelPendingCommit=Ce(Fx.bind(null,n,r,v,l,u,b,T,P,ne,he,ge,null,ce,de)),Yr(n,v,T,!le);return}}Fx(n,r,v,l,u,b,T,P,ne)}function gk(n){for(var r=n;;){var l=r.tag;if((l===0||l===11||l===15)&&r.flags&16384&&(l=r.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var u=0;u<l.length;u++){var b=l[u],v=b.getSnapshot;b=b.value;try{if(!Kn(v(),b))return!1}catch{return!1}}if(l=r.child,r.subtreeFlags&16384&&l!==null)l.return=r,r=l;else{if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Yr(n,r,l,u){r&=~Tf,r&=~Oa,n.suspendedLanes|=r,n.pingedLanes&=~r,u&&(n.warmLanes|=r),u=n.expirationTimes;for(var b=r;0<b;){var v=31-ut(b),T=1<<v;u[v]=-1,b&=~T}l!==0&&Se(n,l,r)}function Ac(){return(pt&6)===0?(Ll(0),!1):!0}function Rf(){if(Je!==null){if(xt===0)var n=Je.return;else n=Je,ir=wa=null,Yd(n),ms=null,bl=0,n=Je;for(;n!==null;)hx(n.alternate,n),n=n.return;Je=null}}function Ns(n,r){var l=n.timeoutHandle;l!==-1&&(n.timeoutHandle=-1,zk(l)),l=n.cancelPendingCommit,l!==null&&(n.cancelPendingCommit=null,l()),mr=0,Rf(),kt=n,Je=l=tr(n.current,null),rt=r,xt=0,Jn=null,Pr=!1,_s=me(n,r),kf=!1,ws=ei=Tf=Oa=Fr=Vt=0,$n=Dl=null,Af=!1,(r&8)!==0&&(r|=r&32);var u=n.entangledLanes;if(u!==0)for(n=n.entanglements,u&=r;0<u;){var b=31-ut(u),v=1<<b;r|=n[b],u&=~v}return hr=r,Ko(),l}function Ix(n,r){Xe=null,O.H=Sl,r===hs||r===ic?(r=Jg(),xt=3):r===Ld?(r=Jg(),xt=4):xt=r===uf?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,Jn=r,Je===null&&(Vt=1,bc(n,ci(r,n.current)))}function Bx(){var n=Qn.current;return n===null?!0:(rt&4194048)===rt?hi===null:(rt&62914560)===rt||(rt&536870912)!==0?n===hi:!1}function Ux(){var n=O.H;return O.H=Sl,n===null?Sl:n}function Hx(){var n=O.A;return O.A=mk,n}function Cc(){Vt=4,Pr||(rt&4194048)!==rt&&Qn.current!==null||(_s=!0),(Fr&134217727)===0&&(Oa&134217727)===0||kt===null||Yr(kt,rt,ei,!1)}function Df(n,r,l){var u=pt;pt|=2;var b=Ux(),v=Hx();(kt!==n||rt!==r)&&(Tc=null,Ns(n,r)),r=!1;var T=Vt;e:do try{if(xt!==0&&Je!==null){var P=Je,ne=Jn;switch(xt){case 8:Rf(),T=6;break e;case 3:case 2:case 9:case 6:Qn.current===null&&(r=!0);var le=xt;if(xt=0,Jn=null,Ss(n,P,ne,le),l&&_s){T=0;break e}break;default:le=xt,xt=0,Jn=null,Ss(n,P,ne,le)}}bk(),T=Vt;break}catch(he){Ix(n,he)}while(!0);return r&&n.shellSuspendCounter++,ir=wa=null,pt=u,O.H=b,O.A=v,Je===null&&(kt=null,rt=0,Ko()),T}function bk(){for(;Je!==null;)$x(Je)}function xk(n,r){var l=pt;pt|=2;var u=Ux(),b=Hx();kt!==n||rt!==r?(Tc=null,kc=ct()+500,Ns(n,r)):_s=me(n,r);e:do try{if(xt!==0&&Je!==null){r=Je;var v=Jn;t:switch(xt){case 1:xt=0,Jn=null,Ss(n,r,v,1);break;case 2:case 9:if(Qg(v)){xt=0,Jn=null,qx(r);break}r=function(){xt!==2&&xt!==9||kt!==n||(xt=7),$i(n)},v.then(r,r);break e;case 3:xt=7;break e;case 4:xt=5;break e;case 7:Qg(v)?(xt=0,Jn=null,qx(r)):(xt=0,Jn=null,Ss(n,r,v,7));break;case 5:var T=null;switch(Je.tag){case 26:T=Je.memoizedState;case 5:case 27:var P=Je;if(T?T0(T):P.stateNode.complete){xt=0,Jn=null;var ne=P.sibling;if(ne!==null)Je=ne;else{var le=P.return;le!==null?(Je=le,Mc(le)):Je=null}break t}}xt=0,Jn=null,Ss(n,r,v,5);break;case 6:xt=0,Jn=null,Ss(n,r,v,6);break;case 8:Rf(),Vt=6;break e;default:throw Error(a(462))}}yk();break}catch(he){Ix(n,he)}while(!0);return ir=wa=null,O.H=u,O.A=b,pt=l,Je!==null?0:(kt=null,rt=0,Ko(),Vt)}function yk(){for(;Je!==null&&!Yn();)$x(Je)}function $x(n){var r=dx(n.alternate,n,hr);n.memoizedProps=n.pendingProps,r===null?Mc(n):Je=r}function qx(n){var r=n,l=r.alternate;switch(r.tag){case 15:case 0:r=ax(l,r,r.pendingProps,r.type,void 0,rt);break;case 11:r=ax(l,r,r.pendingProps,r.type.render,r.ref,rt);break;case 5:Yd(r);default:hx(l,r),r=Je=Hg(r,hr),r=dx(l,r,hr)}n.memoizedProps=n.pendingProps,r===null?Mc(n):Je=r}function Ss(n,r,l,u){ir=wa=null,Yd(r),ms=null,bl=0;var b=r.return;try{if(lk(n,b,r,l,rt)){Vt=1,bc(n,ci(l,n.current)),Je=null;return}}catch(v){if(b!==null)throw Je=b,v;Vt=1,bc(n,ci(l,n.current)),Je=null;return}r.flags&32768?(lt||u===1?n=!0:_s||(rt&536870912)!==0?n=!1:(Pr=n=!0,(u===2||u===9||u===3||u===6)&&(u=Qn.current,u!==null&&u.tag===13&&(u.flags|=16384))),Px(r,n)):Mc(r)}function Mc(n){var r=n;do{if((r.flags&32768)!==0){Px(r,Pr);return}n=r.return;var l=uk(r.alternate,r,hr);if(l!==null){Je=l;return}if(r=r.sibling,r!==null){Je=r;return}Je=r=n}while(r!==null);Vt===0&&(Vt=5)}function Px(n,r){do{var l=dk(n.alternate,n);if(l!==null){l.flags&=32767,Je=l;return}if(l=n.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!r&&(n=n.sibling,n!==null)){Je=n;return}Je=n=l}while(n!==null);Vt=6,Je=null}function Fx(n,r,l,u,b,v,T,P,ne){n.cancelPendingCommit=null;do Oc();while(dn!==0);if((pt&6)!==0)throw Error(a(327));if(r!==null){if(r===n.current)throw Error(a(177));if(v=r.lanes|r.childLanes,v|=vd,Me(n,l,v,T,P,ne),n===kt&&(Je=kt=null,rt=0),Es=r,Vr=n,mr=l,Cf=v,Mf=b,Dx=u,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,Ek(Oe,function(){return Kx(),null})):(n.callbackNode=null,n.callbackPriority=0),u=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||u){u=O.T,O.T=null,b=H.p,H.p=2,T=pt,pt|=4;try{fk(n,r,l)}finally{pt=T,H.p=b,O.T=u}}dn=1,Gx(),Vx(),Yx()}}function Gx(){if(dn===1){dn=0;var n=Vr,r=Es,l=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||l){l=O.T,O.T=null;var u=H.p;H.p=2;var b=pt;pt|=4;try{Sx(r,n);var v=Gf,T=Og(n.containerInfo),P=v.focusedElem,ne=v.selectionRange;if(T!==P&&P&&P.ownerDocument&&Mg(P.ownerDocument.documentElement,P)){if(ne!==null&&pd(P)){var le=ne.start,he=ne.end;if(he===void 0&&(he=le),"selectionStart"in P)P.selectionStart=le,P.selectionEnd=Math.min(he,P.value.length);else{var ge=P.ownerDocument||document,ce=ge&&ge.defaultView||window;if(ce.getSelection){var de=ce.getSelection(),Ce=P.textContent.length,He=Math.min(ne.start,Ce),Nt=ne.end===void 0?He:Math.min(ne.end,Ce);!de.extend&&He>Nt&&(T=Nt,Nt=He,He=T);var ae=Cg(P,He),re=Cg(P,Nt);if(ae&&re&&(de.rangeCount!==1||de.anchorNode!==ae.node||de.anchorOffset!==ae.offset||de.focusNode!==re.node||de.focusOffset!==re.offset)){var se=ge.createRange();se.setStart(ae.node,ae.offset),de.removeAllRanges(),He>Nt?(de.addRange(se),de.extend(re.node,re.offset)):(se.setEnd(re.node,re.offset),de.addRange(se))}}}}for(ge=[],de=P;de=de.parentNode;)de.nodeType===1&&ge.push({element:de,left:de.scrollLeft,top:de.scrollTop});for(typeof P.focus=="function"&&P.focus(),P=0;P<ge.length;P++){var pe=ge[P];pe.element.scrollLeft=pe.left,pe.element.scrollTop=pe.top}}Pc=!!Ff,Gf=Ff=null}finally{pt=b,H.p=u,O.T=l}}n.current=r,dn=2}}function Vx(){if(dn===2){dn=0;var n=Vr,r=Es,l=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||l){l=O.T,O.T=null;var u=H.p;H.p=2;var b=pt;pt|=4;try{vx(n,r.alternate,r)}finally{pt=b,H.p=u,O.T=l}}dn=3}}function Yx(){if(dn===4||dn===3){dn=0,wn();var n=Vr,r=Es,l=mr,u=Dx;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?dn=5:(dn=0,Es=Vr=null,Xx(n,n.pendingLanes));var b=n.pendingLanes;if(b===0&&(Gr=null),bi(l),r=r.stateNode,Ct&&typeof Ct.onCommitFiberRoot=="function")try{Ct.onCommitFiberRoot(Kt,r,void 0,(r.current.flags&128)===128)}catch{}if(u!==null){r=O.T,b=H.p,H.p=2,O.T=null;try{for(var v=n.onRecoverableError,T=0;T<u.length;T++){var P=u[T];v(P.value,{componentStack:P.stack})}}finally{O.T=r,H.p=b}}(mr&3)!==0&&Oc(),$i(n),b=n.pendingLanes,(l&261930)!==0&&(b&42)!==0?n===Of?jl++:(jl=0,Of=n):jl=0,Ll(0)}}function Xx(n,r){(n.pooledCacheLanes&=r)===0&&(r=n.pooledCache,r!=null&&(n.pooledCache=null,pl(r)))}function Oc(){return Gx(),Vx(),Yx(),Kx()}function Kx(){if(dn!==5)return!1;var n=Vr,r=Cf;Cf=0;var l=bi(mr),u=O.T,b=H.p;try{H.p=32>l?32:l,O.T=null,l=Mf,Mf=null;var v=Vr,T=mr;if(dn=0,Es=Vr=null,mr=0,(pt&6)!==0)throw Error(a(331));var P=pt;if(pt|=4,Mx(v.current),Tx(v,v.current,T,l),pt=P,Ll(0,!1),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(Kt,v)}catch{}return!0}finally{H.p=b,O.T=u,Xx(n,r)}}function Zx(n,r,l){r=ci(l,r),r=cf(n.stateNode,r,2),n=Ur(n,r,2),n!==null&&(gt(n,2),$i(n))}function yt(n,r,l){if(n.tag===3)Zx(n,n,l);else for(;r!==null;){if(r.tag===3){Zx(r,n,l);break}else if(r.tag===1){var u=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Gr===null||!Gr.has(u))){n=ci(l,n),l=Qb(2),u=Ur(r,l,2),u!==null&&(Wb(l,u,r,n),gt(u,2),$i(u));break}}r=r.return}}function jf(n,r,l){var u=n.pingCache;if(u===null){u=n.pingCache=new pk;var b=new Set;u.set(r,b)}else b=u.get(r),b===void 0&&(b=new Set,u.set(r,b));b.has(l)||(kf=!0,b.add(l),n=vk.bind(null,n,r,l),r.then(n,n))}function vk(n,r,l){var u=n.pingCache;u!==null&&u.delete(r),n.pingedLanes|=n.suspendedLanes&l,n.warmLanes&=~l,kt===n&&(rt&l)===l&&(Vt===4||Vt===3&&(rt&62914560)===rt&&300>ct()-Sc?(pt&2)===0&&Ns(n,0):Tf|=l,ws===rt&&(ws=0)),$i(n)}function Qx(n,r){r===0&&(r=Pe()),n=ya(n,r),n!==null&&(gt(n,r),$i(n))}function _k(n){var r=n.memoizedState,l=0;r!==null&&(l=r.retryLane),Qx(n,l)}function wk(n,r){var l=0;switch(n.tag){case 31:case 13:var u=n.stateNode,b=n.memoizedState;b!==null&&(l=b.retryLane);break;case 19:u=n.stateNode;break;case 22:u=n.stateNode._retryCache;break;default:throw Error(a(314))}u!==null&&u.delete(r),Qx(n,l)}function Ek(n,r){return Pt(n,r)}var Rc=null,ks=null,Lf=!1,Dc=!1,zf=!1,Xr=0;function $i(n){n!==ks&&n.next===null&&(ks===null?Rc=ks=n:ks=ks.next=n),Dc=!0,Lf||(Lf=!0,Sk())}function Ll(n,r){if(!zf&&Dc){zf=!0;do for(var l=!1,u=Rc;u!==null;){if(n!==0){var b=u.pendingLanes;if(b===0)var v=0;else{var T=u.suspendedLanes,P=u.pingedLanes;v=(1<<31-ut(42|n)+1)-1,v&=b&~(T&~P),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(l=!0,t0(u,v))}else v=rt,v=ie(u,u===kt?v:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(v&3)===0||me(u,v)||(l=!0,t0(u,v));u=u.next}while(l);zf=!1}}function Nk(){Wx()}function Wx(){Dc=Lf=!1;var n=0;Xr!==0&&Lk()&&(n=Xr);for(var r=ct(),l=null,u=Rc;u!==null;){var b=u.next,v=Jx(u,r);v===0?(u.next=null,l===null?Rc=b:l.next=b,b===null&&(ks=l)):(l=u,(n!==0||(v&3)!==0)&&(Dc=!0)),u=b}dn!==0&&dn!==5||Ll(n),Xr!==0&&(Xr=0)}function Jx(n,r){for(var l=n.suspendedLanes,u=n.pingedLanes,b=n.expirationTimes,v=n.pendingLanes&-62914561;0<v;){var T=31-ut(v),P=1<<T,ne=b[T];ne===-1?((P&l)===0||(P&u)!==0)&&(b[T]=Ee(P,r)):ne<=r&&(n.expiredLanes|=P),v&=~P}if(r=kt,l=rt,l=ie(n,n===r?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u=n.callbackNode,l===0||n===r&&(xt===2||xt===9)||n.cancelPendingCommit!==null)return u!==null&&u!==null&&Xt(u),n.callbackNode=null,n.callbackPriority=0;if((l&3)===0||me(n,l)){if(r=l&-l,r===n.callbackPriority)return r;switch(u!==null&&Xt(u),bi(l)){case 2:case 8:l=xe;break;case 32:l=Oe;break;case 268435456:l=Ze;break;default:l=Oe}return u=e0.bind(null,n),l=Pt(l,u),n.callbackPriority=r,n.callbackNode=l,r}return u!==null&&u!==null&&Xt(u),n.callbackPriority=2,n.callbackNode=null,2}function e0(n,r){if(dn!==0&&dn!==5)return n.callbackNode=null,n.callbackPriority=0,null;var l=n.callbackNode;if(Oc()&&n.callbackNode!==l)return null;var u=rt;return u=ie(n,n===kt?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u===0?null:(Lx(n,u,r),Jx(n,ct()),n.callbackNode!=null&&n.callbackNode===l?e0.bind(null,n):null)}function t0(n,r){if(Oc())return null;Lx(n,r,!0)}function Sk(){Ik(function(){(pt&6)!==0?Pt(ue,Nk):Wx()})}function If(){if(Xr===0){var n=ds;n===0&&(n=nt,nt<<=1,(nt&261888)===0&&(nt=256)),Xr=n}return Xr}function n0(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Or(""+n)}function i0(n,r){var l=r.ownerDocument.createElement("input");return l.name=r.name,l.value=r.value,n.id&&l.setAttribute("form",n.id),r.parentNode.insertBefore(l,r),n=new FormData(n),l.parentNode.removeChild(l),n}function kk(n,r,l,u,b){if(r==="submit"&&l&&l.stateNode===b){var v=n0((b[mn]||null).action),T=u.submitter;T&&(r=(r=T[mn]||null)?n0(r.formAction):T.getAttribute("formAction"),r!==null&&(v=r,T=null));var P=new Go("action","action",null,u,b);n.push({event:P,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Xr!==0){var ne=T?i0(b,T):new FormData(b);nf(l,{pending:!0,data:ne,method:b.method,action:v},null,ne)}}else typeof v=="function"&&(P.preventDefault(),ne=T?i0(b,T):new FormData(b),nf(l,{pending:!0,data:ne,method:b.method,action:v},v,ne))},currentTarget:b}]})}}for(var Bf=0;Bf<yd.length;Bf++){var Uf=yd[Bf],Tk=Uf.toLowerCase(),Ak=Uf[0].toUpperCase()+Uf.slice(1);Ei(Tk,"on"+Ak)}Ei(jg,"onAnimationEnd"),Ei(Lg,"onAnimationIteration"),Ei(zg,"onAnimationStart"),Ei("dblclick","onDoubleClick"),Ei("focusin","onFocus"),Ei("focusout","onBlur"),Ei(FS,"onTransitionRun"),Ei(GS,"onTransitionStart"),Ei(VS,"onTransitionCancel"),Ei(Ig,"onTransitionEnd"),ye("onMouseEnter",["mouseout","mouseover"]),ye("onMouseLeave",["mouseout","mouseover"]),ye("onPointerEnter",["pointerout","pointerover"]),ye("onPointerLeave",["pointerout","pointerover"]),_i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),_i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),_i("onBeforeInput",["compositionend","keypress","textInput","paste"]),_i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),_i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),_i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ck=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(zl));function r0(n,r){r=(r&4)!==0;for(var l=0;l<n.length;l++){var u=n[l],b=u.event;u=u.listeners;e:{var v=void 0;if(r)for(var T=u.length-1;0<=T;T--){var P=u[T],ne=P.instance,le=P.currentTarget;if(P=P.listener,ne!==v&&b.isPropagationStopped())break e;v=P,b.currentTarget=le;try{v(b)}catch(he){Xo(he)}b.currentTarget=null,v=ne}else for(T=0;T<u.length;T++){if(P=u[T],ne=P.instance,le=P.currentTarget,P=P.listener,ne!==v&&b.isPropagationStopped())break e;v=P,b.currentTarget=le;try{v(b)}catch(he){Xo(he)}b.currentTarget=null,v=ne}}}}function et(n,r){var l=r[Sr];l===void 0&&(l=r[Sr]=new Set);var u=n+"__bubble";l.has(u)||(a0(r,n,2,!1),l.add(u))}function Hf(n,r,l){var u=0;r&&(u|=4),a0(l,n,u,r)}var jc="_reactListening"+Math.random().toString(36).slice(2);function $f(n){if(!n[jc]){n[jc]=!0,Wa.forEach(function(l){l!=="selectionchange"&&(Ck.has(l)||Hf(l,!1,n),Hf(l,!0,n))});var r=n.nodeType===9?n:n.ownerDocument;r===null||r[jc]||(r[jc]=!0,Hf("selectionchange",!1,r))}}function a0(n,r,l,u){switch(j0(r)){case 2:var b=i2;break;case 8:b=r2;break;default:b=nh}l=b.bind(null,r,l,n),b=void 0,!sd||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(b=!0),u?b!==void 0?n.addEventListener(r,l,{capture:!0,passive:b}):n.addEventListener(r,l,!0):b!==void 0?n.addEventListener(r,l,{passive:b}):n.addEventListener(r,l,!1)}function qf(n,r,l,u,b){var v=u;if((r&1)===0&&(r&2)===0&&u!==null)e:for(;;){if(u===null)return;var T=u.tag;if(T===3||T===4){var P=u.stateNode.containerInfo;if(P===b)break;if(T===4)for(T=u.return;T!==null;){var ne=T.tag;if((ne===3||ne===4)&&T.stateNode.containerInfo===b)return;T=T.return}for(;P!==null;){if(T=bn(P),T===null)return;if(ne=T.tag,ne===5||ne===6||ne===26||ne===27){u=v=T;continue e}P=P.parentNode}}u=u.return}$o(function(){var le=v,he=Ye(l),ge=[];e:{var ce=Bg.get(n);if(ce!==void 0){var de=Go,Ce=n;switch(n){case"keypress":if(Po(l)===0)break e;case"keydown":case"keyup":de=wS;break;case"focusin":Ce="focus",de=ud;break;case"focusout":Ce="blur",de=ud;break;case"beforeblur":case"afterblur":de=ud;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":de=hg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":de=uS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":de=SS;break;case jg:case Lg:case zg:de=hS;break;case Ig:de=TS;break;case"scroll":case"scrollend":de=oS;break;case"wheel":de=CS;break;case"copy":case"cut":case"paste":de=pS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":de=pg;break;case"toggle":case"beforetoggle":de=OS}var He=(r&4)!==0,Nt=!He&&(n==="scroll"||n==="scrollend"),ae=He?ce!==null?ce+"Capture":null:ce;He=[];for(var re=le,se;re!==null;){var pe=re;if(se=pe.stateNode,pe=pe.tag,pe!==5&&pe!==26&&pe!==27||se===null||ae===null||(pe=rl(re,ae),pe!=null&&He.push(Il(re,pe,se))),Nt)break;re=re.return}0<He.length&&(ce=new de(ce,Ce,null,l,he),ge.push({event:ce,listeners:He}))}}if((r&7)===0){e:{if(ce=n==="mouseover"||n==="pointerover",de=n==="mouseout"||n==="pointerout",ce&&l!==Re&&(Ce=l.relatedTarget||l.fromElement)&&(bn(Ce)||Ce[xi]))break e;if((de||ce)&&(ce=he.window===he?he:(ce=he.ownerDocument)?ce.defaultView||ce.parentWindow:window,de?(Ce=l.relatedTarget||l.toElement,de=le,Ce=Ce?bn(Ce):null,Ce!==null&&(Nt=o(Ce),He=Ce.tag,Ce!==Nt||He!==5&&He!==27&&He!==6)&&(Ce=null)):(de=null,Ce=le),de!==Ce)){if(He=hg,pe="onMouseLeave",ae="onMouseEnter",re="mouse",(n==="pointerout"||n==="pointerover")&&(He=pg,pe="onPointerLeave",ae="onPointerEnter",re="pointer"),Nt=de==null?ce:vi(de),se=Ce==null?ce:vi(Ce),ce=new He(pe,re+"leave",de,l,he),ce.target=Nt,ce.relatedTarget=se,pe=null,bn(he)===le&&(He=new He(ae,re+"enter",Ce,l,he),He.target=se,He.relatedTarget=Nt,pe=He),Nt=pe,de&&Ce)t:{for(He=Mk,ae=de,re=Ce,se=0,pe=ae;pe;pe=He(pe))se++;pe=0;for(var Ie=re;Ie;Ie=He(Ie))pe++;for(;0<se-pe;)ae=He(ae),se--;for(;0<pe-se;)re=He(re),pe--;for(;se--;){if(ae===re||re!==null&&ae===re.alternate){He=ae;break t}ae=He(ae),re=He(re)}He=null}else He=null;de!==null&&s0(ge,ce,de,He,!1),Ce!==null&&Nt!==null&&s0(ge,Nt,Ce,He,!0)}}e:{if(ce=le?vi(le):window,de=ce.nodeName&&ce.nodeName.toLowerCase(),de==="select"||de==="input"&&ce.type==="file")var ht=Eg;else if(_g(ce))if(Ng)ht=$S;else{ht=US;var De=BS}else de=ce.nodeName,!de||de.toLowerCase()!=="input"||ce.type!=="checkbox"&&ce.type!=="radio"?le&&Mr(le.elementType)&&(ht=Eg):ht=HS;if(ht&&(ht=ht(n,le))){wg(ge,ht,l,he);break e}De&&De(n,ce,le),n==="focusout"&&le&&ce.type==="number"&&le.memoizedProps.value!=null&&Cr(ce,"number",ce.value)}switch(De=le?vi(le):window,n){case"focusin":(_g(De)||De.contentEditable==="true")&&(is=De,gd=le,fl=null);break;case"focusout":fl=gd=is=null;break;case"mousedown":bd=!0;break;case"contextmenu":case"mouseup":case"dragend":bd=!1,Rg(ge,l,he);break;case"selectionchange":if(PS)break;case"keydown":case"keyup":Rg(ge,l,he)}var Ke;if(fd)e:{switch(n){case"compositionstart":var at="onCompositionStart";break e;case"compositionend":at="onCompositionEnd";break e;case"compositionupdate":at="onCompositionUpdate";break e}at=void 0}else ns?yg(n,l)&&(at="onCompositionEnd"):n==="keydown"&&l.keyCode===229&&(at="onCompositionStart");at&&(gg&&l.locale!=="ko"&&(ns||at!=="onCompositionStart"?at==="onCompositionEnd"&&ns&&(Ke=dg()):(Rr=he,ld="value"in Rr?Rr.value:Rr.textContent,ns=!0)),De=Lc(le,at),0<De.length&&(at=new mg(at,n,null,l,he),ge.push({event:at,listeners:De}),Ke?at.data=Ke:(Ke=vg(l),Ke!==null&&(at.data=Ke)))),(Ke=DS?jS(n,l):LS(n,l))&&(at=Lc(le,"onBeforeInput"),0<at.length&&(De=new mg("onBeforeInput","beforeinput",null,l,he),ge.push({event:De,listeners:at}),De.data=Ke)),kk(ge,n,le,l,he)}r0(ge,r)})}function Il(n,r,l){return{instance:n,listener:r,currentTarget:l}}function Lc(n,r){for(var l=r+"Capture",u=[];n!==null;){var b=n,v=b.stateNode;if(b=b.tag,b!==5&&b!==26&&b!==27||v===null||(b=rl(n,l),b!=null&&u.unshift(Il(n,b,v)),b=rl(n,r),b!=null&&u.push(Il(n,b,v))),n.tag===3)return u;n=n.return}return[]}function Mk(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function s0(n,r,l,u,b){for(var v=r._reactName,T=[];l!==null&&l!==u;){var P=l,ne=P.alternate,le=P.stateNode;if(P=P.tag,ne!==null&&ne===u)break;P!==5&&P!==26&&P!==27||le===null||(ne=le,b?(le=rl(l,v),le!=null&&T.unshift(Il(l,le,ne))):b||(le=rl(l,v),le!=null&&T.push(Il(l,le,ne)))),l=l.return}T.length!==0&&n.push({event:r,listeners:T})}var Ok=/\r\n?/g,Rk=/\u0000|\uFFFD/g;function l0(n){return(typeof n=="string"?n:""+n).replace(Ok,`
-`).replace(Rk,"")}function o0(n,r){return r=l0(r),l0(n)===r}function Et(n,r,l,u,b,v){switch(l){case"children":typeof u=="string"?r==="body"||r==="textarea"&&u===""||qe(n,u):(typeof u=="number"||typeof u=="bigint")&&r!=="body"&&qe(n,""+u);break;case"className":Mn(n,"class",u);break;case"tabIndex":Mn(n,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Mn(n,l,u);break;case"style":bt(n,u,v);break;case"data":if(r!=="object"){Mn(n,"data",u);break}case"src":case"href":if(u===""&&(r!=="a"||l!=="href")){n.removeAttribute(l);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(l);break}u=Or(""+u),n.setAttribute(l,u);break;case"action":case"formAction":if(typeof u=="function"){n.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof v=="function"&&(l==="formAction"?(r!=="input"&&Et(n,r,"name",b.name,b,null),Et(n,r,"formEncType",b.formEncType,b,null),Et(n,r,"formMethod",b.formMethod,b,null),Et(n,r,"formTarget",b.formTarget,b,null)):(Et(n,r,"encType",b.encType,b,null),Et(n,r,"method",b.method,b,null),Et(n,r,"target",b.target,b,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(l);break}u=Or(""+u),n.setAttribute(l,u);break;case"onClick":u!=null&&(n.onclick=_e);break;case"onScroll":u!=null&&et("scroll",n);break;case"onScrollEnd":u!=null&&et("scrollend",n);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(l=u.__html,l!=null){if(b.children!=null)throw Error(a(60));n.innerHTML=l}}break;case"multiple":n.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":n.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){n.removeAttribute("xlink:href");break}l=Or(""+u),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(l,""+u):n.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(l,""):n.removeAttribute(l);break;case"capture":case"download":u===!0?n.setAttribute(l,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(l,u):n.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?n.setAttribute(l,u):n.removeAttribute(l);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?n.removeAttribute(l):n.setAttribute(l,u);break;case"popover":et("beforetoggle",n),et("toggle",n),pn(n,"popover",u);break;case"xlinkActuate":Nn(n,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Nn(n,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Nn(n,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Nn(n,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Nn(n,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Nn(n,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Nn(n,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Nn(n,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Nn(n,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":pn(n,"is",u);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Ji.get(l)||l,pn(n,l,u))}}function Pf(n,r,l,u,b,v){switch(l){case"style":bt(n,u,v);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(l=u.__html,l!=null){if(b.children!=null)throw Error(a(60));n.innerHTML=l}}break;case"children":typeof u=="string"?qe(n,u):(typeof u=="number"||typeof u=="bigint")&&qe(n,""+u);break;case"onScroll":u!=null&&et("scroll",n);break;case"onScrollEnd":u!=null&&et("scrollend",n);break;case"onClick":u!=null&&(n.onclick=_e);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Wi.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(b=l.endsWith("Capture"),r=l.slice(2,b?l.length-7:void 0),v=n[mn]||null,v=v!=null?v[l]:null,typeof v=="function"&&n.removeEventListener(r,v,b),typeof u=="function")){typeof v!="function"&&v!==null&&(l in n?n[l]=null:n.hasAttribute(l)&&n.removeAttribute(l)),n.addEventListener(r,u,b);break e}l in n?n[l]=u:u===!0?n.setAttribute(l,""):pn(n,l,u)}}}function _n(n,r,l){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":et("error",n),et("load",n);var u=!1,b=!1,v;for(v in l)if(l.hasOwnProperty(v)){var T=l[v];if(T!=null)switch(v){case"src":u=!0;break;case"srcSet":b=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,r));default:Et(n,r,v,T,l,null)}}b&&Et(n,r,"srcSet",l.srcSet,l,null),u&&Et(n,r,"src",l.src,l,null);return;case"input":et("invalid",n);var P=v=T=b=null,ne=null,le=null;for(u in l)if(l.hasOwnProperty(u)){var he=l[u];if(he!=null)switch(u){case"name":b=he;break;case"type":T=he;break;case"checked":ne=he;break;case"defaultChecked":le=he;break;case"value":v=he;break;case"defaultValue":P=he;break;case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(a(137,r));break;default:Et(n,r,u,he,l,null)}}wi(n,v,P,ne,le,T,b,!1);return;case"select":et("invalid",n),u=T=v=null;for(b in l)if(l.hasOwnProperty(b)&&(P=l[b],P!=null))switch(b){case"value":v=P;break;case"defaultValue":T=P;break;case"multiple":u=P;default:Et(n,r,b,P,l,null)}r=v,l=T,n.multiple=!!u,r!=null?un(n,!!u,r,!1):l!=null&&un(n,!!u,l,!0);return;case"textarea":et("invalid",n),v=b=u=null;for(T in l)if(l.hasOwnProperty(T)&&(P=l[T],P!=null))switch(T){case"value":u=P;break;case"defaultValue":b=P;break;case"children":v=P;break;case"dangerouslySetInnerHTML":if(P!=null)throw Error(a(91));break;default:Et(n,r,T,P,l,null)}ts(n,u,b,v);return;case"option":for(ne in l)if(l.hasOwnProperty(ne)&&(u=l[ne],u!=null))switch(ne){case"selected":n.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:Et(n,r,ne,u,l,null)}return;case"dialog":et("beforetoggle",n),et("toggle",n),et("cancel",n),et("close",n);break;case"iframe":case"object":et("load",n);break;case"video":case"audio":for(u=0;u<zl.length;u++)et(zl[u],n);break;case"image":et("error",n),et("load",n);break;case"details":et("toggle",n);break;case"embed":case"source":case"link":et("error",n),et("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(le in l)if(l.hasOwnProperty(le)&&(u=l[le],u!=null))switch(le){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,r));default:Et(n,r,le,u,l,null)}return;default:if(Mr(r)){for(he in l)l.hasOwnProperty(he)&&(u=l[he],u!==void 0&&Pf(n,r,he,u,l,void 0));return}}for(P in l)l.hasOwnProperty(P)&&(u=l[P],u!=null&&Et(n,r,P,u,l,null))}function Dk(n,r,l,u){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var b=null,v=null,T=null,P=null,ne=null,le=null,he=null;for(de in l){var ge=l[de];if(l.hasOwnProperty(de)&&ge!=null)switch(de){case"checked":break;case"value":break;case"defaultValue":ne=ge;default:u.hasOwnProperty(de)||Et(n,r,de,null,u,ge)}}for(var ce in u){var de=u[ce];if(ge=l[ce],u.hasOwnProperty(ce)&&(de!=null||ge!=null))switch(ce){case"type":v=de;break;case"name":b=de;break;case"checked":le=de;break;case"defaultChecked":he=de;break;case"value":T=de;break;case"defaultValue":P=de;break;case"children":case"dangerouslySetInnerHTML":if(de!=null)throw Error(a(137,r));break;default:de!==ge&&Et(n,r,ce,de,u,ge)}}ma(n,T,P,ne,le,he,v,b);return;case"select":de=T=P=ce=null;for(v in l)if(ne=l[v],l.hasOwnProperty(v)&&ne!=null)switch(v){case"value":break;case"multiple":de=ne;default:u.hasOwnProperty(v)||Et(n,r,v,null,u,ne)}for(b in u)if(v=u[b],ne=l[b],u.hasOwnProperty(b)&&(v!=null||ne!=null))switch(b){case"value":ce=v;break;case"defaultValue":P=v;break;case"multiple":T=v;default:v!==ne&&Et(n,r,b,v,u,ne)}r=P,l=T,u=de,ce!=null?un(n,!!l,ce,!1):!!u!=!!l&&(r!=null?un(n,!!l,r,!0):un(n,!!l,l?[]:"",!1));return;case"textarea":de=ce=null;for(P in l)if(b=l[P],l.hasOwnProperty(P)&&b!=null&&!u.hasOwnProperty(P))switch(P){case"value":break;case"children":break;default:Et(n,r,P,null,u,b)}for(T in u)if(b=u[T],v=l[T],u.hasOwnProperty(T)&&(b!=null||v!=null))switch(T){case"value":ce=b;break;case"defaultValue":de=b;break;case"children":break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(a(91));break;default:b!==v&&Et(n,r,T,b,u,v)}pa(n,ce,de);return;case"option":for(var Ce in l)if(ce=l[Ce],l.hasOwnProperty(Ce)&&ce!=null&&!u.hasOwnProperty(Ce))switch(Ce){case"selected":n.selected=!1;break;default:Et(n,r,Ce,null,u,ce)}for(ne in u)if(ce=u[ne],de=l[ne],u.hasOwnProperty(ne)&&ce!==de&&(ce!=null||de!=null))switch(ne){case"selected":n.selected=ce&&typeof ce!="function"&&typeof ce!="symbol";break;default:Et(n,r,ne,ce,u,de)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var He in l)ce=l[He],l.hasOwnProperty(He)&&ce!=null&&!u.hasOwnProperty(He)&&Et(n,r,He,null,u,ce);for(le in u)if(ce=u[le],de=l[le],u.hasOwnProperty(le)&&ce!==de&&(ce!=null||de!=null))switch(le){case"children":case"dangerouslySetInnerHTML":if(ce!=null)throw Error(a(137,r));break;default:Et(n,r,le,ce,u,de)}return;default:if(Mr(r)){for(var Nt in l)ce=l[Nt],l.hasOwnProperty(Nt)&&ce!==void 0&&!u.hasOwnProperty(Nt)&&Pf(n,r,Nt,void 0,u,ce);for(he in u)ce=u[he],de=l[he],!u.hasOwnProperty(he)||ce===de||ce===void 0&&de===void 0||Pf(n,r,he,ce,u,de);return}}for(var ae in l)ce=l[ae],l.hasOwnProperty(ae)&&ce!=null&&!u.hasOwnProperty(ae)&&Et(n,r,ae,null,u,ce);for(ge in u)ce=u[ge],de=l[ge],!u.hasOwnProperty(ge)||ce===de||ce==null&&de==null||Et(n,r,ge,ce,u,de)}function c0(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function jk(){if(typeof performance.getEntriesByType=="function"){for(var n=0,r=0,l=performance.getEntriesByType("resource"),u=0;u<l.length;u++){var b=l[u],v=b.transferSize,T=b.initiatorType,P=b.duration;if(v&&P&&c0(T)){for(T=0,P=b.responseEnd,u+=1;u<l.length;u++){var ne=l[u],le=ne.startTime;if(le>P)break;var he=ne.transferSize,ge=ne.initiatorType;he&&c0(ge)&&(ne=ne.responseEnd,T+=he*(ne<P?1:(P-le)/(ne-le)))}if(--u,r+=8*(v+T)/(b.duration/1e3),n++,10<n)break}}if(0<n)return r/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var Ff=null,Gf=null;function zc(n){return n.nodeType===9?n:n.ownerDocument}function u0(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function d0(n,r){if(n===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&r==="foreignObject"?0:n}function Vf(n,r){return n==="textarea"||n==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var Yf=null;function Lk(){var n=window.event;return n&&n.type==="popstate"?n===Yf?!1:(Yf=n,!0):(Yf=null,!1)}var f0=typeof setTimeout=="function"?setTimeout:void 0,zk=typeof clearTimeout=="function"?clearTimeout:void 0,h0=typeof Promise=="function"?Promise:void 0,Ik=typeof queueMicrotask=="function"?queueMicrotask:typeof h0<"u"?function(n){return h0.resolve(null).then(n).catch(Bk)}:f0;function Bk(n){setTimeout(function(){throw n})}function Kr(n){return n==="head"}function m0(n,r){var l=r,u=0;do{var b=l.nextSibling;if(n.removeChild(l),b&&b.nodeType===8)if(l=b.data,l==="/$"||l==="/&"){if(u===0){n.removeChild(b),Ms(r);return}u--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")u++;else if(l==="html")Bl(n.ownerDocument.documentElement);else if(l==="head"){l=n.ownerDocument.head,Bl(l);for(var v=l.firstChild;v;){var T=v.nextSibling,P=v.nodeName;v[Qi]||P==="SCRIPT"||P==="STYLE"||P==="LINK"&&v.rel.toLowerCase()==="stylesheet"||l.removeChild(v),v=T}}else l==="body"&&Bl(n.ownerDocument.body);l=b}while(l);Ms(r)}function p0(n,r){var l=n;n=0;do{var u=l.nextSibling;if(l.nodeType===1?r?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(r?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),u&&u.nodeType===8)if(l=u.data,l==="/$"){if(n===0)break;n--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||n++;l=u}while(l)}function Xf(n){var r=n.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var l=r;switch(r=r.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Xf(l),ha(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}n.removeChild(l)}}function Uk(n,r,l,u){for(;n.nodeType===1;){var b=l;if(n.nodeName.toLowerCase()!==r.toLowerCase()){if(!u&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(u){if(!n[Qi])switch(r){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(v=n.getAttribute("rel"),v==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(v!==b.rel||n.getAttribute("href")!==(b.href==null||b.href===""?null:b.href)||n.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin)||n.getAttribute("title")!==(b.title==null?null:b.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(v=n.getAttribute("src"),(v!==(b.src==null?null:b.src)||n.getAttribute("type")!==(b.type==null?null:b.type)||n.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin))&&v&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(r==="input"&&n.type==="hidden"){var v=b.name==null?null:""+b.name;if(b.type==="hidden"&&n.getAttribute("name")===v)return n}else return n;if(n=mi(n.nextSibling),n===null)break}return null}function Hk(n,r,l){if(r==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!l||(n=mi(n.nextSibling),n===null))return null;return n}function g0(n,r){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!r||(n=mi(n.nextSibling),n===null))return null;return n}function Kf(n){return n.data==="$?"||n.data==="$~"}function Zf(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function $k(n,r){var l=n.ownerDocument;if(n.data==="$~")n._reactRetry=r;else if(n.data!=="$?"||l.readyState!=="loading")r();else{var u=function(){r(),l.removeEventListener("DOMContentLoaded",u)};l.addEventListener("DOMContentLoaded",u),n._reactRetry=u}}function mi(n){for(;n!=null;n=n.nextSibling){var r=n.nodeType;if(r===1||r===3)break;if(r===8){if(r=n.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;if(r==="/$"||r==="/&")return null}}return n}var Qf=null;function b0(n){n=n.nextSibling;for(var r=0;n;){if(n.nodeType===8){var l=n.data;if(l==="/$"||l==="/&"){if(r===0)return mi(n.nextSibling);r--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||r++}n=n.nextSibling}return null}function x0(n){n=n.previousSibling;for(var r=0;n;){if(n.nodeType===8){var l=n.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(r===0)return n;r--}else l!=="/$"&&l!=="/&"||r++}n=n.previousSibling}return null}function y0(n,r,l){switch(r=zc(l),n){case"html":if(n=r.documentElement,!n)throw Error(a(452));return n;case"head":if(n=r.head,!n)throw Error(a(453));return n;case"body":if(n=r.body,!n)throw Error(a(454));return n;default:throw Error(a(451))}}function Bl(n){for(var r=n.attributes;r.length;)n.removeAttributeNode(r[0]);ha(n)}var pi=new Map,v0=new Set;function Ic(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var pr=H.d;H.d={f:qk,r:Pk,D:Fk,C:Gk,L:Vk,m:Yk,X:Kk,S:Xk,M:Zk};function qk(){var n=pr.f(),r=Ac();return n||r}function Pk(n){var r=yi(n);r!==null&&r.tag===5&&r.type==="form"?Ib(r):pr.r(n)}var Ts=typeof document>"u"?null:document;function _0(n,r,l){var u=Ts;if(u&&typeof r=="string"&&r){var b=Sn(r);b='link[rel="'+n+'"][href="'+b+'"]',typeof l=="string"&&(b+='[crossorigin="'+l+'"]'),v0.has(b)||(v0.add(b),n={rel:n,crossOrigin:l,href:r},u.querySelector(b)===null&&(r=u.createElement("link"),_n(r,"link",n),Ft(r),u.head.appendChild(r)))}}function Fk(n){pr.D(n),_0("dns-prefetch",n,null)}function Gk(n,r){pr.C(n,r),_0("preconnect",n,r)}function Vk(n,r,l){pr.L(n,r,l);var u=Ts;if(u&&n&&r){var b='link[rel="preload"][as="'+Sn(r)+'"]';r==="image"&&l&&l.imageSrcSet?(b+='[imagesrcset="'+Sn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(b+='[imagesizes="'+Sn(l.imageSizes)+'"]')):b+='[href="'+Sn(n)+'"]';var v=b;switch(r){case"style":v=As(n);break;case"script":v=Cs(n)}pi.has(v)||(n=p({rel:"preload",href:r==="image"&&l&&l.imageSrcSet?void 0:n,as:r},l),pi.set(v,n),u.querySelector(b)!==null||r==="style"&&u.querySelector(Ul(v))||r==="script"&&u.querySelector(Hl(v))||(r=u.createElement("link"),_n(r,"link",n),Ft(r),u.head.appendChild(r)))}}function Yk(n,r){pr.m(n,r);var l=Ts;if(l&&n){var u=r&&typeof r.as=="string"?r.as:"script",b='link[rel="modulepreload"][as="'+Sn(u)+'"][href="'+Sn(n)+'"]',v=b;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=Cs(n)}if(!pi.has(v)&&(n=p({rel:"modulepreload",href:n},r),pi.set(v,n),l.querySelector(b)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Hl(v)))return}u=l.createElement("link"),_n(u,"link",n),Ft(u),l.head.appendChild(u)}}}function Xk(n,r,l){pr.S(n,r,l);var u=Ts;if(u&&n){var b=zi(u).hoistableStyles,v=As(n);r=r||"default";var T=b.get(v);if(!T){var P={loading:0,preload:null};if(T=u.querySelector(Ul(v)))P.loading=5;else{n=p({rel:"stylesheet",href:n,"data-precedence":r},l),(l=pi.get(v))&&Wf(n,l);var ne=T=u.createElement("link");Ft(ne),_n(ne,"link",n),ne._p=new Promise(function(le,he){ne.onload=le,ne.onerror=he}),ne.addEventListener("load",function(){P.loading|=1}),ne.addEventListener("error",function(){P.loading|=2}),P.loading|=4,Bc(T,r,u)}T={type:"stylesheet",instance:T,count:1,state:P},b.set(v,T)}}}function Kk(n,r){pr.X(n,r);var l=Ts;if(l&&n){var u=zi(l).hoistableScripts,b=Cs(n),v=u.get(b);v||(v=l.querySelector(Hl(b)),v||(n=p({src:n,async:!0},r),(r=pi.get(b))&&Jf(n,r),v=l.createElement("script"),Ft(v),_n(v,"link",n),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(b,v))}}function Zk(n,r){pr.M(n,r);var l=Ts;if(l&&n){var u=zi(l).hoistableScripts,b=Cs(n),v=u.get(b);v||(v=l.querySelector(Hl(b)),v||(n=p({src:n,async:!0,type:"module"},r),(r=pi.get(b))&&Jf(n,r),v=l.createElement("script"),Ft(v),_n(v,"link",n),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(b,v))}}function w0(n,r,l,u){var b=(b=Q.current)?Ic(b):null;if(!b)throw Error(a(446));switch(n){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(r=As(l.href),l=zi(b).hoistableStyles,u=l.get(r),u||(u={type:"style",instance:null,count:0,state:null},l.set(r,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){n=As(l.href);var v=zi(b).hoistableStyles,T=v.get(n);if(T||(b=b.ownerDocument||b,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(n,T),(v=b.querySelector(Ul(n)))&&!v._p&&(T.instance=v,T.state.loading=5),pi.has(n)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},pi.set(n,l),v||Qk(b,n,l,T.state))),r&&u===null)throw Error(a(528,""));return T}if(r&&u!==null)throw Error(a(529,""));return null;case"script":return r=l.async,l=l.src,typeof l=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=Cs(l),l=zi(b).hoistableScripts,u=l.get(r),u||(u={type:"script",instance:null,count:0,state:null},l.set(r,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,n))}}function As(n){return'href="'+Sn(n)+'"'}function Ul(n){return'link[rel="stylesheet"]['+n+"]"}function E0(n){return p({},n,{"data-precedence":n.precedence,precedence:null})}function Qk(n,r,l,u){n.querySelector('link[rel="preload"][as="style"]['+r+"]")?u.loading=1:(r=n.createElement("link"),u.preload=r,r.addEventListener("load",function(){return u.loading|=1}),r.addEventListener("error",function(){return u.loading|=2}),_n(r,"link",l),Ft(r),n.head.appendChild(r))}function Cs(n){return'[src="'+Sn(n)+'"]'}function Hl(n){return"script[async]"+n}function N0(n,r,l){if(r.count++,r.instance===null)switch(r.type){case"style":var u=n.querySelector('style[data-href~="'+Sn(l.href)+'"]');if(u)return r.instance=u,Ft(u),u;var b=p({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return u=(n.ownerDocument||n).createElement("style"),Ft(u),_n(u,"style",b),Bc(u,l.precedence,n),r.instance=u;case"stylesheet":b=As(l.href);var v=n.querySelector(Ul(b));if(v)return r.state.loading|=4,r.instance=v,Ft(v),v;u=E0(l),(b=pi.get(b))&&Wf(u,b),v=(n.ownerDocument||n).createElement("link"),Ft(v);var T=v;return T._p=new Promise(function(P,ne){T.onload=P,T.onerror=ne}),_n(v,"link",u),r.state.loading|=4,Bc(v,l.precedence,n),r.instance=v;case"script":return v=Cs(l.src),(b=n.querySelector(Hl(v)))?(r.instance=b,Ft(b),b):(u=l,(b=pi.get(v))&&(u=p({},l),Jf(u,b)),n=n.ownerDocument||n,b=n.createElement("script"),Ft(b),_n(b,"link",u),n.head.appendChild(b),r.instance=b);case"void":return null;default:throw Error(a(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(u=r.instance,r.state.loading|=4,Bc(u,l.precedence,n));return r.instance}function Bc(n,r,l){for(var u=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=u.length?u[u.length-1]:null,v=b,T=0;T<u.length;T++){var P=u[T];if(P.dataset.precedence===r)v=P;else if(v!==b)break}v?v.parentNode.insertBefore(n,v.nextSibling):(r=l.nodeType===9?l.head:l,r.insertBefore(n,r.firstChild))}function Wf(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.title==null&&(n.title=r.title)}function Jf(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.integrity==null&&(n.integrity=r.integrity)}var Uc=null;function S0(n,r,l){if(Uc===null){var u=new Map,b=Uc=new Map;b.set(l,u)}else b=Uc,u=b.get(l),u||(u=new Map,b.set(l,u));if(u.has(n))return u;for(u.set(n,null),l=l.getElementsByTagName(n),b=0;b<l.length;b++){var v=l[b];if(!(v[Qi]||v[Ut]||n==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var T=v.getAttribute(r)||"";T=n+T;var P=u.get(T);P?P.push(v):u.set(T,[v])}}return u}function k0(n,r,l){n=n.ownerDocument||n,n.head.insertBefore(l,r==="title"?n.querySelector("head > title"):null)}function Wk(n,r,l){if(l===1||r.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return n=r.disabled,typeof r.precedence=="string"&&n==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function T0(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function Jk(n,r,l,u){if(l.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var b=As(u.href),v=r.querySelector(Ul(b));if(v){r=v._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(n.count++,n=Hc.bind(n),r.then(n,n)),l.state.loading|=4,l.instance=v,Ft(v);return}v=r.ownerDocument||r,u=E0(u),(b=pi.get(b))&&Wf(u,b),v=v.createElement("link"),Ft(v);var T=v;T._p=new Promise(function(P,ne){T.onload=P,T.onerror=ne}),_n(v,"link",u),l.instance=v}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(l,r),(r=l.state.preload)&&(l.state.loading&3)===0&&(n.count++,l=Hc.bind(n),r.addEventListener("load",l),r.addEventListener("error",l))}}var eh=0;function e2(n,r){return n.stylesheets&&n.count===0&&qc(n,n.stylesheets),0<n.count||0<n.imgCount?function(l){var u=setTimeout(function(){if(n.stylesheets&&qc(n,n.stylesheets),n.unsuspend){var v=n.unsuspend;n.unsuspend=null,v()}},6e4+r);0<n.imgBytes&&eh===0&&(eh=62500*jk());var b=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&qc(n,n.stylesheets),n.unsuspend)){var v=n.unsuspend;n.unsuspend=null,v()}},(n.imgBytes>eh?50:800)+r);return n.unsuspend=l,function(){n.unsuspend=null,clearTimeout(u),clearTimeout(b)}}:null}function Hc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)qc(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var $c=null;function qc(n,r){n.stylesheets=null,n.unsuspend!==null&&(n.count++,$c=new Map,r.forEach(t2,n),$c=null,Hc.call(n))}function t2(n,r){if(!(r.state.loading&4)){var l=$c.get(n);if(l)var u=l.get(null);else{l=new Map,$c.set(n,l);for(var b=n.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<b.length;v++){var T=b[v];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(l.set(T.dataset.precedence,T),u=T)}u&&l.set(null,u)}b=r.instance,T=b.getAttribute("data-precedence"),v=l.get(T)||u,v===u&&l.set(null,b),l.set(T,b),this.count++,u=Hc.bind(this),b.addEventListener("load",u),b.addEventListener("error",u),v?v.parentNode.insertBefore(b,v.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(b,n.firstChild)),r.state.loading|=4}}var $l={$$typeof:E,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function n2(n,r,l,u,b,v,T,P,ne){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=St(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=St(0),this.hiddenUpdates=St(null),this.identifierPrefix=u,this.onUncaughtError=b,this.onCaughtError=v,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ne,this.incompleteTransitions=new Map}function A0(n,r,l,u,b,v,T,P,ne,le,he,ge){return n=new n2(n,r,l,T,ne,le,he,ge,P),r=1,v===!0&&(r|=24),v=Zn(3,null,null,r),n.current=v,v.stateNode=n,r=Rd(),r.refCount++,n.pooledCache=r,r.refCount++,v.memoizedState={element:u,isDehydrated:l,cache:r},zd(v),n}function C0(n){return n?(n=ss,n):ss}function M0(n,r,l,u,b,v){b=C0(b),u.context===null?u.context=b:u.pendingContext=b,u=Br(r),u.payload={element:l},v=v===void 0?null:v,v!==null&&(u.callback=v),l=Ur(n,u,r),l!==null&&(qn(l,n,r),yl(l,n,r))}function O0(n,r){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var l=n.retryLane;n.retryLane=l!==0&&l<r?l:r}}function th(n,r){O0(n,r),(n=n.alternate)&&O0(n,r)}function R0(n){if(n.tag===13||n.tag===31){var r=ya(n,67108864);r!==null&&qn(r,n,67108864),th(n,67108864)}}function D0(n){if(n.tag===13||n.tag===31){var r=ti();r=Mt(r);var l=ya(n,r);l!==null&&qn(l,n,r),th(n,r)}}var Pc=!0;function i2(n,r,l,u){var b=O.T;O.T=null;var v=H.p;try{H.p=2,nh(n,r,l,u)}finally{H.p=v,O.T=b}}function r2(n,r,l,u){var b=O.T;O.T=null;var v=H.p;try{H.p=8,nh(n,r,l,u)}finally{H.p=v,O.T=b}}function nh(n,r,l,u){if(Pc){var b=ih(u);if(b===null)qf(n,r,u,Fc,l),L0(n,u);else if(s2(b,n,r,l,u))u.stopPropagation();else if(L0(n,u),r&4&&-1<a2.indexOf(n)){for(;b!==null;){var v=yi(b);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var T=hn(v.pendingLanes);if(T!==0){var P=v;for(P.pendingLanes|=2,P.entangledLanes|=2;T;){var ne=1<<31-ut(T);P.entanglements[1]|=ne,T&=~ne}$i(v),(pt&6)===0&&(kc=ct()+500,Ll(0))}}break;case 31:case 13:P=ya(v,2),P!==null&&qn(P,v,2),Ac(),th(v,2)}if(v=ih(u),v===null&&qf(n,r,u,Fc,l),v===b)break;b=v}b!==null&&u.stopPropagation()}else qf(n,r,u,null,l)}}function ih(n){return n=Ye(n),rh(n)}var Fc=null;function rh(n){if(Fc=null,n=bn(n),n!==null){var r=o(n);if(r===null)n=null;else{var l=r.tag;if(l===13){if(n=c(r),n!==null)return n;n=null}else if(l===31){if(n=d(r),n!==null)return n;n=null}else if(l===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;n=null}else r!==n&&(n=null)}}return Fc=n,null}function j0(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(It()){case ue:return 2;case xe:return 8;case Oe:case Fe:return 32;case Ze:return 268435456;default:return 32}default:return 32}}var ah=!1,Zr=null,Qr=null,Wr=null,ql=new Map,Pl=new Map,Jr=[],a2="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function L0(n,r){switch(n){case"focusin":case"focusout":Zr=null;break;case"dragenter":case"dragleave":Qr=null;break;case"mouseover":case"mouseout":Wr=null;break;case"pointerover":case"pointerout":ql.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pl.delete(r.pointerId)}}function Fl(n,r,l,u,b,v){return n===null||n.nativeEvent!==v?(n={blockedOn:r,domEventName:l,eventSystemFlags:u,nativeEvent:v,targetContainers:[b]},r!==null&&(r=yi(r),r!==null&&R0(r)),n):(n.eventSystemFlags|=u,r=n.targetContainers,b!==null&&r.indexOf(b)===-1&&r.push(b),n)}function s2(n,r,l,u,b){switch(r){case"focusin":return Zr=Fl(Zr,n,r,l,u,b),!0;case"dragenter":return Qr=Fl(Qr,n,r,l,u,b),!0;case"mouseover":return Wr=Fl(Wr,n,r,l,u,b),!0;case"pointerover":var v=b.pointerId;return ql.set(v,Fl(ql.get(v)||null,n,r,l,u,b)),!0;case"gotpointercapture":return v=b.pointerId,Pl.set(v,Fl(Pl.get(v)||null,n,r,l,u,b)),!0}return!1}function z0(n){var r=bn(n.target);if(r!==null){var l=o(r);if(l!==null){if(r=l.tag,r===13){if(r=c(l),r!==null){n.blockedOn=r,Nr(n.priority,function(){D0(l)});return}}else if(r===31){if(r=d(l),r!==null){n.blockedOn=r,Nr(n.priority,function(){D0(l)});return}}else if(r===3&&l.stateNode.current.memoizedState.isDehydrated){n.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Gc(n){if(n.blockedOn!==null)return!1;for(var r=n.targetContainers;0<r.length;){var l=ih(n.nativeEvent);if(l===null){l=n.nativeEvent;var u=new l.constructor(l.type,l);Re=u,l.target.dispatchEvent(u),Re=null}else return r=yi(l),r!==null&&R0(r),n.blockedOn=l,!1;r.shift()}return!0}function I0(n,r,l){Gc(n)&&l.delete(r)}function l2(){ah=!1,Zr!==null&&Gc(Zr)&&(Zr=null),Qr!==null&&Gc(Qr)&&(Qr=null),Wr!==null&&Gc(Wr)&&(Wr=null),ql.forEach(I0),Pl.forEach(I0)}function Vc(n,r){n.blockedOn===r&&(n.blockedOn=null,ah||(ah=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,l2)))}var Yc=null;function B0(n){Yc!==n&&(Yc=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Yc===n&&(Yc=null);for(var r=0;r<n.length;r+=3){var l=n[r],u=n[r+1],b=n[r+2];if(typeof u!="function"){if(rh(u||l)===null)continue;break}var v=yi(l);v!==null&&(n.splice(r,3),r-=3,nf(v,{pending:!0,data:b,method:l.method,action:u},u,b))}}))}function Ms(n){function r(ne){return Vc(ne,n)}Zr!==null&&Vc(Zr,n),Qr!==null&&Vc(Qr,n),Wr!==null&&Vc(Wr,n),ql.forEach(r),Pl.forEach(r);for(var l=0;l<Jr.length;l++){var u=Jr[l];u.blockedOn===n&&(u.blockedOn=null)}for(;0<Jr.length&&(l=Jr[0],l.blockedOn===null);)z0(l),l.blockedOn===null&&Jr.shift();if(l=(n.ownerDocument||n).$$reactFormReplay,l!=null)for(u=0;u<l.length;u+=3){var b=l[u],v=l[u+1],T=b[mn]||null;if(typeof v=="function")T||B0(l);else if(T){var P=null;if(v&&v.hasAttribute("formAction")){if(b=v,T=v[mn]||null)P=T.formAction;else if(rh(b)!==null)continue}else P=T.action;typeof P=="function"?l[u+1]=P:(l.splice(u,3),u-=3),B0(l)}}}function U0(){function n(v){v.canIntercept&&v.info==="react-transition"&&v.intercept({handler:function(){return new Promise(function(T){return b=T})},focusReset:"manual",scroll:"manual"})}function r(){b!==null&&(b(),b=null),u||setTimeout(l,20)}function l(){if(!u&&!navigation.transition){var v=navigation.currentEntry;v&&v.url!=null&&navigation.navigate(v.url,{state:v.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,b=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(l,100),function(){u=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),b!==null&&(b(),b=null)}}}function sh(n){this._internalRoot=n}Xc.prototype.render=sh.prototype.render=function(n){var r=this._internalRoot;if(r===null)throw Error(a(409));var l=r.current,u=ti();M0(l,u,n,r,null,null)},Xc.prototype.unmount=sh.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var r=n.containerInfo;M0(n.current,2,null,n,null,null),Ac(),r[xi]=null}};function Xc(n){this._internalRoot=n}Xc.prototype.unstable_scheduleHydration=function(n){if(n){var r=Er();n={blockedOn:null,target:n,priority:r};for(var l=0;l<Jr.length&&r!==0&&r<Jr[l].priority;l++);Jr.splice(l,0,n),l===0&&z0(n)}};var H0=t.version;if(H0!=="19.2.7")throw Error(a(527,H0,"19.2.7"));H.findDOMNode=function(n){var r=n._reactInternals;if(r===void 0)throw typeof n.render=="function"?Error(a(188)):(n=Object.keys(n).join(","),Error(a(268,n)));return n=h(r),n=n!==null?m(n):null,n=n===null?null:n.stateNode,n};var o2={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Kc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kc.isDisabled&&Kc.supportsFiber)try{Kt=Kc.inject(o2),Ct=Kc}catch{}}return Vl.createRoot=function(n,r){if(!s(n))throw Error(a(299));var l=!1,u="",b=Yb,v=Xb,T=Kb;return r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(u=r.identifierPrefix),r.onUncaughtError!==void 0&&(b=r.onUncaughtError),r.onCaughtError!==void 0&&(v=r.onCaughtError),r.onRecoverableError!==void 0&&(T=r.onRecoverableError)),r=A0(n,1,!1,null,null,l,u,null,b,v,T,U0),n[xi]=r.current,$f(n),new sh(r)},Vl.hydrateRoot=function(n,r,l){if(!s(n))throw Error(a(299));var u=!1,b="",v=Yb,T=Xb,P=Kb,ne=null;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(b=l.identifierPrefix),l.onUncaughtError!==void 0&&(v=l.onUncaughtError),l.onCaughtError!==void 0&&(T=l.onCaughtError),l.onRecoverableError!==void 0&&(P=l.onRecoverableError),l.formState!==void 0&&(ne=l.formState)),r=A0(n,1,!0,r,l??null,u,b,ne,v,T,P,U0),r.context=C0(null),l=r.current,u=ti(),u=Mt(u),b=Br(u),b.callback=null,Ur(l,b,u),l=u,r.current.lanes=l,gt(r,l),$i(r),n[xi]=r.current,$f(n),new Xc(r)},Vl.version="19.2.7",Vl}var Z0;function x2(){if(Z0)return ch.exports;Z0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),ch.exports=b2(),ch.exports}var y2=x2();/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const y_=(...e)=>e.filter((t,i,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===i).join(" ").trim();/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const v2=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const _2=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,i,a)=>a?a.toUpperCase():i.toLowerCase());/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Q0=e=>{const t=_2(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */var w2={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.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const E2=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const N2=ee.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:s="",children:o,iconNode:c,...d},f)=>ee.createElement("svg",{ref:f,...w2,width:t,height:t,stroke:e,strokeWidth:a?Number(i)*24/Number(t):i,className:y_("lucide",s),...!o&&!E2(d)&&{"aria-hidden":"true"},...d},[...c.map(([h,m])=>ee.createElement(h,m)),...Array.isArray(o)?o:[o]]));/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const ke=(e,t)=>{const i=ee.forwardRef(({className:a,...s},o)=>ee.createElement(N2,{ref:o,iconNode:t,className:y_(`lucide-${v2(Q0(e))}`,`lucide-${e}`,a),...s}));return i.displayName=Q0(e),i};/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const S2=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],v_=ke("arrow-left",S2);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const k2=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ps=ke("arrow-up-right",k2);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const T2=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],A2=ke("arrow-up",T2);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const C2=[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],__=ke("ban",C2);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const M2=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]],O2=ke("bell-off",M2);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const R2=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],fp=ke("bot",R2);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const D2=[["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"}]],w_=ke("brain",D2);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const j2=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],L2=ke("bug",j2);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const z2=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],E_=ke("calendar-clock",z2);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const I2=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],B2=ke("check-check",I2);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const U2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Fs=ke("check",U2);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const H2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],fo=ke("chevron-down",H2);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const $2=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],q2=ke("chevron-right",$2);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const P2=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],N_=ke("chevron-up",P2);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const F2=[["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"}]],hp=ke("circle-alert",F2);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const G2=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],S_=ke("circle-check-big",G2);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const V2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Y2=ke("circle-check",V2);/**
- * @license lucide-react v0.563.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=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],K2=ke("circle-dot",X2);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Z2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Q2=ke("circle",Z2);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const W2=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],k_=ke("clock",W2);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const J2=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],eT=ke("code",J2);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const tT=[["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"}]],ho=ke("copy",tT);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const nT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]],iT=ke("crosshair",nT);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const rT=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],aT=ke("database",rT);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const sT=[["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"}]],lT=ke("eye",sT);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const oT=[["path",{d:"M10.5 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v6",key:"g5mvt7"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m14 20 2 2 4-4",key:"15kota"}]],cT=ke("file-check-corner",oT);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const uT=[["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 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],T_=ke("file-text",uT);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const dT=[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]],A_=ke("flag",dT);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const fT=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],hT=ke("git-merge",fT);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const mT=[["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"}]],mp=ke("git-pull-request",mT);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const pT=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],gT=ke("github",pT);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const bT=[["path",{d:"m22 13.29-3.33-10a.42.42 0 0 0-.14-.18.38.38 0 0 0-.22-.11.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18l-2.26 6.67H8.32L6.1 3.26a.42.42 0 0 0-.1-.18.38.38 0 0 0-.26-.08.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18L2 13.29a.74.74 0 0 0 .27.83L12 21l9.69-6.88a.71.71 0 0 0 .31-.83Z",key:"148pdi"}]],xT=ke("gitlab",bT);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const yT=[["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"}]],pp=ke("globe",yT);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const vT=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],Gs=ke("history",vT);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const _T=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],wT=ke("image",_T);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const ET=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],NT=ke("info",ET);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const ST=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],kT=ke("layers",ST);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const TT=[["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"}]],AT=ke("layout-dashboard",TT);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const CT=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]],MT=ke("list-todo",CT);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const OT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Hs=ke("loader-circle",OT);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const RT=[["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"}]],DT=ke("lock",RT);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const jT=[["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"}]],LT=ke("log-out",jT);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const zT=[["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"}]],gp=ke("mail",zT);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const IT=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],W0=ke("message-circle",IT);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const BT=[["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"}]],UT=ke("message-square",BT);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const HT=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],$T=ke("network",HT);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const qT=[["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"}]],PT=ke("panel-left-close",qT);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const FT=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],GT=ke("panel-left",FT);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const VT=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],YT=ke("pencil",VT);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const XT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],KT=ke("plus",XT);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const ZT=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]],C_=ke("puzzle",ZT);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const QT=[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]],M_=ke("radar",QT);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const WT=[["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"}]],JT=ke("refresh-cw",WT);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const eA=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],tA=ke("rocket",eA);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const nA=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],iA=ke("rotate-ccw",nA);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const rA=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],O_=ke("search",rA);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const aA=[["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"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],sA=ke("shield-alert",aA);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const lA=[["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"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],vu=ke("shield-check",lA);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const oA=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],J0=ke("sparkles",oA);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const cA=[["path",{d:"M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",key:"1dfntj"}],["path",{d:"M15 3v5a1 1 0 0 0 1 1h5",key:"6s6qgf"}]],uA=ke("sticky-note",cA);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const dA=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],R_=ke("terminal",dA);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const fA=[["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"}]],hA=ke("trash-2",fA);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const mA=[["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"}]],pA=ke("triangle-alert",mA);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const gA=[["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"}]],D_=ke("users",gA);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const bA=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],xA=ke("wand-sparkles",bA);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const yA=[["path",{d:"m10.586 5.414-5.172 5.172",key:"4mc350"}],["path",{d:"m18.586 13.414-5.172 5.172",key:"8c96vv"}],["path",{d:"M6 12h12",key:"8npq4p"}],["circle",{cx:"12",cy:"20",r:"2",key:"144qzu"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}],["circle",{cx:"20",cy:"12",r:"2",key:"1xzzfp"}],["circle",{cx:"4",cy:"12",r:"2",key:"1hvhnz"}]],j_=ke("waypoints",yA);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const vA=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],_u=ke("wrench",vA);/**
- * @license lucide-react v0.563.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const _A=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],L_=ke("x",_A),wA={open:{label:"Open",color:"bg-red-500/10 text-red-400 border-red-500/20",dotColor:"bg-red-500",description:"Newly discovered, awaiting triage"},in_progress:{label:"In Progress",color:"bg-blue-500/10 text-blue-400 border-blue-500/20",dotColor:"bg-blue-500",description:"Someone is working on this"},snoozed:{label:"Snoozed",color:"bg-purple-500/10 text-purple-400 border-purple-500/20",dotColor:"bg-purple-500",description:"Temporarily hidden until a follow-up date"},fixed:{label:"Fixed",color:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",dotColor:"bg-emerald-500",description:"This vulnerability has been fixed"},ignored:{label:"Ignored",color:"bg-gray-500/10 text-gray-400 border-gray-500/20",dotColor:"bg-gray-500",description:"Acknowledged but accepted"}},EA={trivial:{label:"Trivial",color:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20"},low:{label:"Low",color:"bg-blue-500/10 text-blue-400 border-blue-500/20"},medium:{label:"Medium",color:"bg-yellow-500/10 text-yellow-400 border-yellow-500/20"},high:{label:"High",color:"bg-orange-500/10 text-orange-400 border-orange-500/20"}},z_={critical:"bg-red-500/20 text-red-500 border-red-500/30",high:"bg-orange-500/20 text-orange-500 border-orange-500/30",medium:"bg-yellow-500/20 text-yellow-500 border-yellow-500/30",low:"bg-blue-500/20 text-blue-500 border-blue-500/30"};function Zc(e){return e.original_severity!=null&&e.original_severity!==e.severity}const NA={js:"javascript",ts:"typescript",tsx:"typescript",jsx:"javascript",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",php:"php",cs:"csharp",cpp:"cpp",c:"c",sh:"bash",bash:"bash",sql:"sql",html:"html",css:"css",json:"json",yaml:"yaml",yml:"yaml",xml:"xml"};function SA(e){var i;if(!e)return null;const t=(i=e.split(".").pop())==null?void 0:i.toLowerCase();return t&&NA[t]||null}function bp(e){switch(e){case"critical":return"bg-red-500";case"high":return"bg-orange-500";case"medium":return"bg-yellow-500";default:return"bg-blue-500"}}async function xp(e){try{await navigator.clipboard.writeText(e)}catch{const t=document.createElement("textarea");t.value=e,t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}}const Ao="https://app.strix.ai/api/auth/signup",kA="https://strix.ai/pricing",TA="ref=oss_viewer&utm_source=oss_viewer&utm_medium=local_viewer&utm_campaign=oss_viewer";function ca(e,t){const i=e.includes("?")?"&":"?";return`${e}${i}${TA}&utm_content=${encodeURIComponent(t)}`}function Ti(e,t={}){try{const i={event:e};for(const[s,o]of Object.entries(t))o!==void 0&&(i[s]=o);const a=JSON.stringify(i);typeof navigator<"u"&&navigator.sendBeacon?navigator.sendBeacon("/api/event",a):fetch("/api/event",{method:"POST",body:a,keepalive:!0})}catch{}}function Ci(e,t){Ti("cta_clicked",{cta:e,surface:t})}function Hu({label:e="Pro",className:t=""}){return g.jsx("span",{className:`inline-flex items-center rounded-full px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-[#aaa] ${t}`,style:{border:"1px solid #2a2a2a",background:"rgba(255,255,255,0.04)"},children:e})}function AA({text:e,children:t,className:i=""}){const[a,s]=ee.useState(!1);return g.jsxs("span",{className:`relative inline-flex ${i}`,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),onFocus:()=>s(!0),onBlur:()=>s(!1),children:[t,a&&g.jsx("span",{role:"tooltip",className:"pointer-events-none absolute bottom-full left-1/2 z-50 mb-2 w-max max-w-[240px] -translate-x-1/2 rounded-md px-2.5 py-1.5 text-xs text-[#ddd] shadow-lg",style:{border:"1px solid #2a2a2a",background:"#0a0a0a"},children:e})]})}function ey({item:e,surface:t}){const i=e.icon;return g.jsxs("a",{href:ca(Ao,e.slug),target:"_blank",rel:"noopener noreferrer",onClick:()=>Ci(e.slug,t),title:e.desc,className:"group block cursor-pointer rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-4 text-left transition-colors hover:border-[#444]",children:[g.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[g.jsx(i,{className:"h-4 w-4 text-[#888] transition-colors group-hover:text-white","aria-hidden":"true"}),g.jsxs("div",{className:"flex items-center gap-1.5",children:[g.jsx(Hu,{}),g.jsx(Ps,{className:"h-3.5 w-3.5 text-[#555] transition-colors group-hover:text-[#aaa]","aria-hidden":"true"})]})]}),g.jsx("p",{className:"text-sm font-medium text-white",children:e.title}),g.jsx("p",{className:"mt-0.5 text-xs text-[#666]",children:e.desc})]})}function CA({feature:e,active:t,onClick:i,collapsed:a=!1}){const s=e.icon;return a?g.jsx("button",{onClick:i,title:`${e.title} (${e.tier})`,className:`group flex w-full cursor-pointer items-center justify-center rounded-md px-2.5 py-2 transition-colors ${t?"text-white":"text-[#888] hover:bg-[rgba(255,255,255,0.06)] hover:text-white"}`,style:t?{background:"rgba(255,255,255,0.12)"}:void 0,children:g.jsx(s,{className:"h-4 w-4 flex-shrink-0","aria-hidden":"true"})}):g.jsxs("button",{onClick:i,className:`group flex w-full cursor-pointer items-start gap-2.5 rounded-md px-2.5 py-1.5 text-left transition-colors ${t?"text-white":"text-[#888] hover:bg-[rgba(255,255,255,0.06)] hover:text-white"}`,style:t?{background:"rgba(255,255,255,0.12)"}:void 0,children:[g.jsx(s,{className:"mt-0.5 h-4 w-4 flex-shrink-0","aria-hidden":"true"}),g.jsxs("span",{className:"min-w-0 flex-1",children:[g.jsxs("span",{className:"flex items-center gap-1.5",children:[g.jsx("span",{className:"flex-1 truncate text-sm",children:e.title}),g.jsx(Hu,{label:e.tier})]}),g.jsx("span",{className:"mt-0.5 block text-[11px] leading-snug text-[#666]",children:e.navDesc})]})]})}function ao({label:e,desc:t,slug:i,icon:a,surface:s}){return g.jsx(AA,{text:t,children:g.jsxs("a",{href:ca(Ao,i),target:"_blank",rel:"noopener noreferrer",onClick:()=>Ci(i,s),className:"group inline-flex items-center gap-2 rounded-lg border border-[#222] bg-[rgba(255,255,255,0.02)] px-3 py-2 text-sm text-[#aaa] transition-colors hover:border-[#444] hover:text-white",children:[g.jsx(a,{className:"h-4 w-4 text-[#888] transition-colors group-hover:text-white","aria-hidden":"true"}),g.jsx("span",{children:e}),g.jsx(Hu,{className:"ml-0.5"})]})})}function I_(e){var t,i,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(i=I_(e[t]))&&(a&&(a+=" "),a+=i)}else for(i in e)e[i]&&(a&&(a+=" "),a+=i);return a}function MA(){for(var e,t,i=0,a="",s=arguments.length;i<s;i++)(e=arguments[i])&&(t=I_(e))&&(a&&(a+=" "),a+=t);return a}const OA=(e,t)=>{const i=new Array(e.length+t.length);for(let a=0;a<e.length;a++)i[a]=e[a];for(let a=0;a<t.length;a++)i[e.length+a]=t[a];return i},RA=(e,t)=>({classGroupId:e,validator:t}),B_=(e=new Map,t=null,i)=>({nextPart:e,validators:t,classGroupId:i}),wu="-",ty=[],DA="arbitrary..",jA=e=>{const t=zA(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return LA(c);const d=c.split(wu),f=d[0]===""&&d.length>1?1:0;return U_(d,f,t)},getConflictingClassGroupIds:(c,d)=>{if(d){const f=a[c],h=i[c];return f?h?OA(h,f):f:h||ty}return i[c]||ty}}},U_=(e,t,i)=>{if(e.length-t===0)return i.classGroupId;const s=e[t],o=i.nextPart.get(s);if(o){const h=U_(e,t+1,o);if(h)return h}const c=i.validators;if(c===null)return;const d=t===0?e.join(wu):e.slice(t).join(wu),f=c.length;for(let h=0;h<f;h++){const m=c[h];if(m.validator(d))return m.classGroupId}},LA=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),i=t.indexOf(":"),a=t.slice(0,i);return a?DA+a:void 0})(),zA=e=>{const{theme:t,classGroups:i}=e;return IA(i,t)},IA=(e,t)=>{const i=B_();for(const a in e){const s=e[a];yp(s,i,a,t)}return i},yp=(e,t,i,a)=>{const s=e.length;for(let o=0;o<s;o++){const c=e[o];BA(c,t,i,a)}},BA=(e,t,i,a)=>{if(typeof e=="string"){UA(e,t,i);return}if(typeof e=="function"){HA(e,t,i,a);return}$A(e,t,i,a)},UA=(e,t,i)=>{const a=e===""?t:H_(t,e);a.classGroupId=i},HA=(e,t,i,a)=>{if(qA(e)){yp(e(a),t,i,a);return}t.validators===null&&(t.validators=[]),t.validators.push(RA(i,e))},$A=(e,t,i,a)=>{const s=Object.entries(e),o=s.length;for(let c=0;c<o;c++){const[d,f]=s[c];yp(f,H_(t,d),i,a)}},H_=(e,t)=>{let i=e;const a=t.split(wu),s=a.length;for(let o=0;o<s;o++){const c=a[o];let d=i.nextPart.get(c);d||(d=B_(),i.nextPart.set(c,d)),i=d}return i},qA=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,PA=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,i=Object.create(null),a=Object.create(null);const s=(o,c)=>{i[o]=c,t++,t>e&&(t=0,a=i,i=Object.create(null))};return{get(o){let c=i[o];if(c!==void 0)return c;if((c=a[o])!==void 0)return s(o,c),c},set(o,c){o in i?i[o]=c:s(o,c)}}},jm="!",ny=":",FA=[],iy=(e,t,i,a,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:i,maybePostfixModifierPosition:a,isExternal:s}),GA=e=>{const{prefix:t,experimentalParseClassName:i}=e;let a=s=>{const o=[];let c=0,d=0,f=0,h;const m=s.length;for(let N=0;N<m;N++){const S=s[N];if(c===0&&d===0){if(S===ny){o.push(s.slice(f,N)),f=N+1;continue}if(S==="/"){h=N;continue}}S==="["?c++:S==="]"?c--:S==="("?d++:S===")"&&d--}const p=o.length===0?s:s.slice(f);let y=p,x=!1;p.endsWith(jm)?(y=p.slice(0,-1),x=!0):p.startsWith(jm)&&(y=p.slice(1),x=!0);const _=h&&h>f?h-f:void 0;return iy(o,x,y,_)};if(t){const s=t+ny,o=a;a=c=>c.startsWith(s)?o(c.slice(s.length)):iy(FA,!1,c,void 0,!0)}if(i){const s=a;a=o=>i({className:o,parseClassName:s})}return a},VA=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((i,a)=>{t.set(i,1e6+a)}),i=>{const a=[];let s=[];for(let o=0;o<i.length;o++){const c=i[o],d=c[0]==="[",f=t.has(c);d||f?(s.length>0&&(s.sort(),a.push(...s),s=[]),a.push(c)):s.push(c)}return s.length>0&&(s.sort(),a.push(...s)),a}},YA=e=>({cache:PA(e.cacheSize),parseClassName:GA(e),sortModifiers:VA(e),postfixLookupClassGroupIds:XA(e),...jA(e)}),XA=e=>{const t=Object.create(null),i=e.postfixLookupClassGroups;if(i)for(let a=0;a<i.length;a++)t[i[a]]=!0;return t},KA=/\s+/,ZA=(e,t)=>{const{parseClassName:i,getClassGroupId:a,getConflictingClassGroupIds:s,sortModifiers:o,postfixLookupClassGroupIds:c}=t,d=[],f=e.trim().split(KA);let h="";for(let m=f.length-1;m>=0;m-=1){const p=f[m],{isExternal:y,modifiers:x,hasImportantModifier:_,baseClassName:N,maybePostfixModifierPosition:S}=i(p);if(y){h=p+(h.length>0?" "+h:h);continue}let w=!!S,k;if(w){const B=N.substring(0,S);k=a(B);const I=k&&c[k]?a(N):void 0;I&&I!==k&&(k=I,w=!1)}else k=a(N);if(!k){if(!w){h=p+(h.length>0?" "+h:h);continue}if(k=a(N),!k){h=p+(h.length>0?" "+h:h);continue}w=!1}const E=x.length===0?"":x.length===1?x[0]:o(x).join(":"),M=_?E+jm:E,U=M+k;if(d.indexOf(U)>-1)continue;d.push(U);const R=s(k,w);for(let B=0;B<R.length;++B){const I=R[B];d.push(M+I)}h=p+(h.length>0?" "+h:h)}return h},QA=(...e)=>{let t=0,i,a,s="";for(;t<e.length;)(i=e[t++])&&(a=$_(i))&&(s&&(s+=" "),s+=a);return s},$_=e=>{if(typeof e=="string")return e;let t,i="";for(let a=0;a<e.length;a++)e[a]&&(t=$_(e[a]))&&(i&&(i+=" "),i+=t);return i},WA=(e,...t)=>{let i,a,s,o;const c=f=>{const h=t.reduce((m,p)=>p(m),e());return i=YA(h),a=i.cache.get,s=i.cache.set,o=d,d(f)},d=f=>{const h=a(f);if(h)return h;const m=ZA(f,i);return s(f,m),m};return o=c,(...f)=>o(QA(...f))},JA=[],fn=e=>{const t=i=>i[e]||JA;return t.isThemeGetter=!0,t},q_=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,P_=/^\((?:(\w[\w-]*):)?(.+)\)$/i,eC=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,tC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nC=/\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$/,iC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,rC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,aC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ta=e=>eC.test(e),We=e=>!!e&&!Number.isNaN(Number(e)),qi=e=>!!e&&Number.isInteger(Number(e)),hh=e=>e.endsWith("%")&&We(e.slice(0,-1)),gr=e=>tC.test(e),F_=()=>!0,sC=e=>nC.test(e)&&!iC.test(e),vp=()=>!1,lC=e=>rC.test(e),oC=e=>aC.test(e),cC=e=>!Te(e)&&!Ae(e),uC=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),dC=e=>ua(e,Y_,vp),Te=e=>q_.test(e),Ra=e=>ua(e,X_,sC),ry=e=>ua(e,yC,We),fC=e=>ua(e,Z_,F_),hC=e=>ua(e,K_,vp),ay=e=>ua(e,G_,vp),mC=e=>ua(e,V_,oC),Qc=e=>ua(e,Q_,lC),Ae=e=>P_.test(e),Yl=e=>Xa(e,X_),pC=e=>Xa(e,K_),sy=e=>Xa(e,G_),gC=e=>Xa(e,Y_),bC=e=>Xa(e,V_),Wc=e=>Xa(e,Q_,!0),xC=e=>Xa(e,Z_,!0),ua=(e,t,i)=>{const a=q_.exec(e);return a?a[1]?t(a[1]):i(a[2]):!1},Xa=(e,t,i=!1)=>{const a=P_.exec(e);return a?a[1]?t(a[1]):i:!1},G_=e=>e==="position"||e==="percentage",V_=e=>e==="image"||e==="url",Y_=e=>e==="length"||e==="size"||e==="bg-size",X_=e=>e==="length",yC=e=>e==="number",K_=e=>e==="family-name",Z_=e=>e==="number"||e==="weight",Q_=e=>e==="shadow",vC=()=>{const e=fn("color"),t=fn("font"),i=fn("text"),a=fn("font-weight"),s=fn("tracking"),o=fn("leading"),c=fn("breakpoint"),d=fn("container"),f=fn("spacing"),h=fn("radius"),m=fn("shadow"),p=fn("inset-shadow"),y=fn("text-shadow"),x=fn("drop-shadow"),_=fn("blur"),N=fn("perspective"),S=fn("aspect"),w=fn("ease"),k=fn("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],U=()=>[...M(),Ae,Te],R=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],I=()=>[Ae,Te,f],Z=()=>[ta,"full","auto",...I()],j=()=>[qi,"none","subgrid",Ae,Te],z=()=>["auto",{span:["full",qi,Ae,Te]},qi,Ae,Te],V=()=>[qi,"auto",Ae,Te],G=()=>["auto","min","max","fr",Ae,Te],A=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...I()],H=()=>[ta,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],K=()=>[ta,"screen","full","dvw","lvw","svw","min","max","fit",...I()],X=()=>[ta,"screen","full","lh","dvh","lvh","svh","min","max","fit",...I()],C=()=>[e,Ae,Te],L=()=>[...M(),sy,ay,{position:[Ae,Te]}],Y=()=>["no-repeat",{repeat:["","x","y","space","round"]}],D=()=>["auto","cover","contain",gC,dC,{size:[Ae,Te]}],F=()=>[hh,Yl,Ra],$=()=>["","none","full",h,Ae,Te],Q=()=>["",We,Yl,Ra],J=()=>["solid","dashed","dotted","double"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>[We,hh,sy,ay],oe=()=>["","none",_,Ae,Te],fe=()=>["none",We,Ae,Te],be=()=>["none",We,Ae,Te],we=()=>[We,Ae,Te],Ne=()=>[ta,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[gr],breakpoint:[gr],color:[F_],container:[gr],"drop-shadow":[gr],ease:["in","out","in-out"],font:[cC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[gr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[gr],shadow:[gr],spacing:["px",We],text:[gr],"text-shadow":[gr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ta,Te,Ae,S]}],container:["container"],"container-type":[{"@container":["","normal","size",Ae,Te]}],"container-named":[uC],columns:[{columns:[We,Te,Ae,d]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"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:U()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Z()}],"inset-x":[{"inset-x":Z()}],"inset-y":[{"inset-y":Z()}],start:[{"inset-s":Z(),start:Z()}],end:[{"inset-e":Z(),end:Z()}],"inset-bs":[{"inset-bs":Z()}],"inset-be":[{"inset-be":Z()}],top:[{top:Z()}],right:[{right:Z()}],bottom:[{bottom:Z()}],left:[{left:Z()}],visibility:["visible","invisible","collapse"],z:[{z:[qi,"auto",Ae,Te]}],basis:[{basis:[ta,"full","auto",d,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[We,ta,"auto","initial","none",Te]}],grow:[{grow:["",We,Ae,Te]}],shrink:[{shrink:["",We,Ae,Te]}],order:[{order:[qi,"first","last","none",Ae,Te]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":G()}],"auto-rows":[{"auto-rows":G()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...A(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...A()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pbs:[{pbs:I()}],pbe:[{pbe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],"inline-size":[{inline:["auto",...K()]}],"min-inline-size":[{"min-inline":["auto",...K()]}],"max-inline-size":[{"max-inline":["none",...K()]}],"block-size":[{block:["auto",...X()]}],"min-block-size":[{"min-block":["auto",...X()]}],"max-block-size":[{"max-block":["none",...X()]}],w:[{w:[d,"screen",...H()]}],"min-w":[{"min-w":[d,"screen","none",...H()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",i,Yl,Ra]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,xC,fC]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",hh,Te]}],"font-family":[{font:[pC,hC,t]}],"font-features":[{"font-features":[Te]}],"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:[s,Ae,Te]}],"line-clamp":[{"line-clamp":[We,"none",Ae,ry]}],leading:[{leading:[o,...I()]}],"list-image":[{"list-image":["none",Ae,Te]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ae,Te]}],"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:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[We,"from-font","auto",Ae,Ra]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[We,"auto",Ae,Te]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"tab-size":[{tab:[qi,Ae,Te]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ae,Te]}],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",Ae,Te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:Y()}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},qi,Ae,Te],radial:["",Ae,Te],conic:[qi,Ae,Te]},bC,mC]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:Q()}],"border-w-x":[{"border-x":Q()}],"border-w-y":[{"border-y":Q()}],"border-w-s":[{"border-s":Q()}],"border-w-e":[{"border-e":Q()}],"border-w-bs":[{"border-bs":Q()}],"border-w-be":[{"border-be":Q()}],"border-w-t":[{"border-t":Q()}],"border-w-r":[{"border-r":Q()}],"border-w-b":[{"border-b":Q()}],"border-w-l":[{"border-l":Q()}],"divide-x":[{"divide-x":Q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"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-bs":[{"border-bs":C()}],"border-color-be":[{"border-be":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:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[We,Ae,Te]}],"outline-w":[{outline:["",We,Yl,Ra]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",m,Wc,Qc]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",p,Wc,Qc]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[We,Ra]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",y,Wc,Qc]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[We,Ae,Te]}],"mix-blend":[{"mix-blend":[...W(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":W()}],"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":[We]}],"mask-image-linear-from-pos":[{"mask-linear-from":te()}],"mask-image-linear-to-pos":[{"mask-linear-to":te()}],"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":te()}],"mask-image-t-to-pos":[{"mask-t-to":te()}],"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":te()}],"mask-image-r-to-pos":[{"mask-r-to":te()}],"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":te()}],"mask-image-b-to-pos":[{"mask-b-to":te()}],"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":te()}],"mask-image-l-to-pos":[{"mask-l-to":te()}],"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":te()}],"mask-image-x-to-pos":[{"mask-x-to":te()}],"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":te()}],"mask-image-y-to-pos":[{"mask-y-to":te()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[Ae,Te]}],"mask-image-radial-from-pos":[{"mask-radial-from":te()}],"mask-image-radial-to-pos":[{"mask-radial-to":te()}],"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":M()}],"mask-image-conic-pos":[{"mask-conic":[We]}],"mask-image-conic-from-pos":[{"mask-conic-from":te()}],"mask-image-conic-to-pos":[{"mask-conic-to":te()}],"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:L()}],"mask-repeat":[{mask:Y()}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ae,Te]}],filter:[{filter:["","none",Ae,Te]}],blur:[{blur:oe()}],brightness:[{brightness:[We,Ae,Te]}],contrast:[{contrast:[We,Ae,Te]}],"drop-shadow":[{"drop-shadow":["","none",x,Wc,Qc]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",We,Ae,Te]}],"hue-rotate":[{"hue-rotate":[We,Ae,Te]}],invert:[{invert:["",We,Ae,Te]}],saturate:[{saturate:[We,Ae,Te]}],sepia:[{sepia:["",We,Ae,Te]}],"backdrop-filter":[{"backdrop-filter":["","none",Ae,Te]}],"backdrop-blur":[{"backdrop-blur":oe()}],"backdrop-brightness":[{"backdrop-brightness":[We,Ae,Te]}],"backdrop-contrast":[{"backdrop-contrast":[We,Ae,Te]}],"backdrop-grayscale":[{"backdrop-grayscale":["",We,Ae,Te]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[We,Ae,Te]}],"backdrop-invert":[{"backdrop-invert":["",We,Ae,Te]}],"backdrop-opacity":[{"backdrop-opacity":[We,Ae,Te]}],"backdrop-saturate":[{"backdrop-saturate":[We,Ae,Te]}],"backdrop-sepia":[{"backdrop-sepia":["",We,Ae,Te]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ae,Te]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[We,"initial",Ae,Te]}],ease:[{ease:["linear","initial",w,Ae,Te]}],delay:[{delay:[We,Ae,Te]}],animate:[{animate:["none",k,Ae,Te]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,Ae,Te]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:fe()}],"rotate-x":[{"rotate-x":fe()}],"rotate-y":[{"rotate-y":fe()}],"rotate-z":[{"rotate-z":fe()}],scale:[{scale:be()}],"scale-x":[{"scale-x":be()}],"scale-y":[{"scale-y":be()}],"scale-z":[{"scale-z":be()}],"scale-3d":["scale-3d"],skew:[{skew:we()}],"skew-x":[{"skew-x":we()}],"skew-y":[{"skew-y":we()}],transform:[{transform:[Ae,Te,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ne()}],"translate-x":[{"translate-x":Ne()}],"translate-y":[{"translate-y":Ne()}],"translate-z":[{"translate-z":Ne()}],"translate-none":["translate-none"],zoom:[{zoom:[qi,Ae,Te]}],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",Ae,Te]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":C()}],"scrollbar-track-color":[{"scrollbar-track":C()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mbs":[{"scroll-mbs":I()}],"scroll-mbe":[{"scroll-mbe":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pbs":[{"scroll-pbs":I()}],"scroll-pbe":[{"scroll-pbe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",Ae,Te]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[We,Yl,Ra,ry]}],stroke:[{stroke:["none",...C()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},_C=WA(vC);function la(...e){return _C(MA(e))}function wC(e){return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}function Lm(e){const t=new Date(e),a=Math.floor((new Date().getTime()-t.getTime())/1e3);return a<60?"just now":a<3600?`${Math.floor(a/60)}m ago`:a<86400?`${Math.floor(a/3600)}h ago`:a<604800?`${Math.floor(a/86400)}d ago`:wC(e)}function EC(e){return`STRIX-${e}`}function Os(e){return new Intl.NumberFormat("en-US").format(e)}function NC(e,t){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const SC=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,kC=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,TC={};function ly(e,t){return(TC.jsx?kC:SC).test(e)}const AC=/[ \t\n\f\r]/g;function CC(e){return typeof e=="object"?e.type==="text"?oy(e.value):!1:oy(e)}function oy(e){return e.replace(AC,"")===""}class Co{constructor(t,i,a){this.normal=i,this.property=t,a&&(this.space=a)}}Co.prototype.normal={};Co.prototype.property={};Co.prototype.space=void 0;function W_(e,t){const i={},a={};for(const s of e)Object.assign(i,s.property),Object.assign(a,s.normal);return new Co(i,a,t)}function zm(e){return e.toLowerCase()}class Vn{constructor(t,i){this.attribute=i,this.property=t}}Vn.prototype.attribute="";Vn.prototype.booleanish=!1;Vn.prototype.boolean=!1;Vn.prototype.commaOrSpaceSeparated=!1;Vn.prototype.commaSeparated=!1;Vn.prototype.defined=!1;Vn.prototype.mustUseProperty=!1;Vn.prototype.number=!1;Vn.prototype.overloadedBoolean=!1;Vn.prototype.property="";Vn.prototype.spaceSeparated=!1;Vn.prototype.space=void 0;let MC=0;const Ge=Ka(),an=Ka(),Im=Ka(),ve=Ka(),Tt=Ka(),Ua=Ka(),ni=Ka();function Ka(){return 2**++MC}const Bm=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ge,booleanish:an,commaOrSpaceSeparated:ni,commaSeparated:Ua,number:ve,overloadedBoolean:Im,spaceSeparated:Tt},Symbol.toStringTag,{value:"Module"})),mh=Object.keys(Bm);class _p extends Vn{constructor(t,i,a,s){let o=-1;if(super(t,i),cy(this,"space",s),typeof a=="number")for(;++o<mh.length;){const c=mh[o];cy(this,mh[o],(a&Bm[c])===Bm[c])}}}_p.prototype.defined=!0;function cy(e,t,i){i&&(e[t]=i)}function el(e){const t={},i={};for(const[a,s]of Object.entries(e.properties)){const o=new _p(a,e.transform(e.attributes||{},a),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(o.mustUseProperty=!0),t[a]=o,i[zm(a)]=a,i[zm(o.attribute)]=a}return new Co(t,i,e.space)}const J_=el({properties:{ariaActiveDescendant:null,ariaAtomic:an,ariaAutoComplete:null,ariaBusy:an,ariaChecked:an,ariaColCount:ve,ariaColIndex:ve,ariaColSpan:ve,ariaControls:Tt,ariaCurrent:null,ariaDescribedBy:Tt,ariaDetails:null,ariaDisabled:an,ariaDropEffect:Tt,ariaErrorMessage:null,ariaExpanded:an,ariaFlowTo:Tt,ariaGrabbed:an,ariaHasPopup:null,ariaHidden:an,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Tt,ariaLevel:ve,ariaLive:null,ariaModal:an,ariaMultiLine:an,ariaMultiSelectable:an,ariaOrientation:null,ariaOwns:Tt,ariaPlaceholder:null,ariaPosInSet:ve,ariaPressed:an,ariaReadOnly:an,ariaRelevant:null,ariaRequired:an,ariaRoleDescription:Tt,ariaRowCount:ve,ariaRowIndex:ve,ariaRowSpan:ve,ariaSelected:an,ariaSetSize:ve,ariaSort:null,ariaValueMax:ve,ariaValueMin:ve,ariaValueNow:ve,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ew(e,t){return t in e?e[t]:t}function tw(e,t){return ew(e,t.toLowerCase())}const OC=el({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ua,acceptCharset:Tt,accessKey:Tt,action:null,allow:null,allowFullScreen:Ge,allowPaymentRequest:Ge,allowUserMedia:Ge,alpha:Ge,alt:null,as:null,async:Ge,autoCapitalize:null,autoComplete:Tt,autoFocus:Ge,autoPlay:Ge,blocking:Tt,capture:null,charSet:null,checked:Ge,cite:null,className:Tt,closedBy:null,colorSpace:null,cols:ve,colSpan:ve,command:null,commandFor:null,content:null,contentEditable:an,controls:Ge,controlsList:Tt,coords:ve|Ua,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ge,defer:Ge,dir:null,dirName:null,disabled:Ge,download:Im,draggable:an,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ge,formTarget:null,headers:Tt,height:ve,hidden:Im,high:ve,href:null,hrefLang:null,htmlFor:Tt,httpEquiv:Tt,id:null,imageSizes:null,imageSrcSet:null,inert:Ge,inputMode:null,integrity:null,is:null,isMap:Ge,itemId:null,itemProp:Tt,itemRef:Tt,itemScope:Ge,itemType:Tt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ge,low:ve,manifest:null,max:null,maxLength:ve,media:null,method:null,min:null,minLength:ve,multiple:Ge,muted:Ge,name:null,nonce:null,noModule:Ge,noValidate:Ge,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ge,optimum:ve,pattern:null,ping:Tt,placeholder:null,playsInline:Ge,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ge,referrerPolicy:null,rel:Tt,required:Ge,reversed:Ge,rows:ve,rowSpan:ve,sandbox:Tt,scope:null,scoped:Ge,seamless:Ge,selected:Ge,shadowRootClonable:Ge,shadowRootCustomElementRegistry:Ge,shadowRootDelegatesFocus:Ge,shadowRootMode:null,shadowRootSerializable:Ge,shape:null,size:ve,sizes:null,slot:null,span:ve,spellCheck:an,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ve,step:null,style:null,tabIndex:ve,target:null,title:null,translate:null,type:null,typeMustMatch:Ge,useMap:null,value:an,width:ve,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Tt,axis:null,background:null,bgColor:null,border:ve,borderColor:null,bottomMargin:ve,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ge,declare:Ge,event:null,face:null,frame:null,frameBorder:null,hSpace:ve,leftMargin:ve,link:null,longDesc:null,lowSrc:null,marginHeight:ve,marginWidth:ve,noResize:Ge,noHref:Ge,noShade:Ge,noWrap:Ge,object:null,profile:null,prompt:null,rev:null,rightMargin:ve,rules:null,scheme:null,scrolling:an,standby:null,summary:null,text:null,topMargin:ve,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ve,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Ge,disablePictureInPicture:Ge,disableRemotePlayback:Ge,exportParts:Ua,part:Tt,prefix:null,property:null,results:ve,security:null,unselectable:null},space:"html",transform:tw}),RC=el({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ni,accentHeight:ve,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ve,amplitude:ve,arabicForm:null,ascent:ve,attributeName:null,attributeType:null,azimuth:ve,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ve,by:null,calcMode:null,capHeight:ve,className:Tt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ve,diffuseConstant:ve,direction:null,display:null,dur:null,divisor:ve,dominantBaseline:null,download:Ge,dx:null,dy:null,edgeMode:null,editable:null,elevation:ve,enableBackground:null,end:null,event:null,exponent:ve,externalResourcesRequired:null,fill:null,fillOpacity:ve,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ua,g2:Ua,glyphName:Ua,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ve,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ve,horizOriginX:ve,horizOriginY:ve,id:null,ideographic:ve,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ve,k:ve,k1:ve,k2:ve,k3:ve,k4:ve,kernelMatrix:ni,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ve,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ve,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ve,overlineThickness:ve,paintOrder:null,panose1:null,path:null,pathLength:ve,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Tt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ve,pointsAtY:ve,pointsAtZ:ve,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ni,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ni,rev:ni,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ni,requiredFeatures:ni,requiredFonts:ni,requiredFormats:ni,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ve,specularExponent:ve,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ve,strikethroughThickness:ve,string:null,stroke:null,strokeDashArray:ni,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ve,strokeOpacity:ve,strokeWidth:null,style:null,surfaceScale:ve,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ni,tabIndex:ve,tableValues:null,target:null,targetX:ve,targetY:ve,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ni,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ve,underlineThickness:ve,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ve,values:null,vAlphabetic:ve,vMathematical:ve,vectorEffect:null,vHanging:ve,vIdeographic:ve,version:null,vertAdvY:ve,vertOriginX:ve,vertOriginY:ve,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ve,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ew}),nw=el({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),iw=el({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:tw}),rw=el({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),DC={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},jC=/[A-Z]/g,uy=/-[a-z]/g,LC=/^data[-\w.:]+$/i;function zC(e,t){const i=zm(t);let a=t,s=Vn;if(i in e.normal)return e.property[e.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&LC.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(uy,BC);a="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!uy.test(o)){let c=o.replace(jC,IC);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}s=_p}return new s(a,t)}function IC(e){return"-"+e.toLowerCase()}function BC(e){return e.charAt(1).toUpperCase()}const UC=W_([J_,OC,nw,iw,rw],"html"),wp=W_([J_,RC,nw,iw,rw],"svg");function HC(e){return e.join(" ").trim()}var Rs={},ph,dy;function $C(){if(dy)return ph;dy=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,f=`
-`,h="/",m="*",p="",y="comment",x="declaration";function _(S,w){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];w=w||{};var k=1,E=1;function M(A){var q=A.match(t);q&&(k+=q.length);var O=A.lastIndexOf(f);E=~O?A.length-O:E+A.length}function U(){var A={line:k,column:E};return function(q){return q.position=new R(A),Z(),q}}function R(A){this.start=A,this.end={line:k,column:E},this.source=w.source}R.prototype.content=S;function B(A){var q=new Error(w.source+":"+k+":"+E+": "+A);if(q.reason=A,q.filename=w.source,q.line=k,q.column=E,q.source=S,!w.silent)throw q}function I(A){var q=A.exec(S);if(q){var O=q[0];return M(O),S=S.slice(O.length),q}}function Z(){I(i)}function j(A){var q;for(A=A||[];q=z();)q!==!1&&A.push(q);return A}function z(){var A=U();if(!(h!=S.charAt(0)||m!=S.charAt(1))){for(var q=2;p!=S.charAt(q)&&(m!=S.charAt(q)||h!=S.charAt(q+1));)++q;if(q+=2,p===S.charAt(q-1))return B("End of comment missing");var O=S.slice(2,q-2);return E+=2,M(O),S=S.slice(q),E+=2,A({type:y,comment:O})}}function V(){var A=U(),q=I(a);if(q){if(z(),!I(s))return B("property missing ':'");var O=I(o),H=A({type:x,property:N(q[0].replace(e,p)),value:O?N(O[0].replace(e,p)):p});return I(c),H}}function G(){var A=[];j(A);for(var q;q=V();)q!==!1&&(A.push(q),j(A));return A}return Z(),G()}function N(S){return S?S.replace(d,p):p}return ph=_,ph}var fy;function qC(){if(fy)return Rs;fy=1;var e=Rs&&Rs.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Rs,"__esModule",{value:!0}),Rs.default=i;const t=e($C());function i(a,s){let o=null;if(!a||typeof a!="string")return o;const c=(0,t.default)(a),d=typeof s=="function";return c.forEach(f=>{if(f.type!=="declaration")return;const{property:h,value:m}=f;d?s(h,m,f):m&&(o=o||{},o[h]=m)}),o}return Rs}var Xl={},hy;function PC(){if(hy)return Xl;hy=1,Object.defineProperty(Xl,"__esModule",{value:!0}),Xl.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,o=function(h){return!h||i.test(h)||e.test(h)},c=function(h,m){return m.toUpperCase()},d=function(h,m){return"".concat(m,"-")},f=function(h,m){return m===void 0&&(m={}),o(h)?h:(h=h.toLowerCase(),m.reactCompat?h=h.replace(s,d):h=h.replace(a,d),h.replace(t,c))};return Xl.camelCase=f,Xl}var Kl,my;function FC(){if(my)return Kl;my=1;var e=Kl&&Kl.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(qC()),i=PC();function a(s,o){var c={};return!s||typeof s!="string"||(0,t.default)(s,function(d,f){d&&f&&(c[(0,i.camelCase)(d,o)]=f)}),c}return a.default=a,Kl=a,Kl}var GC=FC();const VC=ko(GC),aw=sw("end"),Ep=sw("start");function sw(e){return t;function t(i){const a=i&&i.position&&i.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function YC(e){const t=Ep(e),i=aw(e);if(t&&i)return{start:t,end:i}}function so(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?py(e.position):"start"in e||"end"in e?py(e):"line"in e||"column"in e?Um(e):""}function Um(e){return gy(e&&e.line)+":"+gy(e&&e.column)}function py(e){return Um(e&&e.start)+"-"+Um(e&&e.end)}function gy(e){return e&&typeof e=="number"?e:1}class An extends Error{constructor(t,i,a){super(),typeof i=="string"&&(a=i,i=void 0);let s="",o={},c=!1;if(i&&("line"in i&&"column"in i?o={place:i}:"start"in i&&"end"in i?o={place:i}:"type"in i?o={ancestors:[i],place:i.position}:o={...i}),typeof t=="string"?s=t:!o.cause&&t&&(c=!0,s=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof a=="string"){const f=a.indexOf(":");f===-1?o.ruleId=a:(o.source=a.slice(0,f),o.ruleId=a.slice(f+1))}if(!o.place&&o.ancestors&&o.ancestors){const f=o.ancestors[o.ancestors.length-1];f&&(o.place=f.position)}const d=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=d?d.line:void 0,this.name=so(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=c&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}An.prototype.file="";An.prototype.name="";An.prototype.reason="";An.prototype.message="";An.prototype.stack="";An.prototype.column=void 0;An.prototype.line=void 0;An.prototype.ancestors=void 0;An.prototype.cause=void 0;An.prototype.fatal=void 0;An.prototype.place=void 0;An.prototype.ruleId=void 0;An.prototype.source=void 0;const Np={}.hasOwnProperty,XC=new Map,KC=/[A-Z]/g,ZC=new Set(["table","tbody","thead","tfoot","tr"]),QC=new Set(["td","th"]),lw="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function WC(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=t.filePath||void 0;let a;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=sM(i,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=aM(i,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?wp:UC,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=ow(s,e,void 0);return o&&typeof o!="string"?o:s.create(e,s.Fragment,{children:o||void 0},void 0)}function ow(e,t,i){if(t.type==="element")return JC(e,t,i);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return eM(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return nM(e,t,i);if(t.type==="mdxjsEsm")return tM(e,t);if(t.type==="root")return iM(e,t,i);if(t.type==="text")return rM(e,t)}function JC(e,t,i){const a=e.schema;let s=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(s=wp,e.schema=s),e.ancestors.push(t);const o=uw(e,t.tagName,!1),c=lM(e,t);let d=kp(e,t);return ZC.has(t.tagName)&&(d=d.filter(function(f){return typeof f=="string"?!CC(f):!0})),cw(e,c,o,t),Sp(c,d),e.ancestors.pop(),e.schema=a,e.create(t,o,c,i)}function eM(e,t){if(t.data&&t.data.estree&&e.evaluater){const a=t.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}mo(e,t.position)}function tM(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);mo(e,t.position)}function nM(e,t,i){const a=e.schema;let s=a;t.name==="svg"&&a.space==="html"&&(s=wp,e.schema=s),e.ancestors.push(t);const o=t.name===null?e.Fragment:uw(e,t.name,!0),c=oM(e,t),d=kp(e,t);return cw(e,c,o,t),Sp(c,d),e.ancestors.pop(),e.schema=a,e.create(t,o,c,i)}function iM(e,t,i){const a={};return Sp(a,kp(e,t)),e.create(t,e.Fragment,a,i)}function rM(e,t){return t.value}function cw(e,t,i,a){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(t.node=a)}function Sp(e,t){if(t.length>0){const i=t.length>1?t:t[0];i&&(e.children=i)}}function aM(e,t,i){return a;function a(s,o,c,d){const h=Array.isArray(c.children)?i:t;return d?h(o,c,d):h(o,c)}}function sM(e,t){return i;function i(a,s,o,c){const d=Array.isArray(o.children),f=Ep(a);return t(s,o,c,d,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function lM(e,t){const i={};let a,s;for(s in t.properties)if(s!=="children"&&Np.call(t.properties,s)){const o=cM(e,s,t.properties[s]);if(o){const[c,d]=o;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&QC.has(t.tagName)?a=d:i[c]=d}}if(a){const o=i.style||(i.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return i}function oM(e,t){const i={};for(const a of t.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const o=a.data.estree.body[0];o.type;const c=o.expression;c.type;const d=c.properties[0];d.type,Object.assign(i,e.evaluater.evaluateExpression(d.argument))}else mo(e,t.position);else{const s=a.name;let o;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const d=a.value.data.estree.body[0];d.type,o=e.evaluater.evaluateExpression(d.expression)}else mo(e,t.position);else o=a.value===null?!0:a.value;i[s]=o}return i}function kp(e,t){const i=[];let a=-1;const s=e.passKeys?new Map:XC;for(;++a<t.children.length;){const o=t.children[a];let c;if(e.passKeys){const f=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(f){const h=s.get(f)||0;c=f+"-"+h,s.set(f,h+1)}}const d=ow(e,o,c);d!==void 0&&i.push(d)}return i}function cM(e,t,i){const a=zC(e.schema,t);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=a.commaSeparated?NC(i):HC(i)),a.property==="style"){let s=typeof i=="object"?i:uM(e,String(i));return e.stylePropertyNameCase==="css"&&(s=dM(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&a.space?DC[a.property]||a.property:a.attribute,i]}}function uM(e,t){try{return VC(t,{reactCompat:!0})}catch(i){if(e.ignoreInvalidStyle)return{};const a=i,s=new An("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=lw+"#cannot-parse-style-attribute",s}}function uw(e,t,i){let a;if(!i)a={type:"Literal",value:t};else if(t.includes(".")){const s=t.split(".");let o=-1,c;for(;++o<s.length;){const d=ly(s[o])?{type:"Identifier",name:s[o]}:{type:"Literal",value:s[o]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(o&&d.type==="Literal"),optional:!1}:d}a=c}else a=ly(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(a.type==="Literal"){const s=a.value;return Np.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(a);mo(e)}function mo(e,t){const i=new An("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=lw+"#cannot-handle-mdx-estrees-without-createevaluater",i}function dM(e){const t={};let i;for(i in e)Np.call(e,i)&&(t[fM(i)]=e[i]);return t}function fM(e){let t=e.replace(KC,hM);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function hM(e){return"-"+e.toLowerCase()}const gh={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},mM={};function Tp(e,t){const i=mM,a=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,s=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return dw(e,a,s)}function dw(e,t,i){if(pM(e)){if("value"in e)return e.type==="html"&&!i?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return by(e.children,t,i)}return Array.isArray(e)?by(e,t,i):""}function by(e,t,i){const a=[];let s=-1;for(;++s<e.length;)a[s]=dw(e[s],t,i);return a.join("")}function pM(e){return!!(e&&typeof e=="object")}const xy=document.createElement("i");function Ap(e){const t="&"+e+";";xy.innerHTML=t;const i=xy.textContent;return i.charCodeAt(i.length-1)===59&&e!=="semi"||i===t?!1:i}function ri(e,t,i,a){const s=e.length;let o=0,c;if(t<0?t=-t>s?0:s+t:t=t>s?s:t,i=i>0?i:0,a.length<1e4)c=Array.from(a),c.unshift(t,i),e.splice(...c);else for(i&&e.splice(t,i);o<a.length;)c=a.slice(o,o+1e4),c.unshift(t,0),e.splice(...c),o+=1e4,t+=1e4}function gi(e,t){return e.length>0?(ri(e,e.length,0,t),e):t}const yy={}.hasOwnProperty;function fw(e){const t={};let i=-1;for(;++i<e.length;)gM(t,e[i]);return t}function gM(e,t){let i;for(i in t){const s=(yy.call(e,i)?e[i]:void 0)||(e[i]={}),o=t[i];let c;if(o)for(c in o){yy.call(s,c)||(s[c]=[]);const d=o[c];bM(s[c],Array.isArray(d)?d:d?[d]:[])}}}function bM(e,t){let i=-1;const a=[];for(;++i<t.length;)(t[i].add==="after"?e:a).push(t[i]);ri(e,0,0,a)}function hw(e,t){const i=Number.parseInt(e,t);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function Ri(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const jn=da(/[A-Za-z]/),Tn=da(/[\dA-Za-z]/),xM=da(/[#-'*+\--9=?A-Z^-~]/);function Eu(e){return e!==null&&(e<32||e===127)}const Hm=da(/\d/),yM=da(/[\dA-Fa-f]/),vM=da(/[!-/:-@[-`{-~]/);function Be(e){return e!==null&&e<-2}function At(e){return e!==null&&(e<0||e===32)}function tt(e){return e===-2||e===-1||e===32}const $u=da(new RegExp("\\p{P}|\\p{S}","u")),qa=da(/\s/);function da(e){return t;function t(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function tl(e){const t=[];let i=-1,a=0,s=0;for(;++i<e.length;){const o=e.charCodeAt(i);let c="";if(o===37&&Tn(e.charCodeAt(i+1))&&Tn(e.charCodeAt(i+2)))s=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(c=String.fromCharCode(o));else if(o>55295&&o<57344){const d=e.charCodeAt(i+1);o<56320&&d>56319&&d<57344?(c=String.fromCharCode(o,d),s=1):c="�"}else c=String.fromCharCode(o);c&&(t.push(e.slice(a,i),encodeURIComponent(c)),a=i+s+1,c=""),s&&(i+=s,s=0)}return t.join("")+e.slice(a)}function ot(e,t,i,a){const s=a?a-1:Number.POSITIVE_INFINITY;let o=0;return c;function c(f){return tt(f)?(e.enter(i),d(f)):t(f)}function d(f){return tt(f)&&o++<s?(e.consume(f),d):(e.exit(i),t(f))}}const _M={tokenize:wM};function wM(e){const t=e.attempt(this.parser.constructs.contentInitial,a,s);let i;return t;function a(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),ot(e,t,"linePrefix")}function s(d){return e.enter("paragraph"),o(d)}function o(d){const f=e.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=f),i=f,c(d)}function c(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return Be(d)?(e.consume(d),e.exit("chunkText"),o):(e.consume(d),c)}}const EM={tokenize:NM},vy={tokenize:SM};function NM(e){const t=this,i=[];let a=0,s,o,c;return d;function d(E){if(a<i.length){const M=i[a];return t.containerState=M[1],e.attempt(M[0].continuation,f,h)(E)}return h(E)}function f(E){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&k();const M=t.events.length;let U=M,R;for(;U--;)if(t.events[U][0]==="exit"&&t.events[U][1].type==="chunkFlow"){R=t.events[U][1].end;break}w(a);let B=M;for(;B<t.events.length;)t.events[B][1].end={...R},B++;return ri(t.events,U+1,0,t.events.slice(M)),t.events.length=B,h(E)}return d(E)}function h(E){if(a===i.length){if(!s)return y(E);if(s.currentConstruct&&s.currentConstruct.concrete)return _(E);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(vy,m,p)(E)}function m(E){return s&&k(),w(a),y(E)}function p(E){return t.parser.lazy[t.now().line]=a!==i.length,c=t.now().offset,_(E)}function y(E){return t.containerState={},e.attempt(vy,x,_)(E)}function x(E){return a++,i.push([t.currentConstruct,t.containerState]),y(E)}function _(E){if(E===null){s&&k(),w(0),e.consume(E);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:o}),N(E)}function N(E){if(E===null){S(e.exit("chunkFlow"),!0),w(0),e.consume(E);return}return Be(E)?(e.consume(E),S(e.exit("chunkFlow")),a=0,t.interrupt=void 0,d):(e.consume(E),N)}function S(E,M){const U=t.sliceStream(E);if(M&&U.push(null),E.previous=o,o&&(o.next=E),o=E,s.defineSkip(E.start),s.write(U),t.parser.lazy[E.start.line]){let R=s.events.length;for(;R--;)if(s.events[R][1].start.offset<c&&(!s.events[R][1].end||s.events[R][1].end.offset>c))return;const B=t.events.length;let I=B,Z,j;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){if(Z){j=t.events[I][1].end;break}Z=!0}for(w(a),R=B;R<t.events.length;)t.events[R][1].end={...j},R++;ri(t.events,I+1,0,t.events.slice(B)),t.events.length=R}}function w(E){let M=i.length;for(;M-- >E;){const U=i[M];t.containerState=U[1],U[0].exit.call(t,e)}i.length=E}function k(){s.write([null]),o=void 0,s=void 0,t.containerState._closeFlow=void 0}}function SM(e,t,i){return ot(e,e.attempt(this.parser.constructs.document,t,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Vs(e){if(e===null||At(e)||qa(e))return 1;if($u(e))return 2}function qu(e,t,i){const a=[];let s=-1;for(;++s<e.length;){const o=e[s].resolveAll;o&&!a.includes(o)&&(t=o(t,i),a.push(o))}return t}const $m={name:"attention",resolveAll:kM,tokenize:TM};function kM(e,t){let i=-1,a,s,o,c,d,f,h,m;for(;++i<e.length;)if(e[i][0]==="enter"&&e[i][1].type==="attentionSequence"&&e[i][1]._close){for(a=i;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&t.sliceSerialize(e[a][1]).charCodeAt(0)===t.sliceSerialize(e[i][1]).charCodeAt(0)){if((e[a][1]._close||e[i][1]._open)&&(e[i][1].end.offset-e[i][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[i][1].end.offset-e[i][1].start.offset)%3))continue;f=e[a][1].end.offset-e[a][1].start.offset>1&&e[i][1].end.offset-e[i][1].start.offset>1?2:1;const p={...e[a][1].end},y={...e[i][1].start};_y(p,-f),_y(y,f),c={type:f>1?"strongSequence":"emphasisSequence",start:p,end:{...e[a][1].end}},d={type:f>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:y},o={type:f>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[i][1].start}},s={type:f>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},e[a][1].end={...c.start},e[i][1].start={...d.end},h=[],e[a][1].end.offset-e[a][1].start.offset&&(h=gi(h,[["enter",e[a][1],t],["exit",e[a][1],t]])),h=gi(h,[["enter",s,t],["enter",c,t],["exit",c,t],["enter",o,t]]),h=gi(h,qu(t.parser.constructs.insideSpan.null,e.slice(a+1,i),t)),h=gi(h,[["exit",o,t],["enter",d,t],["exit",d,t],["exit",s,t]]),e[i][1].end.offset-e[i][1].start.offset?(m=2,h=gi(h,[["enter",e[i][1],t],["exit",e[i][1],t]])):m=0,ri(e,a-1,i-a+3,h),i=a+h.length-m-2;break}}for(i=-1;++i<e.length;)e[i][1].type==="attentionSequence"&&(e[i][1].type="data");return e}function TM(e,t){const i=this.parser.constructs.attentionMarkers.null,a=this.previous,s=Vs(a);let o;return c;function c(f){return o=f,e.enter("attentionSequence"),d(f)}function d(f){if(f===o)return e.consume(f),d;const h=e.exit("attentionSequence"),m=Vs(f),p=!m||m===2&&s||i.includes(f),y=!s||s===2&&m||i.includes(a);return h._open=!!(o===42?p:p&&(s||!y)),h._close=!!(o===42?y:y&&(m||!p)),t(f)}}function _y(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const AM={name:"autolink",tokenize:CM};function CM(e,t,i){let a=0;return s;function s(x){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(x){return jn(x)?(e.consume(x),c):x===64?i(x):h(x)}function c(x){return x===43||x===45||x===46||Tn(x)?(a=1,d(x)):h(x)}function d(x){return x===58?(e.consume(x),a=0,f):(x===43||x===45||x===46||Tn(x))&&a++<32?(e.consume(x),d):(a=0,h(x))}function f(x){return x===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),t):x===null||x===32||x===60||Eu(x)?i(x):(e.consume(x),f)}function h(x){return x===64?(e.consume(x),m):xM(x)?(e.consume(x),h):i(x)}function m(x){return Tn(x)?p(x):i(x)}function p(x){return x===46?(e.consume(x),a=0,m):x===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),t):y(x)}function y(x){if((x===45||Tn(x))&&a++<63){const _=x===45?y:p;return e.consume(x),_}return i(x)}}const Mo={partial:!0,tokenize:MM};function MM(e,t,i){return a;function a(o){return tt(o)?ot(e,s,"linePrefix")(o):s(o)}function s(o){return o===null||Be(o)?t(o):i(o)}}const mw={continuation:{tokenize:RM},exit:DM,name:"blockQuote",tokenize:OM};function OM(e,t,i){const a=this;return s;function s(c){if(c===62){const d=a.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),o}return i(c)}function o(c){return tt(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(c))}}function RM(e,t,i){const a=this;return s;function s(c){return tt(c)?ot(e,o,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):o(c)}function o(c){return e.attempt(mw,t,i)(c)}}function DM(e){e.exit("blockQuote")}const pw={name:"characterEscape",tokenize:jM};function jM(e,t,i){return a;function a(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),s}function s(o){return vM(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):i(o)}}const gw={name:"characterReference",tokenize:LM};function LM(e,t,i){const a=this;let s=0,o,c;return d;function d(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),f}function f(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),o=31,c=Tn,m(p))}function h(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,c=yM,m):(e.enter("characterReferenceValue"),o=7,c=Hm,m(p))}function m(p){if(p===59&&s){const y=e.exit("characterReferenceValue");return c===Tn&&!Ap(a.sliceSerialize(y))?i(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return c(p)&&s++<o?(e.consume(p),m):i(p)}}const wy={partial:!0,tokenize:IM},Ey={concrete:!0,name:"codeFenced",tokenize:zM};function zM(e,t,i){const a=this,s={partial:!0,tokenize:U};let o=0,c=0,d;return f;function f(R){return h(R)}function h(R){const B=a.events[a.events.length-1];return o=B&&B[1].type==="linePrefix"?B[2].sliceSerialize(B[1],!0).length:0,d=R,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(R)}function m(R){return R===d?(c++,e.consume(R),m):c<3?i(R):(e.exit("codeFencedFenceSequence"),tt(R)?ot(e,p,"whitespace")(R):p(R))}function p(R){return R===null||Be(R)?(e.exit("codeFencedFence"),a.interrupt?t(R):e.check(wy,N,M)(R)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),y(R))}function y(R){return R===null||Be(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(R)):tt(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ot(e,x,"whitespace")(R)):R===96&&R===d?i(R):(e.consume(R),y)}function x(R){return R===null||Be(R)?p(R):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),_(R))}function _(R){return R===null||Be(R)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(R)):R===96&&R===d?i(R):(e.consume(R),_)}function N(R){return e.attempt(s,M,S)(R)}function S(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),w}function w(R){return o>0&&tt(R)?ot(e,k,"linePrefix",o+1)(R):k(R)}function k(R){return R===null||Be(R)?e.check(wy,N,M)(R):(e.enter("codeFlowValue"),E(R))}function E(R){return R===null||Be(R)?(e.exit("codeFlowValue"),k(R)):(e.consume(R),E)}function M(R){return e.exit("codeFenced"),t(R)}function U(R,B,I){let Z=0;return j;function j(q){return R.enter("lineEnding"),R.consume(q),R.exit("lineEnding"),z}function z(q){return R.enter("codeFencedFence"),tt(q)?ot(R,V,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):V(q)}function V(q){return q===d?(R.enter("codeFencedFenceSequence"),G(q)):I(q)}function G(q){return q===d?(Z++,R.consume(q),G):Z>=c?(R.exit("codeFencedFenceSequence"),tt(q)?ot(R,A,"whitespace")(q):A(q)):I(q)}function A(q){return q===null||Be(q)?(R.exit("codeFencedFence"),B(q)):I(q)}}}function IM(e,t,i){const a=this;return s;function s(c){return c===null?i(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o)}function o(c){return a.parser.lazy[a.now().line]?i(c):t(c)}}const bh={name:"codeIndented",tokenize:UM},BM={partial:!0,tokenize:HM};function UM(e,t,i){const a=this;return s;function s(h){return e.enter("codeIndented"),ot(e,o,"linePrefix",5)(h)}function o(h){const m=a.events[a.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?c(h):i(h)}function c(h){return h===null?f(h):Be(h)?e.attempt(BM,c,f)(h):(e.enter("codeFlowValue"),d(h))}function d(h){return h===null||Be(h)?(e.exit("codeFlowValue"),c(h)):(e.consume(h),d)}function f(h){return e.exit("codeIndented"),t(h)}}function HM(e,t,i){const a=this;return s;function s(c){return a.parser.lazy[a.now().line]?i(c):Be(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):ot(e,o,"linePrefix",5)(c)}function o(c){const d=a.events[a.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):Be(c)?s(c):i(c)}}const $M={name:"codeText",previous:PM,resolve:qM,tokenize:FM};function qM(e){let t=e.length-4,i=3,a,s;if((e[i][1].type==="lineEnding"||e[i][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=i;++a<t;)if(e[a][1].type==="codeTextData"){e[i][1].type="codeTextPadding",e[t][1].type="codeTextPadding",i+=2,t-=2;break}}for(a=i-1,t++;++a<=t;)s===void 0?a!==t&&e[a][1].type!=="lineEnding"&&(s=a):(a===t||e[a][1].type==="lineEnding")&&(e[s][1].type="codeTextData",a!==s+2&&(e[s][1].end=e[a-1][1].end,e.splice(s+2,a-s-2),t-=a-s-2,a=s+2),s=void 0);return e}function PM(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function FM(e,t,i){let a=0,s,o;return c;function c(p){return e.enter("codeText"),e.enter("codeTextSequence"),d(p)}function d(p){return p===96?(e.consume(p),a++,d):(e.exit("codeTextSequence"),f(p))}function f(p){return p===null?i(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),f):p===96?(o=e.enter("codeTextSequence"),s=0,m(p)):Be(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("codeTextData"),h(p))}function h(p){return p===null||p===32||p===96||Be(p)?(e.exit("codeTextData"),f(p)):(e.consume(p),h)}function m(p){return p===96?(e.consume(p),s++,m):s===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(o.type="codeTextData",h(p))}}class GM{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,i){const a=i??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(t,a):t>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(t,i,a){const s=i||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return a&&Zl(this.left,a),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Zl(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Zl(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const i=this.left.splice(t,Number.POSITIVE_INFINITY);Zl(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Zl(this.left,i.reverse())}}}function Zl(e,t){let i=0;if(t.length<1e4)e.push(...t);else for(;i<t.length;)e.push(...t.slice(i,i+1e4)),i+=1e4}function bw(e){const t={};let i=-1,a,s,o,c,d,f,h;const m=new GM(e);for(;++i<m.length;){for(;i in t;)i=t[i];if(a=m.get(i),i&&a[1].type==="chunkFlow"&&m.get(i-1)[1].type==="listItemPrefix"&&(f=a[1]._tokenizer.events,o=0,o<f.length&&f[o][1].type==="lineEndingBlank"&&(o+=2),o<f.length&&f[o][1].type==="content"))for(;++o<f.length&&f[o][1].type!=="content";)f[o][1].type==="chunkText"&&(f[o][1]._isInFirstContentOfListItem=!0,o++);if(a[0]==="enter")a[1].contentType&&(Object.assign(t,VM(m,i)),i=t[i],h=!0);else if(a[1]._container){for(o=i,s=void 0;o--;)if(c=m.get(o),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(m.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=o);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(a[1].end={...m.get(s)[1].start},d=m.slice(s,i),d.unshift(a),m.splice(s,i-s+1,d))}}return ri(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!h}function VM(e,t){const i=e.get(t)[1],a=e.get(t)[2];let s=t-1;const o=[];let c=i._tokenizer;c||(c=a.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,f=[],h={};let m,p,y=-1,x=i,_=0,N=0;const S=[N];for(;x;){for(;e.get(++s)[1]!==x;);o.push(s),x._tokenizer||(m=a.sliceStream(x),x.next||m.push(null),p&&c.defineSkip(x.start),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(m),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),p=x,x=x.next}for(x=i;++y<d.length;)d[y][0]==="exit"&&d[y-1][0]==="enter"&&d[y][1].type===d[y-1][1].type&&d[y][1].start.line!==d[y][1].end.line&&(N=y+1,S.push(N),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(c.events=[],x?(x._tokenizer=void 0,x.previous=void 0):S.pop(),y=S.length;y--;){const w=d.slice(S[y],S[y+1]),k=o.pop();f.push([k,k+w.length-1]),e.splice(k,2,w)}for(f.reverse(),y=-1;++y<f.length;)h[_+f[y][0]]=_+f[y][1],_+=f[y][1]-f[y][0]-1;return h}const YM={resolve:KM,tokenize:ZM},XM={partial:!0,tokenize:QM};function KM(e){return bw(e),e}function ZM(e,t){let i;return a;function a(d){return e.enter("content"),i=e.enter("chunkContent",{contentType:"content"}),s(d)}function s(d){return d===null?o(d):Be(d)?e.check(XM,c,o)(d):(e.consume(d),s)}function o(d){return e.exit("chunkContent"),e.exit("content"),t(d)}function c(d){return e.consume(d),e.exit("chunkContent"),i.next=e.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,s}}function QM(e,t,i){const a=this;return s;function s(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),ot(e,o,"linePrefix")}function o(c){if(c===null||Be(c))return i(c);const d=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):e.interrupt(a.parser.constructs.flow,i,t)(c)}}function xw(e,t,i,a,s,o,c,d,f){const h=f||Number.POSITIVE_INFINITY;let m=0;return p;function p(w){return w===60?(e.enter(a),e.enter(s),e.enter(o),e.consume(w),e.exit(o),y):w===null||w===32||w===41||Eu(w)?i(w):(e.enter(a),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),N(w))}function y(w){return w===62?(e.enter(o),e.consume(w),e.exit(o),e.exit(s),e.exit(a),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),x(w))}function x(w){return w===62?(e.exit("chunkString"),e.exit(d),y(w)):w===null||w===60||Be(w)?i(w):(e.consume(w),w===92?_:x)}function _(w){return w===60||w===62||w===92?(e.consume(w),x):x(w)}function N(w){return!m&&(w===null||w===41||At(w))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(a),t(w)):m<h&&w===40?(e.consume(w),m++,N):w===41?(e.consume(w),m--,N):w===null||w===32||w===40||Eu(w)?i(w):(e.consume(w),w===92?S:N)}function S(w){return w===40||w===41||w===92?(e.consume(w),N):N(w)}}function yw(e,t,i,a,s,o){const c=this;let d=0,f;return h;function h(x){return e.enter(a),e.enter(s),e.consume(x),e.exit(s),e.enter(o),m}function m(x){return d>999||x===null||x===91||x===93&&!f||x===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?i(x):x===93?(e.exit(o),e.enter(s),e.consume(x),e.exit(s),e.exit(a),t):Be(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===null||x===91||x===93||Be(x)||d++>999?(e.exit("chunkString"),m(x)):(e.consume(x),f||(f=!tt(x)),x===92?y:p)}function y(x){return x===91||x===92||x===93?(e.consume(x),d++,p):p(x)}}function vw(e,t,i,a,s,o){let c;return d;function d(y){return y===34||y===39||y===40?(e.enter(a),e.enter(s),e.consume(y),e.exit(s),c=y===40?41:y,f):i(y)}function f(y){return y===c?(e.enter(s),e.consume(y),e.exit(s),e.exit(a),t):(e.enter(o),h(y))}function h(y){return y===c?(e.exit(o),f(c)):y===null?i(y):Be(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),ot(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===c||y===null||Be(y)?(e.exit("chunkString"),h(y)):(e.consume(y),y===92?p:m)}function p(y){return y===c||y===92?(e.consume(y),m):m(y)}}function lo(e,t){let i;return a;function a(s){return Be(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i=!0,a):tt(s)?ot(e,a,i?"linePrefix":"lineSuffix")(s):t(s)}}const WM={name:"definition",tokenize:eO},JM={partial:!0,tokenize:tO};function eO(e,t,i){const a=this;let s;return o;function o(x){return e.enter("definition"),c(x)}function c(x){return yw.call(a,e,d,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function d(x){return s=Ri(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),f):i(x)}function f(x){return At(x)?lo(e,h)(x):h(x)}function h(x){return xw(e,m,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function m(x){return e.attempt(JM,p,p)(x)}function p(x){return tt(x)?ot(e,y,"whitespace")(x):y(x)}function y(x){return x===null||Be(x)?(e.exit("definition"),a.parser.defined.push(s),t(x)):i(x)}}function tO(e,t,i){return a;function a(d){return At(d)?lo(e,s)(d):i(d)}function s(d){return vw(e,o,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function o(d){return tt(d)?ot(e,c,"whitespace")(d):c(d)}function c(d){return d===null||Be(d)?t(d):i(d)}}const nO={name:"hardBreakEscape",tokenize:iO};function iO(e,t,i){return a;function a(o){return e.enter("hardBreakEscape"),e.consume(o),s}function s(o){return Be(o)?(e.exit("hardBreakEscape"),t(o)):i(o)}}const rO={name:"headingAtx",resolve:aO,tokenize:sO};function aO(e,t){let i=e.length-2,a=3,s,o;return e[a][1].type==="whitespace"&&(a+=2),i-2>a&&e[i][1].type==="whitespace"&&(i-=2),e[i][1].type==="atxHeadingSequence"&&(a===i-1||i-4>a&&e[i-2][1].type==="whitespace")&&(i-=a+1===i?2:4),i>a&&(s={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},o={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},ri(e,a,i-a+1,[["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t]])),e}function sO(e,t,i){let a=0;return s;function s(m){return e.enter("atxHeading"),o(m)}function o(m){return e.enter("atxHeadingSequence"),c(m)}function c(m){return m===35&&a++<6?(e.consume(m),c):m===null||At(m)?(e.exit("atxHeadingSequence"),d(m)):i(m)}function d(m){return m===35?(e.enter("atxHeadingSequence"),f(m)):m===null||Be(m)?(e.exit("atxHeading"),t(m)):tt(m)?ot(e,d,"whitespace")(m):(e.enter("atxHeadingText"),h(m))}function f(m){return m===35?(e.consume(m),f):(e.exit("atxHeadingSequence"),d(m))}function h(m){return m===null||m===35||At(m)?(e.exit("atxHeadingText"),d(m)):(e.consume(m),h)}}const lO=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ny=["pre","script","style","textarea"],oO={concrete:!0,name:"htmlFlow",resolveTo:dO,tokenize:fO},cO={partial:!0,tokenize:mO},uO={partial:!0,tokenize:hO};function dO(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function fO(e,t,i){const a=this;let s,o,c,d,f;return h;function h(D){return m(D)}function m(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),p}function p(D){return D===33?(e.consume(D),y):D===47?(e.consume(D),o=!0,N):D===63?(e.consume(D),s=3,a.interrupt?t:C):jn(D)?(e.consume(D),c=String.fromCharCode(D),S):i(D)}function y(D){return D===45?(e.consume(D),s=2,x):D===91?(e.consume(D),s=5,d=0,_):jn(D)?(e.consume(D),s=4,a.interrupt?t:C):i(D)}function x(D){return D===45?(e.consume(D),a.interrupt?t:C):i(D)}function _(D){const F="CDATA[";return D===F.charCodeAt(d++)?(e.consume(D),d===F.length?a.interrupt?t:V:_):i(D)}function N(D){return jn(D)?(e.consume(D),c=String.fromCharCode(D),S):i(D)}function S(D){if(D===null||D===47||D===62||At(D)){const F=D===47,$=c.toLowerCase();return!F&&!o&&Ny.includes($)?(s=1,a.interrupt?t(D):V(D)):lO.includes(c.toLowerCase())?(s=6,F?(e.consume(D),w):a.interrupt?t(D):V(D)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?i(D):o?k(D):E(D))}return D===45||Tn(D)?(e.consume(D),c+=String.fromCharCode(D),S):i(D)}function w(D){return D===62?(e.consume(D),a.interrupt?t:V):i(D)}function k(D){return tt(D)?(e.consume(D),k):j(D)}function E(D){return D===47?(e.consume(D),j):D===58||D===95||jn(D)?(e.consume(D),M):tt(D)?(e.consume(D),E):j(D)}function M(D){return D===45||D===46||D===58||D===95||Tn(D)?(e.consume(D),M):U(D)}function U(D){return D===61?(e.consume(D),R):tt(D)?(e.consume(D),U):E(D)}function R(D){return D===null||D===60||D===61||D===62||D===96?i(D):D===34||D===39?(e.consume(D),f=D,B):tt(D)?(e.consume(D),R):I(D)}function B(D){return D===f?(e.consume(D),f=null,Z):D===null||Be(D)?i(D):(e.consume(D),B)}function I(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||At(D)?U(D):(e.consume(D),I)}function Z(D){return D===47||D===62||tt(D)?E(D):i(D)}function j(D){return D===62?(e.consume(D),z):i(D)}function z(D){return D===null||Be(D)?V(D):tt(D)?(e.consume(D),z):i(D)}function V(D){return D===45&&s===2?(e.consume(D),O):D===60&&s===1?(e.consume(D),H):D===62&&s===4?(e.consume(D),L):D===63&&s===3?(e.consume(D),C):D===93&&s===5?(e.consume(D),X):Be(D)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(cO,Y,G)(D)):D===null||Be(D)?(e.exit("htmlFlowData"),G(D)):(e.consume(D),V)}function G(D){return e.check(uO,A,Y)(D)}function A(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),q}function q(D){return D===null||Be(D)?G(D):(e.enter("htmlFlowData"),V(D))}function O(D){return D===45?(e.consume(D),C):V(D)}function H(D){return D===47?(e.consume(D),c="",K):V(D)}function K(D){if(D===62){const F=c.toLowerCase();return Ny.includes(F)?(e.consume(D),L):V(D)}return jn(D)&&c.length<8?(e.consume(D),c+=String.fromCharCode(D),K):V(D)}function X(D){return D===93?(e.consume(D),C):V(D)}function C(D){return D===62?(e.consume(D),L):D===45&&s===2?(e.consume(D),C):V(D)}function L(D){return D===null||Be(D)?(e.exit("htmlFlowData"),Y(D)):(e.consume(D),L)}function Y(D){return e.exit("htmlFlow"),t(D)}}function hO(e,t,i){const a=this;return s;function s(c){return Be(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):i(c)}function o(c){return a.parser.lazy[a.now().line]?i(c):t(c)}}function mO(e,t,i){return a;function a(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(Mo,t,i)}}const pO={name:"htmlText",tokenize:gO};function gO(e,t,i){const a=this;let s,o,c;return d;function d(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),f}function f(C){return C===33?(e.consume(C),h):C===47?(e.consume(C),U):C===63?(e.consume(C),E):jn(C)?(e.consume(C),I):i(C)}function h(C){return C===45?(e.consume(C),m):C===91?(e.consume(C),o=0,_):jn(C)?(e.consume(C),k):i(C)}function m(C){return C===45?(e.consume(C),x):i(C)}function p(C){return C===null?i(C):C===45?(e.consume(C),y):Be(C)?(c=p,H(C)):(e.consume(C),p)}function y(C){return C===45?(e.consume(C),x):p(C)}function x(C){return C===62?O(C):C===45?y(C):p(C)}function _(C){const L="CDATA[";return C===L.charCodeAt(o++)?(e.consume(C),o===L.length?N:_):i(C)}function N(C){return C===null?i(C):C===93?(e.consume(C),S):Be(C)?(c=N,H(C)):(e.consume(C),N)}function S(C){return C===93?(e.consume(C),w):N(C)}function w(C){return C===62?O(C):C===93?(e.consume(C),w):N(C)}function k(C){return C===null||C===62?O(C):Be(C)?(c=k,H(C)):(e.consume(C),k)}function E(C){return C===null?i(C):C===63?(e.consume(C),M):Be(C)?(c=E,H(C)):(e.consume(C),E)}function M(C){return C===62?O(C):E(C)}function U(C){return jn(C)?(e.consume(C),R):i(C)}function R(C){return C===45||Tn(C)?(e.consume(C),R):B(C)}function B(C){return Be(C)?(c=B,H(C)):tt(C)?(e.consume(C),B):O(C)}function I(C){return C===45||Tn(C)?(e.consume(C),I):C===47||C===62||At(C)?Z(C):i(C)}function Z(C){return C===47?(e.consume(C),O):C===58||C===95||jn(C)?(e.consume(C),j):Be(C)?(c=Z,H(C)):tt(C)?(e.consume(C),Z):O(C)}function j(C){return C===45||C===46||C===58||C===95||Tn(C)?(e.consume(C),j):z(C)}function z(C){return C===61?(e.consume(C),V):Be(C)?(c=z,H(C)):tt(C)?(e.consume(C),z):Z(C)}function V(C){return C===null||C===60||C===61||C===62||C===96?i(C):C===34||C===39?(e.consume(C),s=C,G):Be(C)?(c=V,H(C)):tt(C)?(e.consume(C),V):(e.consume(C),A)}function G(C){return C===s?(e.consume(C),s=void 0,q):C===null?i(C):Be(C)?(c=G,H(C)):(e.consume(C),G)}function A(C){return C===null||C===34||C===39||C===60||C===61||C===96?i(C):C===47||C===62||At(C)?Z(C):(e.consume(C),A)}function q(C){return C===47||C===62||At(C)?Z(C):i(C)}function O(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),t):i(C)}function H(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),K}function K(C){return tt(C)?ot(e,X,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):X(C)}function X(C){return e.enter("htmlTextData"),c(C)}}const Cp={name:"labelEnd",resolveAll:vO,resolveTo:_O,tokenize:wO},bO={tokenize:EO},xO={tokenize:NO},yO={tokenize:SO};function vO(e){let t=-1;const i=[];for(;++t<e.length;){const a=e[t][1];if(i.push(e[t]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const s=a.type==="labelImage"?4:2;a.type="data",t+=s}}return e.length!==i.length&&ri(e,0,e.length,i),e}function _O(e,t){let i=e.length,a=0,s,o,c,d;for(;i--;)if(s=e[i][1],o){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[i][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(e[i][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(o=i,s.type!=="labelLink")){a=2;break}}else s.type==="labelEnd"&&(c=i);const f={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[o][1].start},end:{...e[c][1].end}},m={type:"labelText",start:{...e[o+a+2][1].end},end:{...e[c-2][1].start}};return d=[["enter",f,t],["enter",h,t]],d=gi(d,e.slice(o+1,o+a+3)),d=gi(d,[["enter",m,t]]),d=gi(d,qu(t.parser.constructs.insideSpan.null,e.slice(o+a+4,c-3),t)),d=gi(d,[["exit",m,t],e[c-2],e[c-1],["exit",h,t]]),d=gi(d,e.slice(c+1)),d=gi(d,[["exit",f,t]]),ri(e,o,e.length,d),e}function wO(e,t,i){const a=this;let s=a.events.length,o,c;for(;s--;)if((a.events[s][1].type==="labelImage"||a.events[s][1].type==="labelLink")&&!a.events[s][1]._balanced){o=a.events[s][1];break}return d;function d(y){return o?o._inactive?p(y):(c=a.parser.defined.includes(Ri(a.sliceSerialize({start:o.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(y),e.exit("labelMarker"),e.exit("labelEnd"),f):i(y)}function f(y){return y===40?e.attempt(bO,m,c?m:p)(y):y===91?e.attempt(xO,m,c?h:p)(y):c?m(y):p(y)}function h(y){return e.attempt(yO,m,p)(y)}function m(y){return t(y)}function p(y){return o._balanced=!0,i(y)}}function EO(e,t,i){return a;function a(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),s}function s(p){return At(p)?lo(e,o)(p):o(p)}function o(p){return p===41?m(p):xw(e,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function c(p){return At(p)?lo(e,f)(p):m(p)}function d(p){return i(p)}function f(p){return p===34||p===39||p===40?vw(e,h,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):m(p)}function h(p){return At(p)?lo(e,m)(p):m(p)}function m(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):i(p)}}function NO(e,t,i){const a=this;return s;function s(d){return yw.call(a,e,o,c,"reference","referenceMarker","referenceString")(d)}function o(d){return a.parser.defined.includes(Ri(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(d):i(d)}function c(d){return i(d)}}function SO(e,t,i){return a;function a(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),s}function s(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):i(o)}}const kO={name:"labelStartImage",resolveAll:Cp.resolveAll,tokenize:TO};function TO(e,t,i){const a=this;return s;function s(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),o}function o(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),c):i(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in a.parser.constructs?i(d):t(d)}}const AO={name:"labelStartLink",resolveAll:Cp.resolveAll,tokenize:CO};function CO(e,t,i){const a=this;return s;function s(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),o}function o(c){return c===94&&"_hiddenFootnoteSupport"in a.parser.constructs?i(c):t(c)}}const xh={name:"lineEnding",tokenize:MO};function MO(e,t){return i;function i(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ot(e,t,"linePrefix")}}const mu={name:"thematicBreak",tokenize:OO};function OO(e,t,i){let a=0,s;return o;function o(h){return e.enter("thematicBreak"),c(h)}function c(h){return s=h,d(h)}function d(h){return h===s?(e.enter("thematicBreakSequence"),f(h)):a>=3&&(h===null||Be(h))?(e.exit("thematicBreak"),t(h)):i(h)}function f(h){return h===s?(e.consume(h),a++,f):(e.exit("thematicBreakSequence"),tt(h)?ot(e,d,"whitespace")(h):d(h))}}const Pn={continuation:{tokenize:LO},exit:IO,name:"list",tokenize:jO},RO={partial:!0,tokenize:BO},DO={partial:!0,tokenize:zO};function jO(e,t,i){const a=this,s=a.events[a.events.length-1];let o=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return d;function d(x){const _=a.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!a.containerState.marker||x===a.containerState.marker:Hm(x)){if(a.containerState.type||(a.containerState.type=_,e.enter(_,{_container:!0})),_==="listUnordered")return e.enter("listItemPrefix"),x===42||x===45?e.check(mu,i,h)(x):h(x);if(!a.interrupt||x===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(x)}return i(x)}function f(x){return Hm(x)&&++c<10?(e.consume(x),f):(!a.interrupt||c<2)&&(a.containerState.marker?x===a.containerState.marker:x===41||x===46)?(e.exit("listItemValue"),h(x)):i(x)}function h(x){return e.enter("listItemMarker"),e.consume(x),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||x,e.check(Mo,a.interrupt?i:m,e.attempt(RO,y,p))}function m(x){return a.containerState.initialBlankLine=!0,o++,y(x)}function p(x){return tt(x)?(e.enter("listItemPrefixWhitespace"),e.consume(x),e.exit("listItemPrefixWhitespace"),y):i(x)}function y(x){return a.containerState.size=o+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(x)}}function LO(e,t,i){const a=this;return a.containerState._closeFlow=void 0,e.check(Mo,s,o);function s(d){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,ot(e,t,"listItemIndent",a.containerState.size+1)(d)}function o(d){return a.containerState.furtherBlankLines||!tt(d)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(d)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(DO,t,c)(d))}function c(d){return a.containerState._closeFlow=!0,a.interrupt=void 0,ot(e,e.attempt(Pn,t,i),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function zO(e,t,i){const a=this;return ot(e,s,"listItemIndent",a.containerState.size+1);function s(o){const c=a.events[a.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===a.containerState.size?t(o):i(o)}}function IO(e){e.exit(this.containerState.type)}function BO(e,t,i){const a=this;return ot(e,s,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(o){const c=a.events[a.events.length-1];return!tt(o)&&c&&c[1].type==="listItemPrefixWhitespace"?t(o):i(o)}}const Sy={name:"setextUnderline",resolveTo:UO,tokenize:HO};function UO(e,t){let i=e.length,a,s,o;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){a=i;break}e[i][1].type==="paragraph"&&(s=i)}else e[i][1].type==="content"&&e.splice(i,1),!o&&e[i][1].type==="definition"&&(o=i);const c={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",o?(e.splice(s,0,["enter",c,t]),e.splice(o+1,0,["exit",e[a][1],t]),e[a][1].end={...e[o][1].end}):e[a][1]=c,e.push(["exit",c,t]),e}function HO(e,t,i){const a=this;let s;return o;function o(h){let m=a.events.length,p;for(;m--;)if(a.events[m][1].type!=="lineEnding"&&a.events[m][1].type!=="linePrefix"&&a.events[m][1].type!=="content"){p=a.events[m][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||p)?(e.enter("setextHeadingLine"),s=h,c(h)):i(h)}function c(h){return e.enter("setextHeadingLineSequence"),d(h)}function d(h){return h===s?(e.consume(h),d):(e.exit("setextHeadingLineSequence"),tt(h)?ot(e,f,"lineSuffix")(h):f(h))}function f(h){return h===null||Be(h)?(e.exit("setextHeadingLine"),t(h)):i(h)}}const $O={tokenize:qO};function qO(e){const t=this,i=e.attempt(Mo,a,e.attempt(this.parser.constructs.flowInitial,s,ot(e,e.attempt(this.parser.constructs.flow,s,e.attempt(YM,s)),"linePrefix")));return i;function a(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,i}function s(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,i}}const PO={resolveAll:ww()},FO=_w("string"),GO=_w("text");function _w(e){return{resolveAll:ww(e==="text"?VO:void 0),tokenize:t};function t(i){const a=this,s=this.parser.constructs[e],o=i.attempt(s,c,d);return c;function c(m){return h(m)?o(m):d(m)}function d(m){if(m===null){i.consume(m);return}return i.enter("data"),i.consume(m),f}function f(m){return h(m)?(i.exit("data"),o(m)):(i.consume(m),f)}function h(m){if(m===null)return!0;const p=s[m];let y=-1;if(p)for(;++y<p.length;){const x=p[y];if(!x.previous||x.previous.call(a,a.previous))return!0}return!1}}}function ww(e){return t;function t(i,a){let s=-1,o;for(;++s<=i.length;)o===void 0?i[s]&&i[s][1].type==="data"&&(o=s,s++):(!i[s]||i[s][1].type!=="data")&&(s!==o+2&&(i[o][1].end=i[s-1][1].end,i.splice(o+2,s-o-2),s=o+2),o=void 0);return e?e(i,a):i}}function VO(e,t){let i=0;for(;++i<=e.length;)if((i===e.length||e[i][1].type==="lineEnding")&&e[i-1][1].type==="data"){const a=e[i-1][1],s=t.sliceStream(a);let o=s.length,c=-1,d=0,f;for(;o--;){const h=s[o];if(typeof h=="string"){for(c=h.length;h.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(h===-2)f=!0,d++;else if(h!==-1){o++;break}}if(t._contentTypeTextTrailing&&i===e.length&&(d=0),d){const h={type:i===e.length||f||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?c:a.start._bufferIndex+c,_index:a.start._index+o,line:a.end.line,column:a.end.column-d,offset:a.end.offset-d},end:{...a.end}};a.end={...h.start},a.start.offset===a.end.offset?Object.assign(a,h):(e.splice(i,0,["enter",h,t],["exit",h,t]),i+=2)}i++}return e}const YO={42:Pn,43:Pn,45:Pn,48:Pn,49:Pn,50:Pn,51:Pn,52:Pn,53:Pn,54:Pn,55:Pn,56:Pn,57:Pn,62:mw},XO={91:WM},KO={[-2]:bh,[-1]:bh,32:bh},ZO={35:rO,42:mu,45:[Sy,mu],60:oO,61:Sy,95:mu,96:Ey,126:Ey},QO={38:gw,92:pw},WO={[-5]:xh,[-4]:xh,[-3]:xh,33:kO,38:gw,42:$m,60:[AM,pO],91:AO,92:[nO,pw],93:Cp,95:$m,96:$M},JO={null:[$m,PO]},e5={null:[42,95]},t5={null:[]},n5=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:e5,contentInitial:XO,disable:t5,document:YO,flow:ZO,flowInitial:KO,insideSpan:JO,string:QO,text:WO},Symbol.toStringTag,{value:"Module"}));function i5(e,t,i){let a={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const s={},o=[];let c=[],d=[];const f={attempt:B(U),check:B(R),consume:k,enter:E,exit:M,interrupt:B(R,{interrupt:!0})},h={code:null,containerState:{},defineSkip:N,events:[],now:_,parser:e,previous:null,sliceSerialize:y,sliceStream:x,write:p};let m=t.tokenize.call(h,f);return t.resolveAll&&o.push(t),h;function p(z){return c=gi(c,z),S(),c[c.length-1]!==null?[]:(I(t,0),h.events=qu(o,h.events,h),h.events)}function y(z,V){return a5(x(z),V)}function x(z){return r5(c,z)}function _(){const{_bufferIndex:z,_index:V,line:G,column:A,offset:q}=a;return{_bufferIndex:z,_index:V,line:G,column:A,offset:q}}function N(z){s[z.line]=z.column,j()}function S(){let z;for(;a._index<c.length;){const V=c[a._index];if(typeof V=="string")for(z=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===z&&a._bufferIndex<V.length;)w(V.charCodeAt(a._bufferIndex));else w(V)}}function w(z){m=m(z)}function k(z){Be(z)?(a.line++,a.column=1,a.offset+=z===-3?2:1,j()):z!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===c[a._index].length&&(a._bufferIndex=-1,a._index++)),h.previous=z}function E(z,V){const G=V||{};return G.type=z,G.start=_(),h.events.push(["enter",G,h]),d.push(G),G}function M(z){const V=d.pop();return V.end=_(),h.events.push(["exit",V,h]),V}function U(z,V){I(z,V.from)}function R(z,V){V.restore()}function B(z,V){return G;function G(A,q,O){let H,K,X,C;return Array.isArray(A)?Y(A):"tokenize"in A?Y([A]):L(A);function L(Q){return J;function J(W){const te=W!==null&&Q[W],oe=W!==null&&Q.null,fe=[...Array.isArray(te)?te:te?[te]:[],...Array.isArray(oe)?oe:oe?[oe]:[]];return Y(fe)(W)}}function Y(Q){return H=Q,K=0,Q.length===0?O:D(Q[K])}function D(Q){return J;function J(W){return C=Z(),X=Q,Q.partial||(h.currentConstruct=Q),Q.name&&h.parser.constructs.disable.null.includes(Q.name)?$():Q.tokenize.call(V?Object.assign(Object.create(h),V):h,f,F,$)(W)}}function F(Q){return z(X,C),q}function $(Q){return C.restore(),++K<H.length?D(H[K]):O}}}function I(z,V){z.resolveAll&&!o.includes(z)&&o.push(z),z.resolve&&ri(h.events,V,h.events.length-V,z.resolve(h.events.slice(V),h)),z.resolveTo&&(h.events=z.resolveTo(h.events,h))}function Z(){const z=_(),V=h.previous,G=h.currentConstruct,A=h.events.length,q=Array.from(d);return{from:A,restore:O};function O(){a=z,h.previous=V,h.currentConstruct=G,h.events.length=A,d=q,j()}}function j(){a.line in s&&a.column<2&&(a.column=s[a.line],a.offset+=s[a.line]-1)}}function r5(e,t){const i=t.start._index,a=t.start._bufferIndex,s=t.end._index,o=t.end._bufferIndex;let c;if(i===s)c=[e[i].slice(a,o)];else{if(c=e.slice(i,s),a>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(a):c.shift()}o>0&&c.push(e[s].slice(0,o))}return c}function a5(e,t){let i=-1;const a=[];let s;for(;++i<e.length;){const o=e[i];let c;if(typeof o=="string")c=o;else switch(o){case-5:{c="\r";break}case-4:{c=`
-`;break}case-3:{c=`\r
-`;break}case-2:{c=t?" ":" ";break}case-1:{if(!t&&s)continue;c=" ";break}default:c=String.fromCharCode(o)}s=o===-2,a.push(c)}return a.join("")}function s5(e){const a={constructs:fw([n5,...(e||{}).extensions||[]]),content:s(_M),defined:[],document:s(EM),flow:s($O),lazy:{},string:s(FO),text:s(GO)};return a;function s(o){return c;function c(d){return i5(a,o,d)}}}function l5(e){for(;!bw(e););return e}const ky=/[\0\t\n\r]/g;function o5(){let e=1,t="",i=!0,a;return s;function s(o,c,d){const f=[];let h,m,p,y,x;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(c||void 0).decode(o)),p=0,t="",i&&(o.charCodeAt(0)===65279&&p++,i=void 0);p<o.length;){if(ky.lastIndex=p,h=ky.exec(o),y=h&&h.index!==void 0?h.index:o.length,x=o.charCodeAt(y),!h){t=o.slice(p);break}if(x===10&&p===y&&a)f.push(-3),a=void 0;else switch(a&&(f.push(-5),a=void 0),p<y&&(f.push(o.slice(p,y)),e+=y-p),x){case 0:{f.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,f.push(-2);e++<m;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:a=!0,e=1}p=y+1}return d&&(a&&f.push(-5),t&&f.push(t),f.push(null)),f}}const c5=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function u5(e){return e.replace(c5,d5)}function d5(e,t,i){if(t)return t;if(i.charCodeAt(0)===35){const s=i.charCodeAt(1),o=s===120||s===88;return hw(i.slice(o?2:1),o?16:10)}return Ap(i)||e}const Ew={}.hasOwnProperty;function f5(e,t,i){return t&&typeof t=="object"&&(i=t,t=void 0),h5(i)(l5(s5(i).document().write(o5()(e,t,!0))))}function h5(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Yt),autolinkProtocol:Z,autolinkEmail:Z,atxHeading:o(je),blockQuote:o(oe),characterEscape:Z,characterReference:Z,codeFenced:o(fe),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:o(fe,c),codeText:o(be,c),codeTextData:Z,data:Z,codeFlowValue:Z,definition:o(we),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:o(Ne),hardBreakEscape:o($e),hardBreakTrailing:o($e),htmlFlow:o(st,c),htmlFlowData:Z,htmlText:o(st,c),htmlTextData:Z,image:o(Rt),label:c,link:o(Yt),listItem:o(Xt),listItemValue:y,listOrdered:o(Pt,p),listUnordered:o(Pt),paragraph:o(Yn),reference:D,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:o(je),strong:o(wn),thematicBreak:o(It)},exit:{atxHeading:f(),atxHeadingSequence:U,autolink:f(),autolinkEmail:te,autolinkProtocol:W,blockQuote:f(),characterEscapeValue:j,characterReferenceMarkerHexadecimal:$,characterReferenceMarkerNumeric:$,characterReferenceValue:Q,characterReference:J,codeFenced:f(S),codeFencedFence:N,codeFencedFenceInfo:x,codeFencedFenceMeta:_,codeFlowValue:j,codeIndented:f(w),codeText:f(q),codeTextData:j,data:j,definition:f(),definitionDestinationString:M,definitionLabelString:k,definitionTitleString:E,emphasis:f(),hardBreakEscape:f(V),hardBreakTrailing:f(V),htmlFlow:f(G),htmlFlowData:j,htmlText:f(A),htmlTextData:j,image:f(H),label:X,labelText:K,lineEnding:z,link:f(O),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:F,resourceDestinationString:C,resourceTitleString:L,resource:Y,setextHeading:f(I),setextHeadingLineSequence:B,setextHeadingText:R,strong:f(),thematicBreak:f()}};Nw(t,(e||{}).mdastExtensions||[]);const i={};return a;function a(ue){let xe={type:"root",children:[]};const Oe={stack:[xe],tokenStack:[],config:t,enter:d,exit:h,buffer:c,resume:m,data:i},Fe=[];let Ze=-1;for(;++Ze<ue.length;)if(ue[Ze][1].type==="listOrdered"||ue[Ze][1].type==="listUnordered")if(ue[Ze][0]==="enter")Fe.push(Ze);else{const on=Fe.pop();Ze=s(ue,on,Ze)}for(Ze=-1;++Ze<ue.length;){const on=t[ue[Ze][0]];Ew.call(on,ue[Ze][1].type)&&on[ue[Ze][1].type].call(Object.assign({sliceSerialize:ue[Ze][2].sliceSerialize},Oe),ue[Ze][1])}if(Oe.tokenStack.length>0){const on=Oe.tokenStack[Oe.tokenStack.length-1];(on[1]||Ty).call(Oe,void 0,on[0])}for(xe.position={start:na(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:na(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},Ze=-1;++Ze<t.transforms.length;)xe=t.transforms[Ze](xe)||xe;return xe}function s(ue,xe,Oe){let Fe=xe-1,Ze=-1,on=!1,En,Kt,Ct,Wt;for(;++Fe<=Oe;){const ut=ue[Fe];switch(ut[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ut[0]==="enter"?Ze++:Ze--,Wt=void 0;break}case"lineEndingBlank":{ut[0]==="enter"&&(En&&!Wt&&!Ze&&!Ct&&(Ct=Fe),Wt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Wt=void 0}if(!Ze&&ut[0]==="enter"&&ut[1].type==="listItemPrefix"||Ze===-1&&ut[0]==="exit"&&(ut[1].type==="listUnordered"||ut[1].type==="listOrdered")){if(En){let zn=Fe;for(Kt=void 0;zn--;){const cn=ue[zn];if(cn[1].type==="lineEnding"||cn[1].type==="lineEndingBlank"){if(cn[0]==="exit")continue;Kt&&(ue[Kt][1].type="lineEndingBlank",on=!0),cn[1].type="lineEnding",Kt=zn}else if(!(cn[1].type==="linePrefix"||cn[1].type==="blockQuotePrefix"||cn[1].type==="blockQuotePrefixWhitespace"||cn[1].type==="blockQuoteMarker"||cn[1].type==="listItemIndent"))break}Ct&&(!Kt||Ct<Kt)&&(En._spread=!0),En.end=Object.assign({},Kt?ue[Kt][1].start:ut[1].end),ue.splice(Kt||Fe,0,["exit",En,ut[2]]),Fe++,Oe++}if(ut[1].type==="listItemPrefix"){const zn={type:"listItem",_spread:!1,start:Object.assign({},ut[1].start),end:void 0};En=zn,ue.splice(Fe,0,["enter",zn,ut[2]]),Fe++,Oe++,Ct=void 0,Wt=!0}}}return ue[xe][1]._spread=on,Oe}function o(ue,xe){return Oe;function Oe(Fe){d.call(this,ue(Fe),Fe),xe&&xe.call(this,Fe)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(ue,xe,Oe){this.stack[this.stack.length-1].children.push(ue),this.stack.push(ue),this.tokenStack.push([xe,Oe||void 0]),ue.position={start:na(xe.start),end:void 0}}function f(ue){return xe;function xe(Oe){ue&&ue.call(this,Oe),h.call(this,Oe)}}function h(ue,xe){const Oe=this.stack.pop(),Fe=this.tokenStack.pop();if(Fe)Fe[0].type!==ue.type&&(xe?xe.call(this,ue,Fe[0]):(Fe[1]||Ty).call(this,ue,Fe[0]));else throw new Error("Cannot close `"+ue.type+"` ("+so({start:ue.start,end:ue.end})+"): it’s not open");Oe.position.end=na(ue.end)}function m(){return Tp(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function y(ue){if(this.data.expectingFirstListItemValue){const xe=this.stack[this.stack.length-2];xe.start=Number.parseInt(this.sliceSerialize(ue),10),this.data.expectingFirstListItemValue=void 0}}function x(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.lang=ue}function _(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.meta=ue}function N(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.value=ue.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.value=ue.replace(/(\r?\n|\r)$/g,"")}function k(ue){const xe=this.resume(),Oe=this.stack[this.stack.length-1];Oe.label=xe,Oe.identifier=Ri(this.sliceSerialize(ue)).toLowerCase()}function E(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.title=ue}function M(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.url=ue}function U(ue){const xe=this.stack[this.stack.length-1];if(!xe.depth){const Oe=this.sliceSerialize(ue).length;xe.depth=Oe}}function R(){this.data.setextHeadingSlurpLineEnding=!0}function B(ue){const xe=this.stack[this.stack.length-1];xe.depth=this.sliceSerialize(ue).codePointAt(0)===61?1:2}function I(){this.data.setextHeadingSlurpLineEnding=void 0}function Z(ue){const Oe=this.stack[this.stack.length-1].children;let Fe=Oe[Oe.length-1];(!Fe||Fe.type!=="text")&&(Fe=ct(),Fe.position={start:na(ue.start),end:void 0},Oe.push(Fe)),this.stack.push(Fe)}function j(ue){const xe=this.stack.pop();xe.value+=this.sliceSerialize(ue),xe.position.end=na(ue.end)}function z(ue){const xe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Oe=xe.children[xe.children.length-1];Oe.position.end=na(ue.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(xe.type)&&(Z.call(this,ue),j.call(this,ue))}function V(){this.data.atHardBreak=!0}function G(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.value=ue}function A(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.value=ue}function q(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.value=ue}function O(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const xe=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=xe,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function H(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const xe=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=xe,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function K(ue){const xe=this.sliceSerialize(ue),Oe=this.stack[this.stack.length-2];Oe.label=u5(xe),Oe.identifier=Ri(xe).toLowerCase()}function X(){const ue=this.stack[this.stack.length-1],xe=this.resume(),Oe=this.stack[this.stack.length-1];if(this.data.inReference=!0,Oe.type==="link"){const Fe=ue.children;Oe.children=Fe}else Oe.alt=xe}function C(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.url=ue}function L(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.title=ue}function Y(){this.data.inReference=void 0}function D(){this.data.referenceType="collapsed"}function F(ue){const xe=this.resume(),Oe=this.stack[this.stack.length-1];Oe.label=xe,Oe.identifier=Ri(this.sliceSerialize(ue)).toLowerCase(),this.data.referenceType="full"}function $(ue){this.data.characterReferenceType=ue.type}function Q(ue){const xe=this.sliceSerialize(ue),Oe=this.data.characterReferenceType;let Fe;Oe?(Fe=hw(xe,Oe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Fe=Ap(xe);const Ze=this.stack[this.stack.length-1];Ze.value+=Fe}function J(ue){const xe=this.stack.pop();xe.position.end=na(ue.end)}function W(ue){j.call(this,ue);const xe=this.stack[this.stack.length-1];xe.url=this.sliceSerialize(ue)}function te(ue){j.call(this,ue);const xe=this.stack[this.stack.length-1];xe.url="mailto:"+this.sliceSerialize(ue)}function oe(){return{type:"blockquote",children:[]}}function fe(){return{type:"code",lang:null,meta:null,value:""}}function be(){return{type:"inlineCode",value:""}}function we(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ne(){return{type:"emphasis",children:[]}}function je(){return{type:"heading",depth:0,children:[]}}function $e(){return{type:"break"}}function st(){return{type:"html",value:""}}function Rt(){return{type:"image",title:null,url:"",alt:null}}function Yt(){return{type:"link",title:null,url:"",children:[]}}function Pt(ue){return{type:"list",ordered:ue.type==="listOrdered",start:null,spread:ue._spread,children:[]}}function Xt(ue){return{type:"listItem",spread:ue._spread,checked:null,children:[]}}function Yn(){return{type:"paragraph",children:[]}}function wn(){return{type:"strong",children:[]}}function ct(){return{type:"text",value:""}}function It(){return{type:"thematicBreak"}}}function na(e){return{line:e.line,column:e.column,offset:e.offset}}function Nw(e,t){let i=-1;for(;++i<t.length;){const a=t[i];Array.isArray(a)?Nw(e,a):m5(e,a)}}function m5(e,t){let i;for(i in t)if(Ew.call(t,i))switch(i){case"canContainEols":{const a=t[i];a&&e[i].push(...a);break}case"transforms":{const a=t[i];a&&e[i].push(...a);break}case"enter":case"exit":{const a=t[i];a&&Object.assign(e[i],a);break}}}function Ty(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+so({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+so({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+so({start:t.start,end:t.end})+") is still open")}function p5(e){const t=this;t.parser=i;function i(a){return f5(a,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function g5(e,t){const i={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,i),e.applyData(t,i)}function b5(e,t){const i={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,i),[e.applyData(t,i),{type:"text",value:`
-`}]}function x5(e,t){const i=t.value?t.value+`
-`:"",a={},s=t.lang?t.lang.split(/\s+/):[];s.length>0&&(a.className=["language-"+s[0]]);let o={type:"element",tagName:"code",properties:a,children:[{type:"text",value:i}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function y5(e,t){const i={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function v5(e,t){const i={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function _5(e,t){const i=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),s=tl(a.toLowerCase()),o=e.footnoteOrder.indexOf(a);let c,d=e.footnoteCounts.get(a);d===void 0?(d=0,e.footnoteOrder.push(a),c=e.footnoteOrder.length):c=o+1,d+=1,e.footnoteCounts.set(a,d);const f={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+s,id:i+"fnref-"+s+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(t,f);const h={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(t,h),e.applyData(t,h)}function w5(e,t){const i={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function E5(e,t){if(e.options.allowDangerousHtml){const i={type:"raw",value:t.value};return e.patch(t,i),e.applyData(t,i)}}function Sw(e,t){const i=t.referenceType;let a="]";if(i==="collapsed"?a+="[]":i==="full"&&(a+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+a}];const s=e.all(t),o=s[0];o&&o.type==="text"?o.value="["+o.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=a:s.push({type:"text",value:a}),s}function N5(e,t){const i=String(t.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return Sw(e,t);const s={src:tl(a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(s.title=a.title);const o={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,o),e.applyData(t,o)}function S5(e,t){const i={src:tl(t.url)};t.alt!==null&&t.alt!==void 0&&(i.alt=t.alt),t.title!==null&&t.title!==void 0&&(i.title=t.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function k5(e,t){const i={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,i);const a={type:"element",tagName:"code",properties:{},children:[i]};return e.patch(t,a),e.applyData(t,a)}function T5(e,t){const i=String(t.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return Sw(e,t);const s={href:tl(a.url||"")};a.title!==null&&a.title!==void 0&&(s.title=a.title);const o={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function A5(e,t){const i={href:tl(t.url)};t.title!==null&&t.title!==void 0&&(i.title=t.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function C5(e,t,i){const a=e.all(t),s=i?M5(i):kw(t),o={},c=[];if(typeof t.checked=="boolean"){const m=a[0];let p;m&&m.type==="element"&&m.tagName==="p"?p=m:(p={type:"element",tagName:"p",properties:{},children:[]},a.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let d=-1;for(;++d<a.length;){const m=a[d];(s||d!==0||m.type!=="element"||m.tagName!=="p")&&c.push({type:"text",value:`
-`}),m.type==="element"&&m.tagName==="p"&&!s?c.push(...m.children):c.push(m)}const f=a[a.length-1];f&&(s||f.type!=="element"||f.tagName!=="p")&&c.push({type:"text",value:`
-`});const h={type:"element",tagName:"li",properties:o,children:c};return e.patch(t,h),e.applyData(t,h)}function M5(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const i=e.children;let a=-1;for(;!t&&++a<i.length;)t=kw(i[a])}return t}function kw(e){const t=e.spread;return t??e.children.length>1}function O5(e,t){const i={},a=e.all(t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(i.start=t.start);++s<a.length;){const c=a[s];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:i,children:e.wrap(a,!0)};return e.patch(t,o),e.applyData(t,o)}function R5(e,t){const i={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function D5(e,t){const i={type:"root",children:e.wrap(e.all(t))};return e.patch(t,i),e.applyData(t,i)}function j5(e,t){const i={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function L5(e,t){const i=e.all(t),a=i.shift(),s=[];if(a){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(t.children[0],c),s.push(c)}if(i.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(i,!0)},d=Ep(t.children[1]),f=aw(t.children[t.children.length-1]);d&&f&&(c.position={start:d,end:f}),s.push(c)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,o),e.applyData(t,o)}function z5(e,t,i){const a=i?i.children:void 0,o=(a?a.indexOf(t):1)===0?"th":"td",c=i&&i.type==="table"?i.align:void 0,d=c?c.length:t.children.length;let f=-1;const h=[];for(;++f<d;){const p=t.children[f],y={},x=c?c[f]:void 0;x&&(y.align=x);let _={type:"element",tagName:o,properties:y,children:[]};p&&(_.children=e.all(p),e.patch(p,_),_=e.applyData(p,_)),h.push(_)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,m),e.applyData(t,m)}function I5(e,t){const i={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}const Ay=9,Cy=32;function B5(e){const t=String(e),i=/\r?\n|\r/g;let a=i.exec(t),s=0;const o=[];for(;a;)o.push(My(t.slice(s,a.index),s>0,!0),a[0]),s=a.index+a[0].length,a=i.exec(t);return o.push(My(t.slice(s),s>0,!1)),o.join("")}function My(e,t,i){let a=0,s=e.length;if(t){let o=e.codePointAt(a);for(;o===Ay||o===Cy;)a++,o=e.codePointAt(a)}if(i){let o=e.codePointAt(s-1);for(;o===Ay||o===Cy;)s--,o=e.codePointAt(s-1)}return s>a?e.slice(a,s):""}function U5(e,t){const i={type:"text",value:B5(String(t.value))};return e.patch(t,i),e.applyData(t,i)}function H5(e,t){const i={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,i),e.applyData(t,i)}const $5={blockquote:g5,break:b5,code:x5,delete:y5,emphasis:v5,footnoteReference:_5,heading:w5,html:E5,imageReference:N5,image:S5,inlineCode:k5,linkReference:T5,link:A5,listItem:C5,list:O5,paragraph:R5,root:D5,strong:j5,table:L5,tableCell:I5,tableRow:z5,text:U5,thematicBreak:H5,toml:Jc,yaml:Jc,definition:Jc,footnoteDefinition:Jc};function Jc(){}const Tw=-1,Pu=0,oo=1,Nu=2,Mp=3,Op=4,Rp=5,Dp=6,Aw=7,Cw=8,Mw=typeof self=="object"?self:globalThis,Oy=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new Mw[e](t)},q5=(e,t)=>{const i=(s,o)=>(e.set(o,s),s),a=s=>{if(e.has(s))return e.get(s);const[o,c]=t[s];switch(o){case Pu:case Tw:return i(c,s);case oo:{const d=i([],s);for(const f of c)d.push(a(f));return d}case Nu:{const d=i({},s);for(const[f,h]of c)d[a(f)]=a(h);return d}case Mp:return i(new Date(c),s);case Op:{const{source:d,flags:f}=c;return i(new RegExp(d,f),s)}case Rp:{const d=i(new Map,s);for(const[f,h]of c)d.set(a(f),a(h));return d}case Dp:{const d=i(new Set,s);for(const f of c)d.add(a(f));return d}case Aw:{const{name:d,message:f}=c;return i(typeof Mw[d]=="function"?Oy(d,f):new Error(f),s)}case Cw:return i(BigInt(c),s);case"BigInt":return i(Object(BigInt(c)),s);case"ArrayBuffer":return i(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:d}=new Uint8Array(c);return i(new DataView(d),c)}}return i(Oy(o,c),s)};return a},Ry=e=>q5(new Map,e)(0),za="",{toString:P5}={},{keys:F5}=Object,Ql=e=>{const t=typeof e;if(t!=="object"||!e)return[Pu,t];const i=P5.call(e).slice(8,-1);switch(i){case"Array":return[oo,za];case"Object":return[Nu,za];case"Date":return[Mp,za];case"RegExp":return[Op,za];case"Map":return[Rp,za];case"Set":return[Dp,za];case"DataView":return[oo,i]}return i.includes("Array")?[oo,i]:e instanceof Error?[Aw,e.name||"Error"]:[Nu,i]},eu=([e,t])=>e===Pu&&(t==="function"||t==="symbol"),G5=(e,t,i,a)=>{const s=(c,d)=>{const f=a.push(c)-1;return i.set(d,f),f},o=c=>{if(i.has(c))return i.get(c);let[d,f]=Ql(c);switch(d){case Pu:{let m=c;switch(f){case"bigint":d=Cw,m=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);m=null;break;case"undefined":return s([Tw],c)}return s([d,m],c)}case oo:{if(f){let y=c;return f==="DataView"?y=new Uint8Array(c.buffer):f==="ArrayBuffer"&&(y=new Uint8Array(c)),s([f,[...y]],c)}const m=[],p=s([d,m],c);for(const y of c)m.push(o(y));return p}case Nu:{if(f)switch(f){case"BigInt":return s([f,c.toString()],c);case"Boolean":case"Number":case"String":return s([f,c.valueOf()],c)}if(t&&"toJSON"in c)return o(c.toJSON());const m=[],p=s([d,m],c);for(const y of F5(c))(e||!eu(Ql(c[y])))&&m.push([o(y),o(c[y])]);return p}case Mp:return s([d,isNaN(c.getTime())?za:c.toISOString()],c);case Op:{const{source:m,flags:p}=c;return s([d,{source:m,flags:p}],c)}case Rp:{const m=[],p=s([d,m],c);for(const[y,x]of c)(e||!(eu(Ql(y))||eu(Ql(x))))&&m.push([o(y),o(x)]);return p}case Dp:{const m=[],p=s([d,m],c);for(const y of c)(e||!eu(Ql(y)))&&m.push(o(y));return p}}const{message:h}=c;return s([d,{name:f,message:h}],c)};return o},Dy=(e,{json:t,lossy:i}={})=>{const a=[];return G5(!(t||i),!!t,new Map,a)(e),a},Su=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Ry(Dy(e,t)):structuredClone(e):(e,t)=>Ry(Dy(e,t));function V5(e,t){const i=[{type:"text",value:"↩"}];return t>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),i}function Y5(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function X5(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=e.options.footnoteBackContent||V5,a=e.options.footnoteBackLabel||Y5,s=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let f=-1;for(;++f<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[f]);if(!h)continue;const m=e.all(h),p=String(h.identifier).toUpperCase(),y=tl(p.toLowerCase());let x=0;const _=[],N=e.footnoteCounts.get(p);for(;N!==void 0&&++x<=N;){_.length>0&&_.push({type:"text",value:" "});let k=typeof i=="string"?i:i(f,x);typeof k=="string"&&(k={type:"text",value:k}),_.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+y+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(f,x),className:["data-footnote-backref"]},children:Array.isArray(k)?k:[k]})}const S=m[m.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const k=S.children[S.children.length-1];k&&k.type==="text"?k.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(..._)}else m.push(..._);const w={type:"element",tagName:"li",properties:{id:t+"fn-"+y},children:e.wrap(m,!0)};e.patch(h,w),d.push(w)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Su(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
-`},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
-`}]}}const Fu=(function(e){if(e==null)return W5;if(typeof e=="function")return Gu(e);if(typeof e=="object")return Array.isArray(e)?K5(e):Z5(e);if(typeof e=="string")return Q5(e);throw new Error("Expected function, string, or object as test")});function K5(e){const t=[];let i=-1;for(;++i<e.length;)t[i]=Fu(e[i]);return Gu(a);function a(...s){let o=-1;for(;++o<t.length;)if(t[o].apply(this,s))return!0;return!1}}function Z5(e){const t=e;return Gu(i);function i(a){const s=a;let o;for(o in e)if(s[o]!==t[o])return!1;return!0}}function Q5(e){return Gu(t);function t(i){return i&&i.type===e}}function Gu(e){return t;function t(i,a,s){return!!(J5(i)&&e.call(this,i,typeof a=="number"?a:void 0,s||void 0))}}function W5(){return!0}function J5(e){return e!==null&&typeof e=="object"&&"type"in e}const Ow=[],eR=!0,qm=!1,tR="skip";function Rw(e,t,i,a){let s;typeof t=="function"&&typeof i!="function"?(a=i,i=t):s=t;const o=Fu(s),c=a?-1:1;d(e,void 0,[])();function d(f,h,m){const p=f&&typeof f=="object"?f:{};if(typeof p.type=="string"){const x=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(y,"name",{value:"node ("+(f.type+(x?"<"+x+">":""))+")"})}return y;function y(){let x=Ow,_,N,S;if((!t||o(f,h,m[m.length-1]||void 0))&&(x=nR(i(f,m)),x[0]===qm))return x;if("children"in f&&f.children){const w=f;if(w.children&&x[0]!==tR)for(N=(a?w.children.length:-1)+c,S=m.concat(w);N>-1&&N<w.children.length;){const k=w.children[N];if(_=d(k,N,S)(),_[0]===qm)return _;N=typeof _[1]=="number"?_[1]:N+c}}return x}}}function nR(e){return Array.isArray(e)?e:typeof e=="number"?[eR,e]:e==null?Ow:[e]}function jp(e,t,i,a){let s,o,c;typeof t=="function"&&typeof i!="function"?(o=void 0,c=t,s=i):(o=t,c=i,s=a),Rw(e,o,d,s);function d(f,h){const m=h[h.length-1],p=m?m.children.indexOf(f):void 0;return c(f,p,m)}}const Pm={}.hasOwnProperty,iR={};function rR(e,t){const i=t||iR,a=new Map,s=new Map,o=new Map,c={...$5,...i.handlers},d={all:h,applyData:sR,definitionById:a,footnoteById:s,footnoteCounts:o,footnoteOrder:[],handlers:c,one:f,options:i,patch:aR,wrap:oR};return jp(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const p=m.type==="definition"?a:s,y=String(m.identifier).toUpperCase();p.has(y)||p.set(y,m)}}),d;function f(m,p){const y=m.type,x=d.handlers[y];if(Pm.call(d.handlers,y)&&x)return x(d,m,p);if(d.options.passThrough&&d.options.passThrough.includes(y)){if("children"in m){const{children:N,...S}=m,w=Su(S);return w.children=d.all(m),w}return Su(m)}return(d.options.unknownHandler||lR)(d,m,p)}function h(m){const p=[];if("children"in m){const y=m.children;let x=-1;for(;++x<y.length;){const _=d.one(y[x],m);if(_){if(x&&y[x-1].type==="break"&&(!Array.isArray(_)&&_.type==="text"&&(_.value=jy(_.value)),!Array.isArray(_)&&_.type==="element")){const N=_.children[0];N&&N.type==="text"&&(N.value=jy(N.value))}Array.isArray(_)?p.push(..._):p.push(_)}}}return p}}function aR(e,t){e.position&&(t.position=YC(e))}function sR(e,t){let i=t;if(e&&e.data){const a=e.data.hName,s=e.data.hChildren,o=e.data.hProperties;if(typeof a=="string")if(i.type==="element")i.tagName=a;else{const c="children"in i?i.children:[i];i={type:"element",tagName:a,properties:{},children:c}}i.type==="element"&&o&&Object.assign(i.properties,Su(o)),"children"in i&&i.children&&s!==null&&s!==void 0&&(i.children=s)}return i}function lR(e,t){const i=t.data||{},a="value"in t&&!(Pm.call(i,"hProperties")||Pm.call(i,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function oR(e,t){const i=[];let a=-1;for(t&&i.push({type:"text",value:`
-`});++a<e.length;)a&&i.push({type:"text",value:`
-`}),i.push(e[a]);return t&&e.length>0&&i.push({type:"text",value:`
-`}),i}function jy(e){let t=0,i=e.charCodeAt(t);for(;i===9||i===32;)t++,i=e.charCodeAt(t);return e.slice(t)}function Ly(e,t){const i=rR(e,t),a=i.one(e,void 0),s=X5(i),o=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return s&&o.children.push({type:"text",value:`
-`},s),o}function cR(e,t){return e&&"run"in e?async function(i,a){const s=Ly(i,{file:a,...t});await e.run(s,a)}:function(i,a){return Ly(i,{file:a,...e||t})}}function zy(e){if(e)throw e}var yh,Iy;function uR(){if(Iy)return yh;Iy=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},o=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var m=e.call(h,"constructor"),p=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!p)return!1;var y;for(y in h);return typeof y>"u"||e.call(h,y)},c=function(h,m){i&&m.name==="__proto__"?i(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},d=function(h,m){if(m==="__proto__")if(e.call(h,m)){if(a)return a(h,m).value}else return;return h[m]};return yh=function f(){var h,m,p,y,x,_,N=arguments[0],S=1,w=arguments.length,k=!1;for(typeof N=="boolean"&&(k=N,N=arguments[1]||{},S=2),(N==null||typeof N!="object"&&typeof N!="function")&&(N={});S<w;++S)if(h=arguments[S],h!=null)for(m in h)p=d(N,m),y=d(h,m),N!==y&&(k&&y&&(o(y)||(x=s(y)))?(x?(x=!1,_=p&&s(p)?p:[]):_=p&&o(p)?p:{},c(N,{name:m,newValue:f(k,_,y)})):typeof y<"u"&&c(N,{name:m,newValue:y}));return N},yh}var dR=uR();const vh=ko(dR);function Fm(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function fR(){const e=[],t={run:i,use:a};return t;function i(...s){let o=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...s);function d(f,...h){const m=e[++o];let p=-1;if(f){c(f);return}for(;++p<s.length;)(h[p]===null||h[p]===void 0)&&(h[p]=s[p]);s=h,m?hR(m,d)(...h):c(null,...h)}}function a(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),t}}function hR(e,t){let i;return a;function a(...c){const d=e.length>c.length;let f;d&&c.push(s);try{f=e.apply(this,c)}catch(h){const m=h;if(d&&i)throw m;return s(m)}d||(f&&f.then&&typeof f.then=="function"?f.then(o,s):f instanceof Error?s(f):o(f))}function s(c,...d){i||(i=!0,t(c,...d))}function o(c){s(null,c)}}const Fi={basename:mR,dirname:pR,extname:gR,join:bR,sep:"/"};function mR(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Oo(e);let i=0,a=-1,s=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(o){i=s+1;break}}else a<0&&(o=!0,a=s+1);return a<0?"":e.slice(i,a)}if(t===e)return"";let c=-1,d=t.length-1;for(;s--;)if(e.codePointAt(s)===47){if(o){i=s+1;break}}else c<0&&(o=!0,c=s+1),d>-1&&(e.codePointAt(s)===t.codePointAt(d--)?d<0&&(a=s):(d=-1,a=c));return i===a?a=c:a<0&&(a=e.length),e.slice(i,a)}function pR(e){if(Oo(e),e.length===0)return".";let t=-1,i=e.length,a;for(;--i;)if(e.codePointAt(i)===47){if(a){t=i;break}}else a||(a=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function gR(e){Oo(e);let t=e.length,i=-1,a=0,s=-1,o=0,c;for(;t--;){const d=e.codePointAt(t);if(d===47){if(c){a=t+1;break}continue}i<0&&(c=!0,i=t+1),d===46?s<0?s=t:o!==1&&(o=1):s>-1&&(o=-1)}return s<0||i<0||o===0||o===1&&s===i-1&&s===a+1?"":e.slice(s,i)}function bR(...e){let t=-1,i;for(;++t<e.length;)Oo(e[t]),e[t]&&(i=i===void 0?e[t]:i+"/"+e[t]);return i===void 0?".":xR(i)}function xR(e){Oo(e);const t=e.codePointAt(0)===47;let i=yR(e,!t);return i.length===0&&!t&&(i="."),i.length>0&&e.codePointAt(e.length-1)===47&&(i+="/"),t?"/"+i:i}function yR(e,t){let i="",a=0,s=-1,o=0,c=-1,d,f;for(;++c<=e.length;){if(c<e.length)d=e.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(s===c-1||o===1))if(s!==c-1&&o===2){if(i.length<2||a!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(f=i.lastIndexOf("/"),f!==i.length-1){f<0?(i="",a=0):(i=i.slice(0,f),a=i.length-1-i.lastIndexOf("/")),s=c,o=0;continue}}else if(i.length>0){i="",a=0,s=c,o=0;continue}}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(s+1,c):i=e.slice(s+1,c),a=c-s-1;s=c,o=0}else d===46&&o>-1?o++:o=-1}return i}function Oo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const vR={cwd:_R};function _R(){return"/"}function Gm(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function wR(e){if(typeof e=="string")e=new URL(e);else if(!Gm(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return ER(e)}function ER(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const t=e.pathname;let i=-1;for(;++i<t.length;)if(t.codePointAt(i)===37&&t.codePointAt(i+1)===50){const a=t.codePointAt(i+2);if(a===70||a===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(t)}const _h=["history","path","basename","stem","extname","dirname"];class Dw{constructor(t){let i;t?Gm(t)?i={path:t}:typeof t=="string"||NR(t)?i={value:t}:i=t:i={},this.cwd="cwd"in i?"":vR.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<_h.length;){const o=_h[a];o in i&&i[o]!==void 0&&i[o]!==null&&(this[o]=o==="history"?[...i[o]]:i[o])}let s;for(s in i)_h.includes(s)||(this[s]=i[s])}get basename(){return typeof this.path=="string"?Fi.basename(this.path):void 0}set basename(t){Eh(t,"basename"),wh(t,"basename"),this.path=Fi.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Fi.dirname(this.path):void 0}set dirname(t){By(this.basename,"dirname"),this.path=Fi.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Fi.extname(this.path):void 0}set extname(t){if(wh(t,"extname"),By(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Fi.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Gm(t)&&(t=wR(t)),Eh(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Fi.basename(this.path,this.extname):void 0}set stem(t){Eh(t,"stem"),wh(t,"stem"),this.path=Fi.join(this.dirname||"",t+(this.extname||""))}fail(t,i,a){const s=this.message(t,i,a);throw s.fatal=!0,s}info(t,i,a){const s=this.message(t,i,a);return s.fatal=void 0,s}message(t,i,a){const s=new An(t,i,a);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function wh(e,t){if(e&&e.includes(Fi.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Fi.sep+"`")}function Eh(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function By(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function NR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const SR=(function(e){const a=this.constructor.prototype,s=a[e],o=function(){return s.apply(o,arguments)};return Object.setPrototypeOf(o,a),o}),kR={}.hasOwnProperty;class Lp extends SR{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=fR()}copy(){const t=new Lp;let i=-1;for(;++i<this.attachers.length;){const a=this.attachers[i];t.use(...a)}return t.data(vh(!0,{},this.namespace)),t}data(t,i){return typeof t=="string"?arguments.length===2?(kh("data",this.frozen),this.namespace[t]=i,this):kR.call(this.namespace,t)&&this.namespace[t]||void 0:t?(kh("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const s=i.call(t,...a);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const i=tu(t),a=this.parser||this.Parser;return Nh("parse",a),a(String(i),i)}process(t,i){const a=this;return this.freeze(),Nh("process",this.parser||this.Parser),Sh("process",this.compiler||this.Compiler),i?s(void 0,i):new Promise(s);function s(o,c){const d=tu(t),f=a.parse(d);a.run(f,d,function(m,p,y){if(m||!p||!y)return h(m);const x=p,_=a.stringify(x,y);CR(_)?y.value=_:y.result=_,h(m,y)});function h(m,p){m||!p?c(m):o?o(p):i(void 0,p)}}}processSync(t){let i=!1,a;return this.freeze(),Nh("processSync",this.parser||this.Parser),Sh("processSync",this.compiler||this.Compiler),this.process(t,s),Hy("processSync","process",i),a;function s(o,c){i=!0,zy(o),a=c}}run(t,i,a){Uy(t),this.freeze();const s=this.transformers;return!a&&typeof i=="function"&&(a=i,i=void 0),a?o(void 0,a):new Promise(o);function o(c,d){const f=tu(i);s.run(t,f,h);function h(m,p,y){const x=p||t;m?d(m):c?c(x):a(void 0,x,y)}}}runSync(t,i){let a=!1,s;return this.run(t,i,o),Hy("runSync","run",a),s;function o(c,d){zy(c),s=d,a=!0}}stringify(t,i){this.freeze();const a=tu(i),s=this.compiler||this.Compiler;return Sh("stringify",s),Uy(t),s(t,a)}use(t,...i){const a=this.attachers,s=this.namespace;if(kh("use",this.frozen),t!=null)if(typeof t=="function")f(t,i);else if(typeof t=="object")Array.isArray(t)?d(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(h){if(typeof h=="function")f(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[m,...p]=h;f(m,p)}else c(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function c(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(h.plugins),h.settings&&(s.settings=vh(!0,s.settings,h.settings))}function d(h){let m=-1;if(h!=null)if(Array.isArray(h))for(;++m<h.length;){const p=h[m];o(p)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function f(h,m){let p=-1,y=-1;for(;++p<a.length;)if(a[p][0]===h){y=p;break}if(y===-1)a.push([h,...m]);else if(m.length>0){let[x,..._]=m;const N=a[y][1];Fm(N)&&Fm(x)&&(x=vh(!0,N,x)),a[y]=[h,x,..._]}}}}const TR=new Lp().freeze();function Nh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Sh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function kh(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Uy(e){if(!Fm(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Hy(e,t,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function tu(e){return AR(e)?e:new Dw(e)}function AR(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function CR(e){return typeof e=="string"||MR(e)}function MR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const OR="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",$y=[],qy={allowDangerousHtml:!0},RR=/^(https?|ircs?|mailto|xmpp)$/i,DR=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function zp(e){const t=jR(e),i=LR(e);return zR(t.runSync(t.parse(i),i),e)}function jR(e){const t=e.rehypePlugins||$y,i=e.remarkPlugins||$y,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...qy}:qy;return TR().use(p5).use(i).use(cR,a).use(t)}function LR(e){const t=e.children||"",i=new Dw;return typeof t=="string"&&(i.value=t),i}function zR(e,t){const i=t.allowedElements,a=t.allowElement,s=t.components,o=t.disallowedElements,c=t.skipHtml,d=t.unwrapDisallowed,f=t.urlTransform||IR;for(const m of DR)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+OR+m.id,void 0);return jp(e,h),WC(e,{Fragment:g.Fragment,components:s,ignoreInvalidStyle:!0,jsx:g.jsx,jsxs:g.jsxs,passKeys:!0,passNode:!0});function h(m,p,y){if(m.type==="raw"&&y&&typeof p=="number")return c?y.children.splice(p,1):y.children[p]={type:"text",value:m.value},p;if(m.type==="element"){let x;for(x in gh)if(Object.hasOwn(gh,x)&&Object.hasOwn(m.properties,x)){const _=m.properties[x],N=gh[x];(N===null||N.includes(m.tagName))&&(m.properties[x]=f(String(_||""),x,m))}}if(m.type==="element"){let x=i?!i.includes(m.tagName):o?o.includes(m.tagName):!1;if(!x&&a&&typeof p=="number"&&(x=!a(m,p,y)),x&&y&&typeof p=="number")return d&&m.children?y.children.splice(p,1,...m.children):y.children.splice(p,1),p}}}function IR(e){const t=e.indexOf(":"),i=e.indexOf("?"),a=e.indexOf("#"),s=e.indexOf("/");return t===-1||s!==-1&&t>s||i!==-1&&t>i||a!==-1&&t>a||RR.test(e.slice(0,t))?e:""}function Py(e,t){const i=String(e);if(typeof t!="string")throw new TypeError("Expected character");let a=0,s=i.indexOf(t);for(;s!==-1;)a++,s=i.indexOf(t,s+t.length);return a}function BR(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function UR(e,t,i){const s=Fu((i||{}).ignore||[]),o=HR(t);let c=-1;for(;++c<o.length;)Rw(e,"text",d);function d(h,m){let p=-1,y;for(;++p<m.length;){const x=m[p],_=y?y.children:void 0;if(s(x,_?_.indexOf(x):void 0,y))return;y=x}if(y)return f(h,m)}function f(h,m){const p=m[m.length-1],y=o[c][0],x=o[c][1];let _=0;const S=p.children.indexOf(h);let w=!1,k=[];y.lastIndex=0;let E=y.exec(h.value);for(;E;){const M=E.index,U={index:E.index,input:E.input,stack:[...m,h]};let R=x(...E,U);if(typeof R=="string"&&(R=R.length>0?{type:"text",value:R}:void 0),R===!1?y.lastIndex=M+1:(_!==M&&k.push({type:"text",value:h.value.slice(_,M)}),Array.isArray(R)?k.push(...R):R&&k.push(R),_=M+E[0].length,w=!0),!y.global)break;E=y.exec(h.value)}return w?(_<h.value.length&&k.push({type:"text",value:h.value.slice(_)}),p.children.splice(S,1,...k)):k=[h],S+k.length}}function HR(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const i=!e[0]||Array.isArray(e[0])?e:[e];let a=-1;for(;++a<i.length;){const s=i[a];t.push([$R(s[0]),qR(s[1])])}return t}function $R(e){return typeof e=="string"?new RegExp(BR(e),"g"):e}function qR(e){return typeof e=="function"?e:function(){return e}}const Th="phrasing",Ah=["autolink","link","image","label"];function PR(){return{transforms:[ZR],enter:{literalAutolink:GR,literalAutolinkEmail:Ch,literalAutolinkHttp:Ch,literalAutolinkWww:Ch},exit:{literalAutolink:KR,literalAutolinkEmail:XR,literalAutolinkHttp:VR,literalAutolinkWww:YR}}}function FR(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Th,notInConstruct:Ah},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Th,notInConstruct:Ah},{character:":",before:"[ps]",after:"\\/",inConstruct:Th,notInConstruct:Ah}]}}function GR(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Ch(e){this.config.enter.autolinkProtocol.call(this,e)}function VR(e){this.config.exit.autolinkProtocol.call(this,e)}function YR(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function XR(e){this.config.exit.autolinkEmail.call(this,e)}function KR(e){this.exit(e)}function ZR(e){UR(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,QR],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),WR]],{ignore:["link","linkReference"]})}function QR(e,t,i,a,s){let o="";if(!jw(s)||(/^w/i.test(t)&&(i=t+i,t="",o="http://"),!JR(i)))return!1;const c=e3(i+a);if(!c[0])return!1;const d={type:"link",title:null,url:o+t+c[0],children:[{type:"text",value:t+c[0]}]};return c[1]?[d,{type:"text",value:c[1]}]:d}function WR(e,t,i,a){return!jw(a,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+i,children:[{type:"text",value:t+"@"+i}]}}function JR(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function e3(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let i=t[0],a=i.indexOf(")");const s=Py(e,"(");let o=Py(e,")");for(;a!==-1&&s>o;)e+=i.slice(0,a+1),i=i.slice(a+1),a=i.indexOf(")"),o++;return[e,i]}function jw(e,t){const i=e.input.charCodeAt(e.index-1);return(e.index===0||qa(i)||$u(i))&&(!t||i!==47)}Lw.peek=c3;function t3(){this.buffer()}function n3(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function i3(){this.buffer()}function r3(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function a3(e){const t=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=Ri(this.sliceSerialize(e)).toLowerCase(),i.label=t}function s3(e){this.exit(e)}function l3(e){const t=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=Ri(this.sliceSerialize(e)).toLowerCase(),i.label=t}function o3(e){this.exit(e)}function c3(){return"["}function Lw(e,t,i,a){const s=i.createTracker(a);let o=s.move("[^");const c=i.enter("footnoteReference"),d=i.enter("reference");return o+=s.move(i.safe(i.associationId(e),{after:"]",before:o})),d(),c(),o+=s.move("]"),o}function u3(){return{enter:{gfmFootnoteCallString:t3,gfmFootnoteCall:n3,gfmFootnoteDefinitionLabelString:i3,gfmFootnoteDefinition:r3},exit:{gfmFootnoteCallString:a3,gfmFootnoteCall:s3,gfmFootnoteDefinitionLabelString:l3,gfmFootnoteDefinition:o3}}}function d3(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:i,footnoteReference:Lw},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(a,s,o,c){const d=o.createTracker(c);let f=d.move("[^");const h=o.enter("footnoteDefinition"),m=o.enter("label");return f+=d.move(o.safe(o.associationId(a),{before:f,after:"]"})),m(),f+=d.move("]:"),a.children&&a.children.length>0&&(d.shift(4),f+=d.move((t?`
-`:" ")+o.indentLines(o.containerFlow(a,d.current()),t?zw:f3))),h(),f}}function f3(e,t,i){return t===0?e:zw(e,t,i)}function zw(e,t,i){return(i?"":" ")+e}const h3=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Iw.peek=x3;function m3(){return{canContainEols:["delete"],enter:{strikethrough:g3},exit:{strikethrough:b3}}}function p3(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:h3}],handlers:{delete:Iw}}}function g3(e){this.enter({type:"delete",children:[]},e)}function b3(e){this.exit(e)}function Iw(e,t,i,a){const s=i.createTracker(a),o=i.enter("strikethrough");let c=s.move("~~");return c+=i.containerPhrasing(e,{...s.current(),before:c,after:"~"}),c+=s.move("~~"),o(),c}function x3(){return"~"}function y3(e){return e.length}function v3(e,t){const i=t||{},a=(i.align||[]).concat(),s=i.stringLength||y3,o=[],c=[],d=[],f=[];let h=0,m=-1;for(;++m<e.length;){const N=[],S=[];let w=-1;for(e[m].length>h&&(h=e[m].length);++w<e[m].length;){const k=_3(e[m][w]);if(i.alignDelimiters!==!1){const E=s(k);S[w]=E,(f[w]===void 0||E>f[w])&&(f[w]=E)}N.push(k)}c[m]=N,d[m]=S}let p=-1;if(typeof a=="object"&&"length"in a)for(;++p<h;)o[p]=Fy(a[p]);else{const N=Fy(a);for(;++p<h;)o[p]=N}p=-1;const y=[],x=[];for(;++p<h;){const N=o[p];let S="",w="";N===99?(S=":",w=":"):N===108?S=":":N===114&&(w=":");let k=i.alignDelimiters===!1?1:Math.max(1,f[p]-S.length-w.length);const E=S+"-".repeat(k)+w;i.alignDelimiters!==!1&&(k=S.length+k+w.length,k>f[p]&&(f[p]=k),x[p]=k),y[p]=E}c.splice(1,0,y),d.splice(1,0,x),m=-1;const _=[];for(;++m<c.length;){const N=c[m],S=d[m];p=-1;const w=[];for(;++p<h;){const k=N[p]||"";let E="",M="";if(i.alignDelimiters!==!1){const U=f[p]-(S[p]||0),R=o[p];R===114?E=" ".repeat(U):R===99?U%2?(E=" ".repeat(U/2+.5),M=" ".repeat(U/2-.5)):(E=" ".repeat(U/2),M=E):M=" ".repeat(U)}i.delimiterStart!==!1&&!p&&w.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&k==="")&&(i.delimiterStart!==!1||p)&&w.push(" "),i.alignDelimiters!==!1&&w.push(E),w.push(k),i.alignDelimiters!==!1&&w.push(M),i.padding!==!1&&w.push(" "),(i.delimiterEnd!==!1||p!==h-1)&&w.push("|")}_.push(i.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return _.join(`
-`)}function _3(e){return e==null?"":String(e)}function Fy(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function w3(e,t,i,a){const s=i.enter("blockquote"),o=i.createTracker(a);o.move("> "),o.shift(2);const c=i.indentLines(i.containerFlow(e,o.current()),E3);return s(),c}function E3(e,t,i){return">"+(i?"":" ")+e}function N3(e,t){return Gy(e,t.inConstruct,!0)&&!Gy(e,t.notInConstruct,!1)}function Gy(e,t,i){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return i;let a=-1;for(;++a<t.length;)if(e.includes(t[a]))return!0;return!1}function Vy(e,t,i,a){let s=-1;for(;++s<i.unsafe.length;)if(i.unsafe[s].character===`
-`&&N3(i.stack,i.unsafe[s]))return/[ \t]/.test(a.before)?"":" ";return`\\
-`}function S3(e,t){const i=String(e);let a=i.indexOf(t),s=a,o=0,c=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===s?++o>c&&(c=o):o=1,s=a+t.length,a=i.indexOf(t,s);return c}function k3(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function T3(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function A3(e,t,i,a){const s=T3(i),o=e.value||"",c=s==="`"?"GraveAccent":"Tilde";if(k3(e,i)){const p=i.enter("codeIndented"),y=i.indentLines(o,C3);return p(),y}const d=i.createTracker(a),f=s.repeat(Math.max(S3(o,s)+1,3)),h=i.enter("codeFenced");let m=d.move(f);if(e.lang){const p=i.enter(`codeFencedLang${c}`);m+=d.move(i.safe(e.lang,{before:m,after:" ",encode:["`"],...d.current()})),p()}if(e.lang&&e.meta){const p=i.enter(`codeFencedMeta${c}`);m+=d.move(" "),m+=d.move(i.safe(e.meta,{before:m,after:`
-`,encode:["`"],...d.current()})),p()}return m+=d.move(`
-`),o&&(m+=d.move(o+`
-`)),m+=d.move(f),h(),m}function C3(e,t,i){return(i?"":" ")+e}function Ip(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function M3(e,t,i,a){const s=Ip(i),o=s==='"'?"Quote":"Apostrophe",c=i.enter("definition");let d=i.enter("label");const f=i.createTracker(a);let h=f.move("[");return h+=f.move(i.safe(i.associationId(e),{before:h,after:"]",...f.current()})),h+=f.move("]: "),d(),!e.url||/[\0- \u007F]/.test(e.url)?(d=i.enter("destinationLiteral"),h+=f.move("<"),h+=f.move(i.safe(e.url,{before:h,after:">",...f.current()})),h+=f.move(">")):(d=i.enter("destinationRaw"),h+=f.move(i.safe(e.url,{before:h,after:e.title?" ":`
-`,...f.current()}))),d(),e.title&&(d=i.enter(`title${o}`),h+=f.move(" "+s),h+=f.move(i.safe(e.title,{before:h,after:s,...f.current()})),h+=f.move(s),d()),c(),h}function O3(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function po(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ku(e,t,i){const a=Vs(e),s=Vs(t);return a===void 0?s===void 0?i==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Bw.peek=R3;function Bw(e,t,i,a){const s=O3(i),o=i.enter("emphasis"),c=i.createTracker(a),d=c.move(s);let f=c.move(i.containerPhrasing(e,{after:s,before:d,...c.current()}));const h=f.charCodeAt(0),m=ku(a.before.charCodeAt(a.before.length-1),h,s);m.inside&&(f=po(h)+f.slice(1));const p=f.charCodeAt(f.length-1),y=ku(a.after.charCodeAt(0),p,s);y.inside&&(f=f.slice(0,-1)+po(p));const x=c.move(s);return o(),i.attentionEncodeSurroundingInfo={after:y.outside,before:m.outside},d+f+x}function R3(e,t,i){return i.options.emphasis||"*"}function D3(e,t){let i=!1;return jp(e,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return i=!0,qm}),!!((!e.depth||e.depth<3)&&Tp(e)&&(t.options.setext||i))}function j3(e,t,i,a){const s=Math.max(Math.min(6,e.depth||1),1),o=i.createTracker(a);if(D3(e,i)){const m=i.enter("headingSetext"),p=i.enter("phrasing"),y=i.containerPhrasing(e,{...o.current(),before:`
-`,after:`
-`});return p(),m(),y+`
-`+(s===1?"=":"-").repeat(y.length-(Math.max(y.lastIndexOf("\r"),y.lastIndexOf(`
-`))+1))}const c="#".repeat(s),d=i.enter("headingAtx"),f=i.enter("phrasing");o.move(c+" ");let h=i.containerPhrasing(e,{before:"# ",after:`
-`,...o.current()});return/^[\t ]/.test(h)&&(h=po(h.charCodeAt(0))+h.slice(1)),h=h?c+" "+h:c,i.options.closeAtx&&(h+=" "+c),f(),d(),h}Uw.peek=L3;function Uw(e){return e.value||""}function L3(){return"<"}Hw.peek=z3;function Hw(e,t,i,a){const s=Ip(i),o=s==='"'?"Quote":"Apostrophe",c=i.enter("image");let d=i.enter("label");const f=i.createTracker(a);let h=f.move("![");return h+=f.move(i.safe(e.alt,{before:h,after:"]",...f.current()})),h+=f.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=i.enter("destinationLiteral"),h+=f.move("<"),h+=f.move(i.safe(e.url,{before:h,after:">",...f.current()})),h+=f.move(">")):(d=i.enter("destinationRaw"),h+=f.move(i.safe(e.url,{before:h,after:e.title?" ":")",...f.current()}))),d(),e.title&&(d=i.enter(`title${o}`),h+=f.move(" "+s),h+=f.move(i.safe(e.title,{before:h,after:s,...f.current()})),h+=f.move(s),d()),h+=f.move(")"),c(),h}function z3(){return"!"}$w.peek=I3;function $w(e,t,i,a){const s=e.referenceType,o=i.enter("imageReference");let c=i.enter("label");const d=i.createTracker(a);let f=d.move("![");const h=i.safe(e.alt,{before:f,after:"]",...d.current()});f+=d.move(h+"]["),c();const m=i.stack;i.stack=[],c=i.enter("reference");const p=i.safe(i.associationId(e),{before:f,after:"]",...d.current()});return c(),i.stack=m,o(),s==="full"||!h||h!==p?f+=d.move(p+"]"):s==="shortcut"?f=f.slice(0,-1):f+=d.move("]"),f}function I3(){return"!"}qw.peek=B3;function qw(e,t,i){let a=e.value||"",s="`",o=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(a);)s+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++o<i.unsafe.length;){const c=i.unsafe[o],d=i.compilePattern(c);let f;if(c.atBreak)for(;f=d.exec(a);){let h=f.index;a.charCodeAt(h)===10&&a.charCodeAt(h-1)===13&&h--,a=a.slice(0,h)+" "+a.slice(f.index+1)}}return s+a+s}function B3(){return"`"}function Pw(e,t){const i=Tp(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(i===e.url||"mailto:"+i===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Fw.peek=U3;function Fw(e,t,i,a){const s=Ip(i),o=s==='"'?"Quote":"Apostrophe",c=i.createTracker(a);let d,f;if(Pw(e,i)){const m=i.stack;i.stack=[],d=i.enter("autolink");let p=c.move("<");return p+=c.move(i.containerPhrasing(e,{before:p,after:">",...c.current()})),p+=c.move(">"),d(),i.stack=m,p}d=i.enter("link"),f=i.enter("label");let h=c.move("[");return h+=c.move(i.containerPhrasing(e,{before:h,after:"](",...c.current()})),h+=c.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=i.enter("destinationLiteral"),h+=c.move("<"),h+=c.move(i.safe(e.url,{before:h,after:">",...c.current()})),h+=c.move(">")):(f=i.enter("destinationRaw"),h+=c.move(i.safe(e.url,{before:h,after:e.title?" ":")",...c.current()}))),f(),e.title&&(f=i.enter(`title${o}`),h+=c.move(" "+s),h+=c.move(i.safe(e.title,{before:h,after:s,...c.current()})),h+=c.move(s),f()),h+=c.move(")"),d(),h}function U3(e,t,i){return Pw(e,i)?"<":"["}Gw.peek=H3;function Gw(e,t,i,a){const s=e.referenceType,o=i.enter("linkReference");let c=i.enter("label");const d=i.createTracker(a);let f=d.move("[");const h=i.containerPhrasing(e,{before:f,after:"]",...d.current()});f+=d.move(h+"]["),c();const m=i.stack;i.stack=[],c=i.enter("reference");const p=i.safe(i.associationId(e),{before:f,after:"]",...d.current()});return c(),i.stack=m,o(),s==="full"||!h||h!==p?f+=d.move(p+"]"):s==="shortcut"?f=f.slice(0,-1):f+=d.move("]"),f}function H3(){return"["}function Bp(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function $3(e){const t=Bp(e),i=e.options.bulletOther;if(!i)return t==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+i+"`) to be different");return i}function q3(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Vw(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function P3(e,t,i,a){const s=i.enter("list"),o=i.bulletCurrent;let c=e.ordered?q3(i):Bp(i);const d=e.ordered?c==="."?")":".":$3(i);let f=t&&i.bulletLastUsed?c===i.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&m&&(!m.children||!m.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(f=!0),Vw(i)===c&&m){let p=-1;for(;++p<e.children.length;){const y=e.children[p];if(y&&y.type==="listItem"&&y.children&&y.children[0]&&y.children[0].type==="thematicBreak"){f=!0;break}}}}f&&(c=d),i.bulletCurrent=c;const h=i.containerFlow(e,a);return i.bulletLastUsed=c,i.bulletCurrent=o,s(),h}function F3(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function G3(e,t,i,a){const s=F3(i);let o=i.bulletCurrent||Bp(i);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(i.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let c=o.length+1;(s==="tab"||s==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(c=Math.ceil(c/4)*4);const d=i.createTracker(a);d.move(o+" ".repeat(c-o.length)),d.shift(c);const f=i.enter("listItem"),h=i.indentLines(i.containerFlow(e,d.current()),m);return f(),h;function m(p,y,x){return y?(x?"":" ".repeat(c))+p:(x?o:o+" ".repeat(c-o.length))+p}}function V3(e,t,i,a){const s=i.enter("paragraph"),o=i.enter("phrasing"),c=i.containerPhrasing(e,a);return o(),s(),c}const Y3=Fu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function X3(e,t,i,a){return(e.children.some(function(c){return Y3(c)})?i.containerPhrasing:i.containerFlow).call(i,e,a)}function K3(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Yw.peek=Z3;function Yw(e,t,i,a){const s=K3(i),o=i.enter("strong"),c=i.createTracker(a),d=c.move(s+s);let f=c.move(i.containerPhrasing(e,{after:s,before:d,...c.current()}));const h=f.charCodeAt(0),m=ku(a.before.charCodeAt(a.before.length-1),h,s);m.inside&&(f=po(h)+f.slice(1));const p=f.charCodeAt(f.length-1),y=ku(a.after.charCodeAt(0),p,s);y.inside&&(f=f.slice(0,-1)+po(p));const x=c.move(s+s);return o(),i.attentionEncodeSurroundingInfo={after:y.outside,before:m.outside},d+f+x}function Z3(e,t,i){return i.options.strong||"*"}function Q3(e,t,i,a){return i.safe(e.value,a)}function W3(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function J3(e,t,i){const a=(Vw(i)+(i.options.ruleSpaces?" ":"")).repeat(W3(i));return i.options.ruleSpaces?a.slice(0,-1):a}const Xw={blockquote:w3,break:Vy,code:A3,definition:M3,emphasis:Bw,hardBreak:Vy,heading:j3,html:Uw,image:Hw,imageReference:$w,inlineCode:qw,link:Fw,linkReference:Gw,list:P3,listItem:G3,paragraph:V3,root:X3,strong:Yw,text:Q3,thematicBreak:J3};function e4(){return{enter:{table:t4,tableData:Yy,tableHeader:Yy,tableRow:i4},exit:{codeText:r4,table:n4,tableData:Mh,tableHeader:Mh,tableRow:Mh}}}function t4(e){const t=e._align;this.enter({type:"table",align:t.map(function(i){return i==="none"?null:i}),children:[]},e),this.data.inTable=!0}function n4(e){this.exit(e),this.data.inTable=void 0}function i4(e){this.enter({type:"tableRow",children:[]},e)}function Mh(e){this.exit(e)}function Yy(e){this.enter({type:"tableCell",children:[]},e)}function r4(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,a4));const i=this.stack[this.stack.length-1];i.type,i.value=t,this.exit(e)}function a4(e,t){return t==="|"?t:e}function s4(e){const t=e||{},i=t.tableCellPadding,a=t.tablePipeAlign,s=t.stringLength,o=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
-`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:y,table:c,tableCell:f,tableRow:d}};function c(x,_,N,S){return h(m(x,N,S),x.align)}function d(x,_,N,S){const w=p(x,N,S),k=h([w]);return k.slice(0,k.indexOf(`
-`))}function f(x,_,N,S){const w=N.enter("tableCell"),k=N.enter("phrasing"),E=N.containerPhrasing(x,{...S,before:o,after:o});return k(),w(),E}function h(x,_){return v3(x,{align:_,alignDelimiters:a,padding:i,stringLength:s})}function m(x,_,N){const S=x.children;let w=-1;const k=[],E=_.enter("table");for(;++w<S.length;)k[w]=p(S[w],_,N);return E(),k}function p(x,_,N){const S=x.children;let w=-1;const k=[],E=_.enter("tableRow");for(;++w<S.length;)k[w]=f(S[w],x,_,N);return E(),k}function y(x,_,N){let S=Xw.inlineCode(x,_,N);return N.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function l4(){return{exit:{taskListCheckValueChecked:Xy,taskListCheckValueUnchecked:Xy,paragraph:c4}}}function o4(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:u4}}}function Xy(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function c4(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const i=this.stack[this.stack.length-1];i.type;const a=i.children[0];if(a&&a.type==="text"){const s=t.children;let o=-1,c;for(;++o<s.length;){const d=s[o];if(d.type==="paragraph"){c=d;break}}c===i&&(a.value=a.value.slice(1),a.value.length===0?i.children.shift():i.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,i.position.start=Object.assign({},a.position.start)))}}this.exit(e)}function u4(e,t,i,a){const s=e.children[0],o=typeof e.checked=="boolean"&&s&&s.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",d=i.createTracker(a);o&&d.move(c);let f=Xw.listItem(e,t,i,{...a,...d.current()});return o&&(f=f.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),f;function h(m){return m+c}}function d4(){return[PR(),u3(),m3(),e4(),l4()]}function f4(e){return{extensions:[FR(),d3(e),p3(),s4(e),o4()]}}const h4={tokenize:y4,partial:!0},Kw={tokenize:v4,partial:!0},Zw={tokenize:_4,partial:!0},Qw={tokenize:w4,partial:!0},m4={tokenize:E4,partial:!0},Ww={name:"wwwAutolink",tokenize:b4,previous:eE},Jw={name:"protocolAutolink",tokenize:x4,previous:tE},_r={name:"emailAutolink",tokenize:g4,previous:nE},Xi={};function p4(){return{text:Xi}}let Da=48;for(;Da<123;)Xi[Da]=_r,Da++,Da===58?Da=65:Da===91&&(Da=97);Xi[43]=_r;Xi[45]=_r;Xi[46]=_r;Xi[95]=_r;Xi[72]=[_r,Jw];Xi[104]=[_r,Jw];Xi[87]=[_r,Ww];Xi[119]=[_r,Ww];function g4(e,t,i){const a=this;let s,o;return c;function c(p){return!Vm(p)||!nE.call(a,a.previous)||Up(a.events)?i(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(p))}function d(p){return Vm(p)?(e.consume(p),d):p===64?(e.consume(p),f):i(p)}function f(p){return p===46?e.check(m4,m,h)(p):p===45||p===95||Tn(p)?(o=!0,e.consume(p),f):m(p)}function h(p){return e.consume(p),s=!0,f}function m(p){return o&&s&&jn(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):i(p)}}function b4(e,t,i){const a=this;return s;function s(c){return c!==87&&c!==119||!eE.call(a,a.previous)||Up(a.events)?i(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(h4,e.attempt(Kw,e.attempt(Zw,o),i),i)(c))}function o(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(c)}}function x4(e,t,i){const a=this;let s="",o=!1;return c;function c(p){return(p===72||p===104)&&tE.call(a,a.previous)&&!Up(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(p),e.consume(p),d):i(p)}function d(p){if(jn(p)&&s.length<5)return s+=String.fromCodePoint(p),e.consume(p),d;if(p===58){const y=s.toLowerCase();if(y==="http"||y==="https")return e.consume(p),f}return i(p)}function f(p){return p===47?(e.consume(p),o?h:(o=!0,f)):i(p)}function h(p){return p===null||Eu(p)||At(p)||qa(p)||$u(p)?i(p):e.attempt(Kw,e.attempt(Zw,m),i)(p)}function m(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}function y4(e,t,i){let a=0;return s;function s(c){return(c===87||c===119)&&a<3?(a++,e.consume(c),s):c===46&&a===3?(e.consume(c),o):i(c)}function o(c){return c===null?i(c):t(c)}}function v4(e,t,i){let a,s,o;return c;function c(h){return h===46||h===95?e.check(Qw,f,d)(h):h===null||At(h)||qa(h)||h!==45&&$u(h)?f(h):(o=!0,e.consume(h),c)}function d(h){return h===95?a=!0:(s=a,a=void 0),e.consume(h),c}function f(h){return s||a||!o?i(h):t(h)}}function _4(e,t){let i=0,a=0;return s;function s(c){return c===40?(i++,e.consume(c),s):c===41&&a<i?o(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?e.check(Qw,t,o)(c):c===null||At(c)||qa(c)?t(c):(e.consume(c),s)}function o(c){return c===41&&a++,e.consume(c),s}}function w4(e,t,i){return a;function a(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(e.consume(d),a):d===38?(e.consume(d),o):d===93?(e.consume(d),s):d===60||d===null||At(d)||qa(d)?t(d):i(d)}function s(d){return d===null||d===40||d===91||At(d)||qa(d)?t(d):a(d)}function o(d){return jn(d)?c(d):i(d)}function c(d){return d===59?(e.consume(d),a):jn(d)?(e.consume(d),c):i(d)}}function E4(e,t,i){return a;function a(o){return e.consume(o),s}function s(o){return Tn(o)?i(o):t(o)}}function eE(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||At(e)}function tE(e){return!jn(e)}function nE(e){return!(e===47||Vm(e))}function Vm(e){return e===43||e===45||e===46||e===95||Tn(e)}function Up(e){let t=e.length,i=!1;for(;t--;){const a=e[t][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){i=!0;break}if(a._gfmAutolinkLiteralWalkedInto){i=!1;break}}return e.length>0&&!i&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}const N4={tokenize:R4,partial:!0};function S4(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:C4,continuation:{tokenize:M4},exit:O4}},text:{91:{name:"gfmFootnoteCall",tokenize:A4},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:k4,resolveTo:T4}}}}function k4(e,t,i){const a=this;let s=a.events.length;const o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c;for(;s--;){const f=a.events[s][1];if(f.type==="labelImage"){c=f;break}if(f.type==="gfmFootnoteCall"||f.type==="labelLink"||f.type==="label"||f.type==="image"||f.type==="link")break}return d;function d(f){if(!c||!c._balanced)return i(f);const h=Ri(a.sliceSerialize({start:c.end,end:a.now()}));return h.codePointAt(0)!==94||!o.includes(h.slice(1))?i(f):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),t(f))}}function T4(e,t){let i=e.length;for(;i--;)if(e[i][1].type==="labelImage"&&e[i][0]==="enter"){e[i][1];break}e[i+1][1].type="data",e[i+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},e[i+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[i+3][1].end),end:Object.assign({},e[i+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},d=[e[i+1],e[i+2],["enter",a,t],e[i+3],e[i+4],["enter",s,t],["exit",s,t],["enter",o,t],["enter",c,t],["exit",c,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",a,t]];return e.splice(i,e.length-i+1,...d),e}function A4(e,t,i){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let o=0,c;return d;function d(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),f}function f(p){return p!==94?i(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(p){if(o>999||p===93&&!c||p===null||p===91||At(p))return i(p);if(p===93){e.exit("chunkString");const y=e.exit("gfmFootnoteCallString");return s.includes(Ri(a.sliceSerialize(y)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):i(p)}return At(p)||(c=!0),o++,e.consume(p),p===92?m:h}function m(p){return p===91||p===92||p===93?(e.consume(p),o++,h):h(p)}}function C4(e,t,i){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let o,c=0,d;return f;function f(_){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(_){return _===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):i(_)}function m(_){if(c>999||_===93&&!d||_===null||_===91||At(_))return i(_);if(_===93){e.exit("chunkString");const N=e.exit("gfmFootnoteDefinitionLabelString");return o=Ri(a.sliceSerialize(N)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),y}return At(_)||(d=!0),c++,e.consume(_),_===92?p:m}function p(_){return _===91||_===92||_===93?(e.consume(_),c++,m):m(_)}function y(_){return _===58?(e.enter("definitionMarker"),e.consume(_),e.exit("definitionMarker"),s.includes(o)||s.push(o),ot(e,x,"gfmFootnoteDefinitionWhitespace")):i(_)}function x(_){return t(_)}}function M4(e,t,i){return e.check(Mo,t,e.attempt(N4,t,i))}function O4(e){e.exit("gfmFootnoteDefinition")}function R4(e,t,i){const a=this;return ot(e,s,"gfmFootnoteDefinitionIndent",5);function s(o){const c=a.events[a.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?t(o):i(o)}}function D4(e){let i=(e||{}).singleTilde;const a={name:"strikethrough",tokenize:o,resolveAll:s};return i==null&&(i=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function s(c,d){let f=-1;for(;++f<c.length;)if(c[f][0]==="enter"&&c[f][1].type==="strikethroughSequenceTemporary"&&c[f][1]._close){let h=f;for(;h--;)if(c[h][0]==="exit"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._open&&c[f][1].end.offset-c[f][1].start.offset===c[h][1].end.offset-c[h][1].start.offset){c[f][1].type="strikethroughSequence",c[h][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},c[h][1].start),end:Object.assign({},c[f][1].end)},p={type:"strikethroughText",start:Object.assign({},c[h][1].end),end:Object.assign({},c[f][1].start)},y=[["enter",m,d],["enter",c[h][1],d],["exit",c[h][1],d],["enter",p,d]],x=d.parser.constructs.insideSpan.null;x&&ri(y,y.length,0,qu(x,c.slice(h+1,f),d)),ri(y,y.length,0,[["exit",p,d],["enter",c[f][1],d],["exit",c[f][1],d],["exit",m,d]]),ri(c,h-1,f-h+3,y),f=h+y.length-2;break}}for(f=-1;++f<c.length;)c[f][1].type==="strikethroughSequenceTemporary"&&(c[f][1].type="data");return c}function o(c,d,f){const h=this.previous,m=this.events;let p=0;return y;function y(_){return h===126&&m[m.length-1][1].type!=="characterEscape"?f(_):(c.enter("strikethroughSequenceTemporary"),x(_))}function x(_){const N=Vs(h);if(_===126)return p>1?f(_):(c.consume(_),p++,x);if(p<2&&!i)return f(_);const S=c.exit("strikethroughSequenceTemporary"),w=Vs(_);return S._open=!w||w===2&&!!N,S._close=!N||N===2&&!!w,d(_)}}}class j4{constructor(){this.map=[]}add(t,i,a){L4(this,t,i,a)}consume(t){if(this.map.sort(function(o,c){return o[0]-c[0]}),this.map.length===0)return;let i=this.map.length;const a=[];for(;i>0;)i-=1,a.push(t.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),t.length=this.map[i][0];a.push(t.slice()),t.length=0;let s=a.pop();for(;s;){for(const o of s)t.push(o);s=a.pop()}this.map.length=0}}function L4(e,t,i,a){let s=0;if(!(i===0&&a.length===0)){for(;s<e.map.length;){if(e.map[s][0]===t){e.map[s][1]+=i,e.map[s][2].push(...a);return}s+=1}e.map.push([t,i,a])}}function z4(e,t){let i=!1;const a=[];for(;t<e.length;){const s=e[t];if(i){if(s[0]==="enter")s[1].type==="tableContent"&&a.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=a.length-1;a[o]=a[o]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(i=!0);t+=1}return a}function I4(){return{flow:{null:{name:"table",tokenize:B4,resolveAll:U4}}}}function B4(e,t,i){const a=this;let s=0,o=0,c;return d;function d(j){let z=a.events.length-1;for(;z>-1;){const A=a.events[z][1].type;if(A==="lineEnding"||A==="linePrefix")z--;else break}const V=z>-1?a.events[z][1].type:null,G=V==="tableHead"||V==="tableRow"?R:f;return G===R&&a.parser.lazy[a.now().line]?i(j):G(j)}function f(j){return e.enter("tableHead"),e.enter("tableRow"),h(j)}function h(j){return j===124||(c=!0,o+=1),m(j)}function m(j){return j===null?i(j):Be(j)?o>1?(o=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),x):i(j):tt(j)?ot(e,m,"whitespace")(j):(o+=1,c&&(c=!1,s+=1),j===124?(e.enter("tableCellDivider"),e.consume(j),e.exit("tableCellDivider"),c=!0,m):(e.enter("data"),p(j)))}function p(j){return j===null||j===124||At(j)?(e.exit("data"),m(j)):(e.consume(j),j===92?y:p)}function y(j){return j===92||j===124?(e.consume(j),p):p(j)}function x(j){return a.interrupt=!1,a.parser.lazy[a.now().line]?i(j):(e.enter("tableDelimiterRow"),c=!1,tt(j)?ot(e,_,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):_(j))}function _(j){return j===45||j===58?S(j):j===124?(c=!0,e.enter("tableCellDivider"),e.consume(j),e.exit("tableCellDivider"),N):U(j)}function N(j){return tt(j)?ot(e,S,"whitespace")(j):S(j)}function S(j){return j===58?(o+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(j),e.exit("tableDelimiterMarker"),w):j===45?(o+=1,w(j)):j===null||Be(j)?M(j):U(j)}function w(j){return j===45?(e.enter("tableDelimiterFiller"),k(j)):U(j)}function k(j){return j===45?(e.consume(j),k):j===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(j),e.exit("tableDelimiterMarker"),E):(e.exit("tableDelimiterFiller"),E(j))}function E(j){return tt(j)?ot(e,M,"whitespace")(j):M(j)}function M(j){return j===124?_(j):j===null||Be(j)?!c||s!==o?U(j):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(j)):U(j)}function U(j){return i(j)}function R(j){return e.enter("tableRow"),B(j)}function B(j){return j===124?(e.enter("tableCellDivider"),e.consume(j),e.exit("tableCellDivider"),B):j===null||Be(j)?(e.exit("tableRow"),t(j)):tt(j)?ot(e,B,"whitespace")(j):(e.enter("data"),I(j))}function I(j){return j===null||j===124||At(j)?(e.exit("data"),B(j)):(e.consume(j),j===92?Z:I)}function Z(j){return j===92||j===124?(e.consume(j),I):I(j)}}function U4(e,t){let i=-1,a=!0,s=0,o=[0,0,0,0],c=[0,0,0,0],d=!1,f=0,h,m,p;const y=new j4;for(;++i<e.length;){const x=e[i],_=x[1];x[0]==="enter"?_.type==="tableHead"?(d=!1,f!==0&&(Ky(y,t,f,h,m),m=void 0,f=0),h={type:"table",start:Object.assign({},_.start),end:Object.assign({},_.end)},y.add(i,0,[["enter",h,t]])):_.type==="tableRow"||_.type==="tableDelimiterRow"?(a=!0,p=void 0,o=[0,0,0,0],c=[0,i+1,0,0],d&&(d=!1,m={type:"tableBody",start:Object.assign({},_.start),end:Object.assign({},_.end)},y.add(i,0,[["enter",m,t]])),s=_.type==="tableDelimiterRow"?2:m?3:1):s&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")?(a=!1,c[2]===0&&(o[1]!==0&&(c[0]=c[1],p=nu(y,t,o,s,void 0,p),o=[0,0,0,0]),c[2]=i)):_.type==="tableCellDivider"&&(a?a=!1:(o[1]!==0&&(c[0]=c[1],p=nu(y,t,o,s,void 0,p)),o=c,c=[o[1],i,0,0])):_.type==="tableHead"?(d=!0,f=i):_.type==="tableRow"||_.type==="tableDelimiterRow"?(f=i,o[1]!==0?(c[0]=c[1],p=nu(y,t,o,s,i,p)):c[1]!==0&&(p=nu(y,t,c,s,i,p)),s=0):s&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")&&(c[3]=i)}for(f!==0&&Ky(y,t,f,h,m),y.consume(t.events),i=-1;++i<t.events.length;){const x=t.events[i];x[0]==="enter"&&x[1].type==="table"&&(x[1]._align=z4(t.events,i))}return e}function nu(e,t,i,a,s,o){const c=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",d="tableContent";i[0]!==0&&(o.end=Object.assign({},zs(t.events,i[0])),e.add(i[0],0,[["exit",o,t]]));const f=zs(t.events,i[1]);if(o={type:c,start:Object.assign({},f),end:Object.assign({},f)},e.add(i[1],0,[["enter",o,t]]),i[2]!==0){const h=zs(t.events,i[2]),m=zs(t.events,i[3]),p={type:d,start:Object.assign({},h),end:Object.assign({},m)};if(e.add(i[2],0,[["enter",p,t]]),a!==2){const y=t.events[i[2]],x=t.events[i[3]];if(y[1].end=Object.assign({},x[1].end),y[1].type="chunkText",y[1].contentType="text",i[3]>i[2]+1){const _=i[2]+1,N=i[3]-i[2]-1;e.add(_,N,[])}}e.add(i[3]+1,0,[["exit",p,t]])}return s!==void 0&&(o.end=Object.assign({},zs(t.events,s)),e.add(s,0,[["exit",o,t]]),o=void 0),o}function Ky(e,t,i,a,s){const o=[],c=zs(t.events,i);s&&(s.end=Object.assign({},c),o.push(["exit",s,t])),a.end=Object.assign({},c),o.push(["exit",a,t]),e.add(i+1,0,o)}function zs(e,t){const i=e[t],a=i[0]==="enter"?"start":"end";return i[1][a]}const H4={name:"tasklistCheck",tokenize:q4};function $4(){return{text:{91:H4}}}function q4(e,t,i){const a=this;return s;function s(f){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?i(f):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),o)}function o(f){return At(f)?(e.enter("taskListCheckValueUnchecked"),e.consume(f),e.exit("taskListCheckValueUnchecked"),c):f===88||f===120?(e.enter("taskListCheckValueChecked"),e.consume(f),e.exit("taskListCheckValueChecked"),c):i(f)}function c(f){return f===93?(e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),d):i(f)}function d(f){return Be(f)?t(f):tt(f)?e.check({tokenize:P4},t,i)(f):i(f)}}function P4(e,t,i){return ot(e,a,"whitespace");function a(s){return s===null?i(s):t(s)}}function F4(e){return fw([p4(),S4(),D4(e),I4(),$4()])}const G4={};function Hp(e){const t=this,i=e||G4,a=t.data(),s=a.micromarkExtensions||(a.micromarkExtensions=[]),o=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),c=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);s.push(F4(i)),o.push(d4()),c.push(f4(i))}var Oh,Zy;function V4(){if(Zy)return Oh;Zy=1;function e(ie){return ie instanceof Map?ie.clear=ie.delete=ie.set=function(){throw new Error("map is read-only")}:ie instanceof Set&&(ie.add=ie.clear=ie.delete=function(){throw new Error("set is read-only")}),Object.freeze(ie),Object.getOwnPropertyNames(ie).forEach(me=>{const Ee=ie[me],Pe=typeof Ee;(Pe==="object"||Pe==="function")&&!Object.isFrozen(Ee)&&e(Ee)}),ie}class t{constructor(me){me.data===void 0&&(me.data={}),this.data=me.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(ie){return ie.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function a(ie,...me){const Ee=Object.create(null);for(const Pe in ie)Ee[Pe]=ie[Pe];return me.forEach(function(Pe){for(const St in Pe)Ee[St]=Pe[St]}),Ee}const s="</span>",o=ie=>!!ie.scope,c=(ie,{prefix:me})=>{if(ie.startsWith("language:"))return ie.replace("language:","language-");if(ie.includes(".")){const Ee=ie.split(".");return[`${me}${Ee.shift()}`,...Ee.map((Pe,St)=>`${Pe}${"_".repeat(St+1)}`)].join(" ")}return`${me}${ie}`};class d{constructor(me,Ee){this.buffer="",this.classPrefix=Ee.classPrefix,me.walk(this)}addText(me){this.buffer+=i(me)}openNode(me){if(!o(me))return;const Ee=c(me.scope,{prefix:this.classPrefix});this.span(Ee)}closeNode(me){o(me)&&(this.buffer+=s)}value(){return this.buffer}span(me){this.buffer+=`<span class="${me}">`}}const f=(ie={})=>{const me={children:[]};return Object.assign(me,ie),me};class h{constructor(){this.rootNode=f(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(me){this.top.children.push(me)}openNode(me){const Ee=f({scope:me});this.add(Ee),this.stack.push(Ee)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(me){return this.constructor._walk(me,this.rootNode)}static _walk(me,Ee){return typeof Ee=="string"?me.addText(Ee):Ee.children&&(me.openNode(Ee),Ee.children.forEach(Pe=>this._walk(me,Pe)),me.closeNode(Ee)),me}static _collapse(me){typeof me!="string"&&me.children&&(me.children.every(Ee=>typeof Ee=="string")?me.children=[me.children.join("")]:me.children.forEach(Ee=>{h._collapse(Ee)}))}}class m extends h{constructor(me){super(),this.options=me}addText(me){me!==""&&this.add(me)}startScope(me){this.openNode(me)}endScope(){this.closeNode()}__addSublanguage(me,Ee){const Pe=me.root;Ee&&(Pe.scope=`language:${Ee}`),this.add(Pe)}toHTML(){return new d(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function p(ie){return ie?typeof ie=="string"?ie:ie.source:null}function y(ie){return N("(?=",ie,")")}function x(ie){return N("(?:",ie,")*")}function _(ie){return N("(?:",ie,")?")}function N(...ie){return ie.map(Ee=>p(Ee)).join("")}function S(ie){const me=ie[ie.length-1];return typeof me=="object"&&me.constructor===Object?(ie.splice(ie.length-1,1),me):{}}function w(...ie){return"("+(S(ie).capture?"":"?:")+ie.map(Pe=>p(Pe)).join("|")+")"}function k(ie){return new RegExp(ie.toString()+"|").exec("").length-1}function E(ie,me){const Ee=ie&&ie.exec(me);return Ee&&Ee.index===0}const M=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function U(ie,{joinWith:me}){let Ee=0;return ie.map(Pe=>{Ee+=1;const St=Ee;let gt=p(Pe),Me="";for(;gt.length>0;){const Se=M.exec(gt);if(!Se){Me+=gt;break}Me+=gt.substring(0,Se.index),gt=gt.substring(Se.index+Se[0].length),Se[0][0]==="\\"&&Se[1]?Me+="\\"+String(Number(Se[1])+St):(Me+=Se[0],Se[0]==="("&&Ee++)}return Me}).map(Pe=>`(${Pe})`).join(me)}const R=/\b\B/,B="[a-zA-Z]\\w*",I="[a-zA-Z_]\\w*",Z="\\b\\d+(\\.\\d+)?",j="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",z="\\b(0b[01]+)",V="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",G=(ie={})=>{const me=/^#![ ]*\//;return ie.binary&&(ie.begin=N(me,/.*\b/,ie.binary,/\b.*/)),a({scope:"meta",begin:me,end:/$/,relevance:0,"on:begin":(Ee,Pe)=>{Ee.index!==0&&Pe.ignoreMatch()}},ie)},A={begin:"\\\\[\\s\\S]",relevance:0},q={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[A]},O={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[A]},H={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},K=function(ie,me,Ee={}){const Pe=a({scope:"comment",begin:ie,end:me,contains:[]},Ee);Pe.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const St=w("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Pe.contains.push({begin:N(/[ ]+/,"(",St,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Pe},X=K("//","$"),C=K("/\\*","\\*/"),L=K("#","$"),Y={scope:"number",begin:Z,relevance:0},D={scope:"number",begin:j,relevance:0},F={scope:"number",begin:z,relevance:0},$={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[A,{begin:/\[/,end:/\]/,relevance:0,contains:[A]}]},Q={scope:"title",begin:B,relevance:0},J={scope:"title",begin:I,relevance:0},W={begin:"\\.\\s*"+I,relevance:0};var oe=Object.freeze({__proto__:null,APOS_STRING_MODE:q,BACKSLASH_ESCAPE:A,BINARY_NUMBER_MODE:F,BINARY_NUMBER_RE:z,COMMENT:K,C_BLOCK_COMMENT_MODE:C,C_LINE_COMMENT_MODE:X,C_NUMBER_MODE:D,C_NUMBER_RE:j,END_SAME_AS_BEGIN:function(ie){return Object.assign(ie,{"on:begin":(me,Ee)=>{Ee.data._beginMatch=me[1]},"on:end":(me,Ee)=>{Ee.data._beginMatch!==me[1]&&Ee.ignoreMatch()}})},HASH_COMMENT_MODE:L,IDENT_RE:B,MATCH_NOTHING_RE:R,METHOD_GUARD:W,NUMBER_MODE:Y,NUMBER_RE:Z,PHRASAL_WORDS_MODE:H,QUOTE_STRING_MODE:O,REGEXP_MODE:$,RE_STARTERS_RE:V,SHEBANG:G,TITLE_MODE:Q,UNDERSCORE_IDENT_RE:I,UNDERSCORE_TITLE_MODE:J});function fe(ie,me){ie.input[ie.index-1]==="."&&me.ignoreMatch()}function be(ie,me){ie.className!==void 0&&(ie.scope=ie.className,delete ie.className)}function we(ie,me){me&&ie.beginKeywords&&(ie.begin="\\b("+ie.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",ie.__beforeBegin=fe,ie.keywords=ie.keywords||ie.beginKeywords,delete ie.beginKeywords,ie.relevance===void 0&&(ie.relevance=0))}function Ne(ie,me){Array.isArray(ie.illegal)&&(ie.illegal=w(...ie.illegal))}function je(ie,me){if(ie.match){if(ie.begin||ie.end)throw new Error("begin & end are not supported with match");ie.begin=ie.match,delete ie.match}}function $e(ie,me){ie.relevance===void 0&&(ie.relevance=1)}const st=(ie,me)=>{if(!ie.beforeMatch)return;if(ie.starts)throw new Error("beforeMatch cannot be used with starts");const Ee=Object.assign({},ie);Object.keys(ie).forEach(Pe=>{delete ie[Pe]}),ie.keywords=Ee.keywords,ie.begin=N(Ee.beforeMatch,y(Ee.begin)),ie.starts={relevance:0,contains:[Object.assign(Ee,{endsParent:!0})]},ie.relevance=0,delete Ee.beforeMatch},Rt=["of","and","for","in","not","or","if","then","parent","list","value"],Yt="keyword";function Pt(ie,me,Ee=Yt){const Pe=Object.create(null);return typeof ie=="string"?St(Ee,ie.split(" ")):Array.isArray(ie)?St(Ee,ie):Object.keys(ie).forEach(function(gt){Object.assign(Pe,Pt(ie[gt],me,gt))}),Pe;function St(gt,Me){me&&(Me=Me.map(Se=>Se.toLowerCase())),Me.forEach(function(Se){const Ue=Se.split("|");Pe[Ue[0]]=[gt,Xt(Ue[0],Ue[1])]})}}function Xt(ie,me){return me?Number(me):Yn(ie)?0:1}function Yn(ie){return Rt.includes(ie.toLowerCase())}const wn={},ct=ie=>{console.error(ie)},It=(ie,...me)=>{console.log(`WARN: ${ie}`,...me)},ue=(ie,me)=>{wn[`${ie}/${me}`]||(console.log(`Deprecated as of ${ie}. ${me}`),wn[`${ie}/${me}`]=!0)},xe=new Error;function Oe(ie,me,{key:Ee}){let Pe=0;const St=ie[Ee],gt={},Me={};for(let Se=1;Se<=me.length;Se++)Me[Se+Pe]=St[Se],gt[Se+Pe]=!0,Pe+=k(me[Se-1]);ie[Ee]=Me,ie[Ee]._emit=gt,ie[Ee]._multi=!0}function Fe(ie){if(Array.isArray(ie.begin)){if(ie.skip||ie.excludeBegin||ie.returnBegin)throw ct("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),xe;if(typeof ie.beginScope!="object"||ie.beginScope===null)throw ct("beginScope must be object"),xe;Oe(ie,ie.begin,{key:"beginScope"}),ie.begin=U(ie.begin,{joinWith:""})}}function Ze(ie){if(Array.isArray(ie.end)){if(ie.skip||ie.excludeEnd||ie.returnEnd)throw ct("skip, excludeEnd, returnEnd not compatible with endScope: {}"),xe;if(typeof ie.endScope!="object"||ie.endScope===null)throw ct("endScope must be object"),xe;Oe(ie,ie.end,{key:"endScope"}),ie.end=U(ie.end,{joinWith:""})}}function on(ie){ie.scope&&typeof ie.scope=="object"&&ie.scope!==null&&(ie.beginScope=ie.scope,delete ie.scope)}function En(ie){on(ie),typeof ie.beginScope=="string"&&(ie.beginScope={_wrap:ie.beginScope}),typeof ie.endScope=="string"&&(ie.endScope={_wrap:ie.endScope}),Fe(ie),Ze(ie)}function Kt(ie){function me(Me,Se){return new RegExp(p(Me),"m"+(ie.case_insensitive?"i":"")+(ie.unicodeRegex?"u":"")+(Se?"g":""))}class Ee{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Se,Ue){Ue.position=this.position++,this.matchIndexes[this.matchAt]=Ue,this.regexes.push([Ue,Se]),this.matchAt+=k(Se)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Se=this.regexes.map(Ue=>Ue[1]);this.matcherRe=me(U(Se,{joinWith:"|"}),!0),this.lastIndex=0}exec(Se){this.matcherRe.lastIndex=this.lastIndex;const Ue=this.matcherRe.exec(Se);if(!Ue)return null;const Bt=Ue.findIndex((bi,Er)=>Er>0&&bi!==void 0),Mt=this.matchIndexes[Bt];return Ue.splice(0,Bt),Object.assign(Ue,Mt)}}class Pe{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Se){if(this.multiRegexes[Se])return this.multiRegexes[Se];const Ue=new Ee;return this.rules.slice(Se).forEach(([Bt,Mt])=>Ue.addRule(Bt,Mt)),Ue.compile(),this.multiRegexes[Se]=Ue,Ue}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Se,Ue){this.rules.push([Se,Ue]),Ue.type==="begin"&&this.count++}exec(Se){const Ue=this.getMatcher(this.regexIndex);Ue.lastIndex=this.lastIndex;let Bt=Ue.exec(Se);if(this.resumingScanAtSamePosition()&&!(Bt&&Bt.index===this.lastIndex)){const Mt=this.getMatcher(0);Mt.lastIndex=this.lastIndex+1,Bt=Mt.exec(Se)}return Bt&&(this.regexIndex+=Bt.position+1,this.regexIndex===this.count&&this.considerAll()),Bt}}function St(Me){const Se=new Pe;return Me.contains.forEach(Ue=>Se.addRule(Ue.begin,{rule:Ue,type:"begin"})),Me.terminatorEnd&&Se.addRule(Me.terminatorEnd,{type:"end"}),Me.illegal&&Se.addRule(Me.illegal,{type:"illegal"}),Se}function gt(Me,Se){const Ue=Me;if(Me.isCompiled)return Ue;[be,je,En,st].forEach(Mt=>Mt(Me,Se)),ie.compilerExtensions.forEach(Mt=>Mt(Me,Se)),Me.__beforeBegin=null,[we,Ne,$e].forEach(Mt=>Mt(Me,Se)),Me.isCompiled=!0;let Bt=null;return typeof Me.keywords=="object"&&Me.keywords.$pattern&&(Me.keywords=Object.assign({},Me.keywords),Bt=Me.keywords.$pattern,delete Me.keywords.$pattern),Bt=Bt||/\w+/,Me.keywords&&(Me.keywords=Pt(Me.keywords,ie.case_insensitive)),Ue.keywordPatternRe=me(Bt,!0),Se&&(Me.begin||(Me.begin=/\B|\b/),Ue.beginRe=me(Ue.begin),!Me.end&&!Me.endsWithParent&&(Me.end=/\B|\b/),Me.end&&(Ue.endRe=me(Ue.end)),Ue.terminatorEnd=p(Ue.end)||"",Me.endsWithParent&&Se.terminatorEnd&&(Ue.terminatorEnd+=(Me.end?"|":"")+Se.terminatorEnd)),Me.illegal&&(Ue.illegalRe=me(Me.illegal)),Me.contains||(Me.contains=[]),Me.contains=[].concat(...Me.contains.map(function(Mt){return Wt(Mt==="self"?Me:Mt)})),Me.contains.forEach(function(Mt){gt(Mt,Ue)}),Me.starts&&gt(Me.starts,Se),Ue.matcher=St(Ue),Ue}if(ie.compilerExtensions||(ie.compilerExtensions=[]),ie.contains&&ie.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return ie.classNameAliases=a(ie.classNameAliases||{}),gt(ie)}function Ct(ie){return ie?ie.endsWithParent||Ct(ie.starts):!1}function Wt(ie){return ie.variants&&!ie.cachedVariants&&(ie.cachedVariants=ie.variants.map(function(me){return a(ie,{variants:null},me)})),ie.cachedVariants?ie.cachedVariants:Ct(ie)?a(ie,{starts:ie.starts?a(ie.starts):null}):Object.isFrozen(ie)?a(ie):ie}var ut="11.11.1";class zn extends Error{constructor(me,Ee){super(me),this.name="HTMLInjectionError",this.html=Ee}}const cn=i,wr=a,nt=Symbol("nomatch"),Xn=7,Cn=function(ie){const me=Object.create(null),Ee=Object.create(null),Pe=[];let St=!0;const gt="Could not find the language '{}', did you forget to load/include a language module?",Me={disableAutodetect:!0,name:"Plain text",contains:[]};let Se={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:m};function Ue(ye){return Se.noHighlightRe.test(ye)}function Bt(ye){let Le=ye.className+" ";Le+=ye.parentNode?ye.parentNode.className:"";const Qe=Se.languageDetectRe.exec(Le);if(Qe){const ft=bn(Qe[1]);return ft||(It(gt.replace("{}",Qe[1])),It("Falling back to no-highlight mode for this block.",ye)),ft?Qe[1]:"no-highlight"}return Le.split(/\s+/).find(ft=>Ue(ft)||bn(ft))}function Mt(ye,Le,Qe){let ft="",Ht="";typeof Le=="object"?(ft=ye,Qe=Le.ignoreIllegals,Ht=Le.language):(ue("10.7.0","highlight(lang, code, ...args) has been deprecated."),ue("10.7.0",`Please use highlight(code, options) instead.
-https://github.com/highlightjs/highlight.js/issues/2277`),Ht=ye,ft=Le),Qe===void 0&&(Qe=!0);const pn={code:ft,language:Ht};Wi("before:highlight",pn);const Mn=pn.result?pn.result:bi(pn.language,pn.code,Qe);return Mn.code=pn.code,Wi("after:highlight",Mn),Mn}function bi(ye,Le,Qe,ft){const Ht=Object.create(null);function pn(_e,Re){return _e.keywords[Re]}function Mn(){if(!qe.keywords){Jt.addText(bt);return}let _e=0;qe.keywordPatternRe.lastIndex=0;let Re=qe.keywordPatternRe.exec(bt),Ye="";for(;Re;){Ye+=bt.substring(_e,Re.index);const it=un.case_insensitive?Re[0].toLowerCase():Re[0],$t=pn(qe,it);if($t){const[li,il]=$t;if(Jt.addText(Ye),Ye="",Ht[it]=(Ht[it]||0)+1,Ht[it]<=Xn&&(Mr+=il),li.startsWith("_"))Ye+=Re[0];else{const $o=un.classNameAliases[li]||li;On(Re[0],$o)}}else Ye+=Re[0];_e=qe.keywordPatternRe.lastIndex,Re=qe.keywordPatternRe.exec(bt)}Ye+=bt.substring(_e),Jt.addText(Ye)}function Nn(){if(bt==="")return;let _e=null;if(typeof qe.subLanguage=="string"){if(!me[qe.subLanguage]){Jt.addText(bt);return}_e=bi(qe.subLanguage,bt,!0,Ho[qe.subLanguage]),Ho[qe.subLanguage]=_e._top}else _e=Nr(bt,qe.subLanguage.length?qe.subLanguage:null);qe.relevance>0&&(Mr+=_e.relevance),Jt.__addSublanguage(_e._emitter,_e.language)}function _t(){qe.subLanguage!=null?Nn():Mn(),bt=""}function On(_e,Re){_e!==""&&(Jt.startScope(Re),Jt.addText(_e),Jt.endScope())}function Ja(_e,Re){let Ye=1;const it=Re.length-1;for(;Ye<=it;){if(!_e._emit[Ye]){Ye++;continue}const $t=un.classNameAliases[_e[Ye]]||_e[Ye],li=Re[Ye];$t?On(li,$t):(bt=li,Mn(),bt=""),Ye++}}function Tr(_e,Re){return _e.scope&&typeof _e.scope=="string"&&Jt.openNode(un.classNameAliases[_e.scope]||_e.scope),_e.beginScope&&(_e.beginScope._wrap?(On(bt,un.classNameAliases[_e.beginScope._wrap]||_e.beginScope._wrap),bt=""):_e.beginScope._multi&&(Ja(_e.beginScope,Re),bt="")),qe=Object.create(_e,{parent:{value:qe}}),qe}function Ii(_e,Re,Ye){let it=E(_e.endRe,Ye);if(it){if(_e["on:end"]){const $t=new t(_e);_e["on:end"](Re,$t),$t.isMatchIgnored&&(it=!1)}if(it){for(;_e.endsParent&&_e.parent;)_e=_e.parent;return _e}}if(_e.endsWithParent)return Ii(_e.parent,Re,Ye)}function Ar(_e){return qe.matcher.regexIndex===0?(bt+=_e[0],1):(Or=!0,0)}function es(_e){const Re=_e[0],Ye=_e.rule,it=new t(Ye),$t=[Ye.__beforeBegin,Ye["on:begin"]];for(const li of $t)if(li&&(li(_e,it),it.isMatchIgnored))return Ar(Re);return Ye.skip?bt+=Re:(Ye.excludeBegin&&(bt+=Re),_t(),!Ye.returnBegin&&!Ye.excludeBegin&&(bt=Re)),Tr(Ye,_e),Ye.returnBegin?0:Re.length}function Sn(_e){const Re=_e[0],Ye=Le.substring(_e.index),it=Ii(qe,_e,Ye);if(!it)return nt;const $t=qe;qe.endScope&&qe.endScope._wrap?(_t(),On(Re,qe.endScope._wrap)):qe.endScope&&qe.endScope._multi?(_t(),Ja(qe.endScope,_e)):$t.skip?bt+=Re:($t.returnEnd||$t.excludeEnd||(bt+=Re),_t(),$t.excludeEnd&&(bt=Re));do qe.scope&&Jt.closeNode(),!qe.skip&&!qe.subLanguage&&(Mr+=qe.relevance),qe=qe.parent;while(qe!==it.parent);return it.starts&&Tr(it.starts,_e),$t.returnEnd?0:Re.length}function ma(){const _e=[];for(let Re=qe;Re!==un;Re=Re.parent)Re.scope&&_e.unshift(Re.scope);_e.forEach(Re=>Jt.openNode(Re))}let wi={};function Cr(_e,Re){const Ye=Re&&Re[0];if(bt+=_e,Ye==null)return _t(),0;if(wi.type==="begin"&&Re.type==="end"&&wi.index===Re.index&&Ye===""){if(bt+=Le.slice(Re.index,Re.index+1),!St){const it=new Error(`0 width match regex (${ye})`);throw it.languageName=ye,it.badRule=wi.rule,it}return 1}if(wi=Re,Re.type==="begin")return es(Re);if(Re.type==="illegal"&&!Qe){const it=new Error('Illegal lexeme "'+Ye+'" for mode "'+(qe.scope||"<unnamed>")+'"');throw it.mode=qe,it}else if(Re.type==="end"){const it=Sn(Re);if(it!==nt)return it}if(Re.type==="illegal"&&Ye==="")return bt+=`
-`,1;if(nl>1e5&&nl>Re.index*3)throw new Error("potential infinite loop, way more iterations than matches");return bt+=Ye,Ye.length}const un=bn(ye);if(!un)throw ct(gt.replace("{}",ye)),new Error('Unknown language: "'+ye+'"');const pa=Kt(un);let ts="",qe=ft||pa;const Ho={},Jt=new Se.__emitter(Se);ma();let bt="",Mr=0,Ji=0,nl=0,Or=!1;try{if(un.__emitTokens)un.__emitTokens(Le,Jt);else{for(qe.matcher.considerAll();;){nl++,Or?Or=!1:qe.matcher.considerAll(),qe.matcher.lastIndex=Ji;const _e=qe.matcher.exec(Le);if(!_e)break;const Re=Le.substring(Ji,_e.index),Ye=Cr(Re,_e);Ji=_e.index+Ye}Cr(Le.substring(Ji))}return Jt.finalize(),ts=Jt.toHTML(),{language:ye,value:ts,relevance:Mr,illegal:!1,_emitter:Jt,_top:qe}}catch(_e){if(_e.message&&_e.message.includes("Illegal"))return{language:ye,value:cn(Le),illegal:!0,relevance:0,_illegalBy:{message:_e.message,index:Ji,context:Le.slice(Ji-100,Ji+100),mode:_e.mode,resultSoFar:ts},_emitter:Jt};if(St)return{language:ye,value:cn(Le),illegal:!1,relevance:0,errorRaised:_e,_emitter:Jt,_top:qe};throw _e}}function Er(ye){const Le={value:cn(ye),illegal:!1,relevance:0,_top:Me,_emitter:new Se.__emitter(Se)};return Le._emitter.addText(ye),Le}function Nr(ye,Le){Le=Le||Se.languages||Object.keys(me);const Qe=Er(ye),ft=Le.filter(bn).filter(vi).map(_t=>bi(_t,ye,!1));ft.unshift(Qe);const Ht=ft.sort((_t,On)=>{if(_t.relevance!==On.relevance)return On.relevance-_t.relevance;if(_t.language&&On.language){if(bn(_t.language).supersetOf===On.language)return 1;if(bn(On.language).supersetOf===_t.language)return-1}return 0}),[pn,Mn]=Ht,Nn=pn;return Nn.secondBest=Mn,Nn}function si(ye,Le,Qe){const ft=Le&&Ee[Le]||Qe;ye.classList.add("hljs"),ye.classList.add(`language-${ft}`)}function Ut(ye){let Le=null;const Qe=Bt(ye);if(Ue(Qe))return;if(Wi("before:highlightElement",{el:ye,language:Qe}),ye.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",ye);return}if(ye.children.length>0&&(Se.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(ye)),Se.throwUnescapedHTML))throw new zn("One of your code blocks includes unescaped HTML.",ye.innerHTML);Le=ye;const ft=Le.textContent,Ht=Qe?Mt(ft,{language:Qe,ignoreIllegals:!0}):Nr(ft);ye.innerHTML=Ht.value,ye.dataset.highlighted="yes",si(ye,Qe,Ht.language),ye.result={language:Ht.language,re:Ht.relevance,relevance:Ht.relevance},Ht.secondBest&&(ye.secondBest={language:Ht.secondBest.language,relevance:Ht.secondBest.relevance}),Wi("after:highlightElement",{el:ye,result:Ht,text:ft})}function mn(ye){Se=wr(Se,ye)}const xi=()=>{kr(),ue("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Sr(){kr(),ue("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let fa=!1;function kr(){function ye(){kr()}if(document.readyState==="loading"){fa||window.addEventListener("DOMContentLoaded",ye,!1),fa=!0;return}document.querySelectorAll(Se.cssSelector).forEach(Ut)}function Qa(ye,Le){let Qe=null;try{Qe=Le(ie)}catch(ft){if(ct("Language definition for '{}' could not be registered.".replace("{}",ye)),St)ct(ft);else throw ft;Qe=Me}Qe.name||(Qe.name=ye),me[ye]=Qe,Qe.rawDefinition=Le.bind(null,ie),Qe.aliases&&yi(Qe.aliases,{languageName:ye})}function Qi(ye){delete me[ye];for(const Le of Object.keys(Ee))Ee[Le]===ye&&delete Ee[Le]}function ha(){return Object.keys(me)}function bn(ye){return ye=(ye||"").toLowerCase(),me[ye]||me[Ee[ye]]}function yi(ye,{languageName:Le}){typeof ye=="string"&&(ye=[ye]),ye.forEach(Qe=>{Ee[Qe.toLowerCase()]=Le})}function vi(ye){const Le=bn(ye);return Le&&!Le.disableAutodetect}function zi(ye){ye["before:highlightBlock"]&&!ye["before:highlightElement"]&&(ye["before:highlightElement"]=Le=>{ye["before:highlightBlock"](Object.assign({block:Le.el},Le))}),ye["after:highlightBlock"]&&!ye["after:highlightElement"]&&(ye["after:highlightElement"]=Le=>{ye["after:highlightBlock"](Object.assign({block:Le.el},Le))})}function Ft(ye){zi(ye),Pe.push(ye)}function Wa(ye){const Le=Pe.indexOf(ye);Le!==-1&&Pe.splice(Le,1)}function Wi(ye,Le){const Qe=ye;Pe.forEach(function(ft){ft[Qe]&&ft[Qe](Le)})}function _i(ye){return ue("10.7.0","highlightBlock will be removed entirely in v12.0"),ue("10.7.0","Please use highlightElement now."),Ut(ye)}Object.assign(ie,{highlight:Mt,highlightAuto:Nr,highlightAll:kr,highlightElement:Ut,highlightBlock:_i,configure:mn,initHighlighting:xi,initHighlightingOnLoad:Sr,registerLanguage:Qa,unregisterLanguage:Qi,listLanguages:ha,getLanguage:bn,registerAliases:yi,autoDetection:vi,inherit:wr,addPlugin:Ft,removePlugin:Wa}),ie.debugMode=function(){St=!1},ie.safeMode=function(){St=!0},ie.versionString=ut,ie.regex={concat:N,lookahead:y,either:w,optional:_,anyNumberOfTimes:x};for(const ye in oe)typeof oe[ye]=="object"&&e(oe[ye]);return Object.assign(ie,oe),ie},hn=Cn({});return hn.newInstance=()=>Cn({}),Oh=hn,hn.HighlightJS=hn,hn.default=hn,Oh}var Rh,Qy;function Y4(){if(Qy)return Rh;Qy=1;function e(t){const i=t.regex,a=i.concat(/[\p{L}_]/u,i.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),s=/[\p{L}0-9._:-]+/u,o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},c={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},d=t.inherit(c,{begin:/\(/,end:/\)/}),f=t.inherit(t.APOS_STRING_MODE,{className:"string"}),h=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),m={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:s,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[o]},{begin:/'/,end:/'/,contains:[o]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[c,h,f,d,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[c,d,h,f]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[h]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[m],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[m],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:i.concat(/</,i.lookahead(i.concat(a,i.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:a,relevance:0,starts:m}]},{className:"tag",begin:i.concat(/<\//,i.lookahead(i.concat(a,/>/))),contains:[{className:"name",begin:a,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return Rh=e,Rh}var Dh,Wy;function X4(){if(Wy)return Dh;Wy=1;function e(t){const i=t.regex,a={},s={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[a]}]};Object.assign(a,{className:"variable",variants:[{begin:i.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},s]});const o={className:"subst",begin:/\$\(/,end:/\)/,contains:[t.BACKSLASH_ESCAPE]},c=t.inherit(t.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),d={begin:/<<-?\s*(?=\w+)/,starts:{contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},f={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,a,o]};o.contains.push(f);const h={match:/\\"/},m={className:"string",begin:/'/,end:/'/},p={match:/\\'/},y={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},t.NUMBER_MODE,a]},x=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],_=t.SHEBANG({binary:`(${x.join("|")})`,relevance:10}),N={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[t.inherit(t.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},S=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],w=["true","false"],k={match:/(\/[a-z._-]+)+/},E=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],M=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],U=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],R=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:S,literal:w,built_in:[...E,...M,"set","shopt",...U,...R]},contains:[_,t.SHEBANG(),N,y,c,d,k,f,h,m,p,a]}}return Dh=e,Dh}var jh,Jy;function K4(){if(Jy)return jh;Jy=1;function e(t){const i=t.regex,a=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",d="("+s+"|"+i.optional(o)+"[a-zA-Z_]\\w*"+i.optional("<[^<>]+>")+")",f={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},m={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},p={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},y={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(m,{className:"string"}),{className:"string",begin:/<.*?>/},a,t.C_BLOCK_COMMENT_MODE]},x={className:"title",begin:i.optional(o)+t.IDENT_RE,relevance:0},_=i.optional(o)+t.IDENT_RE+"\\s*\\(",w={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},k=[y,f,a,t.C_BLOCK_COMMENT_MODE,p,m],E={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:w,contains:k.concat([{begin:/\(/,end:/\)/,keywords:w,contains:k.concat(["self"]),relevance:0}]),relevance:0},M={begin:"("+d+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:w,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:w,relevance:0},{begin:_,returnBegin:!0,contains:[t.inherit(x,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:[a,t.C_BLOCK_COMMENT_MODE,m,p,f,{begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:["self",a,t.C_BLOCK_COMMENT_MODE,m,p,f]}]},f,a,t.C_BLOCK_COMMENT_MODE,y]};return{name:"C",aliases:["h"],keywords:w,disableAutodetect:!0,illegal:"</",contains:[].concat(E,M,k,[y,{begin:t.IDENT_RE+"::",keywords:w},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},t.TITLE_MODE]}]),exports:{preprocessor:y,strings:m,keywords:w}}}return jh=e,jh}var Lh,ev;function Z4(){if(ev)return Lh;ev=1;function e(t){const i=t.regex,a=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",d="(?!struct)("+s+"|"+i.optional(o)+"[a-zA-Z_]\\w*"+i.optional("<[^<>]+>")+")",f={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},m={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},p={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},y={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(m,{className:"string"}),{className:"string",begin:/<.*?>/},a,t.C_BLOCK_COMMENT_MODE]},x={className:"title",begin:i.optional(o)+t.IDENT_RE,relevance:0},_=i.optional(o)+t.IDENT_RE+"\\s*\\(",N=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],S=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],w=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],k=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],U={type:S,keyword:N,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:w},R={className:"function.dispatch",relevance:0,keywords:{_hint:k},begin:i.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,i.lookahead(/(<[^<>]+>|)\s*\(/))},B=[R,y,f,a,t.C_BLOCK_COMMENT_MODE,p,m],I={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:U,contains:B.concat([{begin:/\(/,end:/\)/,keywords:U,contains:B.concat(["self"]),relevance:0}]),relevance:0},Z={className:"function",begin:"("+d+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:U,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:U,relevance:0},{begin:_,returnBegin:!0,contains:[x],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[m,p]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:U,relevance:0,contains:[a,t.C_BLOCK_COMMENT_MODE,m,p,f,{begin:/\(/,end:/\)/,keywords:U,relevance:0,contains:["self",a,t.C_BLOCK_COMMENT_MODE,m,p,f]}]},f,a,t.C_BLOCK_COMMENT_MODE,y]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:U,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(I,Z,R,B,[y,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:U,contains:["self",f]},{begin:t.IDENT_RE+"::",keywords:U},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return Lh=e,Lh}var zh,tv;function Q4(){if(tv)return zh;tv=1;function e(t){const i=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],a=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],s=["default","false","null","true"],o=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],c=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],d={keyword:o.concat(c),built_in:i,literal:s},f=t.inherit(t.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),h={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},m={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},p={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},y=t.inherit(p,{illegal:/\n/}),x={className:"subst",begin:/\{/,end:/\}/,keywords:d},_=t.inherit(x,{illegal:/\n/}),N={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},t.BACKSLASH_ESCAPE,_]},S={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},x]},w=t.inherit(S,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},_]});x.contains=[S,N,p,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,t.C_BLOCK_COMMENT_MODE],_.contains=[w,N,y,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,t.inherit(t.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const k={variants:[m,S,N,p,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},E={begin:"<",end:">",contains:[{beginKeywords:"in out"},f]},M=t.IDENT_RE+"(<"+t.IDENT_RE+"(\\s*,\\s*"+t.IDENT_RE+")*>)?(\\[\\])?",U={begin:"@"+t.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:d,illegal:/::/,contains:[t.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},k,h,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},f,E,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[f,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[f,E,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+M+"\\s+)+"+t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:d,contains:[{beginKeywords:a.join(" "),relevance:0},{begin:t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[t.TITLE_MODE,E],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,relevance:0,contains:[k,h,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},U]}}return zh=e,zh}var Ih,nv;function W4(){if(nv)return Ih;nv=1;const e=h=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:h.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[h.APOS_STRING_MODE,h.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:h.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],i=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],a=[...t,...i],s=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),o=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),c=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),d=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function f(h){const m=h.regex,p=e(h),y={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},x="and or not only",_=/@-?\w[\w]*(-\w+)*/,N="[a-zA-Z-][a-zA-Z0-9_-]*",S=[h.APOS_STRING_MODE,h.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[p.BLOCK_COMMENT,y,p.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+N,relevance:0},p.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+o.join("|")+")"},{begin:":(:)?("+c.join("|")+")"}]},p.CSS_VARIABLE,{className:"attribute",begin:"\\b("+d.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[p.BLOCK_COMMENT,p.HEXCOLOR,p.IMPORTANT,p.CSS_NUMBER_MODE,...S,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...S,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},p.FUNCTION_DISPATCH]},{begin:m.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:_},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:x,attribute:s.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...S,p.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+a.join("|")+")\\b"}]}}return Ih=f,Ih}var Bh,iv;function J4(){if(iv)return Bh;iv=1;function e(t){const i=t.regex,a={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},s={begin:"^[-\\*]{3,}",end:"$"},o={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},c={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},d={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},f=/[A-Za-z][A-Za-z0-9+.-]*/,h={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:i.concat(/\[.+?\]\(/,f,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},m={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},p={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},y=t.inherit(m,{contains:[]}),x=t.inherit(p,{contains:[]});m.contains.push(x),p.contains.push(y);let _=[a,h];return[m,p,y,x].forEach(k=>{k.contains=k.contains.concat(_)}),_=_.concat(m,p),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:_},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:_}]}]},a,c,m,p,{className:"quote",begin:"^>\\s+",contains:_,end:"$"},o,s,h,d,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Bh=e,Bh}var Uh,rv;function eD(){if(rv)return Uh;rv=1;function e(t){const i=t.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:i.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:i.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return Uh=e,Uh}var Hh,av;function tD(){if(av)return Hh;av=1;function e(t){const i=t.regex,a="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",s=i.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),o=i.concat(s,/(::\w+)*/),d={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},f={className:"doctag",begin:"@[A-Za-z]+"},h={begin:"#<",end:">"},m=[t.COMMENT("#","$",{contains:[f]}),t.COMMENT("^=begin","^=end",{contains:[f],relevance:10}),t.COMMENT("^__END__",t.MATCH_NOTHING_RE)],p={className:"subst",begin:/#\{/,end:/\}/,keywords:d},y={className:"string",contains:[t.BACKSLASH_ESCAPE,p],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:i.concat(/<<[-~]?'?/,i.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[t.BACKSLASH_ESCAPE,p]})]}]},x="[1-9](_?[0-9])*|0",_="[0-9](_?[0-9])*",N={className:"number",relevance:0,variants:[{begin:`\\b(${x})(\\.(${_}))?([eE][+-]?(${_})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},S={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:d}]},B=[y,{variants:[{match:[/class\s+/,o,/\s+<\s+/,o]},{match:[/\b(class|module)\s+/,o]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:d},{match:[/(include|extend)\s+/,o],scope:{2:"title.class"},keywords:d},{relevance:0,match:[o,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:s,scope:"title.class"},{match:[/def/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[S]},{begin:t.IDENT_RE+"::"},{className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[y,{begin:a}],relevance:0},N,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:d},{begin:"("+t.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[t.BACKSLASH_ESCAPE,p],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(h,m),relevance:0}].concat(h,m);p.contains=B,S.contains=B;const z=[{begin:/^\s*=>/,starts:{end:"$",contains:B}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:d,contains:B}}];return m.unshift(h),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:d,illegal:/\/\*/,contains:[t.SHEBANG({binary:"ruby"})].concat(z).concat(m).concat(B)}}return Hh=e,Hh}var $h,sv;function nD(){if(sv)return $h;sv=1;function e(t){const c={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:c,illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"string",variants:[t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[t.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:c,illegal:/["']/}]}]}}return $h=e,$h}var qh,lv;function iD(){if(lv)return qh;lv=1;function e(t){const i=t.regex,a=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:i.concat(a,i.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}return qh=e,qh}var Ph,ov;function rD(){if(ov)return Ph;ov=1;function e(t){const i=t.regex,a={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:t.NUMBER_RE}]},s=t.COMMENT();s.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const o={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},c={className:"literal",begin:/\bon|off|true|false|yes|no\b/},d={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},f={begin:/\[/,end:/\]/,contains:[s,c,o,d,a,"self"],relevance:0},h=/[A-Za-z0-9_-]+/,m=/"(\\"|[^"])*"/,p=/'[^']*'/,y=i.either(h,m,p),x=i.concat(y,"(\\s*\\.\\s*",y,")*",i.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[s,{className:"section",begin:/\[+/,end:/\]+/},{begin:x,className:"attr",starts:{end:/$/,contains:[s,f,c,o,d,a]}}]}}return Ph=e,Ph}var Fh,cv;function aD(){if(cv)return Fh;cv=1;var e="[0-9](_*[0-9])*",t=`\\.(${e})`,i="[0-9a-fA-F](_*[0-9a-fA-F])*",a={className:"number",variants:[{begin:`(\\b(${e})((${t})|\\.)?|(${t}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${t})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${t})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${i})\\.?|(${i})?\\.(${i}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${i})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function s(c,d,f){return f===-1?"":c.replace(d,h=>s(c,d,f-1))}function o(c){const d=c.regex,f="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",h=f+s("(?:<"+f+"~~~(?:\\s*,\\s*"+f+"~~~)*>)?",/~~~/g,2),_={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},N={className:"meta",begin:"@"+f,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},S={className:"params",begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:[c.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:_,illegal:/<\/|#/,contains:[c.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[c.BACKSLASH_ESCAPE]},c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,f],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[d.concat(/(?!else)/,f),/\s+/,f,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,f],className:{1:"keyword",3:"title.class"},contains:[S,c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+h+"\\s+)",c.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:_,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:[N,c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,a,c.C_BLOCK_COMMENT_MODE]},c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE]},a,N]}}return Fh=o,Fh}var Gh,uv;function sD(){if(uv)return Gh;uv=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],i=["true","false","null","undefined","NaN","Infinity"],a=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],s=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],o=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],c=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],d=[].concat(o,a,s);function f(h){const m=h.regex,p=(J,{after:W})=>{const te="</"+J[0].slice(1);return J.input.indexOf(te,W)!==-1},y=e,x={begin:"<>",end:"</>"},_=/<[A-Za-z0-9\\._:-]+\s*\/>/,N={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(J,W)=>{const te=J[0].length+J.index,oe=J.input[te];if(oe==="<"||oe===","){W.ignoreMatch();return}oe===">"&&(p(J,{after:te})||W.ignoreMatch());let fe;const be=J.input.substring(te);if(fe=be.match(/^\s*=/)){W.ignoreMatch();return}if((fe=be.match(/^\s+extends\s+/))&&fe.index===0){W.ignoreMatch();return}}},S={$pattern:e,keyword:t,literal:i,built_in:d,"variable.language":c},w="[0-9](_?[0-9])*",k=`\\.(${w})`,E="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",M={className:"number",variants:[{begin:`(\\b(${E})((${k})|\\.)?|(${k}))[eE][+-]?(${w})\\b`},{begin:`\\b(${E})\\b((${k})\\b|\\.)?|(${k})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},U={className:"subst",begin:"\\$\\{",end:"\\}",keywords:S,contains:[]},R={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[h.BACKSLASH_ESCAPE,U],subLanguage:"xml"}},B={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[h.BACKSLASH_ESCAPE,U],subLanguage:"css"}},I={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[h.BACKSLASH_ESCAPE,U],subLanguage:"graphql"}},Z={className:"string",begin:"`",end:"`",contains:[h.BACKSLASH_ESCAPE,U]},z={className:"comment",variants:[h.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:y+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),h.C_BLOCK_COMMENT_MODE,h.C_LINE_COMMENT_MODE]},V=[h.APOS_STRING_MODE,h.QUOTE_STRING_MODE,R,B,I,Z,{match:/\$\d+/},M];U.contains=V.concat({begin:/\{/,end:/\}/,keywords:S,contains:["self"].concat(V)});const G=[].concat(z,U.contains),A=G.concat([{begin:/(\s*)\(/,end:/\)/,keywords:S,contains:["self"].concat(G)}]),q={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:S,contains:A},O={variants:[{match:[/class/,/\s+/,y,/\s+/,/extends/,/\s+/,m.concat(y,"(",m.concat(/\./,y),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,y],scope:{1:"keyword",3:"title.class"}}]},H={relevance:0,match:m.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...a,...s]}},K={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},X={variants:[{match:[/function/,/\s+/,y,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[q],illegal:/%/},C={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function L(J){return m.concat("(?!",J.join("|"),")")}const Y={match:m.concat(/\b/,L([...o,"super","import"].map(J=>`${J}\\s*\\(`)),y,m.lookahead(/\s*\(/)),className:"title.function",relevance:0},D={begin:m.concat(/\./,m.lookahead(m.concat(y,/(?![0-9A-Za-z$_(])/))),end:y,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},F={match:[/get|set/,/\s+/,y,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},q]},$="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+h.UNDERSCORE_IDENT_RE+")\\s*=>",Q={match:[/const|var|let/,/\s+/,y,/\s*/,/=\s*/,/(async\s*)?/,m.lookahead($)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[q]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:S,exports:{PARAMS_CONTAINS:A,CLASS_REFERENCE:H},illegal:/#(?![$_A-z])/,contains:[h.SHEBANG({label:"shebang",binary:"node",relevance:5}),K,h.APOS_STRING_MODE,h.QUOTE_STRING_MODE,R,B,I,Z,z,{match:/\$\d+/},M,H,{scope:"attr",match:y+m.lookahead(":"),relevance:0},Q,{begin:"("+h.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[z,h.REGEXP_MODE,{className:"function",begin:$,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:h.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:S,contains:A}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:x.begin,end:x.end},{match:_},{begin:N.begin,"on:begin":N.isTrulyOpeningTag,end:N.end}],subLanguage:"xml",contains:[{begin:N.begin,end:N.end,skip:!0,contains:["self"]}]}]},X,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+h.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[q,h.inherit(h.TITLE_MODE,{begin:y,className:"title.function"})]},{match:/\.\.\./,relevance:0},D,{match:"\\$"+y,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[q]},Y,C,O,F,{match:/\$[(.]/}]}}return Gh=f,Gh}var Vh,dv;function lD(){if(dv)return Vh;dv=1;function e(t){const i={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},a={match:/[{}[\],:]/,className:"punctuation",relevance:0},s=["true","false","null"],o={scope:"literal",beginKeywords:s.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:s},contains:[i,a,t.QUOTE_STRING_MODE,o,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return Vh=e,Vh}var Yh,fv;function oD(){if(fv)return Yh;fv=1;var e="[0-9](_*[0-9])*",t=`\\.(${e})`,i="[0-9a-fA-F](_*[0-9a-fA-F])*",a={className:"number",variants:[{begin:`(\\b(${e})((${t})|\\.)?|(${t}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${t})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${t})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${i})\\.?|(${i})?\\.(${i}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${i})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function s(o){const c={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},d={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},f={className:"symbol",begin:o.UNDERSCORE_IDENT_RE+"@"},h={className:"subst",begin:/\$\{/,end:/\}/,contains:[o.C_NUMBER_MODE]},m={className:"variable",begin:"\\$"+o.UNDERSCORE_IDENT_RE},p={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[m,h]},{begin:"'",end:"'",illegal:/\n/,contains:[o.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[o.BACKSLASH_ESCAPE,m,h]}]};h.contains.push(p);const y={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+o.UNDERSCORE_IDENT_RE+")?"},x={className:"meta",begin:"@"+o.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[o.inherit(p,{className:"string"}),"self"]}]},_=a,N=o.COMMENT("/\\*","\\*/",{contains:[o.C_BLOCK_COMMENT_MODE]}),S={variants:[{className:"type",begin:o.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},w=S;return w.variants[1].contains=[S],S.variants[1].contains=[w],{name:"Kotlin",aliases:["kt","kts"],keywords:c,contains:[o.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),o.C_LINE_COMMENT_MODE,N,d,f,y,x,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:c,relevance:5,contains:[{begin:o.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[o.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:c,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[S,o.C_LINE_COMMENT_MODE,N],relevance:0},o.C_LINE_COMMENT_MODE,N,y,x,p,o.C_NUMBER_MODE]},N]},{begin:[/class|interface|trait/,/\s+/,o.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},o.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},y,x]},p,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
-`},_]}}return Yh=s,Yh}var Xh,hv;function cD(){if(hv)return Xh;hv=1;const e=m=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:m.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:m.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],i=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],a=[...t,...i],s=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),o=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),c=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),d=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),f=o.concat(c).sort().reverse();function h(m){const p=e(m),y=f,x="and or not only",_="[\\w-]+",N="("+_+"|@\\{"+_+"\\})",S=[],w=[],k=function(G){return{className:"string",begin:"~?"+G+".*?"+G}},E=function(G,A,q){return{className:G,begin:A,relevance:q}},M={$pattern:/[a-z-]+/,keyword:x,attribute:s.join(" ")},U={begin:"\\(",end:"\\)",contains:w,keywords:M,relevance:0};w.push(m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,k("'"),k('"'),p.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},p.HEXCOLOR,U,E("variable","@@?"+_,10),E("variable","@\\{"+_+"\\}"),E("built_in","~?`[^`]*?`"),{className:"attribute",begin:_+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},p.IMPORTANT,{beginKeywords:"and not"},p.FUNCTION_DISPATCH);const R=w.concat({begin:/\{/,end:/\}/,contains:S}),B={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(w)},I={begin:N+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},p.CSS_VARIABLE,{className:"attribute",begin:"\\b("+d.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:w}}]},Z={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:M,returnEnd:!0,contains:w,relevance:0}},j={className:"variable",variants:[{begin:"@"+_+"\\s*:",relevance:15},{begin:"@"+_}],starts:{end:"[;}]",returnEnd:!0,contains:R}},z={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:N,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,B,E("keyword","all\\b"),E("variable","@\\{"+_+"\\}"),{begin:"\\b("+a.join("|")+")\\b",className:"selector-tag"},p.CSS_NUMBER_MODE,E("selector-tag",N,0),E("selector-id","#"+N),E("selector-class","\\."+N,0),E("selector-tag","&",0),p.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+o.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+c.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:R},{begin:"!important"},p.FUNCTION_DISPATCH]},V={begin:_+`:(:)?(${y.join("|")})`,returnBegin:!0,contains:[z]};return S.push(m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,Z,j,V,I,z,B,p.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:S}}return Xh=h,Xh}var Kh,mv;function uD(){if(mv)return Kh;mv=1;function e(t){const i="\\[=*\\[",a="\\]=*\\]",s={begin:i,end:a,contains:["self"]},o=[t.COMMENT("--(?!"+i+")","$"),t.COMMENT("--"+i,a,{contains:[s],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:t.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:o.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[t.inherit(t.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:o}].concat(o)},t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:i,end:a,contains:[s],relevance:5}])}}return Kh=e,Kh}var Zh,pv;function dD(){if(pv)return Zh;pv=1;function e(t){const i={className:"variable",variants:[{begin:"\\$\\("+t.UNDERSCORE_IDENT_RE+"\\)",contains:[t.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},a={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,i]},s={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[i,a]},o={begin:"^"+t.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},c={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},d={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[i]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[t.HASH_COMMENT_MODE,i,a,s,o,c,d]}}return Zh=e,Zh}var Qh,gv;function fD(){if(gv)return Qh;gv=1;function e(t){const i=t.regex,a=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],s=/[dualxmsipngr]{0,12}/,o={$pattern:/[\w.]+/,keyword:a.join(" ")},c={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:o},d={begin:/->\{/,end:/\}/},f={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},h={scope:"variable",variants:[{begin:/\$\d/},{begin:i.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[f]},m={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},p=[t.BACKSLASH_ESCAPE,c,h],y=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],x=(S,w,k="\\1")=>{const E=k==="\\1"?k:i.concat(k,w);return i.concat(i.concat("(?:",S,")"),w,/(?:\\.|[^\\\/])*?/,E,/(?:\\.|[^\\\/])*?/,k,s)},_=(S,w,k)=>i.concat(i.concat("(?:",S,")"),w,/(?:\\.|[^\\\/])*?/,k,s),N=[h,t.HASH_COMMENT_MODE,t.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),d,{className:"string",contains:p,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},m,{begin:"(\\/\\/|"+t.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[t.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:x("s|tr|y",i.either(...y,{capture:!0}))},{begin:x("s|tr|y","\\(","\\)")},{begin:x("s|tr|y","\\[","\\]")},{begin:x("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:_("(?:m|qr)?",/\//,/\//)},{begin:_("m|qr",i.either(...y,{capture:!0}),/\1/)},{begin:_("m|qr",/\(/,/\)/)},{begin:_("m|qr",/\[/,/\]/)},{begin:_("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,f]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,f,m]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return c.contains=N,d.contains=N,{name:"Perl",aliases:["pl","pm"],keywords:o,contains:N}}return Qh=e,Qh}var Wh,bv;function hD(){if(bv)return Wh;bv=1;function e(t){const i={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},a=/[a-zA-Z@][a-zA-Z0-9_]*/,f={"variable.language":["this","super"],$pattern:a,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},h={$pattern:a,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:f,illegal:"</",contains:[i,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.C_NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+h.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:h,contains:[t.UNDERSCORE_TITLE_MODE]},{begin:"\\."+t.UNDERSCORE_IDENT_RE,relevance:0}]}}return Wh=e,Wh}var Jh,xv;function mD(){if(xv)return Jh;xv=1;function e(t){const i=t.regex,a=/(?![A-Za-z0-9])(?![$])/,s=i.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,a),o=i.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,a),c=i.concat(/[A-Z]+/,a),d={scope:"variable",match:"\\$+"+s},f={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},h={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},m=t.inherit(t.APOS_STRING_MODE,{illegal:null}),p=t.inherit(t.QUOTE_STRING_MODE,{illegal:null,contains:t.QUOTE_STRING_MODE.contains.concat(h)}),y={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:t.QUOTE_STRING_MODE.contains.concat(h),"on:begin":(q,O)=>{O.data._beginMatch=q[1]||q[2]},"on:end":(q,O)=>{O.data._beginMatch!==q[1]&&O.ignoreMatch()}},x=t.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),_=`[
-]`,N={scope:"string",variants:[p,m,y,x]},S={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},w=["false","null","true"],k=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],E=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],U={keyword:k,literal:(q=>{const O=[];return q.forEach(H=>{O.push(H),H.toLowerCase()===H?O.push(H.toUpperCase()):O.push(H.toLowerCase())}),O})(w),built_in:E},R=q=>q.map(O=>O.replace(/\|\d+$/,"")),B={variants:[{match:[/new/,i.concat(_,"+"),i.concat("(?!",R(E).join("\\b|"),"\\b)"),o],scope:{1:"keyword",4:"title.class"}}]},I=i.concat(s,"\\b(?!\\()"),Z={variants:[{match:[i.concat(/::/,i.lookahead(/(?!class\b)/)),I],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[o,i.concat(/::/,i.lookahead(/(?!class\b)/)),I],scope:{1:"title.class",3:"variable.constant"}},{match:[o,i.concat("::",i.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[o,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},j={scope:"attr",match:i.concat(s,i.lookahead(":"),i.lookahead(/(?!::)/))},z={relevance:0,begin:/\(/,end:/\)/,keywords:U,contains:[j,d,Z,t.C_BLOCK_COMMENT_MODE,N,S,B]},V={relevance:0,match:[/\b/,i.concat("(?!fn\\b|function\\b|",R(k).join("\\b|"),"|",R(E).join("\\b|"),"\\b)"),s,i.concat(_,"*"),i.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[z]};z.contains.push(V);const G=[j,Z,t.C_BLOCK_COMMENT_MODE,N,S,B],A={begin:i.concat(/#\[\s*\\?/,i.either(o,c)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:w,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:w,keyword:["new","array"]},contains:["self",...G]},...G,{scope:"meta",variants:[{match:o},{match:c}]}]};return{case_insensitive:!1,keywords:U,contains:[A,t.HASH_COMMENT_MODE,t.COMMENT("//","$"),t.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:t.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},f,{scope:"variable.language",match:/\$this\b/},d,V,Z,{match:[/const/,/\s/,s],scope:{1:"keyword",3:"variable.constant"}},B,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},t.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:U,contains:["self",A,d,Z,t.C_BLOCK_COMMENT_MODE,N,S]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[t.inherit(t.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},t.UNDERSCORE_TITLE_MODE]},N,S]}}return Jh=e,Jh}var em,yv;function pD(){if(yv)return em;yv=1;function e(t){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},t.inherit(t.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return em=e,em}var tm,vv;function gD(){if(vv)return tm;vv=1;function e(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return tm=e,tm}var nm,_v;function bD(){if(_v)return nm;_v=1;function e(t){const i=t.regex,a=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),s=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],f={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:s,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},h={className:"meta",begin:/^(>>>|\.\.\.) /},m={className:"subst",begin:/\{/,end:/\}/,keywords:f,illegal:/#/},p={begin:/\{\{/,relevance:0},y={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,h],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,h],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,h,p,m]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,h,p,m]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[t.BACKSLASH_ESCAPE,p,m]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,p,m]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},x="[0-9](_?[0-9])*",_=`(\\b(${x}))?\\.(${x})|\\b(${x})\\.`,N=`\\b|${s.join("|")}`,S={className:"number",relevance:0,variants:[{begin:`(\\b(${x})|(${_}))[eE][+-]?(${x})[jJ]?(?=${N})`},{begin:`(${_})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${N})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${N})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${N})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${N})`},{begin:`\\b(${x})[jJ](?=${N})`}]},w={className:"comment",begin:i.lookahead(/# type:/),end:/$/,keywords:f,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},k={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:f,contains:["self",h,S,y,t.HASH_COMMENT_MODE]}]};return m.contains=[y,S,h],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:f,illegal:/(<\/|\?)|=>/,contains:[h,S,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},y,w,t.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[k]},{variants:[{match:[/\bclass/,/\s+/,a,/\s*/,/\(\s*/,a,/\s*\)/]},{match:[/\bclass/,/\s+/,a]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[S,k,y]}]}}return nm=e,nm}var im,wv;function xD(){if(wv)return im;wv=1;function e(t){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return im=e,im}var rm,Ev;function yD(){if(Ev)return rm;Ev=1;function e(t){const i=t.regex,a=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,s=i.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),o=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,c=i.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:a,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[t.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:i.lookahead(i.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:a},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),t.HASH_COMMENT_MODE,{scope:"string",contains:[t.BACKSLASH_ESCAPE],variants:[t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[o,s]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,s]},{scope:{1:"punctuation",2:"number"},match:[c,s]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,s]}]},{scope:{3:"operator"},match:[a,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:o},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:c},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return rm=e,rm}var am,Nv;function vD(){if(Nv)return am;Nv=1;function e(t){const i=t.regex,a=/(r#)?/,s=i.concat(a,t.UNDERSCORE_IDENT_RE),o=i.concat(a,t.IDENT_RE),c={className:"title.function.invoke",relevance:0,begin:i.concat(/\b/,/(?!let|for|while|if|else|match\b)/,o,i.lookahead(/\s*\(/))},d="([ui](8|16|32|64|128|size)|f(32|64))?",f=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],h=["true","false","Some","None","Ok","Err"],m=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],p=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:t.IDENT_RE+"!?",type:p,keyword:f,literal:h,built_in:m},illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.COMMENT("/\\*","\\*/",{contains:["self"]}),t.inherit(t.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+d},{begin:"\\b0o([0-7_]+)"+d},{begin:"\\b0x([A-Fa-f0-9_]+)"+d},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+d}],relevance:0},{begin:[/fn/,/\s+/,s],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,s],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,s,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,s],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,s],className:{1:"keyword",3:"title.class"}},{begin:t.IDENT_RE+"::",keywords:{keyword:"Self",built_in:m,type:p}},{className:"punctuation",begin:"->"},c]}}return am=e,am}var sm,Sv;function _D(){if(Sv)return sm;Sv=1;const e=h=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:h.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[h.APOS_STRING_MODE,h.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:h.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],i=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],a=[...t,...i],s=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),o=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),c=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),d=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function f(h){const m=e(h),p=c,y=o,x="@[a-z-]+",_="and or not only",S={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[h.C_LINE_COMMENT_MODE,h.C_BLOCK_COMMENT_MODE,m.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},m.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+a.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+y.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+p.join("|")+")"},S,{begin:/\(/,end:/\)/,contains:[m.CSS_NUMBER_MODE]},m.CSS_VARIABLE,{className:"attribute",begin:"\\b("+d.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[m.BLOCK_COMMENT,S,m.HEXCOLOR,m.CSS_NUMBER_MODE,h.QUOTE_STRING_MODE,h.APOS_STRING_MODE,m.IMPORTANT,m.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:x,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:_,attribute:s.join(" ")},contains:[{begin:x,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},S,h.QUOTE_STRING_MODE,h.APOS_STRING_MODE,m.HEXCOLOR,m.CSS_NUMBER_MODE]},m.FUNCTION_DISPATCH]}}return sm=f,sm}var lm,kv;function wD(){if(kv)return lm;kv=1;function e(t){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return lm=e,lm}var om,Tv;function ED(){if(Tv)return om;Tv=1;function e(t){const i=t.regex,a=t.COMMENT("--","$"),s={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},o={begin:/"/,end:/"/,contains:[{match:/""/}]},c=["true","false","unknown"],d=["double precision","large object","with timezone","without timezone"],f=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],h=["add","asc","collation","desc","final","first","last","view"],m=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],p=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],y=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],x=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],_=p,N=[...m,...h].filter(R=>!p.includes(R)),S={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},w={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},k={match:i.concat(/\b/,i.either(..._),/\s*\(/),relevance:0,keywords:{built_in:_}};function E(R){return i.concat(/\b/,i.either(...R.map(B=>B.replace(/\s+/,"\\s+"))),/\b/)}const M={scope:"keyword",match:E(x),relevance:0};function U(R,{exceptions:B,when:I}={}){const Z=I;return B=B||[],R.map(j=>j.match(/\|\d+$/)||B.includes(j)?j:Z(j)?`${j}|0`:j)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:U(N,{when:R=>R.length<3}),literal:c,type:f,built_in:y},contains:[{scope:"type",match:E(d)},M,k,S,s,o,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,a,w]}}return om=e,om}var cm,Av;function ND(){if(Av)return cm;Av=1;function e(I){return I?typeof I=="string"?I:I.source:null}function t(I){return i("(?=",I,")")}function i(...I){return I.map(j=>e(j)).join("")}function a(I){const Z=I[I.length-1];return typeof Z=="object"&&Z.constructor===Object?(I.splice(I.length-1,1),Z):{}}function s(...I){return"("+(a(I).capture?"":"?:")+I.map(z=>e(z)).join("|")+")"}const o=I=>i(/\b/,I,/\w$/.test(I)?/\b/:/\B/),c=["Protocol","Type"].map(o),d=["init","self"].map(o),f=["Any","Self"],h=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],m=["false","nil","true"],p=["assignment","associativity","higherThan","left","lowerThan","none","right"],y=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],x=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],_=s(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),N=s(_,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),S=i(_,N,"*"),w=s(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),k=s(w,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),E=i(w,k,"*"),M=i(/[A-Z]/,k,"*"),U=["attached","autoclosure",i(/convention\(/,s("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",i(/objc\(/,E,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],R=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function B(I){const Z={match:/\s+/,relevance:0},j=I.COMMENT("/\\*","\\*/",{contains:["self"]}),z=[I.C_LINE_COMMENT_MODE,j],V={match:[/\./,s(...c,...d)],className:{2:"keyword"}},G={match:i(/\./,s(...h)),relevance:0},A=h.filter(nt=>typeof nt=="string").concat(["_|0"]),q=h.filter(nt=>typeof nt!="string").concat(f).map(o),O={variants:[{className:"keyword",match:s(...q,...d)}]},H={$pattern:s(/\b\w+/,/#\w+/),keyword:A.concat(y),literal:m},K=[V,G,O],X={match:i(/\./,s(...x)),relevance:0},C={className:"built_in",match:i(/\b/,s(...x),/(?=\()/)},L=[X,C],Y={match:/->/,relevance:0},D={className:"operator",relevance:0,variants:[{match:S},{match:`\\.(\\.|${N})+`}]},F=[Y,D],$="([0-9]_*)+",Q="([0-9a-fA-F]_*)+",J={className:"number",relevance:0,variants:[{match:`\\b(${$})(\\.(${$}))?([eE][+-]?(${$}))?\\b`},{match:`\\b0x(${Q})(\\.(${Q}))?([pP][+-]?(${$}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},W=(nt="")=>({className:"subst",variants:[{match:i(/\\/,nt,/[0\\tnr"']/)},{match:i(/\\/,nt,/u\{[0-9a-fA-F]{1,8}\}/)}]}),te=(nt="")=>({className:"subst",match:i(/\\/,nt,/[\t ]*(?:[\r\n]|\r\n)/)}),oe=(nt="")=>({className:"subst",label:"interpol",begin:i(/\\/,nt,/\(/),end:/\)/}),fe=(nt="")=>({begin:i(nt,/"""/),end:i(/"""/,nt),contains:[W(nt),te(nt),oe(nt)]}),be=(nt="")=>({begin:i(nt,/"/),end:i(/"/,nt),contains:[W(nt),oe(nt)]}),we={className:"string",variants:[fe(),fe("#"),fe("##"),fe("###"),be(),be("#"),be("##"),be("###")]},Ne=[I.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[I.BACKSLASH_ESCAPE]}],je={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Ne},$e=nt=>{const Xn=i(nt,/\//),Cn=i(/\//,nt);return{begin:Xn,end:Cn,contains:[...Ne,{scope:"comment",begin:`#(?!.*${Cn})`,end:/$/}]}},st={scope:"regexp",variants:[$e("###"),$e("##"),$e("#"),je]},Rt={match:i(/`/,E,/`/)},Yt={className:"variable",match:/\$\d+/},Pt={className:"variable",match:`\\$${k}+`},Xt=[Rt,Yt,Pt],Yn={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:R,contains:[...F,J,we]}]}},wn={scope:"keyword",match:i(/@/,s(...U),t(s(/\(/,/\s+/)))},ct={scope:"meta",match:i(/@/,E)},It=[Yn,wn,ct],ue={match:t(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:i(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,k,"+")},{className:"type",match:M,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:i(/\s+&\s+/,t(M)),relevance:0}]},xe={begin:/</,end:/>/,keywords:H,contains:[...z,...K,...It,Y,ue]};ue.contains.push(xe);const Oe={match:i(E,/\s*:/),keywords:"_|0",relevance:0},Fe={begin:/\(/,end:/\)/,relevance:0,keywords:H,contains:["self",Oe,...z,st,...K,...L,...F,J,we,...Xt,...It,ue]},Ze={begin:/</,end:/>/,keywords:"repeat each",contains:[...z,ue]},on={begin:s(t(i(E,/\s*:/)),t(i(E,/\s+/,E,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:E}]},En={begin:/\(/,end:/\)/,keywords:H,contains:[on,...z,...K,...F,J,we,...It,ue,Fe],endsParent:!0,illegal:/["']/},Kt={match:[/(func|macro)/,/\s+/,s(Rt.match,E,S)],className:{1:"keyword",3:"title.function"},contains:[Ze,En,Z],illegal:[/\[/,/%/]},Ct={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Ze,En,Z],illegal:/\[|%/},Wt={match:[/operator/,/\s+/,S],className:{1:"keyword",3:"title"}},ut={begin:[/precedencegroup/,/\s+/,M],className:{1:"keyword",3:"title"},contains:[ue],keywords:[...p,...m],end:/}/},zn={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},cn={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},wr={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,E,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:H,contains:[Ze,...K,{begin:/:/,end:/\{/,keywords:H,contains:[{scope:"title.class.inherited",match:M},...K],relevance:0}]};for(const nt of we.variants){const Xn=nt.contains.find(hn=>hn.label==="interpol");Xn.keywords=H;const Cn=[...K,...L,...F,J,we,...Xt];Xn.contains=[...Cn,{begin:/\(/,end:/\)/,contains:["self",...Cn]}]}return{name:"Swift",keywords:H,contains:[...z,Kt,Ct,zn,cn,wr,Wt,ut,{beginKeywords:"import",end:/$/,contains:[...z],relevance:0},st,...K,...L,...F,J,we,...Xt,...It,ue,Fe]}}return cm=B,cm}var um,Cv;function SD(){if(Cv)return um;Cv=1;function e(t){const i="true false yes no null",a="[\\w#;/?:@&=+$,.~*'()[\\]]+",s={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},o={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},c={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},d={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,o]},f=t.inherit(d,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),x={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},_={end:",",endsWithParent:!0,excludeEnd:!0,keywords:i,relevance:0},N={begin:/\{/,end:/\}/,contains:[_],illegal:"\\n",relevance:0},S={begin:"\\[",end:"\\]",contains:[_],illegal:"\\n",relevance:0},w=[s,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+a},{className:"type",begin:"!<"+a+">"},{className:"type",begin:"!"+a},{className:"type",begin:"!!"+a},{className:"meta",begin:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:i,keywords:{literal:i}},x,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},N,S,c,d],k=[...w];return k.pop(),k.push(f),_.contains=k,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:w}}return um=e,um}var dm,Mv;function kD(){if(Mv)return dm;Mv=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],i=["true","false","null","undefined","NaN","Infinity"],a=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],s=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],o=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],c=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],d=[].concat(o,a,s);function f(m){const p=m.regex,y=(W,{after:te})=>{const oe="</"+W[0].slice(1);return W.input.indexOf(oe,te)!==-1},x=e,_={begin:"<>",end:"</>"},N=/<[A-Za-z0-9\\._:-]+\s*\/>/,S={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(W,te)=>{const oe=W[0].length+W.index,fe=W.input[oe];if(fe==="<"||fe===","){te.ignoreMatch();return}fe===">"&&(y(W,{after:oe})||te.ignoreMatch());let be;const we=W.input.substring(oe);if(be=we.match(/^\s*=/)){te.ignoreMatch();return}if((be=we.match(/^\s+extends\s+/))&&be.index===0){te.ignoreMatch();return}}},w={$pattern:e,keyword:t,literal:i,built_in:d,"variable.language":c},k="[0-9](_?[0-9])*",E=`\\.(${k})`,M="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",U={className:"number",variants:[{begin:`(\\b(${M})((${E})|\\.)?|(${E}))[eE][+-]?(${k})\\b`},{begin:`\\b(${M})\\b((${E})\\b|\\.)?|(${E})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},R={className:"subst",begin:"\\$\\{",end:"\\}",keywords:w,contains:[]},B={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,R],subLanguage:"xml"}},I={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,R],subLanguage:"css"}},Z={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,R],subLanguage:"graphql"}},j={className:"string",begin:"`",end:"`",contains:[m.BACKSLASH_ESCAPE,R]},V={className:"comment",variants:[m.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:x+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),m.C_BLOCK_COMMENT_MODE,m.C_LINE_COMMENT_MODE]},G=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,B,I,Z,j,{match:/\$\d+/},U];R.contains=G.concat({begin:/\{/,end:/\}/,keywords:w,contains:["self"].concat(G)});const A=[].concat(V,R.contains),q=A.concat([{begin:/(\s*)\(/,end:/\)/,keywords:w,contains:["self"].concat(A)}]),O={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:w,contains:q},H={variants:[{match:[/class/,/\s+/,x,/\s+/,/extends/,/\s+/,p.concat(x,"(",p.concat(/\./,x),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,x],scope:{1:"keyword",3:"title.class"}}]},K={relevance:0,match:p.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...a,...s]}},X={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},C={variants:[{match:[/function/,/\s+/,x,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[O],illegal:/%/},L={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Y(W){return p.concat("(?!",W.join("|"),")")}const D={match:p.concat(/\b/,Y([...o,"super","import"].map(W=>`${W}\\s*\\(`)),x,p.lookahead(/\s*\(/)),className:"title.function",relevance:0},F={begin:p.concat(/\./,p.lookahead(p.concat(x,/(?![0-9A-Za-z$_(])/))),end:x,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},$={match:[/get|set/,/\s+/,x,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},O]},Q="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+m.UNDERSCORE_IDENT_RE+")\\s*=>",J={match:[/const|var|let/,/\s+/,x,/\s*/,/=\s*/,/(async\s*)?/,p.lookahead(Q)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[O]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:w,exports:{PARAMS_CONTAINS:q,CLASS_REFERENCE:K},illegal:/#(?![$_A-z])/,contains:[m.SHEBANG({label:"shebang",binary:"node",relevance:5}),X,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,B,I,Z,j,V,{match:/\$\d+/},U,K,{scope:"attr",match:x+p.lookahead(":"),relevance:0},J,{begin:"("+m.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[V,m.REGEXP_MODE,{className:"function",begin:Q,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:m.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:w,contains:q}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:_.begin,end:_.end},{match:N},{begin:S.begin,"on:begin":S.isTrulyOpeningTag,end:S.end}],subLanguage:"xml",contains:[{begin:S.begin,end:S.end,skip:!0,contains:["self"]}]}]},C,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+m.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[O,m.inherit(m.TITLE_MODE,{begin:x,className:"title.function"})]},{match:/\.\.\./,relevance:0},F,{match:"\\$"+x,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[O]},D,L,H,$,{match:/\$[(.]/}]}}function h(m){const p=m.regex,y=f(m),x=e,_=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],N={begin:[/namespace/,/\s+/,m.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},S={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:_},contains:[y.exports.CLASS_REFERENCE]},w={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},k=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],E={$pattern:e,keyword:t.concat(k),literal:i,built_in:d.concat(_),"variable.language":c},M={className:"meta",begin:"@"+x},U=(Z,j,z)=>{const V=Z.contains.findIndex(G=>G.label===j);if(V===-1)throw new Error("can not find mode to replace");Z.contains.splice(V,1,z)};Object.assign(y.keywords,E),y.exports.PARAMS_CONTAINS.push(M);const R=y.contains.find(Z=>Z.scope==="attr"),B=Object.assign({},R,{match:p.concat(x,p.lookahead(/\s*\?:/))});y.exports.PARAMS_CONTAINS.push([y.exports.CLASS_REFERENCE,R,B]),y.contains=y.contains.concat([M,N,S,B]),U(y,"shebang",m.SHEBANG()),U(y,"use_strict",w);const I=y.contains.find(Z=>Z.label==="func.def");return I.relevance=0,Object.assign(y,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),y}return dm=h,dm}var fm,Ov;function TD(){if(Ov)return fm;Ov=1;function e(t){const i=t.regex,a={className:"string",begin:/"(""|[^/n])"C\b/},s={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},o=/\d{1,2}\/\d{1,2}\/\d{4}/,c=/\d{4}-\d{1,2}-\d{1,2}/,d=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,f=/\d{1,2}(:\d{1,2}){1,2}/,h={className:"literal",variants:[{begin:i.concat(/# */,i.either(c,o),/ *#/)},{begin:i.concat(/# */,f,/ *#/)},{begin:i.concat(/# */,d,/ *#/)},{begin:i.concat(/# */,i.either(c,o),/ +/,i.either(d,f),/ *#/)}]},m={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},p={className:"label",begin:/^\w+:/},y=t.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),x=t.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[a,s,h,m,p,y,x,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[x]}]}}return fm=e,fm}var hm,Rv;function AD(){if(Rv)return hm;Rv=1;function e(t){t.regex;const i=t.COMMENT(/\(;/,/;\)/);i.contains.push("self");const a=t.COMMENT(/;;/,/$/),s=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],o={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},c={className:"variable",begin:/\$[\w_]+/},d={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},f={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},h={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},m={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:s},contains:[a,i,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},c,d,o,t.QUOTE_STRING_MODE,h,m,f]}}return hm=e,hm}var mm,Dv;function CD(){if(Dv)return mm;Dv=1;var e=V4();return e.registerLanguage("xml",Y4()),e.registerLanguage("bash",X4()),e.registerLanguage("c",K4()),e.registerLanguage("cpp",Z4()),e.registerLanguage("csharp",Q4()),e.registerLanguage("css",W4()),e.registerLanguage("markdown",J4()),e.registerLanguage("diff",eD()),e.registerLanguage("ruby",tD()),e.registerLanguage("go",nD()),e.registerLanguage("graphql",iD()),e.registerLanguage("ini",rD()),e.registerLanguage("java",aD()),e.registerLanguage("javascript",sD()),e.registerLanguage("json",lD()),e.registerLanguage("kotlin",oD()),e.registerLanguage("less",cD()),e.registerLanguage("lua",uD()),e.registerLanguage("makefile",dD()),e.registerLanguage("perl",fD()),e.registerLanguage("objectivec",hD()),e.registerLanguage("php",mD()),e.registerLanguage("php-template",pD()),e.registerLanguage("plaintext",gD()),e.registerLanguage("python",bD()),e.registerLanguage("python-repl",xD()),e.registerLanguage("r",yD()),e.registerLanguage("rust",vD()),e.registerLanguage("scss",_D()),e.registerLanguage("shell",wD()),e.registerLanguage("sql",ED()),e.registerLanguage("swift",ND()),e.registerLanguage("yaml",SD()),e.registerLanguage("typescript",kD()),e.registerLanguage("vbnet",TD()),e.registerLanguage("wasm",AD()),e.HighlightJS=e,e.default=e,mm=e,mm}var MD=CD();const Gn=ko(MD);function OD(e){const t=e.regex,i="HTTP/([32]|1\\.[01])",a=/[A-Za-z][A-Za-z0-9-]*/,s={className:"attribute",begin:t.concat("^",a,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},o=[s,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+i+" \\d{3})",end:/$/,contains:[{className:"meta",begin:i},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},{begin:"(?=^[A-Z]+ (.*?) "+i+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:i},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},e.inherit(s,{relevance:0})]}}function RD(e){const t=e.regex,i={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},s={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,i],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[i]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,i],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},i]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:s.contains,keywords:{section:"upstream location"}},{className:"section",begin:t.concat(e.UNDERSCORE_IDENT_RE+t.lookahead(/\s+\{/)),relevance:0},{begin:t.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:s}],relevance:0}],illegal:"[^\\s\\}\\{]"}}function DD(e){const t={className:"number",begin:/[$%]\d+/},i={className:"number",begin:/\b\d+/},a={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},s={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[a,s,e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{scope:"punctuation",match:/\\\n/},{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",t]},a,i,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}function jD(e){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}}function LD(e){const t="[ \\t\\f]*",i="[ \\t\\f]+",a=t+"[:=]"+t,s=i,o="("+a+"|"+s+")",c="([^\\\\:= \\t\\f\\n]|\\\\.)+",d={end:o,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:c+a},{begin:c+s}],contains:[{className:"attr",begin:c,endsParent:!0}],starts:d},{className:"attr",begin:c+t+"$"}]}}Gn.registerLanguage("http",OD);Gn.registerLanguage("nginx",RD);Gn.registerLanguage("apache",DD);Gn.registerLanguage("dockerfile",jD);Gn.registerLanguage("properties",LD);function iE({className:e,children:t,node:i}){var w,k;const[a,s]=ee.useState(!1),o=String(t).replace(/\n$/,""),c=/language-(\w+)/.exec(e||"");if(!(o.includes(`
-`)||c))return g.jsx("code",{className:`${e||""} bg-white/8 px-1.5 py-0.5 rounded text-[13px]`,children:t});const f=((w=i==null?void 0:i.data)==null?void 0:w.meta)||((k=i==null?void 0:i.properties)==null?void 0:k.metastring)||"",h=/title=["']?([^"'\s}]+)["']?/.exec(f),m=/startLineNumber=(\d+)/.exec(f),p=(h==null?void 0:h[1])||null,y=m?parseInt(m[1],10):1,x=p?m?`${p}:${y}`:p:null;let _;if(c)try{_=Gn.highlight(o,{language:c[1],ignoreIllegals:!0}).value}catch{_=Gn.highlightAuto(o).value}else _=Gn.highlightAuto(o).value;const N=_.split(`
-`),S=()=>{xp(o),s(!0),setTimeout(()=>s(!1),2e3)};return g.jsxs("div",{className:"group/code relative rounded-md border border-[#2a2a2a] my-4 text-[#ddd] overflow-hidden",children:[x?g.jsxs("div",{className:"flex items-stretch",children:[g.jsxs("span",{className:"relative flex items-center text-[13px] text-[#999] font-mono px-4 py-2 border-r border-[#2a2a2a]",children:[x,g.jsx("span",{className:"absolute top-0 inset-x-0 h-0.5 bg-white/60 rounded-full"})]}),g.jsx("div",{className:"flex-1 border-b border-[#2a2a2a]"}),g.jsx("button",{onClick:S,className:"px-3 py-2 text-[#555] hover:text-white transition-colors border-b border-[#2a2a2a]","aria-label":"Copy code",children:a?g.jsx(Fs,{className:"w-3.5 h-3.5 text-emerald-400"}):g.jsx(ho,{className:"w-3.5 h-3.5"})})]}):g.jsx("button",{onClick:S,className:"absolute top-2 right-2 z-10 p-1 rounded text-[#444] hover:text-white opacity-0 group-hover/code:opacity-100 transition-opacity","aria-label":"Copy code",children:a?g.jsx(Fs,{className:"w-3.5 h-3.5 text-emerald-400"}):g.jsx(ho,{className:"w-3.5 h-3.5"})}),g.jsx("div",{className:"overflow-auto max-h-[400px]",children:g.jsx("table",{className:"w-full border-collapse font-mono text-[12px] leading-[22px] [font-variant-ligatures:none]",children:g.jsx("tbody",{children:N.map((E,M)=>g.jsxs("tr",{children:[g.jsx("td",{className:"select-none w-[1px] whitespace-nowrap px-4 text-right text-[#555] align-top text-[12px] leading-[22px] border-r border-[#2a2a2a]",children:y+M}),g.jsx("td",{className:"pl-4 pr-4 whitespace-pre",dangerouslySetInnerHTML:{__html:E||`
-`}})]},M))})})})]})}function $p(){return e=>{const t=i=>{var a;if(i.type==="element"&&i.tagName==="pre"&&i.children){const s=i.children.find(o=>o.type==="element"&&o.tagName==="code");(a=s==null?void 0:s.data)!=null&&a.meta&&(s.properties=s.properties||{},s.properties.metastring=s.data.meta)}i.children&&i.children.forEach(s=>t(s))};t(e)}}const qp={code:iE,pre:({children:e})=>g.jsx(g.Fragment,{children:e})};function aa({title:e,content:t,action:i}){return g.jsxs("section",{children:[(e||i)&&g.jsxs("div",{className:"flex items-center justify-between gap-3 mb-3",children:[e?g.jsx("h2",{className:"text-xl font-semibold text-white",children:e}):g.jsx("span",{}),i]}),g.jsx("div",{className:"prose-markdown",children:g.jsx(zp,{remarkPlugins:[Hp],rehypePlugins:[$p],components:qp,children:t})})]})}class zD{diff(t,i,a={}){let s;typeof a=="function"?(s=a,a={}):"callback"in a&&(s=a.callback);const o=this.castInput(t,a),c=this.castInput(i,a),d=this.removeEmpty(this.tokenize(o,a)),f=this.removeEmpty(this.tokenize(c,a));return this.diffWithOptionsObj(d,f,a,s)}diffWithOptionsObj(t,i,a,s){var o;const c=k=>{if(k=this.postProcess(k,a),s){setTimeout(function(){s(k)},0);return}else return k},d=i.length,f=t.length;let h=1,m=d+f;a.maxEditLength!=null&&(m=Math.min(m,a.maxEditLength));const p=(o=a.timeout)!==null&&o!==void 0?o:1/0,y=Date.now()+p,x=[{oldPos:-1,lastComponent:void 0}];let _=this.extractCommon(x[0],i,t,0,a);if(x[0].oldPos+1>=f&&_+1>=d)return c(this.buildValues(x[0].lastComponent,i,t));let N=-1/0,S=1/0;const w=()=>{for(let k=Math.max(N,-h);k<=Math.min(S,h);k+=2){let E;const M=x[k-1],U=x[k+1];M&&(x[k-1]=void 0);let R=!1;if(U){const I=U.oldPos-k;R=U&&0<=I&&I<d}const B=M&&M.oldPos+1<f;if(!R&&!B){x[k]=void 0;continue}if(!B||R&&M.oldPos<U.oldPos?E=this.addToPath(U,!0,!1,0,a):E=this.addToPath(M,!1,!0,1,a),_=this.extractCommon(E,i,t,k,a),E.oldPos+1>=f&&_+1>=d)return c(this.buildValues(E.lastComponent,i,t))||!0;x[k]=E,E.oldPos+1>=f&&(S=Math.min(S,k-1)),_+1>=d&&(N=Math.max(N,k+1))}h++};if(s)(function k(){setTimeout(function(){if(h>m||Date.now()>y)return s(void 0);w()||k()},0)})();else for(;h<=m&&Date.now()<=y;){const k=w();if(k)return k}}addToPath(t,i,a,s,o){const c=t.lastComponent;return c&&!o.oneChangePerToken&&c.added===i&&c.removed===a?{oldPos:t.oldPos+s,lastComponent:{count:c.count+1,added:i,removed:a,previousComponent:c.previousComponent}}:{oldPos:t.oldPos+s,lastComponent:{count:1,added:i,removed:a,previousComponent:c}}}extractCommon(t,i,a,s,o){const c=i.length,d=a.length;let f=t.oldPos,h=f-s,m=0;for(;h+1<c&&f+1<d&&this.equals(a[f+1],i[h+1],o);)h++,f++,m++,o.oneChangePerToken&&(t.lastComponent={count:1,previousComponent:t.lastComponent,added:!1,removed:!1});return m&&!o.oneChangePerToken&&(t.lastComponent={count:m,previousComponent:t.lastComponent,added:!1,removed:!1}),t.oldPos=f,h}equals(t,i,a){return a.comparator?a.comparator(t,i):t===i||!!a.ignoreCase&&t.toLowerCase()===i.toLowerCase()}removeEmpty(t){const i=[];for(let a=0;a<t.length;a++)t[a]&&i.push(t[a]);return i}castInput(t,i){return t}tokenize(t,i){return Array.from(t)}join(t){return t.join("")}postProcess(t,i){return t}get useLongestToken(){return!1}buildValues(t,i,a){const s=[];let o;for(;t;)s.push(t),o=t.previousComponent,delete t.previousComponent,t=o;s.reverse();const c=s.length;let d=0,f=0,h=0;for(;d<c;d++){const m=s[d];if(m.removed)m.value=this.join(a.slice(h,h+m.count)),h+=m.count;else{if(!m.added&&this.useLongestToken){let p=i.slice(f,f+m.count);p=p.map(function(y,x){const _=a[h+x];return _.length>y.length?_:y}),m.value=this.join(p)}else m.value=this.join(i.slice(f,f+m.count));f+=m.count,m.added||(h+=m.count)}}return s}}class ID extends zD{constructor(){super(...arguments),this.tokenize=HD}equals(t,i,a){return a.ignoreWhitespace?((!a.newlineIsToken||!t.includes(`
-`))&&(t=t.trim()),(!a.newlineIsToken||!i.includes(`
-`))&&(i=i.trim())):a.ignoreNewlineAtEof&&!a.newlineIsToken&&(t.endsWith(`
-`)&&(t=t.slice(0,-1)),i.endsWith(`
-`)&&(i=i.slice(0,-1))),super.equals(t,i,a)}}const BD=new ID;function UD(e,t,i){return BD.diff(e,t,i)}function HD(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
-`));const i=[],a=e.split(/(\n|\r\n)/);a[a.length-1]||a.pop();for(let s=0;s<a.length;s++){const o=a[s];s%2&&!t.newlineIsToken?i[i.length-1]+=o:i.push(o)}return i}function $D(e,t){try{return Gn.highlight(e,{language:t,ignoreIllegals:!0}).value}catch{return Gn.highlightAuto(e).value}}function qD({file:e,startLine:t,endLine:i,before:a,after:s,onCopy:o}){const[c,d]=ee.useState(!1),f=i&&i!==t?`${t}-${i}`:`${t}`,h=SA(e)||"text",m=UD(a,s);let p=t,y=t;const x=m.flatMap(N=>N.value.replace(/\n$/,"").split(`
-`).map(S=>{const w=S===""?`
-`:h!=="text"?$D(S,h):S.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");let k="",E="";return N.removed?k=String(p++):(N.added||(k=String(p++)),E=String(y++)),{highlighted:w,added:!!N.added,removed:!!N.removed,leftNo:k,rightNo:E}})),_=()=>{xp(s),d(!0),setTimeout(()=>d(!1),2e3),o==null||o()};return g.jsxs("div",{className:"rounded-md border border-[#2a2a2a] overflow-hidden",children:[g.jsxs("div",{className:"flex items-stretch",children:[g.jsxs("span",{className:"relative flex items-center text-[13px] text-[#999] font-mono px-4 py-2 border-r border-[#2a2a2a] break-all",children:[e,":",f,g.jsx("span",{className:"absolute top-0 inset-x-0 h-0.5 bg-white/60 rounded-full"})]}),g.jsx("div",{className:"flex-1 border-b border-[#2a2a2a]"}),g.jsx("button",{onClick:_,className:"px-3 py-2 text-[#555] hover:text-white transition-colors flex-shrink-0 border-b border-[#2a2a2a]","aria-label":"Copy fixed code",children:c?g.jsx(Fs,{className:"w-3.5 h-3.5 text-emerald-400"}):g.jsx(ho,{className:"w-3.5 h-3.5"})})]}),g.jsx("div",{className:"overflow-auto max-h-[400px]",children:g.jsx("table",{className:"w-full border-collapse font-mono text-[12px] leading-[22px] [font-variant-ligatures:none]",children:g.jsx("tbody",{children:x.map((N,S)=>g.jsxs("tr",{className:N.added?"bg-blue-500/[0.12]":N.removed?"bg-red-500/[0.12]":"",children:[g.jsx("td",{className:"select-none w-[1px] whitespace-nowrap pl-4 pr-1.5 text-right text-[#555] align-top text-[12px] leading-[22px]",children:N.leftNo}),g.jsx("td",{className:"select-none w-[1px] whitespace-nowrap pl-1.5 pr-4 text-right text-[#555] align-top text-[12px] leading-[22px] border-r border-[#2a2a2a]",children:N.rightNo}),g.jsx("td",{className:"pl-4 pr-4 whitespace-pre",dangerouslySetInnerHTML:{__html:N.highlighted}})]},S))})})})]})}function PD({description:e,scriptCode:t,onCopy:i}){const[a,s]=ee.useState(!1);if(!e&&!t)return null;const o=()=>{t&&(xp(t),s(!0),setTimeout(()=>s(!1),2e3),i==null||i())};return g.jsxs("section",{children:[g.jsx("h2",{className:"text-xl font-semibold text-white mb-3",children:"Proof of Concept"}),g.jsxs("div",{className:"space-y-4",children:[e&&g.jsx("div",{className:"prose-markdown",children:g.jsx(zp,{remarkPlugins:[Hp],rehypePlugins:[$p],components:qp,children:e})}),t&&g.jsxs("div",{className:"group/poc relative rounded-md border border-[#2a2a2a] overflow-hidden",children:[g.jsxs("div",{className:"flex items-stretch",children:[g.jsxs("span",{className:"relative flex items-center text-[13px] text-[#999] font-mono px-4 py-2 border-r border-[#2a2a2a]",children:["PoC Script",g.jsx("span",{className:"absolute top-0 inset-x-0 h-0.5 bg-white/60 rounded-full"})]}),g.jsx("div",{className:"flex-1 border-b border-[#2a2a2a]"}),g.jsx("button",{onClick:o,className:"px-3 py-2 text-[#555] hover:text-white transition-colors flex-shrink-0 border-b border-[#2a2a2a]","aria-label":"Copy PoC code",children:a?g.jsx(Fs,{className:"w-3.5 h-3.5 text-emerald-400"}):g.jsx(ho,{className:"w-3.5 h-3.5"})})]}),g.jsx("div",{className:"overflow-auto max-h-[400px] px-4 py-3",children:g.jsx("pre",{className:"font-mono text-[12px] leading-[22px] whitespace-pre [font-variant-ligatures:none]",children:g.jsx("code",{dangerouslySetInnerHTML:{__html:Gn.highlight(t,{language:"python"}).value}})})})]})]})]})}function rE(e){const t=e.match(/(?:https?:\/\/)?(?:www\.)?github\.com\/([^\s/]+\/[^\s/]+)/);if(t){const s=t[1].replace(/\.git$/,"");return{display:s,href:`https://github.com/${s}`,provider:"github"}}const i=e.match(/(?:https?:\/\/)?(?:www\.)?gitlab\.com\/([^\s/]+\/[^\s/]+)/);if(i){const s=i[1].replace(/\.git$/,"");return{display:s,href:`https://gitlab.com/${s}`,provider:"gitlab"}}const a=e.match(/(?:https?:\/\/)?(?:www\.)?bitbucket\.org\/([^\s/]+\/[^\s/]+)/);if(a){const s=a[1].replace(/\.git$/,"");return{display:s,href:`https://bitbucket.org/${s}`,provider:"bitbucket"}}return/^https?:\/\//i.test(e)?{display:e.replace(/^https?:\/\/(www\.)?/,""),href:e,provider:null}:/^[a-zA-Z0-9][\w.-]*\.[a-zA-Z]{2,}/.test(e)?{display:e,href:`https://${e}`,provider:null}:{display:e,href:null,provider:null}}function go(e,t){return e?rE(e).display.replace(/\/$/,""):t||"Untitled scan"}function FD({className:e}){return g.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:e,"aria-hidden":"true",children:g.jsx("path",{d:"M2.65 3a.72.72 0 0 0-.72.83l2.86 17.39a.98.98 0 0 0 .96.82h13.72a.72.72 0 0 0 .72-.6l2.86-17.4A.72.72 0 0 0 22.3 3H2.65Zm12.1 12.53H9.3L8.06 8.9h7.8l-1.11 6.63Z"})})}function GD({provider:e,className:t}){const i=t??"w-4 h-4";return e==="gitlab"?g.jsx(xT,{className:`${i} text-orange-400`}):e==="bitbucket"?g.jsx(FD,{className:`${i} text-blue-400`}):g.jsx(gT,{className:`${i} text-white`})}const VD={attack_vector:{N:"Remotely exploitable",A:"Adjacent network",L:"Local access required",P:"Physical access required"},attack_complexity:{L:"Easy to exploit",H:"Requires specific conditions"},privileges_required:{N:"No authentication needed",L:"Low privileges needed",H:"High privileges needed"},user_interaction:{N:"No user action required",R:"Requires user action",P:"Passive user role",A:"Active user role"},scope:{U:"Impact stays contained",C:"Can spread to other systems"},confidentiality:{N:"No data exposure",L:"Partial data exposure",H:"Full data exposure"},integrity:{N:"No data modification",L:"Limited modification",H:"Full data modification"},availability:{N:"No service disruption",L:"Limited disruption",H:"Full service disruption"}},YD={attack_vector:{N:"high",A:"medium",L:"low",P:"low"},attack_complexity:{L:"high",H:"low"},privileges_required:{N:"high",L:"medium",H:"low"},user_interaction:{N:"high",R:"low",P:"medium",A:"low"},scope:{C:"high",U:"low"},confidentiality:{H:"high",L:"medium",N:"low"},integrity:{H:"high",L:"medium",N:"low"},availability:{H:"high",L:"medium",N:"low"}},XD={high:"bg-red-500/15 text-red-400 border-red-500/25",medium:"bg-yellow-500/15 text-yellow-400 border-yellow-500/25",low:"bg-[#222] text-[#666] border-[#333]"},KD=[{label:"Exploitability",keys:["attack_vector","attack_complexity","privileges_required","user_interaction"]},{label:"Impact",keys:["scope","confidentiality","integrity","availability"]}];function ZD(e,t,i,a,s){const o=e.replace(/\.git$/,"").replace(/\/+$/,""),c=a.split("/").map(encodeURIComponent).join("/"),d=i.split("/").map(encodeURIComponent).join("/");return t==="github"?`${o}/blob/${d}/${c}#L${s}`:t==="gitlab"?`${o}/-/blob/${d}/${c}#L${s}`:null}function QD({vulnerability:e,statusSlot:t,slackThreadUrl:i}){var R;const{severity:a,cvss:s,cve:o,cwe:c,fix_effort:d,created_at:f,target:h,endpoint:m,method:p,code_locations:y,cvss_breakdown:x,location_meta:_}=e,[N,S]=ee.useState(!0),w=y==null?void 0:y.filter(B=>B.fix_before&&B.fix_after),k=w&&w.length>0,E=h?rE(h):null,M=!!(h||m||p||k),U=x&&Object.values(x).some(B=>B!=null);return g.jsxs("aside",{className:"lg:sticky lg:top-6 lg:max-h-[calc(100vh-3rem)] lg:overflow-y-auto",children:[g.jsx("div",{className:"pb-4",children:g.jsxs("div",{className:"space-y-3",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"Severity"}),g.jsxs("div",{className:"flex items-center gap-1.5",children:[g.jsx("div",{className:`w-2 h-2 rounded-full ${bp(a)}`,"aria-hidden":"true"}),g.jsx("span",{className:"text-sm font-medium capitalize text-white",children:a})]})]}),g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"CVSS Score"}),g.jsx("span",{className:"text-sm font-semibold tabular-nums text-white",children:s!==null?s:"N/A"})]}),o&&g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"CVE"}),g.jsx("span",{className:"text-sm text-white font-mono",children:o})]}),c&&c.length>0&&g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"CWE"}),g.jsx("span",{className:"text-xs text-white font-mono truncate max-w-[80%] text-right",title:c.join(" · "),children:c.join(" · ")})]}),d&&g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"Fix Effort"}),g.jsx("span",{className:`inline-flex items-center px-2 py-0.5 text-[11px] font-medium rounded-full border ${((R=EA[d])==null?void 0:R.color)??"text-[#666]"}`,children:d.charAt(0).toUpperCase()+d.slice(1)})]}),g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"Discovered"}),g.jsxs("div",{className:"flex items-center gap-1.5",children:[g.jsx(k_,{className:"w-3 h-3 text-[#444]","aria-hidden":"true"}),g.jsx("span",{className:"text-sm text-white",children:Lm(f)})]})]}),g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"Status"}),t]})]})}),M&&g.jsxs("div",{className:"border-t border-[#191919] pt-4 pb-4",children:[g.jsx("p",{className:"text-xs font-medium text-[#aaa] mb-2.5",children:"Asset"}),g.jsxs("div",{className:"space-y-2.5",children:[h&&E&&g.jsxs("div",{className:"flex items-center gap-1.5",children:[E.provider?g.jsx("span",{className:"flex-shrink-0 [&_svg]:w-3.5 [&_svg]:h-3.5","aria-hidden":"true",children:g.jsx(GD,{provider:E.provider})}):g.jsx(pp,{className:"w-3.5 h-3.5 text-[#555] flex-shrink-0","aria-hidden":"true"}),E.href?g.jsx("a",{href:E.href,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-white hover:text-[#ccc] break-words min-w-0 transition-colors",children:E.display}):g.jsx("span",{className:"text-sm text-white break-words min-w-0",children:E.display})]}),m&&g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"Endpoint"}),g.jsx("span",{className:"text-xs text-white font-mono truncate max-w-[75%] text-right",children:m})]}),p&&g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"Method"}),g.jsx("span",{className:"text-xs text-white font-mono",children:p})]}),k&&g.jsxs("div",{children:[g.jsx("span",{className:"text-xs text-[#aaa] mb-1.5 block",children:"Locations"}),g.jsx("div",{className:"space-y-0.5",children:w.map((B,I)=>{const Z=`${B.file}:${B.start_line}`,j=_?ZD(_.repo_url,_.provider,_.branch,B.file,B.start_line):null;return j?g.jsx("a",{href:j,target:"_blank",rel:"noopener noreferrer",className:"text-[13px] text-[#888] hover:text-white font-mono break-all transition-colors block",children:Z},`loc-${I}`):g.jsx("span",{className:"text-[13px] text-[#888] font-mono break-all block",children:Z},`loc-${I}`)})})]})]})]}),U&&g.jsxs("div",{className:"border-t border-[#191919] pt-4",children:[g.jsxs("button",{onClick:()=>S(!N),className:"flex items-center justify-between w-full mb-2.5 group","aria-expanded":N,children:[g.jsx("span",{className:"text-xs font-medium text-[#aaa]",children:"Risk Assessment"}),g.jsx(fo,{className:`w-3.5 h-3.5 text-[#555] group-hover:text-white transition-transform ${N?"":"-rotate-90"}`,"aria-hidden":"true"})]}),g.jsx("div",{className:`space-y-3 ${N?"":"hidden"}`,children:KD.map(B=>{const I=B.keys.filter(Z=>x[Z]!=null);return I.length===0?null:g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[g.jsx("p",{className:"text-[10px] uppercase tracking-wider text-[#444] font-medium",children:B.label}),g.jsx("p",{className:"text-[10px] uppercase tracking-wider text-[#444] font-medium mr-2",children:"Risk"})]}),g.jsx("div",{className:"space-y-1",children:I.map(Z=>{var G,A;const j=x[Z],z=j?((G=YD[Z])==null?void 0:G[j])??"low":"low",V=j?((A=VD[Z])==null?void 0:A[j])??j:"N/A";return g.jsxs("div",{className:"flex items-center justify-between py-0.5",children:[g.jsx("span",{className:"text-[12px] text-[#aaa]",children:V}),g.jsx("span",{className:`text-[10px] font-medium px-1.5 py-0.5 rounded border ${XD[z]}`,children:z})]},Z)})})]},B.label)})})]})]})}function jv(e){return e?Math.floor((Date.now()-new Date(e).getTime())/1e3)<604800?` ${Lm(e)}`:` on ${Lm(e)}`:""}const WD={open:null,in_progress:{icon:k_,label:"Marked as In Progress",iconColor:"text-blue-400"},snoozed:{icon:O2,label:"Snoozed",iconColor:"text-purple-400"},fixed:{icon:Y2,label:"Marked as Fixed",iconColor:"text-emerald-400"},ignored:{icon:__,label:"Marked as Ignored",iconColor:"text-[#888]"}};function JD({vulnerability:e}){const t=wA[e.status],i=e.code_locations&&e.code_locations.length>0,a=i||e.remediation_steps,s=!!(e.evidence||e.assumptions||e.poc_description||e.poc_script_code),[o,c]=ee.useState("fix"),f=[{id:"fix",label:"Fix",show:!!a},{id:"reproduction",label:"Reproduction",show:s}].filter(h=>h.show);return g.jsxs("div",{className:"space-y-6",children:[g.jsxs("div",{children:[g.jsxs("div",{className:"mb-2",children:[e.display_number&&g.jsx("span",{className:"text-xs font-mono text-[#555] block mb-1",children:EC(e.display_number)}),g.jsx("h1",{className:"text-2xl font-semibold text-white",children:e.title})]}),g.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[g.jsx("span",{className:`inline-flex items-center gap-1.5 px-3 py-1 text-sm font-medium rounded-full border ${t.color}`,children:t.label}),g.jsxs("div",{className:`inline-flex items-center gap-1.5 px-3 py-1 text-sm font-semibold rounded-full border ${z_[e.severity]}`,title:Zc(e)?`Adjusted from ${e.original_severity}`:void 0,children:[g.jsx("div",{className:`w-2 h-2 rounded-full ${bp(e.severity)}`}),g.jsxs("span",{className:"capitalize",children:[e.severity,!Zc(e)&&e.cvss?` ${e.cvss}`:""]}),Zc(e)&&g.jsx(Gs,{className:"w-3 h-3 opacity-70","aria-hidden":"true"})]}),e.cve&&g.jsxs(g.Fragment,{children:[g.jsx("span",{className:"text-[#333]",children:"·"}),g.jsx("span",{className:"text-sm text-[#666] font-mono",children:e.cve})]})]})]}),e.status!=="open"&&(()=>{const h=WD[e.status];if(!h)return null;const m=h.icon;return g.jsxs("div",{className:"rounded-lg px-4 py-3.5 flex gap-3",style:{border:"1px solid rgba(255,255,255,0.08)"},children:[g.jsx(m,{className:`w-5 h-5 flex-shrink-0 mt-0.5 ${h.iconColor}`,"aria-hidden":"true"}),g.jsxs("div",{className:"min-w-0",children:[g.jsxs("p",{className:"text-sm font-semibold text-white",children:[h.label,jv(e.status_changed_at)]}),e.status_note&&g.jsxs("p",{className:"text-sm text-[#666] italic mt-1",children:["“",e.status_note,"”"]})]})]})})(),Zc(e)&&g.jsxs("div",{className:"rounded-lg px-4 py-3.5 flex gap-3",style:{border:"1px solid rgba(255,255,255,0.08)"},children:[g.jsx(Gs,{className:"w-5 h-5 flex-shrink-0 mt-0.5 text-orange-400","aria-hidden":"true"}),g.jsxs("div",{className:"min-w-0",children:[g.jsxs("p",{className:"text-sm font-semibold text-white",children:["Severity changed manually from"," ",g.jsx("span",{className:"capitalize",children:e.original_severity}),e.cvss!=null?` (${e.cvss})`:""," to"," ",g.jsx("span",{className:"capitalize",children:e.severity}),jv(e.severity_changed_at)]}),e.severity_override_reason&&g.jsxs("p",{className:"text-sm text-[#666] italic mt-1",children:["“",e.severity_override_reason,"”"]})]})]}),g.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_340px] gap-8",children:[g.jsxs("div",{className:"min-w-0",children:[g.jsxs("div",{className:"space-y-8",children:[g.jsx(aa,{title:"TL;DR",content:e.description}),e.impact&&g.jsx(aa,{title:"Impact",content:e.impact}),e.technical_analysis&&g.jsx(aa,{title:"Technical Details",content:e.technical_analysis})]}),f.length>0&&g.jsxs("div",{className:"mt-10",children:[g.jsx("div",{className:"border-b border-[#2a2a2a]",children:g.jsx("nav",{className:"flex gap-6","aria-label":"Tabs",children:f.map(h=>g.jsxs("button",{onClick:()=>c(h.id),className:`relative min-w-[80px] text-center pb-3 text-[16px] font-semibold transition-colors ${o===h.id?"text-white":"text-[#666] hover:text-white"}`,"aria-current":o===h.id?"page":void 0,children:[h.label,o===h.id&&g.jsx("span",{className:"absolute bottom-0 inset-x-0 h-0.5 bg-white rounded-full"})]},h.id))})}),a&&g.jsxs("div",{className:`pt-6 space-y-6 ${o==="fix"?"animate-tab-in":"hidden"}`,children:[e.remediation_steps&&g.jsx(aa,{title:"How do I fix it?",content:e.remediation_steps}),i&&e.code_locations.filter(h=>h.fix_before&&h.fix_after).map((h,m)=>g.jsx(qD,{file:h.file,startLine:h.start_line,endLine:h.end_line,before:h.fix_before,after:h.fix_after},`fix-${m}`))]}),s&&g.jsxs("div",{className:`pt-6 space-y-8 ${o==="reproduction"?"animate-tab-in":"hidden"}`,children:[e.assumptions&&g.jsx(aa,{title:"Assumptions",content:e.assumptions}),e.evidence&&g.jsx(aa,{title:"Evidence",content:e.evidence}),g.jsx(PD,{description:e.poc_description,scriptCode:e.poc_script_code})]})]})]}),g.jsx("div",{className:"lg:border-l lg:border-[#2a2a2a] lg:pl-6",children:g.jsx(QD,{vulnerability:e,statusSlot:g.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 text-xs font-medium rounded-full border ${t.color}`,children:[g.jsx("div",{className:`w-1.5 h-1.5 rounded-full ${t.dotColor}`}),t.label]})})})]}),g.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[g.jsx("p",{className:"text-sm font-semibold text-white",children:"Ship the fix with your team"}),g.jsx("p",{className:"mt-0.5 text-xs text-[#666]",children:"Take this finding into your team's workflow."}),g.jsxs("div",{className:"mt-3 flex flex-wrap gap-2.5",children:[g.jsx(ao,{label:"Auto-fix & open a PR",desc:"Fix it for you and open a PR, retested.",slug:"autofix",icon:_u,surface:"finding_detail"}),g.jsx(ao,{label:"Sync to Jira / Linear",desc:"Two-way sync findings to Jira, Linear, and Slack.",slug:"integrations",icon:hT,surface:"finding_detail"}),g.jsx(ao,{label:"Catch this in PR reviews",desc:"Pentest every pull request your team opens.",slug:"pr_reviews",icon:mp,surface:"finding_detail"})]})]})]})}const Lv=[{key:"critical",label:"critical",dotClass:"bg-red-500",textClass:"text-red-500"},{key:"high",label:"high",dotClass:"bg-orange-500",textClass:"text-orange-500"},{key:"medium",label:"medium",dotClass:"bg-yellow-500",textClass:"text-yellow-500"},{key:"low",label:"low",dotClass:"bg-blue-500",textClass:"text-blue-500"}];function ej({findings:e,className:t,unit:i="issues",trailing:a}){return e.total<=0?null:g.jsxs("div",{className:la("space-y-3",t),children:[g.jsxs("div",{className:"flex flex-wrap items-center gap-x-8 gap-y-3",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-2xl font-semibold text-white tabular-nums",children:e.total}),g.jsx("span",{className:"text-sm text-[#666]",children:i})]}),g.jsx("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-2",children:Lv.map(({key:s,label:o,dotClass:c,textClass:d})=>{const f=e[s];return f<=0?null:g.jsxs("div",{className:"flex items-center gap-1.5",children:[g.jsx("div",{className:la("w-2 h-2 rounded-full",c),"aria-hidden":"true"}),g.jsx("span",{className:la("text-sm tabular-nums",d),children:f}),g.jsx("span",{className:"text-xs text-[#555]",children:o})]},s)})}),a?g.jsx("div",{className:"flex items-center gap-2",children:a}):null]}),g.jsx("div",{className:"h-1.5 rounded-full bg-[#222] overflow-hidden flex",children:Lv.map(({key:s,dotClass:o})=>{const c=e[s];return c<=0?null:g.jsx("div",{className:la("h-full",o),style:{width:`${c/e.total*100}%`}},s)})})]})}function ln(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let i=0,a;i<e.length;i++)(a=ln(e[i]))!==""&&(t+=(t&&" ")+a);else for(let i in e)e[i]&&(t+=(t&&" ")+i);return t}var tj={value:()=>{}};function Vu(){for(var e=0,t=arguments.length,i={},a;e<t;++e){if(!(a=arguments[e]+"")||a in i||/[\s.]/.test(a))throw new Error("illegal type: "+a);i[a]=[]}return new pu(i)}function pu(e){this._=e}function nj(e,t){return e.trim().split(/^|\s+/).map(function(i){var a="",s=i.indexOf(".");if(s>=0&&(a=i.slice(s+1),i=i.slice(0,s)),i&&!t.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:a}})}pu.prototype=Vu.prototype={constructor:pu,on:function(e,t){var i=this._,a=nj(e+"",i),s,o=-1,c=a.length;if(arguments.length<2){for(;++o<c;)if((s=(e=a[o]).type)&&(s=ij(i[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<c;)if(s=(e=a[o]).type)i[s]=zv(i[s],e.name,t);else if(t==null)for(s in i)i[s]=zv(i[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var i in t)e[i]=t[i].slice();return new pu(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var i=new Array(s),a=0,s,o;a<s;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],a=0,s=o.length;a<s;++a)o[a].value.apply(t,i)},apply:function(e,t,i){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var a=this._[e],s=0,o=a.length;s<o;++s)a[s].value.apply(t,i)}};function ij(e,t){for(var i=0,a=e.length,s;i<a;++i)if((s=e[i]).name===t)return s.value}function zv(e,t,i){for(var a=0,s=e.length;a<s;++a)if(e[a].name===t){e[a]=tj,e=e.slice(0,a).concat(e.slice(a+1));break}return i!=null&&e.push({name:t,value:i}),e}var Ym="http://www.w3.org/1999/xhtml";const Iv={svg:"http://www.w3.org/2000/svg",xhtml:Ym,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Yu(e){var t=e+="",i=t.indexOf(":");return i>=0&&(t=e.slice(0,i))!=="xmlns"&&(e=e.slice(i+1)),Iv.hasOwnProperty(t)?{space:Iv[t],local:e}:e}function rj(e){return function(){var t=this.ownerDocument,i=this.namespaceURI;return i===Ym&&t.documentElement.namespaceURI===Ym?t.createElement(e):t.createElementNS(i,e)}}function aj(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function aE(e){var t=Yu(e);return(t.local?aj:rj)(t)}function sj(){}function Pp(e){return e==null?sj:function(){return this.querySelector(e)}}function lj(e){typeof e!="function"&&(e=Pp(e));for(var t=this._groups,i=t.length,a=new Array(i),s=0;s<i;++s)for(var o=t[s],c=o.length,d=a[s]=new Array(c),f,h,m=0;m<c;++m)(f=o[m])&&(h=e.call(f,f.__data__,m,o))&&("__data__"in f&&(h.__data__=f.__data__),d[m]=h);return new ai(a,this._parents)}function oj(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function cj(){return[]}function sE(e){return e==null?cj:function(){return this.querySelectorAll(e)}}function uj(e){return function(){return oj(e.apply(this,arguments))}}function dj(e){typeof e=="function"?e=uj(e):e=sE(e);for(var t=this._groups,i=t.length,a=[],s=[],o=0;o<i;++o)for(var c=t[o],d=c.length,f,h=0;h<d;++h)(f=c[h])&&(a.push(e.call(f,f.__data__,h,c)),s.push(f));return new ai(a,s)}function lE(e){return function(){return this.matches(e)}}function oE(e){return function(t){return t.matches(e)}}var fj=Array.prototype.find;function hj(e){return function(){return fj.call(this.children,e)}}function mj(){return this.firstElementChild}function pj(e){return this.select(e==null?mj:hj(typeof e=="function"?e:oE(e)))}var gj=Array.prototype.filter;function bj(){return Array.from(this.children)}function xj(e){return function(){return gj.call(this.children,e)}}function yj(e){return this.selectAll(e==null?bj:xj(typeof e=="function"?e:oE(e)))}function vj(e){typeof e!="function"&&(e=lE(e));for(var t=this._groups,i=t.length,a=new Array(i),s=0;s<i;++s)for(var o=t[s],c=o.length,d=a[s]=[],f,h=0;h<c;++h)(f=o[h])&&e.call(f,f.__data__,h,o)&&d.push(f);return new ai(a,this._parents)}function cE(e){return new Array(e.length)}function _j(){return new ai(this._enter||this._groups.map(cE),this._parents)}function Tu(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Tu.prototype={constructor:Tu,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function wj(e){return function(){return e}}function Ej(e,t,i,a,s,o){for(var c=0,d,f=t.length,h=o.length;c<h;++c)(d=t[c])?(d.__data__=o[c],a[c]=d):i[c]=new Tu(e,o[c]);for(;c<f;++c)(d=t[c])&&(s[c]=d)}function Nj(e,t,i,a,s,o,c){var d,f,h=new Map,m=t.length,p=o.length,y=new Array(m),x;for(d=0;d<m;++d)(f=t[d])&&(y[d]=x=c.call(f,f.__data__,d,t)+"",h.has(x)?s[d]=f:h.set(x,f));for(d=0;d<p;++d)x=c.call(e,o[d],d,o)+"",(f=h.get(x))?(a[d]=f,f.__data__=o[d],h.delete(x)):i[d]=new Tu(e,o[d]);for(d=0;d<m;++d)(f=t[d])&&h.get(y[d])===f&&(s[d]=f)}function Sj(e){return e.__data__}function kj(e,t){if(!arguments.length)return Array.from(this,Sj);var i=t?Nj:Ej,a=this._parents,s=this._groups;typeof e!="function"&&(e=wj(e));for(var o=s.length,c=new Array(o),d=new Array(o),f=new Array(o),h=0;h<o;++h){var m=a[h],p=s[h],y=p.length,x=Tj(e.call(m,m&&m.__data__,h,a)),_=x.length,N=d[h]=new Array(_),S=c[h]=new Array(_),w=f[h]=new Array(y);i(m,p,N,S,w,x,t);for(var k=0,E=0,M,U;k<_;++k)if(M=N[k]){for(k>=E&&(E=k+1);!(U=S[E])&&++E<_;);M._next=U||null}}return c=new ai(c,a),c._enter=d,c._exit=f,c}function Tj(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Aj(){return new ai(this._exit||this._groups.map(cE),this._parents)}function Cj(e,t,i){var a=this.enter(),s=this,o=this.exit();return typeof e=="function"?(a=e(a),a&&(a=a.selection())):a=a.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),i==null?o.remove():i(o),a&&s?a.merge(s).order():s}function Mj(e){for(var t=e.selection?e.selection():e,i=this._groups,a=t._groups,s=i.length,o=a.length,c=Math.min(s,o),d=new Array(s),f=0;f<c;++f)for(var h=i[f],m=a[f],p=h.length,y=d[f]=new Array(p),x,_=0;_<p;++_)(x=h[_]||m[_])&&(y[_]=x);for(;f<s;++f)d[f]=i[f];return new ai(d,this._parents)}function Oj(){for(var e=this._groups,t=-1,i=e.length;++t<i;)for(var a=e[t],s=a.length-1,o=a[s],c;--s>=0;)(c=a[s])&&(o&&c.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(c,o),o=c);return this}function Rj(e){e||(e=Dj);function t(p,y){return p&&y?e(p.__data__,y.__data__):!p-!y}for(var i=this._groups,a=i.length,s=new Array(a),o=0;o<a;++o){for(var c=i[o],d=c.length,f=s[o]=new Array(d),h,m=0;m<d;++m)(h=c[m])&&(f[m]=h);f.sort(t)}return new ai(s,this._parents).order()}function Dj(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function jj(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Lj(){return Array.from(this)}function zj(){for(var e=this._groups,t=0,i=e.length;t<i;++t)for(var a=e[t],s=0,o=a.length;s<o;++s){var c=a[s];if(c)return c}return null}function Ij(){let e=0;for(const t of this)++e;return e}function Bj(){return!this.node()}function Uj(e){for(var t=this._groups,i=0,a=t.length;i<a;++i)for(var s=t[i],o=0,c=s.length,d;o<c;++o)(d=s[o])&&e.call(d,d.__data__,o,s);return this}function Hj(e){return function(){this.removeAttribute(e)}}function $j(e){return function(){this.removeAttributeNS(e.space,e.local)}}function qj(e,t){return function(){this.setAttribute(e,t)}}function Pj(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Fj(e,t){return function(){var i=t.apply(this,arguments);i==null?this.removeAttribute(e):this.setAttribute(e,i)}}function Gj(e,t){return function(){var i=t.apply(this,arguments);i==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,i)}}function Vj(e,t){var i=Yu(e);if(arguments.length<2){var a=this.node();return i.local?a.getAttributeNS(i.space,i.local):a.getAttribute(i)}return this.each((t==null?i.local?$j:Hj:typeof t=="function"?i.local?Gj:Fj:i.local?Pj:qj)(i,t))}function uE(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Yj(e){return function(){this.style.removeProperty(e)}}function Xj(e,t,i){return function(){this.style.setProperty(e,t,i)}}function Kj(e,t,i){return function(){var a=t.apply(this,arguments);a==null?this.style.removeProperty(e):this.style.setProperty(e,a,i)}}function Zj(e,t,i){return arguments.length>1?this.each((t==null?Yj:typeof t=="function"?Kj:Xj)(e,t,i??"")):Ys(this.node(),e)}function Ys(e,t){return e.style.getPropertyValue(t)||uE(e).getComputedStyle(e,null).getPropertyValue(t)}function Qj(e){return function(){delete this[e]}}function Wj(e,t){return function(){this[e]=t}}function Jj(e,t){return function(){var i=t.apply(this,arguments);i==null?delete this[e]:this[e]=i}}function eL(e,t){return arguments.length>1?this.each((t==null?Qj:typeof t=="function"?Jj:Wj)(e,t)):this.node()[e]}function dE(e){return e.trim().split(/^|\s+/)}function Fp(e){return e.classList||new fE(e)}function fE(e){this._node=e,this._names=dE(e.getAttribute("class")||"")}fE.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function hE(e,t){for(var i=Fp(e),a=-1,s=t.length;++a<s;)i.add(t[a])}function mE(e,t){for(var i=Fp(e),a=-1,s=t.length;++a<s;)i.remove(t[a])}function tL(e){return function(){hE(this,e)}}function nL(e){return function(){mE(this,e)}}function iL(e,t){return function(){(t.apply(this,arguments)?hE:mE)(this,e)}}function rL(e,t){var i=dE(e+"");if(arguments.length<2){for(var a=Fp(this.node()),s=-1,o=i.length;++s<o;)if(!a.contains(i[s]))return!1;return!0}return this.each((typeof t=="function"?iL:t?tL:nL)(i,t))}function aL(){this.textContent=""}function sL(e){return function(){this.textContent=e}}function lL(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function oL(e){return arguments.length?this.each(e==null?aL:(typeof e=="function"?lL:sL)(e)):this.node().textContent}function cL(){this.innerHTML=""}function uL(e){return function(){this.innerHTML=e}}function dL(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function fL(e){return arguments.length?this.each(e==null?cL:(typeof e=="function"?dL:uL)(e)):this.node().innerHTML}function hL(){this.nextSibling&&this.parentNode.appendChild(this)}function mL(){return this.each(hL)}function pL(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function gL(){return this.each(pL)}function bL(e){var t=typeof e=="function"?e:aE(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function xL(){return null}function yL(e,t){var i=typeof e=="function"?e:aE(e),a=t==null?xL:typeof t=="function"?t:Pp(t);return this.select(function(){return this.insertBefore(i.apply(this,arguments),a.apply(this,arguments)||null)})}function vL(){var e=this.parentNode;e&&e.removeChild(this)}function _L(){return this.each(vL)}function wL(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function EL(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function NL(e){return this.select(e?EL:wL)}function SL(e){return arguments.length?this.property("__data__",e):this.node().__data__}function kL(e){return function(t){e.call(this,t,this.__data__)}}function TL(e){return e.trim().split(/^|\s+/).map(function(t){var i="",a=t.indexOf(".");return a>=0&&(i=t.slice(a+1),t=t.slice(0,a)),{type:t,name:i}})}function AL(e){return function(){var t=this.__on;if(t){for(var i=0,a=-1,s=t.length,o;i<s;++i)o=t[i],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):t[++a]=o;++a?t.length=a:delete this.__on}}}function CL(e,t,i){return function(){var a=this.__on,s,o=kL(t);if(a){for(var c=0,d=a.length;c<d;++c)if((s=a[c]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=o,s.options=i),s.value=t;return}}this.addEventListener(e.type,o,i),s={type:e.type,name:e.name,value:t,listener:o,options:i},a?a.push(s):this.__on=[s]}}function ML(e,t,i){var a=TL(e+""),s,o=a.length,c;if(arguments.length<2){var d=this.node().__on;if(d){for(var f=0,h=d.length,m;f<h;++f)for(s=0,m=d[f];s<o;++s)if((c=a[s]).type===m.type&&c.name===m.name)return m.value}return}for(d=t?CL:AL,s=0;s<o;++s)this.each(d(a[s],t,i));return this}function pE(e,t,i){var a=uE(e),s=a.CustomEvent;typeof s=="function"?s=new s(t,i):(s=a.document.createEvent("Event"),i?(s.initEvent(t,i.bubbles,i.cancelable),s.detail=i.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function OL(e,t){return function(){return pE(this,e,t)}}function RL(e,t){return function(){return pE(this,e,t.apply(this,arguments))}}function DL(e,t){return this.each((typeof t=="function"?RL:OL)(e,t))}function*jL(){for(var e=this._groups,t=0,i=e.length;t<i;++t)for(var a=e[t],s=0,o=a.length,c;s<o;++s)(c=a[s])&&(yield c)}var gE=[null];function ai(e,t){this._groups=e,this._parents=t}function Ro(){return new ai([[document.documentElement]],gE)}function LL(){return this}ai.prototype=Ro.prototype={constructor:ai,select:lj,selectAll:dj,selectChild:pj,selectChildren:yj,filter:vj,data:kj,enter:_j,exit:Aj,join:Cj,merge:Mj,selection:LL,order:Oj,sort:Rj,call:jj,nodes:Lj,node:zj,size:Ij,empty:Bj,each:Uj,attr:Vj,style:Zj,property:eL,classed:rL,text:oL,html:fL,raise:mL,lower:gL,append:bL,insert:yL,remove:_L,clone:NL,datum:SL,on:ML,dispatch:DL,[Symbol.iterator]:jL};function ii(e){return typeof e=="string"?new ai([[document.querySelector(e)]],[document.documentElement]):new ai([[e]],gE)}function zL(e){let t;for(;t=e.sourceEvent;)e=t;return e}function ki(e,t){if(e=zL(e),t===void 0&&(t=e.currentTarget),t){var i=t.ownerSVGElement||t;if(i.createSVGPoint){var a=i.createSVGPoint();return a.x=e.clientX,a.y=e.clientY,a=a.matrixTransform(t.getScreenCTM().inverse()),[a.x,a.y]}if(t.getBoundingClientRect){var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}const IL={passive:!1},bo={capture:!0,passive:!1};function pm(e){e.stopImmediatePropagation()}function $s(e){e.preventDefault(),e.stopImmediatePropagation()}function bE(e){var t=e.document.documentElement,i=ii(e).on("dragstart.drag",$s,bo);"onselectstart"in t?i.on("selectstart.drag",$s,bo):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function xE(e,t){var i=e.document.documentElement,a=ii(e).on("dragstart.drag",null);t&&(a.on("click.drag",$s,bo),setTimeout(function(){a.on("click.drag",null)},0)),"onselectstart"in i?a.on("selectstart.drag",null):(i.style.MozUserSelect=i.__noselect,delete i.__noselect)}const iu=e=>()=>e;function Xm(e,{sourceEvent:t,subject:i,target:a,identifier:s,active:o,x:c,y:d,dx:f,dy:h,dispatch:m}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:i,enumerable:!0,configurable:!0},target:{value:a,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:c,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:f,enumerable:!0,configurable:!0},dy:{value:h,enumerable:!0,configurable:!0},_:{value:m}})}Xm.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function BL(e){return!e.ctrlKey&&!e.button}function UL(){return this.parentNode}function HL(e,t){return t??{x:e.x,y:e.y}}function $L(){return navigator.maxTouchPoints||"ontouchstart"in this}function yE(){var e=BL,t=UL,i=HL,a=$L,s={},o=Vu("start","drag","end"),c=0,d,f,h,m,p=0;function y(M){M.on("mousedown.drag",x).filter(a).on("touchstart.drag",S).on("touchmove.drag",w,IL).on("touchend.drag touchcancel.drag",k).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(M,U){if(!(m||!e.call(this,M,U))){var R=E(this,t.call(this,M,U),M,U,"mouse");R&&(ii(M.view).on("mousemove.drag",_,bo).on("mouseup.drag",N,bo),bE(M.view),pm(M),h=!1,d=M.clientX,f=M.clientY,R("start",M))}}function _(M){if($s(M),!h){var U=M.clientX-d,R=M.clientY-f;h=U*U+R*R>p}s.mouse("drag",M)}function N(M){ii(M.view).on("mousemove.drag mouseup.drag",null),xE(M.view,h),$s(M),s.mouse("end",M)}function S(M,U){if(e.call(this,M,U)){var R=M.changedTouches,B=t.call(this,M,U),I=R.length,Z,j;for(Z=0;Z<I;++Z)(j=E(this,B,M,U,R[Z].identifier,R[Z]))&&(pm(M),j("start",M,R[Z]))}}function w(M){var U=M.changedTouches,R=U.length,B,I;for(B=0;B<R;++B)(I=s[U[B].identifier])&&($s(M),I("drag",M,U[B]))}function k(M){var U=M.changedTouches,R=U.length,B,I;for(m&&clearTimeout(m),m=setTimeout(function(){m=null},500),B=0;B<R;++B)(I=s[U[B].identifier])&&(pm(M),I("end",M,U[B]))}function E(M,U,R,B,I,Z){var j=o.copy(),z=ki(Z||R,U),V,G,A;if((A=i.call(M,new Xm("beforestart",{sourceEvent:R,target:y,identifier:I,active:c,x:z[0],y:z[1],dx:0,dy:0,dispatch:j}),B))!=null)return V=A.x-z[0]||0,G=A.y-z[1]||0,function q(O,H,K){var X=z,C;switch(O){case"start":s[I]=q,C=c++;break;case"end":delete s[I],--c;case"drag":z=ki(K||H,U),C=c;break}j.call(O,M,new Xm(O,{sourceEvent:H,subject:A,target:y,identifier:I,active:C,x:z[0]+V,y:z[1]+G,dx:z[0]-X[0],dy:z[1]-X[1],dispatch:j}),B)}}return y.filter=function(M){return arguments.length?(e=typeof M=="function"?M:iu(!!M),y):e},y.container=function(M){return arguments.length?(t=typeof M=="function"?M:iu(M),y):t},y.subject=function(M){return arguments.length?(i=typeof M=="function"?M:iu(M),y):i},y.touchable=function(M){return arguments.length?(a=typeof M=="function"?M:iu(!!M),y):a},y.on=function(){var M=o.on.apply(o,arguments);return M===o?y:M},y.clickDistance=function(M){return arguments.length?(p=(M=+M)*M,y):Math.sqrt(p)},y}function Gp(e,t,i){e.prototype=t.prototype=i,i.constructor=e}function vE(e,t){var i=Object.create(e.prototype);for(var a in t)i[a]=t[a];return i}function Do(){}var xo=.7,Au=1/xo,qs="\\s*([+-]?\\d+)\\s*",yo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Vi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qL=/^#([0-9a-f]{3,8})$/,PL=new RegExp(`^rgb\\(${qs},${qs},${qs}\\)$`),FL=new RegExp(`^rgb\\(${Vi},${Vi},${Vi}\\)$`),GL=new RegExp(`^rgba\\(${qs},${qs},${qs},${yo}\\)$`),VL=new RegExp(`^rgba\\(${Vi},${Vi},${Vi},${yo}\\)$`),YL=new RegExp(`^hsl\\(${yo},${Vi},${Vi}\\)$`),XL=new RegExp(`^hsla\\(${yo},${Vi},${Vi},${yo}\\)$`),Bv={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Gp(Do,Pa,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Uv,formatHex:Uv,formatHex8:KL,formatHsl:ZL,formatRgb:Hv,toString:Hv});function Uv(){return this.rgb().formatHex()}function KL(){return this.rgb().formatHex8()}function ZL(){return _E(this).formatHsl()}function Hv(){return this.rgb().formatRgb()}function Pa(e){var t,i;return e=(e+"").trim().toLowerCase(),(t=qL.exec(e))?(i=t[1].length,t=parseInt(t[1],16),i===6?$v(t):i===3?new Fn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):i===8?ru(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):i===4?ru(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=PL.exec(e))?new Fn(t[1],t[2],t[3],1):(t=FL.exec(e))?new Fn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=GL.exec(e))?ru(t[1],t[2],t[3],t[4]):(t=VL.exec(e))?ru(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=YL.exec(e))?Fv(t[1],t[2]/100,t[3]/100,1):(t=XL.exec(e))?Fv(t[1],t[2]/100,t[3]/100,t[4]):Bv.hasOwnProperty(e)?$v(Bv[e]):e==="transparent"?new Fn(NaN,NaN,NaN,0):null}function $v(e){return new Fn(e>>16&255,e>>8&255,e&255,1)}function ru(e,t,i,a){return a<=0&&(e=t=i=NaN),new Fn(e,t,i,a)}function QL(e){return e instanceof Do||(e=Pa(e)),e?(e=e.rgb(),new Fn(e.r,e.g,e.b,e.opacity)):new Fn}function Km(e,t,i,a){return arguments.length===1?QL(e):new Fn(e,t,i,a??1)}function Fn(e,t,i,a){this.r=+e,this.g=+t,this.b=+i,this.opacity=+a}Gp(Fn,Km,vE(Do,{brighter(e){return e=e==null?Au:Math.pow(Au,e),new Fn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?xo:Math.pow(xo,e),new Fn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Fn(Ha(this.r),Ha(this.g),Ha(this.b),Cu(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:qv,formatHex:qv,formatHex8:WL,formatRgb:Pv,toString:Pv}));function qv(){return`#${Ba(this.r)}${Ba(this.g)}${Ba(this.b)}`}function WL(){return`#${Ba(this.r)}${Ba(this.g)}${Ba(this.b)}${Ba((isNaN(this.opacity)?1:this.opacity)*255)}`}function Pv(){const e=Cu(this.opacity);return`${e===1?"rgb(":"rgba("}${Ha(this.r)}, ${Ha(this.g)}, ${Ha(this.b)}${e===1?")":`, ${e})`}`}function Cu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ha(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ba(e){return e=Ha(e),(e<16?"0":"")+e.toString(16)}function Fv(e,t,i,a){return a<=0?e=t=i=NaN:i<=0||i>=1?e=t=NaN:t<=0&&(e=NaN),new Ai(e,t,i,a)}function _E(e){if(e instanceof Ai)return new Ai(e.h,e.s,e.l,e.opacity);if(e instanceof Do||(e=Pa(e)),!e)return new Ai;if(e instanceof Ai)return e;e=e.rgb();var t=e.r/255,i=e.g/255,a=e.b/255,s=Math.min(t,i,a),o=Math.max(t,i,a),c=NaN,d=o-s,f=(o+s)/2;return d?(t===o?c=(i-a)/d+(i<a)*6:i===o?c=(a-t)/d+2:c=(t-i)/d+4,d/=f<.5?o+s:2-o-s,c*=60):d=f>0&&f<1?0:c,new Ai(c,d,f,e.opacity)}function JL(e,t,i,a){return arguments.length===1?_E(e):new Ai(e,t,i,a??1)}function Ai(e,t,i,a){this.h=+e,this.s=+t,this.l=+i,this.opacity=+a}Gp(Ai,JL,vE(Do,{brighter(e){return e=e==null?Au:Math.pow(Au,e),new Ai(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?xo:Math.pow(xo,e),new Ai(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,i=this.l,a=i+(i<.5?i:1-i)*t,s=2*i-a;return new Fn(gm(e>=240?e-240:e+120,s,a),gm(e,s,a),gm(e<120?e+240:e-120,s,a),this.opacity)},clamp(){return new Ai(Gv(this.h),au(this.s),au(this.l),Cu(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=Cu(this.opacity);return`${e===1?"hsl(":"hsla("}${Gv(this.h)}, ${au(this.s)*100}%, ${au(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Gv(e){return e=(e||0)%360,e<0?e+360:e}function au(e){return Math.max(0,Math.min(1,e||0))}function gm(e,t,i){return(e<60?t+(i-t)*e/60:e<180?i:e<240?t+(i-t)*(240-e)/60:t)*255}const Vp=e=>()=>e;function ez(e,t){return function(i){return e+i*t}}function tz(e,t,i){return e=Math.pow(e,i),t=Math.pow(t,i)-e,i=1/i,function(a){return Math.pow(e+a*t,i)}}function nz(e){return(e=+e)==1?wE:function(t,i){return i-t?tz(t,i,e):Vp(isNaN(t)?i:t)}}function wE(e,t){var i=t-e;return i?ez(e,i):Vp(isNaN(e)?t:e)}const Mu=(function e(t){var i=nz(t);function a(s,o){var c=i((s=Km(s)).r,(o=Km(o)).r),d=i(s.g,o.g),f=i(s.b,o.b),h=wE(s.opacity,o.opacity);return function(m){return s.r=c(m),s.g=d(m),s.b=f(m),s.opacity=h(m),s+""}}return a.gamma=e,a})(1);function iz(e,t){t||(t=[]);var i=e?Math.min(t.length,e.length):0,a=t.slice(),s;return function(o){for(s=0;s<i;++s)a[s]=e[s]*(1-o)+t[s]*o;return a}}function rz(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function az(e,t){var i=t?t.length:0,a=e?Math.min(i,e.length):0,s=new Array(a),o=new Array(i),c;for(c=0;c<a;++c)s[c]=co(e[c],t[c]);for(;c<i;++c)o[c]=t[c];return function(d){for(c=0;c<a;++c)o[c]=s[c](d);return o}}function sz(e,t){var i=new Date;return e=+e,t=+t,function(a){return i.setTime(e*(1-a)+t*a),i}}function Gi(e,t){return e=+e,t=+t,function(i){return e*(1-i)+t*i}}function lz(e,t){var i={},a={},s;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(s in t)s in e?i[s]=co(e[s],t[s]):a[s]=t[s];return function(o){for(s in i)a[s]=i[s](o);return a}}var Zm=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,bm=new RegExp(Zm.source,"g");function oz(e){return function(){return e}}function cz(e){return function(t){return e(t)+""}}function EE(e,t){var i=Zm.lastIndex=bm.lastIndex=0,a,s,o,c=-1,d=[],f=[];for(e=e+"",t=t+"";(a=Zm.exec(e))&&(s=bm.exec(t));)(o=s.index)>i&&(o=t.slice(i,o),d[c]?d[c]+=o:d[++c]=o),(a=a[0])===(s=s[0])?d[c]?d[c]+=s:d[++c]=s:(d[++c]=null,f.push({i:c,x:Gi(a,s)})),i=bm.lastIndex;return i<t.length&&(o=t.slice(i),d[c]?d[c]+=o:d[++c]=o),d.length<2?f[0]?cz(f[0].x):oz(t):(t=f.length,function(h){for(var m=0,p;m<t;++m)d[(p=f[m]).i]=p.x(h);return d.join("")})}function co(e,t){var i=typeof t,a;return t==null||i==="boolean"?Vp(t):(i==="number"?Gi:i==="string"?(a=Pa(t))?(t=a,Mu):EE:t instanceof Pa?Mu:t instanceof Date?sz:rz(t)?iz:Array.isArray(t)?az:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?lz:Gi)(e,t)}var Vv=180/Math.PI,Qm={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function NE(e,t,i,a,s,o){var c,d,f;return(c=Math.sqrt(e*e+t*t))&&(e/=c,t/=c),(f=e*i+t*a)&&(i-=e*f,a-=t*f),(d=Math.sqrt(i*i+a*a))&&(i/=d,a/=d,f/=d),e*a<t*i&&(e=-e,t=-t,f=-f,c=-c),{translateX:s,translateY:o,rotate:Math.atan2(t,e)*Vv,skewX:Math.atan(f)*Vv,scaleX:c,scaleY:d}}var su;function uz(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Qm:NE(t.a,t.b,t.c,t.d,t.e,t.f)}function dz(e){return e==null||(su||(su=document.createElementNS("http://www.w3.org/2000/svg","g")),su.setAttribute("transform",e),!(e=su.transform.baseVal.consolidate()))?Qm:(e=e.matrix,NE(e.a,e.b,e.c,e.d,e.e,e.f))}function SE(e,t,i,a){function s(h){return h.length?h.pop()+" ":""}function o(h,m,p,y,x,_){if(h!==p||m!==y){var N=x.push("translate(",null,t,null,i);_.push({i:N-4,x:Gi(h,p)},{i:N-2,x:Gi(m,y)})}else(p||y)&&x.push("translate("+p+t+y+i)}function c(h,m,p,y){h!==m?(h-m>180?m+=360:m-h>180&&(h+=360),y.push({i:p.push(s(p)+"rotate(",null,a)-2,x:Gi(h,m)})):m&&p.push(s(p)+"rotate("+m+a)}function d(h,m,p,y){h!==m?y.push({i:p.push(s(p)+"skewX(",null,a)-2,x:Gi(h,m)}):m&&p.push(s(p)+"skewX("+m+a)}function f(h,m,p,y,x,_){if(h!==p||m!==y){var N=x.push(s(x)+"scale(",null,",",null,")");_.push({i:N-4,x:Gi(h,p)},{i:N-2,x:Gi(m,y)})}else(p!==1||y!==1)&&x.push(s(x)+"scale("+p+","+y+")")}return function(h,m){var p=[],y=[];return h=e(h),m=e(m),o(h.translateX,h.translateY,m.translateX,m.translateY,p,y),c(h.rotate,m.rotate,p,y),d(h.skewX,m.skewX,p,y),f(h.scaleX,h.scaleY,m.scaleX,m.scaleY,p,y),h=m=null,function(x){for(var _=-1,N=y.length,S;++_<N;)p[(S=y[_]).i]=S.x(x);return p.join("")}}}var fz=SE(uz,"px, ","px)","deg)"),hz=SE(dz,", ",")",")"),mz=1e-12;function Yv(e){return((e=Math.exp(e))+1/e)/2}function pz(e){return((e=Math.exp(e))-1/e)/2}function gz(e){return((e=Math.exp(2*e))-1)/(e+1)}const gu=(function e(t,i,a){function s(o,c){var d=o[0],f=o[1],h=o[2],m=c[0],p=c[1],y=c[2],x=m-d,_=p-f,N=x*x+_*_,S,w;if(N<mz)w=Math.log(y/h)/t,S=function(B){return[d+B*x,f+B*_,h*Math.exp(t*B*w)]};else{var k=Math.sqrt(N),E=(y*y-h*h+a*N)/(2*h*i*k),M=(y*y-h*h-a*N)/(2*y*i*k),U=Math.log(Math.sqrt(E*E+1)-E),R=Math.log(Math.sqrt(M*M+1)-M);w=(R-U)/t,S=function(B){var I=B*w,Z=Yv(U),j=h/(i*k)*(Z*gz(t*I+U)-pz(U));return[d+j*x,f+j*_,h*Z/Yv(t*I+U)]}}return S.duration=w*1e3*t/Math.SQRT2,S}return s.rho=function(o){var c=Math.max(.001,+o),d=c*c,f=d*d;return e(c,d,f)},s})(Math.SQRT2,2,4);var Xs=0,io=0,Wl=0,kE=1e3,Ou,ro,Ru=0,Fa=0,Xu=0,vo=typeof performance=="object"&&performance.now?performance:Date,TE=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Yp(){return Fa||(TE(bz),Fa=vo.now()+Xu)}function bz(){Fa=0}function Du(){this._call=this._time=this._next=null}Du.prototype=AE.prototype={constructor:Du,restart:function(e,t,i){if(typeof e!="function")throw new TypeError("callback is not a function");i=(i==null?Yp():+i)+(t==null?0:+t),!this._next&&ro!==this&&(ro?ro._next=this:Ou=this,ro=this),this._call=e,this._time=i,Wm()},stop:function(){this._call&&(this._call=null,this._time=1/0,Wm())}};function AE(e,t,i){var a=new Du;return a.restart(e,t,i),a}function xz(){Yp(),++Xs;for(var e=Ou,t;e;)(t=Fa-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Xs}function Xv(){Fa=(Ru=vo.now())+Xu,Xs=io=0;try{xz()}finally{Xs=0,vz(),Fa=0}}function yz(){var e=vo.now(),t=e-Ru;t>kE&&(Xu-=t,Ru=e)}function vz(){for(var e,t=Ou,i,a=1/0;t;)t._call?(a>t._time&&(a=t._time),e=t,t=t._next):(i=t._next,t._next=null,t=e?e._next=i:Ou=i);ro=e,Wm(a)}function Wm(e){if(!Xs){io&&(io=clearTimeout(io));var t=e-Fa;t>24?(e<1/0&&(io=setTimeout(Xv,e-vo.now()-Xu)),Wl&&(Wl=clearInterval(Wl))):(Wl||(Ru=vo.now(),Wl=setInterval(yz,kE)),Xs=1,TE(Xv))}}function Kv(e,t,i){var a=new Du;return t=t==null?0:+t,a.restart(s=>{a.stop(),e(s+t)},t,i),a}var _z=Vu("start","end","cancel","interrupt"),wz=[],CE=0,Zv=1,Jm=2,bu=3,Qv=4,ep=5,xu=6;function Ku(e,t,i,a,s,o){var c=e.__transition;if(!c)e.__transition={};else if(i in c)return;Ez(e,i,{name:t,index:a,group:s,on:_z,tween:wz,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:CE})}function Xp(e,t){var i=Li(e,t);if(i.state>CE)throw new Error("too late; already scheduled");return i}function Ki(e,t){var i=Li(e,t);if(i.state>bu)throw new Error("too late; already running");return i}function Li(e,t){var i=e.__transition;if(!i||!(i=i[t]))throw new Error("transition not found");return i}function Ez(e,t,i){var a=e.__transition,s;a[t]=i,i.timer=AE(o,0,i.time);function o(h){i.state=Zv,i.timer.restart(c,i.delay,i.time),i.delay<=h&&c(h-i.delay)}function c(h){var m,p,y,x;if(i.state!==Zv)return f();for(m in a)if(x=a[m],x.name===i.name){if(x.state===bu)return Kv(c);x.state===Qv?(x.state=xu,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete a[m]):+m<t&&(x.state=xu,x.timer.stop(),x.on.call("cancel",e,e.__data__,x.index,x.group),delete a[m])}if(Kv(function(){i.state===bu&&(i.state=Qv,i.timer.restart(d,i.delay,i.time),d(h))}),i.state=Jm,i.on.call("start",e,e.__data__,i.index,i.group),i.state===Jm){for(i.state=bu,s=new Array(y=i.tween.length),m=0,p=-1;m<y;++m)(x=i.tween[m].value.call(e,e.__data__,i.index,i.group))&&(s[++p]=x);s.length=p+1}}function d(h){for(var m=h<i.duration?i.ease.call(null,h/i.duration):(i.timer.restart(f),i.state=ep,1),p=-1,y=s.length;++p<y;)s[p].call(e,m);i.state===ep&&(i.on.call("end",e,e.__data__,i.index,i.group),f())}function f(){i.state=xu,i.timer.stop(),delete a[t];for(var h in a)return;delete e.__transition}}function yu(e,t){var i=e.__transition,a,s,o=!0,c;if(i){t=t==null?null:t+"";for(c in i){if((a=i[c]).name!==t){o=!1;continue}s=a.state>Jm&&a.state<ep,a.state=xu,a.timer.stop(),a.on.call(s?"interrupt":"cancel",e,e.__data__,a.index,a.group),delete i[c]}o&&delete e.__transition}}function Nz(e){return this.each(function(){yu(this,e)})}function Sz(e,t){var i,a;return function(){var s=Ki(this,e),o=s.tween;if(o!==i){a=i=o;for(var c=0,d=a.length;c<d;++c)if(a[c].name===t){a=a.slice(),a.splice(c,1);break}}s.tween=a}}function kz(e,t,i){var a,s;if(typeof i!="function")throw new Error;return function(){var o=Ki(this,e),c=o.tween;if(c!==a){s=(a=c).slice();for(var d={name:t,value:i},f=0,h=s.length;f<h;++f)if(s[f].name===t){s[f]=d;break}f===h&&s.push(d)}o.tween=s}}function Tz(e,t){var i=this._id;if(e+="",arguments.length<2){for(var a=Li(this.node(),i).tween,s=0,o=a.length,c;s<o;++s)if((c=a[s]).name===e)return c.value;return null}return this.each((t==null?Sz:kz)(i,e,t))}function Kp(e,t,i){var a=e._id;return e.each(function(){var s=Ki(this,a);(s.value||(s.value={}))[t]=i.apply(this,arguments)}),function(s){return Li(s,a).value[t]}}function ME(e,t){var i;return(typeof t=="number"?Gi:t instanceof Pa?Mu:(i=Pa(t))?(t=i,Mu):EE)(e,t)}function Az(e){return function(){this.removeAttribute(e)}}function Cz(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Mz(e,t,i){var a,s=i+"",o;return function(){var c=this.getAttribute(e);return c===s?null:c===a?o:o=t(a=c,i)}}function Oz(e,t,i){var a,s=i+"",o;return function(){var c=this.getAttributeNS(e.space,e.local);return c===s?null:c===a?o:o=t(a=c,i)}}function Rz(e,t,i){var a,s,o;return function(){var c,d=i(this),f;return d==null?void this.removeAttribute(e):(c=this.getAttribute(e),f=d+"",c===f?null:c===a&&f===s?o:(s=f,o=t(a=c,d)))}}function Dz(e,t,i){var a,s,o;return function(){var c,d=i(this),f;return d==null?void this.removeAttributeNS(e.space,e.local):(c=this.getAttributeNS(e.space,e.local),f=d+"",c===f?null:c===a&&f===s?o:(s=f,o=t(a=c,d)))}}function jz(e,t){var i=Yu(e),a=i==="transform"?hz:ME;return this.attrTween(e,typeof t=="function"?(i.local?Dz:Rz)(i,a,Kp(this,"attr."+e,t)):t==null?(i.local?Cz:Az)(i):(i.local?Oz:Mz)(i,a,t))}function Lz(e,t){return function(i){this.setAttribute(e,t.call(this,i))}}function zz(e,t){return function(i){this.setAttributeNS(e.space,e.local,t.call(this,i))}}function Iz(e,t){var i,a;function s(){var o=t.apply(this,arguments);return o!==a&&(i=(a=o)&&zz(e,o)),i}return s._value=t,s}function Bz(e,t){var i,a;function s(){var o=t.apply(this,arguments);return o!==a&&(i=(a=o)&&Lz(e,o)),i}return s._value=t,s}function Uz(e,t){var i="attr."+e;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;var a=Yu(e);return this.tween(i,(a.local?Iz:Bz)(a,t))}function Hz(e,t){return function(){Xp(this,e).delay=+t.apply(this,arguments)}}function $z(e,t){return t=+t,function(){Xp(this,e).delay=t}}function qz(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Hz:$z)(t,e)):Li(this.node(),t).delay}function Pz(e,t){return function(){Ki(this,e).duration=+t.apply(this,arguments)}}function Fz(e,t){return t=+t,function(){Ki(this,e).duration=t}}function Gz(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Pz:Fz)(t,e)):Li(this.node(),t).duration}function Vz(e,t){if(typeof t!="function")throw new Error;return function(){Ki(this,e).ease=t}}function Yz(e){var t=this._id;return arguments.length?this.each(Vz(t,e)):Li(this.node(),t).ease}function Xz(e,t){return function(){var i=t.apply(this,arguments);if(typeof i!="function")throw new Error;Ki(this,e).ease=i}}function Kz(e){if(typeof e!="function")throw new Error;return this.each(Xz(this._id,e))}function Zz(e){typeof e!="function"&&(e=lE(e));for(var t=this._groups,i=t.length,a=new Array(i),s=0;s<i;++s)for(var o=t[s],c=o.length,d=a[s]=[],f,h=0;h<c;++h)(f=o[h])&&e.call(f,f.__data__,h,o)&&d.push(f);return new yr(a,this._parents,this._name,this._id)}function Qz(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,i=e._groups,a=t.length,s=i.length,o=Math.min(a,s),c=new Array(a),d=0;d<o;++d)for(var f=t[d],h=i[d],m=f.length,p=c[d]=new Array(m),y,x=0;x<m;++x)(y=f[x]||h[x])&&(p[x]=y);for(;d<a;++d)c[d]=t[d];return new yr(c,this._parents,this._name,this._id)}function Wz(e){return(e+"").trim().split(/^|\s+/).every(function(t){var i=t.indexOf(".");return i>=0&&(t=t.slice(0,i)),!t||t==="start"})}function Jz(e,t,i){var a,s,o=Wz(t)?Xp:Ki;return function(){var c=o(this,e),d=c.on;d!==a&&(s=(a=d).copy()).on(t,i),c.on=s}}function eI(e,t){var i=this._id;return arguments.length<2?Li(this.node(),i).on.on(e):this.each(Jz(i,e,t))}function tI(e){return function(){var t=this.parentNode;for(var i in this.__transition)if(+i!==e)return;t&&t.removeChild(this)}}function nI(){return this.on("end.remove",tI(this._id))}function iI(e){var t=this._name,i=this._id;typeof e!="function"&&(e=Pp(e));for(var a=this._groups,s=a.length,o=new Array(s),c=0;c<s;++c)for(var d=a[c],f=d.length,h=o[c]=new Array(f),m,p,y=0;y<f;++y)(m=d[y])&&(p=e.call(m,m.__data__,y,d))&&("__data__"in m&&(p.__data__=m.__data__),h[y]=p,Ku(h[y],t,i,y,h,Li(m,i)));return new yr(o,this._parents,t,i)}function rI(e){var t=this._name,i=this._id;typeof e!="function"&&(e=sE(e));for(var a=this._groups,s=a.length,o=[],c=[],d=0;d<s;++d)for(var f=a[d],h=f.length,m,p=0;p<h;++p)if(m=f[p]){for(var y=e.call(m,m.__data__,p,f),x,_=Li(m,i),N=0,S=y.length;N<S;++N)(x=y[N])&&Ku(x,t,i,N,y,_);o.push(y),c.push(m)}return new yr(o,c,t,i)}var aI=Ro.prototype.constructor;function sI(){return new aI(this._groups,this._parents)}function lI(e,t){var i,a,s;return function(){var o=Ys(this,e),c=(this.style.removeProperty(e),Ys(this,e));return o===c?null:o===i&&c===a?s:s=t(i=o,a=c)}}function OE(e){return function(){this.style.removeProperty(e)}}function oI(e,t,i){var a,s=i+"",o;return function(){var c=Ys(this,e);return c===s?null:c===a?o:o=t(a=c,i)}}function cI(e,t,i){var a,s,o;return function(){var c=Ys(this,e),d=i(this),f=d+"";return d==null&&(f=d=(this.style.removeProperty(e),Ys(this,e))),c===f?null:c===a&&f===s?o:(s=f,o=t(a=c,d))}}function uI(e,t){var i,a,s,o="style."+t,c="end."+o,d;return function(){var f=Ki(this,e),h=f.on,m=f.value[o]==null?d||(d=OE(t)):void 0;(h!==i||s!==m)&&(a=(i=h).copy()).on(c,s=m),f.on=a}}function dI(e,t,i){var a=(e+="")=="transform"?fz:ME;return t==null?this.styleTween(e,lI(e,a)).on("end.style."+e,OE(e)):typeof t=="function"?this.styleTween(e,cI(e,a,Kp(this,"style."+e,t))).each(uI(this._id,e)):this.styleTween(e,oI(e,a,t),i).on("end.style."+e,null)}function fI(e,t,i){return function(a){this.style.setProperty(e,t.call(this,a),i)}}function hI(e,t,i){var a,s;function o(){var c=t.apply(this,arguments);return c!==s&&(a=(s=c)&&fI(e,c,i)),a}return o._value=t,o}function mI(e,t,i){var a="style."+(e+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(t==null)return this.tween(a,null);if(typeof t!="function")throw new Error;return this.tween(a,hI(e,t,i??""))}function pI(e){return function(){this.textContent=e}}function gI(e){return function(){var t=e(this);this.textContent=t??""}}function bI(e){return this.tween("text",typeof e=="function"?gI(Kp(this,"text",e)):pI(e==null?"":e+""))}function xI(e){return function(t){this.textContent=e.call(this,t)}}function yI(e){var t,i;function a(){var s=e.apply(this,arguments);return s!==i&&(t=(i=s)&&xI(s)),t}return a._value=e,a}function vI(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,yI(e))}function _I(){for(var e=this._name,t=this._id,i=RE(),a=this._groups,s=a.length,o=0;o<s;++o)for(var c=a[o],d=c.length,f,h=0;h<d;++h)if(f=c[h]){var m=Li(f,t);Ku(f,e,i,h,c,{time:m.time+m.delay+m.duration,delay:0,duration:m.duration,ease:m.ease})}return new yr(a,this._parents,e,i)}function wI(){var e,t,i=this,a=i._id,s=i.size();return new Promise(function(o,c){var d={value:c},f={value:function(){--s===0&&o()}};i.each(function(){var h=Ki(this,a),m=h.on;m!==e&&(t=(e=m).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(f)),h.on=t}),s===0&&o()})}var EI=0;function yr(e,t,i,a){this._groups=e,this._parents=t,this._name=i,this._id=a}function RE(){return++EI}var br=Ro.prototype;yr.prototype={constructor:yr,select:iI,selectAll:rI,selectChild:br.selectChild,selectChildren:br.selectChildren,filter:Zz,merge:Qz,selection:sI,transition:_I,call:br.call,nodes:br.nodes,node:br.node,size:br.size,empty:br.empty,each:br.each,on:eI,attr:jz,attrTween:Uz,style:dI,styleTween:mI,text:bI,textTween:vI,remove:nI,tween:Tz,delay:qz,duration:Gz,ease:Yz,easeVarying:Kz,end:wI,[Symbol.iterator]:br[Symbol.iterator]};function NI(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var SI={time:null,delay:0,duration:250,ease:NI};function kI(e,t){for(var i;!(i=e.__transition)||!(i=i[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return i}function TI(e){var t,i;e instanceof yr?(t=e._id,e=e._name):(t=RE(),(i=SI).time=Yp(),e=e==null?null:e+"");for(var a=this._groups,s=a.length,o=0;o<s;++o)for(var c=a[o],d=c.length,f,h=0;h<d;++h)(f=c[h])&&Ku(f,e,t,h,c,i||kI(f,t));return new yr(a,this._parents,e,t)}Ro.prototype.interrupt=Nz;Ro.prototype.transition=TI;const lu=e=>()=>e;function AI(e,{sourceEvent:t,target:i,transform:a,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},transform:{value:a,enumerable:!0,configurable:!0},_:{value:s}})}function xr(e,t,i){this.k=e,this.x=t,this.y=i}xr.prototype={constructor:xr,scale:function(e){return e===1?this:new xr(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new xr(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Zu=new xr(1,0,0);DE.prototype=xr.prototype;function DE(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Zu;return e.__zoom}function xm(e){e.stopImmediatePropagation()}function Jl(e){e.preventDefault(),e.stopImmediatePropagation()}function CI(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function MI(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Wv(){return this.__zoom||Zu}function OI(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function RI(){return navigator.maxTouchPoints||"ontouchstart"in this}function DI(e,t,i){var a=e.invertX(t[0][0])-i[0][0],s=e.invertX(t[1][0])-i[1][0],o=e.invertY(t[0][1])-i[0][1],c=e.invertY(t[1][1])-i[1][1];return e.translate(s>a?(a+s)/2:Math.min(0,a)||Math.max(0,s),c>o?(o+c)/2:Math.min(0,o)||Math.max(0,c))}function jE(){var e=CI,t=MI,i=DI,a=OI,s=RI,o=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,f=gu,h=Vu("start","zoom","end"),m,p,y,x=500,_=150,N=0,S=10;function w(A){A.property("__zoom",Wv).on("wheel.zoom",I,{passive:!1}).on("mousedown.zoom",Z).on("dblclick.zoom",j).filter(s).on("touchstart.zoom",z).on("touchmove.zoom",V).on("touchend.zoom touchcancel.zoom",G).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}w.transform=function(A,q,O,H){var K=A.selection?A.selection():A;K.property("__zoom",Wv),A!==K?U(A,q,O,H):K.interrupt().each(function(){R(this,arguments).event(H).start().zoom(null,typeof q=="function"?q.apply(this,arguments):q).end()})},w.scaleBy=function(A,q,O,H){w.scaleTo(A,function(){var K=this.__zoom.k,X=typeof q=="function"?q.apply(this,arguments):q;return K*X},O,H)},w.scaleTo=function(A,q,O,H){w.transform(A,function(){var K=t.apply(this,arguments),X=this.__zoom,C=O==null?M(K):typeof O=="function"?O.apply(this,arguments):O,L=X.invert(C),Y=typeof q=="function"?q.apply(this,arguments):q;return i(E(k(X,Y),C,L),K,c)},O,H)},w.translateBy=function(A,q,O,H){w.transform(A,function(){return i(this.__zoom.translate(typeof q=="function"?q.apply(this,arguments):q,typeof O=="function"?O.apply(this,arguments):O),t.apply(this,arguments),c)},null,H)},w.translateTo=function(A,q,O,H,K){w.transform(A,function(){var X=t.apply(this,arguments),C=this.__zoom,L=H==null?M(X):typeof H=="function"?H.apply(this,arguments):H;return i(Zu.translate(L[0],L[1]).scale(C.k).translate(typeof q=="function"?-q.apply(this,arguments):-q,typeof O=="function"?-O.apply(this,arguments):-O),X,c)},H,K)};function k(A,q){return q=Math.max(o[0],Math.min(o[1],q)),q===A.k?A:new xr(q,A.x,A.y)}function E(A,q,O){var H=q[0]-O[0]*A.k,K=q[1]-O[1]*A.k;return H===A.x&&K===A.y?A:new xr(A.k,H,K)}function M(A){return[(+A[0][0]+ +A[1][0])/2,(+A[0][1]+ +A[1][1])/2]}function U(A,q,O,H){A.on("start.zoom",function(){R(this,arguments).event(H).start()}).on("interrupt.zoom end.zoom",function(){R(this,arguments).event(H).end()}).tween("zoom",function(){var K=this,X=arguments,C=R(K,X).event(H),L=t.apply(K,X),Y=O==null?M(L):typeof O=="function"?O.apply(K,X):O,D=Math.max(L[1][0]-L[0][0],L[1][1]-L[0][1]),F=K.__zoom,$=typeof q=="function"?q.apply(K,X):q,Q=f(F.invert(Y).concat(D/F.k),$.invert(Y).concat(D/$.k));return function(J){if(J===1)J=$;else{var W=Q(J),te=D/W[2];J=new xr(te,Y[0]-W[0]*te,Y[1]-W[1]*te)}C.zoom(null,J)}})}function R(A,q,O){return!O&&A.__zooming||new B(A,q)}function B(A,q){this.that=A,this.args=q,this.active=0,this.sourceEvent=null,this.extent=t.apply(A,q),this.taps=0}B.prototype={event:function(A){return A&&(this.sourceEvent=A),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(A,q){return this.mouse&&A!=="mouse"&&(this.mouse[1]=q.invert(this.mouse[0])),this.touch0&&A!=="touch"&&(this.touch0[1]=q.invert(this.touch0[0])),this.touch1&&A!=="touch"&&(this.touch1[1]=q.invert(this.touch1[0])),this.that.__zoom=q,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(A){var q=ii(this.that).datum();h.call(A,this.that,new AI(A,{sourceEvent:this.sourceEvent,target:w,transform:this.that.__zoom,dispatch:h}),q)}};function I(A,...q){if(!e.apply(this,arguments))return;var O=R(this,q).event(A),H=this.__zoom,K=Math.max(o[0],Math.min(o[1],H.k*Math.pow(2,a.apply(this,arguments)))),X=ki(A);if(O.wheel)(O.mouse[0][0]!==X[0]||O.mouse[0][1]!==X[1])&&(O.mouse[1]=H.invert(O.mouse[0]=X)),clearTimeout(O.wheel);else{if(H.k===K)return;O.mouse=[X,H.invert(X)],yu(this),O.start()}Jl(A),O.wheel=setTimeout(C,_),O.zoom("mouse",i(E(k(H,K),O.mouse[0],O.mouse[1]),O.extent,c));function C(){O.wheel=null,O.end()}}function Z(A,...q){if(y||!e.apply(this,arguments))return;var O=A.currentTarget,H=R(this,q,!0).event(A),K=ii(A.view).on("mousemove.zoom",Y,!0).on("mouseup.zoom",D,!0),X=ki(A,O),C=A.clientX,L=A.clientY;bE(A.view),xm(A),H.mouse=[X,this.__zoom.invert(X)],yu(this),H.start();function Y(F){if(Jl(F),!H.moved){var $=F.clientX-C,Q=F.clientY-L;H.moved=$*$+Q*Q>N}H.event(F).zoom("mouse",i(E(H.that.__zoom,H.mouse[0]=ki(F,O),H.mouse[1]),H.extent,c))}function D(F){K.on("mousemove.zoom mouseup.zoom",null),xE(F.view,H.moved),Jl(F),H.event(F).end()}}function j(A,...q){if(e.apply(this,arguments)){var O=this.__zoom,H=ki(A.changedTouches?A.changedTouches[0]:A,this),K=O.invert(H),X=O.k*(A.shiftKey?.5:2),C=i(E(k(O,X),H,K),t.apply(this,q),c);Jl(A),d>0?ii(this).transition().duration(d).call(U,C,H,A):ii(this).call(w.transform,C,H,A)}}function z(A,...q){if(e.apply(this,arguments)){var O=A.touches,H=O.length,K=R(this,q,A.changedTouches.length===H).event(A),X,C,L,Y;for(xm(A),C=0;C<H;++C)L=O[C],Y=ki(L,this),Y=[Y,this.__zoom.invert(Y),L.identifier],K.touch0?!K.touch1&&K.touch0[2]!==Y[2]&&(K.touch1=Y,K.taps=0):(K.touch0=Y,X=!0,K.taps=1+!!m);m&&(m=clearTimeout(m)),X&&(K.taps<2&&(p=Y[0],m=setTimeout(function(){m=null},x)),yu(this),K.start())}}function V(A,...q){if(this.__zooming){var O=R(this,q).event(A),H=A.changedTouches,K=H.length,X,C,L,Y;for(Jl(A),X=0;X<K;++X)C=H[X],L=ki(C,this),O.touch0&&O.touch0[2]===C.identifier?O.touch0[0]=L:O.touch1&&O.touch1[2]===C.identifier&&(O.touch1[0]=L);if(C=O.that.__zoom,O.touch1){var D=O.touch0[0],F=O.touch0[1],$=O.touch1[0],Q=O.touch1[1],J=(J=$[0]-D[0])*J+(J=$[1]-D[1])*J,W=(W=Q[0]-F[0])*W+(W=Q[1]-F[1])*W;C=k(C,Math.sqrt(J/W)),L=[(D[0]+$[0])/2,(D[1]+$[1])/2],Y=[(F[0]+Q[0])/2,(F[1]+Q[1])/2]}else if(O.touch0)L=O.touch0[0],Y=O.touch0[1];else return;O.zoom("touch",i(E(C,L,Y),O.extent,c))}}function G(A,...q){if(this.__zooming){var O=R(this,q).event(A),H=A.changedTouches,K=H.length,X,C;for(xm(A),y&&clearTimeout(y),y=setTimeout(function(){y=null},x),X=0;X<K;++X)C=H[X],O.touch0&&O.touch0[2]===C.identifier?delete O.touch0:O.touch1&&O.touch1[2]===C.identifier&&delete O.touch1;if(O.touch1&&!O.touch0&&(O.touch0=O.touch1,delete O.touch1),O.touch0)O.touch0[1]=this.__zoom.invert(O.touch0[0]);else if(O.end(),O.taps===2&&(C=ki(C,this),Math.hypot(p[0]-C[0],p[1]-C[1])<S)){var L=ii(this).on("dblclick.zoom");L&&L.apply(this,arguments)}}}return w.wheelDelta=function(A){return arguments.length?(a=typeof A=="function"?A:lu(+A),w):a},w.filter=function(A){return arguments.length?(e=typeof A=="function"?A:lu(!!A),w):e},w.touchable=function(A){return arguments.length?(s=typeof A=="function"?A:lu(!!A),w):s},w.extent=function(A){return arguments.length?(t=typeof A=="function"?A:lu([[+A[0][0],+A[0][1]],[+A[1][0],+A[1][1]]]),w):t},w.scaleExtent=function(A){return arguments.length?(o[0]=+A[0],o[1]=+A[1],w):[o[0],o[1]]},w.translateExtent=function(A){return arguments.length?(c[0][0]=+A[0][0],c[1][0]=+A[1][0],c[0][1]=+A[0][1],c[1][1]=+A[1][1],w):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},w.constrain=function(A){return arguments.length?(i=A,w):i},w.duration=function(A){return arguments.length?(d=+A,w):d},w.interpolate=function(A){return arguments.length?(f=A,w):f},w.on=function(){var A=h.on.apply(h,arguments);return A===h?w:A},w.clickDistance=function(A){return arguments.length?(N=(A=+A)*A,w):Math.sqrt(N)},w.tapDistance=function(A){return arguments.length?(S=+A,w):S},w}const Di={error001:(e="react")=>`Seems like you have not used ${e==="svelte"?"SvelteFlowProvider":"ReactFlowProvider"} as an ancestor. Help: https://${e}flow.dev/error#001`,error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:i,targetHandle:a})=>`Couldn't create edge for ${e} handle id: "${e==="source"?i:a}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs.",error016:e=>`Edge with id "${e}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},_o=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],LE=["Enter"," ","Escape"],zE={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:i})=>`Moved selected node ${e}. New position, x: ${t}, y: ${i}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var Ks;(function(e){e.Strict="strict",e.Loose="loose"})(Ks||(Ks={}));var $a;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})($a||($a={}));var wo;(function(e){e.Partial="partial",e.Full="full"})(wo||(wo={}));const IE={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var sa;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(sa||(sa={}));var ju;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(ju||(ju={}));var ze;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(ze||(ze={}));const Jv={[ze.Left]:ze.Right,[ze.Right]:ze.Left,[ze.Top]:ze.Bottom,[ze.Bottom]:ze.Top};function BE(e){return e===null?null:e?"valid":"invalid"}const UE=e=>!!e&&typeof e=="object"&&"id"in e&&"source"in e&&"target"in e,jI=e=>!!e&&typeof e=="object"&&"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),Zp=e=>!!e&&typeof e=="object"&&"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),jo=(e,t=[0,0])=>{const{width:i,height:a}=Zi(e),s=e.origin??t,o=i*s[0],c=a*s[1];return{x:e.position.x-o,y:e.position.y-c}},LI=(e,t={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const i=e.reduce((a,s)=>{const o=typeof s=="string";let c=!t.nodeLookup&&!o?s:void 0;t.nodeLookup&&(c=o?t.nodeLookup.get(s):Zp(s)?s:t.nodeLookup.get(s.id));const d=c?Lu(c,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return Qu(a,d)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Wu(i)},Lo=(e,t={})=>{let i={x:1/0,y:1/0,x2:-1/0,y2:-1/0},a=!1;return e.forEach(s=>{(t.filter===void 0||t.filter(s))&&(i=Qu(i,Lu(s)),a=!0)}),a?Wu(i):{x:0,y:0,width:0,height:0}},Qp=(e,t,[i,a,s]=[0,0,1],o=!1,c=!1)=>{const d=(t.x-i)/s,f=(t.y-a)/s,h=t.width/s,m=t.height/s,p=[];for(const y of e.values()){const{measured:x,selectable:_=!0,hidden:N=!1}=y;if(c&&!_||N)continue;const S=x.width??y.width??y.initialWidth??0,w=x.height??y.height??y.initialHeight??0,{x:k,y:E}=y.internals.positionAbsolute,M=PE(d,f,h,m,k,E,S,w),U=S*w,R=o&&M>0;(!y.internals.handleBounds||R||M>=U||y.dragging)&&p.push(y)}return p},zI=(e,t)=>{const i=new Set;return e.forEach(a=>{i.add(a.id)}),t.filter(a=>i.has(a.source)||i.has(a.target))};function II(e,t){const i=new Map,a=t!=null&&t.nodes?new Set(t.nodes.map(s=>s.id)):null;return e.forEach(s=>{let o;if(t!=null&&t.includeHiddenNodes){const{width:c,height:d}=Zi(s);o=c>0&&d>0}else o=!!(s.measured.width&&s.measured.height&&!s.hidden);o&&(!a||a.has(s.id))&&i.set(s.id,s)}),i}async function BI({nodes:e,width:t,height:i,panZoom:a,minZoom:s,maxZoom:o},c){if(e.size===0)return!0;const d=II(e,c),f=Lo(d),h=Jp(f,t,i,(c==null?void 0:c.minZoom)??s,(c==null?void 0:c.maxZoom)??o,(c==null?void 0:c.padding)??.1);return await a.setViewport(h,{duration:c==null?void 0:c.duration,ease:c==null?void 0:c.ease,interpolate:c==null?void 0:c.interpolate}),!0}function HE({nodeId:e,nextPosition:t,nodeLookup:i,nodeOrigin:a=[0,0],nodeExtent:s,onError:o}){const c=i.get(e),d=c.parentId?i.get(c.parentId):void 0,{x:f,y:h}=d?d.internals.positionAbsolute:{x:0,y:0},m=c.origin??a;let p=c.extent||s;if(c.extent==="parent"&&!c.expandParent)if(!d)o==null||o("005",Di.error005());else{const x=d.measured.width,_=d.measured.height;x&&_&&(p=[[f,h],[f+x,h+_]])}else d&&Va(c.extent)&&(p=[[c.extent[0][0]+f,c.extent[0][1]+h],[c.extent[1][0]+f,c.extent[1][1]+h]]);const y=Va(p)?Ga(t,p,c.measured):t;return(c.measured.width===void 0||c.measured.height===void 0)&&(o==null||o("015",Di.error015())),{position:{x:y.x-f+(c.measured.width??0)*m[0],y:y.y-h+(c.measured.height??0)*m[1]},positionAbsolute:y}}async function UI({nodesToRemove:e=[],edgesToRemove:t=[],nodes:i,edges:a,onBeforeDelete:s}){const o=new Set(e.map(y=>y.id)),c=[];for(const y of i){if(y.deletable===!1)continue;const x=o.has(y.id),_=!x&&y.parentId&&c.find(N=>N.id===y.parentId);(x||_)&&c.push(y)}const d=new Set(t.map(y=>y.id)),f=a.filter(y=>y.deletable!==!1),m=zI(c,f);for(const y of f)d.has(y.id)&&!m.find(_=>_.id===y.id)&&m.push(y);if(!s)return{edges:m,nodes:c};const p=await s({nodes:c,edges:m});return typeof p=="boolean"?p?{edges:m,nodes:c}:{edges:[],nodes:[]}:p}const Zs=(e,t=0,i=1)=>Math.min(Math.max(e,t),i),Ga=(e={x:0,y:0},t,i)=>({x:Zs(e.x,t[0][0],t[1][0]-((i==null?void 0:i.width)??0)),y:Zs(e.y,t[0][1],t[1][1]-((i==null?void 0:i.height)??0))});function $E(e,t,i){const{width:a,height:s}=Zi(i),{x:o,y:c}=i.internals.positionAbsolute;return Ga(e,[[o,c],[o+a,c+s]],t)}const e1=(e,t,i)=>e<t?Zs(Math.abs(e-t),1,t)/t:e>i?-Zs(Math.abs(e-i),1,t)/t:0,Wp=(e,t,i=15,a=40)=>{const s=e1(e.x,a,t.width-a)*i,o=e1(e.y,a,t.height-a)*i;return[s,o]},Qu=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),tp=({x:e,y:t,width:i,height:a})=>({x:e,y:t,x2:e+i,y2:t+a}),Wu=({x:e,y:t,x2:i,y2:a})=>({x:e,y:t,width:i-e,height:a-t}),Eo=(e,t=[0,0])=>{var s,o;const{x:i,y:a}=Zp(e)?e.internals.positionAbsolute:jo(e,t);return{x:i,y:a,width:((s=e.measured)==null?void 0:s.width)??e.width??e.initialWidth??0,height:((o=e.measured)==null?void 0:o.height)??e.height??e.initialHeight??0}},Lu=(e,t=[0,0])=>{var s,o;const{x:i,y:a}=Zp(e)?e.internals.positionAbsolute:jo(e,t);return{x:i,y:a,x2:i+(((s=e.measured)==null?void 0:s.width)??e.width??e.initialWidth??0),y2:a+(((o=e.measured)==null?void 0:o.height)??e.height??e.initialHeight??0)}},qE=(e,t)=>Wu(Qu(tp(e),tp(t))),PE=(e,t,i,a,s,o,c,d)=>{const f=Math.max(0,Math.min(e+i,s+c)-Math.max(e,s)),h=Math.max(0,Math.min(t+a,o+d)-Math.max(t,o));return Math.ceil(f*h)},zu=(e,t)=>PE(e.x,e.y,e.width,e.height,t.x,t.y,t.width,t.height),t1=e=>Mi(e.width)&&Mi(e.height)&&Mi(e.x)&&Mi(e.y),Mi=e=>!isNaN(e)&&isFinite(e),FE=(e,t)=>(i,a)=>{},zo=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),Io=({x:e,y:t},[i,a,s],o=!1,c=[1,1])=>{const d={x:(e-i)/s,y:(t-a)/s};return o?zo(d,c):d},Qs=({x:e,y:t},[i,a,s])=>({x:e*s+i,y:t*s+a});function Ds(e,t){if(typeof e=="number")return Math.floor((t-t/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const i=parseFloat(e);if(!Number.isNaN(i))return Math.floor(i)}if(typeof e=="string"&&e.endsWith("%")){const i=parseFloat(e);if(!Number.isNaN(i))return Math.floor(t*i*.01)}return console.error(`The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function HI(e,t,i){if(typeof e=="string"||typeof e=="number"){const a=Ds(e,i),s=Ds(e,t);return{top:a,right:s,bottom:a,left:s,x:s*2,y:a*2}}if(typeof e=="object"){const a=Ds(e.top??e.y??0,i),s=Ds(e.bottom??e.y??0,i),o=Ds(e.left??e.x??0,t),c=Ds(e.right??e.x??0,t);return{top:a,right:c,bottom:s,left:o,x:o+c,y:a+s}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function $I(e,t,i,a,s,o){const{x:c,y:d}=Qs(e,[t,i,a]),{x:f,y:h}=Qs({x:e.x+e.width,y:e.y+e.height},[t,i,a]),m=s-f,p=o-h;return{left:Math.floor(c),top:Math.floor(d),right:Math.floor(m),bottom:Math.floor(p)}}const Jp=(e,t,i,a,s,o)=>{const c=HI(o,t,i),d=(t-c.x)/e.width,f=(i-c.y)/e.height,h=Math.min(d,f),m=Zs(h,a,s),p=e.x+e.width/2,y=e.y+e.height/2,x=t/2-p*m,_=i/2-y*m,N=$I(e,x,_,m,t,i),S={left:Math.min(N.left-c.left,0),top:Math.min(N.top-c.top,0),right:Math.min(N.right-c.right,0),bottom:Math.min(N.bottom-c.bottom,0)};return{x:x-S.left+S.right,y:_-S.top+S.bottom,zoom:m}},No=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function Va(e){return e!=null&&e!=="parent"}function Zi(e){var t,i;return{width:((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth??0,height:((i=e.measured)==null?void 0:i.height)??e.height??e.initialHeight??0}}function GE(e){var t,i;return(((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth)!==void 0&&(((i=e.measured)==null?void 0:i.height)??e.height??e.initialHeight)!==void 0}function VE(e,t={width:0,height:0},i,a,s){const o={...e},c=a.get(i);if(c){const d=c.origin||s;o.x+=c.internals.positionAbsolute.x-(t.width??0)*d[0],o.y+=c.internals.positionAbsolute.y-(t.height??0)*d[1]}return o}function n1(e,t){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0}function qI(){let e,t;return{promise:new Promise((a,s)=>{e=a,t=s}),resolve:e,reject:t}}function PI(e){return{...zE,...e||{}}}function uo(e,{snapGrid:t=[0,0],snapToGrid:i=!1,transform:a,containerBounds:s}){const{x:o,y:c}=Oi(e),d=Io({x:o-((s==null?void 0:s.left)??0),y:c-((s==null?void 0:s.top)??0)},a),{x:f,y:h}=i?zo(d,t):d;return{xSnapped:f,ySnapped:h,...d}}const eg=e=>({width:e.offsetWidth,height:e.offsetHeight}),YE=e=>{var t;return((t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},FI=["INPUT","SELECT","TEXTAREA"];function XE(e){var a,s;const t=((s=(a=e.composedPath)==null?void 0:a.call(e))==null?void 0:s[0])||e.target;return(t==null?void 0:t.nodeType)!==1?!1:FI.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}const KE=e=>"clientX"in e,Oi=(e,t)=>{var o,c;const i=KE(e),a=i?e.clientX:(o=e.touches)==null?void 0:o[0].clientX,s=i?e.clientY:(c=e.touches)==null?void 0:c[0].clientY;return{x:a-((t==null?void 0:t.left)??0),y:s-((t==null?void 0:t.top)??0)}},i1=(e,t,i,a,s)=>{const o=t.querySelectorAll(`.${e}`);return!o||!o.length?null:Array.from(o).map(c=>{const d=c.getBoundingClientRect();return{id:c.getAttribute("data-handleid"),type:e,nodeId:s,position:c.getAttribute("data-handlepos"),x:(d.left-i.left)/a,y:(d.top-i.top)/a,...eg(c)}})};function ZE({sourceX:e,sourceY:t,targetX:i,targetY:a,sourceControlX:s,sourceControlY:o,targetControlX:c,targetControlY:d}){const f=e*.125+s*.375+c*.375+i*.125,h=t*.125+o*.375+d*.375+a*.125,m=Math.abs(f-e),p=Math.abs(h-t);return[f,h,m,p]}function ou(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function r1({pos:e,x1:t,y1:i,x2:a,y2:s,c:o}){switch(e){case ze.Left:return[t-ou(t-a,o),i];case ze.Right:return[t+ou(a-t,o),i];case ze.Top:return[t,i-ou(i-s,o)];case ze.Bottom:return[t,i+ou(s-i,o)]}}function QE({sourceX:e,sourceY:t,sourcePosition:i=ze.Bottom,targetX:a,targetY:s,targetPosition:o=ze.Top,curvature:c=.25}){const[d,f]=r1({pos:i,x1:e,y1:t,x2:a,y2:s,c}),[h,m]=r1({pos:o,x1:a,y1:s,x2:e,y2:t,c}),[p,y,x,_]=ZE({sourceX:e,sourceY:t,targetX:a,targetY:s,sourceControlX:d,sourceControlY:f,targetControlX:h,targetControlY:m});return[`M${e},${t} C${d},${f} ${h},${m} ${a},${s}`,p,y,x,_]}function WE({sourceX:e,sourceY:t,targetX:i,targetY:a}){const s=Math.abs(i-e)/2,o=i<e?i+s:i-s,c=Math.abs(a-t)/2,d=a<t?a+c:a-c;return[o,d,s,c]}function GI({sourceNode:e,targetNode:t,selected:i=!1,zIndex:a=0,elevateOnSelect:s=!1,zIndexMode:o="basic"}){if(o==="manual")return a;const c=s&&i?a+1e3:a,d=Math.max(e.parentId||s&&e.selected?e.internals.z:0,t.parentId||s&&t.selected?t.internals.z:0);return c+d}function VI({sourceNode:e,targetNode:t,width:i,height:a,transform:s}){const o=Qu(Lu(e),Lu(t));o.x===o.x2&&(o.x2+=1),o.y===o.y2&&(o.y2+=1);const c={x:-s[0]/s[2],y:-s[1]/s[2],width:i/s[2],height:a/s[2]};return zu(c,Wu(o))>0}const YI=({source:e,sourceHandle:t,target:i,targetHandle:a})=>`xy-edge__${e}${t||""}-${i}${a||""}`,XI=(e,t)=>t.some(i=>i.source===e.source&&i.target===e.target&&(i.sourceHandle===e.sourceHandle||!i.sourceHandle&&!e.sourceHandle)&&(i.targetHandle===e.targetHandle||!i.targetHandle&&!e.targetHandle)),KI=(e,t,i={})=>{var o;if(!e.source||!e.target)return(o=i.onError)==null||o.call(i,"006",Di.error006()),t;const a=i.getEdgeId||YI;let s;return UE(e)?s={...e}:s={...e,id:a(e)},XI(s,t)?t:(s.sourceHandle===null&&delete s.sourceHandle,s.targetHandle===null&&delete s.targetHandle,t.concat(s))};function JE({sourceX:e,sourceY:t,targetX:i,targetY:a}){const[s,o,c,d]=WE({sourceX:e,sourceY:t,targetX:i,targetY:a});return[`M ${e},${t}L ${i},${a}`,s,o,c,d]}const a1={[ze.Left]:{x:-1,y:0},[ze.Right]:{x:1,y:0},[ze.Top]:{x:0,y:-1},[ze.Bottom]:{x:0,y:1}},ZI=({source:e,sourcePosition:t=ze.Bottom,target:i})=>t===ze.Left||t===ze.Right?e.x<i.x?{x:1,y:0}:{x:-1,y:0}:e.y<i.y?{x:0,y:1}:{x:0,y:-1},s1=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function QI({source:e,sourcePosition:t=ze.Bottom,target:i,targetPosition:a=ze.Top,center:s,offset:o,stepPosition:c}){const d=a1[t],f=a1[a],h={x:e.x+d.x*o,y:e.y+d.y*o},m={x:i.x+f.x*o,y:i.y+f.y*o},p=ZI({source:h,sourcePosition:t,target:m}),y=p.x!==0?"x":"y",x=p[y];let _=[],N,S;const w={x:0,y:0},k={x:0,y:0},[,,E,M]=WE({sourceX:e.x,sourceY:e.y,targetX:i.x,targetY:i.y});if(d[y]*f[y]===-1){y==="x"?(N=s.x??h.x+(m.x-h.x)*c,S=s.y??(h.y+m.y)/2):(N=s.x??(h.x+m.x)/2,S=s.y??h.y+(m.y-h.y)*c);const I=[{x:N,y:h.y},{x:N,y:m.y}],Z=[{x:h.x,y:S},{x:m.x,y:S}];d[y]===x?_=y==="x"?I:Z:_=y==="x"?Z:I}else{const I=[{x:h.x,y:m.y}],Z=[{x:m.x,y:h.y}];if(y==="x"?_=d.x===x?Z:I:_=d.y===x?I:Z,t===a){const A=Math.abs(e[y]-i[y]);if(A<=o){const q=Math.min(o-1,o-A);d[y]===x?w[y]=(h[y]>e[y]?-1:1)*q:k[y]=(m[y]>i[y]?-1:1)*q}}if(t!==a){const A=y==="x"?"y":"x",q=d[y]===f[A],O=h[A]>m[A],H=h[A]<m[A];(d[y]===1&&(!q&&O||q&&H)||d[y]!==1&&(!q&&H||q&&O))&&(_=y==="x"?I:Z)}const j={x:h.x+w.x,y:h.y+w.y},z={x:m.x+k.x,y:m.y+k.y},V=Math.max(Math.abs(j.x-_[0].x),Math.abs(z.x-_[0].x)),G=Math.max(Math.abs(j.y-_[0].y),Math.abs(z.y-_[0].y));V>=G?(N=(j.x+z.x)/2,S=_[0].y):(N=_[0].x,S=(j.y+z.y)/2)}const U={x:h.x+w.x,y:h.y+w.y},R={x:m.x+k.x,y:m.y+k.y};return[[e,...U.x!==_[0].x||U.y!==_[0].y?[U]:[],..._,...R.x!==_[_.length-1].x||R.y!==_[_.length-1].y?[R]:[],i],N,S,E,M]}function WI(e,t,i,a){const s=Math.min(s1(e,t)/2,s1(t,i)/2,a),{x:o,y:c}=t;if(e.x===o&&o===i.x||e.y===c&&c===i.y)return`L${o} ${c}`;if(e.y===c){const h=e.x<i.x?-1:1,m=e.y<i.y?1:-1;return`L ${o+s*h},${c}Q ${o},${c} ${o},${c+s*m}`}const d=e.x<i.x?1:-1,f=e.y<i.y?-1:1;return`L ${o},${c+s*f}Q ${o},${c} ${o+s*d},${c}`}function np({sourceX:e,sourceY:t,sourcePosition:i=ze.Bottom,targetX:a,targetY:s,targetPosition:o=ze.Top,borderRadius:c=5,centerX:d,centerY:f,offset:h=20,stepPosition:m=.5}){const[p,y,x,_,N]=QI({source:{x:e,y:t},sourcePosition:i,target:{x:a,y:s},targetPosition:o,center:{x:d,y:f},offset:h,stepPosition:m});let S=`M${p[0].x} ${p[0].y}`;for(let w=1;w<p.length-1;w++)S+=WI(p[w-1],p[w],p[w+1],c);return S+=`L${p[p.length-1].x} ${p[p.length-1].y}`,[S,y,x,_,N]}function l1(e){var t;return e&&!!(e.internals.handleBounds||(t=e.handles)!=null&&t.length)&&!!(e.measured.width||e.width||e.initialWidth)}function JI(e){var p;const{sourceNode:t,targetNode:i}=e;if(!l1(t)||!l1(i))return null;const a=t.internals.handleBounds||o1(t.handles),s=i.internals.handleBounds||o1(i.handles),o=c1((a==null?void 0:a.source)??[],e.sourceHandle),c=c1(e.connectionMode===Ks.Strict?(s==null?void 0:s.target)??[]:((s==null?void 0:s.target)??[]).concat((s==null?void 0:s.source)??[]),e.targetHandle);if(!o||!c)return(p=e.onError)==null||p.call(e,"008",Di.error008(o?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const d=(o==null?void 0:o.position)||ze.Bottom,f=(c==null?void 0:c.position)||ze.Top,h=Ya(t,o,d),m=Ya(i,c,f);return{sourceX:h.x,sourceY:h.y,targetX:m.x,targetY:m.y,sourcePosition:d,targetPosition:f}}function o1(e){if(!e)return null;const t=[],i=[];for(const a of e)a.width=a.width??1,a.height=a.height??1,a.type==="source"?t.push(a):a.type==="target"&&i.push(a);return{source:t,target:i}}function Ya(e,t,i=ze.Left,a=!1){const s=((t==null?void 0:t.x)??0)+e.internals.positionAbsolute.x,o=((t==null?void 0:t.y)??0)+e.internals.positionAbsolute.y,{width:c,height:d}=t??Zi(e);if(a)return{x:s+c/2,y:o+d/2};switch((t==null?void 0:t.position)??i){case ze.Top:return{x:s+c/2,y:o};case ze.Right:return{x:s+c,y:o+d/2};case ze.Bottom:return{x:s+c/2,y:o+d};case ze.Left:return{x:s,y:o+d/2}}}function c1(e,t){return e&&(t?e.find(i=>i.id===t):e[0])||null}function ip(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(a=>`${a}=${e[a]}`).join("&")}`:""}function e6(e,{id:t,defaultColor:i,defaultMarkerStart:a,defaultMarkerEnd:s}){const o=new Set;return e.reduce((c,d)=>([d.markerStart||a,d.markerEnd||s].forEach(f=>{if(f&&typeof f=="object"){const h=ip(f,t);o.has(h)||(c.push({id:h,color:f.color||i,...f}),o.add(h))}}),c),[]).sort((c,d)=>c.id.localeCompare(d.id))}const eN=1e3,t6=10,tg={nodeOrigin:[0,0],nodeExtent:_o,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},n6={...tg,checkEquality:!0};function ng(e,t){const i={...e};for(const a in t)t[a]!==void 0&&(i[a]=t[a]);return i}function i6(e,t,i){const a=ng(tg,i);for(const s of e.values())if(s.parentId)rg(s,e,t,a);else{const o=jo(s,a.nodeOrigin),c=Va(s.extent)?s.extent:a.nodeExtent,d=Ga(o,c,Zi(s));s.internals.positionAbsolute=d}}function r6(e,t){if(!e.handles)return e.measured?t==null?void 0:t.internals.handleBounds:void 0;const i=[],a=[];for(const s of e.handles){const o={id:s.id,width:s.width??1,height:s.height??1,nodeId:e.id,x:s.x,y:s.y,position:s.position,type:s.type};s.type==="source"?i.push(o):s.type==="target"&&a.push(o)}return{source:i,target:a}}function ig(e){return e==="manual"}function rp(e,t,i,a={}){var m,p;const s=ng(n6,a),o={i:0},c=new Map(t),d=s!=null&&s.elevateNodesOnSelect&&!ig(s.zIndexMode)?eN:0;let f=e.length>0,h=!1;t.clear(),i.clear();for(const y of e){let x=c.get(y.id);if(s.checkEquality&&y===(x==null?void 0:x.internals.userNode))t.set(y.id,x);else{const _=jo(y,s.nodeOrigin),N=Va(y.extent)?y.extent:s.nodeExtent,S=Ga(_,N,Zi(y));x={...s.defaults,...y,measured:{width:(m=y.measured)==null?void 0:m.width,height:(p=y.measured)==null?void 0:p.height},internals:{positionAbsolute:S,handleBounds:r6(y,x),z:tN(y,d,s.zIndexMode),userNode:y}},t.set(y.id,x)}(x.measured===void 0||x.measured.width===void 0||x.measured.height===void 0)&&!x.hidden&&(f=!1),y.parentId&&rg(x,t,i,a,o),h||(h=y.selected??!1)}return{nodesInitialized:f,hasSelectedNodes:h}}function a6(e,t){if(!e.parentId)return;const i=t.get(e.parentId);i?i.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function rg(e,t,i,a,s){const{elevateNodesOnSelect:o,nodeOrigin:c,nodeExtent:d,zIndexMode:f}=ng(tg,a),h=e.parentId,m=t.get(h);if(!m){console.warn(`Parent node ${h} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}a6(e,i),s&&!m.parentId&&m.internals.rootParentIndex===void 0&&f==="auto"&&(m.internals.rootParentIndex=++s.i,m.internals.z=m.internals.z+s.i*t6),s&&m.internals.rootParentIndex!==void 0&&(s.i=m.internals.rootParentIndex);const p=o&&!ig(f)?eN:0,{x:y,y:x,z:_}=s6(e,m,c,d,p,f),{positionAbsolute:N}=e.internals,S=y!==N.x||x!==N.y;(S||_!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:S?{x:y,y:x}:N,z:_}})}function tN(e,t,i){const a=Mi(e.zIndex)?e.zIndex:0;return ig(i)?a:a+(e.selected?t:0)}function s6(e,t,i,a,s,o){const{x:c,y:d}=t.internals.positionAbsolute,f=Zi(e),h=jo(e,i),m=Va(e.extent)?Ga(h,e.extent,f):h;let p=Ga({x:c+m.x,y:d+m.y},a,f);e.extent==="parent"&&(p=$E(p,f,t));const y=tN(e,s,o),x=t.internals.z??0;return{x:p.x,y:p.y,z:x>=y?x+1:y}}function ag(e,t,i,a=[0,0]){var c;const s=[],o=new Map;for(const d of e){const f=t.get(d.parentId);if(!f)continue;const h=((c=o.get(d.parentId))==null?void 0:c.expandedRect)??Eo(f),m=qE(h,d.rect);o.set(d.parentId,{expandedRect:m,parent:f})}return o.size>0&&o.forEach(({expandedRect:d,parent:f},h)=>{var E;const m=f.internals.positionAbsolute,p=Zi(f),y=f.origin??a,x=d.x<m.x?Math.round(Math.abs(m.x-d.x)):0,_=d.y<m.y?Math.round(Math.abs(m.y-d.y)):0,N=Math.max(p.width,Math.round(d.width)),S=Math.max(p.height,Math.round(d.height)),w=(N-p.width)*y[0],k=(S-p.height)*y[1];(x>0||_>0||w||k)&&(s.push({id:h,type:"position",position:{x:f.position.x-x+w,y:f.position.y-_+k}}),(E=i.get(h))==null||E.forEach(M=>{e.some(U=>U.id===M.id)||s.push({id:M.id,type:"position",position:{x:M.position.x+x,y:M.position.y+_}})})),(p.width<d.width||p.height<d.height||x||_)&&s.push({id:h,type:"dimensions",setAttributes:!0,dimensions:{width:N+(x?y[0]*x-w:0),height:S+(_?y[1]*_-k:0)}})}),s}function l6(e,t,i,a,s,o,c){const d=a==null?void 0:a.querySelector(".xyflow__viewport");let f=!1;if(!d)return{changes:[],updatedInternals:f};const h=[],m=window.getComputedStyle(d),{m22:p}=new window.DOMMatrixReadOnly(m.transform),y=[];for(const x of e.values()){const _=t.get(x.id);if(!_)continue;if(_.hidden){t.set(_.id,{..._,internals:{..._.internals,handleBounds:void 0}}),f=!0;continue}const N=eg(x.nodeElement),S=_.measured.width!==N.width||_.measured.height!==N.height;if(!!(N.width&&N.height&&(S||!_.internals.handleBounds||x.force))){const k=x.nodeElement.getBoundingClientRect(),E=Va(_.extent)?_.extent:o;let{positionAbsolute:M}=_.internals;if(_.parentId&&_.extent==="parent"){const R=t.get(_.parentId);R&&(M=$E(M,N,R))}else E&&(M=Ga(M,E,N));const U={..._,measured:N,internals:{..._.internals,positionAbsolute:M,handleBounds:{source:i1("source",x.nodeElement,k,p,_.id),target:i1("target",x.nodeElement,k,p,_.id)}}};t.set(_.id,U),_.parentId&&rg(U,t,i,{nodeOrigin:s,zIndexMode:c}),f=!0,S&&(h.push({id:_.id,type:"dimensions",dimensions:N}),_.expandParent&&_.parentId&&y.push({id:_.id,parentId:_.parentId,rect:Eo(U,s)}))}}if(y.length>0){const x=ag(y,t,i,s);h.push(...x)}return{changes:h,updatedInternals:f}}async function o6({delta:e,panZoom:t,transform:i,translateExtent:a,width:s,height:o}){if(!t||!e.x&&!e.y)return!1;const c=await t.setViewportConstrained({x:i[0]+e.x,y:i[1]+e.y,zoom:i[2]},[[0,0],[s,o]],a);return!!c&&(c.x!==i[0]||c.y!==i[1]||c.k!==i[2])}function u1(e,t,i,a,s,o){let c=s;const d=a.get(c)||new Map;a.set(c,d.set(i,t)),c=`${s}-${e}`;const f=a.get(c)||new Map;if(a.set(c,f.set(i,t)),o){c=`${s}-${e}-${o}`;const h=a.get(c)||new Map;a.set(c,h.set(i,t))}}function nN(e,t,i){e.clear(),t.clear();for(const a of i){const{source:s,target:o,sourceHandle:c=null,targetHandle:d=null}=a,f={edgeId:a.id,source:s,target:o,sourceHandle:c,targetHandle:d},h=`${s}-${c}--${o}-${d}`,m=`${o}-${d}--${s}-${c}`;u1("source",f,m,e,s,c),u1("target",f,h,e,o,d),t.set(a.id,a)}}function iN(e,t){if(!e.parentId)return!1;const i=t.get(e.parentId);return i?i.selected?!0:iN(i,t):!1}function d1(e,t,i){var s;let a=e;do{if((s=a==null?void 0:a.matches)!=null&&s.call(a,t))return!0;if(a===i)return!1;a=a==null?void 0:a.parentElement}while(a);return!1}function c6(e,t,i,a){const s=new Map;for(const[o,c]of e)if((c.selected||c.id===a)&&(!c.parentId||!iN(c,e))&&(c.draggable||t&&typeof c.draggable>"u")){const d=e.get(o);d&&s.set(o,{id:o,position:d.position||{x:0,y:0},distance:{x:i.x-d.internals.positionAbsolute.x,y:i.y-d.internals.positionAbsolute.y},extent:d.extent,parentId:d.parentId,origin:d.origin,expandParent:d.expandParent,internals:{positionAbsolute:d.internals.positionAbsolute||{x:0,y:0}},measured:{width:d.measured.width??0,height:d.measured.height??0}})}return s}function ym({nodeId:e,dragItems:t,nodeLookup:i,dragging:a=!0}){var c,d,f;const s=[];for(const[h,m]of t){const p=(c=i.get(h))==null?void 0:c.internals.userNode;p&&s.push({...p,position:m.position,dragging:a})}if(!e)return[s[0],s];const o=(d=i.get(e))==null?void 0:d.internals.userNode;return[o?{...o,position:((f=t.get(e))==null?void 0:f.position)||o.position,dragging:a}:s[0],s]}function u6({dragItems:e,snapGrid:t,x:i,y:a}){const s=e.values().next().value;if(!s)return null;const o={x:i-s.distance.x,y:a-s.distance.y},c=zo(o,t);return{x:c.x-o.x,y:c.y-o.y}}function d6({onNodeMouseDown:e,getStoreItems:t,onDragStart:i,onDrag:a,onDragStop:s}){let o={x:null,y:null},c=0,d=new Map,f=!1,h={x:0,y:0},m=null,p=!1,y=null,x=!1,_=!1,N=null;function S({noDragClassName:k,handleSelector:E,domNode:M,isSelectable:U,nodeId:R,nodeClickDistance:B=0}){y=ii(M);function I({x:V,y:G}){const{nodeLookup:A,nodeExtent:q,snapGrid:O,snapToGrid:H,nodeOrigin:K,onNodeDrag:X,onSelectionDrag:C,onError:L,updateNodePositions:Y}=t();o={x:V,y:G};let D=!1;const F=d.size>1,$=F&&q?tp(Lo(d)):null,Q=F&&H?u6({dragItems:d,snapGrid:O,x:V,y:G}):null;for(const[J,W]of d){if(!A.has(J))continue;let te={x:V-W.distance.x,y:G-W.distance.y};H&&(te=Q?{x:Math.round(te.x+Q.x),y:Math.round(te.y+Q.y)}:zo(te,O));let oe=null;if(F&&q&&!W.extent&&$){const{positionAbsolute:we}=W.internals,Ne=we.x-$.x+q[0][0],je=we.x+W.measured.width-$.x2+q[1][0],$e=we.y-$.y+q[0][1],st=we.y+W.measured.height-$.y2+q[1][1];oe=[[Ne,$e],[je,st]]}const{position:fe,positionAbsolute:be}=HE({nodeId:J,nextPosition:te,nodeLookup:A,nodeExtent:oe||q,nodeOrigin:K,onError:L});D=D||W.position.x!==fe.x||W.position.y!==fe.y,W.position=fe,W.internals.positionAbsolute=be}if(_=_||D,!!D&&(Y(d,!0),N&&(a||X||!R&&C))){const[J,W]=ym({nodeId:R,dragItems:d,nodeLookup:A});a==null||a(N,d,J,W),X==null||X(N,J,W),R||C==null||C(N,W)}}async function Z(){if(!m)return;const{transform:V,panBy:G,autoPanSpeed:A,autoPanOnNodeDrag:q}=t();if(!q){f=!1,cancelAnimationFrame(c);return}const[O,H]=Wp(h,m,A);(O!==0||H!==0)&&(o.x=(o.x??0)-O/V[2],o.y=(o.y??0)-H/V[2],await G({x:O,y:H})&&I(o)),c=requestAnimationFrame(Z)}function j(V){var F;const{nodeLookup:G,multiSelectionActive:A,nodesDraggable:q,transform:O,snapGrid:H,snapToGrid:K,selectNodesOnDrag:X,onNodeDragStart:C,onSelectionDragStart:L,unselectNodesAndEdges:Y}=t();p=!0,(!X||!U)&&!A&&R&&((F=G.get(R))!=null&&F.selected||Y()),U&&X&&R&&(e==null||e(R));const D=uo(V.sourceEvent,{transform:O,snapGrid:H,snapToGrid:K,containerBounds:m});if(o=D,d=c6(G,q,D,R),d.size>0&&(i||C||!R&&L)){const[$,Q]=ym({nodeId:R,dragItems:d,nodeLookup:G});i==null||i(V.sourceEvent,d,$,Q),C==null||C(V.sourceEvent,$,Q),R||L==null||L(V.sourceEvent,Q)}}const z=yE().clickDistance(B).on("start",V=>{const{domNode:G,nodeDragThreshold:A,transform:q,snapGrid:O,snapToGrid:H}=t();m=(G==null?void 0:G.getBoundingClientRect())||null,x=!1,_=!1,N=V.sourceEvent,A===0&&j(V),o=uo(V.sourceEvent,{transform:q,snapGrid:O,snapToGrid:H,containerBounds:m}),h=Oi(V.sourceEvent,m)}).on("drag",V=>{const{autoPanOnNodeDrag:G,transform:A,snapGrid:q,snapToGrid:O,nodeDragThreshold:H,nodeLookup:K}=t(),X=uo(V.sourceEvent,{transform:A,snapGrid:q,snapToGrid:O,containerBounds:m});if(N=V.sourceEvent,(V.sourceEvent.type==="touchmove"&&V.sourceEvent.touches.length>1||R&&!K.has(R))&&(x=!0),!x){if(!f&&G&&p&&(f=!0,Z()),!p){const C=Oi(V.sourceEvent,m),L=C.x-h.x,Y=C.y-h.y;Math.sqrt(L*L+Y*Y)>H&&j(V)}(o.x!==X.xSnapped||o.y!==X.ySnapped)&&d&&p&&(h=Oi(V.sourceEvent,m),I(X))}}).on("end",V=>{if(!p||x){x&&d.size>0&&t().updateNodePositions(d,!1);return}if(f=!1,p=!1,cancelAnimationFrame(c),d.size>0){const{nodeLookup:G,updateNodePositions:A,onNodeDragStop:q,onSelectionDragStop:O}=t();if(_&&(A(d,!1),_=!1),s||q||!R&&O){const[H,K]=ym({nodeId:R,dragItems:d,nodeLookup:G,dragging:!1});s==null||s(V.sourceEvent,d,H,K),q==null||q(V.sourceEvent,H,K),R||O==null||O(V.sourceEvent,K)}}}).filter(V=>{const G=V.target;return!V.button&&(!k||!d1(G,`.${k}`,M))&&(!E||d1(G,E,M))});y.call(z)}function w(){y==null||y.on(".drag",null)}return{update:S,destroy:w}}function f6(e,t,i){const a=[],s={x:e.x-i,y:e.y-i,width:i*2,height:i*2};for(const o of t.values())zu(s,Eo(o))>0&&a.push(o);return a}const h6=250;function m6(e,t,i,a){var d,f;let s=[],o=1/0;const c=f6(e,i,t+h6);for(const h of c){const m=[...((d=h.internals.handleBounds)==null?void 0:d.source)??[],...((f=h.internals.handleBounds)==null?void 0:f.target)??[]];for(const p of m){if(a.nodeId===p.nodeId&&a.type===p.type&&a.id===p.id)continue;const{x:y,y:x}=Ya(h,p,p.position,!0),_=Math.sqrt(Math.pow(y-e.x,2)+Math.pow(x-e.y,2));_>t||(_<o?(s=[{...p,x:y,y:x}],o=_):_===o&&s.push({...p,x:y,y:x}))}}if(!s.length)return null;if(s.length>1){const h=a.type==="source"?"target":"source";return s.find(m=>m.type===h)??s[0]}return s[0]}function rN(e,t,i,a,s,o=!1){var h,m,p;const c=a.get(e);if(!c)return null;const d=s==="strict"?(h=c.internals.handleBounds)==null?void 0:h[t]:[...((m=c.internals.handleBounds)==null?void 0:m.source)??[],...((p=c.internals.handleBounds)==null?void 0:p.target)??[]],f=(i?d==null?void 0:d.find(y=>y.id===i):d==null?void 0:d[0])??null;return f&&o?{...f,...Ya(c,f,f.position,!0)}:f}function aN(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function p6(e,t){let i=null;return t?i=!0:e&&!t&&(i=!1),i}const sN=()=>!0;function g6(e,{connectionMode:t,connectionRadius:i,handleId:a,nodeId:s,edgeUpdaterType:o,isTarget:c,domNode:d,nodeLookup:f,lib:h,autoPanOnConnect:m,flowId:p,panBy:y,cancelConnection:x,onConnectStart:_,onConnect:N,onConnectEnd:S,isValidConnection:w=sN,onReconnectEnd:k,updateConnection:E,getTransform:M,getFromHandle:U,autoPanSpeed:R,dragThreshold:B=1,handleDomNode:I}){const Z=YE(e.target);let j=0,z;const{x:V,y:G}=Oi(e),A=aN(o,I),q=d==null?void 0:d.getBoundingClientRect();let O=!1;if(!q||!A)return;const H=rN(s,A,a,f,t);if(!H)return;let K=Oi(e,q),X=!1,C=null,L=!1,Y=null;function D(){if(!m||!q)return;const[fe,be]=Wp(K,q,R);y({x:fe,y:be}),j=requestAnimationFrame(D)}const F={...H,nodeId:s,type:A,position:H.position},$=f.get(s);let J={inProgress:!0,isValid:null,from:Ya($,F,ze.Left,!0),fromHandle:F,fromPosition:F.position,fromNode:$,to:K,toHandle:null,toPosition:Jv[F.position],toNode:null,pointer:K};function W(){O=!0,E(J),_==null||_(e,{nodeId:s,handleId:a,handleType:A})}B===0&&W();function te(fe){if(!O){const{x:st,y:Rt}=Oi(fe),Yt=st-V,Pt=Rt-G;if(!(Yt*Yt+Pt*Pt>B*B))return;W()}if(!U()||!F){oe(fe);return}const be=M();K=Oi(fe,q),z=m6(Io(K,be,!1,[1,1]),i,f,F),X||(D(),X=!0);const we=lN(fe,{handle:z,connectionMode:t,fromNodeId:s,fromHandleId:a,fromType:c?"target":"source",isValidConnection:w,doc:Z,lib:h,flowId:p,nodeLookup:f});Y=we.handleDomNode,C=we.connection,L=p6(!!z,we.isValid);const Ne=f.get(s),je=Ne?Ya(Ne,F,ze.Left,!0):J.from,$e={...J,from:je,isValid:L,to:we.toHandle&&L?Qs({x:we.toHandle.x,y:we.toHandle.y},be):K,toHandle:we.toHandle,toPosition:L&&we.toHandle?we.toHandle.position:Jv[F.position],toNode:we.toHandle?f.get(we.toHandle.nodeId):null,pointer:K};E($e),J=$e}function oe(fe){if(!("touches"in fe&&fe.touches.length>0)){if(O){(z||Y)&&C&&L&&(N==null||N(C));const{inProgress:be,...we}=J,Ne={...we,toPosition:J.toHandle?J.toPosition:null};S==null||S(fe,Ne),o&&(k==null||k(fe,Ne))}x(),cancelAnimationFrame(j),X=!1,L=!1,C=null,Y=null,Z.removeEventListener("mousemove",te),Z.removeEventListener("mouseup",oe),Z.removeEventListener("touchmove",te),Z.removeEventListener("touchend",oe)}}Z.addEventListener("mousemove",te),Z.addEventListener("mouseup",oe),Z.addEventListener("touchmove",te),Z.addEventListener("touchend",oe)}function lN(e,{handle:t,connectionMode:i,fromNodeId:a,fromHandleId:s,fromType:o,doc:c,lib:d,flowId:f,isValidConnection:h=sN,nodeLookup:m}){const p=o==="target",y=t?c.querySelector(`.${d}-flow__handle[data-id="${f}-${t==null?void 0:t.nodeId}-${t==null?void 0:t.id}-${t==null?void 0:t.type}"]`):null,{x,y:_}=Oi(e),N=c.elementFromPoint(x,_),S=N!=null&&N.classList.contains(`${d}-flow__handle`)?N:y,w={handleDomNode:S,isValid:!1,connection:null,toHandle:null};if(S){const k=aN(void 0,S),E=S.getAttribute("data-nodeid"),M=S.getAttribute("data-handleid"),U=S.classList.contains("connectable"),R=S.classList.contains("connectableend");if(!E||!k)return w;const B={source:p?E:a,sourceHandle:p?M:s,target:p?a:E,targetHandle:p?s:M};w.connection=B;const Z=U&&R&&(i===Ks.Strict?p&&k==="source"||!p&&k==="target":E!==a||M!==s);w.isValid=Z&&h(B),w.toHandle=rN(E,k,M,m,i,!0)}return w}const ap={onPointerDown:g6,isValid:lN};function b6({domNode:e,panZoom:t,getTransform:i,getViewScale:a}){const s=ii(e);function o({translateExtent:d,width:f,height:h,zoomStep:m=1,pannable:p=!0,zoomable:y=!0,inversePan:x=!1}){const _=E=>{if(E.sourceEvent.type!=="wheel"||!t)return;const M=i(),U=E.sourceEvent.ctrlKey&&No()?10:1,R=-E.sourceEvent.deltaY*(E.sourceEvent.deltaMode===1?.05:E.sourceEvent.deltaMode?1:.002)*m,B=M[2]*Math.pow(2,R*U);t.scaleTo(B)};let N=[0,0];const S=E=>{(E.sourceEvent.type==="mousedown"||E.sourceEvent.type==="touchstart")&&(N=[E.sourceEvent.clientX??E.sourceEvent.touches[0].clientX,E.sourceEvent.clientY??E.sourceEvent.touches[0].clientY])},w=E=>{const M=i();if(E.sourceEvent.type!=="mousemove"&&E.sourceEvent.type!=="touchmove"||!t)return;const U=[E.sourceEvent.clientX??E.sourceEvent.touches[0].clientX,E.sourceEvent.clientY??E.sourceEvent.touches[0].clientY],R=[U[0]-N[0],U[1]-N[1]];N=U;const B=a()*Math.max(M[2],Math.log(M[2]))*(x?-1:1),I={x:M[0]-R[0]*B,y:M[1]-R[1]*B},Z=[[0,0],[f,h]];t.setViewportConstrained({x:I.x,y:I.y,zoom:M[2]},Z,d)},k=jE().on("start",S).on("zoom",p?w:null).on("zoom.wheel",y?_:null);s.call(k,{})}function c(){s.on("zoom",null)}return{update:o,destroy:c,pointer:ki}}const Ju=e=>({x:e.x,y:e.y,zoom:e.k}),vm=({x:e,y:t,zoom:i})=>Zu.translate(e,t).scale(i),Is=(e,t)=>e.target.closest(`.${t}`),oN=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),x6=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,_m=(e,t=0,i=x6,a=()=>{})=>{const s=typeof t=="number"&&t>0;return s||a(),s?e.transition().duration(t).ease(i).on("end",a):e},cN=e=>{const t=e.ctrlKey&&No()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function y6({zoomPanValues:e,noWheelClassName:t,d3Selection:i,d3Zoom:a,panOnScrollMode:s,panOnScrollSpeed:o,zoomOnPinch:c,onPanZoomStart:d,onPanZoom:f,onPanZoomEnd:h}){return m=>{if(Is(m,t))return m.ctrlKey&&m.preventDefault(),!1;m.preventDefault(),m.stopImmediatePropagation();const p=i.property("__zoom").k||1;if(m.ctrlKey&&c){const S=ki(m),w=cN(m),k=p*Math.pow(2,w);a.scaleTo(i,k,S,m);return}const y=m.deltaMode===1?20:1;let x=s===$a.Vertical?0:m.deltaX*y,_=s===$a.Horizontal?0:m.deltaY*y;!No()&&m.shiftKey&&s!==$a.Vertical&&(x=m.deltaY*y,_=0),a.translateBy(i,-(x/p)*o,-(_/p)*o,{internal:!0});const N=Ju(i.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?f==null||f(m,N):(e.isPanScrolling=!0,d==null||d(m,N)),e.panScrollTimeout=setTimeout(()=>{h==null||h(m,N),e.isPanScrolling=!1},150)}}function v6({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:i}){return function(a,s){const o=a.type==="wheel",c=!t&&o&&!a.ctrlKey,d=Is(a,e);if(a.ctrlKey&&o&&d&&a.preventDefault(),c||d)return null;a.preventDefault(),i.call(this,a,s)}}function _6({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:i}){return a=>{var o,c,d;if((o=a.sourceEvent)!=null&&o.internal)return;const s=Ju(a.transform);e.mouseButton=((c=a.sourceEvent)==null?void 0:c.button)||0,e.isZoomingOrPanning=!0,e.prevViewport=s,((d=a.sourceEvent)==null?void 0:d.type)==="mousedown"&&t(!0),i&&(i==null||i(a.sourceEvent,s))}}function w6({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:i,onTransformChange:a,onPanZoom:s}){return o=>{var c,d;e.usedRightMouseButton=!!(i&&oN(t,e.mouseButton??0)),(c=o.sourceEvent)!=null&&c.sync||a([o.transform.x,o.transform.y,o.transform.k]),s&&!((d=o.sourceEvent)!=null&&d.internal)&&(s==null||s(o.sourceEvent,Ju(o.transform)))}}function E6({zoomPanValues:e,panOnDrag:t,panOnScroll:i,onDraggingChange:a,onPanZoomEnd:s,onPaneContextMenu:o}){return c=>{var d;if(!((d=c.sourceEvent)!=null&&d.internal)&&(e.isZoomingOrPanning=!1,o&&oN(t,e.mouseButton??0)&&!e.usedRightMouseButton&&c.sourceEvent&&o(c.sourceEvent),e.usedRightMouseButton=!1,a(!1),s)){const f=Ju(c.transform);e.prevViewport=f,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{s==null||s(c.sourceEvent,f)},i?150:0)}}}function N6({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:i,panOnDrag:a,panOnScroll:s,zoomOnDoubleClick:o,userSelectionActive:c,noWheelClassName:d,noPanClassName:f,lib:h,connectionInProgress:m}){return p=>{var S;const y=e||t,x=i&&p.ctrlKey,_=p.type==="wheel";if(p.button===1&&p.type==="mousedown"&&(Is(p,`${h}-flow__node`)||Is(p,`${h}-flow__edge`)))return!0;if(!a&&!y&&!s&&!o&&!i||c||m&&!_||Is(p,d)&&_||Is(p,f)&&(!_||s&&_&&!e)||!i&&p.ctrlKey&&_)return!1;if(!i&&p.type==="touchstart"&&((S=p.touches)==null?void 0:S.length)>1)return p.preventDefault(),!1;if(!y&&!s&&!x&&_||!a&&(p.type==="mousedown"||p.type==="touchstart")||Array.isArray(a)&&!a.includes(p.button)&&p.type==="mousedown")return!1;const N=Array.isArray(a)&&a.includes(p.button)||!p.button||p.button<=1;return(!p.ctrlKey||_)&&N}}function S6({domNode:e,minZoom:t,maxZoom:i,translateExtent:a,viewport:s,onPanZoom:o,onPanZoomStart:c,onPanZoomEnd:d,onDraggingChange:f}){const h={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},m=e.getBoundingClientRect();let p=[[0,0],[m.width,m.height]];const y=typeof ResizeObserver<"u"?new ResizeObserver(G=>{const A=G[0];A&&(p=[[0,0],[A.contentRect.width,A.contentRect.height]])}):null;y==null||y.observe(e);const x=jE().extent(()=>p).scaleExtent([t,i]).translateExtent(a),_=ii(e).call(x);M({x:s.x,y:s.y,zoom:Zs(s.zoom,t,i)},[[0,0],[m.width,m.height]],a);const N=_.on("wheel.zoom"),S=_.on("dblclick.zoom");x.wheelDelta(cN);async function w(G,A){return _?new Promise(q=>{x==null||x.interpolate((A==null?void 0:A.interpolate)==="linear"?co:gu).transform(_m(_,A==null?void 0:A.duration,A==null?void 0:A.ease,()=>q(!0)),G)}):!1}function k({noWheelClassName:G,noPanClassName:A,onPaneContextMenu:q,userSelectionActive:O,panOnScroll:H,panOnDrag:K,panOnScrollMode:X,panOnScrollSpeed:C,preventScrolling:L,zoomOnPinch:Y,zoomOnScroll:D,zoomOnDoubleClick:F,zoomActivationKeyPressed:$,lib:Q,onTransformChange:J,connectionInProgress:W,paneClickDistance:te,selectionOnDrag:oe}){O&&!h.isZoomingOrPanning&&E();const fe=H&&!$&&!O;x.clickDistance(oe?1/0:!Mi(te)||te<0?0:te);const be=fe?y6({zoomPanValues:h,noWheelClassName:G,d3Selection:_,d3Zoom:x,panOnScrollMode:X,panOnScrollSpeed:C,zoomOnPinch:Y,onPanZoomStart:c,onPanZoom:o,onPanZoomEnd:d}):v6({noWheelClassName:G,preventScrolling:L,d3ZoomHandler:N});_.on("wheel.zoom",be,{passive:!1});const we=_6({zoomPanValues:h,onDraggingChange:f,onPanZoomStart:c});x.on("start",we);const Ne=w6({zoomPanValues:h,panOnDrag:K,onPaneContextMenu:!!q,onPanZoom:o,onTransformChange:J});x.on("zoom",Ne);const je=E6({zoomPanValues:h,panOnDrag:K,panOnScroll:H,onPaneContextMenu:q,onPanZoomEnd:d,onDraggingChange:f});x.on("end",je);const $e=N6({zoomActivationKeyPressed:$,panOnDrag:K,zoomOnScroll:D,panOnScroll:H,zoomOnDoubleClick:F,zoomOnPinch:Y,userSelectionActive:O,noPanClassName:A,noWheelClassName:G,lib:Q,connectionInProgress:W});x.filter($e),F?_.on("dblclick.zoom",S):_.on("dblclick.zoom",null)}function E(){x.on("zoom",null)}async function M(G,A,q){const O=vm(G),H=x==null?void 0:x.constrain()(O,A,q);return H&&await w(H),H}async function U(G,A){const q=vm(G);return await w(q,A),q}function R(G){if(_){const A=vm(G),q=_.property("__zoom");(q.k!==G.zoom||q.x!==G.x||q.y!==G.y)&&(x==null||x.transform(_,A,null,{sync:!0}))}}function B(){const G=_?DE(_.node()):{x:0,y:0,k:1};return{x:G.x,y:G.y,zoom:G.k}}async function I(G,A){return _?new Promise(q=>{x==null||x.interpolate((A==null?void 0:A.interpolate)==="linear"?co:gu).scaleTo(_m(_,A==null?void 0:A.duration,A==null?void 0:A.ease,()=>q(!0)),G)}):!1}async function Z(G,A){return _?new Promise(q=>{x==null||x.interpolate((A==null?void 0:A.interpolate)==="linear"?co:gu).scaleBy(_m(_,A==null?void 0:A.duration,A==null?void 0:A.ease,()=>q(!0)),G)}):!1}function j(G){x==null||x.scaleExtent(G)}function z(G){x==null||x.translateExtent(G)}function V(G){const A=!Mi(G)||G<0?0:G;x==null||x.clickDistance(A)}return{update:k,destroy:E,setViewport:U,setViewportConstrained:M,getViewport:B,scaleTo:I,scaleBy:Z,setScaleExtent:j,setTranslateExtent:z,syncViewport:R,setClickDistance:V}}var Ws;(function(e){e.Line="line",e.Handle="handle"})(Ws||(Ws={}));function k6({width:e,prevWidth:t,height:i,prevHeight:a,affectsX:s,affectsY:o}){const c=e-t,d=i-a,f=[c>0?1:c<0?-1:0,d>0?1:d<0?-1:0];return c&&s&&(f[0]=f[0]*-1),d&&o&&(f[1]=f[1]*-1),f}function f1(e){const t=e.includes("right")||e.includes("left"),i=e.includes("bottom")||e.includes("top"),a=e.includes("left"),s=e.includes("top");return{isHorizontal:t,isVertical:i,affectsX:a,affectsY:s}}function ia(e,t){return Math.max(0,t-e)}function ra(e,t){return Math.max(0,e-t)}function cu(e,t,i){return Math.max(0,t-e,e-i)}function h1(e,t){return e?!t:t}function T6(e,t,i,a,s,o,c,d){let{affectsX:f,affectsY:h}=t;const{isHorizontal:m,isVertical:p}=t,y=m&&p,{xSnapped:x,ySnapped:_}=i,{minWidth:N,maxWidth:S,minHeight:w,maxHeight:k}=a,{x:E,y:M,width:U,height:R,aspectRatio:B}=e;let I=Math.floor(m?x-e.pointerX:0),Z=Math.floor(p?_-e.pointerY:0);const j=U+(f?-I:I),z=R+(h?-Z:Z),V=-o[0]*U,G=-o[1]*R;let A=cu(j,N,S),q=cu(z,w,k);if(c){let K=0,X=0;f&&I<0?K=ia(E+I+V,c[0][0]):!f&&I>0&&(K=ra(E+j+V,c[1][0])),h&&Z<0?X=ia(M+Z+G,c[0][1]):!h&&Z>0&&(X=ra(M+z+G,c[1][1])),A=Math.max(A,K),q=Math.max(q,X)}if(d){let K=0,X=0;f&&I>0?K=ra(E+I,d[0][0]):!f&&I<0&&(K=ia(E+j,d[1][0])),h&&Z>0?X=ra(M+Z,d[0][1]):!h&&Z<0&&(X=ia(M+z,d[1][1])),A=Math.max(A,K),q=Math.max(q,X)}if(s){if(m){const K=cu(j/B,w,k)*B;if(A=Math.max(A,K),c){let X=0;!f&&!h||f&&!h&&y?X=ra(M+G+j/B,c[1][1])*B:X=ia(M+G+(f?I:-I)/B,c[0][1])*B,A=Math.max(A,X)}if(d){let X=0;!f&&!h||f&&!h&&y?X=ia(M+j/B,d[1][1])*B:X=ra(M+(f?I:-I)/B,d[0][1])*B,A=Math.max(A,X)}}if(p){const K=cu(z*B,N,S)/B;if(q=Math.max(q,K),c){let X=0;!f&&!h||h&&!f&&y?X=ra(E+z*B+V,c[1][0])/B:X=ia(E+(h?Z:-Z)*B+V,c[0][0])/B,q=Math.max(q,X)}if(d){let X=0;!f&&!h||h&&!f&&y?X=ia(E+z*B,d[1][0])/B:X=ra(E+(h?Z:-Z)*B,d[0][0])/B,q=Math.max(q,X)}}}Z=Z+(Z<0?q:-q),I=I+(I<0?A:-A),s&&(y?j>z*B?Z=(h1(f,h)?-I:I)/B:I=(h1(f,h)?-Z:Z)*B:m?(Z=I/B,h=f):(I=Z*B,f=h));const O=f?E+I:E,H=h?M+Z:M;return{width:U+(f?-I:I),height:R+(h?-Z:Z),x:o[0]*I*(f?-1:1)+O,y:o[1]*Z*(h?-1:1)+H}}const uN={width:0,height:0,x:0,y:0},A6={...uN,pointerX:0,pointerY:0,aspectRatio:1};function C6(e,t,i){const a=t.position.x+e.position.x,s=t.position.y+e.position.y,o=e.measured.width??0,c=e.measured.height??0,d=i[0]*o,f=i[1]*c;return[[a-d,s-f],[a+o-d,s+c-f]]}function M6({domNode:e,nodeId:t,getStoreItems:i,onChange:a,onEnd:s}){const o=ii(e);let c={controlDirection:f1("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function d({controlPosition:h,boundaries:m,keepAspectRatio:p,resizeDirection:y,onResizeStart:x,onResize:_,onResizeEnd:N,shouldResize:S}){let w={...uN},k={...A6};c={boundaries:m,resizeDirection:y,keepAspectRatio:p,controlDirection:f1(h)};let E,M=null,U=[],R,B,I,Z=!1;const j=yE().on("start",z=>{const{nodeLookup:V,transform:G,snapGrid:A,snapToGrid:q,nodeOrigin:O,paneDomNode:H}=i();if(E=V.get(t),!E)return;M=(H==null?void 0:H.getBoundingClientRect())??null;const{xSnapped:K,ySnapped:X}=uo(z.sourceEvent,{transform:G,snapGrid:A,snapToGrid:q,containerBounds:M});w={width:E.measured.width??0,height:E.measured.height??0,x:E.position.x??0,y:E.position.y??0},k={...w,pointerX:K,pointerY:X,aspectRatio:w.width/w.height},R=void 0,B=Va(E.extent)?E.extent:void 0,E.parentId&&(E.extent==="parent"||E.expandParent)&&(R=V.get(E.parentId)),R&&E.extent==="parent"&&(B=[[0,0],[R.measured.width,R.measured.height]]),U=[],I=void 0;for(const[C,L]of V)if(L.parentId===t&&(U.push({id:C,position:{...L.position},extent:L.extent}),L.extent==="parent"||L.expandParent)){const Y=C6(L,E,L.origin??O);I?I=[[Math.min(Y[0][0],I[0][0]),Math.min(Y[0][1],I[0][1])],[Math.max(Y[1][0],I[1][0]),Math.max(Y[1][1],I[1][1])]]:I=Y}x==null||x(z,{...w})}).on("drag",z=>{const{transform:V,snapGrid:G,snapToGrid:A,nodeOrigin:q}=i(),O=uo(z.sourceEvent,{transform:V,snapGrid:G,snapToGrid:A,containerBounds:M}),H=[];if(!E)return;const{x:K,y:X,width:C,height:L}=w,Y={},D=E.origin??q,{width:F,height:$,x:Q,y:J}=T6(k,c.controlDirection,O,c.boundaries,c.keepAspectRatio,D,B,I),W=F!==C,te=$!==L,oe=Q!==K&&W,fe=J!==X&&te;if(!oe&&!fe&&!W&&!te)return;if((oe||fe||D[0]===1||D[1]===1)&&(Y.x=oe?Q:w.x,Y.y=fe?J:w.y,w.x=Y.x,w.y=Y.y,U.length>0)){const je=Q-K,$e=J-X;for(const st of U)st.position={x:st.position.x-je+D[0]*(F-C),y:st.position.y-$e+D[1]*($-L)},H.push(st)}if((W||te)&&(Y.width=W&&(!c.resizeDirection||c.resizeDirection==="horizontal")?F:w.width,Y.height=te&&(!c.resizeDirection||c.resizeDirection==="vertical")?$:w.height,w.width=Y.width,w.height=Y.height),R&&E.expandParent){const je=D[0]*(Y.width??0);Y.x&&Y.x<je&&(w.x=je,k.x=k.x-(Y.x-je));const $e=D[1]*(Y.height??0);Y.y&&Y.y<$e&&(w.y=$e,k.y=k.y-(Y.y-$e))}const be=k6({width:w.width,prevWidth:C,height:w.height,prevHeight:L,affectsX:c.controlDirection.affectsX,affectsY:c.controlDirection.affectsY}),we={...w,direction:be};(S==null?void 0:S(z,we))!==!1&&(Z=!0,_==null||_(z,we),a(Y,H))}).on("end",z=>{Z&&(N==null||N(z,{...w}),s==null||s({...w}),Z=!1)});o.call(j)}function f(){o.on(".drag",null)}return{update:d,destroy:f}}var wm={exports:{}},Em={},Nm={exports:{}},Sm={};/**
- * @license React
- * use-sync-external-store-shim.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var m1;function O6(){if(m1)return Sm;m1=1;var e=To();function t(p,y){return p===y&&(p!==0||1/p===1/y)||p!==p&&y!==y}var i=typeof Object.is=="function"?Object.is:t,a=e.useState,s=e.useEffect,o=e.useLayoutEffect,c=e.useDebugValue;function d(p,y){var x=y(),_=a({inst:{value:x,getSnapshot:y}}),N=_[0].inst,S=_[1];return o(function(){N.value=x,N.getSnapshot=y,f(N)&&S({inst:N})},[p,x,y]),s(function(){return f(N)&&S({inst:N}),p(function(){f(N)&&S({inst:N})})},[p]),c(x),x}function f(p){var y=p.getSnapshot;p=p.value;try{var x=y();return!i(p,x)}catch{return!0}}function h(p,y){return y()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:d;return Sm.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,Sm}var p1;function R6(){return p1||(p1=1,Nm.exports=O6()),Nm.exports}/**
- * @license React
- * use-sync-external-store-shim/with-selector.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var g1;function D6(){if(g1)return Em;g1=1;var e=To(),t=R6();function i(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}var a=typeof Object.is=="function"?Object.is:i,s=t.useSyncExternalStore,o=e.useRef,c=e.useEffect,d=e.useMemo,f=e.useDebugValue;return Em.useSyncExternalStoreWithSelector=function(h,m,p,y,x){var _=o(null);if(_.current===null){var N={hasValue:!1,value:null};_.current=N}else N=_.current;_=d(function(){function w(R){if(!k){if(k=!0,E=R,R=y(R),x!==void 0&&N.hasValue){var B=N.value;if(x(B,R))return M=B}return M=R}if(B=M,a(E,R))return B;var I=y(R);return x!==void 0&&x(B,I)?(E=R,B):(E=R,M=I)}var k=!1,E,M,U=p===void 0?null:p;return[function(){return w(m())},U===null?void 0:function(){return w(U())}]},[m,p,y,x]);var S=s(h,_[0],_[1]);return c(function(){N.hasValue=!0,N.value=S},[S]),f(S),S},Em}var b1;function j6(){return b1||(b1=1,wm.exports=D6()),wm.exports}var L6=j6();const z6=ko(L6),I6={},x1=e=>{let t;const i=new Set,a=(m,p)=>{const y=typeof m=="function"?m(t):m;if(!Object.is(y,t)){const x=t;t=p??(typeof y!="object"||y===null)?y:Object.assign({},t,y),i.forEach(_=>_(t,x))}},s=()=>t,f={setState:a,getState:s,getInitialState:()=>h,subscribe:m=>(i.add(m),()=>i.delete(m)),destroy:()=>{(I6?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),i.clear()}},h=t=e(a,s,f);return f},B6=e=>e?x1(e):x1,{useDebugValue:U6}=h2,{useSyncExternalStoreWithSelector:H6}=z6,$6=e=>e;function dN(e,t=$6,i){const a=H6(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,i);return U6(a),a}const y1=(e,t)=>{const i=B6(e),a=(s,o=t)=>dN(i,s,o);return Object.assign(a,i),a},q6=(e,t)=>e?y1(e,t):y1;function qt(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[a,s]of e)if(!Object.is(s,t.get(a)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const a of e)if(!t.has(a))return!1;return!0}const i=Object.keys(e);if(i.length!==Object.keys(t).length)return!1;for(const a of i)if(!Object.prototype.hasOwnProperty.call(t,a)||!Object.is(e[a],t[a]))return!1;return!0}x_();const ed=ee.createContext(null),P6=ed.Provider,fN=Di.error001("react");function dt(e,t){const i=ee.useContext(ed);if(i===null)throw new Error(fN);return dN(i,e,t)}function Lt(){const e=ee.useContext(ed);if(e===null)throw new Error(fN);return ee.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const v1={display:"none"},F6={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},hN="react-flow__node-desc",mN="react-flow__edge-desc",G6="react-flow__aria-live",V6=e=>e.ariaLiveMessage,Y6=e=>e.ariaLabelConfig;function X6({rfId:e}){const t=dt(V6);return g.jsx("div",{id:`${G6}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:F6,children:t})}function K6({rfId:e,disableKeyboardA11y:t}){const i=dt(Y6);return g.jsxs(g.Fragment,{children:[g.jsx("div",{id:`${hN}-${e}`,style:v1,children:t?i["node.a11yDescription.default"]:i["node.a11yDescription.keyboardDisabled"]}),g.jsx("div",{id:`${mN}-${e}`,style:v1,children:i["edge.a11yDescription.default"]}),!t&&g.jsx(X6,{rfId:e})]})}const td=ee.forwardRef(({position:e="top-left",children:t,className:i,style:a,...s},o)=>{const c=`${e}`.split("-");return g.jsx("div",{className:ln(["react-flow__panel",i,...c]),style:a,ref:o,...s,children:t})});td.displayName="Panel";const _1="https://reactflow.dev?utm_source=attribution";function Z6({proOptions:e,position:t="bottom-right"}){return e!=null&&e.hideAttribution?null:g.jsx(td,{position:t,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${_1}`,children:g.jsx("a",{href:_1,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const Q6=e=>{const t=[],i=[];for(const[,a]of e.nodeLookup)a.selected&&t.push(a.internals.userNode);for(const[,a]of e.edgeLookup)a.selected&&i.push(a);return{selectedNodes:t,selectedEdges:i}},uu=e=>e.id;function W6(e,t){return qt(e.selectedNodes.map(uu),t.selectedNodes.map(uu))&&qt(e.selectedEdges.map(uu),t.selectedEdges.map(uu))}function J6({onSelectionChange:e}){const t=Lt(),{selectedNodes:i,selectedEdges:a}=dt(Q6,W6);return ee.useEffect(()=>{const s={nodes:i,edges:a};e==null||e(s),t.getState().onSelectionChangeHandlers.forEach(o=>o(s))},[i,a,e]),null}const e8=e=>!!e.onSelectionChangeHandlers;function t8({onSelectionChange:e}){const t=dt(e8);return e||t?g.jsx(J6,{onSelectionChange:e}):null}const pN=[0,0],n8={x:0,y:0,zoom:1},i8=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],w1=[...i8,"rfId"],r8=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges}),E1={translateExtent:_o,nodeOrigin:pN,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function a8(e){const{setNodes:t,setEdges:i,setMinZoom:a,setMaxZoom:s,setTranslateExtent:o,setNodeExtent:c,reset:d,setDefaultNodesAndEdges:f}=dt(r8,qt),h=Lt();ee.useEffect(()=>(f(e.defaultNodes,e.defaultEdges),()=>{m.current=E1,d()}),[]);const m=ee.useRef(E1);return ee.useEffect(()=>{for(const p of w1){const y=e[p],x=m.current[p];y!==x&&(typeof e[p]>"u"||(p==="nodes"?t(y):p==="edges"?i(y):p==="minZoom"?a(y):p==="maxZoom"?s(y):p==="translateExtent"?o(y):p==="nodeExtent"?c(y):p==="ariaLabelConfig"?h.setState({ariaLabelConfig:PI(y)}):p==="fitView"?h.setState({fitViewQueued:y}):p==="fitViewOptions"?h.setState({fitViewOptions:y}):h.setState({[p]:y})))}m.current=e},w1.map(p=>e[p])),null}function N1(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function s8(e){var a;const[t,i]=ee.useState(e==="system"?null:e);return ee.useEffect(()=>{if(e!=="system"){i(e);return}const s=N1(),o=()=>i(s!=null&&s.matches?"dark":"light");return o(),s==null||s.addEventListener("change",o),()=>{s==null||s.removeEventListener("change",o)}},[e]),t!==null?t:(a=N1())!=null&&a.matches?"dark":"light"}const S1=typeof document<"u"?document:null;function So(e=null,t={target:S1,actInsideInputWithModifier:!0}){const[i,a]=ee.useState(!1),s=ee.useRef(!1),o=ee.useRef(new Set([])),[c,d]=ee.useMemo(()=>{if(e!==null){const h=(Array.isArray(e)?e:[e]).filter(p=>typeof p=="string").map(p=>p.replace("+",`
-`).replace(`
-
-`,`
-+`).split(`
-`)),m=h.reduce((p,y)=>p.concat(...y),[]);return[h,m]}return[[],[]]},[e]);return ee.useEffect(()=>{const f=(t==null?void 0:t.target)??S1,h=(t==null?void 0:t.actInsideInputWithModifier)??!0;if(e!==null){const m=x=>{var S,w;if(s.current=x.ctrlKey||x.metaKey||x.shiftKey||x.altKey,(!s.current||s.current&&!h)&&XE(x))return!1;const N=T1(x.code,d);if(o.current.add(x[N]),k1(c,o.current,!1)){const k=((w=(S=x.composedPath)==null?void 0:S.call(x))==null?void 0:w[0])||x.target,E=(k==null?void 0:k.nodeName)==="BUTTON"||(k==null?void 0:k.nodeName)==="A";t.preventDefault!==!1&&(s.current||!E)&&x.preventDefault(),a(!0)}},p=x=>{const _=T1(x.code,d);k1(c,o.current,!0)?(a(!1),o.current.clear()):o.current.delete(x[_]),x.key==="Meta"&&o.current.clear(),s.current=!1},y=()=>{o.current.clear(),a(!1)};return f==null||f.addEventListener("keydown",m),f==null||f.addEventListener("keyup",p),window.addEventListener("blur",y),window.addEventListener("contextmenu",y),()=>{f==null||f.removeEventListener("keydown",m),f==null||f.removeEventListener("keyup",p),window.removeEventListener("blur",y),window.removeEventListener("contextmenu",y)}}},[e,a]),i}function k1(e,t,i){return e.filter(a=>i||a.length===t.size).some(a=>a.every(s=>t.has(s)))}function T1(e,t){return t.includes(e)?"code":"key"}const l8=()=>{const e=Lt();return ee.useMemo(()=>({zoomIn:async t=>{const{panZoom:i}=e.getState();return i?i.scaleBy(1.2,t):!1},zoomOut:async t=>{const{panZoom:i}=e.getState();return i?i.scaleBy(1/1.2,t):!1},zoomTo:async(t,i)=>{const{panZoom:a}=e.getState();return a?a.scaleTo(t,i):!1},getZoom:()=>e.getState().transform[2],setViewport:async(t,i)=>{const{transform:[a,s,o],panZoom:c}=e.getState();return c?(await c.setViewport({x:t.x??a,y:t.y??s,zoom:t.zoom??o},i),!0):!1},getViewport:()=>{const[t,i,a]=e.getState().transform;return{x:t,y:i,zoom:a}},setCenter:async(t,i,a)=>e.getState().setCenter(t,i,a),fitBounds:async(t,i)=>{const{width:a,height:s,minZoom:o,maxZoom:c,panZoom:d}=e.getState(),f=Jp(t,a,s,o,c,(i==null?void 0:i.padding)??.1);return d?(await d.setViewport(f,{duration:i==null?void 0:i.duration,ease:i==null?void 0:i.ease,interpolate:i==null?void 0:i.interpolate}),!0):!1},screenToFlowPosition:(t,i={})=>{const{transform:a,snapGrid:s,snapToGrid:o,domNode:c}=e.getState();if(!c)return t;const{x:d,y:f}=c.getBoundingClientRect(),h={x:t.x-d,y:t.y-f},m=i.snapGrid??s,p=i.snapToGrid??o;return Io(h,a,p,m)},flowToScreenPosition:t=>{const{transform:i,domNode:a}=e.getState();if(!a)return t;const{x:s,y:o}=a.getBoundingClientRect(),c=Qs(t,i);return{x:c.x+s,y:c.y+o}}}),[])};function gN(e,t){const i=[],a=new Map,s=[];for(const o of e)if(o.type==="add"){s.push(o);continue}else if(o.type==="remove"||o.type==="replace")a.set(o.id,[o]);else{const c=a.get(o.id);c?c.push(o):a.set(o.id,[o])}for(const o of t){const c=a.get(o.id);if(!c){i.push(o);continue}if(c[0].type==="remove")continue;if(c[0].type==="replace"){i.push({...c[0].item});continue}const d={...o};for(const f of c)o8(f,d);i.push(d)}return s.length&&s.forEach(o=>{o.index!==void 0?i.splice(o.index,0,{...o.item}):i.push({...o.item})}),i}function o8(e,t){switch(e.type){case"select":{t.selected=e.selected;break}case"position":{typeof e.position<"u"&&(t.position=e.position),typeof e.dragging<"u"&&(t.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(t.measured={...e.dimensions},e.setAttributes&&((e.setAttributes===!0||e.setAttributes==="width")&&(t.width=e.dimensions.width),(e.setAttributes===!0||e.setAttributes==="height")&&(t.height=e.dimensions.height))),typeof e.resizing=="boolean"&&(t.resizing=e.resizing);break}}}function bN(e,t){return gN(e,t)}function xN(e,t){return gN(e,t)}function Ia(e,t){return{id:e,type:"select",selected:t}}function Bs(e,t=new Set,i=!1){const a=[];for(const[s,o]of e){const c=t.has(s);!(o.selected===void 0&&!c)&&o.selected!==c&&(i&&(o.selected=c),a.push(Ia(o.id,c)))}return a}function A1({items:e=[],lookup:t}){var s;const i=[],a=new Map(e.map(o=>[o.id,o]));for(const[o,c]of e.entries()){const d=t.get(c.id),f=((s=d==null?void 0:d.internals)==null?void 0:s.userNode)??d;f!==void 0&&f!==c&&i.push({id:c.id,item:c,type:"replace"}),f===void 0&&i.push({item:c,type:"add",index:o})}for(const[o]of t)a.get(o)===void 0&&i.push({id:o,type:"remove"});return i}function C1(e){return{id:e.id,type:"remove"}}const c8=FE();function u8(e,t,i={}){return KI(e,t,{...i,onError:i.onError??c8})}const M1=e=>jI(e),d8=e=>UE(e);function yN(e){return ee.forwardRef(e)}const vN=typeof window<"u"?ee.useLayoutEffect:ee.useEffect;function O1(e){const[t,i]=ee.useState(BigInt(0)),[a]=ee.useState(()=>f8(()=>i(s=>s+BigInt(1))));return vN(()=>{const s=a.get();s.length&&(e(s),a.reset())},[t]),a}function f8(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:i=>{t.push(i),e()}}}const _N=ee.createContext(null);function h8({children:e}){const t=Lt(),i=ee.useCallback(d=>{const{nodes:f=[],setNodes:h,hasDefaultNodes:m,onNodesChange:p,nodeLookup:y,fitViewQueued:x,onNodesChangeMiddlewareMap:_}=t.getState();let N=f;for(const w of d)N=typeof w=="function"?w(N):w;let S=A1({items:N,lookup:y});for(const w of _.values())S=w(S);m&&h(N),S.length>0?p==null||p(S):x&&window.requestAnimationFrame(()=>{const{fitViewQueued:w,nodes:k,setNodes:E}=t.getState();w&&E(k)})},[]),a=O1(i),s=ee.useCallback(d=>{const{edges:f=[],setEdges:h,hasDefaultEdges:m,onEdgesChange:p,edgeLookup:y}=t.getState();let x=f;for(const _ of d)x=typeof _=="function"?_(x):_;m?h(x):p&&p(A1({items:x,lookup:y}))},[]),o=O1(s),c=ee.useMemo(()=>({nodeQueue:a,edgeQueue:o}),[]);return g.jsx(_N.Provider,{value:c,children:e})}function m8(){const e=ee.useContext(_N);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const p8=e=>!!e.panZoom;function Bo(){const e=l8(),t=Lt(),i=m8(),a=dt(p8),s=ee.useMemo(()=>{const o=p=>t.getState().nodeLookup.get(p),c=p=>{i.nodeQueue.push(p)},d=p=>{i.edgeQueue.push(p)},f=p=>{var w,k;const{nodeLookup:y,nodeOrigin:x}=t.getState(),_=M1(p)?p:y.get(p.id),N=_.parentId?VE(_.position,_.measured,_.parentId,y,x):_.position,S={..._,position:N,width:((w=_.measured)==null?void 0:w.width)??_.width,height:((k=_.measured)==null?void 0:k.height)??_.height};return Eo(S)},h=(p,y,x={replace:!1})=>{c(_=>_.map(N=>{if(N.id===p){const S=typeof y=="function"?y(N):y;return x.replace&&M1(S)?S:{...N,...S}}return N}))},m=(p,y,x={replace:!1})=>{d(_=>_.map(N=>{if(N.id===p){const S=typeof y=="function"?y(N):y;return x.replace&&d8(S)?S:{...N,...S}}return N}))};return{getNodes:()=>t.getState().nodes.map(p=>({...p})),getNode:p=>{var y;return(y=o(p))==null?void 0:y.internals.userNode},getInternalNode:o,getEdges:()=>{const{edges:p=[]}=t.getState();return p.map(y=>({...y}))},getEdge:p=>t.getState().edgeLookup.get(p),setNodes:c,setEdges:d,addNodes:p=>{const y=Array.isArray(p)?p:[p];i.nodeQueue.push(x=>[...x,...y])},addEdges:p=>{const y=Array.isArray(p)?p:[p];i.edgeQueue.push(x=>[...x,...y])},toObject:()=>{const{nodes:p=[],edges:y=[],transform:x}=t.getState(),[_,N,S]=x;return{nodes:p.map(w=>({...w})),edges:y.map(w=>({...w})),viewport:{x:_,y:N,zoom:S}}},deleteElements:async({nodes:p=[],edges:y=[]})=>{const{nodes:x,edges:_,onNodesDelete:N,onEdgesDelete:S,triggerNodeChanges:w,triggerEdgeChanges:k,onDelete:E,onBeforeDelete:M}=t.getState(),{nodes:U,edges:R}=await UI({nodesToRemove:p,edgesToRemove:y,nodes:x,edges:_,onBeforeDelete:M}),B=R.length>0,I=U.length>0;if(B){const Z=R.map(C1);S==null||S(R),k(Z)}if(I){const Z=U.map(C1);N==null||N(U),w(Z)}return(I||B)&&(E==null||E({nodes:U,edges:R})),{deletedNodes:U,deletedEdges:R}},getIntersectingNodes:(p,y=!0,x)=>{const _=t1(p),N=_?p:f(p),S=x!==void 0;return N?(x||t.getState().nodes).filter(w=>{const k=t.getState().nodeLookup.get(w.id);if(k&&!_&&(w.id===p.id||!k.internals.positionAbsolute))return!1;const E=Eo(S?w:k),M=zu(E,N);return y&&M>0||M>=E.width*E.height||M>=N.width*N.height}):[]},isNodeIntersecting:(p,y,x=!0)=>{const N=t1(p)?p:f(p);if(!N)return!1;const S=zu(N,y);return x&&S>0||S>=y.width*y.height||S>=N.width*N.height},updateNode:h,updateNodeData:(p,y,x={replace:!1})=>{h(p,_=>{const N=typeof y=="function"?y(_):y;return x.replace?{..._,data:N}:{..._,data:{..._.data,...N}}},x)},updateEdge:m,updateEdgeData:(p,y,x={replace:!1})=>{m(p,_=>{const N=typeof y=="function"?y(_):y;return x.replace?{..._,data:N}:{..._,data:{..._.data,...N}}},x)},getNodesBounds:p=>{const{nodeLookup:y,nodeOrigin:x}=t.getState();return LI(p,{nodeLookup:y,nodeOrigin:x})},getHandleConnections:({type:p,id:y,nodeId:x})=>{var _;return Array.from(((_=t.getState().connectionLookup.get(`${x}-${p}${y?`-${y}`:""}`))==null?void 0:_.values())??[])},getNodeConnections:({type:p,handleId:y,nodeId:x})=>{var _;return Array.from(((_=t.getState().connectionLookup.get(`${x}${p?y?`-${p}-${y}`:`-${p}`:""}`))==null?void 0:_.values())??[])},fitView:async p=>{const y=t.getState().fitViewResolver??qI();return t.setState({fitViewQueued:!0,fitViewOptions:p,fitViewResolver:y}),i.nodeQueue.push(x=>[...x]),y.promise}}},[]);return ee.useMemo(()=>({...s,...e,viewportInitialized:a}),[a])}const R1=e=>e.selected,g8=typeof window<"u"?window:void 0;function b8({deleteKeyCode:e,multiSelectionKeyCode:t}){const i=Lt(),{deleteElements:a}=Bo(),s=So(e,{actInsideInputWithModifier:!1}),o=So(t,{target:g8});ee.useEffect(()=>{if(s){const{edges:c,nodes:d}=i.getState();a({nodes:d.filter(R1),edges:c.filter(R1)}),i.setState({nodesSelectionActive:!1})}},[s]),ee.useEffect(()=>{i.setState({multiSelectionActive:o})},[o])}function x8(e){const t=Lt();ee.useEffect(()=>{const i=()=>{var s,o,c,d;if(!e.current||!(((o=(s=e.current).checkVisibility)==null?void 0:o.call(s))??!0))return!1;const a=eg(e.current);(a.height===0||a.width===0)&&((d=(c=t.getState()).onError)==null||d.call(c,"004",Di.error004())),t.setState({width:a.width||500,height:a.height||500})};if(e.current){i(),window.addEventListener("resize",i);const a=new ResizeObserver(()=>i());return a.observe(e.current),()=>{window.removeEventListener("resize",i),a&&e.current&&a.unobserve(e.current)}}},[])}const nd={position:"absolute",width:"100%",height:"100%",top:0,left:0},y8=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function v8({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:i=!0,panOnScroll:a=!1,panOnScrollSpeed:s=.5,panOnScrollMode:o=$a.Free,zoomOnDoubleClick:c=!0,panOnDrag:d=!0,defaultViewport:f,translateExtent:h,minZoom:m,maxZoom:p,zoomActivationKeyCode:y,preventScrolling:x=!0,children:_,noWheelClassName:N,noPanClassName:S,onViewportChange:w,isControlledViewport:k,paneClickDistance:E,selectionOnDrag:M}){const U=Lt(),R=ee.useRef(null),{userSelectionActive:B,lib:I,connectionInProgress:Z}=dt(y8,qt),j=So(y),z=ee.useRef();x8(R);const V=ee.useCallback(G=>{w==null||w({x:G[0],y:G[1],zoom:G[2]}),k||U.setState({transform:G})},[w,k]);return ee.useEffect(()=>{if(R.current){z.current=S6({domNode:R.current,minZoom:m,maxZoom:p,translateExtent:h,viewport:f,onDraggingChange:O=>U.setState(H=>H.paneDragging===O?H:{paneDragging:O}),onPanZoomStart:(O,H)=>{const{onViewportChangeStart:K,onMoveStart:X}=U.getState();X==null||X(O,H),K==null||K(H)},onPanZoom:(O,H)=>{const{onViewportChange:K,onMove:X}=U.getState();X==null||X(O,H),K==null||K(H)},onPanZoomEnd:(O,H)=>{const{onViewportChangeEnd:K,onMoveEnd:X}=U.getState();X==null||X(O,H),K==null||K(H)}});const{x:G,y:A,zoom:q}=z.current.getViewport();return U.setState({panZoom:z.current,transform:[G,A,q],domNode:R.current.closest(".react-flow")}),()=>{var O;(O=z.current)==null||O.destroy()}}},[]),ee.useEffect(()=>{var G;(G=z.current)==null||G.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:i,panOnScroll:a,panOnScrollSpeed:s,panOnScrollMode:o,zoomOnDoubleClick:c,panOnDrag:d,zoomActivationKeyPressed:j,preventScrolling:x,noPanClassName:S,userSelectionActive:B,noWheelClassName:N,lib:I,onTransformChange:V,connectionInProgress:Z,selectionOnDrag:M,paneClickDistance:E})},[e,t,i,a,s,o,c,d,j,x,S,B,N,I,V,Z,M,E]),g.jsx("div",{className:"react-flow__renderer",ref:R,style:nd,children:_})}const _8=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function w8(){const{userSelectionActive:e,userSelectionRect:t}=dt(_8,qt);return e&&t?g.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}const km=(e,t)=>i=>{i.target===t.current&&(e==null||e(i))},E8=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,dragging:e.paneDragging,panBy:e.panBy,autoPanSpeed:e.autoPanSpeed});function N8({isSelecting:e,selectionKeyPressed:t,selectionMode:i=wo.Full,panOnDrag:a,autoPanOnSelection:s,paneClickDistance:o,selectionOnDrag:c,onSelectionStart:d,onSelectionEnd:f,onPaneClick:h,onPaneContextMenu:m,onPaneScroll:p,onPaneMouseEnter:y,onPaneMouseMove:x,onPaneMouseLeave:_,children:N}){const S=ee.useRef(0),w=Lt(),{userSelectionActive:k,elementsSelectable:E,dragging:M,panBy:U,autoPanSpeed:R}=dt(E8,qt),B=E&&(e||k),I=ee.useRef(null),Z=ee.useRef(),j=ee.useRef(new Set),z=ee.useRef(new Set),V=ee.useRef(!1),G=ee.useRef(!1),A=ee.useRef({x:0,y:0}),q=ee.useRef(!1),O=W=>{if(G.current||V.current||w.getState().connection.inProgress){G.current=!1,V.current=!1;return}h==null||h(W),w.getState().resetSelectedElements(),w.setState({nodesSelectionActive:!1})},H=W=>{if(Array.isArray(a)&&(a!=null&&a.includes(2))){W.preventDefault();return}m==null||m(W)},K=p?W=>p(W):void 0,X=W=>{G.current&&(W.stopPropagation(),G.current=!1)},C=W=>{var st,Rt;const{domNode:te,transform:oe}=w.getState();if(Z.current=te==null?void 0:te.getBoundingClientRect(),!Z.current)return;const fe=W.target===I.current;if(!fe&&!!W.target.closest(".nokey")||!e||!(c&&fe||t)||W.button!==0||!W.isPrimary)return;(Rt=(st=W.target)==null?void 0:st.setPointerCapture)==null||Rt.call(st,W.pointerId),G.current=!1;const{x:Ne,y:je}=Oi(W.nativeEvent,Z.current),$e=Io({x:Ne,y:je},oe);w.setState({userSelectionRect:{width:0,height:0,startX:$e.x,startY:$e.y,x:Ne,y:je}}),fe||(W.stopPropagation(),W.preventDefault())};function L(W,te){const{userSelectionRect:oe}=w.getState();if(!oe)return;const{transform:fe,nodeLookup:be,edgeLookup:we,connectionLookup:Ne,triggerNodeChanges:je,triggerEdgeChanges:$e,defaultEdgeOptions:st}=w.getState(),Rt={x:oe.startX,y:oe.startY},{x:Yt,y:Pt}=Qs(Rt,fe),Xt={startX:Rt.x,startY:Rt.y,x:W<Yt?W:Yt,y:te<Pt?te:Pt,width:Math.abs(W-Yt),height:Math.abs(te-Pt)},Yn=j.current,wn=z.current;j.current=new Set(Qp(be,Xt,fe,i===wo.Partial,!0).map(It=>It.id)),z.current=new Set;const ct=(st==null?void 0:st.selectable)??!0;for(const It of j.current){const ue=Ne.get(It);if(ue)for(const{edgeId:xe}of ue.values()){const Oe=we.get(xe);Oe&&(Oe.selectable??ct)&&z.current.add(xe)}}if(!n1(Yn,j.current)){const It=Bs(be,j.current,!0);je(It)}if(!n1(wn,z.current)){const It=Bs(we,z.current);$e(It)}w.setState({userSelectionRect:Xt,userSelectionActive:!0,nodesSelectionActive:!1})}function Y(){if(!s||!Z.current)return;const[W,te]=Wp(A.current,Z.current,R);U({x:W,y:te}).then(oe=>{if(!G.current||!oe){S.current=requestAnimationFrame(Y);return}const{x:fe,y:be}=A.current;L(fe,be),S.current=requestAnimationFrame(Y)})}const D=()=>{cancelAnimationFrame(S.current),S.current=0,q.current=!1};ee.useEffect(()=>()=>D(),[]);const F=W=>{const{userSelectionRect:te,transform:oe,resetSelectedElements:fe}=w.getState();if(!Z.current||!te)return;const{x:be,y:we}=Oi(W.nativeEvent,Z.current);A.current={x:be,y:we};const Ne=Qs({x:te.startX,y:te.startY},oe);if(!G.current){const je=t?0:o;if(Math.hypot(be-Ne.x,we-Ne.y)<=je)return;fe(),d==null||d(W)}G.current=!0,q.current||(Y(),q.current=!0),L(be,we)},$=W=>{var te,oe;if(!B){W.target===I.current&&w.getState().connection.inProgress&&(V.current=!0);return}W.button===0&&((oe=(te=W.target)==null?void 0:te.releasePointerCapture)==null||oe.call(te,W.pointerId),!k&&W.target===I.current&&w.getState().userSelectionRect&&(O==null||O(W)),w.setState({userSelectionActive:!1,userSelectionRect:null}),G.current&&(f==null||f(W),w.setState({nodesSelectionActive:j.current.size>0})),D())},Q=W=>{var te,oe;(oe=(te=W.target)==null?void 0:te.releasePointerCapture)==null||oe.call(te,W.pointerId),D()},J=a===!0||Array.isArray(a)&&a.includes(0);return g.jsxs("div",{className:ln(["react-flow__pane",{draggable:J,dragging:M,selection:e}]),onClick:B?void 0:km(O,I),onContextMenu:km(H,I),onWheel:km(K,I),onPointerEnter:B?void 0:y,onPointerMove:B?F:x,onPointerUp:$,onPointerCancel:B?Q:void 0,onPointerDownCapture:B?C:void 0,onClickCapture:B?X:void 0,onPointerLeave:_,ref:I,style:nd,children:[N,g.jsx(w8,{})]})}function sp({id:e,store:t,unselect:i=!1,nodeRef:a}){const{addSelectedNodes:s,unselectNodesAndEdges:o,multiSelectionActive:c,nodeLookup:d,onError:f}=t.getState(),h=d.get(e);if(!h){f==null||f("012",Di.error012(e));return}t.setState({nodesSelectionActive:!1}),h.selected?(i||h.selected&&c)&&(o({nodes:[h],edges:[]}),requestAnimationFrame(()=>{var m;return(m=a==null?void 0:a.current)==null?void 0:m.blur()})):s([e])}function wN({nodeRef:e,disabled:t=!1,noDragClassName:i,handleSelector:a,nodeId:s,isSelectable:o,nodeClickDistance:c}){const d=Lt(),[f,h]=ee.useState(!1),m=ee.useRef();return ee.useEffect(()=>{if(!t)return m.current=d6({getStoreItems:()=>d.getState(),onNodeMouseDown:p=>{sp({id:p,store:d,nodeRef:e})},onDragStart:()=>{h(!0)},onDragStop:()=>{h(!1)}}),()=>{var p;(p=m.current)==null||p.destroy(),m.current=void 0}},[t,d,e]),ee.useEffect(()=>{t||!e.current||!m.current||m.current.update({noDragClassName:i,handleSelector:a,domNode:e.current,isSelectable:o,nodeId:s,nodeClickDistance:c})},[i,a,t,o,e,s,c]),f}const S8=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function EN(){const e=Lt();return ee.useCallback(i=>{const{nodeExtent:a,snapToGrid:s,snapGrid:o,nodesDraggable:c,onError:d,updateNodePositions:f,nodeLookup:h,nodeOrigin:m}=e.getState(),p=new Map,y=S8(c),x=s?o[0]:5,_=s?o[1]:5,N=i.direction.x*x*i.factor,S=i.direction.y*_*i.factor;for(const[,w]of h){if(!y(w))continue;let k={x:w.internals.positionAbsolute.x+N,y:w.internals.positionAbsolute.y+S};s&&(k=zo(k,o));const{position:E,positionAbsolute:M}=HE({nodeId:w.id,nextPosition:k,nodeLookup:h,nodeExtent:a,nodeOrigin:m,onError:d});w.position=E,w.internals.positionAbsolute=M,p.set(w.id,w)}f(p)},[])}const sg=ee.createContext(null),k8=sg.Provider;sg.Consumer;const NN=()=>ee.useContext(sg),T8=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),SN=ee.createContext(null);function A8({children:e}){const t=dt(T8,qt);return g.jsx(SN.Provider,{value:t,children:e})}function C8(){const e=ee.useContext(SN);if(!e)throw new Error("useHandleConfig must be used within a HandleConfigProvider");return e}const M8={connectingFrom:!1,connectingTo:!1,clickConnecting:!1,isPossibleEndHandle:!0,connectionInProcess:!1,clickConnectionInProcess:!1,valid:!1},O8=(e,t,i)=>a=>{const{connectionClickStartHandle:s,connectionMode:o,connection:c}=a,{fromHandle:d,toHandle:f,isValid:h}=c;if(!d&&!s)return M8;const m=(f==null?void 0:f.nodeId)===e&&(f==null?void 0:f.id)===t&&(f==null?void 0:f.type)===i;return{connectingFrom:(d==null?void 0:d.nodeId)===e&&(d==null?void 0:d.id)===t&&(d==null?void 0:d.type)===i,connectingTo:m,clickConnecting:(s==null?void 0:s.nodeId)===e&&(s==null?void 0:s.id)===t&&(s==null?void 0:s.type)===i,isPossibleEndHandle:o===Ks.Strict?(d==null?void 0:d.type)!==i:e!==(d==null?void 0:d.nodeId)||t!==(d==null?void 0:d.id),connectionInProcess:!!d,clickConnectionInProcess:!!s,valid:m&&h}};function R8({type:e="source",position:t=ze.Top,isValidConnection:i,isConnectable:a=!0,isConnectableStart:s=!0,isConnectableEnd:o=!0,id:c,onConnect:d,children:f,className:h,onMouseDown:m,onTouchStart:p,...y},x){var q,O;const _=c||null,N=e==="target",S=Lt(),w=NN(),{connectOnClick:k,noPanClassName:E,rfId:M}=C8(),{connectingFrom:U,connectingTo:R,clickConnecting:B,isPossibleEndHandle:I,connectionInProcess:Z,clickConnectionInProcess:j,valid:z}=dt(O8(w,_,e),qt);w||(O=(q=S.getState()).onError)==null||O.call(q,"010",Di.error010());const V=H=>{const{defaultEdgeOptions:K,onConnect:X,hasDefaultEdges:C}=S.getState(),L={...K,...H};if(C){const{edges:Y,setEdges:D,onError:F}=S.getState();D(u8(L,Y,{onError:F}))}X==null||X(L),d==null||d(L)},G=H=>{if(!w)return;const K=KE(H.nativeEvent);if(s&&(K&&H.button===0||!K)){const X=S.getState();ap.onPointerDown(H.nativeEvent,{handleDomNode:H.currentTarget,autoPanOnConnect:X.autoPanOnConnect,connectionMode:X.connectionMode,connectionRadius:X.connectionRadius,domNode:X.domNode,nodeLookup:X.nodeLookup,lib:X.lib,isTarget:N,handleId:_,nodeId:w,flowId:X.rfId,panBy:X.panBy,cancelConnection:X.cancelConnection,onConnectStart:X.onConnectStart,onConnectEnd:(...C)=>{var L,Y;return(Y=(L=S.getState()).onConnectEnd)==null?void 0:Y.call(L,...C)},updateConnection:X.updateConnection,onConnect:V,isValidConnection:i||((...C)=>{var L,Y;return((Y=(L=S.getState()).isValidConnection)==null?void 0:Y.call(L,...C))??!0}),getTransform:()=>S.getState().transform,getFromHandle:()=>S.getState().connection.fromHandle,autoPanSpeed:X.autoPanSpeed,dragThreshold:X.connectionDragThreshold})}K?m==null||m(H):p==null||p(H)},A=H=>{const{onClickConnectStart:K,onClickConnectEnd:X,connectionClickStartHandle:C,connectionMode:L,isValidConnection:Y,lib:D,rfId:F,nodeLookup:$,connection:Q}=S.getState();if(!w||!C&&!s)return;if(!C){K==null||K(H.nativeEvent,{nodeId:w,handleId:_,handleType:e}),S.setState({connectionClickStartHandle:{nodeId:w,type:e,id:_}});return}const J=YE(H.target),W=i||Y,{connection:te,isValid:oe}=ap.isValid(H.nativeEvent,{handle:{nodeId:w,id:_,type:e},connectionMode:L,fromNodeId:C.nodeId,fromHandleId:C.id||null,fromType:C.type,isValidConnection:W,flowId:F,doc:J,lib:D,nodeLookup:$});oe&&te&&V(te);const fe=structuredClone(Q);delete fe.inProgress,fe.toPosition=fe.toHandle?fe.toHandle.position:null,X==null||X(H,fe),S.setState({connectionClickStartHandle:null})};return g.jsx("div",{"data-handleid":_,"data-nodeid":w,"data-handlepos":t,"data-id":`${M}-${w}-${_}-${e}`,className:ln(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",E,h,{source:!N,target:N,connectable:a,connectablestart:s,connectableend:o,clickconnecting:B,connectingfrom:U,connectingto:R,valid:z,connectionindicator:a&&(!Z||I)&&(Z||j?o:s)}]),onMouseDown:G,onTouchStart:G,onClick:k?A:void 0,ref:x,...y,children:f})}const Js=ee.memo(yN(R8));function D8({data:e,isConnectable:t,sourcePosition:i=ze.Bottom}){return g.jsxs(g.Fragment,{children:[e==null?void 0:e.label,g.jsx(Js,{type:"source",position:i,isConnectable:t})]})}function j8({data:e,isConnectable:t,targetPosition:i=ze.Top,sourcePosition:a=ze.Bottom}){return g.jsxs(g.Fragment,{children:[g.jsx(Js,{type:"target",position:i,isConnectable:t}),e==null?void 0:e.label,g.jsx(Js,{type:"source",position:a,isConnectable:t})]})}function L8(){return null}function z8({data:e,isConnectable:t,targetPosition:i=ze.Top}){return g.jsxs(g.Fragment,{children:[g.jsx(Js,{type:"target",position:i,isConnectable:t}),e==null?void 0:e.label]})}const Iu={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},D1={input:D8,default:j8,output:z8,group:L8};function I8(e){var t,i,a,s;return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??((t=e.style)==null?void 0:t.width),height:e.height??e.initialHeight??((i=e.style)==null?void 0:i.height)}:{width:e.width??((a=e.style)==null?void 0:a.width),height:e.height??((s=e.style)==null?void 0:s.height)}}const B8=e=>{const{width:t,height:i,x:a,y:s}=Lo(e.nodeLookup,{filter:o=>!!o.selected});return{width:Mi(t)?t:null,height:Mi(i)?i:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${a}px,${s}px)`}};function U8({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:i}){const a=Lt(),{width:s,height:o,transformString:c,userSelectionActive:d}=dt(B8,qt),f=EN(),h=ee.useRef(null);ee.useEffect(()=>{var x;i||(x=h.current)==null||x.focus({preventScroll:!0})},[i]);const m=!d&&s!==null&&o!==null;if(wN({nodeRef:h,disabled:!m}),!m)return null;const p=e?x=>{const _=a.getState().nodes.filter(N=>N.selected);e(x,_)}:void 0,y=x=>{Object.prototype.hasOwnProperty.call(Iu,x.key)&&(x.preventDefault(),f({direction:Iu[x.key],factor:x.shiftKey?4:1}))};return g.jsx("div",{className:ln(["react-flow__nodesselection","react-flow__container",t]),style:{transform:c},children:g.jsx("div",{ref:h,className:"react-flow__nodesselection-rect",onContextMenu:p,tabIndex:i?void 0:-1,onKeyDown:i?void 0:y,style:{width:s,height:o}})})}const j1=typeof window<"u"?window:void 0,H8=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function kN({children:e,onPaneClick:t,onPaneMouseEnter:i,onPaneMouseMove:a,onPaneMouseLeave:s,onPaneContextMenu:o,onPaneScroll:c,paneClickDistance:d,deleteKeyCode:f,selectionKeyCode:h,selectionOnDrag:m,selectionMode:p,onSelectionStart:y,onSelectionEnd:x,multiSelectionKeyCode:_,panActivationKeyCode:N,zoomActivationKeyCode:S,elementsSelectable:w,zoomOnScroll:k,zoomOnPinch:E,panOnScroll:M,panOnScrollSpeed:U,panOnScrollMode:R,zoomOnDoubleClick:B,panOnDrag:I,autoPanOnSelection:Z,defaultViewport:j,translateExtent:z,minZoom:V,maxZoom:G,preventScrolling:A,onSelectionContextMenu:q,noWheelClassName:O,noPanClassName:H,disableKeyboardA11y:K,onViewportChange:X,isControlledViewport:C}){const{nodesSelectionActive:L,userSelectionActive:Y}=dt(H8,qt),D=So(h,{target:j1}),F=So(N,{target:j1}),$=F||I,Q=F||M,J=m&&$!==!0,W=D||Y||J;return b8({deleteKeyCode:f,multiSelectionKeyCode:_}),g.jsx(v8,{onPaneContextMenu:o,elementsSelectable:w,zoomOnScroll:k,zoomOnPinch:E,panOnScroll:Q,panOnScrollSpeed:U,panOnScrollMode:R,zoomOnDoubleClick:B,panOnDrag:!D&&$,defaultViewport:j,translateExtent:z,minZoom:V,maxZoom:G,zoomActivationKeyCode:S,preventScrolling:A,noWheelClassName:O,noPanClassName:H,onViewportChange:X,isControlledViewport:C,paneClickDistance:d,selectionOnDrag:J,children:g.jsxs(N8,{onSelectionStart:y,onSelectionEnd:x,onPaneClick:t,onPaneMouseEnter:i,onPaneMouseMove:a,onPaneMouseLeave:s,onPaneContextMenu:o,onPaneScroll:c,panOnDrag:$,autoPanOnSelection:Z,isSelecting:!!W,selectionMode:p,selectionKeyPressed:D,paneClickDistance:d,selectionOnDrag:J,children:[e,L&&g.jsx(U8,{onSelectionContextMenu:q,noPanClassName:H,disableKeyboardA11y:K})]})})}kN.displayName="FlowRenderer";const $8=ee.memo(kN),q8=e=>t=>e?Qp(t.nodeLookup,{x:0,y:0,width:t.width,height:t.height},t.transform,!0).map(i=>i.id):Array.from(t.nodeLookup.keys());function P8(e){return dt(ee.useCallback(q8(e),[e]),qt)}const F8=e=>e.updateNodeInternals;function G8(){const e=dt(F8),[t]=ee.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(i=>{const a=new Map;i.forEach(s=>{const o=s.target.getAttribute("data-id");a.set(o,{id:o,nodeElement:s.target,force:!0})}),e(a)}));return ee.useEffect(()=>()=>{t==null||t.disconnect()},[t]),t}function V8({node:e,nodeType:t,hasDimensions:i,resizeObserver:a}){const s=Lt(),o=ee.useRef(null),c=ee.useRef(null),d=ee.useRef(e.sourcePosition),f=ee.useRef(e.targetPosition),h=ee.useRef(t),m=i&&!!e.internals.handleBounds;return ee.useEffect(()=>{o.current&&!e.hidden&&(!m||c.current!==o.current)&&(c.current&&(a==null||a.unobserve(c.current)),a==null||a.observe(o.current),c.current=o.current)},[m,e.hidden]),ee.useEffect(()=>()=>{c.current&&(a==null||a.unobserve(c.current),c.current=null)},[]),ee.useEffect(()=>{if(o.current){const p=h.current!==t,y=d.current!==e.sourcePosition,x=f.current!==e.targetPosition;(p||y||x)&&(h.current=t,d.current=e.sourcePosition,f.current=e.targetPosition,s.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:o.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),o}function Y8({id:e,onClick:t,onMouseEnter:i,onMouseMove:a,onMouseLeave:s,onContextMenu:o,onDoubleClick:c,nodesDraggable:d,elementsSelectable:f,nodesConnectable:h,nodesFocusable:m,resizeObserver:p,noDragClassName:y,noPanClassName:x,disableKeyboardA11y:_,rfId:N,nodeTypes:S,nodeClickDistance:w,onError:k}){const{node:E,internals:M,isParent:U}=dt(W=>{const te=W.nodeLookup.get(e),oe=W.parentLookup.has(e);return{node:te,internals:te.internals,isParent:oe}},qt);let R=E.type||"default",B=(S==null?void 0:S[R])||D1[R];B===void 0&&(k==null||k("003",Di.error003(R)),R="default",B=(S==null?void 0:S.default)||D1.default);const I=!!(E.draggable||d&&typeof E.draggable>"u"),Z=!!(E.selectable||f&&typeof E.selectable>"u"),j=!!(E.connectable||h&&typeof E.connectable>"u"),z=!!(E.focusable||m&&typeof E.focusable>"u"),V=Lt(),G=GE(E),A=V8({node:E,nodeType:R,hasDimensions:G,resizeObserver:p}),q=wN({nodeRef:A,disabled:E.hidden||!I,noDragClassName:y,handleSelector:E.dragHandle,nodeId:e,isSelectable:Z,nodeClickDistance:w}),O=EN();if(E.hidden)return null;const H=Zi(E),K=I8(E),X=Z||I||t||i||a||s,C=i?W=>i(W,{...M.userNode}):void 0,L=a?W=>a(W,{...M.userNode}):void 0,Y=s?W=>s(W,{...M.userNode}):void 0,D=o?W=>o(W,{...M.userNode}):void 0,F=c?W=>c(W,{...M.userNode}):void 0,$=W=>{const{selectNodesOnDrag:te,nodeDragThreshold:oe}=V.getState();Z&&(!te||!I||oe>0)&&sp({id:e,store:V,nodeRef:A}),t&&t(W,{...M.userNode})},Q=W=>{if(!(XE(W.nativeEvent)||_)){if(LE.includes(W.key)&&Z){const te=W.key==="Escape";sp({id:e,store:V,unselect:te,nodeRef:A})}else if(I&&E.selected&&Object.prototype.hasOwnProperty.call(Iu,W.key)){W.preventDefault();const{ariaLabelConfig:te}=V.getState();V.setState({ariaLiveMessage:te["node.a11yDescription.ariaLiveMessage"]({direction:W.key.replace("Arrow","").toLowerCase(),x:~~M.positionAbsolute.x,y:~~M.positionAbsolute.y})}),O({direction:Iu[W.key],factor:W.shiftKey?4:1})}}},J=()=>{var Ne;if(_||!((Ne=A.current)!=null&&Ne.matches(":focus-visible")))return;const{transform:W,width:te,height:oe,autoPanOnNodeFocus:fe,setCenter:be}=V.getState();if(!fe)return;Qp(new Map([[e,E]]),{x:0,y:0,width:te,height:oe},W,!0).length>0||be(E.position.x+H.width/2,E.position.y+H.height/2,{zoom:W[2]})};return g.jsx("div",{className:ln(["react-flow__node",`react-flow__node-${R}`,{[x]:I},E.className,{selected:E.selected,selectable:Z,parent:U,draggable:I,dragging:q}]),ref:A,style:{zIndex:M.z,transform:`translate(${M.positionAbsolute.x}px,${M.positionAbsolute.y}px)`,pointerEvents:X?"all":"none",visibility:G?"visible":"hidden",...E.style,...K},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:C,onMouseMove:L,onMouseLeave:Y,onContextMenu:D,onClick:$,onDoubleClick:F,onKeyDown:z?Q:void 0,tabIndex:z?0:void 0,onFocus:z?J:void 0,role:E.ariaRole??(z?"group":void 0),"aria-roledescription":"node","aria-describedby":_?void 0:`${hN}-${N}`,"aria-label":E.ariaLabel,...E.domAttributes,children:g.jsx(k8,{value:e,children:g.jsx(B,{id:e,data:E.data,type:R,positionAbsoluteX:M.positionAbsolute.x,positionAbsoluteY:M.positionAbsolute.y,selected:E.selected??!1,selectable:Z,draggable:I,deletable:E.deletable??!0,isConnectable:j,sourcePosition:E.sourcePosition,targetPosition:E.targetPosition,dragging:q,dragHandle:E.dragHandle,zIndex:M.z,parentId:E.parentId,...H})})})}var X8=ee.memo(Y8);const K8=e=>({nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function TN(e){const{nodesConnectable:t,nodesFocusable:i,elementsSelectable:a,onError:s}=dt(K8,qt),o=P8(e.onlyRenderVisibleElements),c=G8();return g.jsx("div",{className:"react-flow__nodes",style:nd,children:o.map(d=>g.jsx(X8,{id:d,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:c,nodesDraggable:e.nodesDraggable??!0,nodesConnectable:t,nodesFocusable:i,elementsSelectable:a,nodeClickDistance:e.nodeClickDistance,onError:s},d))})}TN.displayName="NodeRenderer";const Z8=ee.memo(TN);function Q8(e){return dt(ee.useCallback(i=>{if(!e)return i.edges.map(s=>s.id);const a=[];if(i.width&&i.height)for(const s of i.edges){const o=i.nodeLookup.get(s.source),c=i.nodeLookup.get(s.target);o&&c&&VI({sourceNode:o,targetNode:c,width:i.width,height:i.height,transform:i.transform})&&a.push(s.id)}return a},[e]),qt)}const W8=({color:e="none",strokeWidth:t=1})=>{const i={strokeWidth:t,...e&&{stroke:e}};return g.jsx("polyline",{className:"arrow",style:i,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},J8=({color:e="none",strokeWidth:t=1})=>{const i={strokeWidth:t,...e&&{stroke:e,fill:e}};return g.jsx("polyline",{className:"arrowclosed",style:i,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},L1={[ju.Arrow]:W8,[ju.ArrowClosed]:J8};function eB(e){const t=Lt();return ee.useMemo(()=>{var s,o;return Object.prototype.hasOwnProperty.call(L1,e)?L1[e]:((o=(s=t.getState()).onError)==null||o.call(s,"009",Di.error009(e)),null)},[e])}const tB=({id:e,type:t,color:i,width:a=12.5,height:s=12.5,markerUnits:o="strokeWidth",strokeWidth:c,orient:d="auto-start-reverse"})=>{const f=eB(t);return f?g.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${a}`,markerHeight:`${s}`,viewBox:"-10 -10 20 20",markerUnits:o,orient:d,refX:"0",refY:"0",children:g.jsx(f,{color:i,strokeWidth:c})}):null},AN=({defaultColor:e,rfId:t})=>{const i=dt(o=>o.edges),a=dt(o=>o.defaultEdgeOptions),s=ee.useMemo(()=>e6(i,{id:t,defaultColor:e,defaultMarkerStart:a==null?void 0:a.markerStart,defaultMarkerEnd:a==null?void 0:a.markerEnd}),[i,a,t,e]);return s.length?g.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:g.jsx("defs",{children:s.map(o=>g.jsx(tB,{id:o.id,type:o.type,color:o.color,width:o.width,height:o.height,markerUnits:o.markerUnits,strokeWidth:o.strokeWidth,orient:o.orient},o.id))})}):null};AN.displayName="MarkerDefinitions";var nB=ee.memo(AN);function CN({x:e,y:t,label:i,labelStyle:a,labelShowBg:s=!0,labelBgStyle:o,labelBgPadding:c=[2,4],labelBgBorderRadius:d=2,children:f,className:h,...m}){const[p,y]=ee.useState({x:1,y:0,width:0,height:0}),x=ln(["react-flow__edge-textwrapper",h]),_=ee.useRef(null);return ee.useEffect(()=>{if(_.current){const N=_.current.getBBox();y({x:N.x,y:N.y,width:N.width,height:N.height})}},[i]),i?g.jsxs("g",{transform:`translate(${e-p.width/2} ${t-p.height/2})`,className:x,visibility:p.width?"visible":"hidden",...m,children:[s&&g.jsx("rect",{width:p.width+2*c[0],x:-c[0],y:-c[1],height:p.height+2*c[1],className:"react-flow__edge-textbg",style:o,rx:d,ry:d}),g.jsx("text",{className:"react-flow__edge-text",y:p.height/2,dy:"0.3em",ref:_,style:a,children:i}),f]}):null}CN.displayName="EdgeText";const iB=ee.memo(CN);function id({path:e,labelX:t,labelY:i,label:a,labelStyle:s,labelShowBg:o,labelBgStyle:c,labelBgPadding:d,labelBgBorderRadius:f,interactionWidth:h=20,...m}){return g.jsxs(g.Fragment,{children:[g.jsx("path",{...m,d:e,fill:"none",className:ln(["react-flow__edge-path",m.className])}),h?g.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:h,className:"react-flow__edge-interaction"}):null,a&&Mi(t)&&Mi(i)?g.jsx(iB,{x:t,y:i,label:a,labelStyle:s,labelShowBg:o,labelBgStyle:c,labelBgPadding:d,labelBgBorderRadius:f}):null]})}function z1({pos:e,x1:t,y1:i,x2:a,y2:s}){return e===ze.Left||e===ze.Right?[.5*(t+a),i]:[t,.5*(i+s)]}function MN({sourceX:e,sourceY:t,sourcePosition:i=ze.Bottom,targetX:a,targetY:s,targetPosition:o=ze.Top}){const[c,d]=z1({pos:i,x1:e,y1:t,x2:a,y2:s}),[f,h]=z1({pos:o,x1:a,y1:s,x2:e,y2:t}),[m,p,y,x]=ZE({sourceX:e,sourceY:t,targetX:a,targetY:s,sourceControlX:c,sourceControlY:d,targetControlX:f,targetControlY:h});return[`M${e},${t} C${c},${d} ${f},${h} ${a},${s}`,m,p,y,x]}function ON(e){return ee.memo(({id:t,sourceX:i,sourceY:a,targetX:s,targetY:o,sourcePosition:c,targetPosition:d,label:f,labelStyle:h,labelShowBg:m,labelBgStyle:p,labelBgPadding:y,labelBgBorderRadius:x,style:_,markerEnd:N,markerStart:S,interactionWidth:w})=>{const[k,E,M]=MN({sourceX:i,sourceY:a,sourcePosition:c,targetX:s,targetY:o,targetPosition:d}),U=e.isInternal?void 0:t;return g.jsx(id,{id:U,path:k,labelX:E,labelY:M,label:f,labelStyle:h,labelShowBg:m,labelBgStyle:p,labelBgPadding:y,labelBgBorderRadius:x,style:_,markerEnd:N,markerStart:S,interactionWidth:w})})}const rB=ON({isInternal:!1}),RN=ON({isInternal:!0});rB.displayName="SimpleBezierEdge";RN.displayName="SimpleBezierEdgeInternal";function DN(e){return ee.memo(({id:t,sourceX:i,sourceY:a,targetX:s,targetY:o,label:c,labelStyle:d,labelShowBg:f,labelBgStyle:h,labelBgPadding:m,labelBgBorderRadius:p,style:y,sourcePosition:x=ze.Bottom,targetPosition:_=ze.Top,markerEnd:N,markerStart:S,pathOptions:w,interactionWidth:k})=>{const[E,M,U]=np({sourceX:i,sourceY:a,sourcePosition:x,targetX:s,targetY:o,targetPosition:_,borderRadius:w==null?void 0:w.borderRadius,offset:w==null?void 0:w.offset,stepPosition:w==null?void 0:w.stepPosition}),R=e.isInternal?void 0:t;return g.jsx(id,{id:R,path:E,labelX:M,labelY:U,label:c,labelStyle:d,labelShowBg:f,labelBgStyle:h,labelBgPadding:m,labelBgBorderRadius:p,style:y,markerEnd:N,markerStart:S,interactionWidth:k})})}const jN=DN({isInternal:!1}),LN=DN({isInternal:!0});jN.displayName="SmoothStepEdge";LN.displayName="SmoothStepEdgeInternal";function zN(e){return ee.memo(({id:t,...i})=>{var s;const a=e.isInternal?void 0:t;return g.jsx(jN,{...i,id:a,pathOptions:ee.useMemo(()=>{var o;return{borderRadius:0,offset:(o=i.pathOptions)==null?void 0:o.offset}},[(s=i.pathOptions)==null?void 0:s.offset])})})}const aB=zN({isInternal:!1}),IN=zN({isInternal:!0});aB.displayName="StepEdge";IN.displayName="StepEdgeInternal";function BN(e){return ee.memo(({id:t,sourceX:i,sourceY:a,targetX:s,targetY:o,label:c,labelStyle:d,labelShowBg:f,labelBgStyle:h,labelBgPadding:m,labelBgBorderRadius:p,style:y,markerEnd:x,markerStart:_,interactionWidth:N})=>{const[S,w,k]=JE({sourceX:i,sourceY:a,targetX:s,targetY:o}),E=e.isInternal?void 0:t;return g.jsx(id,{id:E,path:S,labelX:w,labelY:k,label:c,labelStyle:d,labelShowBg:f,labelBgStyle:h,labelBgPadding:m,labelBgBorderRadius:p,style:y,markerEnd:x,markerStart:_,interactionWidth:N})})}const sB=BN({isInternal:!1}),UN=BN({isInternal:!0});sB.displayName="StraightEdge";UN.displayName="StraightEdgeInternal";function HN(e){return ee.memo(({id:t,sourceX:i,sourceY:a,targetX:s,targetY:o,sourcePosition:c=ze.Bottom,targetPosition:d=ze.Top,label:f,labelStyle:h,labelShowBg:m,labelBgStyle:p,labelBgPadding:y,labelBgBorderRadius:x,style:_,markerEnd:N,markerStart:S,pathOptions:w,interactionWidth:k})=>{const[E,M,U]=QE({sourceX:i,sourceY:a,sourcePosition:c,targetX:s,targetY:o,targetPosition:d,curvature:w==null?void 0:w.curvature}),R=e.isInternal?void 0:t;return g.jsx(id,{id:R,path:E,labelX:M,labelY:U,label:f,labelStyle:h,labelShowBg:m,labelBgStyle:p,labelBgPadding:y,labelBgBorderRadius:x,style:_,markerEnd:N,markerStart:S,interactionWidth:k})})}const lB=HN({isInternal:!1}),$N=HN({isInternal:!0});lB.displayName="BezierEdge";$N.displayName="BezierEdgeInternal";const I1={default:$N,straight:UN,step:IN,smoothstep:LN,simplebezier:RN},B1={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null,zIndex:void 0},oB=(e,t,i)=>i===ze.Left?e-t:i===ze.Right?e+t:e,cB=(e,t,i)=>i===ze.Top?e-t:i===ze.Bottom?e+t:e,U1="react-flow__edgeupdater";function H1({position:e,centerX:t,centerY:i,radius:a=10,onMouseDown:s,onMouseEnter:o,onMouseOut:c,type:d}){return g.jsx("circle",{onMouseDown:s,onMouseEnter:o,onMouseOut:c,className:ln([U1,`${U1}-${d}`]),cx:oB(t,a,e),cy:cB(i,a,e),r:a,stroke:"transparent",fill:"transparent"})}function uB({isReconnectable:e,reconnectRadius:t,edge:i,sourceX:a,sourceY:s,targetX:o,targetY:c,sourcePosition:d,targetPosition:f,onReconnect:h,onReconnectStart:m,onReconnectEnd:p,setReconnecting:y,setUpdateHover:x}){const _=Lt(),N=(M,U)=>{if(M.button!==0)return;const{autoPanOnConnect:R,domNode:B,connectionMode:I,connectionRadius:Z,lib:j,onConnectStart:z,cancelConnection:V,nodeLookup:G,rfId:A,panBy:q,updateConnection:O}=_.getState(),H=U.type==="target",K=(L,Y)=>{y(!1),p==null||p(L,i,U.type,Y)},X=L=>h==null?void 0:h(i,L),C=(L,Y)=>{y(!0),m==null||m(M,i,U.type),z==null||z(L,Y)};ap.onPointerDown(M.nativeEvent,{autoPanOnConnect:R,connectionMode:I,connectionRadius:Z,domNode:B,handleId:U.id,nodeId:U.nodeId,nodeLookup:G,isTarget:H,edgeUpdaterType:U.type,lib:j,flowId:A,cancelConnection:V,panBy:q,isValidConnection:(...L)=>{var Y,D;return((D=(Y=_.getState()).isValidConnection)==null?void 0:D.call(Y,...L))??!0},onConnect:X,onConnectStart:C,onConnectEnd:(...L)=>{var Y,D;return(D=(Y=_.getState()).onConnectEnd)==null?void 0:D.call(Y,...L)},onReconnectEnd:K,updateConnection:O,getTransform:()=>_.getState().transform,getFromHandle:()=>_.getState().connection.fromHandle,dragThreshold:_.getState().connectionDragThreshold,handleDomNode:M.currentTarget})},S=M=>N(M,{nodeId:i.target,id:i.targetHandle??null,type:"target"}),w=M=>N(M,{nodeId:i.source,id:i.sourceHandle??null,type:"source"}),k=()=>x(!0),E=()=>x(!1);return g.jsxs(g.Fragment,{children:[(e===!0||e==="source")&&g.jsx(H1,{position:d,centerX:a,centerY:s,radius:t,onMouseDown:S,onMouseEnter:k,onMouseOut:E,type:"source"}),(e===!0||e==="target")&&g.jsx(H1,{position:f,centerX:o,centerY:c,radius:t,onMouseDown:w,onMouseEnter:k,onMouseOut:E,type:"target"})]})}function dB({id:e,edgesFocusable:t,edgesReconnectable:i,elementsSelectable:a,onClick:s,onDoubleClick:o,onContextMenu:c,onMouseEnter:d,onMouseMove:f,onMouseLeave:h,reconnectRadius:m,onReconnect:p,onReconnectStart:y,onReconnectEnd:x,rfId:_,edgeTypes:N,noPanClassName:S,onError:w,disableKeyboardA11y:k}){let E=dt(be=>be.edgeLookup.get(e));const M=dt(be=>be.defaultEdgeOptions);E=M?{...M,...E}:E;let U=E.type||"default",R=(N==null?void 0:N[U])||I1[U];R===void 0&&(w==null||w("011",Di.error011(U)),U="default",R=(N==null?void 0:N.default)||I1.default);const B=!!(E.focusable||t&&typeof E.focusable>"u"),I=typeof p<"u"&&(E.reconnectable||i&&typeof E.reconnectable>"u"),Z=!!(E.selectable||a&&typeof E.selectable>"u"),j=ee.useRef(null),[z,V]=ee.useState(!1),[G,A]=ee.useState(!1),q=Lt(),{zIndex:O=E.zIndex,sourceX:H,sourceY:K,targetX:X,targetY:C,sourcePosition:L,targetPosition:Y}=dt(ee.useCallback(be=>{const we=be.nodeLookup.get(E.source),Ne=be.nodeLookup.get(E.target);if(!we||!Ne)return B1;const je=JI({id:e,sourceNode:we,targetNode:Ne,sourceHandle:E.sourceHandle||null,targetHandle:E.targetHandle||null,connectionMode:be.connectionMode,onError:w}),$e=GI({selected:E.selected,zIndex:E.zIndex,sourceNode:we,targetNode:Ne,elevateOnSelect:be.elevateEdgesOnSelect,zIndexMode:be.zIndexMode});return{...je||B1,zIndex:$e}},[E.source,E.target,E.sourceHandle,E.targetHandle,E.selected,E.zIndex]),qt),D=ee.useMemo(()=>E.markerStart?`url('#${ip(E.markerStart,_)}')`:void 0,[E.markerStart,_]),F=ee.useMemo(()=>E.markerEnd?`url('#${ip(E.markerEnd,_)}')`:void 0,[E.markerEnd,_]);if(E.hidden||H===null||K===null||X===null||C===null)return null;const $=be=>{var $e;const{addSelectedEdges:we,unselectNodesAndEdges:Ne,multiSelectionActive:je}=q.getState();Z&&(q.setState({nodesSelectionActive:!1}),E.selected&&je?(Ne({nodes:[],edges:[E]}),($e=j.current)==null||$e.blur()):we([e])),s&&s(be,E)},Q=o?be=>{o(be,{...E})}:void 0,J=c?be=>{c(be,{...E})}:void 0,W=d?be=>{d(be,{...E})}:void 0,te=f?be=>{f(be,{...E})}:void 0,oe=h?be=>{h(be,{...E})}:void 0,fe=be=>{var we;if(!k&&LE.includes(be.key)&&Z){const{unselectNodesAndEdges:Ne,addSelectedEdges:je}=q.getState();be.key==="Escape"?((we=j.current)==null||we.blur(),Ne({edges:[E]})):je([e])}};return g.jsx("svg",{style:{zIndex:O},children:g.jsxs("g",{className:ln(["react-flow__edge",`react-flow__edge-${U}`,E.className,S,{selected:E.selected,animated:E.animated,inactive:!Z&&!s,updating:z,selectable:Z}]),onClick:$,onDoubleClick:Q,onContextMenu:J,onMouseEnter:W,onMouseMove:te,onMouseLeave:oe,onKeyDown:B?fe:void 0,tabIndex:B?0:void 0,role:E.ariaRole??(B?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":E.ariaLabel===null?void 0:E.ariaLabel||`Edge from ${E.source} to ${E.target}`,"aria-describedby":B?`${mN}-${_}`:void 0,ref:j,...E.domAttributes,children:[!G&&g.jsx(R,{id:e,source:E.source,target:E.target,type:E.type,selected:E.selected,animated:E.animated,selectable:Z,deletable:E.deletable??!0,label:E.label,labelStyle:E.labelStyle,labelShowBg:E.labelShowBg,labelBgStyle:E.labelBgStyle,labelBgPadding:E.labelBgPadding,labelBgBorderRadius:E.labelBgBorderRadius,sourceX:H,sourceY:K,targetX:X,targetY:C,sourcePosition:L,targetPosition:Y,data:E.data,style:E.style,sourceHandleId:E.sourceHandle,targetHandleId:E.targetHandle,markerStart:D,markerEnd:F,pathOptions:"pathOptions"in E?E.pathOptions:void 0,interactionWidth:E.interactionWidth}),I&&g.jsx(uB,{edge:E,isReconnectable:I,reconnectRadius:m,onReconnect:p,onReconnectStart:y,onReconnectEnd:x,sourceX:H,sourceY:K,targetX:X,targetY:C,sourcePosition:L,targetPosition:Y,setUpdateHover:V,setReconnecting:A})]})})}var fB=ee.memo(dB);const hB=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function qN({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:i,edgeTypes:a,noPanClassName:s,onReconnect:o,onEdgeContextMenu:c,onEdgeMouseEnter:d,onEdgeMouseMove:f,onEdgeMouseLeave:h,onEdgeClick:m,reconnectRadius:p,onEdgeDoubleClick:y,onReconnectStart:x,onReconnectEnd:_,disableKeyboardA11y:N}){const{edgesFocusable:S,edgesReconnectable:w,elementsSelectable:k,onError:E}=dt(hB,qt),M=Q8(t);return g.jsxs("div",{className:"react-flow__edges",children:[g.jsx(nB,{defaultColor:e,rfId:i}),M.map(U=>g.jsx(fB,{id:U,edgesFocusable:S,edgesReconnectable:w,elementsSelectable:k,noPanClassName:s,onReconnect:o,onContextMenu:c,onMouseEnter:d,onMouseMove:f,onMouseLeave:h,onClick:m,reconnectRadius:p,onDoubleClick:y,onReconnectStart:x,onReconnectEnd:_,rfId:i,onError:E,edgeTypes:a,disableKeyboardA11y:N},U))]})}qN.displayName="EdgeRenderer";const mB=ee.memo(qN),$1=e=>`translate(${e[0]}px,${e[1]}px) scale(${e[2]})`;function pB({children:e}){const t=Lt(),i=ee.useRef(null),[a]=ee.useState(()=>t.getState().transform);return vN(()=>{let s=null;const o=()=>{const c=t.getState().transform;s&&c[0]===s[0]&&c[1]===s[1]&&c[2]===s[2]||(s=c,i.current&&(i.current.style.transform=$1(c)))};return o(),t.subscribe(o)},[t]),g.jsx("div",{ref:i,className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:$1(a)},children:e})}function gB(e){const t=Bo(),i=ee.useRef(!1);ee.useEffect(()=>{!i.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),i.current=!0)},[e,t.viewportInitialized])}const bB=e=>{var t;return(t=e.panZoom)==null?void 0:t.syncViewport};function xB(e){const t=dt(bB),i=Lt();return ee.useEffect(()=>{e&&(t==null||t(e),i.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function yB(e){return e.connection.inProgress?{...e.connection,to:Io(e.connection.to,e.transform)}:{...e.connection}}function vB(e){return yB}function _B(e){const t=vB();return dt(t,qt)}const wB=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function EB({containerStyle:e,style:t,type:i,component:a}){const{nodesConnectable:s,width:o,height:c,isValid:d,inProgress:f}=dt(wB,qt);return!(o&&s&&f)?null:g.jsx("svg",{style:e,width:o,height:c,className:"react-flow__connectionline react-flow__container",children:g.jsx("g",{className:ln(["react-flow__connection",BE(d)]),children:g.jsx(PN,{style:t,type:i,CustomComponent:a,isValid:d})})})}const PN=({style:e,type:t=sa.Bezier,CustomComponent:i,isValid:a})=>{const{inProgress:s,from:o,fromNode:c,fromHandle:d,fromPosition:f,to:h,toNode:m,toHandle:p,toPosition:y,pointer:x}=_B();if(!s)return;if(i)return g.jsx(i,{connectionLineType:t,connectionLineStyle:e,fromNode:c,fromHandle:d,fromX:o.x,fromY:o.y,toX:h.x,toY:h.y,fromPosition:f,toPosition:y,connectionStatus:BE(a),toNode:m,toHandle:p,pointer:x});let _="";const N={sourceX:o.x,sourceY:o.y,sourcePosition:f,targetX:h.x,targetY:h.y,targetPosition:y};switch(t){case sa.Bezier:[_]=QE(N);break;case sa.SimpleBezier:[_]=MN(N);break;case sa.Step:[_]=np({...N,borderRadius:0});break;case sa.SmoothStep:[_]=np(N);break;default:[_]=JE(N)}return g.jsx("path",{d:_,fill:"none",className:"react-flow__connection-path",style:e})};PN.displayName="ConnectionLine";const NB={};function q1(e=NB){ee.useRef(e),Lt(),ee.useEffect(()=>{},[e])}function SB(){Lt(),ee.useRef(!1),ee.useEffect(()=>{},[])}function FN({nodeTypes:e,edgeTypes:t,onInit:i,onNodeClick:a,onEdgeClick:s,onNodeDoubleClick:o,onEdgeDoubleClick:c,onNodeMouseEnter:d,onNodeMouseMove:f,onNodeMouseLeave:h,onNodeContextMenu:m,onSelectionContextMenu:p,onSelectionStart:y,onSelectionEnd:x,connectionLineType:_,connectionLineStyle:N,connectionLineComponent:S,connectionLineContainerStyle:w,selectionKeyCode:k,selectionOnDrag:E,selectionMode:M,multiSelectionKeyCode:U,panActivationKeyCode:R,zoomActivationKeyCode:B,deleteKeyCode:I,onlyRenderVisibleElements:Z,elementsSelectable:j,defaultViewport:z,translateExtent:V,minZoom:G,maxZoom:A,preventScrolling:q,defaultMarkerColor:O,zoomOnScroll:H,zoomOnPinch:K,panOnScroll:X,panOnScrollSpeed:C,panOnScrollMode:L,zoomOnDoubleClick:Y,panOnDrag:D,autoPanOnSelection:F,onPaneClick:$,onPaneMouseEnter:Q,onPaneMouseMove:J,onPaneMouseLeave:W,onPaneScroll:te,onPaneContextMenu:oe,paneClickDistance:fe,nodeClickDistance:be,onEdgeContextMenu:we,onEdgeMouseEnter:Ne,onEdgeMouseMove:je,onEdgeMouseLeave:$e,reconnectRadius:st,onReconnect:Rt,onReconnectStart:Yt,onReconnectEnd:Pt,noDragClassName:Xt,noWheelClassName:Yn,noPanClassName:wn,disableKeyboardA11y:ct,nodeExtent:It,rfId:ue,viewport:xe,onViewportChange:Oe,nodesDraggable:Fe}){return q1(e),q1(t),SB(),gB(i),xB(xe),g.jsx($8,{onPaneClick:$,onPaneMouseEnter:Q,onPaneMouseMove:J,onPaneMouseLeave:W,onPaneContextMenu:oe,onPaneScroll:te,paneClickDistance:fe,deleteKeyCode:I,selectionKeyCode:k,selectionOnDrag:E,selectionMode:M,onSelectionStart:y,onSelectionEnd:x,multiSelectionKeyCode:U,panActivationKeyCode:R,zoomActivationKeyCode:B,elementsSelectable:j,zoomOnScroll:H,zoomOnPinch:K,zoomOnDoubleClick:Y,panOnScroll:X,panOnScrollSpeed:C,panOnScrollMode:L,panOnDrag:D,autoPanOnSelection:F,defaultViewport:z,translateExtent:V,minZoom:G,maxZoom:A,onSelectionContextMenu:p,preventScrolling:q,noDragClassName:Xt,noWheelClassName:Yn,noPanClassName:wn,disableKeyboardA11y:ct,onViewportChange:Oe,isControlledViewport:!!xe,children:g.jsxs(pB,{children:[g.jsx(mB,{edgeTypes:t,onEdgeClick:s,onEdgeDoubleClick:c,onReconnect:Rt,onReconnectStart:Yt,onReconnectEnd:Pt,onlyRenderVisibleElements:Z,onEdgeContextMenu:we,onEdgeMouseEnter:Ne,onEdgeMouseMove:je,onEdgeMouseLeave:$e,reconnectRadius:st,defaultMarkerColor:O,noPanClassName:wn,disableKeyboardA11y:ct,rfId:ue}),g.jsx(EB,{style:N,type:_,component:S,containerStyle:w}),g.jsx("div",{className:"react-flow__edgelabel-renderer"}),g.jsx(Z8,{nodeTypes:e,onNodeClick:a,onNodeDoubleClick:o,onNodeMouseEnter:d,onNodeMouseMove:f,onNodeMouseLeave:h,onNodeContextMenu:m,nodeClickDistance:be,onlyRenderVisibleElements:Z,noPanClassName:wn,noDragClassName:Xt,disableKeyboardA11y:ct,nodeExtent:It,rfId:ue,nodesDraggable:Fe}),g.jsx("div",{className:"react-flow__viewport-portal"})]})})}FN.displayName="GraphView";const kB=ee.memo(FN),TB=FE(),P1=({nodes:e,edges:t,defaultNodes:i,defaultEdges:a,width:s,height:o,fitView:c,fitViewOptions:d,minZoom:f=.5,maxZoom:h=2,nodeOrigin:m,nodeExtent:p,zIndexMode:y="basic"}={})=>{const x=new Map,_=new Map,N=new Map,S=new Map,w=a??t??[],k=i??e??[],E=m??[0,0],M=p??_o;nN(N,S,w);const{nodesInitialized:U}=rp(k,x,_,{nodeOrigin:E,nodeExtent:M,zIndexMode:y});let R=[0,0,1];if(c&&s&&o){const B=Lo(x,{filter:z=>!!((z.width||z.initialWidth)&&(z.height||z.initialHeight))}),{x:I,y:Z,zoom:j}=Jp(B,s,o,f,h,(d==null?void 0:d.padding)??.1);R=[I,Z,j]}return{rfId:"1",width:s??0,height:o??0,transform:R,nodes:k,nodesInitialized:U,nodeLookup:x,parentLookup:_,edges:w,edgeLookup:S,connectionLookup:N,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:i!==void 0,hasDefaultEdges:a!==void 0,panZoom:null,minZoom:f,maxZoom:h,translateExtent:_o,nodeExtent:M,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:Ks.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:E,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:c??!1,fitViewOptions:d,fitViewResolver:null,connection:{...IE},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:TB,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:zE,zIndexMode:y,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},AB=({nodes:e,edges:t,defaultNodes:i,defaultEdges:a,width:s,height:o,fitView:c,fitViewOptions:d,minZoom:f,maxZoom:h,nodeOrigin:m,nodeExtent:p,zIndexMode:y})=>q6((x,_)=>{async function N(){const{nodeLookup:S,panZoom:w,fitViewOptions:k,fitViewResolver:E,width:M,height:U,minZoom:R,maxZoom:B}=_();w&&(await BI({nodes:S,width:M,height:U,panZoom:w,minZoom:R,maxZoom:B},k),E==null||E.resolve(!0),x({fitViewResolver:null}))}return{...P1({nodes:e,edges:t,width:s,height:o,fitView:c,fitViewOptions:d,minZoom:f,maxZoom:h,nodeOrigin:m,nodeExtent:p,defaultNodes:i,defaultEdges:a,zIndexMode:y}),setNodes:S=>{const{nodeLookup:w,parentLookup:k,nodeOrigin:E,elevateNodesOnSelect:M,fitViewQueued:U,zIndexMode:R,nodesSelectionActive:B}=_(),{nodesInitialized:I,hasSelectedNodes:Z}=rp(S,w,k,{nodeOrigin:E,nodeExtent:p,elevateNodesOnSelect:M,checkEquality:!0,zIndexMode:R}),j=B&&Z;U&&I?(N(),x({nodes:S,nodesInitialized:I,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:j})):x({nodes:S,nodesInitialized:I,nodesSelectionActive:j})},setEdges:S=>{const{connectionLookup:w,edgeLookup:k}=_();nN(w,k,S),x({edges:S})},setDefaultNodesAndEdges:(S,w)=>{if(S){const{setNodes:k}=_();k(S),x({hasDefaultNodes:!0})}if(w){const{setEdges:k}=_();k(w),x({hasDefaultEdges:!0})}},updateNodeInternals:S=>{const{triggerNodeChanges:w,nodeLookup:k,parentLookup:E,domNode:M,nodeOrigin:U,nodeExtent:R,debug:B,fitViewQueued:I,zIndexMode:Z}=_(),{changes:j,updatedInternals:z}=l6(S,k,E,M,U,R,Z);z&&(i6(k,E,{nodeOrigin:U,nodeExtent:R,zIndexMode:Z}),I?(N(),x({fitViewQueued:!1,fitViewOptions:void 0})):x({}),(j==null?void 0:j.length)>0&&(B&&console.log("React Flow: trigger node changes",j),w==null||w(j)))},updateNodePositions:(S,w=!1)=>{const k=[];let E=[];const{nodeLookup:M,triggerNodeChanges:U,connection:R,updateConnection:B,onNodesChangeMiddlewareMap:I}=_();for(const[Z,j]of S){const z=M.get(Z),V=!!(z!=null&&z.expandParent&&(z!=null&&z.parentId)&&(j!=null&&j.position)),G={id:Z,type:"position",position:V?{x:Math.max(0,j.position.x),y:Math.max(0,j.position.y)}:j.position,dragging:w};if(z&&R.inProgress&&R.fromNode.id===z.id){const A=Ya(z,R.fromHandle,ze.Left,!0);B({...R,from:A})}V&&z.parentId&&k.push({id:Z,parentId:z.parentId,rect:{...j.internals.positionAbsolute,width:j.measured.width??0,height:j.measured.height??0}}),E.push(G)}if(k.length>0){const{parentLookup:Z,nodeOrigin:j}=_(),z=ag(k,M,Z,j);E.push(...z)}for(const Z of I.values())E=Z(E);U(E)},triggerNodeChanges:S=>{const{onNodesChange:w,setNodes:k,nodes:E,hasDefaultNodes:M,debug:U}=_();if(S!=null&&S.length){if(M){const R=bN(S,E);k(R)}U&&console.log("React Flow: trigger node changes",S),w==null||w(S)}},triggerEdgeChanges:S=>{const{onEdgesChange:w,setEdges:k,edges:E,hasDefaultEdges:M,debug:U}=_();if(S!=null&&S.length){if(M){const R=xN(S,E);k(R)}U&&console.log("React Flow: trigger edge changes",S),w==null||w(S)}},addSelectedNodes:S=>{const{multiSelectionActive:w,edgeLookup:k,nodeLookup:E,triggerNodeChanges:M,triggerEdgeChanges:U}=_();if(w){const R=S.map(B=>Ia(B,!0));M(R);return}M(Bs(E,new Set([...S]),!0)),U(Bs(k))},addSelectedEdges:S=>{const{multiSelectionActive:w,edgeLookup:k,nodeLookup:E,triggerNodeChanges:M,triggerEdgeChanges:U}=_();if(w){const R=S.map(B=>Ia(B,!0));U(R);return}U(Bs(k,new Set([...S]))),M(Bs(E,new Set,!0))},unselectNodesAndEdges:({nodes:S,edges:w}={})=>{const{edges:k,nodes:E,nodeLookup:M,triggerNodeChanges:U,triggerEdgeChanges:R}=_(),B=S||E,I=w||k,Z=[];for(const z of B){if(!z.selected)continue;const V=M.get(z.id);V&&(V.selected=!1),Z.push(Ia(z.id,!1))}const j=[];for(const z of I)z.selected&&j.push(Ia(z.id,!1));U(Z),R(j)},setMinZoom:S=>{const{panZoom:w,maxZoom:k}=_();w==null||w.setScaleExtent([S,k]),x({minZoom:S})},setMaxZoom:S=>{const{panZoom:w,minZoom:k}=_();w==null||w.setScaleExtent([k,S]),x({maxZoom:S})},setTranslateExtent:S=>{var w;(w=_().panZoom)==null||w.setTranslateExtent(S),x({translateExtent:S})},resetSelectedElements:()=>{const{edges:S,nodes:w,triggerNodeChanges:k,triggerEdgeChanges:E,elementsSelectable:M}=_();if(!M)return;const U=w.reduce((B,I)=>I.selected?[...B,Ia(I.id,!1)]:B,[]),R=S.reduce((B,I)=>I.selected?[...B,Ia(I.id,!1)]:B,[]);k(U),E(R)},setNodeExtent:S=>{const{nodes:w,nodeLookup:k,parentLookup:E,nodeOrigin:M,elevateNodesOnSelect:U,nodeExtent:R,zIndexMode:B}=_();S[0][0]===R[0][0]&&S[0][1]===R[0][1]&&S[1][0]===R[1][0]&&S[1][1]===R[1][1]||(rp(w,k,E,{nodeOrigin:M,nodeExtent:S,elevateNodesOnSelect:U,checkEquality:!1,zIndexMode:B}),x({nodeExtent:S}))},panBy:S=>{const{transform:w,width:k,height:E,panZoom:M,translateExtent:U}=_();return o6({delta:S,panZoom:M,transform:w,translateExtent:U,width:k,height:E})},setCenter:async(S,w,k)=>{const{width:E,height:M,maxZoom:U,panZoom:R}=_();if(!R)return!1;const B=typeof(k==null?void 0:k.zoom)<"u"?k.zoom:U;return await R.setViewport({x:E/2-S*B,y:M/2-w*B,zoom:B},{duration:k==null?void 0:k.duration,ease:k==null?void 0:k.ease,interpolate:k==null?void 0:k.interpolate}),!0},cancelConnection:()=>{x({connection:{...IE}})},updateConnection:S=>{x({connection:S})},reset:()=>x({...P1()})}},Object.is);function CB({initialNodes:e,initialEdges:t,defaultNodes:i,defaultEdges:a,initialWidth:s,initialHeight:o,initialMinZoom:c,initialMaxZoom:d,initialFitViewOptions:f,fitView:h,nodeOrigin:m,nodeExtent:p,zIndexMode:y,children:x}){const[_]=ee.useState(()=>AB({nodes:e,edges:t,defaultNodes:i,defaultEdges:a,width:s,height:o,fitView:h,minZoom:c,maxZoom:d,fitViewOptions:f,nodeOrigin:m,nodeExtent:p,zIndexMode:y}));return g.jsx(P6,{value:_,children:g.jsx(h8,{children:g.jsx(A8,{children:x})})})}function MB({children:e,nodes:t,edges:i,defaultNodes:a,defaultEdges:s,width:o,height:c,fitView:d,fitViewOptions:f,minZoom:h,maxZoom:m,nodeOrigin:p,nodeExtent:y,zIndexMode:x}){return ee.useContext(ed)?g.jsx(g.Fragment,{children:e}):g.jsx(CB,{initialNodes:t,initialEdges:i,defaultNodes:a,defaultEdges:s,initialWidth:o,initialHeight:c,fitView:d,initialFitViewOptions:f,initialMinZoom:h,initialMaxZoom:m,nodeOrigin:p,nodeExtent:y,zIndexMode:x,children:e})}const OB={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function RB({nodes:e,edges:t,defaultNodes:i,defaultEdges:a,className:s,nodeTypes:o,edgeTypes:c,onNodeClick:d,onEdgeClick:f,onInit:h,onMove:m,onMoveStart:p,onMoveEnd:y,onConnect:x,onConnectStart:_,onConnectEnd:N,onClickConnectStart:S,onClickConnectEnd:w,onNodeMouseEnter:k,onNodeMouseMove:E,onNodeMouseLeave:M,onNodeContextMenu:U,onNodeDoubleClick:R,onNodeDragStart:B,onNodeDrag:I,onNodeDragStop:Z,onNodesDelete:j,onEdgesDelete:z,onDelete:V,onSelectionChange:G,onSelectionDragStart:A,onSelectionDrag:q,onSelectionDragStop:O,onSelectionContextMenu:H,onSelectionStart:K,onSelectionEnd:X,onBeforeDelete:C,connectionMode:L,connectionLineType:Y=sa.Bezier,connectionLineStyle:D,connectionLineComponent:F,connectionLineContainerStyle:$,deleteKeyCode:Q="Backspace",selectionKeyCode:J="Shift",selectionOnDrag:W=!1,selectionMode:te=wo.Full,panActivationKeyCode:oe="Space",multiSelectionKeyCode:fe=No()?"Meta":"Control",zoomActivationKeyCode:be=No()?"Meta":"Control",snapToGrid:we,snapGrid:Ne,onlyRenderVisibleElements:je=!1,selectNodesOnDrag:$e,nodesDraggable:st,autoPanOnNodeFocus:Rt,nodesConnectable:Yt,nodesFocusable:Pt,nodeOrigin:Xt=pN,edgesFocusable:Yn,edgesReconnectable:wn,elementsSelectable:ct=!0,defaultViewport:It=n8,minZoom:ue=.5,maxZoom:xe=2,translateExtent:Oe=_o,preventScrolling:Fe=!0,nodeExtent:Ze,defaultMarkerColor:on="#b1b1b7",zoomOnScroll:En=!0,zoomOnPinch:Kt=!0,panOnScroll:Ct=!1,panOnScrollSpeed:Wt=.5,panOnScrollMode:ut=$a.Free,zoomOnDoubleClick:zn=!0,panOnDrag:cn=!0,onPaneClick:wr,onPaneMouseEnter:nt,onPaneMouseMove:Xn,onPaneMouseLeave:Cn,onPaneScroll:hn,onPaneContextMenu:ie,paneClickDistance:me=1,nodeClickDistance:Ee=0,children:Pe,onReconnect:St,onReconnectStart:gt,onReconnectEnd:Me,onEdgeContextMenu:Se,onEdgeDoubleClick:Ue,onEdgeMouseEnter:Bt,onEdgeMouseMove:Mt,onEdgeMouseLeave:bi,reconnectRadius:Er=10,onNodesChange:Nr,onEdgesChange:si,noDragClassName:Ut="nodrag",noWheelClassName:mn="nowheel",noPanClassName:xi="nopan",fitView:Sr,fitViewOptions:fa,connectOnClick:kr,attributionPosition:Qa,proOptions:Qi,defaultEdgeOptions:ha,elevateNodesOnSelect:bn=!0,elevateEdgesOnSelect:yi=!1,disableKeyboardA11y:vi=!1,autoPanOnConnect:zi,autoPanOnNodeDrag:Ft,autoPanOnSelection:Wa=!0,autoPanSpeed:Wi,connectionRadius:_i,isValidConnection:ye,onError:Le,style:Qe,id:ft,nodeDragThreshold:Ht,connectionDragThreshold:pn,viewport:Mn,onViewportChange:Nn,width:_t,height:On,colorMode:Ja="light",debug:Tr,onScroll:Ii,ariaLabelConfig:Ar,zIndexMode:es="basic",...Sn},ma){const wi=ft||"1",Cr=s8(Ja),un=ee.useCallback(pa=>{pa.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),Ii==null||Ii(pa)},[Ii]);return g.jsx("div",{"data-testid":"rf__wrapper",...Sn,onScroll:un,style:{...Qe,...OB},ref:ma,className:ln(["react-flow",s,Cr]),id:ft,role:"application",children:g.jsxs(MB,{nodes:e,edges:t,width:_t,height:On,fitView:Sr,fitViewOptions:fa,minZoom:ue,maxZoom:xe,nodeOrigin:Xt,nodeExtent:Ze,zIndexMode:es,children:[g.jsx(a8,{nodes:e,edges:t,defaultNodes:i,defaultEdges:a,onConnect:x,onConnectStart:_,onConnectEnd:N,onClickConnectStart:S,onClickConnectEnd:w,nodesDraggable:st,autoPanOnNodeFocus:Rt,nodesConnectable:Yt,nodesFocusable:Pt,edgesFocusable:Yn,edgesReconnectable:wn,elementsSelectable:ct,elevateNodesOnSelect:bn,elevateEdgesOnSelect:yi,minZoom:ue,maxZoom:xe,nodeExtent:Ze,onNodesChange:Nr,onEdgesChange:si,snapToGrid:we,snapGrid:Ne,connectionMode:L,translateExtent:Oe,connectOnClick:kr,defaultEdgeOptions:ha,fitView:Sr,fitViewOptions:fa,onNodesDelete:j,onEdgesDelete:z,onDelete:V,onNodeDragStart:B,onNodeDrag:I,onNodeDragStop:Z,onSelectionDrag:q,onSelectionDragStart:A,onSelectionDragStop:O,onMove:m,onMoveStart:p,onMoveEnd:y,noPanClassName:xi,nodeOrigin:Xt,rfId:wi,autoPanOnConnect:zi,autoPanOnNodeDrag:Ft,autoPanSpeed:Wi,onError:Le,connectionRadius:_i,isValidConnection:ye,selectNodesOnDrag:$e,nodeDragThreshold:Ht,connectionDragThreshold:pn,onBeforeDelete:C,debug:Tr,ariaLabelConfig:Ar,zIndexMode:es}),g.jsx(kB,{onInit:h,onNodeClick:d,onEdgeClick:f,onNodeMouseEnter:k,onNodeMouseMove:E,onNodeMouseLeave:M,onNodeContextMenu:U,onNodeDoubleClick:R,nodeTypes:o,edgeTypes:c,connectionLineType:Y,connectionLineStyle:D,connectionLineComponent:F,connectionLineContainerStyle:$,selectionKeyCode:J,selectionOnDrag:W,selectionMode:te,deleteKeyCode:Q,multiSelectionKeyCode:fe,panActivationKeyCode:oe,zoomActivationKeyCode:be,onlyRenderVisibleElements:je,defaultViewport:It,translateExtent:Oe,minZoom:ue,maxZoom:xe,preventScrolling:Fe,zoomOnScroll:En,zoomOnPinch:Kt,zoomOnDoubleClick:zn,panOnScroll:Ct,panOnScrollSpeed:Wt,panOnScrollMode:ut,panOnDrag:cn,autoPanOnSelection:Wa,onPaneClick:wr,onPaneMouseEnter:nt,onPaneMouseMove:Xn,onPaneMouseLeave:Cn,onPaneScroll:hn,onPaneContextMenu:ie,paneClickDistance:me,nodeClickDistance:Ee,onSelectionContextMenu:H,onSelectionStart:K,onSelectionEnd:X,onReconnect:St,onReconnectStart:gt,onReconnectEnd:Me,onEdgeContextMenu:Se,onEdgeDoubleClick:Ue,onEdgeMouseEnter:Bt,onEdgeMouseMove:Mt,onEdgeMouseLeave:bi,reconnectRadius:Er,defaultMarkerColor:on,noDragClassName:Ut,noWheelClassName:mn,noPanClassName:xi,rfId:wi,disableKeyboardA11y:vi,nodeExtent:Ze,viewport:Mn,onViewportChange:Nn,nodesDraggable:st}),g.jsx(t8,{onSelectionChange:G}),Pe,g.jsx(Z6,{proOptions:Qi,position:Qa}),g.jsx(K6,{rfId:wi,disableKeyboardA11y:vi})]})})}var DB=yN(RB);function jB(e){const[t,i]=ee.useState(e),a=ee.useCallback(s=>i(o=>bN(s,o)),[]);return[t,i,a]}function LB(e){const[t,i]=ee.useState(e),a=ee.useCallback(s=>i(o=>xN(s,o)),[]);return[t,i,a]}function zB({dimensions:e,lineWidth:t,variant:i,className:a}){return g.jsx("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:ln(["react-flow__background-pattern",i,a])})}function IB({radius:e,className:t}){return g.jsx("circle",{cx:e,cy:e,r:e,className:ln(["react-flow__background-pattern","dots",t])})}var oa;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(oa||(oa={}));const BB={[oa.Dots]:1,[oa.Lines]:1,[oa.Cross]:6},UB=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function GN({id:e,variant:t=oa.Dots,gap:i=20,size:a,lineWidth:s=1,offset:o=0,color:c,bgColor:d,style:f,className:h,patternClassName:m}){const p=ee.useRef(null),{transform:y,patternId:x}=dt(UB,qt),_=a||BB[t],N=t===oa.Dots,S=t===oa.Cross,w=Array.isArray(i)?i:[i,i],k=[w[0]*y[2]||1,w[1]*y[2]||1],E=_*y[2],M=Array.isArray(o)?o:[o,o],U=S?[E,E]:k,R=[M[0]*y[2]||1+U[0]/2,M[1]*y[2]||1+U[1]/2],B=`${x}${e||""}`;return g.jsxs("svg",{className:ln(["react-flow__background",h]),style:{...f,...nd,"--xy-background-color-props":d,"--xy-background-pattern-color-props":c},ref:p,"data-testid":"rf__background",children:[g.jsx("pattern",{id:B,x:y[0]%k[0],y:y[1]%k[1],width:k[0],height:k[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${R[0]},-${R[1]})`,children:N?g.jsx(IB,{radius:E/2,className:m}):g.jsx(zB,{dimensions:U,lineWidth:s,variant:t,className:m})}),g.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${B})`})]})}GN.displayName="Background";const HB=ee.memo(GN);function $B(){return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:g.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function qB(){return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:g.jsx("path",{d:"M0 0h32v4.2H0z"})})}function PB(){return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:g.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function FB(){return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:g.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function GB(){return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:g.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function du({children:e,className:t,...i}){return g.jsx("button",{type:"button",className:ln(["react-flow__controls-button",t]),...i,children:e})}const VB=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function VN({style:e,showZoom:t=!0,showFitView:i=!0,showInteractive:a=!0,fitViewOptions:s,onZoomIn:o,onZoomOut:c,onFitView:d,onInteractiveChange:f,className:h,children:m,position:p="bottom-left",orientation:y="vertical","aria-label":x}){const _=Lt(),{isInteractive:N,minZoomReached:S,maxZoomReached:w,ariaLabelConfig:k}=dt(VB,qt),{zoomIn:E,zoomOut:M,fitView:U}=Bo(),R=()=>{E(),o==null||o()},B=()=>{M(),c==null||c()},I=()=>{U(s),d==null||d()},Z=()=>{_.setState({nodesDraggable:!N,nodesConnectable:!N,elementsSelectable:!N}),f==null||f(!N)},j=y==="horizontal"?"horizontal":"vertical";return g.jsxs(td,{className:ln(["react-flow__controls",j,h]),position:p,style:e,"data-testid":"rf__controls","aria-label":x??k["controls.ariaLabel"],children:[t&&g.jsxs(g.Fragment,{children:[g.jsx(du,{onClick:R,className:"react-flow__controls-zoomin",title:k["controls.zoomIn.ariaLabel"],"aria-label":k["controls.zoomIn.ariaLabel"],disabled:w,children:g.jsx($B,{})}),g.jsx(du,{onClick:B,className:"react-flow__controls-zoomout",title:k["controls.zoomOut.ariaLabel"],"aria-label":k["controls.zoomOut.ariaLabel"],disabled:S,children:g.jsx(qB,{})})]}),i&&g.jsx(du,{className:"react-flow__controls-fitview",onClick:I,title:k["controls.fitView.ariaLabel"],"aria-label":k["controls.fitView.ariaLabel"],children:g.jsx(PB,{})}),a&&g.jsx(du,{className:"react-flow__controls-interactive",onClick:Z,title:k["controls.interactive.ariaLabel"],"aria-label":k["controls.interactive.ariaLabel"],children:N?g.jsx(GB,{}):g.jsx(FB,{})}),m]})}VN.displayName="Controls";const YB=ee.memo(VN);function XB({id:e,x:t,y:i,width:a,height:s,style:o,color:c,strokeColor:d,strokeWidth:f,className:h,borderRadius:m,shapeRendering:p,selected:y,onClick:x}){const{background:_,backgroundColor:N}=o||{},S=c||_||N;return g.jsx("rect",{className:ln(["react-flow__minimap-node",{selected:y},h]),x:t,y:i,rx:m,ry:m,width:a,height:s,style:{fill:S,stroke:d,strokeWidth:f},shapeRendering:p,onClick:x?w=>x(w,e):void 0})}const KB=ee.memo(XB),ZB=e=>e.nodes.map(t=>t.id),Tm=e=>e instanceof Function?e:()=>e;function QB({nodeStrokeColor:e,nodeColor:t,nodeClassName:i="",nodeBorderRadius:a=5,nodeStrokeWidth:s,nodeComponent:o=KB,onClick:c}){const d=dt(ZB,qt),f=Tm(t),h=Tm(e),m=Tm(i),p=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return g.jsx(g.Fragment,{children:d.map(y=>g.jsx(JB,{id:y,nodeColorFunc:f,nodeStrokeColorFunc:h,nodeClassNameFunc:m,nodeBorderRadius:a,nodeStrokeWidth:s,NodeComponent:o,onClick:c,shapeRendering:p},y))})}function WB({id:e,nodeColorFunc:t,nodeStrokeColorFunc:i,nodeClassNameFunc:a,nodeBorderRadius:s,nodeStrokeWidth:o,shapeRendering:c,NodeComponent:d,onClick:f}){const{node:h,x:m,y:p,width:y,height:x}=dt(_=>{const N=_.nodeLookup.get(e);if(!N)return{node:void 0,x:0,y:0,width:0,height:0};const S=N.internals.userNode,{x:w,y:k}=N.internals.positionAbsolute,{width:E,height:M}=Zi(S);return{node:S,x:w,y:k,width:E,height:M}},qt);return!h||h.hidden||!GE(h)?null:g.jsx(d,{x:m,y:p,width:y,height:x,style:h.style,selected:!!h.selected,className:a(h),color:t(h),borderRadius:s,strokeColor:i(h),strokeWidth:o,shapeRendering:c,onClick:f,id:h.id})}const JB=ee.memo(WB);var e9=ee.memo(QB);const t9=200,n9=150,i9=e=>!e.hidden,r9=e=>{const t={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:t,boundingRect:e.nodeLookup.size>0?qE(Lo(e.nodeLookup,{filter:i9}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},F1=(e,t)=>e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,a9=(e,t)=>F1(e.viewBB,t.viewBB)&&F1(e.boundingRect,t.boundingRect)&&e.rfId===t.rfId&&e.panZoom===t.panZoom&&e.translateExtent===t.translateExtent&&e.flowWidth===t.flowWidth&&e.flowHeight===t.flowHeight&&e.ariaLabelConfig===t.ariaLabelConfig,s9="react-flow__minimap-desc";function YN({style:e,className:t,nodeStrokeColor:i,nodeColor:a,nodeClassName:s="",nodeBorderRadius:o=5,nodeStrokeWidth:c,nodeComponent:d,bgColor:f,maskColor:h,maskStrokeColor:m,maskStrokeWidth:p,position:y="bottom-right",onClick:x,onNodeClick:_,pannable:N=!1,zoomable:S=!1,ariaLabel:w,inversePan:k,zoomStep:E=1,offsetScale:M=5}){const U=Lt(),R=ee.useRef(null),{boundingRect:B,viewBB:I,rfId:Z,panZoom:j,translateExtent:z,flowWidth:V,flowHeight:G,ariaLabelConfig:A}=dt(r9,a9),q=(e==null?void 0:e.width)??t9,O=(e==null?void 0:e.height)??n9,H=B.width/q,K=B.height/O,X=Math.max(H,K),C=X*q,L=X*O,Y=M*X,D=B.x-(C-B.width)/2-Y,F=B.y-(L-B.height)/2-Y,$=C+Y*2,Q=L+Y*2,J=`${s9}-${Z}`,W=ee.useRef(0),te=ee.useRef();W.current=X,ee.useEffect(()=>{if(R.current&&j)return te.current=b6({domNode:R.current,panZoom:j,getTransform:()=>U.getState().transform,getViewScale:()=>W.current}),()=>{var we;(we=te.current)==null||we.destroy()}},[j]),ee.useEffect(()=>{var we;(we=te.current)==null||we.update({translateExtent:z,width:V,height:G,inversePan:k,pannable:N,zoomStep:E,zoomable:S})},[N,S,k,E,z,V,G]);const oe=x?we=>{var $e;const[Ne,je]=(($e=te.current)==null?void 0:$e.pointer(we))||[0,0];x(we,{x:Ne,y:je})}:void 0,fe=_?ee.useCallback((we,Ne)=>{const je=U.getState().nodeLookup.get(Ne).internals.userNode;_(we,je)},[]):void 0,be=w??A["minimap.ariaLabel"];return g.jsx(td,{position:y,style:{...e,"--xy-minimap-background-color-props":typeof f=="string"?f:void 0,"--xy-minimap-mask-background-color-props":typeof h=="string"?h:void 0,"--xy-minimap-mask-stroke-color-props":typeof m=="string"?m:void 0,"--xy-minimap-mask-stroke-width-props":typeof p=="number"?p*X:void 0,"--xy-minimap-node-background-color-props":typeof a=="string"?a:void 0,"--xy-minimap-node-stroke-color-props":typeof i=="string"?i:void 0,"--xy-minimap-node-stroke-width-props":typeof c=="number"?c:void 0},className:ln(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:g.jsxs("svg",{width:q,height:O,viewBox:`${D} ${F} ${$} ${Q}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":J,ref:R,onClick:oe,children:[be&&g.jsx("title",{id:J,children:be}),g.jsx(e9,{onClick:fe,nodeColor:a,nodeStrokeColor:i,nodeBorderRadius:o,nodeClassName:s,nodeStrokeWidth:c,nodeComponent:d}),g.jsx("path",{className:"react-flow__minimap-mask",d:`M${D-Y},${F-Y}h${$+Y*2}v${Q+Y*2}h${-$-Y*2}z
- M${I.x},${I.y}h${I.width}v${I.height}h${-I.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}YN.displayName="MiniMap";const l9=ee.memo(YN),o9=e=>t=>e?`${Math.max(1/t.transform[2],1)}`:void 0,c9={[Ws.Line]:"right",[Ws.Handle]:"bottom-right"};function u9({nodeId:e,position:t,variant:i=Ws.Handle,className:a,style:s=void 0,children:o,color:c,minWidth:d=10,minHeight:f=10,maxWidth:h=Number.MAX_VALUE,maxHeight:m=Number.MAX_VALUE,keepAspectRatio:p=!1,resizeDirection:y,autoScale:x=!0,shouldResize:_,onResizeStart:N,onResize:S,onResizeEnd:w}){const k=NN(),E=typeof e=="string"?e:k,M=Lt(),U=ee.useRef(null),R=i===Ws.Handle,B=dt(ee.useCallback(o9(R&&x),[R,x]),qt),I=ee.useRef(null),Z=t??c9[i];ee.useEffect(()=>{if(!(!U.current||!E))return I.current||(I.current=M6({domNode:U.current,nodeId:E,getStoreItems:()=>{const{nodeLookup:z,transform:V,snapGrid:G,snapToGrid:A,nodeOrigin:q,domNode:O}=M.getState();return{nodeLookup:z,transform:V,snapGrid:G,snapToGrid:A,nodeOrigin:q,paneDomNode:O}},onChange:(z,V)=>{const{triggerNodeChanges:G,nodeLookup:A,parentLookup:q,nodeOrigin:O}=M.getState(),H=[],K={x:z.x,y:z.y},X=A.get(E);if(X&&X.expandParent&&X.parentId){const C=X.origin??O,L=z.width??X.measured.width??0,Y=z.height??X.measured.height??0,D={id:X.id,parentId:X.parentId,rect:{width:L,height:Y,...VE({x:z.x??X.position.x,y:z.y??X.position.y},{width:L,height:Y},X.parentId,A,C)}},F=ag([D],A,q,O);H.push(...F),K.x=z.x?Math.max(C[0]*L,z.x):void 0,K.y=z.y?Math.max(C[1]*Y,z.y):void 0}if(K.x!==void 0&&K.y!==void 0){const C={id:E,type:"position",position:{...K}};H.push(C)}if(z.width!==void 0&&z.height!==void 0){const L={id:E,type:"dimensions",resizing:!0,setAttributes:y?y==="horizontal"?"width":"height":!0,dimensions:{width:z.width,height:z.height}};H.push(L)}for(const C of V){const L={...C,type:"position"};H.push(L)}G(H)},onEnd:({width:z,height:V})=>{const G={id:E,type:"dimensions",resizing:!1,dimensions:{width:z,height:V}};M.getState().triggerNodeChanges([G])}})),I.current.update({controlPosition:Z,boundaries:{minWidth:d,minHeight:f,maxWidth:h,maxHeight:m},keepAspectRatio:p,resizeDirection:y,onResizeStart:N,onResize:S,onResizeEnd:w,shouldResize:_}),()=>{var z;(z=I.current)==null||z.destroy()}},[Z,d,f,h,m,p,N,S,w,_]);const j=Z.split("-");return g.jsx("div",{className:ln(["react-flow__resize-control","nodrag",...j,i,a]),ref:U,style:{...s,scale:B,...c&&{[R?"backgroundColor":"borderColor"]:c}},children:o})}ee.memo(u9);var vt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ji=vt((e,t)=>{var i=Object.defineProperty,a=(G,A,q)=>A in G?i(G,A,{enumerable:!0,configurable:!0,writable:!0,value:q}):G[A]=q,s=(G,A)=>()=>(A||G((A={exports:{}}).exports,A),A.exports),o=(G,A,q)=>a(G,typeof A!="symbol"?A+"":A,q),c=s((G,A)=>{var q="\0",O="\0",H="",K=class{constructor(F){o(this,"_isDirected",!0),o(this,"_isMultigraph",!1),o(this,"_isCompound",!1),o(this,"_label"),o(this,"_defaultNodeLabelFn",()=>{}),o(this,"_defaultEdgeLabelFn",()=>{}),o(this,"_nodes",{}),o(this,"_in",{}),o(this,"_preds",{}),o(this,"_out",{}),o(this,"_sucs",{}),o(this,"_edgeObjs",{}),o(this,"_edgeLabels",{}),o(this,"_nodeCount",0),o(this,"_edgeCount",0),o(this,"_parent"),o(this,"_children"),F&&(this._isDirected=Object.hasOwn(F,"directed")?F.directed:!0,this._isMultigraph=Object.hasOwn(F,"multigraph")?F.multigraph:!1,this._isCompound=Object.hasOwn(F,"compound")?F.compound:!1),this._isCompound&&(this._parent={},this._children={},this._children[O]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(F){return this._label=F,this}graph(){return this._label}setDefaultNodeLabel(F){return this._defaultNodeLabelFn=F,typeof F!="function"&&(this._defaultNodeLabelFn=()=>F),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var F=this;return this.nodes().filter($=>Object.keys(F._in[$]).length===0)}sinks(){var F=this;return this.nodes().filter($=>Object.keys(F._out[$]).length===0)}setNodes(F,$){var Q=arguments,J=this;return F.forEach(function(W){Q.length>1?J.setNode(W,$):J.setNode(W)}),this}setNode(F,$){return Object.hasOwn(this._nodes,F)?(arguments.length>1&&(this._nodes[F]=$),this):(this._nodes[F]=arguments.length>1?$:this._defaultNodeLabelFn(F),this._isCompound&&(this._parent[F]=O,this._children[F]={},this._children[O][F]=!0),this._in[F]={},this._preds[F]={},this._out[F]={},this._sucs[F]={},++this._nodeCount,this)}node(F){return this._nodes[F]}hasNode(F){return Object.hasOwn(this._nodes,F)}removeNode(F){var $=this;if(Object.hasOwn(this._nodes,F)){var Q=J=>$.removeEdge($._edgeObjs[J]);delete this._nodes[F],this._isCompound&&(this._removeFromParentsChildList(F),delete this._parent[F],this.children(F).forEach(function(J){$.setParent(J)}),delete this._children[F]),Object.keys(this._in[F]).forEach(Q),delete this._in[F],delete this._preds[F],Object.keys(this._out[F]).forEach(Q),delete this._out[F],delete this._sucs[F],--this._nodeCount}return this}setParent(F,$){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if($===void 0)$=O;else{$+="";for(var Q=$;Q!==void 0;Q=this.parent(Q))if(Q===F)throw new Error("Setting "+$+" as parent of "+F+" would create a cycle");this.setNode($)}return this.setNode(F),this._removeFromParentsChildList(F),this._parent[F]=$,this._children[$][F]=!0,this}_removeFromParentsChildList(F){delete this._children[this._parent[F]][F]}parent(F){if(this._isCompound){var $=this._parent[F];if($!==O)return $}}children(F=O){if(this._isCompound){var $=this._children[F];if($)return Object.keys($)}else{if(F===O)return this.nodes();if(this.hasNode(F))return[]}}predecessors(F){var $=this._preds[F];if($)return Object.keys($)}successors(F){var $=this._sucs[F];if($)return Object.keys($)}neighbors(F){var $=this.predecessors(F);if($){let J=new Set($);for(var Q of this.successors(F))J.add(Q);return Array.from(J.values())}}isLeaf(F){var $;return this.isDirected()?$=this.successors(F):$=this.neighbors(F),$.length===0}filterNodes(F){var $=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});$.setGraph(this.graph());var Q=this;Object.entries(this._nodes).forEach(function([te,oe]){F(te)&&$.setNode(te,oe)}),Object.values(this._edgeObjs).forEach(function(te){$.hasNode(te.v)&&$.hasNode(te.w)&&$.setEdge(te,Q.edge(te))});var J={};function W(te){var oe=Q.parent(te);return oe===void 0||$.hasNode(oe)?(J[te]=oe,oe):oe in J?J[oe]:W(oe)}return this._isCompound&&$.nodes().forEach(te=>$.setParent(te,W(te))),$}setDefaultEdgeLabel(F){return this._defaultEdgeLabelFn=F,typeof F!="function"&&(this._defaultEdgeLabelFn=()=>F),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(F,$){var Q=this,J=arguments;return F.reduce(function(W,te){return J.length>1?Q.setEdge(W,te,$):Q.setEdge(W,te),te}),this}setEdge(){var F,$,Q,J,W=!1,te=arguments[0];typeof te=="object"&&te!==null&&"v"in te?(F=te.v,$=te.w,Q=te.name,arguments.length===2&&(J=arguments[1],W=!0)):(F=te,$=arguments[1],Q=arguments[3],arguments.length>2&&(J=arguments[2],W=!0)),F=""+F,$=""+$,Q!==void 0&&(Q=""+Q);var oe=L(this._isDirected,F,$,Q);if(Object.hasOwn(this._edgeLabels,oe))return W&&(this._edgeLabels[oe]=J),this;if(Q!==void 0&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(F),this.setNode($),this._edgeLabels[oe]=W?J:this._defaultEdgeLabelFn(F,$,Q);var fe=Y(this._isDirected,F,$,Q);return F=fe.v,$=fe.w,Object.freeze(fe),this._edgeObjs[oe]=fe,X(this._preds[$],F),X(this._sucs[F],$),this._in[$][oe]=fe,this._out[F][oe]=fe,this._edgeCount++,this}edge(F,$,Q){var J=arguments.length===1?D(this._isDirected,arguments[0]):L(this._isDirected,F,$,Q);return this._edgeLabels[J]}edgeAsObj(){let F=this.edge(...arguments);return typeof F!="object"?{label:F}:F}hasEdge(F,$,Q){var J=arguments.length===1?D(this._isDirected,arguments[0]):L(this._isDirected,F,$,Q);return Object.hasOwn(this._edgeLabels,J)}removeEdge(F,$,Q){var J=arguments.length===1?D(this._isDirected,arguments[0]):L(this._isDirected,F,$,Q),W=this._edgeObjs[J];return W&&(F=W.v,$=W.w,delete this._edgeLabels[J],delete this._edgeObjs[J],C(this._preds[$],F),C(this._sucs[F],$),delete this._in[$][J],delete this._out[F][J],this._edgeCount--),this}inEdges(F,$){return this.isDirected()?this.filterEdges(this._in[F],F,$):this.nodeEdges(F,$)}outEdges(F,$){return this.isDirected()?this.filterEdges(this._out[F],F,$):this.nodeEdges(F,$)}nodeEdges(F,$){if(F in this._nodes)return this.filterEdges({...this._in[F],...this._out[F]},F,$)}filterEdges(F,$,Q){if(F){var J=Object.values(F);return Q?J.filter(function(W){return W.v===$&&W.w===Q||W.v===Q&&W.w===$}):J}}};function X(F,$){F[$]?F[$]++:F[$]=1}function C(F,$){--F[$]||delete F[$]}function L(F,$,Q,J){var W=""+$,te=""+Q;if(!F&&W>te){var oe=W;W=te,te=oe}return W+H+te+H+(J===void 0?q:J)}function Y(F,$,Q,J){var W=""+$,te=""+Q;if(!F&&W>te){var oe=W;W=te,te=oe}var fe={v:W,w:te};return J&&(fe.name=J),fe}function D(F,$){return L(F,$.v,$.w,$.name)}A.exports=K}),d=s((G,A)=>{A.exports="3.0.2"}),f=s((G,A)=>{A.exports={Graph:c(),version:d()}}),h=s((G,A)=>{var q=c();A.exports={write:O,read:X};function O(C){var L={options:{directed:C.isDirected(),multigraph:C.isMultigraph(),compound:C.isCompound()},nodes:H(C),edges:K(C)};return C.graph()!==void 0&&(L.value=structuredClone(C.graph())),L}function H(C){return C.nodes().map(function(L){var Y=C.node(L),D=C.parent(L),F={v:L};return Y!==void 0&&(F.value=Y),D!==void 0&&(F.parent=D),F})}function K(C){return C.edges().map(function(L){var Y=C.edge(L),D={v:L.v,w:L.w};return L.name!==void 0&&(D.name=L.name),Y!==void 0&&(D.value=Y),D})}function X(C){var L=new q(C.options).setGraph(C.value);return C.nodes.forEach(function(Y){L.setNode(Y.v,Y.value),Y.parent&&L.setParent(Y.v,Y.parent)}),C.edges.forEach(function(Y){L.setEdge({v:Y.v,w:Y.w,name:Y.name},Y.value)}),L}}),m=s((G,A)=>{A.exports=O;var q=()=>1;function O(K,X,C,L){return H(K,String(X),C||q,L||function(Y){return K.outEdges(Y)})}function H(K,X,C,L){var Y={},D=!0,F=0,$=K.nodes(),Q=function(oe){var fe=C(oe);Y[oe.v].distance+fe<Y[oe.w].distance&&(Y[oe.w]={distance:Y[oe.v].distance+fe,predecessor:oe.v},D=!0)},J=function(){$.forEach(function(oe){L(oe).forEach(function(fe){var be=fe.v===oe?fe.v:fe.w,we=be===fe.v?fe.w:fe.v;Q({v:be,w:we})})})};$.forEach(function(oe){var fe=oe===X?0:Number.POSITIVE_INFINITY;Y[oe]={distance:fe}});for(var W=$.length,te=1;te<W&&(D=!1,F++,J(),!!D);te++);if(F===W-1&&(D=!1,J(),D))throw new Error("The graph contains a negative weight cycle");return Y}}),p=s((G,A)=>{A.exports=q;function q(O){var H={},K=[],X;function C(L){Object.hasOwn(H,L)||(H[L]=!0,X.push(L),O.successors(L).forEach(C),O.predecessors(L).forEach(C))}return O.nodes().forEach(function(L){X=[],C(L),X.length&&K.push(X)}),K}}),y=s((G,A)=>{var q=class{constructor(){o(this,"_arr",[]),o(this,"_keyIndices",{})}size(){return this._arr.length}keys(){return this._arr.map(function(O){return O.key})}has(O){return Object.hasOwn(this._keyIndices,O)}priority(O){var H=this._keyIndices[O];if(H!==void 0)return this._arr[H].priority}min(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key}add(O,H){var K=this._keyIndices;if(O=String(O),!Object.hasOwn(K,O)){var X=this._arr,C=X.length;return K[O]=C,X.push({key:O,priority:H}),this._decrease(C),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var O=this._arr.pop();return delete this._keyIndices[O.key],this._heapify(0),O.key}decrease(O,H){var K=this._keyIndices[O];if(H>this._arr[K].priority)throw new Error("New priority is greater than current priority. Key: "+O+" Old: "+this._arr[K].priority+" New: "+H);this._arr[K].priority=H,this._decrease(K)}_heapify(O){var H=this._arr,K=2*O,X=K+1,C=O;K<H.length&&(C=H[K].priority<H[C].priority?K:C,X<H.length&&(C=H[X].priority<H[C].priority?X:C),C!==O&&(this._swap(O,C),this._heapify(C)))}_decrease(O){for(var H=this._arr,K=H[O].priority,X;O!==0&&(X=O>>1,!(H[X].priority<K));)this._swap(O,X),O=X}_swap(O,H){var K=this._arr,X=this._keyIndices,C=K[O],L=K[H];K[O]=L,K[H]=C,X[L.key]=O,X[C.key]=H}};A.exports=q}),x=s((G,A)=>{var q=y();A.exports=H;var O=()=>1;function H(X,C,L,Y){var D=function(F){return X.outEdges(F)};return K(X,String(C),L||O,Y||D)}function K(X,C,L,Y){var D={},F=new q,$,Q,J=function(W){var te=W.v!==$?W.v:W.w,oe=D[te],fe=L(W),be=Q.distance+fe;if(fe<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+W+" Weight: "+fe);be<oe.distance&&(oe.distance=be,oe.predecessor=$,F.decrease(te,be))};for(X.nodes().forEach(function(W){var te=W===C?0:Number.POSITIVE_INFINITY;D[W]={distance:te},F.add(W,te)});F.size()>0&&($=F.removeMin(),Q=D[$],Q.distance!==Number.POSITIVE_INFINITY);)Y($).forEach(J);return D}}),_=s((G,A)=>{var q=x();A.exports=O;function O(H,K,X){return H.nodes().reduce(function(C,L){return C[L]=q(H,L,K,X),C},{})}}),N=s((G,A)=>{A.exports=q;function q(H,K,X){if(H[K].predecessor!==void 0)throw new Error("Invalid source vertex");if(H[X].predecessor===void 0&&X!==K)throw new Error("Invalid destination vertex");return{weight:H[X].distance,path:O(H,K,X)}}function O(H,K,X){for(var C=[],L=X;L!==K;)C.push(L),L=H[L].predecessor;return C.push(K),C.reverse()}}),S=s((G,A)=>{A.exports=q;function q(O){var H=0,K=[],X={},C=[];function L(Y){var D=X[Y]={onStack:!0,lowlink:H,index:H++};if(K.push(Y),O.successors(Y).forEach(function(Q){Object.hasOwn(X,Q)?X[Q].onStack&&(D.lowlink=Math.min(D.lowlink,X[Q].index)):(L(Q),D.lowlink=Math.min(D.lowlink,X[Q].lowlink))}),D.lowlink===D.index){var F=[],$;do $=K.pop(),X[$].onStack=!1,F.push($);while(Y!==$);C.push(F)}}return O.nodes().forEach(function(Y){Object.hasOwn(X,Y)||L(Y)}),C}}),w=s((G,A)=>{var q=S();A.exports=O;function O(H){return q(H).filter(function(K){return K.length>1||K.length===1&&H.hasEdge(K[0],K[0])})}}),k=s((G,A)=>{A.exports=O;var q=()=>1;function O(K,X,C){return H(K,X||q,C||function(L){return K.outEdges(L)})}function H(K,X,C){var L={},Y=K.nodes();return Y.forEach(function(D){L[D]={},L[D][D]={distance:0},Y.forEach(function(F){D!==F&&(L[D][F]={distance:Number.POSITIVE_INFINITY})}),C(D).forEach(function(F){var $=F.v===D?F.w:F.v,Q=X(F);L[D][$]={distance:Q,predecessor:D}})}),Y.forEach(function(D){var F=L[D];Y.forEach(function($){var Q=L[$];Y.forEach(function(J){var W=Q[D],te=F[J],oe=Q[J],fe=W.distance+te.distance;fe<oe.distance&&(oe.distance=fe,oe.predecessor=te.predecessor)})})}),L}}),E=s((G,A)=>{function q(H){var K={},X={},C=[];function L(Y){if(Object.hasOwn(X,Y))throw new O;Object.hasOwn(K,Y)||(X[Y]=!0,K[Y]=!0,H.predecessors(Y).forEach(L),delete X[Y],C.push(Y))}if(H.sinks().forEach(L),Object.keys(K).length!==H.nodeCount())throw new O;return C}var O=class extends Error{constructor(){super(...arguments)}};A.exports=q,q.CycleException=O}),M=s((G,A)=>{var q=E();A.exports=O;function O(H){try{q(H)}catch(K){if(K instanceof q.CycleException)return!1;throw K}return!0}}),U=s((G,A)=>{A.exports=q;function q(H,K,X,C,L){Array.isArray(K)||(K=[K]);var Y=(H.isDirected()?H.successors:H.neighbors).bind(H),D={};return K.forEach(function(F){if(!H.hasNode(F))throw new Error("Graph does not have node: "+F);L=O(H,F,X==="post",D,Y,C,L)}),L}function O(H,K,X,C,L,Y,D){return Object.hasOwn(C,K)||(C[K]=!0,X||(D=Y(D,K)),L(K).forEach(function(F){D=O(H,F,X,C,L,Y,D)}),X&&(D=Y(D,K))),D}}),R=s((G,A)=>{var q=U();A.exports=O;function O(H,K,X){return q(H,K,X,function(C,L){return C.push(L),C},[])}}),B=s((G,A)=>{var q=R();A.exports=O;function O(H,K){return q(H,K,"post")}}),I=s((G,A)=>{var q=R();A.exports=O;function O(H,K){return q(H,K,"pre")}}),Z=s((G,A)=>{var q=c(),O=y();A.exports=H;function H(K,X){var C=new q,L={},Y=new O,D;function F(Q){var J=Q.v===D?Q.w:Q.v,W=Y.priority(J);if(W!==void 0){var te=X(Q);te<W&&(L[J]=D,Y.decrease(J,te))}}if(K.nodeCount()===0)return C;K.nodes().forEach(function(Q){Y.add(Q,Number.POSITIVE_INFINITY),C.setNode(Q)}),Y.decrease(K.nodes()[0],0);for(var $=!1;Y.size()>0;){if(D=Y.removeMin(),Object.hasOwn(L,D))C.setEdge(D,L[D]);else{if($)throw new Error("Input graph is not connected: "+K);$=!0}K.nodeEdges(D).forEach(F)}return C}}),j=s((G,A)=>{var q=x(),O=m();A.exports=H;function H(X,C,L,Y){return K(X,C,L,Y||function(D){return X.outEdges(D)})}function K(X,C,L,Y){if(L===void 0)return q(X,C,L,Y);for(var D=!1,F=X.nodes(),$=0;$<F.length;$++){for(var Q=Y(F[$]),J=0;J<Q.length;J++){var W=Q[J],te=W.v===F[$]?W.v:W.w,oe=te===W.v?W.w:W.v;L({v:te,w:oe})<0&&(D=!0)}if(D)return O(X,C,L,Y)}return q(X,C,L,Y)}}),z=s((G,A)=>{A.exports={bellmanFord:m(),components:p(),dijkstra:x(),dijkstraAll:_(),extractPath:N(),findCycles:w(),floydWarshall:k(),isAcyclic:M(),postorder:B(),preorder:I(),prim:Z(),shortestPaths:j(),reduce:U(),tarjan:S(),topsort:E()}}),V=f();t.exports={Graph:V.Graph,json:h(),alg:z(),version:V.version}}),d9=vt((e,t)=>{var i=class{constructor(){let o={};o._next=o._prev=o,this._sentinel=o}dequeue(){let o=this._sentinel,c=o._prev;if(c!==o)return a(c),c}enqueue(o){let c=this._sentinel;o._prev&&o._next&&a(o),o._next=c._next,c._next._prev=o,c._next=o,o._prev=c}toString(){let o=[],c=this._sentinel,d=c._prev;for(;d!==c;)o.push(JSON.stringify(d,s)),d=d._prev;return"["+o.join(", ")+"]"}};function a(o){o._prev._next=o._next,o._next._prev=o._prev,delete o._next,delete o._prev}function s(o,c){if(o!=="_next"&&o!=="_prev")return c}t.exports=i}),f9=vt((e,t)=>{var i=ji().Graph,a=d9();t.exports=o;var s=()=>1;function o(p,y){if(p.nodeCount()<=1)return[];let x=f(p,y||s);return c(x.graph,x.buckets,x.zeroIdx).flatMap(_=>p.outEdges(_.v,_.w))}function c(p,y,x){let _=[],N=y[y.length-1],S=y[0],w;for(;p.nodeCount();){for(;w=S.dequeue();)d(p,y,x,w);for(;w=N.dequeue();)d(p,y,x,w);if(p.nodeCount()){for(let k=y.length-2;k>0;--k)if(w=y[k].dequeue(),w){_=_.concat(d(p,y,x,w,!0));break}}}return _}function d(p,y,x,_,N){let S=N?[]:void 0;return p.inEdges(_.v).forEach(w=>{let k=p.edge(w),E=p.node(w.v);N&&S.push({v:w.v,w:w.w}),E.out-=k,h(y,x,E)}),p.outEdges(_.v).forEach(w=>{let k=p.edge(w),E=w.w,M=p.node(E);M.in-=k,h(y,x,M)}),p.removeNode(_.v),S}function f(p,y){let x=new i,_=0,N=0;p.nodes().forEach(k=>{x.setNode(k,{v:k,in:0,out:0})}),p.edges().forEach(k=>{let E=x.edge(k.v,k.w)||0,M=y(k),U=E+M;x.setEdge(k.v,k.w,U),N=Math.max(N,x.node(k.v).out+=M),_=Math.max(_,x.node(k.w).in+=M)});let S=m(N+_+3).map(()=>new a),w=_+1;return x.nodes().forEach(k=>{h(S,w,x.node(k))}),{graph:x,buckets:S,zeroIdx:w}}function h(p,y,x){x.out?x.in?p[x.out-x.in+y].enqueue(x):p[p.length-1].enqueue(x):p[0].enqueue(x)}function m(p){let y=[];for(let x=0;x<p;x++)y.push(x);return y}}),sn=vt((e,t)=>{var i=ji().Graph;t.exports={addBorderNode:y,addDummyNode:a,applyWithChunking:N,asNonCompoundGraph:o,buildLayerMatrix:h,intersectRect:f,mapValues:I,maxRank:S,normalizeRanks:m,notime:E,partition:w,pick:B,predecessorWeights:d,range:R,removeEmptyRanks:p,simplify:s,successorWeights:c,time:k,uniqueId:U,zipObject:Z};function a(j,z,V,G){for(var A=G;j.hasNode(A);)A=U(G);return V.dummy=z,j.setNode(A,V),A}function s(j){let z=new i().setGraph(j.graph());return j.nodes().forEach(V=>z.setNode(V,j.node(V))),j.edges().forEach(V=>{let G=z.edge(V.v,V.w)||{weight:0,minlen:1},A=j.edge(V);z.setEdge(V.v,V.w,{weight:G.weight+A.weight,minlen:Math.max(G.minlen,A.minlen)})}),z}function o(j){let z=new i({multigraph:j.isMultigraph()}).setGraph(j.graph());return j.nodes().forEach(V=>{j.children(V).length||z.setNode(V,j.node(V))}),j.edges().forEach(V=>{z.setEdge(V,j.edge(V))}),z}function c(j){let z=j.nodes().map(V=>{let G={};return j.outEdges(V).forEach(A=>{G[A.w]=(G[A.w]||0)+j.edge(A).weight}),G});return Z(j.nodes(),z)}function d(j){let z=j.nodes().map(V=>{let G={};return j.inEdges(V).forEach(A=>{G[A.v]=(G[A.v]||0)+j.edge(A).weight}),G});return Z(j.nodes(),z)}function f(j,z){let V=j.x,G=j.y,A=z.x-V,q=z.y-G,O=j.width/2,H=j.height/2;if(!A&&!q)throw new Error("Not possible to find intersection inside of the rectangle");let K,X;return Math.abs(q)*O>Math.abs(A)*H?(q<0&&(H=-H),K=H*A/q,X=H):(A<0&&(O=-O),K=O,X=O*q/A),{x:V+K,y:G+X}}function h(j){let z=R(S(j)+1).map(()=>[]);return j.nodes().forEach(V=>{let G=j.node(V),A=G.rank;A!==void 0&&(z[A][G.order]=V)}),z}function m(j){let z=j.nodes().map(G=>{let A=j.node(G).rank;return A===void 0?Number.MAX_VALUE:A}),V=N(Math.min,z);j.nodes().forEach(G=>{let A=j.node(G);Object.hasOwn(A,"rank")&&(A.rank-=V)})}function p(j){let z=j.nodes().map(O=>j.node(O).rank).filter(O=>O!==void 0),V=N(Math.min,z),G=[];j.nodes().forEach(O=>{let H=j.node(O).rank-V;G[H]||(G[H]=[]),G[H].push(O)});let A=0,q=j.graph().nodeRankFactor;Array.from(G).forEach((O,H)=>{O===void 0&&H%q!==0?--A:O!==void 0&&A&&O.forEach(K=>j.node(K).rank+=A)})}function y(j,z,V,G){let A={width:0,height:0};return arguments.length>=4&&(A.rank=V,A.order=G),a(j,"border",A,z)}function x(j,z=_){let V=[];for(let G=0;G<j.length;G+=z){let A=j.slice(G,G+z);V.push(A)}return V}var _=65535;function N(j,z){if(z.length>_){let V=x(z);return j.apply(null,V.map(G=>j.apply(null,G)))}else return j.apply(null,z)}function S(j){let z=j.nodes().map(V=>{let G=j.node(V).rank;return G===void 0?Number.MIN_VALUE:G});return N(Math.max,z)}function w(j,z){let V={lhs:[],rhs:[]};return j.forEach(G=>{z(G)?V.lhs.push(G):V.rhs.push(G)}),V}function k(j,z){let V=Date.now();try{return z()}finally{console.log(j+" time: "+(Date.now()-V)+"ms")}}function E(j,z){return z()}var M=0;function U(j){var z=++M;return j+(""+z)}function R(j,z,V=1){z==null&&(z=j,j=0);let G=q=>q<z;V<0&&(G=q=>z<q);let A=[];for(let q=j;G(q);q+=V)A.push(q);return A}function B(j,z){let V={};for(let G of z)j[G]!==void 0&&(V[G]=j[G]);return V}function I(j,z){let V=z;return typeof z=="string"&&(V=G=>G[z]),Object.entries(j).reduce((G,[A,q])=>(G[A]=V(q,A),G),{})}function Z(j,z){return j.reduce((V,G,A)=>(V[G]=z[A],V),{})}}),h9=vt((e,t)=>{var i=f9(),a=sn().uniqueId;t.exports={run:s,undo:c};function s(d){(d.graph().acyclicer==="greedy"?i(d,f(d)):o(d)).forEach(h=>{let m=d.edge(h);d.removeEdge(h),m.forwardName=h.name,m.reversed=!0,d.setEdge(h.w,h.v,m,a("rev"))});function f(h){return m=>h.edge(m).weight}}function o(d){let f=[],h={},m={};function p(y){Object.hasOwn(m,y)||(m[y]=!0,h[y]=!0,d.outEdges(y).forEach(x=>{Object.hasOwn(h,x.w)?f.push(x):p(x.w)}),delete h[y])}return d.nodes().forEach(p),f}function c(d){d.edges().forEach(f=>{let h=d.edge(f);if(h.reversed){d.removeEdge(f);let m=h.forwardName;delete h.reversed,delete h.forwardName,d.setEdge(f.w,f.v,h,m)}})}}),m9=vt((e,t)=>{var i=sn();t.exports={run:a,undo:o};function a(c){c.graph().dummyChains=[],c.edges().forEach(d=>s(c,d))}function s(c,d){let f=d.v,h=c.node(f).rank,m=d.w,p=c.node(m).rank,y=d.name,x=c.edge(d),_=x.labelRank;if(p===h+1)return;c.removeEdge(d);let N,S,w;for(w=0,++h;h<p;++w,++h)x.points=[],S={width:0,height:0,edgeLabel:x,edgeObj:d,rank:h},N=i.addDummyNode(c,"edge",S,"_d"),h===_&&(S.width=x.width,S.height=x.height,S.dummy="edge-label",S.labelpos=x.labelpos),c.setEdge(f,N,{weight:x.weight},y),w===0&&c.graph().dummyChains.push(N),f=N;c.setEdge(f,m,{weight:x.weight},y)}function o(c){c.graph().dummyChains.forEach(d=>{let f=c.node(d),h=f.edgeLabel,m;for(c.setEdge(f.edgeObj,h);f.dummy;)m=c.successors(d)[0],c.removeNode(d),h.points.push({x:f.x,y:f.y}),f.dummy==="edge-label"&&(h.x=f.x,h.y=f.y,h.width=f.width,h.height=f.height),d=m,f=c.node(d)})}}),Bu=vt((e,t)=>{var{applyWithChunking:i}=sn();t.exports={longestPath:a,slack:s};function a(o){var c={};function d(f){var h=o.node(f);if(Object.hasOwn(c,f))return h.rank;c[f]=!0;let m=o.outEdges(f).map(y=>y==null?Number.POSITIVE_INFINITY:d(y.w)-o.edge(y).minlen);var p=i(Math.min,m);return p===Number.POSITIVE_INFINITY&&(p=0),h.rank=p}o.sources().forEach(d)}function s(o,c){return o.node(c.w).rank-o.node(c.v).rank-o.edge(c).minlen}}),XN=vt((e,t)=>{var i=ji().Graph,a=Bu().slack;t.exports=s;function s(f){var h=new i({directed:!1}),m=f.nodes()[0],p=f.nodeCount();h.setNode(m,{});for(var y,x;o(h,f)<p;)y=c(h,f),x=h.hasNode(y.v)?a(f,y):-a(f,y),d(h,f,x);return h}function o(f,h){function m(p){h.nodeEdges(p).forEach(y=>{var x=y.v,_=p===x?y.w:x;!f.hasNode(_)&&!a(h,y)&&(f.setNode(_,{}),f.setEdge(p,_,{}),m(_))})}return f.nodes().forEach(m),f.nodeCount()}function c(f,h){return h.edges().reduce((m,p)=>{let y=Number.POSITIVE_INFINITY;return f.hasNode(p.v)!==f.hasNode(p.w)&&(y=a(h,p)),y<m[0]?[y,p]:m},[Number.POSITIVE_INFINITY,null])[1]}function d(f,h,m){f.nodes().forEach(p=>h.node(p).rank+=m)}}),p9=vt((e,t)=>{var i=XN(),a=Bu().slack,s=Bu().longestPath,o=ji().alg.preorder,c=ji().alg.postorder,d=sn().simplify;t.exports=f,f.initLowLimValues=y,f.initCutValues=h,f.calcCutValue=p,f.leaveEdge=_,f.enterEdge=N,f.exchangeEdges=S;function f(M){M=d(M),s(M);var U=i(M);y(U),h(U,M);for(var R,B;R=_(U);)B=N(U,M,R),S(U,M,R,B)}function h(M,U){var R=c(M,M.nodes());R=R.slice(0,R.length-1),R.forEach(B=>m(M,U,B))}function m(M,U,R){var B=M.node(R),I=B.parent;M.edge(R,I).cutvalue=p(M,U,R)}function p(M,U,R){var B=M.node(R),I=B.parent,Z=!0,j=U.edge(R,I),z=0;return j||(Z=!1,j=U.edge(I,R)),z=j.weight,U.nodeEdges(R).forEach(V=>{var G=V.v===R,A=G?V.w:V.v;if(A!==I){var q=G===Z,O=U.edge(V).weight;if(z+=q?O:-O,k(M,R,A)){var H=M.edge(R,A).cutvalue;z+=q?-H:H}}}),z}function y(M,U){arguments.length<2&&(U=M.nodes()[0]),x(M,{},1,U)}function x(M,U,R,B,I){var Z=R,j=M.node(B);return U[B]=!0,M.neighbors(B).forEach(z=>{Object.hasOwn(U,z)||(R=x(M,U,R,z,B))}),j.low=Z,j.lim=R++,I?j.parent=I:delete j.parent,R}function _(M){return M.edges().find(U=>M.edge(U).cutvalue<0)}function N(M,U,R){var B=R.v,I=R.w;U.hasEdge(B,I)||(B=R.w,I=R.v);var Z=M.node(B),j=M.node(I),z=Z,V=!1;Z.lim>j.lim&&(z=j,V=!0);var G=U.edges().filter(A=>V===E(M,M.node(A.v),z)&&V!==E(M,M.node(A.w),z));return G.reduce((A,q)=>a(U,q)<a(U,A)?q:A)}function S(M,U,R,B){var I=R.v,Z=R.w;M.removeEdge(I,Z),M.setEdge(B.v,B.w,{}),y(M),h(M,U),w(M,U)}function w(M,U){var R=M.nodes().find(I=>!U.node(I).parent),B=o(M,R);B=B.slice(1),B.forEach(I=>{var Z=M.node(I).parent,j=U.edge(I,Z),z=!1;j||(j=U.edge(Z,I),z=!0),U.node(I).rank=U.node(Z).rank+(z?j.minlen:-j.minlen)})}function k(M,U,R){return M.hasEdge(U,R)}function E(M,U,R){return R.low<=U.lim&&U.lim<=R.lim}}),g9=vt((e,t)=>{var i=Bu(),a=i.longestPath,s=XN(),o=p9();t.exports=c;function c(m){var p=m.graph().ranker;if(p instanceof Function)return p(m);switch(m.graph().ranker){case"network-simplex":h(m);break;case"tight-tree":f(m);break;case"longest-path":d(m);break;case"none":break;default:h(m)}}var d=a;function f(m){a(m),s(m)}function h(m){o(m)}}),b9=vt((e,t)=>{t.exports=i;function i(o){let c=s(o);o.graph().dummyChains.forEach(d=>{let f=o.node(d),h=f.edgeObj,m=a(o,c,h.v,h.w),p=m.path,y=m.lca,x=0,_=p[x],N=!0;for(;d!==h.w;){if(f=o.node(d),N){for(;(_=p[x])!==y&&o.node(_).maxRank<f.rank;)x++;_===y&&(N=!1)}if(!N){for(;x<p.length-1&&o.node(_=p[x+1]).minRank<=f.rank;)x++;_=p[x]}o.setParent(d,_),d=o.successors(d)[0]}})}function a(o,c,d,f){let h=[],m=[],p=Math.min(c[d].low,c[f].low),y=Math.max(c[d].lim,c[f].lim),x,_;x=d;do x=o.parent(x),h.push(x);while(x&&(c[x].low>p||y>c[x].lim));for(_=x,x=f;(x=o.parent(x))!==_;)m.push(x);return{path:h.concat(m.reverse()),lca:_}}function s(o){let c={},d=0;function f(h){let m=d;o.children(h).forEach(f),c[h]={low:m,lim:d++}}return o.children().forEach(f),c}}),x9=vt((e,t)=>{var i=sn();t.exports={run:a,cleanup:d};function a(f){let h=i.addDummyNode(f,"root",{},"_root"),m=o(f),p=Object.values(m),y=i.applyWithChunking(Math.max,p)-1,x=2*y+1;f.graph().nestingRoot=h,f.edges().forEach(N=>f.edge(N).minlen*=x);let _=c(f)+1;f.children().forEach(N=>s(f,h,x,_,y,m,N)),f.graph().nodeRankFactor=x}function s(f,h,m,p,y,x,_){let N=f.children(_);if(!N.length){_!==h&&f.setEdge(h,_,{weight:0,minlen:m});return}let S=i.addBorderNode(f,"_bt"),w=i.addBorderNode(f,"_bb"),k=f.node(_);f.setParent(S,_),k.borderTop=S,f.setParent(w,_),k.borderBottom=w,N.forEach(E=>{s(f,h,m,p,y,x,E);let M=f.node(E),U=M.borderTop?M.borderTop:E,R=M.borderBottom?M.borderBottom:E,B=M.borderTop?p:2*p,I=U!==R?1:y-x[_]+1;f.setEdge(S,U,{weight:B,minlen:I,nestingEdge:!0}),f.setEdge(R,w,{weight:B,minlen:I,nestingEdge:!0})}),f.parent(_)||f.setEdge(h,S,{weight:0,minlen:y+x[_]})}function o(f){var h={};function m(p,y){var x=f.children(p);x&&x.length&&x.forEach(_=>m(_,y+1)),h[p]=y}return f.children().forEach(p=>m(p,1)),h}function c(f){return f.edges().reduce((h,m)=>h+f.edge(m).weight,0)}function d(f){var h=f.graph();f.removeNode(h.nestingRoot),delete h.nestingRoot,f.edges().forEach(m=>{var p=f.edge(m);p.nestingEdge&&f.removeEdge(m)})}}),y9=vt((e,t)=>{var i=sn();t.exports=a;function a(o){function c(d){let f=o.children(d),h=o.node(d);if(f.length&&f.forEach(c),Object.hasOwn(h,"minRank")){h.borderLeft=[],h.borderRight=[];for(let m=h.minRank,p=h.maxRank+1;m<p;++m)s(o,"borderLeft","_bl",d,h,m),s(o,"borderRight","_br",d,h,m)}}o.children().forEach(c)}function s(o,c,d,f,h,m){let p={width:0,height:0,rank:m,borderType:c},y=h[c][m-1],x=i.addDummyNode(o,"border",p,d);h[c][m]=x,o.setParent(x,f),y&&o.setEdge(y,x,{weight:1})}}),v9=vt((e,t)=>{t.exports={adjust:i,undo:a};function i(m){let p=m.graph().rankdir.toLowerCase();(p==="lr"||p==="rl")&&s(m)}function a(m){let p=m.graph().rankdir.toLowerCase();(p==="bt"||p==="rl")&&c(m),(p==="lr"||p==="rl")&&(f(m),s(m))}function s(m){m.nodes().forEach(p=>o(m.node(p))),m.edges().forEach(p=>o(m.edge(p)))}function o(m){let p=m.width;m.width=m.height,m.height=p}function c(m){m.nodes().forEach(p=>d(m.node(p))),m.edges().forEach(p=>{let y=m.edge(p);y.points.forEach(d),Object.hasOwn(y,"y")&&d(y)})}function d(m){m.y=-m.y}function f(m){m.nodes().forEach(p=>h(m.node(p))),m.edges().forEach(p=>{let y=m.edge(p);y.points.forEach(h),Object.hasOwn(y,"x")&&h(y)})}function h(m){let p=m.x;m.x=m.y,m.y=p}}),_9=vt((e,t)=>{var i=sn();t.exports=a;function a(s){let o={},c=s.nodes().filter(p=>!s.children(p).length),d=c.map(p=>s.node(p).rank),f=i.applyWithChunking(Math.max,d),h=i.range(f+1).map(()=>[]);function m(p){if(o[p])return;o[p]=!0;let y=s.node(p);h[y.rank].push(p),s.successors(p).forEach(m)}return c.sort((p,y)=>s.node(p).rank-s.node(y).rank).forEach(m),h}}),w9=vt((e,t)=>{var i=sn().zipObject;t.exports=a;function a(o,c){let d=0;for(let f=1;f<c.length;++f)d+=s(o,c[f-1],c[f]);return d}function s(o,c,d){let f=i(d,d.map((_,N)=>N)),h=c.flatMap(_=>o.outEdges(_).map(N=>({pos:f[N.w],weight:o.edge(N).weight})).sort((N,S)=>N.pos-S.pos)),m=1;for(;m<d.length;)m<<=1;let p=2*m-1;m-=1;let y=new Array(p).fill(0),x=0;return h.forEach(_=>{let N=_.pos+m;y[N]+=_.weight;let S=0;for(;N>0;)N%2&&(S+=y[N+1]),N=N-1>>1,y[N]+=_.weight;x+=_.weight*S}),x}}),E9=vt((e,t)=>{t.exports=i;function i(a,s=[]){return s.map(o=>{let c=a.inEdges(o);if(c.length){let d=c.reduce((f,h)=>{let m=a.edge(h),p=a.node(h.v);return{sum:f.sum+m.weight*p.order,weight:f.weight+m.weight}},{sum:0,weight:0});return{v:o,barycenter:d.sum/d.weight,weight:d.weight}}else return{v:o}})}}),N9=vt((e,t)=>{var i=sn();t.exports=a;function a(c,d){let f={};c.forEach((m,p)=>{let y=f[m.v]={indegree:0,in:[],out:[],vs:[m.v],i:p};m.barycenter!==void 0&&(y.barycenter=m.barycenter,y.weight=m.weight)}),d.edges().forEach(m=>{let p=f[m.v],y=f[m.w];p!==void 0&&y!==void 0&&(y.indegree++,p.out.push(f[m.w]))});let h=Object.values(f).filter(m=>!m.indegree);return s(h)}function s(c){let d=[];function f(m){return p=>{p.merged||(p.barycenter===void 0||m.barycenter===void 0||p.barycenter>=m.barycenter)&&o(m,p)}}function h(m){return p=>{p.in.push(m),--p.indegree===0&&c.push(p)}}for(;c.length;){let m=c.pop();d.push(m),m.in.reverse().forEach(f(m)),m.out.forEach(h(m))}return d.filter(m=>!m.merged).map(m=>i.pick(m,["vs","i","barycenter","weight"]))}function o(c,d){let f=0,h=0;c.weight&&(f+=c.barycenter*c.weight,h+=c.weight),d.weight&&(f+=d.barycenter*d.weight,h+=d.weight),c.vs=d.vs.concat(c.vs),c.barycenter=f/h,c.weight=h,c.i=Math.min(d.i,c.i),d.merged=!0}}),S9=vt((e,t)=>{var i=sn();t.exports=a;function a(c,d){let f=i.partition(c,S=>Object.hasOwn(S,"barycenter")),h=f.lhs,m=f.rhs.sort((S,w)=>w.i-S.i),p=[],y=0,x=0,_=0;h.sort(o(!!d)),_=s(p,m,_),h.forEach(S=>{_+=S.vs.length,p.push(S.vs),y+=S.barycenter*S.weight,x+=S.weight,_=s(p,m,_)});let N={vs:p.flat(!0)};return x&&(N.barycenter=y/x,N.weight=x),N}function s(c,d,f){let h;for(;d.length&&(h=d[d.length-1]).i<=f;)d.pop(),c.push(h.vs),f++;return f}function o(c){return(d,f)=>d.barycenter<f.barycenter?-1:d.barycenter>f.barycenter?1:c?f.i-d.i:d.i-f.i}}),k9=vt((e,t)=>{var i=E9(),a=N9(),s=S9();t.exports=o;function o(f,h,m,p){let y=f.children(h),x=f.node(h),_=x?x.borderLeft:void 0,N=x?x.borderRight:void 0,S={};_&&(y=y.filter(M=>M!==_&&M!==N));let w=i(f,y);w.forEach(M=>{if(f.children(M.v).length){let U=o(f,M.v,m,p);S[M.v]=U,Object.hasOwn(U,"barycenter")&&d(M,U)}});let k=a(w,m);c(k,S);let E=s(k,p);if(_&&(E.vs=[_,E.vs,N].flat(!0),f.predecessors(_).length)){let M=f.node(f.predecessors(_)[0]),U=f.node(f.predecessors(N)[0]);Object.hasOwn(E,"barycenter")||(E.barycenter=0,E.weight=0),E.barycenter=(E.barycenter*E.weight+M.order+U.order)/(E.weight+2),E.weight+=2}return E}function c(f,h){f.forEach(m=>{m.vs=m.vs.flatMap(p=>h[p]?h[p].vs:p)})}function d(f,h){f.barycenter!==void 0?(f.barycenter=(f.barycenter*f.weight+h.barycenter*h.weight)/(f.weight+h.weight),f.weight+=h.weight):(f.barycenter=h.barycenter,f.weight=h.weight)}}),T9=vt((e,t)=>{var i=ji().Graph,a=sn();t.exports=s;function s(c,d,f,h){h||(h=c.nodes());let m=o(c),p=new i({compound:!0}).setGraph({root:m}).setDefaultNodeLabel(y=>c.node(y));return h.forEach(y=>{let x=c.node(y),_=c.parent(y);(x.rank===d||x.minRank<=d&&d<=x.maxRank)&&(p.setNode(y),p.setParent(y,_||m),c[f](y).forEach(N=>{let S=N.v===y?N.w:N.v,w=p.edge(S,y),k=w!==void 0?w.weight:0;p.setEdge(S,y,{weight:c.edge(N).weight+k})}),Object.hasOwn(x,"minRank")&&p.setNode(y,{borderLeft:x.borderLeft[d],borderRight:x.borderRight[d]}))}),p}function o(c){for(var d;c.hasNode(d=a.uniqueId("_root")););return d}}),A9=vt((e,t)=>{t.exports=i;function i(a,s,o){let c={},d;o.forEach(f=>{let h=a.parent(f),m,p;for(;h;){if(m=a.parent(h),m?(p=c[m],c[m]=h):(p=d,d=h),p&&p!==h){s.setEdge(p,h);return}h=m}})}}),C9=vt((e,t)=>{var i=_9(),a=w9(),s=k9(),o=T9(),c=A9(),d=ji().Graph,f=sn();t.exports=h;function h(x,_={}){if(typeof _.customOrder=="function"){_.customOrder(x,h);return}let N=f.maxRank(x),S=m(x,f.range(1,N+1),"inEdges"),w=m(x,f.range(N-1,-1,-1),"outEdges"),k=i(x);if(y(x,k),_.disableOptimalOrderHeuristic)return;let E=Number.POSITIVE_INFINITY,M,U=_.constraints||[];for(let R=0,B=0;B<4;++R,++B){p(R%2?S:w,R%4>=2,U),k=f.buildLayerMatrix(x);let I=a(x,k);I<E?(B=0,M=Object.assign({},k),E=I):I===E&&(M=structuredClone(k))}y(x,M)}function m(x,_,N){let S=new Map,w=(k,E)=>{S.has(k)||S.set(k,[]),S.get(k).push(E)};for(let k of x.nodes()){let E=x.node(k);if(typeof E.rank=="number"&&w(E.rank,k),typeof E.minRank=="number"&&typeof E.maxRank=="number")for(let M=E.minRank;M<=E.maxRank;M++)M!==E.rank&&w(M,k)}return _.map(function(k){return o(x,k,N,S.get(k)||[])})}function p(x,_,N){let S=new d;x.forEach(function(w){N.forEach(M=>S.setEdge(M.left,M.right));let k=w.graph().root,E=s(w,k,S,_);E.vs.forEach((M,U)=>w.node(M).order=U),c(w,S,E.vs)})}function y(x,_){Object.values(_).forEach(N=>N.forEach((S,w)=>x.node(S).order=w))}}),M9=vt((e,t)=>{var i=ji().Graph,a=sn();t.exports={positionX:N,findType1Conflicts:s,findType2Conflicts:o,addConflict:d,hasConflict:f,verticalAlignment:h,horizontalCompaction:m,alignCoordinates:x,findSmallestWidthAlignment:y,balance:_};function s(k,E){let M={};function U(R,B){let I=0,Z=0,j=R.length,z=B[B.length-1];return B.forEach((V,G)=>{let A=c(k,V),q=A?k.node(A).order:j;(A||V===z)&&(B.slice(Z,G+1).forEach(O=>{k.predecessors(O).forEach(H=>{let K=k.node(H),X=K.order;(X<I||q<X)&&!(K.dummy&&k.node(O).dummy)&&d(M,H,O)})}),Z=G+1,I=q)}),B}return E.length&&E.reduce(U),M}function o(k,E){let M={};function U(B,I,Z,j,z){let V;a.range(I,Z).forEach(G=>{V=B[G],k.node(V).dummy&&k.predecessors(V).forEach(A=>{let q=k.node(A);q.dummy&&(q.order<j||q.order>z)&&d(M,A,V)})})}function R(B,I){let Z=-1,j,z=0;return I.forEach((V,G)=>{if(k.node(V).dummy==="border"){let A=k.predecessors(V);A.length&&(j=k.node(A[0]).order,U(I,z,G,Z,j),z=G,Z=j)}U(I,z,I.length,j,B.length)}),I}return E.length&&E.reduce(R),M}function c(k,E){if(k.node(E).dummy)return k.predecessors(E).find(M=>k.node(M).dummy)}function d(k,E,M){if(E>M){let R=E;E=M,M=R}let U=k[E];U||(k[E]=U={}),U[M]=!0}function f(k,E,M){if(E>M){let U=E;E=M,M=U}return!!k[E]&&Object.hasOwn(k[E],M)}function h(k,E,M,U){let R={},B={},I={};return E.forEach(Z=>{Z.forEach((j,z)=>{R[j]=j,B[j]=j,I[j]=z})}),E.forEach(Z=>{let j=-1;Z.forEach(z=>{let V=U(z);if(V.length){V=V.sort((A,q)=>I[A]-I[q]);let G=(V.length-1)/2;for(let A=Math.floor(G),q=Math.ceil(G);A<=q;++A){let O=V[A];B[z]===z&&j<I[O]&&!f(M,z,O)&&(B[O]=z,B[z]=R[z]=R[O],j=I[O])}}})}),{root:R,align:B}}function m(k,E,M,U,R){let B={},I=p(k,E,M,R),Z=R?"borderLeft":"borderRight";function j(G,A){let q=I.nodes().slice(),O={},H=q.pop();for(;H;){if(O[H])G(H);else{O[H]=!0,q.push(H);for(let K of A(H))q.push(K)}H=q.pop()}}function z(G){B[G]=I.inEdges(G).reduce((A,q)=>Math.max(A,B[q.v]+I.edge(q)),0)}function V(G){let A=I.outEdges(G).reduce((O,H)=>Math.min(O,B[H.w]-I.edge(H)),Number.POSITIVE_INFINITY),q=k.node(G);A!==Number.POSITIVE_INFINITY&&q.borderType!==Z&&(B[G]=Math.max(B[G],A))}return j(z,I.predecessors.bind(I)),j(V,I.successors.bind(I)),Object.keys(U).forEach(G=>B[G]=B[M[G]]),B}function p(k,E,M,U){let R=new i,B=k.graph(),I=S(B.nodesep,B.edgesep,U);return E.forEach(Z=>{let j;Z.forEach(z=>{let V=M[z];if(R.setNode(V),j){var G=M[j],A=R.edge(G,V);R.setEdge(G,V,Math.max(I(k,z,j),A||0))}j=z})}),R}function y(k,E){return Object.values(E).reduce((M,U)=>{let R=Number.NEGATIVE_INFINITY,B=Number.POSITIVE_INFINITY;Object.entries(U).forEach(([Z,j])=>{let z=w(k,Z)/2;R=Math.max(j+z,R),B=Math.min(j-z,B)});let I=R-B;return I<M[0]&&(M=[I,U]),M},[Number.POSITIVE_INFINITY,null])[1]}function x(k,E){let M=Object.values(E),U=a.applyWithChunking(Math.min,M),R=a.applyWithChunking(Math.max,M);["u","d"].forEach(B=>{["l","r"].forEach(I=>{let Z=B+I,j=k[Z];if(j===E)return;let z=Object.values(j),V=U-a.applyWithChunking(Math.min,z);I!=="l"&&(V=R-a.applyWithChunking(Math.max,z)),V&&(k[Z]=a.mapValues(j,G=>G+V))})})}function _(k,E){return a.mapValues(k.ul,(M,U)=>{if(E)return k[E.toLowerCase()][U];{let R=Object.values(k).map(B=>B[U]).sort((B,I)=>B-I);return(R[1]+R[2])/2}})}function N(k){let E=a.buildLayerMatrix(k),M=Object.assign(s(k,E),o(k,E)),U={},R;["u","d"].forEach(I=>{R=I==="u"?E:Object.values(E).reverse(),["l","r"].forEach(Z=>{Z==="r"&&(R=R.map(G=>Object.values(G).reverse()));let j=(I==="u"?k.predecessors:k.successors).bind(k),z=h(k,R,M,j),V=m(k,R,z.root,z.align,Z==="r");Z==="r"&&(V=a.mapValues(V,G=>-G)),U[I+Z]=V})});let B=y(k,U);return x(U,B),_(U,k.graph().align)}function S(k,E,M){return(U,R,B)=>{let I=U.node(R),Z=U.node(B),j=0,z;if(j+=I.width/2,Object.hasOwn(I,"labelpos"))switch(I.labelpos.toLowerCase()){case"l":z=-I.width/2;break;case"r":z=I.width/2;break}if(z&&(j+=M?z:-z),z=0,j+=(I.dummy?E:k)/2,j+=(Z.dummy?E:k)/2,j+=Z.width/2,Object.hasOwn(Z,"labelpos"))switch(Z.labelpos.toLowerCase()){case"l":z=Z.width/2;break;case"r":z=-Z.width/2;break}return z&&(j+=M?z:-z),z=0,j}}function w(k,E){return k.node(E).width}}),O9=vt((e,t)=>{var i=sn(),a=M9().positionX;t.exports=s;function s(c){c=i.asNonCompoundGraph(c),o(c),Object.entries(a(c)).forEach(([d,f])=>c.node(d).x=f)}function o(c){let d=i.buildLayerMatrix(c),f=c.graph().ranksep,h=c.graph().rankalign,m=0;d.forEach(p=>{let y=p.reduce((x,_)=>{let N=c.node(_).height;return x>N?x:N},0);p.forEach(x=>{let _=c.node(x);h==="top"?_.y=m+_.height/2:h==="bottom"?_.y=m+y-_.height/2:_.y=m+y/2}),m+=y+f})}}),R9=vt((e,t)=>{var i=h9(),a=m9(),s=g9(),o=sn().normalizeRanks,c=b9(),d=sn().removeEmptyRanks,f=x9(),h=y9(),m=v9(),p=C9(),y=O9(),x=sn(),_=ji().Graph;t.exports=N;function N($,Q={}){let J=Q.debugTiming?x.time:x.notime;return J("layout",()=>{let W=J(" buildLayoutGraph",()=>j($));return J(" runLayout",()=>S(W,J,Q)),J(" updateInputGraph",()=>w($,W)),W})}function S($,Q,J){Q(" makeSpaceForEdgeLabels",()=>z($)),Q(" removeSelfEdges",()=>C($)),Q(" acyclic",()=>i.run($)),Q(" nestingGraph.run",()=>f.run($)),Q(" rank",()=>s(x.asNonCompoundGraph($))),Q(" injectEdgeLabelProxies",()=>V($)),Q(" removeEmptyRanks",()=>d($)),Q(" nestingGraph.cleanup",()=>f.cleanup($)),Q(" normalizeRanks",()=>o($)),Q(" assignRankMinMax",()=>G($)),Q(" removeEdgeLabelProxies",()=>A($)),Q(" normalize.run",()=>a.run($)),Q(" parentDummyChains",()=>c($)),Q(" addBorderSegments",()=>h($)),Q(" order",()=>p($,J)),Q(" insertSelfEdges",()=>L($)),Q(" adjustCoordinateSystem",()=>m.adjust($)),Q(" position",()=>y($)),Q(" positionSelfEdges",()=>Y($)),Q(" removeBorderNodes",()=>X($)),Q(" normalize.undo",()=>a.undo($)),Q(" fixupEdgeLabelCoords",()=>H($)),Q(" undoCoordinateSystem",()=>m.undo($)),Q(" translateGraph",()=>q($)),Q(" assignNodeIntersects",()=>O($)),Q(" reversePoints",()=>K($)),Q(" acyclic.undo",()=>i.undo($))}function w($,Q){$.nodes().forEach(J=>{let W=$.node(J),te=Q.node(J);W&&(W.x=te.x,W.y=te.y,W.order=te.order,W.rank=te.rank,Q.children(J).length&&(W.width=te.width,W.height=te.height))}),$.edges().forEach(J=>{let W=$.edge(J),te=Q.edge(J);W.points=te.points,Object.hasOwn(te,"x")&&(W.x=te.x,W.y=te.y)}),$.graph().width=Q.graph().width,$.graph().height=Q.graph().height}var k=["nodesep","edgesep","ranksep","marginx","marginy"],E={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb",rankalign:"center"},M=["acyclicer","ranker","rankdir","align","rankalign"],U=["width","height","rank"],R={width:0,height:0},B=["minlen","weight","width","height","labeloffset"],I={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Z=["labelpos"];function j($){let Q=new _({multigraph:!0,compound:!0}),J=F($.graph());return Q.setGraph(Object.assign({},E,D(J,k),x.pick(J,M))),$.nodes().forEach(W=>{let te=F($.node(W)),oe=D(te,U);Object.keys(R).forEach(fe=>{oe[fe]===void 0&&(oe[fe]=R[fe])}),Q.setNode(W,oe),Q.setParent(W,$.parent(W))}),$.edges().forEach(W=>{let te=F($.edge(W));Q.setEdge(W,Object.assign({},I,D(te,B),x.pick(te,Z)))}),Q}function z($){let Q=$.graph();Q.ranksep/=2,$.edges().forEach(J=>{let W=$.edge(J);W.minlen*=2,W.labelpos.toLowerCase()!=="c"&&(Q.rankdir==="TB"||Q.rankdir==="BT"?W.width+=W.labeloffset:W.height+=W.labeloffset)})}function V($){$.edges().forEach(Q=>{let J=$.edge(Q);if(J.width&&J.height){let W=$.node(Q.v),te={rank:($.node(Q.w).rank-W.rank)/2+W.rank,e:Q};x.addDummyNode($,"edge-proxy",te,"_ep")}})}function G($){let Q=0;$.nodes().forEach(J=>{let W=$.node(J);W.borderTop&&(W.minRank=$.node(W.borderTop).rank,W.maxRank=$.node(W.borderBottom).rank,Q=Math.max(Q,W.maxRank))}),$.graph().maxRank=Q}function A($){$.nodes().forEach(Q=>{let J=$.node(Q);J.dummy==="edge-proxy"&&($.edge(J.e).labelRank=J.rank,$.removeNode(Q))})}function q($){let Q=Number.POSITIVE_INFINITY,J=0,W=Number.POSITIVE_INFINITY,te=0,oe=$.graph(),fe=oe.marginx||0,be=oe.marginy||0;function we(Ne){let je=Ne.x,$e=Ne.y,st=Ne.width,Rt=Ne.height;Q=Math.min(Q,je-st/2),J=Math.max(J,je+st/2),W=Math.min(W,$e-Rt/2),te=Math.max(te,$e+Rt/2)}$.nodes().forEach(Ne=>we($.node(Ne))),$.edges().forEach(Ne=>{let je=$.edge(Ne);Object.hasOwn(je,"x")&&we(je)}),Q-=fe,W-=be,$.nodes().forEach(Ne=>{let je=$.node(Ne);je.x-=Q,je.y-=W}),$.edges().forEach(Ne=>{let je=$.edge(Ne);je.points.forEach($e=>{$e.x-=Q,$e.y-=W}),Object.hasOwn(je,"x")&&(je.x-=Q),Object.hasOwn(je,"y")&&(je.y-=W)}),oe.width=J-Q+fe,oe.height=te-W+be}function O($){$.edges().forEach(Q=>{let J=$.edge(Q),W=$.node(Q.v),te=$.node(Q.w),oe,fe;J.points?(oe=J.points[0],fe=J.points[J.points.length-1]):(J.points=[],oe=te,fe=W),J.points.unshift(x.intersectRect(W,oe)),J.points.push(x.intersectRect(te,fe))})}function H($){$.edges().forEach(Q=>{let J=$.edge(Q);if(Object.hasOwn(J,"x"))switch((J.labelpos==="l"||J.labelpos==="r")&&(J.width-=J.labeloffset),J.labelpos){case"l":J.x-=J.width/2+J.labeloffset;break;case"r":J.x+=J.width/2+J.labeloffset;break}})}function K($){$.edges().forEach(Q=>{let J=$.edge(Q);J.reversed&&J.points.reverse()})}function X($){$.nodes().forEach(Q=>{if($.children(Q).length){let J=$.node(Q),W=$.node(J.borderTop),te=$.node(J.borderBottom),oe=$.node(J.borderLeft[J.borderLeft.length-1]),fe=$.node(J.borderRight[J.borderRight.length-1]);J.width=Math.abs(fe.x-oe.x),J.height=Math.abs(te.y-W.y),J.x=oe.x+J.width/2,J.y=W.y+J.height/2}}),$.nodes().forEach(Q=>{$.node(Q).dummy==="border"&&$.removeNode(Q)})}function C($){$.edges().forEach(Q=>{if(Q.v===Q.w){var J=$.node(Q.v);J.selfEdges||(J.selfEdges=[]),J.selfEdges.push({e:Q,label:$.edge(Q)}),$.removeEdge(Q)}})}function L($){var Q=x.buildLayerMatrix($);Q.forEach(J=>{var W=0;J.forEach((te,oe)=>{var fe=$.node(te);fe.order=oe+W,(fe.selfEdges||[]).forEach(be=>{x.addDummyNode($,"selfedge",{width:be.label.width,height:be.label.height,rank:fe.rank,order:oe+ ++W,e:be.e,label:be.label},"_se")}),delete fe.selfEdges})})}function Y($){$.nodes().forEach(Q=>{var J=$.node(Q);if(J.dummy==="selfedge"){var W=$.node(J.e.v),te=W.x+W.width/2,oe=W.y,fe=J.x-te,be=W.height/2;$.setEdge(J.e,J.label),$.removeNode(Q),J.label.points=[{x:te+2*fe/3,y:oe-be},{x:te+5*fe/6,y:oe-be},{x:te+fe,y:oe},{x:te+5*fe/6,y:oe+be},{x:te+2*fe/3,y:oe+be}],J.label.x=J.x,J.label.y=J.y}})}function D($,Q){return x.mapValues(x.pick($,Q),Number)}function F($){var Q={};return $&&Object.entries($).forEach(([J,W])=>{typeof J=="string"&&(J=J.toLowerCase()),Q[J]=W}),Q}}),D9=vt((e,t)=>{var i=sn(),a=ji().Graph;t.exports={debugOrdering:s};function s(o){let c=i.buildLayerMatrix(o),d=new a({compound:!0,multigraph:!0}).setGraph({});return o.nodes().forEach(f=>{d.setNode(f,{label:f}),d.setParent(f,"layer"+o.node(f).rank)}),o.edges().forEach(f=>d.setEdge(f.v,f.w,{},f.name)),c.forEach((f,h)=>{let m="layer"+h;d.setNode(m,{rank:"same"}),f.reduce((p,y)=>(d.setEdge(p,y,{style:"invis"}),y))}),d}}),j9=vt((e,t)=>{t.exports="2.0.4"}),L9=vt((e,t)=>{t.exports={graphlib:ji(),layout:R9(),debug:D9(),util:{time:sn().time,notime:sn().notime},version:j9()}});const G1=L9();/*! For license information please see dagre.esm.js.LEGAL.txt */const V1={running:"bg-blue-500",completed:"bg-emerald-500",failed:"bg-red-500",error:"bg-red-500"};function z9({data:e,selected:t}){const i=e;return g.jsxs("div",{className:`w-[260px] rounded-lg border px-4 py-3 transition-colors ${i.isSelected||t?"border-white/30 bg-[#0a0a0a]":"border-[#222] bg-black hover:border-[#333]"}`,children:[g.jsx(Js,{type:"target",position:ze.Top,isConnectable:!1,className:`!w-1.5 !h-1.5 !border-0 ${i.parentId?"!bg-[#444]":"!bg-transparent"}`}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsxs("span",{className:"relative flex h-2 w-2 shrink-0",children:[g.jsx("span",{className:`absolute inline-flex h-full w-full rounded-full opacity-75 ${V1[i.status]??"bg-gray-500"} ${i.status==="running"?"animate-ping":""}`}),g.jsx("span",{className:`relative inline-flex h-2 w-2 rounded-full ${V1[i.status]??"bg-gray-500"}`})]}),g.jsx("span",{className:"text-sm font-semibold text-white leading-snug line-clamp-3",children:i.name})]}),g.jsx(Js,{type:"source",position:ze.Bottom,isConnectable:!1,className:`!w-1.5 !h-1.5 !border-0 ${i.children&&i.children.length>0?"!bg-[#444]":"!bg-transparent"}`})]})}const I9=ee.memo(z9);function eo({w:e=24}){return g.jsxs("div",{className:"w-[180px] h-[72px] rounded-lg border border-[#222] bg-[#0a0a0a] px-3 py-2 shrink-0",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[g.jsx("div",{className:"w-2 h-2 rounded-full bg-[#2a2a2a]"}),g.jsx("div",{className:"h-3 rounded bg-[#252525]",style:{width:`${e*4}px`}})]}),g.jsx("div",{className:"h-2 w-28 rounded bg-[#1e1e1e] mb-1.5"}),g.jsxs("div",{className:"flex gap-3",children:[g.jsx("div",{className:"h-2 w-8 rounded bg-[#1e1e1e]"}),g.jsx("div",{className:"h-2 w-8 rounded bg-[#1e1e1e]"})]})]})}function js(){return g.jsx("div",{className:"w-px h-6 bg-[#2a2a2a]"})}function Y1({count:e}){return g.jsx("div",{className:"relative flex justify-center",children:g.jsx("div",{className:"absolute top-0 h-px bg-[#2a2a2a]",style:{width:`${(e-1)*220}px`}})})}function B9(){return g.jsx("div",{className:"h-full bg-black overflow-hidden",children:g.jsxs("div",{className:"flex flex-col items-center pt-10 animate-pulse",children:[g.jsx(eo,{w:20}),g.jsx(js,{}),g.jsx(Y1,{count:3}),g.jsx("div",{className:"flex gap-10",children:[18,22,16].map((e,t)=>g.jsxs("div",{className:"flex flex-col items-center",children:[g.jsx(js,{}),g.jsx(eo,{w:e})]},t))}),g.jsxs("div",{className:"flex gap-10 w-full justify-center",children:[g.jsxs("div",{className:"flex flex-col items-center",children:[g.jsx(js,{}),g.jsx(Y1,{count:2}),g.jsx("div",{className:"flex gap-10",children:[14,20].map((e,t)=>g.jsxs("div",{className:"flex flex-col items-center",children:[g.jsx(js,{}),g.jsx(eo,{w:e})]},t))})]}),g.jsxs("div",{className:"flex flex-col items-center",children:[g.jsx(js,{}),g.jsx(eo,{w:18}),g.jsx(js,{}),g.jsx(eo,{w:12})]}),g.jsx("div",{className:"w-[180px]"})]})]})})}const lp=260,op=80,U9={agentNode:I9};function H9(e,t){const i=new G1.graphlib.Graph;i.setDefaultEdgeLabel(()=>({})),i.setGraph({rankdir:"TB",nodesep:60,ranksep:80});const a=[],s=[];for(const[o,c]of e)if(i.setNode(o,{width:lp,height:op}),a.push({id:o,type:"agentNode",position:{x:0,y:0},data:{...c,isSelected:o===t}}),c.parentId&&e.has(c.parentId)){const d=`${c.parentId}->${o}`;i.setEdge(c.parentId,o),s.push({id:d,source:c.parentId,target:o,style:{stroke:"#2a2a2a",strokeWidth:1.5}})}G1.layout(i);for(const o of a){const c=i.node(o.id);c&&(o.position={x:c.x-lp/2,y:c.y-op/2})}return{nodes:a,edges:s}}const Am=300;function $9({nodes:e}){const{setCenter:t}=Bo(),i=ee.useRef(!1);return ee.useEffect(()=>{if(e.length>0&&!i.current){const s=e.find(d=>!d.data.parentId)??e[0];i.current=!0;const o=s.position.x+lp/2,c=s.position.y+op/2;setTimeout(()=>t(o,c,{zoom:.85,duration:400}),60)}},[e,t]),null}function q9(){const{zoomIn:e,zoomOut:t,fitView:i}=Bo();return g.jsx(YB,{position:"bottom-right",showZoom:!1,showFitView:!1,showInteractive:!1,className:"!bg-transparent !border-none !shadow-none",children:g.jsxs("div",{className:"flex flex-col overflow-hidden rounded-lg border border-[#222]",children:[g.jsx("button",{onClick:()=>e({duration:Am}),className:"flex items-center justify-center w-7 h-7 bg-[#111] text-white hover:bg-[#2a2a2a] transition-colors",title:"Zoom in",children:g.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"w-3.5 h-3.5",children:g.jsx("path",{d:"M12 5v14M5 12h14"})})}),g.jsx("button",{onClick:()=>t({duration:Am}),className:"flex items-center justify-center w-7 h-7 bg-[#111] text-white hover:bg-[#2a2a2a] border-y border-[#222] transition-colors",title:"Zoom out",children:g.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"w-3.5 h-3.5",children:g.jsx("path",{d:"M5 12h14"})})}),g.jsx("button",{onClick:()=>i({padding:.3,duration:Am}),className:"flex items-center justify-center w-7 h-7 bg-[#111] text-white hover:bg-[#2a2a2a] transition-colors",title:"Fit view",children:g.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"w-3.5 h-3.5",children:g.jsx("path",{d:"M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"})})})]})})}function P9({agents:e,selectedAgentId:t,onSelectAgent:i,eventsLoaded:a,eventsEmpty:s,scanCompleted:o}){const[c,d,f]=jB([]),[h,m,p]=LB([]);ee.useEffect(()=>{if(e.size===0)return;const{nodes:S,edges:w}=H9(e,t);d(S),m(w)},[e.size,d,m]),ee.useEffect(()=>{e.size!==0&&d(S=>S.map(w=>{const k=e.get(w.id);return k?{...w,data:{...k,isSelected:w.id===t}}:w}))},[e,t,d]);const y=ee.useRef(!1),x=ee.useCallback((S,w)=>{y.current=!0,i(w.id)},[i]),_=ee.useCallback(()=>{if(y.current){y.current=!1;return}i(null)},[i]);if(e.size===0&&a&&s)return g.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center px-4",children:[g.jsx("div",{className:"w-10 h-10 mb-3 rounded-full bg-[#111] flex items-center justify-center",children:o?g.jsx("svg",{className:"w-5 h-5 text-[#444]",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25a2.25 2.25 0 0 1-2.25-2.25v-2.25Z"})}):g.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-500 animate-pulse"})}),g.jsx("p",{className:"text-sm text-[#555]",children:o?"Agent trace data is not available for this pentest":"Waiting for agent data…"})]});const N=e.size>0;return g.jsxs("div",{className:"relative h-full",children:[g.jsx("div",{className:`absolute inset-0 z-10 transition-opacity duration-500 ${N?"opacity-0 pointer-events-none":"opacity-100"}`,children:g.jsx(B9,{})}),g.jsx("div",{className:`h-full transition-opacity duration-500 ${N?"opacity-100":"opacity-0"}`,children:g.jsxs(DB,{nodes:c,edges:h,onNodesChange:f,onEdgesChange:p,onNodeClick:x,onPaneClick:_,nodeTypes:U9,nodesConnectable:!1,edgesFocusable:!1,edgesReconnectable:!1,minZoom:.15,maxZoom:1.5,proOptions:{hideAttribution:!0},className:"bg-black",children:[g.jsx(HB,{color:"#111",gap:20}),g.jsx($9,{nodes:c}),g.jsx(q9,{}),g.jsx(l9,{position:"bottom-left",nodeColor:S=>{var k;const w=(k=S.data)==null?void 0:k.status;return w==="running"?"#3b82f6":w==="completed"?"#10b981":w==="failed"||w==="error"?"#ef4444":"#555"},maskColor:"rgba(0,0,0,0.8)",style:{width:80,height:50},className:"!bg-[#0a0a0a] !border-[#222]"})]})})]})}function Us({text:e,className:t=""}){return g.jsx("div",{className:`prose-markdown ${t}`,children:g.jsx(zp,{remarkPlugins:[Hp],rehypePlugins:[$p],components:qp,children:e})})}const X1=6,K1=20;function Ln({text:e,maxLines:t=20}){const[i,a]=ee.useState(!1),o=e.trimEnd().split(`
-`).length>t;return g.jsxs("div",{children:[g.jsx("div",{className:i&&o?"max-h-[1200px] overflow-auto":"",style:!i&&o?{display:"-webkit-box",WebkitLineClamp:t,WebkitBoxOrient:"vertical",overflow:"hidden"}:void 0,children:g.jsx(Us,{text:e})}),o&&g.jsx("button",{onClick:()=>a(!i),className:"text-xs text-[#555] hover:text-[#888] mt-1",children:i?"Show less":"Show more"})]})}function vr({children:e,className:t=""}){const[i,a]=ee.useState(!1),o=typeof e=="string"?e.trimEnd().split(`
-`):null,c=o!==null&&o.length>X1,d=c&&!i?o.slice(0,X1).join(`
-`):e;return g.jsxs("div",{children:[g.jsx("pre",{className:`font-mono text-[13px] leading-relaxed whitespace-pre-wrap break-words mt-1 ${i?"overflow-auto max-h-[1200px]":"overflow-hidden"} ${t}`,children:d}),c&&g.jsx("button",{onClick:()=>a(!i),className:"text-xs text-[#555] hover:text-[#888] mt-0.5",children:i?"Show less":"Show more"})]})}function lg({code:e,language:t,className:i="",collapsible:a=!1}){const[s,o]=ee.useState(!1),c=e.trimEnd().split(`
-`),d=a&&c.length>K1,f=d&&!s?c.slice(0,K1).join(`
-`):e;let h;try{h=t?Gn.highlight(f,{language:t,ignoreIllegals:!0}).value:Gn.highlightAuto(f).value}catch{h=Gn.highlightAuto(f).value}return g.jsxs("div",{children:[g.jsx("pre",{className:`font-mono text-[12px] leading-relaxed px-0 py-1 mt-1 whitespace-pre-wrap break-all ${a?s?"overflow-auto max-h-[1200px]":"overflow-hidden":"overflow-auto max-h-[400px]"} ${i}`,children:g.jsx("code",{dangerouslySetInnerHTML:{__html:h}})}),d&&g.jsx("button",{onClick:()=>o(!s),className:"text-xs text-[#555] hover:text-[#888] mt-0.5",children:s?"Show less":"Show more"})]})}const F9=50,Z1=200,Q1=25,W1=24,G9=[/\n?\[Command still running after [\d.]+s - showing output so far\.?\s*(?:Use C-c to interrupt if needed\.)?\]/g,/^\[Below is the output of the previous command\.\]\n?/gm,/^No command is currently running\. Cannot send input\.$/gm,/^A command is already running\. Use is_input=true to send input to it, or interrupt it first \(e\.g\., with C-c\)\.$/gm],V9=/^Chunk ID: [0-9a-f]+\s*$/,Y9=[/^Wall time: [\d.]+ seconds\s*$/,/^Process exited with code -?\d+\s*$/,/^Process running with session ID \d+\s*$/,/^Original token count: \d+\s*$/];function X9(e){const t=[];for(let i=0;i<e.length;i++){if(V9.test(e[i])){let a=i+1;for(;a<e.length&&Y9.some(s=>s.test(e[a]));)a++;a<e.length&&e[a].trim()==="Output:"&&a++,i=a-1;continue}t.push(e[i])}return t}function K9(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Cm(e){return e.length>Z1?e.slice(0,Z1-3)+"...":e}function Z9(e,t=""){let i=e.replace(/\x1b(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~]|\][^\x07]*\x07)/g,"").replace(/\r/g,"");for(const a of G9)i=i.replace(a,"");if(i.trim()){const a=X9(i.split(`
-`)),s=[];for(const o of a)s.length===0&&!o.trim()||/^\[STRIX_\d+\]\$\s*/.test(o)||t&&o.trim()===t.trim()||t&&new RegExp(`^[\\$#>]\\s*${K9(t.trim())}\\s*$`).test(o)||s.push(o);for(;s.length>0&&/^\[STRIX_\d+\]\$\s*/.test(s[s.length-1]);)s.pop();i=s.join(`
-`)}return i.trim()}function Q9(e){const t=e.split(`
-`);if(t.length<=F9)return t.map(Cm).join(`
-`);const i=t.length-Q1-W1;return[...t.slice(0,Q1).map(Cm),`... ${i} lines truncated ...`,...t.slice(-W1).map(Cm)].join(`
-`)}function W9({toolName:e,args:t,result:i}){const a=e==="write_stdin",s=a?t.chars??t.input??"":t.command??t.cmd??"",o=i;let c=null,d=null,f=null;if(o&&typeof o=="object"){c=typeof o.content=="string"?o.content:null,d=typeof o.error=="string"?o.error:null,f=typeof o.exit_code=="number"?o.exit_code:null;const m=typeof o.status=="string"?o.status:"";(m==="running"||m==="command still running")&&(c=null)}else typeof o=="string"&&(c=o);const h=c?Q9(Z9(c,s)):null;return g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:a?"Terminal input":"Terminal"}),s&&g.jsx(lg,{code:s,language:"bash",collapsible:!0}),d&&g.jsx(vr,{className:"text-red-400/70",children:d}),h&&g.jsx(vr,{className:"text-[#666]",children:h}),f!=null&&f!==0&&g.jsxs("div",{className:"font-mono text-[13px] text-red-400/70 mt-0.5",children:["exit code ",f]})]})}const J1={back:"going back in browser history",forward:"going forward in browser history",scroll_down:"scrolling down",scroll_up:"scrolling up",refresh:"refreshing",close_tab:"closing tab",switch_tab:"switching tab",list_tabs:"listing tabs",view_source:"viewing page source",get_console_logs:"getting console logs",screenshot:"taking screenshot",wait:"waiting...",close:"closing"},e_={click:"clicking",double_click:"double clicking",hover:"hovering"};function Mm({prefix:e,url:t,suffix:i}){return g.jsxs("span",{className:"text-[#888] text-[13px]",children:[e,t&&g.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"text-cyan-400/80 hover:underline",children:t}),i]})}function J9(e){const t=e.action??"",i=e.url??void 0;if(t in J1)return J1[t];if(t==="launch")return i?g.jsx(Mm,{prefix:"launching ",url:i}):"launching";if(t==="goto"||t==="navigate")return g.jsx(Mm,{prefix:"navigating to ",url:i});if(t==="new_tab")return g.jsx(Mm,{prefix:"opening tab ",url:i});if(t in e_)return e_[t];if(t==="type")return`typing "${(e.text??"").slice(0,40)}"`;if(t==="press_key"||t==="key_press")return`pressing key ${e.key??""}`;if(t==="save_pdf"||t==="save_as_pdf"){const a=e.file_path??"";return`saving PDF${a?` to ${a}`:""}`}return t==="execute_js"?"executing javascript":t||"browser action"}function eU({args:e}){const i=(e.action??"")==="execute_js"?e.js_code??e.code??"":"",a=J9(e);return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[g.jsx("span",{className:"text-blue-400/80 font-semibold text-sm shrink-0",children:"Browser"}),g.jsx("span",{className:"min-w-0 truncate text-[#888] text-[13px]",children:a})]}),i&&g.jsx(lg,{code:i,language:"javascript",collapsible:!0})]})}function og(e){return e.length>60?"..."+e.slice(-57):e}const fu=30;function tU({toolName:e,args:t}){const i=t.path??t.file_path??"",a=t.command??"",s=t.old_str??"",o=t.new_str??"",c=t.regex??"";let d;e==="list_files"?d="list":e==="search_files"?d="search":a==="view"?d="view":a==="create"?d="create":a==="str_replace"?d="edit":a==="undo_edit"?d="undo":a==="insert"?d="insert":d="file";const f=i?og(i):"",h=c?` /${c}/`:"",m=s?s.split(`
-`):[],p=o?o.split(`
-`):[],y=m.length+p.length,x=y>fu,_=x?Math.round(fu*(m.length/y)):m.length,N=x?fu-_:p.length;return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-baseline gap-2",children:[g.jsx("span",{className:"text-sky-400/80 font-semibold text-sm shrink-0",children:d}),f&&g.jsx("span",{className:"text-[#888] font-mono text-[13px] break-all",children:f})]}),h&&g.jsx("div",{className:"text-purple-400/60 font-mono text-[13px] break-all mt-0.5",children:h}),(s||o)&&g.jsxs("div",{className:"font-mono text-[13px] leading-relaxed mt-1.5",children:[m.slice(0,_).map((S,w)=>g.jsxs("div",{className:"text-red-400/60",children:[g.jsx("span",{className:"select-none text-red-400/30 mr-1",children:"-"}),S]},`o${w}`)),p.slice(0,N).map((S,w)=>g.jsxs("div",{className:"text-emerald-400/60",children:[g.jsx("span",{className:"select-none text-emerald-400/30 mr-1",children:"+"}),S]},`n${w}`)),x&&g.jsxs("div",{className:"text-[#444] mt-0.5",children:["... ",y-fu," more lines"]})]})]})}const hu=30,nU="*** Begin Patch",iU="*** End Patch",t_="*** Add File: ",n_="*** Update File: ",i_="*** Delete File: ",rU={add:"create",update:"edit",delete:"delete"};function aU(e){const t=e.patch;return typeof t=="string"?t:t&&typeof t=="object"&&typeof t.patch=="string"?t.patch:typeof e.input=="string"?e.input:""}function sU(e){const t=[];let i=null;const a=()=>{i&&t.push(i),i=null};for(const s of e.split(`
-`))if(!(s===nU||s===iU))if(s.startsWith(t_))a(),i={kind:"add",path:s.slice(t_.length).trim(),oldLines:[],newLines:[]};else if(s.startsWith(n_))a(),i={kind:"update",path:s.slice(n_.length).trim(),oldLines:[],newLines:[]};else if(s.startsWith(i_))a(),i={kind:"delete",path:s.slice(i_.length).trim(),oldLines:[],newLines:[]};else if((i==null?void 0:i.kind)==="update"){if(s.startsWith("@@"))continue;s.startsWith("-")&&!s.startsWith("---")?i.oldLines.push(s.slice(1)):s.startsWith("+")&&!s.startsWith("+++")&&i.newLines.push(s.slice(1))}else(i==null?void 0:i.kind)==="add"&&(s.startsWith("+")?i.newLines.push(s.slice(1)):s.trim()&&i.newLines.push(s));return a(),t}function lU({op:e}){const t=rU[e.kind]??"file",i=e.oldLines.length+e.newLines.length,a=i>hu,s=a&&i>0?Math.round(hu*(e.oldLines.length/i)):e.oldLines.length,o=a?hu-s:e.newLines.length;return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-baseline gap-2",children:[g.jsx("span",{className:"text-sky-400/80 font-semibold text-sm shrink-0",children:t}),e.path&&g.jsx("span",{className:"text-[#888] font-mono text-[13px] break-all",children:og(e.path)})]}),(e.oldLines.length>0||e.newLines.length>0)&&g.jsxs("div",{className:"font-mono text-[13px] leading-relaxed mt-1.5",children:[e.oldLines.slice(0,s).map((c,d)=>g.jsxs("div",{className:"text-red-400/60",children:[g.jsx("span",{className:"select-none text-red-400/30 mr-1",children:"-"}),c]},`o${d}`)),e.newLines.slice(0,o).map((c,d)=>g.jsxs("div",{className:"text-emerald-400/60",children:[g.jsx("span",{className:"select-none text-emerald-400/30 mr-1",children:"+"}),c]},`n${d}`)),a&&g.jsxs("div",{className:"text-[#444] mt-0.5",children:["... ",i-hu," more lines"]})]})]})}function oU({args:e,result:t,status:i}){const a=sU(aU(e));return a.length===0?g.jsxs("div",{children:[g.jsx("span",{className:"text-sky-400/80 font-semibold text-sm",children:"patch"}),i==="failed"&&typeof t=="string"&&t.trim()&&g.jsx("div",{className:"text-red-400/70 text-[13px] mt-1",children:t.trim()})]}):g.jsxs("div",{className:"space-y-2",children:[a.map((s,o)=>g.jsx(lU,{op:s},o)),i==="failed"&&typeof t=="string"&&t.trim()&&g.jsx("div",{className:"text-red-400/70 text-[13px]",children:t.trim()})]})}function cU({args:e,result:t}){const i=(e.path??"").trim(),a=t;let s=null;if(typeof a=="string"){const o=a.trim();o&&!o.toLowerCase().startsWith("data:image/")&&!o.startsWith("{")&&(s=o)}return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-baseline gap-2",children:[g.jsx("span",{className:"text-sky-400/80 font-semibold text-sm shrink-0",children:"view image"}),i&&g.jsx("span",{className:"text-[#888] font-mono text-[13px] break-all",children:og(i)})]}),s&&g.jsx("div",{className:"text-red-400/70 text-[13px] mt-1",children:s})]})}const uU={critical:"text-red-400",high:"text-orange-400",medium:"text-yellow-400",low:"text-blue-400",info:"text-cyan-400"};function dU({args:e,result:t}){const i=e.title??"",a=e.description??"",s=e.impact??"",o=e.target??"",c=e.endpoint??"",d=e.method??"",f=e.technical_analysis??"",h=e.poc_description??"",m=e.poc_script_code??"",p=e.remediation_steps??"",y=e.cve??"",x=e.cwe??"",_=t,N=(_&&typeof _=="object"?_.severity:null)??e.severity??"medium",S=String(N).toLowerCase(),w=(_&&typeof _=="object"?_.cvss_score:null)??e.cvss??null,k=uU[S]??"text-yellow-400";return g.jsxs("div",{className:"space-y-3",children:[g.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[g.jsx("span",{className:`font-semibold text-sm ${k}`,children:S.toUpperCase()}),w!=null&&g.jsxs("span",{className:"text-[#888] text-[13px]",children:["CVSS ",w]}),y&&g.jsx("span",{className:"text-[#888] font-mono text-[13px]",children:y}),x&&g.jsx("span",{className:"text-[#888] font-mono text-[13px]",children:x})]}),i&&g.jsx("div",{className:"text-[15px] text-white/80 font-semibold",children:i}),(o||c)&&g.jsxs("div",{className:"text-[13px] text-[#888] font-mono",children:[o,c?` ${d} ${c}`:""]}),a&&g.jsx(Ln,{text:a,maxLines:20}),s&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Impact"}),g.jsx("div",{className:"mt-1",children:g.jsx(Ln,{text:s,maxLines:15})})]}),f&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Technical Analysis"}),g.jsx("div",{className:"mt-1",children:g.jsx(Ln,{text:f,maxLines:20})})]}),(h||m)&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Proof of Concept"}),h&&g.jsx("div",{className:"mt-1",children:g.jsx(Us,{text:h})}),m&&g.jsx(iE,{children:m})]}),p&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Remediation"}),g.jsx("div",{className:"mt-1",children:g.jsx(Ln,{text:p,maxLines:15})})]})]})}const KN=200,ZN={GET:"text-emerald-400/80",POST:"text-blue-400/80",PUT:"text-yellow-400/80",PATCH:"text-orange-400/80",DELETE:"text-red-400/80"};function cg(e){return e<300?"text-emerald-400/80":e<400?"text-yellow-400/80":e<500?"text-orange-400/80":"text-red-400/80"}function Yi(e,t=80){return e.length>t?e.slice(0,t-3)+"...":e}function cp(e,t=150){return Yi(e.replace(/\n/g," ").replace(/\r/g,"").replace(/\t/g," "),t)}function up(e,t){const i=e.split(`
-`),a=i.slice(0,t).map(s=>Yi(s,KN-5)).join(`
-`);return i.length>t?a+`
-...`:a}function fU({args:e,result:t}){const i=e.httpql_filter??"",a=t,s=a?a.requests:null,o=Array.isArray(s)?s:[];return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"listing requests"}),i&&g.jsx("span",{className:"text-[#888] text-[13px]",children:Yi(i,150)})]}),o.length>0&&g.jsxs("div",{className:"mt-1.5 font-mono text-[13px] space-y-0.5",children:[o.slice(0,20).map((c,d)=>{const f=(c.method??"GET").toUpperCase(),h=c.host??"",m=c.path??"",p=c.response,y=(p==null?void 0:p.statusCode)??null;return g.jsxs("div",{className:"flex gap-2",children:[g.jsx("span",{className:`w-10 shrink-0 font-bold ${ZN[f]??"text-[#888]"}`,children:f}),g.jsx("span",{className:"text-[#777] truncate",children:Yi(h+m,180)}),y!=null&&g.jsx("span",{className:`ml-auto shrink-0 ${cg(y)}`,children:y})]},d)}),o.length>20&&g.jsxs("div",{className:"text-[#555]",children:["... +",o.length-20," more"]})]})]})}function hU({args:e,result:t}){const i=e.request_id,a=e.part??"request",s=e.search_pattern??"",o=t,c=o?o.matches:null,d=Array.isArray(c)?c:[],f=o?o.content??null:null,h=o?!!o.has_more:!1;return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsxs("span",{className:"text-purple-400/80 font-semibold text-sm",children:[s?"searching":"viewing"," ",a]}),i!=null&&g.jsxs("span",{className:"text-[#888] text-[13px]",children:["#",i]}),s&&g.jsxs("span",{className:"text-[#666] font-mono text-[13px]",children:["/",Yi(s,100),"/"]})]}),d.length>0&&g.jsxs("div",{className:"mt-1.5 font-mono text-[13px] space-y-1",children:[d.slice(0,5).map((m,p)=>{const y=(m.before??"").replace(/\n/g," ").replace(/\r/g,"").slice(-100),x=(m.after??"").replace(/\n/g," ").replace(/\r/g,"").slice(0,100);return g.jsxs("div",{children:[y&&g.jsxs("span",{className:"text-[#555]",children:["...",y]}),g.jsx("span",{className:"text-amber-400/80 font-bold",children:m.match}),x&&g.jsxs("span",{className:"text-[#555]",children:[x,"..."]})]},p)}),d.length>5&&g.jsxs("div",{className:"text-[#555]",children:["... +",d.length-5," more matches"]})]}),f&&!d.length&&(()=>{const m=f.split(`
-`),p=m.slice(0,15).map(x=>Yi(x,KN)).join(`
-`),y=h||m.length>15;return g.jsx(vr,{className:"text-[#666]",children:p+(y?`
-... more content available`:"")})})()]})}function mU({args:e,result:t}){const i=(e.method??"GET").toUpperCase(),a=e.url??"",s=e.headers,o=e.body,c=typeof o=="string"?o:"",d=t,f=d?d.error??null:null,h=d?d.status_code??null:null,m=d?d.response_time_ms??null:null,p=d?d.body:null,y=typeof p=="string"?p:null;return g.jsxs("div",{children:[g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"request"}),g.jsxs("div",{className:"mt-1.5 font-mono text-[13px] space-y-0.5",children:[g.jsxs("div",{children:[g.jsx("span",{className:"text-[#555] select-none mr-1",children:">>"}),g.jsx("span",{className:`font-bold ${ZN[i]??"text-[#888]"}`,children:i}),g.jsx("span",{className:"text-[#888] ml-1 break-all",children:Yi(a,180)})]}),s&&typeof s=="object"&&Object.entries(s).slice(0,5).map(([x,_])=>g.jsxs("div",{className:"text-[#555] pl-5",children:[x,": ",cp(String(_),150)]},x))]}),c&&g.jsx(vr,{className:"text-[#888]",children:up(c,4)}),f&&g.jsx("div",{className:"text-red-400/70 text-[13px] mt-1.5",children:cp(f,150)}),h!=null&&g.jsxs("div",{className:"font-mono text-[13px] mt-1.5",children:[g.jsx("span",{className:"text-[#555] select-none mr-1",children:"<<"}),g.jsx("span",{className:`font-bold ${cg(h)}`,children:h}),m!=null&&g.jsxs("span",{className:"text-[#555] ml-2",children:[m,"ms"]})]}),y&&g.jsx(vr,{className:"text-[#666]",children:up(y,6)})]})}function pU({args:e,result:t}){const i=e.request_id,a=e.modifications,s=t,o=s?s.status_code??null:null,c=s?s.response_time_ms??null:null,d=s?s.body:null,f=typeof d=="string"?d:null;return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"repeating request"}),i!=null&&g.jsxs("span",{className:"text-[#888] text-[13px]",children:["#",i]})]}),a&&typeof a=="object"&&Object.keys(a).length>0&&g.jsx("div",{className:"mt-1.5 font-mono text-[13px] space-y-0.5",children:Object.entries(a).slice(0,5).map(([h,m])=>g.jsxs("div",{children:[g.jsxs("span",{className:"text-orange-400/60",children:[h,":"]})," ",g.jsx("span",{className:"text-[#777]",children:cp(typeof m=="string"?m:JSON.stringify(m),150)})]},h))}),o!=null&&g.jsxs("div",{className:"font-mono text-[13px] mt-1.5",children:[g.jsx("span",{className:"text-[#555] select-none mr-1",children:"<<"}),g.jsx("span",{className:`font-bold ${cg(o)}`,children:o}),c!=null&&g.jsxs("span",{className:"text-[#555] ml-2",children:[c,"ms"]})]}),f&&g.jsx(vr,{className:"text-[#666]",children:up(f,5)})]})}const gU={get:"getting",list:"listing",create:"creating",update:"updating",delete:"deleting"};function bU({args:e}){const t=e.action??"",i=e.scope_name??"",a=gU[t]??(t||"managing");return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsxs("span",{className:"text-purple-400/80 font-semibold text-sm",children:[a," proxy scope"]}),i&&g.jsx("span",{className:"text-[#888] text-[13px]",children:Yi(i,50)})]})}function xU({args:e}){const t=e.parent_id;return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"listing sitemap"}),t&&g.jsxs("span",{className:"text-[#888] text-[13px]",children:["under #",Yi(String(t),20)]})]})}function yU({args:e}){const t=e.entry_id;return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"viewing sitemap entry"}),t&&g.jsxs("span",{className:"text-[#888] text-[13px]",children:["#",Yi(String(t),20)]})]})}function vU(e){switch(e.toolName){case"list_requests":return g.jsx(fU,{...e});case"view_request":return g.jsx(hU,{...e});case"send_request":return g.jsx(mU,{...e});case"repeat_request":return g.jsx(pU,{...e});case"scope_rules":return g.jsx(bU,{...e});case"list_sitemap":return g.jsx(xU,{...e});case"view_sitemap_entry":return g.jsx(yU,{...e});default:return g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:e.toolName.replace(/_/g," ")})}}function _U({args:e}){const t=e.thought??e.content??"";return t?g.jsxs("div",{children:[g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"Agent is thinking"}),g.jsx("div",{className:"mt-1.5 italic text-[#888]",children:g.jsx(Ln,{text:t,maxLines:20})})]}):null}function wU({toolName:e,args:t}){if(e==="create_agent"){const i=t.name??t.agent_name??"",a=t.task??"";return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"spawning"}),i&&g.jsx("span",{className:"text-cyan-400 font-semibold text-sm",children:i})]}),a&&g.jsx("div",{className:"mt-1.5",children:g.jsx(Ln,{text:a,maxLines:15})})]})}if(e==="agent_finish"){const i=t.result_summary??"",a=t.success,s=t.findings,o=Array.isArray(s)?s:void 0;return g.jsxs("div",{children:[g.jsx("span",{className:`font-semibold text-sm ${a===!1?"text-red-400/80":"text-emerald-400/80"}`,children:a===!1?"Agent failed":"Agent completed"}),i&&g.jsx("div",{className:"mt-1.5",children:g.jsx(Ln,{text:i,maxLines:20})}),o&&o.length>0&&g.jsx("div",{className:"mt-1.5 space-y-0.5",children:o.map((c,d)=>g.jsxs("div",{className:"text-[13px] text-[#888]",children:[g.jsx("span",{className:"text-red-400/50 mr-1",children:"•"}),typeof c=="string"?c:JSON.stringify(c)]},d))})]})}if(e==="send_message_to_agent"){const i=t.message??"",a=t.target_agent_id??t.agent_id??"";return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"message"}),a&&g.jsxs("span",{className:"text-[#888] text-[13px]",children:["to ",a.slice(0,16)]})]}),i&&g.jsx("div",{className:"mt-1.5",children:g.jsx(Ln,{text:i,maxLines:20})})]})}if(e==="wait_for_message"){const i=t.reason??"";return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"waiting"}),i&&g.jsx("span",{className:"text-[#888] text-[13px] truncate",children:i})]})}if(e==="stop_agent"){const i=t.target_agent_id??"",a=t.cascade!==!1,s=t.reason??"";return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[g.jsx("span",{className:"text-red-400/80 font-semibold text-sm",children:"stopping"}),i&&g.jsx("span",{className:"text-[#888] text-[13px]",children:i.slice(0,16)}),a&&g.jsx("span",{className:"text-[#555] text-[13px] italic",children:"+ descendants"})]}),s&&g.jsx("div",{className:"mt-1.5 text-[#888] text-[13px]",children:s})]})}return e==="view_agent_graph"?g.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"viewing agents graph"}):g.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:e.replace(/_/g," ")})}function EU({args:e,result:t}){const i=e.query??e.search_query??"",a=t,s=a?a.content??null:null,o=a&&!a.success?a.message??null:null;return g.jsxs("div",{children:[g.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"Searching the web"}),i&&g.jsx("div",{className:"text-[#888] text-[13px] mt-0.5",children:i}),o&&g.jsx("div",{className:"text-red-400/70 text-[13px] mt-1.5",children:o}),s&&g.jsx("div",{className:"mt-2",children:g.jsx(Ln,{text:s,maxLines:15})})]})}const NU=50,r_=200,a_=25,s_=24,SU=/\x1b(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~]|\][^\x07]*\x07)/g,kU=/\.\.\. \[(stdout|stderr|result|output|error) truncated at \d+k? chars\]/g;function TU(e){return e.replace(SU,"")}function Om(e){const t=TU(e);return t.length>r_?t.slice(0,r_-3)+"...":t}function AU(e){return e.replace(kU,"").trim()}function CU(e){const t=e.split(`
-`);if(t.length<=NU)return t.map(Om).join(`
-`);const i=t.length-a_-s_;return[...t.slice(0,a_).map(Om),`... ${i} lines truncated ...`,...t.slice(-s_).map(Om)].join(`
-`)}function MU({args:e,result:t}){const i=e.action??"",a=e.code??e.script??"",s=t;let o=null;s&&typeof s=="object"?o=typeof s.stdout=="string"?s.stdout:null:typeof s=="string"&&(o=s);const c=i==="new_session"?"new session":i==="close"?"close session":i==="list_sessions"?"list sessions":null,d=o?CU(AU(o)):null;return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-yellow-400/80 font-semibold text-sm",children:"Python"}),c&&g.jsx("span",{className:"text-[#888] text-[13px]",children:c})]}),a&&g.jsx(lg,{code:a,language:"python",collapsible:!0}),d&&g.jsx(vr,{className:"text-[#666]",children:d})]})}function OU({args:e}){const t=e.targets,a=(Array.isArray(t)?t:[]).map(s=>typeof s=="object"&&s?s.original??null:null).filter(Boolean);return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:"Starting penetration test"}),a.length===1&&g.jsxs("span",{className:"text-[#888] text-[13px]",children:["on ",a[0]]})]}),a.length>1&&g.jsx("div",{className:"mt-1.5 space-y-0.5",children:a.map((s,o)=>g.jsxs("div",{className:"text-[13px] text-[#888]",children:[g.jsx("span",{className:"text-[#555] mr-1",children:"•"}),s]},o))})]})}function RU({args:e}){const t=e.name??"Unknown Agent",i=e.task??"";return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-[#888] text-[13px]",children:"subagent"}),g.jsx("span",{className:"text-purple-400 font-semibold text-sm",children:t})]}),i&&g.jsx("div",{className:"mt-1.5",children:g.jsx(Ln,{text:i,maxLines:15})})]})}function DU(e){return e.toolName==="subagent_start_info"?g.jsx(RU,{...e}):g.jsx(OU,{...e})}function jU({args:e}){const t=e.executive_summary??"",i=e.methodology??"",a=e.technical_analysis??"",s=e.recommendations??"";return g.jsxs("div",{className:"space-y-3",children:[g.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:"Penetration test completed"}),t&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Executive Summary"}),g.jsx("div",{className:"mt-1",children:g.jsx(Ln,{text:t,maxLines:25})})]}),i&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Methodology"}),g.jsx("div",{className:"mt-1",children:g.jsx(Ln,{text:i,maxLines:25})})]}),a&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Technical Analysis"}),g.jsx("div",{className:"mt-1",children:g.jsx(Ln,{text:a,maxLines:25})})]}),s&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Recommendations"}),g.jsx("div",{className:"mt-1",children:g.jsx(Ln,{text:s,maxLines:25})})]}),!t&&!i&&!a&&!s&&g.jsx("div",{className:"text-[#555] text-xs",children:"Generating final report..."})]})}function LU({toolName:e,args:t,result:i}){if(e==="create_note"){const a=t.title??"",s=t.content??"",o=t.category??"general";return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note"}),g.jsxs("span",{className:"text-[#555] text-[13px]",children:["(",o,")"]})]}),a&&g.jsx("div",{className:"mt-1.5 text-[#999] text-[13px]",children:a}),s&&g.jsx("div",{className:"mt-1",children:g.jsx(Us,{text:s})})]})}if(e==="delete_note")return g.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note removed"});if(e==="update_note"){const a=t.title??"",s=t.content??"";return g.jsxs("div",{children:[g.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note updated"}),a&&g.jsx("div",{className:"mt-1.5 text-[#999] text-[13px]",children:a}),s&&g.jsx("div",{className:"mt-1",children:g.jsx(Us,{text:s})})]})}if(e==="get_note"){const a=i,s=a&&typeof a=="object"&&a.success?a.note:void 0;return g.jsxs("div",{children:[g.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note read"}),s&&g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"mt-1.5 text-[#999] text-[13px]",children:[s.title??"(untitled)",g.jsxs("span",{className:"text-[#555] ml-1",children:["(",s.category??"general",")"]})]}),s.content&&g.jsx("div",{className:"mt-1",children:g.jsx(Us,{text:s.content})})]})]})}if(e==="list_notes"){const a=i;let s=[];if(a&&typeof a=="object"&&a.success){const o=a.notes;s=Array.isArray(o)?o:[]}return g.jsxs("div",{children:[g.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"notes"}),s.length>0?g.jsx("div",{className:"mt-1.5 space-y-0.5",children:s.map((o,c)=>g.jsxs("div",{className:"text-[13px]",children:[g.jsx("span",{className:"text-[#555] mr-1",children:"-"}),g.jsx("span",{className:"text-[#999]",children:o.title??"(untitled)"}),g.jsxs("span",{className:"text-[#555] ml-1",children:["(",o.category??"general",")"]}),o.content&&g.jsx("div",{className:"ml-3",children:g.jsx(Us,{text:o.content})})]},c))}):g.jsx("div",{className:"mt-1 text-[#555] text-xs",children:"No notes"})]})}return g.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note"})}const zU={create_todo:{label:"Task added",Icon:KT},list_todos:{label:"Plan",Icon:B2},update_todo:{label:"Task updated",Icon:YT},mark_todo_done:{label:"Task completed",Icon:S_},mark_todo_pending:{label:"Task reopened",Icon:iA},delete_todo:{label:"Task removed",Icon:hA}};function IU({status:e}){return e==="done"?g.jsx(S_,{className:"w-3.5 h-3.5 text-emerald-400/70 shrink-0"}):e==="in_progress"?g.jsx(K2,{className:"w-3.5 h-3.5 text-purple-400/70 shrink-0 animate-pulse"}):g.jsx(Q2,{className:"w-3.5 h-3.5 text-[#444] shrink-0"})}function BU({todos:e,highlightId:t}){return g.jsx("div",{className:"space-y-0",children:e.map((i,a)=>{const s=i.status??"pending",o=t&&i.id===t;return g.jsxs("div",{className:`flex items-start gap-2.5 py-1.5 px-2 -mx-2 rounded-md transition-colors ${o?"bg-purple-500/[0.08]":""}`,children:[g.jsx("div",{className:"mt-[1px]",children:g.jsx(IU,{status:s})}),g.jsx("span",{className:`text-[13px] leading-snug ${s==="done"?"text-[#555] line-through":s==="in_progress"?"text-[#bbb]":"text-[#999]"}`,children:i.title??"(untitled)"})]},i.id??a)})})}function UU({toolName:e,args:t,result:i}){const a=zU[e]??{label:"Plan",Icon:JT},s=a.Icon,o=i;if(typeof o=="string"&&o.trim())return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(s,{className:"w-3.5 h-3.5 text-purple-400/60"}),g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:a.label})]}),g.jsx("div",{className:"mt-1.5 text-[#888] text-[13px]",children:o.trim()})]});let c=[],d=null,f;if(o&&typeof o=="object"){if(d=o.error??null,o.success){const m=o.todos;c=Array.isArray(m)?m:[]}f=o.id??t.todo_id??void 0}const h=e!=="list_todos"?f:void 0;return c.length===0&&!d?g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(s,{className:"w-3.5 h-3.5 text-purple-400/60"}),g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:a.label})]}):g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[g.jsx(s,{className:"w-3.5 h-3.5 text-purple-400/60"}),g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:a.label})]}),d&&g.jsx("div",{className:"text-red-400/70 text-[13px] mb-2",children:d}),c.length>0&&g.jsx("div",{className:"rounded-lg border border-white/[0.06] bg-white/[0.015] px-3 py-2",children:g.jsx(BU,{todos:c,highlightId:h})})]})}function l_(e){if(e==null)return null;if(typeof e=="string")return e.trim()?e:null;if(typeof e=="object"){const t=e;if(typeof t.__raw=="string")return t.__raw;if(Object.keys(t).length===0)return null;try{return JSON.stringify(e,null,2)}catch{return String(e)}}return String(e)}function QN({toolName:e,args:t,result:i}){const a=l_(t),s=l_(i);return g.jsxs("div",{children:[g.jsx("span",{className:"text-[#888] font-semibold text-sm",children:e.replace(/_/g," ")}),a&&g.jsx(vr,{className:"text-[#777]",children:a}),s&&g.jsx(vr,{className:"text-[#666]",children:s})]})}function HU({args:e}){const i=(e.skills??"").split(",").map(a=>a.trim()).filter(Boolean);return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:"Loading skill"}),i.length>0&&g.jsx("span",{className:"text-[#888] text-[13px]",children:i.join(", ")})]})}const rd={terminal:{renderer:W9,icon:R_,color:"text-emerald-400"},python:{renderer:MU,icon:eT,color:"text-yellow-400"},browser:{renderer:eU,icon:pp,color:"text-blue-400"},filesystem:{renderer:tU,icon:T_,color:"text-sky-400"},proxy:{renderer:vU,icon:Ps,color:"text-purple-400",match:/request|sitemap|scope/},reporting:{renderer:dU,icon:sA,color:"text-red-400"},thinking:{renderer:_U,icon:w_,color:"text-purple-400"},agents:{renderer:wU,icon:fp,color:"text-cyan-400",match:/agent/},search:{renderer:EU,icon:O_,color:"text-amber-400"},lifecycle:{renderer:DU,icon:A_,color:"text-emerald-400"},notes:{renderer:LU,icon:uA,color:"text-amber-400",match:/note/},skills:{renderer:HU,icon:_u,color:"text-emerald-400"},todos:{renderer:UU,icon:MT,color:"text-purple-400",match:/todo/},telemetry:{renderer:QN,icon:_u,color:"text-[#555]"}},$U={terminal:["exec_command","write_stdin","terminal_execute"],python:["python_action"],browser:["browser_action"],filesystem:["apply_patch","view_image","str_replace_editor","list_files","search_files"],proxy:["list_requests","view_request","repeat_request","list_sitemap","view_sitemap_entry","scope_rules","send_request"],reporting:["create_vulnerability_report"],thinking:["think"],agents:["create_agent","agent_finish","send_message_to_agent","wait_for_message","view_agent_graph","stop_agent"],search:["web_search"],lifecycle:["scan_start_info","subagent_start_info","finish_scan"],notes:["create_note","delete_note","update_note","list_notes","get_note"],skills:["load_skill"],todos:["create_todo","list_todos","update_todo","mark_todo_done","mark_todo_pending","delete_todo"],telemetry:["sandbox_error_details","llm_error_details"]},qU=Object.fromEntries(Object.entries($U).flatMap(([e,t])=>t.map(i=>[i,e]))),PU={finish_scan:jU,apply_patch:oU,view_image:cU},FU={agent_finish:{icon:A_,color:"text-cyan-400"},send_message_to_agent:{icon:W0,color:"text-cyan-400"},wait_for_message:{icon:W0,color:"text-cyan-400"},view_agent_graph:{icon:lT,color:"text-cyan-400"},stop_agent:{icon:__,color:"text-red-400"},scan_start_info:{icon:iT,color:"text-emerald-400"},subagent_start_info:{icon:fp,color:"text-purple-400"},view_image:{icon:wT,color:"text-sky-400"}},GU=rd.telemetry;function WN(e){var i;const t=qU[e];if(t)return t;for(const[a,s]of Object.entries(rd))if((i=s.match)!=null&&i.test(e))return a;return null}function VU(e){const t=PU[e];if(t)return t;const i=WN(e);return i?rd[i].renderer:QN}function YU(e){const t=FU[e];if(t)return t;const i=WN(e),a=i?rd[i]:GU;return{icon:a.icon,color:a.color}}const XU=30;function KU({role:e,content:t}){const i=e==="user"||e==="human";return g.jsxs("div",{children:[g.jsx("span",{className:`font-semibold text-sm ${i?"text-blue-400/80":"text-purple-400/80"}`,children:i?"User":"Thinking"}),g.jsx("div",{className:"mt-1.5 italic text-[#888]",children:g.jsx(Ln,{text:t,maxLines:XU})})]})}class ZU extends ee.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?g.jsx("span",{className:"text-[#555] font-semibold text-sm",children:this.props.toolName.replace(/_/g," ")}):this.props.children}}function QU(e){const t=VU(e.toolName);return g.jsx(ZU,{toolName:e.toolName,children:g.jsx(t,{...e})})}function JN(e){if(e==null||typeof e!="string")return e;const t=e.trim();if(!t)return e;try{return JSON.parse(t)}catch{}try{const i=t.replace(/\bNone\b/g,"null").replace(/\bTrue\b/g,"true").replace(/\bFalse\b/g,"false").replace(/'/g,'"');return JSON.parse(i)}catch{return{__raw:e}}}function eS(e){const t=JN(e);return t&&typeof t=="object"&&!Array.isArray(t)?t:t==null?{}:{__raw:typeof t=="string"?t:JSON.stringify(t)}}function o_(e){const t=/(\d+)$/.exec(e);return t?parseInt(t[1],10):0}function ug(e){var i;const t=(i=e.data)==null?void 0:i.role;return e.type==="chat"&&(t==="user"||t==="human")}function WU(e){var t;return ug(e)&&String(((t=e.data)==null?void 0:t.content)??"").startsWith("[Message from ")}function JU(e){const t=new Set;let i=!1;for(const a of e)if(ug(a)){if(WU(a)){t.add(a.id);continue}i||(i=!0,t.add(a.id))}return t}const e7={completed:"text-emerald-400 border-emerald-500/30 bg-emerald-500/10",running:"text-blue-400 border-blue-500/30 bg-blue-500/10",waiting:"text-yellow-400 border-yellow-500/30 bg-yellow-500/10",stopped:"text-[#aaa] border-[#333] bg-[#1a1a1a]",crashed:"text-red-400 border-red-500/30 bg-red-500/10",failed:"text-red-400 border-red-500/30 bg-red-500/10"};function t7(e){return e==="completed"?"completed":e==="running"?"running":e==="failed"||e==="crashed"?"failed":e}function n7(e,t){var d;const i=new Map;for(const f of e)if(f.parent_id){const h=i.get(f.parent_id)??[];h.push(f.id),i.set(f.parent_id,h)}const a=new Map,s=new Map,o=new Map;for(const f of t)if(f.type==="tool"){if(a.set(f.agent_id,(a.get(f.agent_id)??0)+1),((d=f.data)==null?void 0:d.tool_name)==="create_agent"){const h=eS(f.data.args),m=h.name??h.agent_name??"",p=h.task??"";m&&p&&o.set(m,p)}}else ug(f)||s.set(f.agent_id,(s.get(f.agent_id)??0)+1);const c=new Map;for(const f of e)c.set(f.id,{id:f.id,name:f.name,task:o.get(f.name)??"",status:t7(f.status),parentId:f.parent_id,children:i.get(f.id)??[],createdAt:f.created_at,toolCount:a.get(f.id)??0,messageCount:s.get(f.id)??0});return c}function i7({agent:e,events:t,showHeader:i=!0}){const a=ee.useMemo(()=>{const c=t.filter(f=>f.agent_id===e.id).sort((f,h)=>o_(f.id)-o_(h.id)),d=JU(c);return c.filter(f=>!d.has(f.id))},[t,e.id]),s=a.filter(c=>c.type==="tool").length,o=a.length-s;return g.jsxs("div",{children:[i&&g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"flex items-center gap-2 flex-wrap mb-1",children:[g.jsx("span",{className:"text-base font-semibold text-white truncate",children:e.name}),g.jsx("span",{className:`flex-shrink-0 text-xs font-medium capitalize px-2 py-0.5 rounded-full border ${e7[e.status]??"text-[#aaa] border-[#333] bg-[#1a1a1a]"}`,children:e.status}),g.jsx("span",{className:"font-mono text-xs text-[#555]",children:e.id})]}),g.jsxs("p",{className:"text-xs text-[#666] mb-4",children:[o," message",o===1?"":"s"," · ",s," tool call",s===1?"":"s"]})]}),a.length===0?g.jsx("p",{className:"text-sm text-[#666]",children:"No recorded activity for this agent."}):g.jsx("div",{className:"py-1",children:a.map((c,d)=>{var N,S,w,k,E,M;const f=d===a.length-1,h=c.type==="tool",m=h?String(((N=c.data)==null?void 0:N.tool_name)??"tool"):"",p=h?"":String(((S=c.data)==null?void 0:S.role)??"assistant");let y,x;if(h){const U=YU(m);y=U.icon,x=U.color}else{const U=p==="user"||p==="human";y=U?fp:w_,x=U?"text-blue-400":"text-purple-400"}const _=h?String(((w=c.data)==null?void 0:w.status)??"completed"):"completed";return g.jsxs("div",{className:"flex gap-3",children:[g.jsxs("div",{className:"flex flex-col items-center shrink-0",children:[g.jsx("div",{className:`w-[30px] h-[30px] rounded-full bg-black border flex items-center justify-center shrink-0 ${h&&_==="running"?"border-blue-500/40 animate-pulse":h&&_==="failed"?"border-red-500/30":"border-[#222]"}`,children:g.jsx(y,{className:`w-3.5 h-3.5 ${x}`})}),!f&&g.jsx("div",{className:"w-px flex-1 bg-[#1a1a1a] mt-1"})]}),g.jsx("div",{className:"flex-1 min-w-0 pt-[5px] pb-6",children:h?g.jsx(QU,{toolName:m,args:eS((k=c.data)==null?void 0:k.args),result:JN((E=c.data)==null?void 0:E.result)??null,status:_}):g.jsx(KU,{role:p,content:String(((M=c.data)==null?void 0:M.content)??"")})})]},c.id)})})]})}class Uu extends Error{constructor(t){super(t),this.name="RunParseError"}}const r7=["critical","high","medium","low"];function a7(e){const t=String(e??"").toLowerCase().trim();return r7.includes(t)?t:"low"}function s7(e){if(typeof e=="string"&&e.trim()){const t=e.trim().replace(" UTC","Z").replace(" ","T"),i=new Date(t);if(!Number.isNaN(i.getTime()))return i.toISOString();const a=new Date(e);if(!Number.isNaN(a.getTime()))return a.toISOString()}return new Date().toISOString()}function Ot(e){return typeof e=="string"&&e.length>0?e:null}function l7(e){return typeof e=="number"&&Number.isFinite(e)?e:null}function tS(e,t){try{return JSON.parse(e)}catch{throw new Uu(`${t} isn't valid JSON. Make sure you selected a Strix run directory.`)}}function o7(e){const t=tS(e,"run.json");if(!t||typeof t!="object"||Array.isArray(t))throw new Uu("run.json is not an object.");const i=t,a=[],s=i.targets_info;if(Array.isArray(s)){for(const x of s)if(x&&typeof x=="object"){const _=x.original;typeof _=="string"&&_&&a.push(_)}}const o=Ot(i.start_time),c=Ot(i.end_time);let d=null;if(o&&c){const x=new Date(o).getTime(),_=new Date(c).getTime();!Number.isNaN(x)&&!Number.isNaN(_)&&_>=x&&(d=Math.round((_-x)/1e3))}let f=null,h=null,m=null,p=null;const y=i.scan_results;if(y&&typeof y=="object"){const x=y;f=Ot(x.executive_summary),h=Ot(x.technical_analysis),m=Ot(x.methodology),p=Ot(x.recommendations)}return{runId:Ot(i.run_id),runName:Ot(i.run_name),targets:a,scanMode:Ot(i.scan_mode),status:Ot(i.status),startTime:o,endTime:c,durationSeconds:d,executiveSummary:f,technicalAnalysis:h,methodology:m,recommendations:p}}function c7(){return{pr_review_id:null,cve:null,cvss:null,potential_risk_saving:null,risk_saving_description:null,impact:null,endpoint:null,method:null,target:null,technical_analysis:null,poc_description:null,poc_script_code:null,code_diff:null,code_file:null,code_before:null,code_after:null,cwe:null,code_locations:null,remediation_steps:null,fix_pr_body:null,evidence:null,assumptions:null,fix_effort:null,cvss_breakdown:null,status_changed_at:null,status_changed_by:null,status_note:null,snoozed_until:null,reopened_at:null,reopened_by:null,original_severity:null,severity_changed_at:null,severity_changed_by:null,severity_override_reason:null,retest_of_vulnerability_id:null}}function u7(e,t,i){const a=e.cwe,s=typeof a=="string"&&a.trim()?[a.trim()]:Array.isArray(a)?a.filter(c=>typeof c=="string"&&c):null;return{...c7(),id:Ot(e.id)??`vuln-${t+1}`,scan_id:i,title:Ot(e.title)??"Untitled finding",description:Ot(e.description)??"",severity:a7(e.severity),status:"open",created_at:s7(e.timestamp),cve:Ot(e.cve),cvss:l7(e.cvss),impact:Ot(e.impact),endpoint:Ot(e.endpoint),method:Ot(e.method),target:Ot(e.target),technical_analysis:Ot(e.technical_analysis),poc_description:Ot(e.poc_description),poc_script_code:Ot(e.poc_script_code),cwe:s,code_locations:Array.isArray(e.code_locations)?e.code_locations:null,remediation_steps:Ot(e.remediation_steps),fix_pr_body:Ot(e.fix_pr_body),evidence:Ot(e.evidence),assumptions:Ot(e.assumptions),fix_effort:Ot(e.fix_effort)??null,cvss_breakdown:e.cvss_breakdown??null}}function d7(e,t=null){const i=tS(e,"vulnerabilities.json");if(!Array.isArray(i))throw new Uu("vulnerabilities.json is not a JSON array.");return i.map((a,s)=>{if(!a||typeof a!="object")throw new Uu(`vulnerabilities.json entry #${s+1} is not an object.`);return u7(a,s,t)})}function f7(e){const t={critical:0,high:0,medium:0,low:0};for(const i of e)t[i.severity]+=1;return t}async function Za(e){const t=await fetch(e,{cache:"no-store"});if(!t.ok)throw new Error(`${e} responded ${t.status}`);return t.json()}function ad(e){return e?`?run=${encodeURIComponent(e)}`:""}async function nS(e){const t=await Za("/api/run"+ad(e)),i=o7(JSON.stringify(t)),a=t.finished===!0;return{summary:i,raw:t,finished:a}}async function iS(e,t){const i=await Za("/api/vulnerabilities"+ad(t));return d7(JSON.stringify(i),e)}async function h7(e){const t=await Za("/api/report"+ad(e));return(t==null?void 0:t.markdown)??null}async function rS(e){const t=await Za("/api/transcript"+ad(e));return{agents:Array.isArray(t==null?void 0:t.agents)?t.agents:[],events:Array.isArray(t==null?void 0:t.events)?t.events:[]}}async function c_(e){const{summary:t,raw:i,finished:a}=await nS(e),[s,o,c]=await Promise.all([iS(t.runId,e).catch(()=>[]),h7(e).catch(()=>null),rS(e).catch(()=>({agents:[],events:[]}))]);return{summary:t,raw:i,finished:a,vulnerabilities:s,reportMarkdown:o,transcript:c}}async function Uo(e,t){const i=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),cache:"no-store"});let a={};try{const s=await i.json();s&&typeof s=="object"&&(a=s)}catch{}return{ok:i.ok,status:i.status,data:a}}async function m7(){const e=await Za("/api/runs");return{locked:(e==null?void 0:e.locked)??!0,count:typeof(e==null?void 0:e.count)=="number"?e.count:0,runs:Array.isArray(e==null?void 0:e.runs)?e.runs:[]}}async function p7(){const e=await Za("/api/capabilities");return{can_steer:(e==null?void 0:e.can_steer)===!0}}async function g7(e,t){const{ok:i,data:a}=await Uo("/api/agents/steer",{agent_id:e,message:t});return i&&a.ok===!0?{ok:!0}:{ok:!1,error:String(a.error??"unavailable")}}async function b7(){const e=await Za("/api/auth/status");return{verified:(e==null?void 0:e.verified)===!0,email:(e==null?void 0:e.email)??null}}async function aS(e){const{ok:t,data:i}=await Uo("/api/auth/otp/start",{email:e});return t&&i.ok===!0?{ok:!0}:{ok:!1,error:String(i.error??"unavailable")}}async function sS(e,t){const{ok:i,data:a}=await Uo("/api/auth/otp/verify",{email:e,code:t});return i&&a.verified===!0?{verified:!0,email:String(a.email??e)}:{verified:!1,error:String(a.error??"invalid_code")}}async function x7(){await Uo("/api/auth/forget",{})}async function y7(e){const{ok:t,data:i}=await Uo("/api/report/send",e?{run:e}:{});return t&&i.ok===!0?{ok:!0,password:String(i.password??""),filename:String(i.filename??"strix-report.pdf")}:{ok:!1,error:String(i.error??"unavailable")}}const Ls="__root__";function lS({agents:e,fixedAgentId:t,className:i}){const a=ee.useRef(null),[s,o]=ee.useState(!1),[c,d]=ee.useState(!1),[f,h]=ee.useState(""),[m,p]=ee.useState(!1),[y,x]=ee.useState(null),_=t!=null,N=ee.useMemo(()=>e.find(z=>!z.parent_id)??e[0]??null,[e]),S=ee.useMemo(()=>e.filter(z=>z.parent_id&&z.status==="running"),[e]),[w,k]=ee.useState(Ls),[E,M]=ee.useState(!1);ee.useEffect(()=>{w!==Ls&&!S.some(z=>z.id===w)&&k(Ls)},[w,S]);const{targetId:U,targetName:R}=ee.useMemo(()=>{if(_){const V=e.find(G=>G.id===t)??null;return{targetId:t??null,targetName:(V==null?void 0:V.name)??"this agent"}}if(w===Ls)return{targetId:(N==null?void 0:N.id)??null,targetName:"Root agent"};const z=e.find(V=>V.id===w)??null;return{targetId:(z==null?void 0:z.id)??(N==null?void 0:N.id)??null,targetName:(z==null?void 0:z.name)??"Root agent"}},[e,t,_,N,w]),B=f.trim().length===0;ee.useLayoutEffect(()=>{const z=a.current;z&&(z.style.height="auto",z.style.height=`${z.scrollHeight}px`)},[f]);const I=ee.useCallback(()=>{o(!0),requestAnimationFrame(()=>{var z;return(z=a.current)==null?void 0:z.focus()})},[]),Z=ee.useCallback(()=>{o(!1),d(!1),M(!1)},[]),j=ee.useCallback(async()=>{if(m)return;const z=f.trim();if(!z||!U)return;p(!0),x(null);const V=R,G=await g7(U,z);p(!1),G.ok?(h(""),x(`Sent to ${V}`),Ti("agent_steered")):G.error==="not_delivered"?x("Could not reach that agent (it may have finished)."):x("Could not send that message. Try again.")},[m,f,U,R]);return s?g.jsxs("div",{className:la("mt-4 rounded-2xl border border-white/[0.08] bg-[#050505] overflow-hidden transition-colors duration-300",c?"border-white/[0.18]":"hover:border-white/[0.12]",i),children:[g.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-white/[0.06] px-5 py-3",children:[g.jsxs("div",{className:"min-w-0",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(J0,{className:"h-4 w-4 text-[#666]"}),g.jsx("p",{className:"text-sm font-medium text-white",children:"Live prompt"})]}),g.jsx("p",{className:"mt-0.5 text-xs text-[#777]",children:"Connected"})]}),g.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[_?g.jsxs("div",{className:"rounded-full border border-white/[0.08] bg-white/[0.03] px-3 py-1 text-xs text-[#aaa]",children:["Target: ",g.jsx("span",{className:"text-white",children:R})]}):g.jsxs("div",{className:"flex items-center gap-1.5",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"Target:"}),g.jsxs("div",{className:"relative",children:[g.jsxs("button",{type:"button",onClick:()=>M(z=>!z),onBlur:()=>requestAnimationFrame(()=>M(!1)),className:"inline-flex h-7 items-center gap-1 rounded-full border border-white/[0.08] bg-white/[0.03] px-3 text-xs text-white transition-colors hover:border-white/[0.16] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/20","aria-haspopup":"listbox","aria-expanded":E,children:[g.jsx("span",{className:"max-w-[140px] truncate",children:R}),g.jsx(fo,{className:"h-3.5 w-3.5 text-[#999]"})]}),E&&g.jsxs("div",{className:"absolute right-0 z-10 mt-1 min-w-[160px] overflow-hidden rounded-lg border border-[#333] bg-[#0a0a0a] py-1 shadow-xl",role:"listbox",children:[g.jsx(u_,{label:"Root agent",active:w===Ls,onSelect:()=>{k(Ls),M(!1)}}),S.map(z=>g.jsx(u_,{label:z.name,active:w===z.id,onSelect:()=>{k(z.id),M(!1)}},z.id))]})]})]}),g.jsx("button",{type:"button",onClick:Z,className:"inline-flex h-7 w-7 items-center justify-center rounded-full text-[#777] transition-colors hover:bg-white/[0.06] hover:text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/20","aria-label":"Collapse live prompt composer",children:g.jsx(fo,{className:"h-4 w-4"})})]})]}),g.jsx("div",{className:"px-5 pt-4 pb-3",children:g.jsx("textarea",{ref:a,rows:1,value:f,onChange:z=>h(z.target.value),onFocus:()=>d(!0),onBlur:()=>d(!1),onKeyDown:z=>{z.key==="Enter"&&!z.shiftKey&&(z.preventDefault(),j())},placeholder:"Send a live prompt to the running scan…",maxLength:4e3,disabled:m,className:"block w-full resize-none border-0 bg-transparent p-0 text-[15px] leading-6 text-white placeholder:text-[#444] focus:outline-none disabled:opacity-60 max-h-[160px] overflow-y-auto"})}),g.jsxs("div",{className:"flex items-center justify-between gap-3 px-4 pb-4",children:[g.jsx("div",{className:"text-xs text-[#666]",children:y??"Press Enter to send."}),g.jsxs("button",{type:"button",onClick:z=>{z.stopPropagation(),j()},disabled:m||B,className:la("inline-flex h-10 min-w-[112px] items-center justify-center gap-2 rounded-full px-4 text-sm font-medium transition-colors",m||B?"bg-white/[0.08] text-[#666]":"bg-white text-black hover:bg-neutral-200"),children:[m?g.jsx(Hs,{className:"h-4 w-4 animate-spin"}):g.jsx(A2,{className:"h-4 w-4",strokeWidth:2.5}),g.jsx("span",{children:"Send prompt"})]})]})]}):g.jsxs("button",{type:"button",onClick:I,className:la("mt-4 flex w-full items-center justify-between gap-3 rounded-2xl border border-white/[0.08] bg-[#050505] px-5 py-3 text-left transition-colors duration-300 hover:border-white/[0.12] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/20",i),"aria-expanded":!1,"aria-label":"Expand live prompt composer",children:[g.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[g.jsx(J0,{className:"h-4 w-4 shrink-0 text-[#666]"}),g.jsx("span",{className:"truncate text-sm font-medium text-white",children:"Guide the agent"})]}),g.jsx(N_,{className:"h-4 w-4 shrink-0 text-[#777]"})]})}function u_({label:e,active:t,onSelect:i}){return g.jsx("button",{type:"button",role:"option","aria-selected":t,onMouseDown:a=>{a.preventDefault(),i()},className:la("block w-full truncate px-3 py-1.5 text-left text-xs transition-colors hover:bg-white/[0.06]",t?"text-white":"text-[#aaa]"),children:e})}const v7={completed:"bg-emerald-400",running:"bg-blue-400",waiting:"bg-yellow-400",stopped:"bg-[#888]",crashed:"bg-red-400",failed:"bg-red-400"},_7=80;function w7({agent:e,events:t,steerable:i,onClose:a}){const s=ee.useRef(null),o=ee.useRef(!1),c=ee.useCallback(()=>{const d=s.current;d&&(o.current=d.scrollHeight-d.scrollTop-d.clientHeight<_7)},[]);return ee.useEffect(()=>{const d=s.current;!d||!o.current||requestAnimationFrame(()=>{d.scrollTo({top:d.scrollHeight,behavior:"smooth"})})},[t]),ee.useEffect(()=>{const d=h=>{h.key==="Escape"&&a()};document.addEventListener("keydown",d);const f=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",d),document.body.style.overflow=f}},[a]),g.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4 sm:p-8",onClick:a,role:"dialog","aria-modal":"true","aria-label":`Agent ${e.name}`,children:g.jsxs("div",{className:"relative flex h-[80vh] w-full max-w-5xl flex-col rounded-xl border border-[#222] bg-[#0a0a0a] shadow-2xl",onClick:d=>d.stopPropagation(),children:[g.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-[#222] px-5 py-3.5",children:[g.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[g.jsx("span",{className:`h-2 w-2 flex-shrink-0 rounded-full ${v7[e.status]??"bg-[#888]"}`}),g.jsx("span",{className:"truncate text-sm font-semibold text-white",children:e.name}),g.jsx("span",{className:"flex-shrink-0 font-mono text-xs text-[#555]",children:e.id})]}),g.jsx("button",{type:"button",onClick:a,"aria-label":"Close",className:"flex-shrink-0 rounded-md p-1 text-[#888] transition-colors hover:bg-[#1a1a1a] hover:text-white",children:g.jsx(L_,{className:"h-4 w-4"})})]}),g.jsx("div",{ref:s,onScroll:c,className:"flex-1 overflow-y-auto p-5",children:g.jsx(i7,{agent:e,events:t,showHeader:!1})}),i&&g.jsx("div",{className:"border-t border-[#222] px-5 py-3",children:g.jsx(lS,{agents:[e],fixedAgentId:e.id,className:"mt-0"})})]})})}const E7=[{slug:"pr_reviews",title:"PR Reviews",icon:mp,tier:"Pro",navDesc:"Pentest every pull request",headline:"Pentest every pull request",description:"Strix reviews every pull request your team opens and catches exploitable changes before they merge."},{slug:"repositories",title:"Repositories",icon:kT,tier:"Pro",navDesc:"Connect your team's repos",headline:"Connect your team's repositories",description:"Link your org's repositories so Strix can scan them continuously and track findings over time."},{slug:"domains",title:"Domains",icon:pp,tier:"Pro",navDesc:"Cover the domains you own",headline:"Cover every domain you own",description:"Add the domains your team owns and let Strix watch them for newly exposed paths and drift."},{slug:"integrations",title:"Integrations",icon:C_,tier:"Pro",navDesc:"Sync to Jira, Linear, Slack",headline:"Sync findings to your tools",description:"Two-way sync findings to Jira, Linear, and Slack so fixes happen where your team already works."},{slug:"members",title:"Members",icon:D_,tier:"Pro",navDesc:"Invite your team, set roles",headline:"Bring your whole team",description:"Invite your team, set roles, and share findings and run history across your org."},{slug:"pentests",title:"Pentests",icon:O_,tier:"Pro",navDesc:"Deeper scans on managed infra",headline:"Launch deeper pentests",description:"Run deeper, longer pentests on managed infrastructure whenever you need them."},{slug:"dashboard",title:"Dashboard",icon:AT,tier:"Pro",navDesc:"Everything in one place",headline:"See everything in one place",description:"Track every project, run, and finding across your org from a single dashboard."},{slug:"platform_issues",title:"Issues",icon:pA,tier:"Pro",navDesc:"Triage across your org",headline:"Triage findings across your org",description:"Manage and triage findings across every project and repository in one queue."},{slug:"chat",title:"Chat",icon:UT,tier:"Pro",navDesc:"Ask about any finding",headline:"Ask Strix anything",description:"Ask the agents about any finding, run, or part of your app in natural language."},{slug:"networks",title:"Networks",icon:$T,tier:"Enterprise",navDesc:"Reach internal, VPN-only targets",headline:"Scan internal networks",description:"Connect private networks to scan internal applications, VPN-only services, and RFC1918 targets."},{slug:"knowledge",title:"Knowledge",icon:aT,tier:"Pro",navDesc:"Give agents context",headline:"Give agents context",description:"Teach Strix about your systems and business logic so every run gets smarter."}],dp=Object.fromEntries(E7.map(e=>[e.slug,e])),N7=["pr_reviews","repositories","domains","integrations","members","pentests","networks","chat","dashboard","platform_issues","knowledge"],d_="strix_viewer_sidebar_collapsed";function S7({view:e,onSelectView:t,activeFeature:i,onSelectFeature:a,issuesCount:s,agentCount:o,runCount:c,finished:d,verified:f,email:h,onOpenEmail:m,onOpenHistory:p,onForget:y}){const[x,_]=ee.useState(!1);ee.useEffect(()=>{try{_(localStorage.getItem(d_)==="1")}catch{}},[]);const N=()=>{_(S=>{const w=!S;try{localStorage.setItem(d_,w?"1":"0")}catch{}return w})};return g.jsx("aside",{className:`hidden flex-shrink-0 border-r border-[#222] lg:block ${x?"w-14":"w-72"}`,children:g.jsxs("div",{className:"sticky top-0 flex h-screen flex-col overflow-y-auto px-3 py-4",children:[g.jsxs("div",{className:"px-1.5",children:[g.jsxs("div",{className:`flex items-center ${x?"flex-col gap-2":"justify-between"}`,children:[g.jsxs("a",{href:ca("https://app.strix.ai","logo"),target:"_blank",rel:"noopener noreferrer",onClick:()=>Ci("logo","sidebar"),className:"flex items-center gap-1.5 opacity-90 transition-opacity hover:opacity-100",title:"Open Strix Cloud",children:[g.jsx("img",{src:"./logo.png",alt:"Strix",className:"h-8 w-10 object-cover"}),!x&&g.jsx("span",{className:"text-base font-medium tracking-tight text-white",children:"Strix"})]}),g.jsx("button",{onClick:N,title:x?"Expand sidebar":"Collapse sidebar","aria-label":x?"Expand sidebar":"Collapse sidebar",className:"flex-shrink-0 cursor-pointer rounded-md p-1.5 text-[#666] transition-colors hover:bg-[rgba(255,255,255,0.06)] hover:text-white",children:x?g.jsx(GT,{className:"h-4 w-4","aria-hidden":"true"}):g.jsx(PT,{className:"h-4 w-4","aria-hidden":"true"})})]}),g.jsxs("a",{href:ca(Ao,"sidebar_start_free"),target:"_blank",rel:"noopener noreferrer",onClick:()=>Ci("sidebar_start_free","sidebar"),title:"Explore full platform",className:`mt-3 flex w-full cursor-pointer items-center justify-center gap-1.5 rounded-lg bg-white font-semibold text-black transition-opacity hover:opacity-90 ${x?"px-0 py-2":"px-3 py-2 text-sm"}`,children:[!x&&"Explore full platform",g.jsx(Ps,{className:"h-3.5 w-3.5","aria-hidden":"true"})]}),f&&h&&(x?g.jsx("div",{className:"mt-2.5 flex items-center justify-center rounded-lg py-2",style:{border:"1px solid #222",background:"rgba(255,255,255,0.02)"},title:`Linked email: ${h}`,children:g.jsx(vu,{className:"h-3.5 w-3.5 flex-shrink-0 text-emerald-400","aria-hidden":"true"})}):g.jsxs("div",{className:"mt-2.5 flex items-center gap-2 rounded-lg px-2.5 py-2",style:{border:"1px solid #222",background:"rgba(255,255,255,0.02)"},children:[g.jsx(vu,{className:"h-3.5 w-3.5 flex-shrink-0 text-emerald-400","aria-hidden":"true"}),g.jsxs("div",{className:"min-w-0 flex-1",children:[g.jsx("p",{className:"truncate text-[11px] text-[#666]",children:"Linked email"}),g.jsx("p",{className:"truncate text-xs text-[#aaa]",title:h,children:h})]}),g.jsx("button",{onClick:y,title:"Forget this email on this machine",className:"flex-shrink-0 cursor-pointer text-[#666] transition-colors hover:text-white","aria-label":"Forget",children:g.jsx(LT,{className:"h-3.5 w-3.5"})})]}))]}),g.jsxs("div",{className:"mt-6 space-y-0.5",children:[g.jsx(to,{icon:T_,label:"Overview",desc:"This run's executive report",active:e==="overview",onClick:()=>t("overview"),collapsed:x}),g.jsx(to,{icon:L2,label:"Issues",desc:"Findings from this run",count:s>0?s:void 0,active:e==="issues",onClick:()=>t("issues"),collapsed:x}),o>0&&g.jsx(to,{icon:j_,label:"Agents",desc:"What each agent did",count:o,active:e==="agents",onClick:()=>t("agents"),collapsed:x}),g.jsx(to,{icon:Gs,label:"Past runs",desc:"Every run on this machine",count:c>0?c:void 0,active:e==="history",onClick:p,collapsed:x}),d&&g.jsx(to,{icon:gp,label:"Email report",desc:"Get an encrypted PDF by email",active:e==="email",onClick:m,collapsed:x}),N7.map(S=>{const w=dp[S];return w?g.jsx(CA,{feature:w,active:e==="feature"&&i===S,onClick:()=>a(S),collapsed:x},S):null})]})]})})}function to({icon:e,label:t,desc:i,count:a,active:s,onClick:o,collapsed:c=!1}){return c?g.jsx("button",{onClick:o,title:a!=null?`${t} (${a})`:t,className:`flex w-full cursor-pointer items-center justify-center rounded-md px-2.5 py-2 transition-colors ${s?"text-white":"text-[#888] hover:bg-[rgba(255,255,255,0.06)] hover:text-white"}`,style:s?{background:"rgba(255,255,255,0.12)"}:void 0,children:g.jsx(e,{className:"h-4 w-4 flex-shrink-0","aria-hidden":"true"})}):g.jsxs("button",{onClick:o,className:`flex w-full cursor-pointer items-start gap-2.5 rounded-md px-2.5 py-1.5 text-left transition-colors ${s?"text-white":"text-[#888] hover:bg-[rgba(255,255,255,0.06)] hover:text-white"}`,style:s?{background:"rgba(255,255,255,0.12)"}:void 0,children:[g.jsx(e,{className:"mt-0.5 h-4 w-4 flex-shrink-0","aria-hidden":"true"}),g.jsxs("span",{className:"min-w-0 flex-1",children:[g.jsxs("span",{className:"flex items-center gap-1.5",children:[g.jsx("span",{className:"flex-1 truncate text-sm",children:t}),a!=null&&g.jsx("span",{className:"text-xs text-[#666] tabular-nums",children:a})]}),g.jsx("span",{className:"mt-0.5 block text-[11px] leading-snug text-[#666]",children:i})]})]})}const f_={work_email_required:"Please use your work email, not a personal one.",rate_limited:"Too many requests. Wait a minute and try again.",invalid_email:"That email does not look right. Check it and try again.",unavailable:"The email service is unavailable right now. Try again shortly."},k7=new Set(["gmail.com","googlemail.com","yahoo.com","ymail.com","outlook.com","hotmail.com","live.com","icloud.com","me.com","aol.com","proton.me","protonmail.com","gmx.com","mail.com"]);function T7({onVerified:e}){const[t,i]=ee.useState("email"),[a,s]=ee.useState(""),[o,c]=ee.useState(""),[d,f]=ee.useState(!1),[h,m]=ee.useState(null),[p,y]=ee.useState(null),x=async()=>{const N=a.trim();if(!N){m("Enter your email to continue.");return}const S=N.slice(N.lastIndexOf("@")+1).toLowerCase();if(k7.has(S)){Ti("work_email_required"),m(f_.work_email_required);return}f(!0),m(null);const w=await aS(N);f(!1),w.ok?(Ti("email_submitted",{purpose:"verify"}),y(`We sent a 6-digit code to ${N}.`),i("code")):(w.error==="work_email_required"&&Ti("work_email_required"),m(f_[w.error]??"Could not send a code. Try again."))},_=async()=>{const N=o.trim();if(N.length<4){m("Enter the 6-digit code from your email.");return}f(!0),m(null);const S=await sS(a.trim(),N);if(f(!1),!S.verified){m("That code did not match. Check it and try again.");return}Ti("email_verified",{purpose:"verify"}),e()};return g.jsxs("div",{className:"mx-auto mt-5 max-w-sm text-left",children:[h&&g.jsxs("div",{className:"mb-3 flex items-start gap-2 rounded-lg border border-red-500/30 bg-red-500/5 px-3 py-2",children:[g.jsx(hp,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-red-400","aria-hidden":"true"}),g.jsx("p",{className:"text-xs text-red-300",children:h})]}),p&&!h&&g.jsx("p",{className:"mb-3 text-xs text-[#888]",children:p}),t==="email"?g.jsxs("form",{className:"space-y-3",onSubmit:N=>{N.preventDefault(),x()},children:[g.jsxs("label",{className:"block",children:[g.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"Your work email"}),g.jsx("input",{type:"email",autoFocus:!0,value:a,onChange:N=>s(N.target.value),placeholder:"[email protected]",className:"w-full rounded-lg bg-black px-3 py-2.5 text-sm text-white outline-none transition-colors focus:border-[#444]",style:{border:"1px solid #2a2a2a"}}),g.jsx("span",{className:"mt-1.5 block text-[11px] text-[#666]",children:"Use your work email."})]}),g.jsxs("button",{type:"submit",disabled:d,className:"flex w-full cursor-pointer items-center justify-center gap-2 rounded-lg bg-white px-4 py-2.5 text-sm font-semibold text-black transition-opacity hover:opacity-90 disabled:opacity-60",children:[d&&g.jsx(Hs,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),"Send me a code"]})]}):g.jsxs("form",{className:"space-y-3",onSubmit:N=>{N.preventDefault(),_()},children:[g.jsxs("label",{className:"block",children:[g.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"6-digit code"}),g.jsx("input",{inputMode:"numeric",autoFocus:!0,value:o,onChange:N=>c(N.target.value.replace(/\D/g,"").slice(0,6)),placeholder:"123456",className:"w-full rounded-lg bg-black px-3 py-2.5 text-center text-lg font-mono tracking-[0.4em] text-white outline-none transition-colors focus:border-[#444]",style:{border:"1px solid #2a2a2a"}})]}),g.jsxs("button",{type:"submit",disabled:d,className:"flex w-full cursor-pointer items-center justify-center gap-2 rounded-lg bg-white px-4 py-2.5 text-sm font-semibold text-black transition-opacity hover:opacity-90 disabled:opacity-60",children:[d&&g.jsx(Hs,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),"Verify"]}),g.jsx("button",{type:"button",onClick:()=>{i("email"),m(null),y(null)},className:"w-full cursor-pointer text-center text-xs text-[#666] transition-colors hover:text-[#aaa]",children:"Use a different email"})]})]})}const A7=[{key:"critical",dot:"bg-red-500",text:"text-red-500"},{key:"high",dot:"bg-orange-500",text:"text-orange-500"},{key:"medium",dot:"bg-yellow-500",text:"text-yellow-500"},{key:"low",dot:"bg-blue-500",text:"text-blue-500"}];function C7({counts:e}){const t=A7.filter(i=>e[i.key]>0);return t.length===0?g.jsx("span",{className:"text-xs text-[#555]",children:"No findings"}):g.jsx("div",{className:"flex items-center gap-3",children:t.map(i=>g.jsxs("div",{className:"flex items-center gap-1.5",children:[g.jsx("span",{className:`h-2 w-2 rounded-full ${i.dot}`,"aria-hidden":"true"}),g.jsx("span",{className:`text-xs tabular-nums ${i.text}`,children:e[i.key]})]},i.key))})}function M7(e){if(!e)return null;const t=e.trim().replace(" UTC","Z").replace(" ","T"),i=new Date(t);return Number.isNaN(i.getTime())?null:i.toLocaleString(void 0,{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"})}function h_(e){if(!e)return null;const t=e.trim().replace(" UTC","Z").replace(" ","T"),i=new Date(t);if(Number.isNaN(i.getTime()))return null;const a=Date.now()-i.getTime(),s=Math.floor(a/6e4);if(s<1)return"just now";if(s<60)return`${s}m ago`;const o=Math.floor(s/60);if(o<24)return`${o}h ago`;const c=Math.floor(o/24);return c<7?`${c}d ago`:M7(e)}function O7({runs:e,activeRun:t,onSelectRun:i,onVerified:a}){const s=(e==null?void 0:e.count)??0,[o,c]=ee.useState(!1);return!e||e.locked?g.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-8 text-center",children:[g.jsx("div",{className:"mx-auto mb-4 flex h-11 w-11 items-center justify-center rounded-xl",style:{border:"1px solid #2a2a2a",background:"rgba(255,255,255,0.04)"},children:g.jsx(Gs,{className:"h-5 w-5 text-[#888]","aria-hidden":"true"})}),g.jsx("h2",{className:"text-base font-semibold text-white",children:"Browse every run on this machine"}),g.jsxs("p",{className:"mx-auto mt-1.5 max-w-md text-sm text-[#888]",children:["You have ",s," past ",s===1?"run":"runs"," on this machine."]}),o?g.jsxs(g.Fragment,{children:[g.jsx("p",{className:"mx-auto mt-3 max-w-sm text-xs text-[#666]",children:"Verify your email with a one-time code to unlock the full history."}),g.jsx(T7,{onVerified:a})]}):g.jsx("button",{onClick:()=>{Ci("history_unlock","past_runs"),c(!0)},className:"mt-4 cursor-pointer rounded-lg bg-white px-4 py-2 text-sm font-semibold text-black transition-opacity hover:opacity-90",children:"View runs"}),g.jsxs("p",{className:"mt-4 flex items-center justify-center gap-1.5 text-xs text-[#555]",children:[g.jsx(R_,{className:"h-3.5 w-3.5","aria-hidden":"true"}),"Or open one from the CLI with"," ",g.jsx("code",{className:"font-mono text-[#888]",children:"strix view <name>"})]})]}):e.runs.length===0?g.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-8 text-center text-sm text-[#888]",children:"No past runs found on this machine yet."}):g.jsx("div",{className:"space-y-2",children:e.runs.map(d=>{const f=d.name===t,h=h_(d.start_time)??h_(d.end_time),m=go(d.target,d.name);return g.jsxs("button",{onClick:()=>i(d.name),className:`group flex w-full cursor-pointer items-center gap-4 rounded-lg border px-4 py-3 text-left transition-colors ${f?"border-[#444] bg-[rgba(255,255,255,0.04)]":"border-[#222] bg-[rgba(255,255,255,0.02)] hover:border-[#444]"}`,children:[g.jsxs("div",{className:"min-w-0 flex-1",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"truncate text-sm font-medium text-white",children:m}),f&&g.jsx("span",{className:"rounded-full px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-emerald-400",style:{border:"1px solid rgba(16,185,129,0.3)"},children:"Active"})]}),g.jsxs("div",{className:"mt-0.5 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-xs text-[#666]",children:[d.scan_mode&&g.jsx("span",{className:"capitalize",children:d.scan_mode}),d.scan_mode&&(h||d.status)&&g.jsx("span",{className:"text-[#333]",children:"·"}),h&&g.jsx("span",{children:h}),h&&d.status&&g.jsx("span",{className:"text-[#333]",children:"·"}),d.status&&g.jsx("span",{className:"capitalize",children:d.status})]})]}),g.jsx(C7,{counts:d.severity_counts}),g.jsx(q2,{className:"h-4 w-4 flex-shrink-0 text-[#555] transition-colors group-hover:text-[#aaa]","aria-hidden":"true"})]},d.name)})})}const m_={work_email_required:"Please use your work email, not a personal one.",rate_limited:"Too many requests. Wait a minute and try again.",invalid_email:"That email does not look right. Check it and try again.",unavailable:"The email service is unavailable right now. Try again shortly."},R7={forbidden:"This email was unsubscribed from Strix, so we cannot send to it.",too_large:"This report is too large to email. Try a smaller run.",unavailable:"The email service is unavailable right now. Try again shortly."},D7=new Set(["gmail.com","googlemail.com","yahoo.com","ymail.com","outlook.com","hotmail.com","live.com","icloud.com","me.com","aol.com","proton.me","protonmail.com","gmx.com","mail.com"]);function j7({activeRun:e,auth:t,purpose:i,skipDisclosure:a=!1,onAuthChanged:s,onExit:o}){const c=(t==null?void 0:t.verified)===!0,d=i==="verify",[f,h]=ee.useState(()=>d?"email":a?c?"sending":"email":"disclosure"),[m,p]=ee.useState((t==null?void 0:t.email)??""),[y,x]=ee.useState(""),[_,N]=ee.useState(!1),[S,w]=ee.useState(null),[k,E]=ee.useState(null),[M,U]=ee.useState(""),[R,B]=ee.useState(""),[I,Z]=ee.useState(!1),[j,z]=ee.useState(""),V=ee.useRef(!1),G=async()=>{h("sending"),w(null);const X=await y7(e);if(X.ok){Ti("report_sent"),U(X.password),B(X.filename),h("password");return}if(X.error==="reverify"||X.error==="unverified"){E("Your verification expired. Enter your email to verify again."),h("email");return}w(R7[X.error]??"Could not send the report. Try again."),h("disclosure")},A=()=>{w(null),E(null),c?G():h("email")};ee.useEffect(()=>{!d&&a&&c&&!V.current&&(V.current=!0,G())},[]);const q=async()=>{const X=m.trim();if(!X){w("Enter your email to continue.");return}const C=X.slice(X.lastIndexOf("@")+1).toLowerCase();if(D7.has(C)){Ti("work_email_required"),w(m_.work_email_required);return}N(!0),w(null);const L=await aS(X);N(!1),L.ok?(Ti("email_submitted",{purpose:i}),E(`We sent a 6-digit code to ${X}.`),h("code")):(L.error==="work_email_required"&&Ti("work_email_required"),w(m_[L.error]??"Could not send a code. Try again."))},O=async()=>{const X=y.trim();if(X.length<4){w("Enter the 6-digit code from your email.");return}N(!0),w(null);const C=await sS(m.trim(),X);if(N(!1),!C.verified){w("That code did not match. Check it and try again.");return}Ti("email_verified",{purpose:i}),z(C.email),s(),d?o("history"):G()},H=async()=>{try{await navigator.clipboard.writeText(M),Z(!0),setTimeout(()=>Z(!1),1500)}catch{}},K=j||(t==null?void 0:t.email)||m.trim();return g.jsxs("div",{className:"mx-auto max-w-md space-y-4",children:[g.jsxs("button",{onClick:()=>o(d?"history":"overview"),className:"cursor-pointer inline-flex items-center gap-1.5 text-sm text-[#888] transition-colors hover:text-white",children:[g.jsx(v_,{className:"h-4 w-4"}),d?"Back to past runs":"Back to results"]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(gp,{className:"h-5 w-5 text-[#888]","aria-hidden":"true"}),g.jsx("h1",{className:"text-2xl font-semibold text-white",children:d?"Verify your email":"Email report"})]}),g.jsxs("div",{className:"w-full rounded-2xl bg-[rgba(255,255,255,0.02)] p-6",style:{border:"1px solid #2a2a2a"},children:[g.jsx("p",{className:"mb-4 text-xs text-[#666]",children:d?"We send a one-time code to confirm it is you.":"Verified by a one-time code sent to your email"}),S&&g.jsxs("div",{className:"mb-4 flex items-start gap-2 rounded-lg border border-red-500/30 bg-red-500/5 px-3 py-2",children:[g.jsx(hp,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-red-400","aria-hidden":"true"}),g.jsx("p",{className:"text-xs text-red-300",children:S})]}),k&&!S&&f!=="password"&&g.jsx("p",{className:"mb-4 text-xs text-[#888]",children:k}),f==="disclosure"&&g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"space-y-2.5 rounded-lg p-3.5",style:{border:"1px solid #222",background:"rgba(255,255,255,0.02)"},children:[g.jsxs("div",{className:"flex items-start gap-2.5",children:[g.jsx(vu,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-emerald-400","aria-hidden":"true"}),g.jsxs("p",{className:"text-xs leading-relaxed text-[#aaa]",children:["Viewing stays local and nothing is uploaded. Emailing is an explicit opt-in: we send an ",g.jsx("span",{className:"text-white",children:"encrypted PDF"}),"."]})]}),g.jsxs("div",{className:"flex items-start gap-2.5",children:[g.jsx(DT,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-[#888]","aria-hidden":"true"}),g.jsx("p",{className:"text-xs leading-relaxed text-[#aaa]",children:"The report is encrypted with a password that only you hold. Strix cannot read it and never stores it. We collect only your email so we can send it."})]})]}),g.jsx("button",{onClick:A,className:"w-full cursor-pointer rounded-lg bg-white px-4 py-2.5 text-sm font-semibold text-black transition-opacity hover:opacity-90",children:c?"Email me the encrypted PDF":"Continue with your email"}),c&&(t==null?void 0:t.email)&&g.jsxs("p",{className:"text-center text-xs text-[#666]",children:["Sending to ",t.email]})]}),f==="email"&&g.jsxs("form",{className:"space-y-4",onSubmit:X=>{X.preventDefault(),q()},children:[g.jsxs("label",{className:"block",children:[g.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"Your work email"}),g.jsx("input",{type:"email",autoFocus:!0,value:m,onChange:X=>p(X.target.value),placeholder:"[email protected]",className:"w-full rounded-lg bg-black px-3 py-2.5 text-sm text-white outline-none transition-colors focus:border-[#444]",style:{border:"1px solid #2a2a2a"}}),g.jsx("span",{className:"mt-1.5 block text-[11px] text-[#666]",children:"Use your work email."})]}),g.jsxs("button",{type:"submit",disabled:_,className:"flex w-full cursor-pointer items-center justify-center gap-2 rounded-lg bg-white px-4 py-2.5 text-sm font-semibold text-black transition-opacity hover:opacity-90 disabled:opacity-60",children:[_&&g.jsx(Hs,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),"Send me a code"]})]}),f==="code"&&g.jsxs("form",{className:"space-y-4",onSubmit:X=>{X.preventDefault(),O()},children:[g.jsxs("label",{className:"block",children:[g.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"6-digit code"}),g.jsx("input",{inputMode:"numeric",autoFocus:!0,value:y,onChange:X=>x(X.target.value.replace(/\D/g,"").slice(0,6)),placeholder:"123456",className:"w-full rounded-lg bg-black px-3 py-2.5 text-center text-lg font-mono tracking-[0.4em] text-white outline-none transition-colors focus:border-[#444]",style:{border:"1px solid #2a2a2a"}})]}),g.jsxs("button",{type:"submit",disabled:_,className:"flex w-full cursor-pointer items-center justify-center gap-2 rounded-lg bg-white px-4 py-2.5 text-sm font-semibold text-black transition-opacity hover:opacity-90 disabled:opacity-60",children:[_&&g.jsx(Hs,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),d?"Verify":"Verify and send"]}),g.jsx("button",{type:"button",onClick:()=>{h("email"),w(null),E(null)},className:"w-full cursor-pointer text-center text-xs text-[#666] transition-colors hover:text-[#aaa]",children:"Use a different email"})]}),f==="sending"&&g.jsxs("div",{className:"flex flex-col items-center gap-3 py-8",children:[g.jsx(Hs,{className:"h-6 w-6 animate-spin text-white","aria-hidden":"true"}),g.jsx("p",{className:"text-sm text-[#aaa]",children:"Generating and encrypting locally..."})]}),f==="password"&&g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"flex items-start gap-2.5 rounded-lg border border-emerald-500/30 bg-emerald-500/5 px-3 py-2.5",children:[g.jsx(Fs,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-emerald-400","aria-hidden":"true"}),g.jsxs("p",{className:"text-xs text-emerald-200",children:["Sent to ",K,". Open the attached PDF with this password."]})]}),g.jsxs("div",{children:[g.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"Your one-time password"}),g.jsxs("div",{className:"flex items-center gap-2 rounded-lg bg-black p-3",style:{border:"1px solid #2a2a2a"},children:[g.jsx("code",{className:"flex-1 break-all font-mono text-base text-white",children:M}),g.jsxs("button",{onClick:H,className:"flex cursor-pointer items-center gap-1 rounded-md px-2 py-1 text-xs text-[#aaa] transition-colors hover:bg-[rgba(255,255,255,0.06)] hover:text-white",style:{border:"1px solid #2a2a2a"},children:[I?g.jsx(Fs,{className:"h-3.5 w-3.5"}):g.jsx(ho,{className:"h-3.5 w-3.5"}),I?"Copied":"Copy"]})]}),g.jsxs("p",{className:"mt-2 text-xs text-[#666]",children:["Save this now. Strix never stores it, so we cannot show it again. File:"," ",g.jsx("span",{className:"font-mono text-[#888]",children:R})]})]}),g.jsx("button",{onClick:()=>o("overview"),className:"w-full cursor-pointer rounded-lg px-4 py-2.5 text-sm font-semibold text-white transition-colors hover:bg-[rgba(255,255,255,0.06)]",style:{border:"1px solid #2a2a2a"},children:"Done"})]})]})]})}function ja(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function no(e){return Array.isArray(e)?e:[]}function Pi(e){return typeof e=="string"&&e.trim()?e:null}function La(e){return typeof e=="number"&&Number.isFinite(e)?e:null}function L7(e){return e.replace(/_/g," ")}function p_(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}function z7(e){if(e==null||e<0)return"n/a";const t=Math.floor(e/3600),i=Math.floor(e%3600/60),a=e%60;return t?`${t}h ${i}m ${a}s`:i?`${i}m ${a}s`:`${a}s`}function Dn({label:e,children:t}){return g.jsxs("div",{className:"grid grid-cols-[7rem_1fr] gap-3 items-baseline",children:[g.jsx("dt",{className:"text-[11px] uppercase tracking-wide text-[#666]",children:e}),g.jsx("dd",{className:"min-w-0 break-words text-sm text-[#ddd]",children:t})]})}function I7({raw:e,durationSeconds:t}){const[i,a]=ee.useState(!0),s=no(e.targets_info).map(V=>{const G=ja(V),A=Pi(G.original)??Pi(ja(G.details).target_url)??"unknown target",q=Pi(G.type);return{display:A,type:q?L7(q):null}}),o=Pi(e.instruction),c=p_(Pi(e.scan_mode)),d=Pi(e.scope_mode),f=ja(e.diff_scope),h=f.active===!0,m=Pi(f.mode),p=Pi(e.diff_base),y=e.non_interactive===!0,x=no(e.local_sources).map(V=>String(V)).filter(Boolean),_=p_(Pi(e.status));let N=d??"auto";h&&(N+=` (diff${m?`: ${m}`:""}${p?` vs ${p}`:""})`);const S=ja(e.llm_usage),w=Object.keys(S).length>0,k=no(S.agents).map(ja),E=Array.from(new Set(k.map(V=>Pi(V.model)).filter(V=>!!V))),M=La(S.requests),U=La(S.input_tokens),R=La(ja(no(S.input_tokens_details)[0]).cached_tokens),B=La(S.output_tokens),I=La(ja(no(S.output_tokens_details)[0]).reasoning_tokens),Z=La(S.total_tokens),j=La(S.cost),z=(V,G)=>g.jsxs("span",{className:"text-[#666]",children:[" (",Os(V)," ",G,")"]});return g.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[g.jsxs("button",{type:"button",onClick:()=>a(V=>!V),"aria-expanded":i,className:"flex w-full cursor-pointer items-center gap-2 text-left",children:[g.jsx(NT,{className:"h-4 w-4 text-[#888]","aria-hidden":"true"}),g.jsx("h2",{className:"text-sm font-semibold text-white",children:"Run details"}),i?g.jsx(N_,{className:"ml-auto h-4 w-4 text-[#666]","aria-hidden":"true"}):g.jsx(fo,{className:"ml-auto h-4 w-4 text-[#666]","aria-hidden":"true"})]}),i&&g.jsxs("div",{className:"mt-4 grid grid-cols-1 gap-x-8 gap-y-6 md:grid-cols-2",children:[g.jsxs("section",{children:[g.jsx("h3",{className:"mb-3 text-[11px] font-semibold uppercase tracking-wide text-[#555]",children:"Configuration"}),g.jsxs("dl",{className:"space-y-2.5",children:[s.length>0&&g.jsx(Dn,{label:"Targets",children:g.jsx("div",{className:"space-y-1",children:s.map((V,G)=>g.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[g.jsx("span",{className:"font-mono text-[#ddd]",children:V.display}),V.type&&g.jsx("span",{className:"rounded-full border border-[#2a2a2a] px-1.5 py-0.5 text-[10px] text-[#888]",children:V.type})]},G))})}),g.jsx(Dn,{label:"Instruction",children:o?g.jsx("span",{className:"whitespace-pre-wrap",children:o}):g.jsx("span",{className:"text-[#666]",children:"None"})}),c&&g.jsx(Dn,{label:"Scan mode",children:c}),g.jsx(Dn,{label:"Scope",children:N}),g.jsx(Dn,{label:"Mode",children:y?"Non-interactive":"Interactive"}),x.length>0&&g.jsx(Dn,{label:"Local sources",children:g.jsx("div",{className:"space-y-0.5 font-mono text-[#ddd]",children:x.map((V,G)=>g.jsx("div",{children:V},G))})}),_&&g.jsx(Dn,{label:"Status",children:_})]})]}),g.jsxs("section",{children:[g.jsx("h3",{className:"mb-3 text-[11px] font-semibold uppercase tracking-wide text-[#555]",children:"Usage & cost"}),w?g.jsxs("dl",{className:"space-y-2.5 tabular-nums",children:[g.jsx(Dn,{label:"Model",children:E.length?E.join(", "):"n/a"}),g.jsx(Dn,{label:"Run time",children:z7(t)}),M!=null&&g.jsx(Dn,{label:"Requests",children:Os(M)}),U!=null&&g.jsxs(Dn,{label:"Input tokens",children:[Os(U),R!=null&&z(R,"cached")]}),B!=null&&g.jsxs(Dn,{label:"Output tokens",children:[Os(B),I!=null&&z(I,"reasoning")]}),Z!=null&&g.jsx(Dn,{label:"Total tokens",children:Os(Z)}),j!=null&&g.jsxs(Dn,{label:"Cost",children:["$",j.toFixed(2)]}),k.length>0&&g.jsx(Dn,{label:"Agents",children:Os(k.length)})]}):g.jsx("p",{className:"text-sm text-[#666]",children:"Not available yet."})]})]})]})}const g_="strix_viewer_trust_dismissed";function B7({message:e}){const[t,i]=ee.useState(()=>{try{return localStorage.getItem(g_)==="1"}catch{return!1}});if(t)return null;const a=()=>{try{localStorage.setItem(g_,"1")}catch{}i(!0)};return g.jsx("div",{className:"fixed bottom-3 left-3 z-[60] max-w-xs rounded-lg bg-[#0a0a0a] p-3 shadow-2xl",style:{border:"1px solid #2a2a2a"},role:"status",children:g.jsxs("div",{className:"flex gap-2.5",children:[g.jsx(vu,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-emerald-400","aria-hidden":"true"}),g.jsx("p",{className:"text-xs leading-relaxed text-[#aaa]",children:e}),g.jsx("button",{onClick:a,"aria-label":"Dismiss",className:"-mr-0.5 -mt-0.5 flex-shrink-0 cursor-pointer rounded p-0.5 text-[#666] transition-colors hover:text-white",children:g.jsx(L_,{className:"h-3.5 w-3.5"})})]})})}const U7=[{icon:E_,text:"Continuous coverage: scheduled pentests and attack surface monitoring"},{icon:xA,text:"One-click autofix that opens a retested pull request"},{icon:C_,text:"Two-way sync to Jira, Linear, and Slack"},{icon:D_,text:"Your whole team, with roles and shared history"}];function H7({feature:e}){const t=e.icon;return g.jsx("div",{className:"mx-auto w-full max-w-lg",children:g.jsxs("div",{className:"rounded-2xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-8 text-center",children:[g.jsx("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-xl",style:{border:"1px solid #2a2a2a",background:"rgba(255,255,255,0.04)"},children:g.jsx(t,{className:"h-5 w-5 text-[#888]","aria-hidden":"true"})}),g.jsx("div",{className:"mt-4 flex justify-center",children:g.jsx(Hu,{label:e.tier})}),g.jsx("h2",{className:"mt-3 text-2xl font-semibold text-white",children:e.headline}),g.jsx("p",{className:"mx-auto mt-2 max-w-md text-sm text-[#888]",children:e.description}),g.jsxs("div",{className:"mt-6 rounded-xl p-4 text-left",style:{border:"1px solid #222",background:"rgba(255,255,255,0.02)"},children:[g.jsx("p",{className:"mb-3 text-xs font-semibold uppercase tracking-wide text-[#666]",children:"Included in Strix Pro"}),g.jsx("ul",{className:"space-y-2.5",children:U7.map(i=>{const a=i.icon;return g.jsxs("li",{className:"flex items-start gap-2.5",children:[g.jsx(a,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-[#888]","aria-hidden":"true"}),g.jsx("span",{className:"text-sm text-[#aaa]",children:i.text})]},i.text)})})]}),g.jsxs("div",{className:"mt-6 flex flex-col items-center gap-3",children:[g.jsxs("a",{href:ca(Ao,e.slug),target:"_blank",rel:"noopener noreferrer",onClick:()=>Ci(e.slug,"feature_page"),className:"inline-flex w-full items-center justify-center gap-1.5 rounded-lg bg-white px-4 py-2.5 text-sm font-semibold text-black transition-opacity hover:opacity-90",children:["Start free",g.jsx(Ps,{className:"h-3.5 w-3.5","aria-hidden":"true"})]}),g.jsxs("a",{href:ca(kA,e.slug),target:"_blank",rel:"noopener noreferrer",onClick:()=>Ci(e.slug,"feature_page_plans"),className:"inline-flex items-center gap-1 text-xs text-[#888] transition-colors hover:text-white",children:["View all plans",g.jsx(Ps,{className:"h-3 w-3","aria-hidden":"true"})]})]})]})})}const $7="Your findings stay on your machine. They're rendered here locally in your browser and never uploaded or stored by Strix.",b_=["critical","high","medium","low"],q7=500,P7=[{title:"One-click autofix + open a fix PR",desc:"Fix it for you and open a PR, retested.",slug:"autofix",icon:_u},{title:"Export SOC 2 / ISO 27001 report",desc:"Share an auditor-ready report with your team.",slug:"compliance",icon:cT}],F7=[{title:"Scheduled pentesting",desc:"Continuous coverage for your whole org.",slug:"scheduled",icon:E_},{title:"Attack surface monitoring",desc:"Continuous coverage for your whole org.",slug:"asm",icon:M_},{title:"PR reviews",desc:"Pentest every pull request your team opens.",slug:"pr_reviews",icon:mp}];function G7(){const[e,t]=ee.useState(null),[i,a]=ee.useState(null),[s,o]=ee.useState(null),[c,d]=ee.useState(null),[f,h]=ee.useState("overview"),[m,p]=ee.useState(null),[y,x]=ee.useState(null),[_,N]=ee.useState(null),[S,w]=ee.useState("report"),[k,E]=ee.useState(!1),[M,U]=ee.useState(!1),R=ee.useCallback(async()=>{try{x(await b7())}catch{}},[]),B=ee.useCallback(async()=>{try{N(await m7())}catch{}},[]);ee.useEffect(()=>{R(),B(),p7().then(D=>U(D.can_steer)).catch(()=>{})},[R,B]);const I=ee.useRef(!1);ee.useEffect(()=>{let D=!1,F;I.current=!1;const $=()=>{F=setTimeout(Q,q7)},Q=async()=>{if(!D)try{const{summary:J,raw:W,finished:te}=await nS(e);if(D)return;if(te&&!I.current){I.current=!0;const be=await c_(e);D||a(be);return}const[oe,fe]=await Promise.all([rS(e).catch(()=>({agents:[],events:[]})),iS(J.runId,e).catch(()=>[])]);if(D)return;a(be=>({summary:J,raw:W,finished:te,transcript:oe,vulnerabilities:fe,reportMarkdown:(be==null?void 0:be.reportMarkdown)??null})),$()}catch(J){if(D)return;o(J instanceof Error?J.message:"Could not load run data."),$()}};return(async()=>{try{const J=await c_(e);if(D)return;a(J),J.finished?I.current=!0:$()}catch(J){if(D)return;o(J instanceof Error?J.message:"Could not load run data."),$()}})(),()=>{D=!0,F&&clearTimeout(F)}},[e]);const Z=ee.useMemo(()=>i?f7(i.vulnerabilities):null,[i]),j=(i==null?void 0:i.vulnerabilities.find(D=>D.id===c))??null,z=(i==null?void 0:i.transcript.agents.length)??0,V=(y==null?void 0:y.verified)===!0,G=ee.useRef(!1);ee.useEffect(()=>{G.current=!1},[e]),ee.useEffect(()=>{G.current||!i||(i.finished?(G.current=!0,h("overview")):z>0&&(G.current=!0,h("agents")))},[i,z]);const A=ee.useCallback(D=>{G.current=!0,h(D)},[]),q=ee.useCallback(D=>{t(D),d(null),a(null),o(null),G.current=!1},[]),O=ee.useCallback((D,F)=>{Ci("email_report",F),w("report"),E(D),A("email")},[A]),H=ee.useCallback(()=>O(!1,"sidebar"),[O]),K=ee.useCallback(()=>O(!0,"overview"),[O]),X=ee.useCallback(()=>{B(),A("history")},[B,A]),C=ee.useCallback(async()=>{await R(),await B()},[R,B]),L=ee.useCallback(D=>{Ci(D,"sidebar_nav"),p(D),A("feature")},[A]),Y=ee.useCallback(async()=>{await x7(),await R(),await B()},[R,B]);return g.jsxs("div",{className:"min-h-screen bg-black text-white flex",children:[g.jsx(S7,{view:f,onSelectView:D=>{D==="history"?X():A(D)},activeFeature:m,onSelectFeature:L,issuesCount:(i==null?void 0:i.vulnerabilities.length)??0,agentCount:z,runCount:(_==null?void 0:_.count)??0,finished:(i==null?void 0:i.finished)??!1,verified:V,email:(y==null?void 0:y.email)??null,onOpenEmail:H,onOpenHistory:X,onForget:()=>void Y()}),g.jsxs("div",{className:"flex-1 min-w-0",children:[g.jsx("div",{className:"border-b border-[#222]",children:g.jsxs("div",{className:"max-w-[72rem] mx-auto px-6 py-4 flex items-center gap-1.5",children:[g.jsxs("a",{href:ca("https://app.strix.ai","logo"),target:"_blank",rel:"noopener noreferrer",onClick:()=>Ci("logo","topbar"),className:"flex items-center gap-1.5 opacity-90 transition-opacity hover:opacity-100 lg:hidden",title:"Open Strix Cloud",children:[g.jsx("img",{src:"./logo.png",alt:"Strix",className:"w-10 h-8 object-cover"}),g.jsx("div",{className:"text-base text-white font-medium tracking-tight",children:"Strix"})]}),g.jsx("span",{className:"text-xs text-[#666]",children:"Local results"}),i&&g.jsx(Y7,{finished:i.finished}),g.jsxs("div",{className:"ml-auto flex items-center gap-3",children:[V&&_&&!_.locked&&_.runs.length>0&&g.jsx(V7,{runs:_,activeRun:e,launchedName:go((i==null?void 0:i.summary.targets[0])??null,(i==null?void 0:i.summary.runName)??(i==null?void 0:i.summary.runId)??"Current run"),onSelect:q}),g.jsxs("a",{href:ca(Ao,"run_in_cloud"),target:"_blank",rel:"noopener noreferrer",onClick:()=>Ci("run_in_cloud","topbar"),className:"inline-flex items-center gap-1 rounded-lg bg-white px-3 py-1.5 text-xs font-semibold text-black transition-opacity hover:opacity-90",children:["Run in the cloud",g.jsx(Ps,{className:"w-3 h-3","aria-hidden":"true"})]})]})]})}),g.jsxs("div",{className:"max-w-[72rem] mx-auto px-6 py-8 space-y-6",children:[s&&!i&&f!=="history"&&f!=="email"&&f!=="feature"&&g.jsxs("div",{className:"rounded-lg px-4 py-3 flex gap-3 items-start border border-red-500/30 bg-red-500/5",children:[g.jsx(hp,{className:"w-5 h-5 flex-shrink-0 mt-0.5 text-red-400","aria-hidden":"true"}),g.jsx("p",{className:"text-sm text-red-300",children:s})]}),f==="email"?g.jsx(j7,{activeRun:e,auth:y,purpose:S,skipDisclosure:k,onAuthChanged:()=>{R(),B()},onExit:D=>h(D==="history"?"history":"overview")}):f==="feature"&&m&&dp[m]?g.jsx(H7,{feature:dp[m]}):f==="history"?g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Gs,{className:"w-5 h-5 text-[#888]","aria-hidden":"true"}),g.jsx("h1",{className:"text-2xl font-semibold text-white",children:"Past runs"})]}),g.jsx(O7,{runs:_,activeRun:e,onSelectRun:q,onVerified:()=>void C()})]}):!i&&!s?g.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-10 text-center",children:[g.jsx("div",{className:"w-6 h-6 mx-auto mb-3 rounded-full border-2 border-[#333] border-t-white animate-spin"}),g.jsx("p",{className:"text-sm text-[#888]",children:"Loading run data…"})]}):i&&Z?g.jsxs(g.Fragment,{children:[g.jsx(K7,{summary:i.summary}),g.jsxs("div",{className:"flex gap-5 border-b border-[#2a2a2a] lg:hidden",children:[g.jsx(Dm,{active:f==="overview",onClick:()=>A("overview"),children:"Overview"}),g.jsxs(Dm,{active:f==="issues",onClick:()=>A("issues"),children:["Issues",i.vulnerabilities.length>0?` (${i.vulnerabilities.length})`:""]}),z>0&&g.jsxs(Dm,{active:f==="agents",onClick:()=>A("agents"),children:["Agents (",z,")"]})]}),f==="overview"?g.jsx(eH,{summary:i.summary,counts:Z,total:i.vulnerabilities.length,reportMarkdown:i.reportMarkdown,raw:i.raw,finished:i.finished,onOpenEmail:K}):f==="agents"&&z>0?g.jsx(tH,{run:i,canSteer:M}):j?g.jsxs("div",{className:"space-y-4",children:[g.jsxs("button",{onClick:()=>d(null),className:"cursor-pointer inline-flex items-center gap-1.5 text-sm text-[#888] hover:text-white transition-colors",children:[g.jsx(v_,{className:"w-4 h-4"})," Back to all findings"]}),g.jsx(JD,{vulnerability:j})]}):g.jsx(Z7,{vulnerabilities:i.vulnerabilities,finished:i.finished,onSelect:D=>d(D)})]}):null]})]}),g.jsx(B7,{message:$7})]})}function V7({runs:e,activeRun:t,launchedName:i,onSelect:a}){const[s,o]=ee.useState(!1),c=e.runs.find(f=>f.name===t),d=c?go(c.target,c.name):i;return g.jsxs("div",{className:"relative",children:[g.jsxs("button",{onClick:()=>o(f=>!f),onBlur:()=>setTimeout(()=>o(!1),150),className:"flex items-center gap-1.5 rounded-lg px-2.5 py-1.5 text-xs text-[#aaa] transition-colors hover:text-white",style:{border:"1px solid #2a2a2a"},children:[g.jsx(Gs,{className:"w-3.5 h-3.5","aria-hidden":"true"}),g.jsx("span",{className:"max-w-[160px] truncate",children:d}),g.jsx(fo,{className:"w-3.5 h-3.5","aria-hidden":"true"})]}),s&&g.jsx("div",{className:"absolute right-0 z-50 mt-1.5 max-h-80 w-64 overflow-y-auto rounded-lg py-1 shadow-xl",style:{border:"1px solid #2a2a2a",background:"#0a0a0a"},children:e.runs.map(f=>{const h=f.name===t;return g.jsxs("button",{onMouseDown:()=>a(f.name),className:`flex w-full items-center gap-2 px-3 py-2 text-left text-xs transition-colors hover:bg-[rgba(255,255,255,0.06)] ${h?"text-white":"text-[#aaa]"}`,children:[g.jsxs("span",{className:"min-w-0 flex-1",children:[g.jsx("span",{className:"block truncate",children:go(f.target,f.name)}),f.target&&g.jsx("span",{className:"block truncate font-mono text-[#666]",children:f.target})]}),h&&g.jsx("span",{className:"h-1.5 w-1.5 flex-shrink-0 rounded-full bg-emerald-400"})]},f.name)})})]})}function Y7({finished:e}){return e?g.jsxs("span",{className:"ml-3 inline-flex items-center gap-1.5 text-xs text-[#888]",children:[g.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-[#555]"}),"Complete"]}):g.jsxs("span",{className:"ml-3 inline-flex items-center gap-1.5 text-xs text-emerald-400",children:[g.jsxs("span",{className:"relative flex h-1.5 w-1.5",children:[g.jsx("span",{className:"absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75 animate-ping"}),g.jsx("span",{className:"relative inline-flex h-1.5 w-1.5 rounded-full bg-emerald-400"})]}),"Live"]})}function X7(e){if(e==null)return null;if(e<60)return`${e}s`;const t=Math.floor(e/60);return t<60?`${t}m`:`${Math.floor(t/60)}h ${t%60}m`}function K7({summary:e}){const t=X7(e.durationSeconds);return g.jsxs("div",{children:[g.jsx("h1",{className:"text-2xl font-semibold text-white",children:go(e.targets[0]??null,e.runName??e.runId??"Scan results")}),g.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 text-sm text-[#888]",children:[e.targets.length>0&&g.jsx("span",{className:"font-mono text-[#aaa]",children:e.targets.join(", ")}),e.scanMode&&g.jsx(Rm,{label:e.scanMode}),t&&g.jsx(Rm,{label:t}),e.status&&g.jsx(Rm,{label:e.status})]})]})}function Rm({label:e}){return g.jsxs(g.Fragment,{children:[g.jsx("span",{className:"text-[#333]",children:"·"}),g.jsx("span",{className:"capitalize",children:e})]})}function Z7({vulnerabilities:e,finished:t,onSelect:i}){const a=[...e].sort((s,o)=>b_.indexOf(s.severity)-b_.indexOf(o.severity));return a.length===0?g.jsxs("div",{className:"space-y-4",children:[g.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-8 text-center text-sm text-[#888]",children:t?"No findings in this run.":"No findings yet. The scan is still running…"}),t&&g.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[g.jsx("p",{className:"text-sm font-medium text-white",children:"Stay ahead of new exposures"}),g.jsx("p",{className:"mt-0.5 mb-3 text-xs text-[#666]",children:"Attack surface monitoring catches new exposures for your org over time."}),g.jsx(ao,{label:"Attack surface monitoring",desc:"Continuous coverage for your whole org.",slug:"asm",surface:"empty_state",icon:M_})]})]}):g.jsx("div",{className:"space-y-2",children:a.map(s=>g.jsxs("button",{onClick:()=>i(s.id),className:"cursor-pointer w-full text-left rounded-lg border border-[#222] hover:border-[#444] bg-[rgba(255,255,255,0.02)] px-4 py-3 transition-colors flex items-center gap-3",children:[g.jsx("span",{className:`w-2.5 h-2.5 rounded-full flex-shrink-0 ${bp(s.severity)}`,"aria-hidden":"true"}),g.jsxs("span",{className:"flex-1 min-w-0",children:[g.jsx("span",{className:"block text-sm font-medium text-white truncate",children:s.title}),s.target&&g.jsx("span",{className:"block text-xs text-[#666] font-mono truncate",children:s.target})]}),g.jsx("span",{className:`text-xs font-semibold px-2 py-0.5 rounded-full border capitalize ${z_[s.severity]}`,children:s.severity})]},s.id))})}function Q7(e){return e.replace(/^\s*#{1,6}[ \t]+.*(?:\r?\n)+/,"").trimStart()}function W7(e){const t=[];let i=null;for(const a of e.split(`
-`)){const s=a.match(/^#{1,6}\s+(.*)$/);if(s){const o=s[1].trim().toLowerCase();if(o===i)continue;i=o}else a.trim()!==""&&(i=null);t.push(a)}return t.join(`
-`)}function J7({onOpenEmail:e}){return g.jsx("button",{onClick:e,className:"group w-full cursor-pointer rounded-xl border border-emerald-500/25 bg-emerald-500/[0.06] p-4 text-left transition-colors hover:border-emerald-500/40",children:g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-lg",style:{border:"1px solid rgba(16,185,129,0.3)",background:"rgba(16,185,129,0.08)"},children:g.jsx(gp,{className:"h-4 w-4 text-emerald-400","aria-hidden":"true"})}),g.jsxs("div",{className:"min-w-0 flex-1",children:[g.jsx("p",{className:"text-sm font-semibold text-white",children:"Email an encrypted PDF report of this run"}),g.jsx("p",{className:"mt-0.5 text-xs text-[#888]",children:"Encrypted with a key only you can see, email verified with a one-time code before sending."})]}),g.jsx("span",{className:"flex-shrink-0 rounded-lg bg-white px-3 py-1.5 text-xs font-semibold text-black transition-opacity group-hover:opacity-90",children:"Email report"})]})})}function eH({summary:e,counts:t,total:i,reportMarkdown:a,raw:s,finished:o,onOpenEmail:c}){const d=[["Executive Summary",e.executiveSummary],["Technical Analysis",e.technicalAnalysis],["Methodology",e.methodology],["Recommendations",e.recommendations]].filter(([,f])=>!!f).map(([f,h])=>({title:f,content:Q7(h)}));return g.jsxs("div",{className:"space-y-6",children:[g.jsx(I7,{raw:s,durationSeconds:e.durationSeconds}),i>0&&g.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:g.jsx(ej,{findings:{total:i,...t}})}),o&&g.jsx(J7,{onOpenEmail:c}),d.length>0?g.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5 space-y-8",children:d.map(f=>g.jsx(aa,{title:f.title,content:f.content},f.title))}):a?g.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:g.jsx(aa,{content:W7(a)})}):i===0&&g.jsx("p",{className:"text-sm text-[#888]",children:"No summary available for this run yet."}),g.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:P7.map(f=>g.jsx(ey,{item:f,surface:"overview"},f.slug))}),g.jsxs("div",{children:[g.jsx("p",{className:"mb-2 text-sm font-semibold text-white",children:"Continuous coverage for your org"}),g.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:F7.map(f=>g.jsx(ey,{item:f,surface:"overview"},f.slug))})]})]})}function Dm({active:e,onClick:t,children:i}){return g.jsxs("button",{onClick:t,className:`cursor-pointer relative pb-2.5 text-sm font-semibold transition-colors ${e?"text-white":"text-[#666] hover:text-white"}`,children:[i,e&&g.jsx("span",{className:"absolute bottom-0 inset-x-0 h-0.5 bg-white rounded-full"})]})}function tH({run:e,canSteer:t}){const{agents:i,events:a}=e.transcript,s=ee.useMemo(()=>n7(i,a),[i,a]),[o,c]=ee.useState(null),d=o?i.find(h=>h.id===o)??null:null,f=t&&!e.finished;return g.jsxs("div",{className:"space-y-5",children:[g.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(j_,{className:"w-4 h-4 text-[#888]","aria-hidden":"true"}),g.jsx("h2",{className:"text-sm font-semibold text-white",children:"Agent graph"}),g.jsxs("span",{className:"text-xs text-[#666]",children:[i.length," agent",i.length===1?"":"s"]})]}),g.jsx("p",{className:"mt-1 mb-4 text-xs text-[#666]",children:"Click an agent to open its full transcript."}),g.jsx("div",{className:"h-[480px] rounded-lg border border-[#1a1a1a] overflow-hidden",children:g.jsx(P9,{agents:s,selectedAgentId:o,onSelectAgent:h=>c(h),eventsLoaded:!0,eventsEmpty:s.size===0,scanCompleted:e.finished})})]}),f&&g.jsx(lS,{agents:i}),g.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[g.jsx("p",{className:"text-sm font-semibold text-white",children:"Run this scan with more depth"}),g.jsx("p",{className:"mt-0.5 text-xs text-[#666]",children:"Re-run this scan on managed infra in the cloud."}),g.jsx("div",{className:"mt-3 flex flex-wrap gap-2.5",children:g.jsx(ao,{label:"Re-run in Strix Cloud with more depth",desc:"Run this scan on managed infra with more depth.",slug:"live_scan",surface:"agents",icon:tA})})]}),d&&g.jsx(w7,{agent:d,events:a,steerable:f,onClose:()=>c(null)})]})}y2.createRoot(document.getElementById("root")).render(g.jsx(ee.StrictMode,{children:g.jsx(G7,{})}));
diff --git a/strix/viewer/static/assets/index-BtBksasm.css b/strix/viewer/static/assets/index-BtBksasm.css
new file mode 100644
index 00000000..728db2e5
--- /dev/null
+++ b/strix/viewer/static/assets/index-BtBksasm.css
@@ -0,0 +1,10 @@
+pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
+ Theme: GitHub Dark
+ Description: Dark theme as seen on github.com
+ Author: github.com
+ Maintainer: @Hirse
+ Updated: 2021-05-15
+
+ Outdated base version: https://github.com/primer/github-syntax-dark
+ Current colors taken from GitHub's CSS
+*/.hljs{color:#c9d1d9;background:#0d1117}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#ff7b72}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#d2a8ff}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#79c0ff}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#a5d6ff}.hljs-built_in,.hljs-symbol{color:#ffa657}.hljs-comment,.hljs-code,.hljs-formula{color:#8b949e}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#7ee787}.hljs-subst{color:#c9d1d9}.hljs-section{color:#1f6feb;font-weight:700}.hljs-bullet{color:#f2cc60}.hljs-emphasis{color:#c9d1d9;font-style:italic}.hljs-strong{color:#c9d1d9;font-weight:700}.hljs-addition{color:#aff5b4;background-color:#033a16}.hljs-deletion{color:#ffdcd7;background-color:#67060c}.react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgba(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-color-default: inherit;--xy-node-border-default: 1px solid #1a192b;--xy-node-background-color-default: #fff;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;--xy-node-border-radius-default: 3px;--xy-handle-background-color-default: #1a192b;--xy-handle-border-color-default: #fff;--xy-selection-background-color-default: rgba(0, 89, 220, .08);--xy-selection-border-default: 1px dotted rgba(0, 89, 220, .8);--xy-controls-button-background-color-default: #fefefe;--xy-controls-button-background-color-hover-default: #f4f4f4;--xy-controls-button-color-default: inherit;--xy-controls-button-color-hover-default: inherit;--xy-controls-button-border-color-default: #eee;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #ffffff;--xy-edge-label-color-default: inherit;--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgba(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #555;--xy-background-pattern-lines-color-default: #333;--xy-background-pattern-cross-color-default: #333;--xy-node-color-default: #f8f8f8;--xy-node-border-default: 1px solid #3c3c3c;--xy-node-background-color-default: #1e1e1e;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #999;--xy-handle-background-color-default: #bebebe;--xy-handle-border-color-default: #1e1e1e;--xy-selection-background-color-default: rgba(200, 200, 220, .08);--xy-selection-border-default: 1px dotted rgba(200, 200, 220, .8);--xy-controls-button-background-color-default: #2b2b2b;--xy-controls-button-background-color-hover-default: #3e3e3e;--xy-controls-button-color-default: #f8f8f8;--xy-controls-button-color-hover-default: #fff;--xy-controls-button-border-color-default: #5b5b5b;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #141414;--xy-edge-label-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;touch-action:none}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));border-radius:100%}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px) translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px) translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column;box-shadow:var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default))}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px;border:none;background:var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));border-bottom:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );color:var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:var(--xy-node-border-radius, var(--xy-node-border-radius-default));width:150px;font-size:12px;color:var(--xy-node-color, var(--xy-node-color-default));text-align:center;border:var(--xy-node-border, var(--xy-node-border-default));background-color:var(--xy-node-background-color, var(--xy-node-background-color-default))}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color, var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );color:var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) )}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:5px;height:5px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));translate:-50% -50%}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color, var(--xy-edge-label-color-default))}/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-orange-400:oklch(75% .183 55.934);--color-orange-500:oklch(70.5% .213 47.604);--color-amber-400:oklch(82.8% .189 84.429);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-cyan-400:oklch(78.9% .154 211.53);--color-cyan-500:oklch(71.5% .143 215.221);--color-sky-400:oklch(74.6% .16 232.661);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-neutral-200:oklch(92.2% 0 none);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-xl:36rem;--container-6xl:72rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-snug:1.375;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--ease-out:cubic-bezier(0, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-geist-sans);--default-mono-font-family:var(--font-geist-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}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;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{inset-inline:0}.top-0{top:0}.top-2{top:calc(var(--spacing) * 2)}.top-4{top:calc(var(--spacing) * 4)}.right-0{right:0}.right-2{right:calc(var(--spacing) * 2)}.right-4{right:calc(var(--spacing) * 4)}.bottom-0{bottom:0}.bottom-3{bottom:calc(var(--spacing) * 3)}.bottom-full{bottom:100%}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing) * 2)}.left-3{left:calc(var(--spacing) * 3)}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[60\]{z-index:60}.-mx-2{margin-inline:calc(var(--spacing) * -2)}.mx-0{margin-inline:0}.mx-auto{margin-inline:auto}.my-1{margin-block:var(--spacing)}.my-4{margin-block:calc(var(--spacing) * 4)}.-mt-0\.5{margin-top:calc(var(--spacing) * -.5)}.mt-0{margin-top:0}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-10{margin-top:calc(var(--spacing) * 10)}.mt-\[1px\]{margin-top:1px}.-mr-0\.5{margin-right:calc(var(--spacing) * -.5)}.mr-1{margin-right:var(--spacing)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mb-1{margin-bottom:var(--spacing)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-2\.5{margin-bottom:calc(var(--spacing) * 2.5)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.ml-1{margin-left:var(--spacing)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-3{margin-left:calc(var(--spacing) * 3)}.ml-auto{margin-left:auto}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.\!h-1\.5{height:calc(var(--spacing) * 1.5)!important}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-\[30px\]{height:30px}.h-\[60vh\]{height:60vh}.h-\[72px\]{height:72px}.h-\[480px\]{height:480px}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-80{max-height:calc(var(--spacing) * 80)}.max-h-\[160px\]{max-height:160px}.max-h-\[400px\]{max-height:400px}.max-h-\[1200px\]{max-height:1200px}.min-h-screen{min-height:100vh}.\!w-1\.5{width:calc(var(--spacing) * 1.5)!important}.w-0\.5{width:calc(var(--spacing) * .5)}.w-1{width:var(--spacing)}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-2{width:calc(var(--spacing) * 2)}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-3{width:calc(var(--spacing) * 3)}.w-3\.5{width:calc(var(--spacing) * 3.5)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-10{width:calc(var(--spacing) * 10)}.w-11{width:calc(var(--spacing) * 11)}.w-28{width:calc(var(--spacing) * 28)}.w-64{width:calc(var(--spacing) * 64)}.w-\[1px\]{width:1px}.w-\[30px\]{width:30px}.w-\[180px\]{width:180px}.w-\[260px\]{width:260px}.w-\[calc\(100vw-4rem\)\]{width:calc(100vw - 4rem)}.w-full{width:100%}.w-max{width:max-content}.w-px{width:1px}.max-w-6xl{max-width:var(--container-6xl)}.max-w-\[75\%\]{max-width:75%}.max-w-\[80\%\]{max-width:80%}.max-w-\[88rem\]{max-width:88rem}.max-w-\[140px\]{max-width:140px}.max-w-\[160px\]{max-width:160px}.max-w-\[240px\]{max-width:240px}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xl{max-width:var(--container-xl)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:0}.min-w-\[80px\]{min-width:80px}.min-w-\[112px\]{min-width:112px}.min-w-\[160px\]{min-width:160px}.flex-1{flex:1}.flex-none{flex:none}.flex-shrink-0,.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.origin-left{transform-origin:0}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-rotate-90{rotate:-90deg}.animate-ping{animation:var(--animate-ping)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-col-resize{cursor:col-resize}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-none{resize:none}.resize-y{resize:vertical}.scrollbar-thin{scrollbar-width:thin}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-\[7rem_1fr\]{grid-template-columns:7rem 1fr}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-content-center{place-content:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-10{gap:calc(var(--spacing) * 10)}.gap-px{gap:1px}:where(.space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block:0}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-x-8{column-gap:calc(var(--spacing) * 8)}.gap-y-0\.5{row-gap:calc(var(--spacing) * .5)}.gap-y-1{row-gap:var(--spacing)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-3{row-gap:calc(var(--spacing) * 3)}.gap-y-6{row-gap:calc(var(--spacing) * 6)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-clip{overflow-x:clip}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.\!border-0{border-style:var(--tw-border-style)!important;border-width:0!important}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.\!border-none{--tw-border-style:none!important;border-style:none!important}.\!border-\[\#222\]{border-color:#222!important}.border-\[\#1a1a1a\]{border-color:#1a1a1a}.border-\[\#2a2a2a\]{border-color:#2a2a2a}.border-\[\#222\]{border-color:#222}.border-\[\#333\]{border-color:#333}.border-\[\#444\]{border-color:#444}.border-\[\#191919\]{border-color:#191919}.border-\[rgba\(255\,255\,255\,0\.08\)\]{border-color:#ffffff14}.border-blue-500\/20{border-color:#3080ff33}@supports (color:color-mix(in lab,red,red)){.border-blue-500\/20{border-color:color-mix(in oklab,var(--color-blue-500) 20%,transparent)}}.border-blue-500\/30{border-color:#3080ff4d}@supports (color:color-mix(in lab,red,red)){.border-blue-500\/30{border-color:color-mix(in oklab,var(--color-blue-500) 30%,transparent)}}.border-blue-500\/40{border-color:#3080ff66}@supports (color:color-mix(in lab,red,red)){.border-blue-500\/40{border-color:color-mix(in oklab,var(--color-blue-500) 40%,transparent)}}.border-emerald-500\/20{border-color:#00bb7f33}@supports (color:color-mix(in lab,red,red)){.border-emerald-500\/20{border-color:color-mix(in oklab,var(--color-emerald-500) 20%,transparent)}}.border-emerald-500\/25{border-color:#00bb7f40}@supports (color:color-mix(in lab,red,red)){.border-emerald-500\/25{border-color:color-mix(in oklab,var(--color-emerald-500) 25%,transparent)}}.border-emerald-500\/30{border-color:#00bb7f4d}@supports (color:color-mix(in lab,red,red)){.border-emerald-500\/30{border-color:color-mix(in oklab,var(--color-emerald-500) 30%,transparent)}}.border-gray-500\/20{border-color:#6a728233}@supports (color:color-mix(in lab,red,red)){.border-gray-500\/20{border-color:color-mix(in oklab,var(--color-gray-500) 20%,transparent)}}.border-orange-500\/20{border-color:#fe6e0033}@supports (color:color-mix(in lab,red,red)){.border-orange-500\/20{border-color:color-mix(in oklab,var(--color-orange-500) 20%,transparent)}}.border-orange-500\/30{border-color:#fe6e004d}@supports (color:color-mix(in lab,red,red)){.border-orange-500\/30{border-color:color-mix(in oklab,var(--color-orange-500) 30%,transparent)}}.border-purple-500\/20{border-color:#ac4bff33}@supports (color:color-mix(in lab,red,red)){.border-purple-500\/20{border-color:color-mix(in oklab,var(--color-purple-500) 20%,transparent)}}.border-red-500\/20{border-color:#fb2c3633}@supports (color:color-mix(in lab,red,red)){.border-red-500\/20{border-color:color-mix(in oklab,var(--color-red-500) 20%,transparent)}}.border-red-500\/25{border-color:#fb2c3640}@supports (color:color-mix(in lab,red,red)){.border-red-500\/25{border-color:color-mix(in oklab,var(--color-red-500) 25%,transparent)}}.border-red-500\/30{border-color:#fb2c364d}@supports (color:color-mix(in lab,red,red)){.border-red-500\/30{border-color:color-mix(in oklab,var(--color-red-500) 30%,transparent)}}.border-white\/10{border-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.border-white\/10{border-color:color-mix(in oklab,var(--color-white) 10%,transparent)}}.border-white\/30{border-color:#ffffff4d}@supports (color:color-mix(in lab,red,red)){.border-white\/30{border-color:color-mix(in oklab,var(--color-white) 30%,transparent)}}.border-white\/\[0\.06\]{border-color:#ffffff0f}@supports (color:color-mix(in lab,red,red)){.border-white\/\[0\.06\]{border-color:color-mix(in oklab,var(--color-white) 6%,transparent)}}.border-white\/\[0\.08\]{border-color:#ffffff14}@supports (color:color-mix(in lab,red,red)){.border-white\/\[0\.08\]{border-color:color-mix(in oklab,var(--color-white) 8%,transparent)}}.border-white\/\[0\.18\]{border-color:#ffffff2e}@supports (color:color-mix(in lab,red,red)){.border-white\/\[0\.18\]{border-color:color-mix(in oklab,var(--color-white) 18%,transparent)}}.border-yellow-500\/20{border-color:#edb20033}@supports (color:color-mix(in lab,red,red)){.border-yellow-500\/20{border-color:color-mix(in oklab,var(--color-yellow-500) 20%,transparent)}}.border-yellow-500\/25{border-color:#edb20040}@supports (color:color-mix(in lab,red,red)){.border-yellow-500\/25{border-color:color-mix(in oklab,var(--color-yellow-500) 25%,transparent)}}.border-yellow-500\/30{border-color:#edb2004d}@supports (color:color-mix(in lab,red,red)){.border-yellow-500\/30{border-color:color-mix(in oklab,var(--color-yellow-500) 30%,transparent)}}.border-t-white{border-top-color:var(--color-white)}.\!bg-\[\#0a0a0a\]{background-color:#0a0a0a!important}.\!bg-\[\#444\]{background-color:#444!important}.\!bg-transparent{background-color:#0000!important}.bg-\[\#0a0a0a\]{background-color:#0a0a0a}.bg-\[\#1a1a1a\]{background-color:#1a1a1a}.bg-\[\#1e1e1e\]{background-color:#1e1e1e}.bg-\[\#2a2a2a\]{background-color:#2a2a2a}.bg-\[\#111\]{background-color:#111}.bg-\[\#222\]{background-color:#222}.bg-\[\#555\]{background-color:#555}.bg-\[\#888\]{background-color:#888}.bg-\[\#050505\]{background-color:#050505}.bg-\[\#252525\]{background-color:#252525}.bg-\[rgba\(255\,255\,255\,0\.02\)\]{background-color:#ffffff05}.bg-\[rgba\(255\,255\,255\,0\.3\)\]{background-color:#ffffff4d}.bg-\[rgba\(255\,255\,255\,0\.04\)\]{background-color:#ffffff0a}.bg-\[rgba\(255\,255\,255\,0\.08\)\]{background-color:#ffffff14}.bg-\[rgba\(255\,255\,255\,0\.12\)\]{background-color:#ffffff1f}.bg-black{background-color:var(--color-black)}.bg-black\/80{background-color:#000c}@supports (color:color-mix(in lab,red,red)){.bg-black\/80{background-color:color-mix(in oklab,var(--color-black) 80%,transparent)}}.bg-blue-400{background-color:var(--color-blue-400)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-blue-500\/10{background-color:#3080ff1a}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/10{background-color:color-mix(in oklab,var(--color-blue-500) 10%,transparent)}}.bg-blue-500\/20{background-color:#3080ff33}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/20{background-color:color-mix(in oklab,var(--color-blue-500) 20%,transparent)}}.bg-blue-500\/\[0\.12\]{background-color:#3080ff1f}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/\[0\.12\]{background-color:color-mix(in oklab,var(--color-blue-500) 12%,transparent)}}.bg-emerald-400{background-color:var(--color-emerald-400)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-emerald-500\/5{background-color:#00bb7f0d}@supports (color:color-mix(in lab,red,red)){.bg-emerald-500\/5{background-color:color-mix(in oklab,var(--color-emerald-500) 5%,transparent)}}.bg-emerald-500\/10{background-color:#00bb7f1a}@supports (color:color-mix(in lab,red,red)){.bg-emerald-500\/10{background-color:color-mix(in oklab,var(--color-emerald-500) 10%,transparent)}}.bg-emerald-500\/\[0\.06\]{background-color:#00bb7f0f}@supports (color:color-mix(in lab,red,red)){.bg-emerald-500\/\[0\.06\]{background-color:color-mix(in oklab,var(--color-emerald-500) 6%,transparent)}}.bg-gray-500{background-color:var(--color-gray-500)}.bg-gray-500\/10{background-color:#6a72821a}@supports (color:color-mix(in lab,red,red)){.bg-gray-500\/10{background-color:color-mix(in oklab,var(--color-gray-500) 10%,transparent)}}.bg-orange-500{background-color:var(--color-orange-500)}.bg-orange-500\/10{background-color:#fe6e001a}@supports (color:color-mix(in lab,red,red)){.bg-orange-500\/10{background-color:color-mix(in oklab,var(--color-orange-500) 10%,transparent)}}.bg-orange-500\/20{background-color:#fe6e0033}@supports (color:color-mix(in lab,red,red)){.bg-orange-500\/20{background-color:color-mix(in oklab,var(--color-orange-500) 20%,transparent)}}.bg-purple-500{background-color:var(--color-purple-500)}.bg-purple-500\/10{background-color:#ac4bff1a}@supports (color:color-mix(in lab,red,red)){.bg-purple-500\/10{background-color:color-mix(in oklab,var(--color-purple-500) 10%,transparent)}}.bg-purple-500\/\[0\.08\]{background-color:#ac4bff14}@supports (color:color-mix(in lab,red,red)){.bg-purple-500\/\[0\.08\]{background-color:color-mix(in oklab,var(--color-purple-500) 8%,transparent)}}.bg-red-400{background-color:var(--color-red-400)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-500\/5{background-color:#fb2c360d}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/5{background-color:color-mix(in oklab,var(--color-red-500) 5%,transparent)}}.bg-red-500\/10{background-color:#fb2c361a}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/10{background-color:color-mix(in oklab,var(--color-red-500) 10%,transparent)}}.bg-red-500\/15{background-color:#fb2c3626}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/15{background-color:color-mix(in oklab,var(--color-red-500) 15%,transparent)}}.bg-red-500\/20{background-color:#fb2c3633}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/20{background-color:color-mix(in oklab,var(--color-red-500) 20%,transparent)}}.bg-red-500\/\[0\.12\]{background-color:#fb2c361f}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/\[0\.12\]{background-color:color-mix(in oklab,var(--color-red-500) 12%,transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\/8{background-color:#ffffff14}@supports (color:color-mix(in lab,red,red)){.bg-white\/8{background-color:color-mix(in oklab,var(--color-white) 8%,transparent)}}.bg-white\/60{background-color:#fff9}@supports (color:color-mix(in lab,red,red)){.bg-white\/60{background-color:color-mix(in oklab,var(--color-white) 60%,transparent)}}.bg-white\/\[0\.03\]{background-color:#ffffff08}@supports (color:color-mix(in lab,red,red)){.bg-white\/\[0\.03\]{background-color:color-mix(in oklab,var(--color-white) 3%,transparent)}}.bg-white\/\[0\.08\]{background-color:#ffffff14}@supports (color:color-mix(in lab,red,red)){.bg-white\/\[0\.08\]{background-color:color-mix(in oklab,var(--color-white) 8%,transparent)}}.bg-white\/\[0\.015\]{background-color:#ffffff04}@supports (color:color-mix(in lab,red,red)){.bg-white\/\[0\.015\]{background-color:color-mix(in oklab,var(--color-white) 1.5%,transparent)}}.bg-yellow-400{background-color:var(--color-yellow-400)}.bg-yellow-500{background-color:var(--color-yellow-500)}.bg-yellow-500\/10{background-color:#edb2001a}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\/10{background-color:color-mix(in oklab,var(--color-yellow-500) 10%,transparent)}}.bg-yellow-500\/15{background-color:#edb20026}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\/15{background-color:color-mix(in oklab,var(--color-yellow-500) 15%,transparent)}}.bg-yellow-500\/20{background-color:#edb20033}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\/20{background-color:color-mix(in oklab,var(--color-yellow-500) 20%,transparent)}}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-emerald-400{--tw-gradient-from:var(--color-emerald-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-cyan-500{--tw-gradient-to:var(--color-cyan-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.object-cover{object-fit:cover}.p-0{padding:0}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:var(--spacing)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.p-10{padding:calc(var(--spacing) * 10)}.px-0{padding-inline:0}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-1{padding-top:var(--spacing)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-10{padding-top:calc(var(--spacing) * 10)}.pt-\[5px\]{padding-top:5px}.pr-1{padding-right:var(--spacing)}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pb-2\.5{padding-bottom:calc(var(--spacing) * 2.5)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.pb-10{padding-bottom:calc(var(--spacing) * 10)}.pl-1\.5{padding-left:calc(var(--spacing) * 1.5)}.pl-2\.5{padding-left:calc(var(--spacing) * 2.5)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-top{vertical-align:top}.font-mono{font-family:var(--font-geist-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[9px\]{font-size:9px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[14px\]{font-size:14px}.text-\[15px\]{font-size:15px}.text-\[16px\]{font-size:16px}.leading-6{--tw-leading:calc(var(--spacing) * 6);line-height:calc(var(--spacing) * 6)}.leading-\[22px\]{--tw-leading:22px;line-height:22px}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[0\.4em\]{--tw-tracking:.4em;letter-spacing:.4em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.text-\[\#333\]{color:#333}.text-\[\#444\]{color:#444}.text-\[\#555\]{color:#555}.text-\[\#666\]{color:#666}.text-\[\#777\]{color:#777}.text-\[\#888\]{color:#888}.text-\[\#999\]{color:#999}.text-\[\#aaa\]{color:#aaa}.text-\[\#bbb\]{color:#bbb}.text-\[\#ddd\]{color:#ddd}.text-\[\#e5e5e5\]{color:#e5e5e5}.text-\[\#ededed\]{color:#ededed}.text-amber-400{color:var(--color-amber-400)}.text-amber-400\/80{color:#fcbb00cc}@supports (color:color-mix(in lab,red,red)){.text-amber-400\/80{color:color-mix(in oklab,var(--color-amber-400) 80%,transparent)}}.text-black{color:var(--color-black)}.text-blue-400{color:var(--color-blue-400)}.text-blue-400\/80{color:#54a2ffcc}@supports (color:color-mix(in lab,red,red)){.text-blue-400\/80{color:color-mix(in oklab,var(--color-blue-400) 80%,transparent)}}.text-blue-500{color:var(--color-blue-500)}.text-cyan-400{color:var(--color-cyan-400)}.text-cyan-400\/80{color:#00d2efcc}@supports (color:color-mix(in lab,red,red)){.text-cyan-400\/80{color:color-mix(in oklab,var(--color-cyan-400) 80%,transparent)}}.text-emerald-200{color:var(--color-emerald-200)}.text-emerald-400{color:var(--color-emerald-400)}.text-emerald-400\/30{color:#00d2944d}@supports (color:color-mix(in lab,red,red)){.text-emerald-400\/30{color:color-mix(in oklab,var(--color-emerald-400) 30%,transparent)}}.text-emerald-400\/60{color:#00d29499}@supports (color:color-mix(in lab,red,red)){.text-emerald-400\/60{color:color-mix(in oklab,var(--color-emerald-400) 60%,transparent)}}.text-emerald-400\/70{color:#00d294b3}@supports (color:color-mix(in lab,red,red)){.text-emerald-400\/70{color:color-mix(in oklab,var(--color-emerald-400) 70%,transparent)}}.text-emerald-400\/80{color:#00d294cc}@supports (color:color-mix(in lab,red,red)){.text-emerald-400\/80{color:color-mix(in oklab,var(--color-emerald-400) 80%,transparent)}}.text-gray-400{color:var(--color-gray-400)}.text-orange-400{color:var(--color-orange-400)}.text-orange-400\/60{color:#ff8b1a99}@supports (color:color-mix(in lab,red,red)){.text-orange-400\/60{color:color-mix(in oklab,var(--color-orange-400) 60%,transparent)}}.text-orange-400\/80{color:#ff8b1acc}@supports (color:color-mix(in lab,red,red)){.text-orange-400\/80{color:color-mix(in oklab,var(--color-orange-400) 80%,transparent)}}.text-orange-500{color:var(--color-orange-500)}.text-purple-400{color:var(--color-purple-400)}.text-purple-400\/60{color:#c07eff99}@supports (color:color-mix(in lab,red,red)){.text-purple-400\/60{color:color-mix(in oklab,var(--color-purple-400) 60%,transparent)}}.text-purple-400\/70{color:#c07effb3}@supports (color:color-mix(in lab,red,red)){.text-purple-400\/70{color:color-mix(in oklab,var(--color-purple-400) 70%,transparent)}}.text-purple-400\/80{color:#c07effcc}@supports (color:color-mix(in lab,red,red)){.text-purple-400\/80{color:color-mix(in oklab,var(--color-purple-400) 80%,transparent)}}.text-red-300{color:var(--color-red-300)}.text-red-400{color:var(--color-red-400)}.text-red-400\/30{color:#ff65684d}@supports (color:color-mix(in lab,red,red)){.text-red-400\/30{color:color-mix(in oklab,var(--color-red-400) 30%,transparent)}}.text-red-400\/50{color:#ff656880}@supports (color:color-mix(in lab,red,red)){.text-red-400\/50{color:color-mix(in oklab,var(--color-red-400) 50%,transparent)}}.text-red-400\/60{color:#ff656899}@supports (color:color-mix(in lab,red,red)){.text-red-400\/60{color:color-mix(in oklab,var(--color-red-400) 60%,transparent)}}.text-red-400\/70{color:#ff6568b3}@supports (color:color-mix(in lab,red,red)){.text-red-400\/70{color:color-mix(in oklab,var(--color-red-400) 70%,transparent)}}.text-red-400\/80{color:#ff6568cc}@supports (color:color-mix(in lab,red,red)){.text-red-400\/80{color:color-mix(in oklab,var(--color-red-400) 80%,transparent)}}.text-red-500{color:var(--color-red-500)}.text-sky-400{color:var(--color-sky-400)}.text-sky-400\/80{color:#00bcfecc}@supports (color:color-mix(in lab,red,red)){.text-sky-400\/80{color:color-mix(in oklab,var(--color-sky-400) 80%,transparent)}}.text-white{color:var(--color-white)}.text-white\/80{color:#fffc}@supports (color:color-mix(in lab,red,red)){.text-white\/80{color:color-mix(in oklab,var(--color-white) 80%,transparent)}}.text-yellow-400{color:var(--color-yellow-400)}.text-yellow-400\/80{color:#fac800cc}@supports (color:color-mix(in lab,red,red)){.text-yellow-400\/80{color:color-mix(in oklab,var(--color-yellow-400) 80%,transparent)}}.text-yellow-500{color:var(--color-yellow-500)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.line-through{text-decoration-line:line-through}.opacity-0{opacity:0}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-90{opacity:.9}.opacity-100{opacity:1}.\!shadow-none{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.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,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\[font-variant-ligatures\:none\]{font-variant-ligatures:none}@media(hover:hover){.group-hover\:bg-\[rgba\(255\,255\,255\,0\.2\)\]:is(:where(.group):hover *){background-color:#fff3}.group-hover\:text-\[\#aaa\]:is(:where(.group):hover *){color:#aaa}.group-hover\:text-white:is(:where(.group):hover *){color:var(--color-white)}.group-hover\:opacity-90:is(:where(.group):hover *){opacity:.9}.group-hover\/code\:opacity-100:is(:where(.group\/code):hover *){opacity:1}}.placeholder\:text-\[\#444\]::placeholder{color:#444}@media(hover:hover){.hover\:border-\[\#333\]:hover{border-color:#333}.hover\:border-\[\#444\]:hover{border-color:#444}.hover\:border-\[\#555\]:hover{border-color:#555}.hover\:border-emerald-500\/40:hover{border-color:#00bb7f66}@supports (color:color-mix(in lab,red,red)){.hover\:border-emerald-500\/40:hover{border-color:color-mix(in oklab,var(--color-emerald-500) 40%,transparent)}}.hover\:border-white\/\[0\.12\]:hover{border-color:#ffffff1f}@supports (color:color-mix(in lab,red,red)){.hover\:border-white\/\[0\.12\]:hover{border-color:color-mix(in oklab,var(--color-white) 12%,transparent)}}.hover\:border-white\/\[0\.16\]:hover{border-color:#ffffff29}@supports (color:color-mix(in lab,red,red)){.hover\:border-white\/\[0\.16\]:hover{border-color:color-mix(in oklab,var(--color-white) 16%,transparent)}}.hover\:bg-\[\#1a1a1a\]:hover{background-color:#1a1a1a}.hover\:bg-\[\#2a2a2a\]:hover{background-color:#2a2a2a}.hover\:bg-\[rgba\(255\,255\,255\,0\.06\)\]:hover{background-color:#ffffff0f}.hover\:bg-\[rgba\(255\,255\,255\,0\.08\)\]:hover{background-color:#ffffff14}.hover\:bg-neutral-200:hover{background-color:var(--color-neutral-200)}.hover\:bg-white\/\[0\.06\]:hover{background-color:#ffffff0f}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/\[0\.06\]:hover{background-color:color-mix(in oklab,var(--color-white) 6%,transparent)}}.hover\:text-\[\#888\]:hover{color:#888}.hover\:text-\[\#aaa\]:hover{color:#aaa}.hover\:text-\[\#ccc\]:hover{color:#ccc}.hover\:text-\[\#ededed\]:hover{color:#ededed}.hover\:text-red-400:hover{color:var(--color-red-400)}.hover\:text-white:hover{color:var(--color-white)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-90:hover{opacity:.9}.hover\:opacity-100:hover{opacity:1}}.focus\:border-\[\#444\]:focus{border-color:#444}.focus\:border-white\/50:focus{border-color:#ffffff80}@supports (color:color-mix(in lab,red,red)){.focus\:border-white\/50:focus{border-color:color-mix(in oklab,var(--color-white) 50%,transparent)}}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-white\/10:focus{--tw-ring-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.focus\:ring-white\/10:focus{--tw-ring-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-white\/20:focus-visible{--tw-ring-color:#fff3}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-white\/20:focus-visible{--tw-ring-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\:opacity-60:disabled{opacity:.6}@media(min-width:40rem){.sm\:rounded-lg{border-radius:var(--radius-lg)}.sm\:p-8{padding:calc(var(--spacing) * 8)}.sm\:px-6{padding-inline:calc(var(--spacing) * 6)}.sm\:py-12{padding-block:calc(var(--spacing) * 12)}}@media(min-width:48rem){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:64rem){.lg\:sticky{position:sticky}.lg\:top-6{top:calc(var(--spacing) * 6)}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:max-h-\[calc\(100vh-3rem\)\]{max-height:calc(100vh - 3rem)}.lg\:grid-cols-\[1fr_340px\]{grid-template-columns:1fr 340px}.lg\:overflow-y-auto{overflow-y:auto}.lg\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.lg\:border-\[\#2a2a2a\]{border-color:#2a2a2a}.lg\:pl-6{padding-left:calc(var(--spacing) * 6)}}.\[\&_svg\]\:h-3\.5 svg{height:calc(var(--spacing) * 3.5)}.\[\&_svg\]\:w-3\.5 svg{width:calc(var(--spacing) * 3.5)}}:root{--font-geist-sans:ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--font-geist-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}html,body{color:#fff;font-family:var(--font-geist-sans);background:#000}.scrollbar-thin{scrollbar-width:thin;scrollbar-color:#ffffff26 transparent}.scrollbar-thin::-webkit-scrollbar{width:6px;height:6px}.scrollbar-thin::-webkit-scrollbar-thumb{background:#ffffff26;border-radius:3px}.scrollbar-thin::-webkit-scrollbar-track{background:0 0}@keyframes page-in{0%{opacity:0;filter:blur(8px);transform:translateY(8px)}to{opacity:1;filter:blur();transform:translateY(0)}}.animate-page-in{animation:.15s ease-out page-in}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.animate-fade-in{animation:.35s ease-out fade-in}@keyframes cardIn{0%{opacity:0;filter:blur(4px);transform:translateY(8px)scale(.97)}to{opacity:1;filter:blur();transform:translateY(0)scale(1)}}.animate-card-in{opacity:0;animation:.3s cubic-bezier(.16,1,.3,1) forwards cardIn}.animate-card-in:first-child{animation-delay:0s}.animate-card-in:nth-child(2){animation-delay:50ms}.animate-card-in:nth-child(3){animation-delay:.1s}.animate-card-in:nth-child(4){animation-delay:.15s}@keyframes shimmer{0%{transform:translate(-100%)}to{transform:translate(400%)}}.animate-shimmer{animation:2s infinite shimmer}@keyframes dialog-overlay-in{0%{opacity:0}to{opacity:1}}@keyframes dialog-overlay-out{0%{opacity:1}to{opacity:0}}@keyframes dialog-panel-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes dialog-panel-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.95)}}.dialog-overlay[data-state=open]{animation:.2s dialog-overlay-in}.dialog-overlay[data-state=closed]{animation:.2s forwards dialog-overlay-out}.dialog-panel[data-state=open]{animation:.2s dialog-panel-in}.dialog-panel[data-state=closed]{animation:.2s forwards dialog-panel-out}.agent-modal[data-state=open]{animation:.14s dialog-overlay-in}.agent-modal[data-state=closed]{animation:.14s forwards dialog-overlay-out}@keyframes tab-in{0%{opacity:0;filter:blur(4px);transform:translateY(6px)}to{opacity:1;filter:blur();transform:translateY(0)}}.animate-tab-in{animation:.2s ease-out tab-in}.prose-markdown{color:#999;word-wrap:break-word;overflow-wrap:break-word;font-size:14px;line-height:1.7}.prose-markdown p{margin-bottom:.75em}.prose-markdown p:last-child{margin-bottom:0}.prose-markdown strong{color:#ccc;font-weight:600}.prose-markdown em{font-style:italic}.prose-markdown code{color:#ccc;font-variant-ligatures:none;background:#0a0a0a;border:1px solid #111;border-radius:4px;padding:.15em .4em;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.9em}.prose-markdown pre{font-variant-ligatures:none;background:0 0;border:none;border-radius:0;margin:0;padding:0}.prose-markdown pre code{color:inherit;background:0 0;border:none;padding:0;font-size:13px}.prose-markdown ul,.prose-markdown ol{margin-bottom:.75em;padding-left:1.5em}.prose-markdown ul{list-style-type:disc}.prose-markdown ol{list-style-type:decimal}.prose-markdown li{margin-bottom:.25em}.prose-markdown li>ul,.prose-markdown li>ol{margin-top:.25em;margin-bottom:.25em;padding-left:1.5em}.prose-markdown ol+ul{margin-top:-.5em;padding-left:3em}.prose-markdown h1,.prose-markdown h2,.prose-markdown h3,.prose-markdown h4,.prose-markdown h5,.prose-markdown h6{color:#ddd;margin-top:1em;margin-bottom:.5em;font-weight:600}.prose-markdown a{color:inherit;pointer-events:none;text-decoration:none}.prose-markdown blockquote{color:#777;border-left:3px solid #333;margin:.75em 0;padding-left:1em}.prose-markdown hr{border:none;border-top:1px solid #222;margin:1em 0}.prose-markdown>table{border-collapse:collapse;width:100%;margin:.75em 0}.prose-markdown>table th,.prose-markdown>table td{text-align:left;border:1px solid #333;padding:.4em .75em;font-size:13px}.prose-markdown>table th{color:#ccc;background:#1a1a1a;font-weight:600}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}
diff --git a/strix/viewer/static/assets/index-C0NveaV7.css b/strix/viewer/static/assets/index-C0NveaV7.css
deleted file mode 100644
index 6fcb9f0f..00000000
--- a/strix/viewer/static/assets/index-C0NveaV7.css
+++ /dev/null
@@ -1,10 +0,0 @@
-pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
- Theme: GitHub Dark
- Description: Dark theme as seen on github.com
- Author: github.com
- Maintainer: @Hirse
- Updated: 2021-05-15
-
- Outdated base version: https://github.com/primer/github-syntax-dark
- Current colors taken from GitHub's CSS
-*/.hljs{color:#c9d1d9;background:#0d1117}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#ff7b72}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#d2a8ff}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#79c0ff}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#a5d6ff}.hljs-built_in,.hljs-symbol{color:#ffa657}.hljs-comment,.hljs-code,.hljs-formula{color:#8b949e}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#7ee787}.hljs-subst{color:#c9d1d9}.hljs-section{color:#1f6feb;font-weight:700}.hljs-bullet{color:#f2cc60}.hljs-emphasis{color:#c9d1d9;font-style:italic}.hljs-strong{color:#c9d1d9;font-weight:700}.hljs-addition{color:#aff5b4;background-color:#033a16}.hljs-deletion{color:#ffdcd7;background-color:#67060c}.react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgba(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-color-default: inherit;--xy-node-border-default: 1px solid #1a192b;--xy-node-background-color-default: #fff;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;--xy-node-border-radius-default: 3px;--xy-handle-background-color-default: #1a192b;--xy-handle-border-color-default: #fff;--xy-selection-background-color-default: rgba(0, 89, 220, .08);--xy-selection-border-default: 1px dotted rgba(0, 89, 220, .8);--xy-controls-button-background-color-default: #fefefe;--xy-controls-button-background-color-hover-default: #f4f4f4;--xy-controls-button-color-default: inherit;--xy-controls-button-color-hover-default: inherit;--xy-controls-button-border-color-default: #eee;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #ffffff;--xy-edge-label-color-default: inherit;--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgba(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #555;--xy-background-pattern-lines-color-default: #333;--xy-background-pattern-cross-color-default: #333;--xy-node-color-default: #f8f8f8;--xy-node-border-default: 1px solid #3c3c3c;--xy-node-background-color-default: #1e1e1e;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #999;--xy-handle-background-color-default: #bebebe;--xy-handle-border-color-default: #1e1e1e;--xy-selection-background-color-default: rgba(200, 200, 220, .08);--xy-selection-border-default: 1px dotted rgba(200, 200, 220, .8);--xy-controls-button-background-color-default: #2b2b2b;--xy-controls-button-background-color-hover-default: #3e3e3e;--xy-controls-button-color-default: #f8f8f8;--xy-controls-button-color-hover-default: #fff;--xy-controls-button-border-color-default: #5b5b5b;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #141414;--xy-edge-label-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;touch-action:none}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));border-radius:100%}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px) translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px) translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column;box-shadow:var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default))}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px;border:none;background:var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));border-bottom:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );color:var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:var(--xy-node-border-radius, var(--xy-node-border-radius-default));width:150px;font-size:12px;color:var(--xy-node-color, var(--xy-node-color-default));text-align:center;border:var(--xy-node-border, var(--xy-node-border-default));background-color:var(--xy-node-background-color, var(--xy-node-background-color-default))}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color, var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );color:var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) )}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:5px;height:5px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));translate:-50% -50%}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color, var(--xy-edge-label-color-default))}/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial}}}@layer theme{:root,:host{--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-orange-400:oklch(75% .183 55.934);--color-orange-500:oklch(70.5% .213 47.604);--color-amber-400:oklch(82.8% .189 84.429);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-cyan-400:oklch(78.9% .154 211.53);--color-sky-400:oklch(74.6% .16 232.661);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-neutral-200:oklch(92.2% 0 none);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-snug:1.375;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-geist-sans);--default-mono-font-family:var(--font-geist-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}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;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{inset-inline:0}.top-0{top:0}.top-2{top:calc(var(--spacing) * 2)}.right-0{right:0}.right-2{right:calc(var(--spacing) * 2)}.bottom-0{bottom:0}.bottom-3{bottom:calc(var(--spacing) * 3)}.bottom-full{bottom:100%}.left-1\/2{left:50%}.left-3{left:calc(var(--spacing) * 3)}.z-10{z-index:10}.z-50{z-index:50}.z-\[60\]{z-index:60}.-mx-2{margin-inline:calc(var(--spacing) * -2)}.mx-auto{margin-inline:auto}.my-4{margin-block:calc(var(--spacing) * 4)}.-mt-0\.5{margin-top:calc(var(--spacing) * -.5)}.mt-0{margin-top:0}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\.5{margin-top:calc(var(--spacing) * 2.5)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-10{margin-top:calc(var(--spacing) * 10)}.mt-\[1px\]{margin-top:1px}.-mr-0\.5{margin-right:calc(var(--spacing) * -.5)}.mr-1{margin-right:var(--spacing)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mb-1{margin-bottom:var(--spacing)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-2\.5{margin-bottom:calc(var(--spacing) * 2.5)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.ml-0\.5{margin-left:calc(var(--spacing) * .5)}.ml-1{margin-left:var(--spacing)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-3{margin-left:calc(var(--spacing) * 3)}.ml-auto{margin-left:auto}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.\!h-1\.5{height:calc(var(--spacing) * 1.5)!important}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-12{height:calc(var(--spacing) * 12)}.h-\[30px\]{height:30px}.h-\[72px\]{height:72px}.h-\[80vh\]{height:80vh}.h-\[480px\]{height:480px}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-80{max-height:calc(var(--spacing) * 80)}.max-h-\[160px\]{max-height:160px}.max-h-\[400px\]{max-height:400px}.max-h-\[1200px\]{max-height:1200px}.min-h-screen{min-height:100vh}.\!w-1\.5{width:calc(var(--spacing) * 1.5)!important}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-2{width:calc(var(--spacing) * 2)}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-3{width:calc(var(--spacing) * 3)}.w-3\.5{width:calc(var(--spacing) * 3.5)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-10{width:calc(var(--spacing) * 10)}.w-11{width:calc(var(--spacing) * 11)}.w-12{width:calc(var(--spacing) * 12)}.w-14{width:calc(var(--spacing) * 14)}.w-28{width:calc(var(--spacing) * 28)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-\[1px\]{width:1px}.w-\[30px\]{width:30px}.w-\[180px\]{width:180px}.w-\[260px\]{width:260px}.w-full{width:100%}.w-max{width:max-content}.w-px{width:1px}.max-w-5xl{max-width:var(--container-5xl)}.max-w-\[72rem\]{max-width:72rem}.max-w-\[75\%\]{max-width:75%}.max-w-\[80\%\]{max-width:80%}.max-w-\[140px\]{max-width:140px}.max-w-\[160px\]{max-width:160px}.max-w-\[240px\]{max-width:240px}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:0}.min-w-\[80px\]{min-width:80px}.min-w-\[112px\]{min-width:112px}.min-w-\[160px\]{min-width:160px}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-rotate-90{rotate:-90deg}.animate-ping{animation:var(--animate-ping)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-\[7rem_1fr\]{grid-template-columns:7rem 1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-10{gap:calc(var(--spacing) * 10)}:where(.space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block:0}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-x-8{column-gap:calc(var(--spacing) * 8)}.gap-y-0\.5{row-gap:calc(var(--spacing) * .5)}.gap-y-1{row-gap:var(--spacing)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-3{row-gap:calc(var(--spacing) * 3)}.gap-y-6{row-gap:calc(var(--spacing) * 6)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.\!border-0{border-style:var(--tw-border-style)!important;border-width:0!important}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.\!border-none{--tw-border-style:none!important;border-style:none!important}.\!border-\[\#222\]{border-color:#222!important}.border-\[\#1a1a1a\]{border-color:#1a1a1a}.border-\[\#2a2a2a\]{border-color:#2a2a2a}.border-\[\#222\]{border-color:#222}.border-\[\#333\]{border-color:#333}.border-\[\#444\]{border-color:#444}.border-\[\#191919\]{border-color:#191919}.border-blue-500\/20{border-color:#3080ff33}@supports (color:color-mix(in lab,red,red)){.border-blue-500\/20{border-color:color-mix(in oklab,var(--color-blue-500) 20%,transparent)}}.border-blue-500\/30{border-color:#3080ff4d}@supports (color:color-mix(in lab,red,red)){.border-blue-500\/30{border-color:color-mix(in oklab,var(--color-blue-500) 30%,transparent)}}.border-blue-500\/40{border-color:#3080ff66}@supports (color:color-mix(in lab,red,red)){.border-blue-500\/40{border-color:color-mix(in oklab,var(--color-blue-500) 40%,transparent)}}.border-emerald-500\/20{border-color:#00bb7f33}@supports (color:color-mix(in lab,red,red)){.border-emerald-500\/20{border-color:color-mix(in oklab,var(--color-emerald-500) 20%,transparent)}}.border-emerald-500\/25{border-color:#00bb7f40}@supports (color:color-mix(in lab,red,red)){.border-emerald-500\/25{border-color:color-mix(in oklab,var(--color-emerald-500) 25%,transparent)}}.border-emerald-500\/30{border-color:#00bb7f4d}@supports (color:color-mix(in lab,red,red)){.border-emerald-500\/30{border-color:color-mix(in oklab,var(--color-emerald-500) 30%,transparent)}}.border-gray-500\/20{border-color:#6a728233}@supports (color:color-mix(in lab,red,red)){.border-gray-500\/20{border-color:color-mix(in oklab,var(--color-gray-500) 20%,transparent)}}.border-orange-500\/20{border-color:#fe6e0033}@supports (color:color-mix(in lab,red,red)){.border-orange-500\/20{border-color:color-mix(in oklab,var(--color-orange-500) 20%,transparent)}}.border-orange-500\/30{border-color:#fe6e004d}@supports (color:color-mix(in lab,red,red)){.border-orange-500\/30{border-color:color-mix(in oklab,var(--color-orange-500) 30%,transparent)}}.border-purple-500\/20{border-color:#ac4bff33}@supports (color:color-mix(in lab,red,red)){.border-purple-500\/20{border-color:color-mix(in oklab,var(--color-purple-500) 20%,transparent)}}.border-red-500\/20{border-color:#fb2c3633}@supports (color:color-mix(in lab,red,red)){.border-red-500\/20{border-color:color-mix(in oklab,var(--color-red-500) 20%,transparent)}}.border-red-500\/25{border-color:#fb2c3640}@supports (color:color-mix(in lab,red,red)){.border-red-500\/25{border-color:color-mix(in oklab,var(--color-red-500) 25%,transparent)}}.border-red-500\/30{border-color:#fb2c364d}@supports (color:color-mix(in lab,red,red)){.border-red-500\/30{border-color:color-mix(in oklab,var(--color-red-500) 30%,transparent)}}.border-white\/30{border-color:#ffffff4d}@supports (color:color-mix(in lab,red,red)){.border-white\/30{border-color:color-mix(in oklab,var(--color-white) 30%,transparent)}}.border-white\/\[0\.06\]{border-color:#ffffff0f}@supports (color:color-mix(in lab,red,red)){.border-white\/\[0\.06\]{border-color:color-mix(in oklab,var(--color-white) 6%,transparent)}}.border-white\/\[0\.08\]{border-color:#ffffff14}@supports (color:color-mix(in lab,red,red)){.border-white\/\[0\.08\]{border-color:color-mix(in oklab,var(--color-white) 8%,transparent)}}.border-white\/\[0\.18\]{border-color:#ffffff2e}@supports (color:color-mix(in lab,red,red)){.border-white\/\[0\.18\]{border-color:color-mix(in oklab,var(--color-white) 18%,transparent)}}.border-yellow-500\/20{border-color:#edb20033}@supports (color:color-mix(in lab,red,red)){.border-yellow-500\/20{border-color:color-mix(in oklab,var(--color-yellow-500) 20%,transparent)}}.border-yellow-500\/25{border-color:#edb20040}@supports (color:color-mix(in lab,red,red)){.border-yellow-500\/25{border-color:color-mix(in oklab,var(--color-yellow-500) 25%,transparent)}}.border-yellow-500\/30{border-color:#edb2004d}@supports (color:color-mix(in lab,red,red)){.border-yellow-500\/30{border-color:color-mix(in oklab,var(--color-yellow-500) 30%,transparent)}}.border-t-white{border-top-color:var(--color-white)}.\!bg-\[\#0a0a0a\]{background-color:#0a0a0a!important}.\!bg-\[\#444\]{background-color:#444!important}.\!bg-transparent{background-color:#0000!important}.bg-\[\#0a0a0a\]{background-color:#0a0a0a}.bg-\[\#1a1a1a\]{background-color:#1a1a1a}.bg-\[\#1e1e1e\]{background-color:#1e1e1e}.bg-\[\#2a2a2a\]{background-color:#2a2a2a}.bg-\[\#111\]{background-color:#111}.bg-\[\#222\]{background-color:#222}.bg-\[\#555\]{background-color:#555}.bg-\[\#888\]{background-color:#888}.bg-\[\#050505\]{background-color:#050505}.bg-\[\#252525\]{background-color:#252525}.bg-\[rgba\(255\,255\,255\,0\.02\)\]{background-color:#ffffff05}.bg-\[rgba\(255\,255\,255\,0\.04\)\]{background-color:#ffffff0a}.bg-black{background-color:var(--color-black)}.bg-black\/70{background-color:#000000b3}@supports (color:color-mix(in lab,red,red)){.bg-black\/70{background-color:color-mix(in oklab,var(--color-black) 70%,transparent)}}.bg-blue-400{background-color:var(--color-blue-400)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-blue-500\/10{background-color:#3080ff1a}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/10{background-color:color-mix(in oklab,var(--color-blue-500) 10%,transparent)}}.bg-blue-500\/20{background-color:#3080ff33}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/20{background-color:color-mix(in oklab,var(--color-blue-500) 20%,transparent)}}.bg-blue-500\/\[0\.12\]{background-color:#3080ff1f}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/\[0\.12\]{background-color:color-mix(in oklab,var(--color-blue-500) 12%,transparent)}}.bg-emerald-400{background-color:var(--color-emerald-400)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-emerald-500\/5{background-color:#00bb7f0d}@supports (color:color-mix(in lab,red,red)){.bg-emerald-500\/5{background-color:color-mix(in oklab,var(--color-emerald-500) 5%,transparent)}}.bg-emerald-500\/10{background-color:#00bb7f1a}@supports (color:color-mix(in lab,red,red)){.bg-emerald-500\/10{background-color:color-mix(in oklab,var(--color-emerald-500) 10%,transparent)}}.bg-emerald-500\/\[0\.06\]{background-color:#00bb7f0f}@supports (color:color-mix(in lab,red,red)){.bg-emerald-500\/\[0\.06\]{background-color:color-mix(in oklab,var(--color-emerald-500) 6%,transparent)}}.bg-gray-500{background-color:var(--color-gray-500)}.bg-gray-500\/10{background-color:#6a72821a}@supports (color:color-mix(in lab,red,red)){.bg-gray-500\/10{background-color:color-mix(in oklab,var(--color-gray-500) 10%,transparent)}}.bg-orange-500{background-color:var(--color-orange-500)}.bg-orange-500\/10{background-color:#fe6e001a}@supports (color:color-mix(in lab,red,red)){.bg-orange-500\/10{background-color:color-mix(in oklab,var(--color-orange-500) 10%,transparent)}}.bg-orange-500\/20{background-color:#fe6e0033}@supports (color:color-mix(in lab,red,red)){.bg-orange-500\/20{background-color:color-mix(in oklab,var(--color-orange-500) 20%,transparent)}}.bg-purple-500{background-color:var(--color-purple-500)}.bg-purple-500\/10{background-color:#ac4bff1a}@supports (color:color-mix(in lab,red,red)){.bg-purple-500\/10{background-color:color-mix(in oklab,var(--color-purple-500) 10%,transparent)}}.bg-purple-500\/\[0\.08\]{background-color:#ac4bff14}@supports (color:color-mix(in lab,red,red)){.bg-purple-500\/\[0\.08\]{background-color:color-mix(in oklab,var(--color-purple-500) 8%,transparent)}}.bg-red-400{background-color:var(--color-red-400)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-500\/5{background-color:#fb2c360d}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/5{background-color:color-mix(in oklab,var(--color-red-500) 5%,transparent)}}.bg-red-500\/10{background-color:#fb2c361a}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/10{background-color:color-mix(in oklab,var(--color-red-500) 10%,transparent)}}.bg-red-500\/15{background-color:#fb2c3626}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/15{background-color:color-mix(in oklab,var(--color-red-500) 15%,transparent)}}.bg-red-500\/20{background-color:#fb2c3633}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/20{background-color:color-mix(in oklab,var(--color-red-500) 20%,transparent)}}.bg-red-500\/\[0\.12\]{background-color:#fb2c361f}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/\[0\.12\]{background-color:color-mix(in oklab,var(--color-red-500) 12%,transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\/8{background-color:#ffffff14}@supports (color:color-mix(in lab,red,red)){.bg-white\/8{background-color:color-mix(in oklab,var(--color-white) 8%,transparent)}}.bg-white\/60{background-color:#fff9}@supports (color:color-mix(in lab,red,red)){.bg-white\/60{background-color:color-mix(in oklab,var(--color-white) 60%,transparent)}}.bg-white\/\[0\.03\]{background-color:#ffffff08}@supports (color:color-mix(in lab,red,red)){.bg-white\/\[0\.03\]{background-color:color-mix(in oklab,var(--color-white) 3%,transparent)}}.bg-white\/\[0\.08\]{background-color:#ffffff14}@supports (color:color-mix(in lab,red,red)){.bg-white\/\[0\.08\]{background-color:color-mix(in oklab,var(--color-white) 8%,transparent)}}.bg-white\/\[0\.015\]{background-color:#ffffff04}@supports (color:color-mix(in lab,red,red)){.bg-white\/\[0\.015\]{background-color:color-mix(in oklab,var(--color-white) 1.5%,transparent)}}.bg-yellow-400{background-color:var(--color-yellow-400)}.bg-yellow-500{background-color:var(--color-yellow-500)}.bg-yellow-500\/10{background-color:#edb2001a}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\/10{background-color:color-mix(in oklab,var(--color-yellow-500) 10%,transparent)}}.bg-yellow-500\/15{background-color:#edb20026}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\/15{background-color:color-mix(in oklab,var(--color-yellow-500) 15%,transparent)}}.bg-yellow-500\/20{background-color:#edb20033}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\/20{background-color:color-mix(in oklab,var(--color-yellow-500) 20%,transparent)}}.object-cover{object-fit:cover}.p-0{padding:0}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:var(--spacing)}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.p-10{padding:calc(var(--spacing) * 10)}.px-0{padding-inline:0}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-10{padding-top:calc(var(--spacing) * 10)}.pt-\[5px\]{padding-top:5px}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pb-2\.5{padding-bottom:calc(var(--spacing) * 2.5)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.pl-1\.5{padding-left:calc(var(--spacing) * 1.5)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-top{vertical-align:top}.font-mono{font-family:var(--font-geist-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[15px\]{font-size:15px}.text-\[16px\]{font-size:16px}.leading-6{--tw-leading:calc(var(--spacing) * 6);line-height:calc(var(--spacing) * 6)}.leading-\[22px\]{--tw-leading:22px;line-height:22px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[0\.4em\]{--tw-tracking:.4em;letter-spacing:.4em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.text-\[\#333\]{color:#333}.text-\[\#444\]{color:#444}.text-\[\#555\]{color:#555}.text-\[\#666\]{color:#666}.text-\[\#777\]{color:#777}.text-\[\#888\]{color:#888}.text-\[\#999\]{color:#999}.text-\[\#aaa\]{color:#aaa}.text-\[\#bbb\]{color:#bbb}.text-\[\#ddd\]{color:#ddd}.text-amber-400{color:var(--color-amber-400)}.text-amber-400\/80{color:#fcbb00cc}@supports (color:color-mix(in lab,red,red)){.text-amber-400\/80{color:color-mix(in oklab,var(--color-amber-400) 80%,transparent)}}.text-black{color:var(--color-black)}.text-blue-400{color:var(--color-blue-400)}.text-blue-400\/80{color:#54a2ffcc}@supports (color:color-mix(in lab,red,red)){.text-blue-400\/80{color:color-mix(in oklab,var(--color-blue-400) 80%,transparent)}}.text-blue-500{color:var(--color-blue-500)}.text-cyan-400{color:var(--color-cyan-400)}.text-cyan-400\/80{color:#00d2efcc}@supports (color:color-mix(in lab,red,red)){.text-cyan-400\/80{color:color-mix(in oklab,var(--color-cyan-400) 80%,transparent)}}.text-emerald-200{color:var(--color-emerald-200)}.text-emerald-400{color:var(--color-emerald-400)}.text-emerald-400\/30{color:#00d2944d}@supports (color:color-mix(in lab,red,red)){.text-emerald-400\/30{color:color-mix(in oklab,var(--color-emerald-400) 30%,transparent)}}.text-emerald-400\/60{color:#00d29499}@supports (color:color-mix(in lab,red,red)){.text-emerald-400\/60{color:color-mix(in oklab,var(--color-emerald-400) 60%,transparent)}}.text-emerald-400\/70{color:#00d294b3}@supports (color:color-mix(in lab,red,red)){.text-emerald-400\/70{color:color-mix(in oklab,var(--color-emerald-400) 70%,transparent)}}.text-emerald-400\/80{color:#00d294cc}@supports (color:color-mix(in lab,red,red)){.text-emerald-400\/80{color:color-mix(in oklab,var(--color-emerald-400) 80%,transparent)}}.text-gray-400{color:var(--color-gray-400)}.text-orange-400{color:var(--color-orange-400)}.text-orange-400\/60{color:#ff8b1a99}@supports (color:color-mix(in lab,red,red)){.text-orange-400\/60{color:color-mix(in oklab,var(--color-orange-400) 60%,transparent)}}.text-orange-400\/80{color:#ff8b1acc}@supports (color:color-mix(in lab,red,red)){.text-orange-400\/80{color:color-mix(in oklab,var(--color-orange-400) 80%,transparent)}}.text-orange-500{color:var(--color-orange-500)}.text-purple-400{color:var(--color-purple-400)}.text-purple-400\/60{color:#c07eff99}@supports (color:color-mix(in lab,red,red)){.text-purple-400\/60{color:color-mix(in oklab,var(--color-purple-400) 60%,transparent)}}.text-purple-400\/70{color:#c07effb3}@supports (color:color-mix(in lab,red,red)){.text-purple-400\/70{color:color-mix(in oklab,var(--color-purple-400) 70%,transparent)}}.text-purple-400\/80{color:#c07effcc}@supports (color:color-mix(in lab,red,red)){.text-purple-400\/80{color:color-mix(in oklab,var(--color-purple-400) 80%,transparent)}}.text-red-300{color:var(--color-red-300)}.text-red-400{color:var(--color-red-400)}.text-red-400\/30{color:#ff65684d}@supports (color:color-mix(in lab,red,red)){.text-red-400\/30{color:color-mix(in oklab,var(--color-red-400) 30%,transparent)}}.text-red-400\/50{color:#ff656880}@supports (color:color-mix(in lab,red,red)){.text-red-400\/50{color:color-mix(in oklab,var(--color-red-400) 50%,transparent)}}.text-red-400\/60{color:#ff656899}@supports (color:color-mix(in lab,red,red)){.text-red-400\/60{color:color-mix(in oklab,var(--color-red-400) 60%,transparent)}}.text-red-400\/70{color:#ff6568b3}@supports (color:color-mix(in lab,red,red)){.text-red-400\/70{color:color-mix(in oklab,var(--color-red-400) 70%,transparent)}}.text-red-400\/80{color:#ff6568cc}@supports (color:color-mix(in lab,red,red)){.text-red-400\/80{color:color-mix(in oklab,var(--color-red-400) 80%,transparent)}}.text-red-500{color:var(--color-red-500)}.text-sky-400{color:var(--color-sky-400)}.text-sky-400\/80{color:#00bcfecc}@supports (color:color-mix(in lab,red,red)){.text-sky-400\/80{color:color-mix(in oklab,var(--color-sky-400) 80%,transparent)}}.text-white{color:var(--color-white)}.text-white\/80{color:#fffc}@supports (color:color-mix(in lab,red,red)){.text-white\/80{color:color-mix(in oklab,var(--color-white) 80%,transparent)}}.text-yellow-400{color:var(--color-yellow-400)}.text-yellow-400\/80{color:#fac800cc}@supports (color:color-mix(in lab,red,red)){.text-yellow-400\/80{color:color-mix(in oklab,var(--color-yellow-400) 80%,transparent)}}.text-yellow-500{color:var(--color-yellow-500)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.line-through{text-decoration-line:line-through}.opacity-0{opacity:0}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-90{opacity:.9}.opacity-100{opacity:1}.\!shadow-none{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.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,)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\[font-variant-ligatures\:none\]{font-variant-ligatures:none}@media(hover:hover){.group-hover\:text-\[\#aaa\]:is(:where(.group):hover *){color:#aaa}.group-hover\:text-white:is(:where(.group):hover *){color:var(--color-white)}.group-hover\:opacity-90:is(:where(.group):hover *){opacity:.9}.group-hover\/code\:opacity-100:is(:where(.group\/code):hover *){opacity:1}}.placeholder\:text-\[\#444\]::placeholder{color:#444}@media(hover:hover){.hover\:border-\[\#333\]:hover{border-color:#333}.hover\:border-\[\#444\]:hover{border-color:#444}.hover\:border-emerald-500\/40:hover{border-color:#00bb7f66}@supports (color:color-mix(in lab,red,red)){.hover\:border-emerald-500\/40:hover{border-color:color-mix(in oklab,var(--color-emerald-500) 40%,transparent)}}.hover\:border-white\/\[0\.12\]:hover{border-color:#ffffff1f}@supports (color:color-mix(in lab,red,red)){.hover\:border-white\/\[0\.12\]:hover{border-color:color-mix(in oklab,var(--color-white) 12%,transparent)}}.hover\:border-white\/\[0\.16\]:hover{border-color:#ffffff29}@supports (color:color-mix(in lab,red,red)){.hover\:border-white\/\[0\.16\]:hover{border-color:color-mix(in oklab,var(--color-white) 16%,transparent)}}.hover\:bg-\[\#1a1a1a\]:hover{background-color:#1a1a1a}.hover\:bg-\[\#2a2a2a\]:hover{background-color:#2a2a2a}.hover\:bg-\[rgba\(255\,255\,255\,0\.06\)\]:hover{background-color:#ffffff0f}.hover\:bg-neutral-200:hover{background-color:var(--color-neutral-200)}.hover\:bg-white\/\[0\.06\]:hover{background-color:#ffffff0f}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/\[0\.06\]:hover{background-color:color-mix(in oklab,var(--color-white) 6%,transparent)}}.hover\:text-\[\#888\]:hover{color:#888}.hover\:text-\[\#aaa\]:hover{color:#aaa}.hover\:text-\[\#ccc\]:hover{color:#ccc}.hover\:text-white:hover{color:var(--color-white)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-90:hover{opacity:.9}.hover\:opacity-100:hover{opacity:1}}.focus\:border-\[\#444\]:focus{border-color:#444}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-white\/20:focus-visible{--tw-ring-color:#fff3}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-white\/20:focus-visible{--tw-ring-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\:opacity-60:disabled{opacity:.6}@media(min-width:40rem){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:p-8{padding:calc(var(--spacing) * 8)}}@media(min-width:48rem){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:64rem){.lg\:sticky{position:sticky}.lg\:top-6{top:calc(var(--spacing) * 6)}.lg\:block{display:block}.lg\:hidden{display:none}.lg\:max-h-\[calc\(100vh-3rem\)\]{max-height:calc(100vh - 3rem)}.lg\:grid-cols-\[1fr_340px\]{grid-template-columns:1fr 340px}.lg\:overflow-y-auto{overflow-y:auto}.lg\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.lg\:border-\[\#2a2a2a\]{border-color:#2a2a2a}.lg\:pl-6{padding-left:calc(var(--spacing) * 6)}}.\[\&_svg\]\:h-3\.5 svg{height:calc(var(--spacing) * 3.5)}.\[\&_svg\]\:w-3\.5 svg{width:calc(var(--spacing) * 3.5)}}:root{--font-geist-sans:ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--font-geist-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}html,body{color:#fff;font-family:var(--font-geist-sans);background:#000}@keyframes tab-in{0%{opacity:0;filter:blur(4px);transform:translateY(6px)}to{opacity:1;filter:blur();transform:translateY(0)}}.animate-tab-in{animation:.2s ease-out tab-in}.prose-markdown{color:#999;word-wrap:break-word;overflow-wrap:break-word;font-size:14px;line-height:1.7}.prose-markdown p{margin-bottom:.75em}.prose-markdown p:last-child{margin-bottom:0}.prose-markdown strong{color:#ccc;font-weight:600}.prose-markdown em{font-style:italic}.prose-markdown code{color:#ccc;font-variant-ligatures:none;background:#0a0a0a;border:1px solid #111;border-radius:4px;padding:.15em .4em;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.9em}.prose-markdown pre{font-variant-ligatures:none;background:0 0;border:none;border-radius:0;margin:0;padding:0}.prose-markdown pre code{color:inherit;background:0 0;border:none;padding:0;font-size:13px}.prose-markdown ul,.prose-markdown ol{margin-bottom:.75em;padding-left:1.5em}.prose-markdown ul{list-style-type:disc}.prose-markdown ol{list-style-type:decimal}.prose-markdown li{margin-bottom:.25em}.prose-markdown li>ul,.prose-markdown li>ol{margin-top:.25em;margin-bottom:.25em;padding-left:1.5em}.prose-markdown ol+ul{margin-top:-.5em;padding-left:3em}.prose-markdown h1,.prose-markdown h2,.prose-markdown h3,.prose-markdown h4,.prose-markdown h5,.prose-markdown h6{color:#ddd;margin-top:1em;margin-bottom:.5em;font-weight:600}.prose-markdown a{color:inherit;pointer-events:none;text-decoration:none}.prose-markdown blockquote{color:#777;border-left:3px solid #333;margin:.75em 0;padding-left:1em}.prose-markdown hr{border:none;border-top:1px solid #222;margin:1em 0}.prose-markdown>table{border-collapse:collapse;width:100%;margin:.75em 0}.prose-markdown>table th,.prose-markdown>table td{text-align:left;border:1px solid #333;padding:.4em .75em;font-size:13px}.prose-markdown>table th{color:#ccc;background:#1a1a1a;font-weight:600}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}
diff --git a/strix/viewer/static/assets/index-_2j_QfOq.js b/strix/viewer/static/assets/index-_2j_QfOq.js
new file mode 100644
index 00000000..b4867a21
--- /dev/null
+++ b/strix/viewer/static/assets/index-_2j_QfOq.js
@@ -0,0 +1,487 @@
+(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))a(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function r(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(s){if(s.ep)return;s.ep=!0;const o=r(s);fetch(s.href,o)}})();function To(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var oh={exports:{}},Yl={};/**
+ * @license React
+ * react-jsx-runtime.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var F0;function pk(){if(F0)return Yl;F0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(a,s,o){var c=null;if(o!==void 0&&(c=""+o),s.key!==void 0&&(c=""+s.key),"key"in s){o={};for(var d in s)d!=="key"&&(o[d]=s[d])}else o=s;return s=o.ref,{$$typeof:e,type:a,key:c,ref:s!==void 0?s:null,props:o}}return Yl.Fragment=t,Yl.jsx=r,Yl.jsxs=r,Yl}var G0;function gk(){return G0||(G0=1,oh.exports=pk()),oh.exports}var g=gk(),ch={exports:{}},Ve={};/**
+ * @license React
+ * react.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var V0;function bk(){if(V0)return Ve;V0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),y=Symbol.iterator;function x(j){return j===null||typeof j!="object"?null:(j=y&&j[y]||j["@@iterator"],typeof j=="function"?j:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,S={};function w(j,Y,z){this.props=j,this.context=Y,this.refs=S,this.updater=z||_}w.prototype.isReactComponent={},w.prototype.setState=function(j,Y){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,Y,"setState")},w.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function k(){}k.prototype=w.prototype;function E(j,Y,z){this.props=j,this.context=Y,this.refs=S,this.updater=z||_}var M=E.prototype=new k;M.constructor=E,N(M,w.prototype),M.isPureReactComponent=!0;var I=Array.isArray;function R(){}var U={H:null,A:null,T:null,S:null},B=Object.prototype.hasOwnProperty;function Z(j,Y,z){var F=z.ref;return{$$typeof:e,type:j,key:Y,ref:F!==void 0?F:null,props:z}}function D(j,Y){return Z(j.type,Y,j.props)}function L(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function G(j){var Y={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(z){return Y[z]})}var V=/\/+/g;function A(j,Y){return typeof j=="object"&&j!==null&&j.key!=null?G(""+j.key):Y.toString(36)}function q(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(R,R):(j.status="pending",j.then(function(Y){j.status==="pending"&&(j.status="fulfilled",j.value=Y)},function(Y){j.status==="pending"&&(j.status="rejected",j.reason=Y)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function O(j,Y,z,F,$){var Q=typeof j;(Q==="undefined"||Q==="boolean")&&(j=null);var J=!1;if(j===null)J=!0;else switch(Q){case"bigint":case"string":case"number":J=!0;break;case"object":switch(j.$$typeof){case e:case t:J=!0;break;case m:return J=j._init,O(J(j._payload),Y,z,F,$)}}if(J)return $=$(j),J=F===""?"."+A(j,0):F,I($)?(z="",J!=null&&(z=J.replace(V,"$&/")+"/"),O($,Y,z,"",function(ce){return ce})):$!=null&&(L($)&&($=D($,z+($.key==null||j&&j.key===$.key?"":(""+$.key).replace(V,"$&/")+"/")+J)),Y.push($)),1;J=0;var W=F===""?".":F+":";if(I(j))for(var te=0;te<j.length;te++)F=j[te],Q=W+A(F,te),J+=O(F,Y,z,Q,$);else if(te=x(j),typeof te=="function")for(j=te.call(j),te=0;!(F=j.next()).done;)F=F.value,Q=W+A(F,te++),J+=O(F,Y,z,Q,$);else if(Q==="object"){if(typeof j.then=="function")return O(q(j),Y,z,F,$);throw Y=String(j),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return J}function H(j,Y,z){if(j==null)return j;var F=[],$=0;return O(j,F,"","",function(Q){return Y.call(z,Q,$++)}),F}function X(j){if(j._status===-1){var Y=j._result;Y=Y(),Y.then(function(z){(j._status===0||j._status===-1)&&(j._status=1,j._result=z)},function(z){(j._status===0||j._status===-1)&&(j._status=2,j._result=z)}),j._status===-1&&(j._status=0,j._result=Y)}if(j._status===1)return j._result.default;throw j._result}var K=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},T={map:H,forEach:function(j,Y,z){H(j,function(){Y.apply(this,arguments)},z)},count:function(j){var Y=0;return H(j,function(){Y++}),Y},toArray:function(j){return H(j,function(Y){return Y})||[]},only:function(j){if(!L(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return Ve.Activity=p,Ve.Children=T,Ve.Component=w,Ve.Fragment=r,Ve.Profiler=s,Ve.PureComponent=E,Ve.StrictMode=a,Ve.Suspense=f,Ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,Ve.__COMPILER_RUNTIME={__proto__:null,c:function(j){return U.H.useMemoCache(j)}},Ve.cache=function(j){return function(){return j.apply(null,arguments)}},Ve.cacheSignal=function(){return null},Ve.cloneElement=function(j,Y,z){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var F=N({},j.props),$=j.key;if(Y!=null)for(Q in Y.key!==void 0&&($=""+Y.key),Y)!B.call(Y,Q)||Q==="key"||Q==="__self"||Q==="__source"||Q==="ref"&&Y.ref===void 0||(F[Q]=Y[Q]);var Q=arguments.length-2;if(Q===1)F.children=z;else if(1<Q){for(var J=Array(Q),W=0;W<Q;W++)J[W]=arguments[W+2];F.children=J}return Z(j.type,$,F)},Ve.createContext=function(j){return j={$$typeof:c,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:o,_context:j},j},Ve.createElement=function(j,Y,z){var F,$={},Q=null;if(Y!=null)for(F in Y.key!==void 0&&(Q=""+Y.key),Y)B.call(Y,F)&&F!=="key"&&F!=="__self"&&F!=="__source"&&($[F]=Y[F]);var J=arguments.length-2;if(J===1)$.children=z;else if(1<J){for(var W=Array(J),te=0;te<J;te++)W[te]=arguments[te+2];$.children=W}if(j&&j.defaultProps)for(F in J=j.defaultProps,J)$[F]===void 0&&($[F]=J[F]);return Z(j,Q,$)},Ve.createRef=function(){return{current:null}},Ve.forwardRef=function(j){return{$$typeof:d,render:j}},Ve.isValidElement=L,Ve.lazy=function(j){return{$$typeof:m,_payload:{_status:-1,_result:j},_init:X}},Ve.memo=function(j,Y){return{$$typeof:h,type:j,compare:Y===void 0?null:Y}},Ve.startTransition=function(j){var Y=U.T,z={};U.T=z;try{var F=j(),$=U.S;$!==null&&$(z,F),typeof F=="object"&&F!==null&&typeof F.then=="function"&&F.then(R,K)}catch(Q){K(Q)}finally{Y!==null&&z.types!==null&&(Y.types=z.types),U.T=Y}},Ve.unstable_useCacheRefresh=function(){return U.H.useCacheRefresh()},Ve.use=function(j){return U.H.use(j)},Ve.useActionState=function(j,Y,z){return U.H.useActionState(j,Y,z)},Ve.useCallback=function(j,Y){return U.H.useCallback(j,Y)},Ve.useContext=function(j){return U.H.useContext(j)},Ve.useDebugValue=function(){},Ve.useDeferredValue=function(j,Y){return U.H.useDeferredValue(j,Y)},Ve.useEffect=function(j,Y){return U.H.useEffect(j,Y)},Ve.useEffectEvent=function(j){return U.H.useEffectEvent(j)},Ve.useId=function(){return U.H.useId()},Ve.useImperativeHandle=function(j,Y,z){return U.H.useImperativeHandle(j,Y,z)},Ve.useInsertionEffect=function(j,Y){return U.H.useInsertionEffect(j,Y)},Ve.useLayoutEffect=function(j,Y){return U.H.useLayoutEffect(j,Y)},Ve.useMemo=function(j,Y){return U.H.useMemo(j,Y)},Ve.useOptimistic=function(j,Y){return U.H.useOptimistic(j,Y)},Ve.useReducer=function(j,Y,z){return U.H.useReducer(j,Y,z)},Ve.useRef=function(j){return U.H.useRef(j)},Ve.useState=function(j){return U.H.useState(j)},Ve.useSyncExternalStore=function(j,Y,z){return U.H.useSyncExternalStore(j,Y,z)},Ve.useTransition=function(){return U.H.useTransition()},Ve.version="19.2.7",Ve}var Y0;function Co(){return Y0||(Y0=1,ch.exports=bk()),ch.exports}var ee=Co();const ua=To(ee);var uh={exports:{}},Xl={},dh={exports:{}},fh={};/**
+ * @license React
+ * scheduler.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var X0;function xk(){return X0||(X0=1,(function(e){function t(O,H){var X=O.length;O.push(H);e:for(;0<X;){var K=X-1>>>1,T=O[K];if(0<s(T,H))O[K]=H,O[X]=T,X=K;else break e}}function r(O){return O.length===0?null:O[0]}function a(O){if(O.length===0)return null;var H=O[0],X=O.pop();if(X!==H){O[0]=X;e:for(var K=0,T=O.length,j=T>>>1;K<j;){var Y=2*(K+1)-1,z=O[Y],F=Y+1,$=O[F];if(0>s(z,X))F<T&&0>s($,z)?(O[K]=$,O[F]=X,K=F):(O[K]=z,O[Y]=X,K=Y);else if(F<T&&0>s($,X))O[K]=$,O[F]=X,K=F;else break e}}return H}function s(O,H){var X=O.sortIndex-H.sortIndex;return X!==0?X:O.id-H.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var f=[],h=[],m=1,p=null,y=3,x=!1,_=!1,N=!1,S=!1,w=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function M(O){for(var H=r(h);H!==null;){if(H.callback===null)a(h);else if(H.startTime<=O)a(h),H.sortIndex=H.expirationTime,t(f,H);else break;H=r(h)}}function I(O){if(N=!1,M(O),!_)if(r(f)!==null)_=!0,R||(R=!0,G());else{var H=r(h);H!==null&&q(I,H.startTime-O)}}var R=!1,U=-1,B=5,Z=-1;function D(){return S?!0:!(e.unstable_now()-Z<B)}function L(){if(S=!1,R){var O=e.unstable_now();Z=O;var H=!0;try{e:{_=!1,N&&(N=!1,k(U),U=-1),x=!0;var X=y;try{t:{for(M(O),p=r(f);p!==null&&!(p.expirationTime>O&&D());){var K=p.callback;if(typeof K=="function"){p.callback=null,y=p.priorityLevel;var T=K(p.expirationTime<=O);if(O=e.unstable_now(),typeof T=="function"){p.callback=T,M(O),H=!0;break t}p===r(f)&&a(f),M(O)}else a(f);p=r(f)}if(p!==null)H=!0;else{var j=r(h);j!==null&&q(I,j.startTime-O),H=!1}}break e}finally{p=null,y=X,x=!1}H=void 0}}finally{H?G():R=!1}}}var G;if(typeof E=="function")G=function(){E(L)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,A=V.port2;V.port1.onmessage=L,G=function(){A.postMessage(null)}}else G=function(){w(L,0)};function q(O,H){U=w(function(){O(e.unstable_now())},H)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(O){O.callback=null},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(O){switch(y){case 1:case 2:case 3:var H=3;break;default:H=y}var X=y;y=H;try{return O()}finally{y=X}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(O,H){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var X=y;y=O;try{return H()}finally{y=X}},e.unstable_scheduleCallback=function(O,H,X){var K=e.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?K+X:K):X=K,O){case 1:var T=-1;break;case 2:T=250;break;case 5:T=1073741823;break;case 4:T=1e4;break;default:T=5e3}return T=X+T,O={id:m++,callback:H,priorityLevel:O,startTime:X,expirationTime:T,sortIndex:-1},X>K?(O.sortIndex=X,t(h,O),r(f)===null&&O===r(h)&&(N?(k(U),U=-1):N=!0,q(I,X-K))):(O.sortIndex=T,t(f,O),_||x||(_=!0,R||(R=!0,G()))),O},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(O){var H=y;return function(){var X=y;y=H;try{return O.apply(this,arguments)}finally{y=X}}}})(fh)),fh}var K0;function yk(){return K0||(K0=1,dh.exports=xk()),dh.exports}var hh={exports:{}},kn={};/**
+ * @license React
+ * react-dom.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var Z0;function vk(){if(Z0)return kn;Z0=1;var e=Co();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var a={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function o(f,h,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:p==null?null:""+p,children:f,containerInfo:h,implementation:m}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return kn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,kn.createPortal=function(f,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return o(f,h,null,m)},kn.flushSync=function(f){var h=c.T,m=a.p;try{if(c.T=null,a.p=2,f)return f()}finally{c.T=h,a.p=m,a.d.f()}},kn.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,a.d.C(f,h))},kn.prefetchDNS=function(f){typeof f=="string"&&a.d.D(f)},kn.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var m=h.as,p=d(m,h.crossOrigin),y=typeof h.integrity=="string"?h.integrity:void 0,x=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?a.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:y,fetchPriority:x}):m==="script"&&a.d.X(f,{crossOrigin:p,integrity:y,fetchPriority:x,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},kn.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=d(h.as,h.crossOrigin);a.d.M(f,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&a.d.M(f)},kn.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,p=d(m,h.crossOrigin);a.d.L(f,m,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},kn.preloadModule=function(f,h){if(typeof f=="string")if(h){var m=d(h.as,h.crossOrigin);a.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else a.d.m(f)},kn.requestFormReset=function(f){a.d.r(f)},kn.unstable_batchedUpdates=function(f,h){return f(h)},kn.useFormState=function(f,h,m){return c.H.useFormState(f,h,m)},kn.useFormStatus=function(){return c.H.useHostTransitionStatus()},kn.version="19.2.7",kn}var Q0;function N_(){if(Q0)return hh.exports;Q0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),hh.exports=vk(),hh.exports}/**
+ * @license React
+ * react-dom-client.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var W0;function _k(){if(W0)return Xl;W0=1;var e=yk(),t=Co(),r=N_();function a(n){var i="https://react.dev/errors/"+n;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)i+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function o(n){var i=n,l=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(l=i.return),n=i.return;while(n)}return i.tag===3?l:null}function c(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function d(n){if(n.tag===31){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function f(n){if(o(n)!==n)throw Error(a(188))}function h(n){var i=n.alternate;if(!i){if(i=o(n),i===null)throw Error(a(188));return i!==n?null:n}for(var l=n,u=i;;){var b=l.return;if(b===null)break;var v=b.alternate;if(v===null){if(u=b.return,u!==null){l=u;continue}break}if(b.child===v.child){for(v=b.child;v;){if(v===l)return f(b),n;if(v===u)return f(b),i;v=v.sibling}throw Error(a(188))}if(l.return!==u.return)l=b,u=v;else{for(var C=!1,P=b.child;P;){if(P===l){C=!0,l=b,u=v;break}if(P===u){C=!0,u=b,l=v;break}P=P.sibling}if(!C){for(P=v.child;P;){if(P===l){C=!0,l=v,u=b;break}if(P===u){C=!0,u=v,l=b;break}P=P.sibling}if(!C)throw Error(a(189))}}if(l.alternate!==u)throw Error(a(190))}if(l.tag!==3)throw Error(a(188));return l.stateNode.current===l?n:i}function m(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n;for(n=n.child;n!==null;){if(i=m(n),i!==null)return i;n=n.sibling}return null}var p=Object.assign,y=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),E=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),D=Symbol.for("react.memo_cache_sentinel"),L=Symbol.iterator;function G(n){return n===null||typeof n!="object"?null:(n=L&&n[L]||n["@@iterator"],typeof n=="function"?n:null)}var V=Symbol.for("react.client.reference");function A(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===V?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case N:return"Fragment";case w:return"Profiler";case S:return"StrictMode";case I:return"Suspense";case R:return"SuspenseList";case Z:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case _:return"Portal";case E:return n.displayName||"Context";case k:return(n._context.displayName||"Context")+".Consumer";case M:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case U:return i=n.displayName||null,i!==null?i:A(n.type)||"Memo";case B:i=n._payload,n=n._init;try{return A(n(i))}catch{}}return null}var q=Array.isArray,O=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X={pending:!1,data:null,method:null,action:null},K=[],T=-1;function j(n){return{current:n}}function Y(n){0>T||(n.current=K[T],K[T]=null,T--)}function z(n,i){T++,K[T]=n.current,n.current=i}var F=j(null),$=j(null),Q=j(null),J=j(null);function W(n,i){switch(z(Q,i),z($,n),z(F,null),i.nodeType){case 9:case 11:n=(n=i.documentElement)&&(n=n.namespaceURI)?h0(n):0;break;default:if(n=i.tagName,i=i.namespaceURI)i=h0(i),n=m0(i,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}Y(F),z(F,n)}function te(){Y(F),Y($),Y(Q)}function ce(n){n.memoizedState!==null&&z(J,n);var i=F.current,l=m0(i,n.type);i!==l&&(z($,n),z(F,l))}function fe(n){$.current===n&&(Y(F),Y($)),J.current===n&&(Y(J),Pl._currentValue=X)}var be,we;function Ne(n){if(be===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);be=i&&i[1]||"",we=-1<l.stack.indexOf(`
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
+`+be+n+we}var je=!1;function $e(n,i){if(!n||je)return"";je=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(i){var ge=function(){throw Error()};if(Object.defineProperty(ge.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ge,[])}catch(de){var oe=de}Reflect.construct(n,[],ge)}else{try{ge.call()}catch(de){oe=de}n.call(ge.prototype)}}else{try{throw Error()}catch(de){oe=de}(ge=n())&&typeof ge.catch=="function"&&ge.catch(function(){})}}catch(de){if(de&&oe&&typeof de.stack=="string")return[de.stack,oe.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var b=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");b&&b.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=u.DetermineComponentFrameRoot(),C=v[0],P=v[1];if(C&&P){var ne=C.split(`
+`),le=P.split(`
+`);for(b=u=0;u<ne.length&&!ne[u].includes("DetermineComponentFrameRoot");)u++;for(;b<le.length&&!le[b].includes("DetermineComponentFrameRoot");)b++;if(u===ne.length||b===le.length)for(u=ne.length-1,b=le.length-1;1<=u&&0<=b&&ne[u]!==le[b];)b--;for(;1<=u&&0<=b;u--,b--)if(ne[u]!==le[b]){if(u!==1||b!==1)do if(u--,b--,0>b||ne[u]!==le[b]){var he=`
+`+ne[u].replace(" at new "," at ");return n.displayName&&he.includes("<anonymous>")&&(he=he.replace("<anonymous>",n.displayName)),he}while(1<=u&&0<=b);break}}}finally{je=!1,Error.prepareStackTrace=l}return(l=n?n.displayName||n.name:"")?Ne(l):""}function st(n,i){switch(n.tag){case 26:case 27:case 5:return Ne(n.type);case 16:return Ne("Lazy");case 13:return n.child!==i&&i!==null?Ne("Suspense Fallback"):Ne("Suspense");case 19:return Ne("SuspenseList");case 0:case 15:return $e(n.type,!1);case 11:return $e(n.type.render,!1);case 1:return $e(n.type,!0);case 31:return Ne("Activity");default:return""}}function Rt(n){try{var i="",l=null;do i+=st(n,l),l=n,n=n.return;while(n);return i}catch(u){return`
+Error generating stack: `+u.message+`
+`+u.stack}}var Yt=Object.prototype.hasOwnProperty,Pt=e.unstable_scheduleCallback,Xt=e.unstable_cancelCallback,Yn=e.unstable_shouldYield,wn=e.unstable_requestPaint,ct=e.unstable_now,It=e.unstable_getCurrentPriorityLevel,ue=e.unstable_ImmediatePriority,xe=e.unstable_UserBlockingPriority,Oe=e.unstable_NormalPriority,Fe=e.unstable_LowPriority,Ze=e.unstable_IdlePriority,on=e.log,En=e.unstable_setDisableYieldValue,Kt=null,At=null;function Wt(n){if(typeof on=="function"&&En(n),At&&typeof At.setStrictMode=="function")try{At.setStrictMode(Kt,n)}catch{}}var ut=Math.clz32?Math.clz32:Ni,zn=Math.log,cn=Math.LN2;function Ni(n){return n>>>=0,n===0?32:31-(zn(n)/cn|0)|0}var nt=256,Xn=262144,An=4194304;function hn(n){var i=n&42;if(i!==0)return i;switch(n&-n){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function re(n,i,l){var u=n.pendingLanes;if(u===0)return 0;var b=0,v=n.suspendedLanes,C=n.pingedLanes;n=n.warmLanes;var P=u&134217727;return P!==0?(u=P&~v,u!==0?b=hn(u):(C&=P,C!==0?b=hn(C):l||(l=P&~n,l!==0&&(b=hn(l))))):(P=u&~v,P!==0?b=hn(P):C!==0?b=hn(C):l||(l=u&~n,l!==0&&(b=hn(l)))),b===0?0:i!==0&&i!==b&&(i&v)===0&&(v=b&-b,l=i&-i,v>=l||v===32&&(l&4194048)!==0)?i:b}function me(n,i){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&i)===0}function Ee(n,i){switch(n){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32: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 i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Pe(){var n=An;return An<<=1,(An&62914560)===0&&(An=4194304),n}function St(n){for(var i=[],l=0;31>l;l++)i.push(n);return i}function gt(n,i){n.pendingLanes|=i,i!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Ae(n,i,l,u,b,v){var C=n.pendingLanes;n.pendingLanes=l,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=l,n.entangledLanes&=l,n.errorRecoveryDisabledLanes&=l,n.shellSuspendCounter=0;var P=n.entanglements,ne=n.expirationTimes,le=n.hiddenUpdates;for(l=C&~l;0<l;){var he=31-ut(l),ge=1<<he;P[he]=0,ne[he]=-1;var oe=le[he];if(oe!==null)for(le[he]=null,he=0;he<oe.length;he++){var de=oe[he];de!==null&&(de.lane&=-536870913)}l&=~ge}u!==0&&Se(n,u,0),v!==0&&b===0&&n.tag!==0&&(n.suspendedLanes|=v&~(C&~i))}function Se(n,i,l){n.pendingLanes|=i,n.suspendedLanes&=~i;var u=31-ut(i);n.entangledLanes|=i,n.entanglements[u]=n.entanglements[u]|1073741824|l&261930}function Ue(n,i){var l=n.entangledLanes|=i;for(n=n.entanglements;l;){var u=31-ut(l),b=1<<u;b&i|n[u]&i&&(n[u]|=i),l&=~b}}function Bt(n,i){var l=i&-i;return l=(l&42)!==0?1:Mt(l),(l&(n.suspendedLanes|i))!==0?0:l}function Mt(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function xr(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Si(){var n=H.p;return n!==0?n:(n=window.event,n===void 0?32:I0(n.type))}function ki(n,i){var l=H.p;try{return H.p=n,i()}finally{H.p=l}}var sr=Math.random().toString(36).slice(2),Ut="__reactFiber$"+sr,mn="__reactProps$"+sr,yr="__reactContainer$"+sr,Ti="__reactEvents$"+sr,pa="__reactListeners$"+sr,Ci="__reactHandles$"+sr,Ja="__reactResources$"+sr,Wr="__reactMarker$"+sr;function ga(n){delete n[Ut],delete n[mn],delete n[Ti],delete n[pa],delete n[Ci]}function bn(n){var i=n[Ut];if(i)return i;for(var l=n.parentNode;l;){if(i=l[yr]||l[Ut]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(n=_0(n);n!==null;){if(l=n[Ut])return l;n=_0(n)}return i}n=l,l=n.parentNode}return null}function vr(n){if(n=n[Ut]||n[yr]){var i=n.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return n}return null}function _r(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n.stateNode;throw Error(a(33))}function Ir(n){var i=n[Ja];return i||(i=n[Ja]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Ft(n){n[Wr]=!0}var es=new Set,Jr={};function wr(n,i){ye(n,i),ye(n+"Capture",i)}function ye(n,i){for(Jr[n]=i,n=0;n<i.length;n++)es.add(i[n])}var Le=RegExp("^[: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]*$"),Qe={},ft={};function Ht(n){return Yt.call(ft,n)?!0:Yt.call(Qe,n)?!1:Le.test(n)?ft[n]=!0:(Qe[n]=!0,!1)}function pn(n,i,l){if(Ht(i))if(l===null)n.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":n.removeAttribute(i);return;case"boolean":var u=i.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){n.removeAttribute(i);return}}n.setAttribute(i,""+l)}}function Mn(n,i,l){if(l===null)n.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttribute(i,""+l)}}function Nn(n,i,l,u){if(u===null)n.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(l);return}n.setAttributeNS(i,l,""+u)}}function _t(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function On(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function ts(n,i,l){var u=Object.getOwnPropertyDescriptor(n.constructor.prototype,i);if(!n.hasOwnProperty(i)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var b=u.get,v=u.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return b.call(this)},set:function(C){l=""+C,v.call(this,C)}}),Object.defineProperty(n,i,{enumerable:u.enumerable}),{getValue:function(){return l},setValue:function(C){l=""+C},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function Ai(n){if(!n._valueTracker){var i=On(n)?"checked":"value";n._valueTracker=ts(n,i,""+n[i])}}function Br(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var l=i.getValue(),u="";return n&&(u=On(n)?n.checked?"true":"false":n.value),n=u,n!==l?(i.setValue(n),!0):!1}function Mi(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var ns=/[\n"\\]/g;function Sn(n){return n.replace(ns,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function ba(n,i,l,u,b,v,C,P){n.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?n.type=C:n.removeAttribute("type"),i!=null?C==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+_t(i)):n.value!==""+_t(i)&&(n.value=""+_t(i)):C!=="submit"&&C!=="reset"||n.removeAttribute("value"),i!=null?Oi(n,C,_t(i)):l!=null?Oi(n,C,_t(l)):u!=null&&n.removeAttribute("value"),b==null&&v!=null&&(n.defaultChecked=!!v),b!=null&&(n.checked=b&&typeof b!="function"&&typeof b!="symbol"),P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"?n.name=""+_t(P):n.removeAttribute("name")}function Er(n,i,l,u,b,v,C,P){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(n.type=v),i!=null||l!=null){if(!(v!=="submit"&&v!=="reset"||i!=null)){Ai(n);return}l=l!=null?""+_t(l):"",i=i!=null?""+_t(i):l,P||i===n.value||(n.value=i),n.defaultValue=i}u=u??b,u=typeof u!="function"&&typeof u!="symbol"&&!!u,n.checked=P?n.checked:!!u,n.defaultChecked=!!u,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(n.name=C),Ai(n)}function Oi(n,i,l){i==="number"&&Mi(n.ownerDocument)===n||n.defaultValue===""+l||(n.defaultValue=""+l)}function un(n,i,l,u){if(n=n.options,i){i={};for(var b=0;b<l.length;b++)i["$"+l[b]]=!0;for(l=0;l<n.length;l++)b=i.hasOwnProperty("$"+n[l].value),n[l].selected!==b&&(n[l].selected=b),b&&u&&(n[l].defaultSelected=!0)}else{for(l=""+_t(l),i=null,b=0;b<n.length;b++){if(n[b].value===l){n[b].selected=!0,u&&(n[b].defaultSelected=!0);return}i!==null||n[b].disabled||(i=n[b])}i!==null&&(i.selected=!0)}}function xa(n,i,l){if(i!=null&&(i=""+_t(i),i!==n.value&&(n.value=i),l==null)){n.defaultValue!==i&&(n.defaultValue=i);return}n.defaultValue=l!=null?""+_t(l):""}function rs(n,i,l,u){if(i==null){if(u!=null){if(l!=null)throw Error(a(92));if(q(u)){if(1<u.length)throw Error(a(93));u=u[0]}l=u}l==null&&(l=""),i=l}l=_t(i),n.defaultValue=l,u=n.textContent,u===l&&u!==""&&u!==null&&(n.value=u),Ai(n)}function qe(n,i){if(i){var l=n.firstChild;if(l&&l===n.lastChild&&l.nodeType===3){l.nodeValue=i;return}}n.textContent=i}var Ho=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Jt(n,i,l){var u=i.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?u?n.setProperty(i,""):i==="float"?n.cssFloat="":n[i]="":u?n.setProperty(i,l):typeof l!="number"||l===0||Ho.has(i)?i==="float"?n.cssFloat=l:n[i]=(""+l).trim():n[i]=l+"px"}function bt(n,i,l){if(i!=null&&typeof i!="object")throw Error(a(62));if(n=n.style,l!=null){for(var u in l)!l.hasOwnProperty(u)||i!=null&&i.hasOwnProperty(u)||(u.indexOf("--")===0?n.setProperty(u,""):u==="float"?n.cssFloat="":n[u]="");for(var b in i)u=i[b],i.hasOwnProperty(b)&&l[b]!==u&&Jt(n,b,u)}else for(var v in i)i.hasOwnProperty(v)&&Jt(n,v,i[v])}function Ri(n){if(n.indexOf("-")===-1)return!1;switch(n){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 ei=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),il=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Di(n){return il.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function _e(){}var Re=null;function Ye(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var rt=null,$t=null;function lr(n){var i=vr(n);if(i&&(n=i.stateNode)){var l=n[mn]||null;e:switch(n=i.stateNode,i.type){case"input":if(ba(n,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),i=l.name,l.type==="radio"&&i!=null){for(l=n;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Sn(""+i)+'"][type="radio"]'),i=0;i<l.length;i++){var u=l[i];if(u!==n&&u.form===n.form){var b=u[mn]||null;if(!b)throw Error(a(90));ba(u,b.value,b.defaultValue,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name)}}for(i=0;i<l.length;i++)u=l[i],u.form===n.form&&Br(u)}break e;case"textarea":xa(n,l.value,l.defaultValue);break e;case"select":i=l.value,i!=null&&un(n,!!l.multiple,i,!1)}}}var al=!1;function $o(n,i,l){if(al)return n(i,l);al=!0;try{var u=n(i);return u}finally{if(al=!1,(rt!==null||$t!==null)&&(Cc(),rt&&(i=rt,n=$t,$t=rt=null,lr(i),n)))for(i=0;i<n.length;i++)lr(n[i])}}function sl(n,i){var l=n.stateNode;if(l===null)return null;var u=l[mn]||null;if(u===null)return null;l=u[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(n=n.type,u=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!u;break e;default:n=!1}if(n)return null;if(l&&typeof l!="function")throw Error(a(231,i,typeof l));return l}var ti=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ld=!1;if(ti)try{var ll={};Object.defineProperty(ll,"passive",{get:function(){ld=!0}}),window.addEventListener("test",ll,ll),window.removeEventListener("test",ll,ll)}catch{ld=!1}var ji=null,od=null,qo=null;function mg(){if(qo)return qo;var n,i=od,l=i.length,u,b="value"in ji?ji.value:ji.textContent,v=b.length;for(n=0;n<l&&i[n]===b[n];n++);var C=l-n;for(u=1;u<=C&&i[l-u]===b[v-u];u++);return qo=b.slice(n,1<u?1-u:void 0)}function Po(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function Fo(){return!0}function pg(){return!1}function In(n){function i(l,u,b,v,C){this._reactName=l,this._targetInst=b,this.type=u,this.nativeEvent=v,this.target=C,this.currentTarget=null;for(var P in n)n.hasOwnProperty(P)&&(l=n[P],this[P]=l?l(v):v[P]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?Fo:pg,this.isPropagationStopped=pg,this}return p(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Fo)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Fo)},persist:function(){},isPersistent:Fo}),i}var ya={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Go=In(ya),ol=p({},ya,{view:0,detail:0}),hS=In(ol),cd,ud,cl,Vo=p({},ol,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fd,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==cl&&(cl&&n.type==="mousemove"?(cd=n.screenX-cl.screenX,ud=n.screenY-cl.screenY):ud=cd=0,cl=n),cd)},movementY:function(n){return"movementY"in n?n.movementY:ud}}),gg=In(Vo),mS=p({},Vo,{dataTransfer:0}),pS=In(mS),gS=p({},ol,{relatedTarget:0}),dd=In(gS),bS=p({},ya,{animationName:0,elapsedTime:0,pseudoElement:0}),xS=In(bS),yS=p({},ya,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),vS=In(yS),_S=p({},ya,{data:0}),bg=In(_S),wS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ES={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},NS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function SS(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=NS[n])?!!i[n]:!1}function fd(){return SS}var kS=p({},ol,{key:function(n){if(n.key){var i=wS[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=Po(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?ES[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fd,charCode:function(n){return n.type==="keypress"?Po(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Po(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),TS=In(kS),CS=p({},Vo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xg=In(CS),AS=p({},ol,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fd}),MS=In(AS),OS=p({},ya,{propertyName:0,elapsedTime:0,pseudoElement:0}),RS=In(OS),DS=p({},Vo,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),jS=In(DS),LS=p({},ya,{newState:0,oldState:0}),zS=In(LS),IS=[9,13,27,32],hd=ti&&"CompositionEvent"in window,ul=null;ti&&"documentMode"in document&&(ul=document.documentMode);var BS=ti&&"TextEvent"in window&&!ul,yg=ti&&(!hd||ul&&8<ul&&11>=ul),vg=" ",_g=!1;function wg(n,i){switch(n){case"keyup":return IS.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Eg(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var is=!1;function US(n,i){switch(n){case"compositionend":return Eg(i);case"keypress":return i.which!==32?null:(_g=!0,vg);case"textInput":return n=i.data,n===vg&&_g?null:n;default:return null}}function HS(n,i){if(is)return n==="compositionend"||!hd&&wg(n,i)?(n=mg(),qo=od=ji=null,is=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return yg&&i.locale!=="ko"?null:i.data;default:return null}}var $S={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ng(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!$S[n.type]:i==="textarea"}function Sg(n,i,l,u){rt?$t?$t.push(u):$t=[u]:rt=u,i=Lc(i,"onChange"),0<i.length&&(l=new Go("onChange","change",null,l,u),n.push({event:l,listeners:i}))}var dl=null,fl=null;function qS(n){l0(n,0)}function Yo(n){var i=_r(n);if(Br(i))return n}function kg(n,i){if(n==="change")return i}var Tg=!1;if(ti){var md;if(ti){var pd="oninput"in document;if(!pd){var Cg=document.createElement("div");Cg.setAttribute("oninput","return;"),pd=typeof Cg.oninput=="function"}md=pd}else md=!1;Tg=md&&(!document.documentMode||9<document.documentMode)}function Ag(){dl&&(dl.detachEvent("onpropertychange",Mg),fl=dl=null)}function Mg(n){if(n.propertyName==="value"&&Yo(fl)){var i=[];Sg(i,fl,n,Ye(n)),$o(qS,i)}}function PS(n,i,l){n==="focusin"?(Ag(),dl=i,fl=l,dl.attachEvent("onpropertychange",Mg)):n==="focusout"&&Ag()}function FS(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Yo(fl)}function GS(n,i){if(n==="click")return Yo(i)}function VS(n,i){if(n==="input"||n==="change")return Yo(i)}function YS(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var Kn=typeof Object.is=="function"?Object.is:YS;function hl(n,i){if(Kn(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var l=Object.keys(n),u=Object.keys(i);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var b=l[u];if(!Yt.call(i,b)||!Kn(n[b],i[b]))return!1}return!0}function Og(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Rg(n,i){var l=Og(n);n=0;for(var u;l;){if(l.nodeType===3){if(u=n+l.textContent.length,n<=i&&u>=i)return{node:l,offset:i-n};n=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Og(l)}}function Dg(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?Dg(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function jg(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var i=Mi(n.document);i instanceof n.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)n=i.contentWindow;else break;i=Mi(n.document)}return i}function gd(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}var XS=ti&&"documentMode"in document&&11>=document.documentMode,as=null,bd=null,ml=null,xd=!1;function Lg(n,i,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;xd||as==null||as!==Mi(u)||(u=as,"selectionStart"in u&&gd(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),ml&&hl(ml,u)||(ml=u,u=Lc(bd,"onSelect"),0<u.length&&(i=new Go("onSelect","select",null,i,l),n.push({event:i,listeners:u}),i.target=as)))}function va(n,i){var l={};return l[n.toLowerCase()]=i.toLowerCase(),l["Webkit"+n]="webkit"+i,l["Moz"+n]="moz"+i,l}var ss={animationend:va("Animation","AnimationEnd"),animationiteration:va("Animation","AnimationIteration"),animationstart:va("Animation","AnimationStart"),transitionrun:va("Transition","TransitionRun"),transitionstart:va("Transition","TransitionStart"),transitioncancel:va("Transition","TransitionCancel"),transitionend:va("Transition","TransitionEnd")},yd={},zg={};ti&&(zg=document.createElement("div").style,"AnimationEvent"in window||(delete ss.animationend.animation,delete ss.animationiteration.animation,delete ss.animationstart.animation),"TransitionEvent"in window||delete ss.transitionend.transition);function _a(n){if(yd[n])return yd[n];if(!ss[n])return n;var i=ss[n],l;for(l in i)if(i.hasOwnProperty(l)&&l in zg)return yd[n]=i[l];return n}var Ig=_a("animationend"),Bg=_a("animationiteration"),Ug=_a("animationstart"),KS=_a("transitionrun"),ZS=_a("transitionstart"),QS=_a("transitioncancel"),Hg=_a("transitionend"),$g=new Map,vd="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");vd.push("scrollEnd");function Nr(n,i){$g.set(n,i),wr(i,[n])}var Xo=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},or=[],ls=0,_d=0;function Ko(){for(var n=ls,i=_d=ls=0;i<n;){var l=or[i];or[i++]=null;var u=or[i];or[i++]=null;var b=or[i];or[i++]=null;var v=or[i];if(or[i++]=null,u!==null&&b!==null){var C=u.pending;C===null?b.next=b:(b.next=C.next,C.next=b),u.pending=b}v!==0&&qg(l,b,v)}}function Zo(n,i,l,u){or[ls++]=n,or[ls++]=i,or[ls++]=l,or[ls++]=u,_d|=u,n.lanes|=u,n=n.alternate,n!==null&&(n.lanes|=u)}function wd(n,i,l,u){return Zo(n,i,l,u),Qo(n)}function wa(n,i){return Zo(n,null,null,i),Qo(n)}function qg(n,i,l){n.lanes|=l;var u=n.alternate;u!==null&&(u.lanes|=l);for(var b=!1,v=n.return;v!==null;)v.childLanes|=l,u=v.alternate,u!==null&&(u.childLanes|=l),v.tag===22&&(n=v.stateNode,n===null||n._visibility&1||(b=!0)),n=v,v=v.return;return n.tag===3?(v=n.stateNode,b&&i!==null&&(b=31-ut(l),n=v.hiddenUpdates,u=n[b],u===null?n[b]=[i]:u.push(i),i.lane=l|536870912),v):null}function Qo(n){if(50<zl)throw zl=0,Rf=null,Error(a(185));for(var i=n.return;i!==null;)n=i,i=n.return;return n.tag===3?n.stateNode:null}var os={};function WS(n,i,l,u){this.tag=n,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Zn(n,i,l,u){return new WS(n,i,l,u)}function Ed(n){return n=n.prototype,!(!n||!n.isReactComponent)}function ni(n,i){var l=n.alternate;return l===null?(l=Zn(n.tag,i,n.key,n.mode),l.elementType=n.elementType,l.type=n.type,l.stateNode=n.stateNode,l.alternate=n,n.alternate=l):(l.pendingProps=i,l.type=n.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=n.flags&65011712,l.childLanes=n.childLanes,l.lanes=n.lanes,l.child=n.child,l.memoizedProps=n.memoizedProps,l.memoizedState=n.memoizedState,l.updateQueue=n.updateQueue,i=n.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},l.sibling=n.sibling,l.index=n.index,l.ref=n.ref,l.refCleanup=n.refCleanup,l}function Pg(n,i){n.flags&=65011714;var l=n.alternate;return l===null?(n.childLanes=0,n.lanes=i,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=l.childLanes,n.lanes=l.lanes,n.child=l.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=l.memoizedProps,n.memoizedState=l.memoizedState,n.updateQueue=l.updateQueue,n.type=l.type,i=l.dependencies,n.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),n}function Wo(n,i,l,u,b,v){var C=0;if(u=n,typeof n=="function")Ed(n)&&(C=1);else if(typeof n=="string")C=rk(n,l,F.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case Z:return n=Zn(31,l,i,b),n.elementType=Z,n.lanes=v,n;case N:return Ea(l.children,b,v,i);case S:C=8,b|=24;break;case w:return n=Zn(12,l,i,b|2),n.elementType=w,n.lanes=v,n;case I:return n=Zn(13,l,i,b),n.elementType=I,n.lanes=v,n;case R:return n=Zn(19,l,i,b),n.elementType=R,n.lanes=v,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case E:C=10;break e;case k:C=9;break e;case M:C=11;break e;case U:C=14;break e;case B:C=16,u=null;break e}C=29,l=Error(a(130,n===null?"null":typeof n,"")),u=null}return i=Zn(C,l,i,b),i.elementType=n,i.type=u,i.lanes=v,i}function Ea(n,i,l,u){return n=Zn(7,n,u,i),n.lanes=l,n}function Nd(n,i,l){return n=Zn(6,n,null,i),n.lanes=l,n}function Fg(n){var i=Zn(18,null,null,0);return i.stateNode=n,i}function Sd(n,i,l){return i=Zn(4,n.children!==null?n.children:[],n.key,i),i.lanes=l,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}var Gg=new WeakMap;function cr(n,i){if(typeof n=="object"&&n!==null){var l=Gg.get(n);return l!==void 0?l:(i={value:n,source:i,stack:Rt(i)},Gg.set(n,i),i)}return{value:n,source:i,stack:Rt(i)}}var cs=[],us=0,Jo=null,pl=0,ur=[],dr=0,Li=null,Ur=1,Hr="";function ri(n,i){cs[us++]=pl,cs[us++]=Jo,Jo=n,pl=i}function Vg(n,i,l){ur[dr++]=Ur,ur[dr++]=Hr,ur[dr++]=Li,Li=n;var u=Ur;n=Hr;var b=32-ut(u)-1;u&=~(1<<b),l+=1;var v=32-ut(i)+b;if(30<v){var C=b-b%5;v=(u&(1<<C)-1).toString(32),u>>=C,b-=C,Ur=1<<32-ut(i)+b|l<<b|u,Hr=v+n}else Ur=1<<v|l<<b|u,Hr=n}function kd(n){n.return!==null&&(ri(n,1),Vg(n,1,0))}function Td(n){for(;n===Jo;)Jo=cs[--us],cs[us]=null,pl=cs[--us],cs[us]=null;for(;n===Li;)Li=ur[--dr],ur[dr]=null,Hr=ur[--dr],ur[dr]=null,Ur=ur[--dr],ur[dr]=null}function Yg(n,i){ur[dr++]=Ur,ur[dr++]=Hr,ur[dr++]=Li,Ur=i.id,Hr=i.overflow,Li=n}var xn=null,Dt=null,lt=!1,zi=null,fr=!1,Cd=Error(a(519));function Ii(n){var i=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw gl(cr(i,n)),Cd}function Xg(n){var i=n.stateNode,l=n.type,u=n.memoizedProps;switch(i[Ut]=n,i[mn]=u,l){case"dialog":et("cancel",i),et("close",i);break;case"iframe":case"object":case"embed":et("load",i);break;case"video":case"audio":for(l=0;l<Bl.length;l++)et(Bl[l],i);break;case"source":et("error",i);break;case"img":case"image":case"link":et("error",i),et("load",i);break;case"details":et("toggle",i);break;case"input":et("invalid",i),Er(i,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":et("invalid",i);break;case"textarea":et("invalid",i),rs(i,u.value,u.defaultValue,u.children)}l=u.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||i.textContent===""+l||u.suppressHydrationWarning===!0||d0(i.textContent,l)?(u.popover!=null&&(et("beforetoggle",i),et("toggle",i)),u.onScroll!=null&&et("scroll",i),u.onScrollEnd!=null&&et("scrollend",i),u.onClick!=null&&(i.onclick=_e),i=!0):i=!1,i||Ii(n,!0)}function Kg(n){for(xn=n.return;xn;)switch(xn.tag){case 5:case 31:case 13:fr=!1;return;case 27:case 3:fr=!0;return;default:xn=xn.return}}function ds(n){if(n!==xn)return!1;if(!lt)return Kg(n),lt=!0,!1;var i=n.tag,l;if((l=i!==3&&i!==27)&&((l=i===5)&&(l=n.type,l=!(l!=="form"&&l!=="button")||Yf(n.type,n.memoizedProps)),l=!l),l&&Dt&&Ii(n),Kg(n),i===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(317));Dt=v0(n)}else if(i===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(317));Dt=v0(n)}else i===27?(i=Dt,Qi(n.type)?(n=Wf,Wf=null,Dt=n):Dt=i):Dt=xn?mr(n.stateNode.nextSibling):null;return!0}function Na(){Dt=xn=null,lt=!1}function Ad(){var n=zi;return n!==null&&($n===null?$n=n:$n.push.apply($n,n),zi=null),n}function gl(n){zi===null?zi=[n]:zi.push(n)}var Md=j(null),Sa=null,ii=null;function Bi(n,i,l){z(Md,i._currentValue),i._currentValue=l}function ai(n){n._currentValue=Md.current,Y(Md)}function Od(n,i,l){for(;n!==null;){var u=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,u!==null&&(u.childLanes|=i)):u!==null&&(u.childLanes&i)!==i&&(u.childLanes|=i),n===l)break;n=n.return}}function Rd(n,i,l,u){var b=n.child;for(b!==null&&(b.return=n);b!==null;){var v=b.dependencies;if(v!==null){var C=b.child;v=v.firstContext;e:for(;v!==null;){var P=v;v=b;for(var ne=0;ne<i.length;ne++)if(P.context===i[ne]){v.lanes|=l,P=v.alternate,P!==null&&(P.lanes|=l),Od(v.return,l,n),u||(C=null);break e}v=P.next}}else if(b.tag===18){if(C=b.return,C===null)throw Error(a(341));C.lanes|=l,v=C.alternate,v!==null&&(v.lanes|=l),Od(C,l,n),C=null}else C=b.child;if(C!==null)C.return=b;else for(C=b;C!==null;){if(C===n){C=null;break}if(b=C.sibling,b!==null){b.return=C.return,C=b;break}C=C.return}b=C}}function fs(n,i,l,u){n=null;for(var b=i,v=!1;b!==null;){if(!v){if((b.flags&524288)!==0)v=!0;else if((b.flags&262144)!==0)break}if(b.tag===10){var C=b.alternate;if(C===null)throw Error(a(387));if(C=C.memoizedProps,C!==null){var P=b.type;Kn(b.pendingProps.value,C.value)||(n!==null?n.push(P):n=[P])}}else if(b===J.current){if(C=b.alternate,C===null)throw Error(a(387));C.memoizedState.memoizedState!==b.memoizedState.memoizedState&&(n!==null?n.push(Pl):n=[Pl])}b=b.return}n!==null&&Rd(i,n,l,u),i.flags|=262144}function ec(n){for(n=n.firstContext;n!==null;){if(!Kn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function ka(n){Sa=n,ii=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function yn(n){return Zg(Sa,n)}function tc(n,i){return Sa===null&&ka(n),Zg(n,i)}function Zg(n,i){var l=i._currentValue;if(i={context:i,memoizedValue:l,next:null},ii===null){if(n===null)throw Error(a(308));ii=i,n.dependencies={lanes:0,firstContext:i},n.flags|=524288}else ii=ii.next=i;return l}var JS=typeof AbortController<"u"?AbortController:function(){var n=[],i=this.signal={aborted:!1,addEventListener:function(l,u){n.push(u)}};this.abort=function(){i.aborted=!0,n.forEach(function(l){return l()})}},e2=e.unstable_scheduleCallback,t2=e.unstable_NormalPriority,en={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Dd(){return{controller:new JS,data:new Map,refCount:0}}function bl(n){n.refCount--,n.refCount===0&&e2(t2,function(){n.controller.abort()})}var xl=null,jd=0,hs=0,ms=null;function n2(n,i){if(xl===null){var l=xl=[];jd=0,hs=Bf(),ms={status:"pending",value:void 0,then:function(u){l.push(u)}}}return jd++,i.then(Qg,Qg),i}function Qg(){if(--jd===0&&xl!==null){ms!==null&&(ms.status="fulfilled");var n=xl;xl=null,hs=0,ms=null;for(var i=0;i<n.length;i++)(0,n[i])()}}function r2(n,i){var l=[],u={status:"pending",value:null,reason:null,then:function(b){l.push(b)}};return n.then(function(){u.status="fulfilled",u.value=i;for(var b=0;b<l.length;b++)(0,l[b])(i)},function(b){for(u.status="rejected",u.reason=b,b=0;b<l.length;b++)(0,l[b])(void 0)}),u}var Wg=O.S;O.S=function(n,i){Lx=ct(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&n2(n,i),Wg!==null&&Wg(n,i)};var Ta=j(null);function Ld(){var n=Ta.current;return n!==null?n:kt.pooledCache}function nc(n,i){i===null?z(Ta,Ta.current):z(Ta,i.pool)}function Jg(){var n=Ld();return n===null?null:{parent:en._currentValue,pool:n}}var ps=Error(a(460)),zd=Error(a(474)),rc=Error(a(542)),ic={then:function(){}};function eb(n){return n=n.status,n==="fulfilled"||n==="rejected"}function tb(n,i,l){switch(l=n[l],l===void 0?n.push(i):l!==i&&(i.then(_e,_e),i=l),i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,rb(n),n;default:if(typeof i.status=="string")i.then(_e,_e);else{if(n=kt,n!==null&&100<n.shellSuspendCounter)throw Error(a(482));n=i,n.status="pending",n.then(function(u){if(i.status==="pending"){var b=i;b.status="fulfilled",b.value=u}},function(u){if(i.status==="pending"){var b=i;b.status="rejected",b.reason=u}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,rb(n),n}throw Aa=i,ps}}function Ca(n){try{var i=n._init;return i(n._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Aa=l,ps):l}}var Aa=null;function nb(){if(Aa===null)throw Error(a(459));var n=Aa;return Aa=null,n}function rb(n){if(n===ps||n===rc)throw Error(a(483))}var gs=null,yl=0;function ac(n){var i=yl;return yl+=1,gs===null&&(gs=[]),tb(gs,n,i)}function vl(n,i){i=i.props.ref,n.ref=i!==void 0?i:null}function sc(n,i){throw i.$$typeof===y?Error(a(525)):(n=Object.prototype.toString.call(i),Error(a(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n)))}function ib(n){function i(ae,ie){if(n){var se=ae.deletions;se===null?(ae.deletions=[ie],ae.flags|=16):se.push(ie)}}function l(ae,ie){if(!n)return null;for(;ie!==null;)i(ae,ie),ie=ie.sibling;return null}function u(ae){for(var ie=new Map;ae!==null;)ae.key!==null?ie.set(ae.key,ae):ie.set(ae.index,ae),ae=ae.sibling;return ie}function b(ae,ie){return ae=ni(ae,ie),ae.index=0,ae.sibling=null,ae}function v(ae,ie,se){return ae.index=se,n?(se=ae.alternate,se!==null?(se=se.index,se<ie?(ae.flags|=67108866,ie):se):(ae.flags|=67108866,ie)):(ae.flags|=1048576,ie)}function C(ae){return n&&ae.alternate===null&&(ae.flags|=67108866),ae}function P(ae,ie,se,pe){return ie===null||ie.tag!==6?(ie=Nd(se,ae.mode,pe),ie.return=ae,ie):(ie=b(ie,se),ie.return=ae,ie)}function ne(ae,ie,se,pe){var Ie=se.type;return Ie===N?he(ae,ie,se.props.children,pe,se.key):ie!==null&&(ie.elementType===Ie||typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===B&&Ca(Ie)===ie.type)?(ie=b(ie,se.props),vl(ie,se),ie.return=ae,ie):(ie=Wo(se.type,se.key,se.props,null,ae.mode,pe),vl(ie,se),ie.return=ae,ie)}function le(ae,ie,se,pe){return ie===null||ie.tag!==4||ie.stateNode.containerInfo!==se.containerInfo||ie.stateNode.implementation!==se.implementation?(ie=Sd(se,ae.mode,pe),ie.return=ae,ie):(ie=b(ie,se.children||[]),ie.return=ae,ie)}function he(ae,ie,se,pe,Ie){return ie===null||ie.tag!==7?(ie=Ea(se,ae.mode,pe,Ie),ie.return=ae,ie):(ie=b(ie,se),ie.return=ae,ie)}function ge(ae,ie,se){if(typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint")return ie=Nd(""+ie,ae.mode,se),ie.return=ae,ie;if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case x:return se=Wo(ie.type,ie.key,ie.props,null,ae.mode,se),vl(se,ie),se.return=ae,se;case _:return ie=Sd(ie,ae.mode,se),ie.return=ae,ie;case B:return ie=Ca(ie),ge(ae,ie,se)}if(q(ie)||G(ie))return ie=Ea(ie,ae.mode,se,null),ie.return=ae,ie;if(typeof ie.then=="function")return ge(ae,ac(ie),se);if(ie.$$typeof===E)return ge(ae,tc(ae,ie),se);sc(ae,ie)}return null}function oe(ae,ie,se,pe){var Ie=ie!==null?ie.key:null;if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return Ie!==null?null:P(ae,ie,""+se,pe);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case x:return se.key===Ie?ne(ae,ie,se,pe):null;case _:return se.key===Ie?le(ae,ie,se,pe):null;case B:return se=Ca(se),oe(ae,ie,se,pe)}if(q(se)||G(se))return Ie!==null?null:he(ae,ie,se,pe,null);if(typeof se.then=="function")return oe(ae,ie,ac(se),pe);if(se.$$typeof===E)return oe(ae,ie,tc(ae,se),pe);sc(ae,se)}return null}function de(ae,ie,se,pe,Ie){if(typeof pe=="string"&&pe!==""||typeof pe=="number"||typeof pe=="bigint")return ae=ae.get(se)||null,P(ie,ae,""+pe,Ie);if(typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case x:return ae=ae.get(pe.key===null?se:pe.key)||null,ne(ie,ae,pe,Ie);case _:return ae=ae.get(pe.key===null?se:pe.key)||null,le(ie,ae,pe,Ie);case B:return pe=Ca(pe),de(ae,ie,se,pe,Ie)}if(q(pe)||G(pe))return ae=ae.get(se)||null,he(ie,ae,pe,Ie,null);if(typeof pe.then=="function")return de(ae,ie,se,ac(pe),Ie);if(pe.$$typeof===E)return de(ae,ie,se,tc(ie,pe),Ie);sc(ie,pe)}return null}function Ce(ae,ie,se,pe){for(var Ie=null,ht=null,De=ie,Ke=ie=0,at=null;De!==null&&Ke<se.length;Ke++){De.index>Ke?(at=De,De=null):at=De.sibling;var mt=oe(ae,De,se[Ke],pe);if(mt===null){De===null&&(De=at);break}n&&De&&mt.alternate===null&&i(ae,De),ie=v(mt,ie,Ke),ht===null?Ie=mt:ht.sibling=mt,ht=mt,De=at}if(Ke===se.length)return l(ae,De),lt&&ri(ae,Ke),Ie;if(De===null){for(;Ke<se.length;Ke++)De=ge(ae,se[Ke],pe),De!==null&&(ie=v(De,ie,Ke),ht===null?Ie=De:ht.sibling=De,ht=De);return lt&&ri(ae,Ke),Ie}for(De=u(De);Ke<se.length;Ke++)at=de(De,ae,Ke,se[Ke],pe),at!==null&&(n&&at.alternate!==null&&De.delete(at.key===null?Ke:at.key),ie=v(at,ie,Ke),ht===null?Ie=at:ht.sibling=at,ht=at);return n&&De.forEach(function(na){return i(ae,na)}),lt&&ri(ae,Ke),Ie}function He(ae,ie,se,pe){if(se==null)throw Error(a(151));for(var Ie=null,ht=null,De=ie,Ke=ie=0,at=null,mt=se.next();De!==null&&!mt.done;Ke++,mt=se.next()){De.index>Ke?(at=De,De=null):at=De.sibling;var na=oe(ae,De,mt.value,pe);if(na===null){De===null&&(De=at);break}n&&De&&na.alternate===null&&i(ae,De),ie=v(na,ie,Ke),ht===null?Ie=na:ht.sibling=na,ht=na,De=at}if(mt.done)return l(ae,De),lt&&ri(ae,Ke),Ie;if(De===null){for(;!mt.done;Ke++,mt=se.next())mt=ge(ae,mt.value,pe),mt!==null&&(ie=v(mt,ie,Ke),ht===null?Ie=mt:ht.sibling=mt,ht=mt);return lt&&ri(ae,Ke),Ie}for(De=u(De);!mt.done;Ke++,mt=se.next())mt=de(De,ae,Ke,mt.value,pe),mt!==null&&(n&&mt.alternate!==null&&De.delete(mt.key===null?Ke:mt.key),ie=v(mt,ie,Ke),ht===null?Ie=mt:ht.sibling=mt,ht=mt);return n&&De.forEach(function(mk){return i(ae,mk)}),lt&&ri(ae,Ke),Ie}function Nt(ae,ie,se,pe){if(typeof se=="object"&&se!==null&&se.type===N&&se.key===null&&(se=se.props.children),typeof se=="object"&&se!==null){switch(se.$$typeof){case x:e:{for(var Ie=se.key;ie!==null;){if(ie.key===Ie){if(Ie=se.type,Ie===N){if(ie.tag===7){l(ae,ie.sibling),pe=b(ie,se.props.children),pe.return=ae,ae=pe;break e}}else if(ie.elementType===Ie||typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===B&&Ca(Ie)===ie.type){l(ae,ie.sibling),pe=b(ie,se.props),vl(pe,se),pe.return=ae,ae=pe;break e}l(ae,ie);break}else i(ae,ie);ie=ie.sibling}se.type===N?(pe=Ea(se.props.children,ae.mode,pe,se.key),pe.return=ae,ae=pe):(pe=Wo(se.type,se.key,se.props,null,ae.mode,pe),vl(pe,se),pe.return=ae,ae=pe)}return C(ae);case _:e:{for(Ie=se.key;ie!==null;){if(ie.key===Ie)if(ie.tag===4&&ie.stateNode.containerInfo===se.containerInfo&&ie.stateNode.implementation===se.implementation){l(ae,ie.sibling),pe=b(ie,se.children||[]),pe.return=ae,ae=pe;break e}else{l(ae,ie);break}else i(ae,ie);ie=ie.sibling}pe=Sd(se,ae.mode,pe),pe.return=ae,ae=pe}return C(ae);case B:return se=Ca(se),Nt(ae,ie,se,pe)}if(q(se))return Ce(ae,ie,se,pe);if(G(se)){if(Ie=G(se),typeof Ie!="function")throw Error(a(150));return se=Ie.call(se),He(ae,ie,se,pe)}if(typeof se.then=="function")return Nt(ae,ie,ac(se),pe);if(se.$$typeof===E)return Nt(ae,ie,tc(ae,se),pe);sc(ae,se)}return typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint"?(se=""+se,ie!==null&&ie.tag===6?(l(ae,ie.sibling),pe=b(ie,se),pe.return=ae,ae=pe):(l(ae,ie),pe=Nd(se,ae.mode,pe),pe.return=ae,ae=pe),C(ae)):l(ae,ie)}return function(ae,ie,se,pe){try{yl=0;var Ie=Nt(ae,ie,se,pe);return gs=null,Ie}catch(De){if(De===ps||De===rc)throw De;var ht=Zn(29,De,null,ae.mode);return ht.lanes=pe,ht.return=ae,ht}finally{}}}var Ma=ib(!0),ab=ib(!1),Ui=!1;function Id(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Bd(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Hi(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function $i(n,i,l){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,(pt&2)!==0){var b=u.pending;return b===null?i.next=i:(i.next=b.next,b.next=i),u.pending=i,i=Qo(n),qg(n,null,l),i}return Zo(n,u,i,l),Qo(n)}function _l(n,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194048)!==0)){var u=i.lanes;u&=n.pendingLanes,l|=u,i.lanes=l,Ue(n,l)}}function Ud(n,i){var l=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var b=null,v=null;if(l=l.firstBaseUpdate,l!==null){do{var C={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};v===null?b=v=C:v=v.next=C,l=l.next}while(l!==null);v===null?b=v=i:v=v.next=i}else b=v=i;l={baseState:u.baseState,firstBaseUpdate:b,lastBaseUpdate:v,shared:u.shared,callbacks:u.callbacks},n.updateQueue=l;return}n=l.lastBaseUpdate,n===null?l.firstBaseUpdate=i:n.next=i,l.lastBaseUpdate=i}var Hd=!1;function wl(){if(Hd){var n=ms;if(n!==null)throw n}}function El(n,i,l,u){Hd=!1;var b=n.updateQueue;Ui=!1;var v=b.firstBaseUpdate,C=b.lastBaseUpdate,P=b.shared.pending;if(P!==null){b.shared.pending=null;var ne=P,le=ne.next;ne.next=null,C===null?v=le:C.next=le,C=ne;var he=n.alternate;he!==null&&(he=he.updateQueue,P=he.lastBaseUpdate,P!==C&&(P===null?he.firstBaseUpdate=le:P.next=le,he.lastBaseUpdate=ne))}if(v!==null){var ge=b.baseState;C=0,he=le=ne=null,P=v;do{var oe=P.lane&-536870913,de=oe!==P.lane;if(de?(it&oe)===oe:(u&oe)===oe){oe!==0&&oe===hs&&(Hd=!0),he!==null&&(he=he.next={lane:0,tag:P.tag,payload:P.payload,callback:null,next:null});e:{var Ce=n,He=P;oe=i;var Nt=l;switch(He.tag){case 1:if(Ce=He.payload,typeof Ce=="function"){ge=Ce.call(Nt,ge,oe);break e}ge=Ce;break e;case 3:Ce.flags=Ce.flags&-65537|128;case 0:if(Ce=He.payload,oe=typeof Ce=="function"?Ce.call(Nt,ge,oe):Ce,oe==null)break e;ge=p({},ge,oe);break e;case 2:Ui=!0}}oe=P.callback,oe!==null&&(n.flags|=64,de&&(n.flags|=8192),de=b.callbacks,de===null?b.callbacks=[oe]:de.push(oe))}else de={lane:oe,tag:P.tag,payload:P.payload,callback:P.callback,next:null},he===null?(le=he=de,ne=ge):he=he.next=de,C|=oe;if(P=P.next,P===null){if(P=b.shared.pending,P===null)break;de=P,P=de.next,de.next=null,b.lastBaseUpdate=de,b.shared.pending=null}}while(!0);he===null&&(ne=ge),b.baseState=ne,b.firstBaseUpdate=le,b.lastBaseUpdate=he,v===null&&(b.shared.lanes=0),Vi|=C,n.lanes=C,n.memoizedState=ge}}function sb(n,i){if(typeof n!="function")throw Error(a(191,n));n.call(i)}function lb(n,i){var l=n.callbacks;if(l!==null)for(n.callbacks=null,n=0;n<l.length;n++)sb(l[n],i)}var bs=j(null),lc=j(0);function ob(n,i){n=mi,z(lc,n),z(bs,i),mi=n|i.baseLanes}function $d(){z(lc,mi),z(bs,bs.current)}function qd(){mi=lc.current,Y(bs),Y(lc)}var Qn=j(null),hr=null;function qi(n){var i=n.alternate;z(Zt,Zt.current&1),z(Qn,n),hr===null&&(i===null||bs.current!==null||i.memoizedState!==null)&&(hr=n)}function Pd(n){z(Zt,Zt.current),z(Qn,n),hr===null&&(hr=n)}function cb(n){n.tag===22?(z(Zt,Zt.current),z(Qn,n),hr===null&&(hr=n)):Pi()}function Pi(){z(Zt,Zt.current),z(Qn,Qn.current)}function Wn(n){Y(Qn),hr===n&&(hr=null),Y(Zt)}var Zt=j(0);function oc(n){for(var i=n;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Zf(l)||Qf(l)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var si=0,Xe=null,wt=null,tn=null,cc=!1,xs=!1,Oa=!1,uc=0,Nl=0,ys=null,i2=0;function Gt(){throw Error(a(321))}function Fd(n,i){if(i===null)return!1;for(var l=0;l<i.length&&l<n.length;l++)if(!Kn(n[l],i[l]))return!1;return!0}function Gd(n,i,l,u,b,v){return si=v,Xe=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,O.H=n===null||n.memoizedState===null?Vb:lf,Oa=!1,v=l(u,b),Oa=!1,xs&&(v=db(i,l,u,b)),ub(n),v}function ub(n){O.H=Tl;var i=wt!==null&&wt.next!==null;if(si=0,tn=wt=Xe=null,cc=!1,Nl=0,ys=null,i)throw Error(a(300));n===null||nn||(n=n.dependencies,n!==null&&ec(n)&&(nn=!0))}function db(n,i,l,u){Xe=n;var b=0;do{if(xs&&(ys=null),Nl=0,xs=!1,25<=b)throw Error(a(301));if(b+=1,tn=wt=null,n.updateQueue!=null){var v=n.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}O.H=Yb,v=i(l,u)}while(xs);return v}function a2(){var n=O.H,i=n.useState()[0];return i=typeof i.then=="function"?Sl(i):i,n=n.useState()[0],(wt!==null?wt.memoizedState:null)!==n&&(Xe.flags|=1024),i}function Vd(){var n=uc!==0;return uc=0,n}function Yd(n,i,l){i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~l}function Xd(n){if(cc){for(n=n.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}cc=!1}si=0,tn=wt=Xe=null,xs=!1,Nl=uc=0,ys=null}function Rn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tn===null?Xe.memoizedState=tn=n:tn=tn.next=n,tn}function Qt(){if(wt===null){var n=Xe.alternate;n=n!==null?n.memoizedState:null}else n=wt.next;var i=tn===null?Xe.memoizedState:tn.next;if(i!==null)tn=i,wt=n;else{if(n===null)throw Xe.alternate===null?Error(a(467)):Error(a(310));wt=n,n={memoizedState:wt.memoizedState,baseState:wt.baseState,baseQueue:wt.baseQueue,queue:wt.queue,next:null},tn===null?Xe.memoizedState=tn=n:tn=tn.next=n}return tn}function dc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Sl(n){var i=Nl;return Nl+=1,ys===null&&(ys=[]),n=tb(ys,n,i),i=Xe,(tn===null?i.memoizedState:tn.next)===null&&(i=i.alternate,O.H=i===null||i.memoizedState===null?Vb:lf),n}function fc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Sl(n);if(n.$$typeof===E)return yn(n)}throw Error(a(438,String(n)))}function Kd(n){var i=null,l=Xe.updateQueue;if(l!==null&&(i=l.memoCache),i==null){var u=Xe.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(i={data:u.data.map(function(b){return b.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),l===null&&(l=dc(),Xe.updateQueue=l),l.memoCache=i,l=i.data[i.index],l===void 0)for(l=i.data[i.index]=Array(n),u=0;u<n;u++)l[u]=D;return i.index++,l}function li(n,i){return typeof i=="function"?i(n):i}function hc(n){var i=Qt();return Zd(i,wt,n)}function Zd(n,i,l){var u=n.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=l;var b=n.baseQueue,v=u.pending;if(v!==null){if(b!==null){var C=b.next;b.next=v.next,v.next=C}i.baseQueue=b=v,u.pending=null}if(v=n.baseState,b===null)n.memoizedState=v;else{i=b.next;var P=C=null,ne=null,le=i,he=!1;do{var ge=le.lane&-536870913;if(ge!==le.lane?(it&ge)===ge:(si&ge)===ge){var oe=le.revertLane;if(oe===0)ne!==null&&(ne=ne.next={lane:0,revertLane:0,gesture:null,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null}),ge===hs&&(he=!0);else if((si&oe)===oe){le=le.next,oe===hs&&(he=!0);continue}else ge={lane:0,revertLane:le.revertLane,gesture:null,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null},ne===null?(P=ne=ge,C=v):ne=ne.next=ge,Xe.lanes|=oe,Vi|=oe;ge=le.action,Oa&&l(v,ge),v=le.hasEagerState?le.eagerState:l(v,ge)}else oe={lane:ge,revertLane:le.revertLane,gesture:le.gesture,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null},ne===null?(P=ne=oe,C=v):ne=ne.next=oe,Xe.lanes|=ge,Vi|=ge;le=le.next}while(le!==null&&le!==i);if(ne===null?C=v:ne.next=P,!Kn(v,n.memoizedState)&&(nn=!0,he&&(l=ms,l!==null)))throw l;n.memoizedState=v,n.baseState=C,n.baseQueue=ne,u.lastRenderedState=v}return b===null&&(u.lanes=0),[n.memoizedState,u.dispatch]}function Qd(n){var i=Qt(),l=i.queue;if(l===null)throw Error(a(311));l.lastRenderedReducer=n;var u=l.dispatch,b=l.pending,v=i.memoizedState;if(b!==null){l.pending=null;var C=b=b.next;do v=n(v,C.action),C=C.next;while(C!==b);Kn(v,i.memoizedState)||(nn=!0),i.memoizedState=v,i.baseQueue===null&&(i.baseState=v),l.lastRenderedState=v}return[v,u]}function fb(n,i,l){var u=Xe,b=Qt(),v=lt;if(v){if(l===void 0)throw Error(a(407));l=l()}else l=i();var C=!Kn((wt||b).memoizedState,l);if(C&&(b.memoizedState=l,nn=!0),b=b.queue,ef(pb.bind(null,u,b,n),[n]),b.getSnapshot!==i||C||tn!==null&&tn.memoizedState.tag&1){if(u.flags|=2048,vs(9,{destroy:void 0},mb.bind(null,u,b,l,i),null),kt===null)throw Error(a(349));v||(si&127)!==0||hb(u,i,l)}return l}function hb(n,i,l){n.flags|=16384,n={getSnapshot:i,value:l},i=Xe.updateQueue,i===null?(i=dc(),Xe.updateQueue=i,i.stores=[n]):(l=i.stores,l===null?i.stores=[n]:l.push(n))}function mb(n,i,l,u){i.value=l,i.getSnapshot=u,gb(i)&&bb(n)}function pb(n,i,l){return l(function(){gb(i)&&bb(n)})}function gb(n){var i=n.getSnapshot;n=n.value;try{var l=i();return!Kn(n,l)}catch{return!0}}function bb(n){var i=wa(n,2);i!==null&&qn(i,n,2)}function Wd(n){var i=Rn();if(typeof n=="function"){var l=n;if(n=l(),Oa){Wt(!0);try{l()}finally{Wt(!1)}}}return i.memoizedState=i.baseState=n,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:li,lastRenderedState:n},i}function xb(n,i,l,u){return n.baseState=l,Zd(n,wt,typeof u=="function"?u:li)}function s2(n,i,l,u,b){if(gc(n))throw Error(a(485));if(n=i.action,n!==null){var v={payload:b,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){v.listeners.push(C)}};O.T!==null?l(!0):v.isTransition=!1,u(v),l=i.pending,l===null?(v.next=i.pending=v,yb(i,v)):(v.next=l.next,i.pending=l.next=v)}}function yb(n,i){var l=i.action,u=i.payload,b=n.state;if(i.isTransition){var v=O.T,C={};O.T=C;try{var P=l(b,u),ne=O.S;ne!==null&&ne(C,P),vb(n,i,P)}catch(le){Jd(n,i,le)}finally{v!==null&&C.types!==null&&(v.types=C.types),O.T=v}}else try{v=l(b,u),vb(n,i,v)}catch(le){Jd(n,i,le)}}function vb(n,i,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(u){_b(n,i,u)},function(u){return Jd(n,i,u)}):_b(n,i,l)}function _b(n,i,l){i.status="fulfilled",i.value=l,wb(i),n.state=l,i=n.pending,i!==null&&(l=i.next,l===i?n.pending=null:(l=l.next,i.next=l,yb(n,l)))}function Jd(n,i,l){var u=n.pending;if(n.pending=null,u!==null){u=u.next;do i.status="rejected",i.reason=l,wb(i),i=i.next;while(i!==u)}n.action=null}function wb(n){n=n.listeners;for(var i=0;i<n.length;i++)(0,n[i])()}function Eb(n,i){return i}function Nb(n,i){if(lt){var l=kt.formState;if(l!==null){e:{var u=Xe;if(lt){if(Dt){t:{for(var b=Dt,v=fr;b.nodeType!==8;){if(!v){b=null;break t}if(b=mr(b.nextSibling),b===null){b=null;break t}}v=b.data,b=v==="F!"||v==="F"?b:null}if(b){Dt=mr(b.nextSibling),u=b.data==="F!";break e}}Ii(u)}u=!1}u&&(i=l[0])}}return l=Rn(),l.memoizedState=l.baseState=i,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eb,lastRenderedState:i},l.queue=u,l=Pb.bind(null,Xe,u),u.dispatch=l,u=Wd(!1),v=sf.bind(null,Xe,!1,u.queue),u=Rn(),b={state:i,dispatch:null,action:n,pending:null},u.queue=b,l=s2.bind(null,Xe,b,v,l),b.dispatch=l,u.memoizedState=n,[i,l,!1]}function Sb(n){var i=Qt();return kb(i,wt,n)}function kb(n,i,l){if(i=Zd(n,i,Eb)[0],n=hc(li)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var u=Sl(i)}catch(C){throw C===ps?rc:C}else u=i;i=Qt();var b=i.queue,v=b.dispatch;return l!==i.memoizedState&&(Xe.flags|=2048,vs(9,{destroy:void 0},l2.bind(null,b,l),null)),[u,v,n]}function l2(n,i){n.action=i}function Tb(n){var i=Qt(),l=wt;if(l!==null)return kb(i,l,n);Qt(),i=i.memoizedState,l=Qt();var u=l.queue.dispatch;return l.memoizedState=n,[i,u,!1]}function vs(n,i,l,u){return n={tag:n,create:l,deps:u,inst:i,next:null},i=Xe.updateQueue,i===null&&(i=dc(),Xe.updateQueue=i),l=i.lastEffect,l===null?i.lastEffect=n.next=n:(u=l.next,l.next=n,n.next=u,i.lastEffect=n),n}function Cb(){return Qt().memoizedState}function mc(n,i,l,u){var b=Rn();Xe.flags|=n,b.memoizedState=vs(1|i,{destroy:void 0},l,u===void 0?null:u)}function pc(n,i,l,u){var b=Qt();u=u===void 0?null:u;var v=b.memoizedState.inst;wt!==null&&u!==null&&Fd(u,wt.memoizedState.deps)?b.memoizedState=vs(i,v,l,u):(Xe.flags|=n,b.memoizedState=vs(1|i,v,l,u))}function Ab(n,i){mc(8390656,8,n,i)}function ef(n,i){pc(2048,8,n,i)}function o2(n){Xe.flags|=4;var i=Xe.updateQueue;if(i===null)i=dc(),Xe.updateQueue=i,i.events=[n];else{var l=i.events;l===null?i.events=[n]:l.push(n)}}function Mb(n){var i=Qt().memoizedState;return o2({ref:i,nextImpl:n}),function(){if((pt&2)!==0)throw Error(a(440));return i.impl.apply(void 0,arguments)}}function Ob(n,i){return pc(4,2,n,i)}function Rb(n,i){return pc(4,4,n,i)}function Db(n,i){if(typeof i=="function"){n=n();var l=i(n);return function(){typeof l=="function"?l():i(null)}}if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function jb(n,i,l){l=l!=null?l.concat([n]):null,pc(4,4,Db.bind(null,i,n),l)}function tf(){}function Lb(n,i){var l=Qt();i=i===void 0?null:i;var u=l.memoizedState;return i!==null&&Fd(i,u[1])?u[0]:(l.memoizedState=[n,i],n)}function zb(n,i){var l=Qt();i=i===void 0?null:i;var u=l.memoizedState;if(i!==null&&Fd(i,u[1]))return u[0];if(u=n(),Oa){Wt(!0);try{n()}finally{Wt(!1)}}return l.memoizedState=[u,i],u}function nf(n,i,l){return l===void 0||(si&1073741824)!==0&&(it&261930)===0?n.memoizedState=i:(n.memoizedState=l,n=Ix(),Xe.lanes|=n,Vi|=n,l)}function Ib(n,i,l,u){return Kn(l,i)?l:bs.current!==null?(n=nf(n,l,u),Kn(n,i)||(nn=!0),n):(si&42)===0||(si&1073741824)!==0&&(it&261930)===0?(nn=!0,n.memoizedState=l):(n=Ix(),Xe.lanes|=n,Vi|=n,i)}function Bb(n,i,l,u,b){var v=H.p;H.p=v!==0&&8>v?v:8;var C=O.T,P={};O.T=P,sf(n,!1,i,l);try{var ne=b(),le=O.S;if(le!==null&&le(P,ne),ne!==null&&typeof ne=="object"&&typeof ne.then=="function"){var he=r2(ne,u);kl(n,i,he,tr(n))}else kl(n,i,u,tr(n))}catch(ge){kl(n,i,{then:function(){},status:"rejected",reason:ge},tr())}finally{H.p=v,C!==null&&P.types!==null&&(C.types=P.types),O.T=C}}function c2(){}function rf(n,i,l,u){if(n.tag!==5)throw Error(a(476));var b=Ub(n).queue;Bb(n,b,i,X,l===null?c2:function(){return Hb(n),l(u)})}function Ub(n){var i=n.memoizedState;if(i!==null)return i;i={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:li,lastRenderedState:X},next:null};var l={};return i.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:li,lastRenderedState:l},next:null},n.memoizedState=i,n=n.alternate,n!==null&&(n.memoizedState=i),i}function Hb(n){var i=Ub(n);i.next===null&&(i=n.alternate.memoizedState),kl(n,i.next.queue,{},tr())}function af(){return yn(Pl)}function $b(){return Qt().memoizedState}function qb(){return Qt().memoizedState}function u2(n){for(var i=n.return;i!==null;){switch(i.tag){case 24:case 3:var l=tr();n=Hi(l);var u=$i(i,n,l);u!==null&&(qn(u,i,l),_l(u,i,l)),i={cache:Dd()},n.payload=i;return}i=i.return}}function d2(n,i,l){var u=tr();l={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},gc(n)?Fb(i,l):(l=wd(n,i,l,u),l!==null&&(qn(l,n,u),Gb(l,i,u)))}function Pb(n,i,l){var u=tr();kl(n,i,l,u)}function kl(n,i,l,u){var b={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(gc(n))Fb(i,b);else{var v=n.alternate;if(n.lanes===0&&(v===null||v.lanes===0)&&(v=i.lastRenderedReducer,v!==null))try{var C=i.lastRenderedState,P=v(C,l);if(b.hasEagerState=!0,b.eagerState=P,Kn(P,C))return Zo(n,i,b,0),kt===null&&Ko(),!1}catch{}finally{}if(l=wd(n,i,b,u),l!==null)return qn(l,n,u),Gb(l,i,u),!0}return!1}function sf(n,i,l,u){if(u={lane:2,revertLane:Bf(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},gc(n)){if(i)throw Error(a(479))}else i=wd(n,l,u,2),i!==null&&qn(i,n,2)}function gc(n){var i=n.alternate;return n===Xe||i!==null&&i===Xe}function Fb(n,i){xs=cc=!0;var l=n.pending;l===null?i.next=i:(i.next=l.next,l.next=i),n.pending=i}function Gb(n,i,l){if((l&4194048)!==0){var u=i.lanes;u&=n.pendingLanes,l|=u,i.lanes=l,Ue(n,l)}}var Tl={readContext:yn,use:fc,useCallback:Gt,useContext:Gt,useEffect:Gt,useImperativeHandle:Gt,useLayoutEffect:Gt,useInsertionEffect:Gt,useMemo:Gt,useReducer:Gt,useRef:Gt,useState:Gt,useDebugValue:Gt,useDeferredValue:Gt,useTransition:Gt,useSyncExternalStore:Gt,useId:Gt,useHostTransitionStatus:Gt,useFormState:Gt,useActionState:Gt,useOptimistic:Gt,useMemoCache:Gt,useCacheRefresh:Gt};Tl.useEffectEvent=Gt;var Vb={readContext:yn,use:fc,useCallback:function(n,i){return Rn().memoizedState=[n,i===void 0?null:i],n},useContext:yn,useEffect:Ab,useImperativeHandle:function(n,i,l){l=l!=null?l.concat([n]):null,mc(4194308,4,Db.bind(null,i,n),l)},useLayoutEffect:function(n,i){return mc(4194308,4,n,i)},useInsertionEffect:function(n,i){mc(4,2,n,i)},useMemo:function(n,i){var l=Rn();i=i===void 0?null:i;var u=n();if(Oa){Wt(!0);try{n()}finally{Wt(!1)}}return l.memoizedState=[u,i],u},useReducer:function(n,i,l){var u=Rn();if(l!==void 0){var b=l(i);if(Oa){Wt(!0);try{l(i)}finally{Wt(!1)}}}else b=i;return u.memoizedState=u.baseState=b,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:b},u.queue=n,n=n.dispatch=d2.bind(null,Xe,n),[u.memoizedState,n]},useRef:function(n){var i=Rn();return n={current:n},i.memoizedState=n},useState:function(n){n=Wd(n);var i=n.queue,l=Pb.bind(null,Xe,i);return i.dispatch=l,[n.memoizedState,l]},useDebugValue:tf,useDeferredValue:function(n,i){var l=Rn();return nf(l,n,i)},useTransition:function(){var n=Wd(!1);return n=Bb.bind(null,Xe,n.queue,!0,!1),Rn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,i,l){var u=Xe,b=Rn();if(lt){if(l===void 0)throw Error(a(407));l=l()}else{if(l=i(),kt===null)throw Error(a(349));(it&127)!==0||hb(u,i,l)}b.memoizedState=l;var v={value:l,getSnapshot:i};return b.queue=v,Ab(pb.bind(null,u,v,n),[n]),u.flags|=2048,vs(9,{destroy:void 0},mb.bind(null,u,v,l,i),null),l},useId:function(){var n=Rn(),i=kt.identifierPrefix;if(lt){var l=Hr,u=Ur;l=(u&~(1<<32-ut(u)-1)).toString(32)+l,i="_"+i+"R_"+l,l=uc++,0<l&&(i+="H"+l.toString(32)),i+="_"}else l=i2++,i="_"+i+"r_"+l.toString(32)+"_";return n.memoizedState=i},useHostTransitionStatus:af,useFormState:Nb,useActionState:Nb,useOptimistic:function(n){var i=Rn();i.memoizedState=i.baseState=n;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=l,i=sf.bind(null,Xe,!0,l),l.dispatch=i,[n,i]},useMemoCache:Kd,useCacheRefresh:function(){return Rn().memoizedState=u2.bind(null,Xe)},useEffectEvent:function(n){var i=Rn(),l={impl:n};return i.memoizedState=l,function(){if((pt&2)!==0)throw Error(a(440));return l.impl.apply(void 0,arguments)}}},lf={readContext:yn,use:fc,useCallback:Lb,useContext:yn,useEffect:ef,useImperativeHandle:jb,useInsertionEffect:Ob,useLayoutEffect:Rb,useMemo:zb,useReducer:hc,useRef:Cb,useState:function(){return hc(li)},useDebugValue:tf,useDeferredValue:function(n,i){var l=Qt();return Ib(l,wt.memoizedState,n,i)},useTransition:function(){var n=hc(li)[0],i=Qt().memoizedState;return[typeof n=="boolean"?n:Sl(n),i]},useSyncExternalStore:fb,useId:$b,useHostTransitionStatus:af,useFormState:Sb,useActionState:Sb,useOptimistic:function(n,i){var l=Qt();return xb(l,wt,n,i)},useMemoCache:Kd,useCacheRefresh:qb};lf.useEffectEvent=Mb;var Yb={readContext:yn,use:fc,useCallback:Lb,useContext:yn,useEffect:ef,useImperativeHandle:jb,useInsertionEffect:Ob,useLayoutEffect:Rb,useMemo:zb,useReducer:Qd,useRef:Cb,useState:function(){return Qd(li)},useDebugValue:tf,useDeferredValue:function(n,i){var l=Qt();return wt===null?nf(l,n,i):Ib(l,wt.memoizedState,n,i)},useTransition:function(){var n=Qd(li)[0],i=Qt().memoizedState;return[typeof n=="boolean"?n:Sl(n),i]},useSyncExternalStore:fb,useId:$b,useHostTransitionStatus:af,useFormState:Tb,useActionState:Tb,useOptimistic:function(n,i){var l=Qt();return wt!==null?xb(l,wt,n,i):(l.baseState=n,[n,l.queue.dispatch])},useMemoCache:Kd,useCacheRefresh:qb};Yb.useEffectEvent=Mb;function of(n,i,l,u){i=n.memoizedState,l=l(u,i),l=l==null?i:p({},i,l),n.memoizedState=l,n.lanes===0&&(n.updateQueue.baseState=l)}var cf={enqueueSetState:function(n,i,l){n=n._reactInternals;var u=tr(),b=Hi(u);b.payload=i,l!=null&&(b.callback=l),i=$i(n,b,u),i!==null&&(qn(i,n,u),_l(i,n,u))},enqueueReplaceState:function(n,i,l){n=n._reactInternals;var u=tr(),b=Hi(u);b.tag=1,b.payload=i,l!=null&&(b.callback=l),i=$i(n,b,u),i!==null&&(qn(i,n,u),_l(i,n,u))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var l=tr(),u=Hi(l);u.tag=2,i!=null&&(u.callback=i),i=$i(n,u,l),i!==null&&(qn(i,n,l),_l(i,n,l))}};function Xb(n,i,l,u,b,v,C){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(u,v,C):i.prototype&&i.prototype.isPureReactComponent?!hl(l,u)||!hl(b,v):!0}function Kb(n,i,l,u){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,u),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,u),i.state!==n&&cf.enqueueReplaceState(i,i.state,null)}function Ra(n,i){var l=i;if("ref"in i){l={};for(var u in i)u!=="ref"&&(l[u]=i[u])}if(n=n.defaultProps){l===i&&(l=p({},l));for(var b in n)l[b]===void 0&&(l[b]=n[b])}return l}function Zb(n){Xo(n)}function Qb(n){console.error(n)}function Wb(n){Xo(n)}function bc(n,i){try{var l=n.onUncaughtError;l(i.value,{componentStack:i.stack})}catch(u){setTimeout(function(){throw u})}}function Jb(n,i,l){try{var u=n.onCaughtError;u(l.value,{componentStack:l.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(b){setTimeout(function(){throw b})}}function uf(n,i,l){return l=Hi(l),l.tag=3,l.payload={element:null},l.callback=function(){bc(n,i)},l}function ex(n){return n=Hi(n),n.tag=3,n}function tx(n,i,l,u){var b=l.type.getDerivedStateFromError;if(typeof b=="function"){var v=u.value;n.payload=function(){return b(v)},n.callback=function(){Jb(i,l,u)}}var C=l.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(n.callback=function(){Jb(i,l,u),typeof b!="function"&&(Yi===null?Yi=new Set([this]):Yi.add(this));var P=u.stack;this.componentDidCatch(u.value,{componentStack:P!==null?P:""})})}function f2(n,i,l,u,b){if(l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(i=l.alternate,i!==null&&fs(i,l,b,!0),l=Qn.current,l!==null){switch(l.tag){case 31:case 13:return hr===null?Ac():l.alternate===null&&Vt===0&&(Vt=3),l.flags&=-257,l.flags|=65536,l.lanes=b,u===ic?l.flags|=16384:(i=l.updateQueue,i===null?l.updateQueue=new Set([u]):i.add(u),Lf(n,u,b)),!1;case 22:return l.flags|=65536,u===ic?l.flags|=16384:(i=l.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([u])},l.updateQueue=i):(l=i.retryQueue,l===null?i.retryQueue=new Set([u]):l.add(u)),Lf(n,u,b)),!1}throw Error(a(435,l.tag))}return Lf(n,u,b),Ac(),!1}if(lt)return i=Qn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=b,u!==Cd&&(n=Error(a(422),{cause:u}),gl(cr(n,l)))):(u!==Cd&&(i=Error(a(423),{cause:u}),gl(cr(i,l))),n=n.current.alternate,n.flags|=65536,b&=-b,n.lanes|=b,u=cr(u,l),b=uf(n.stateNode,u,b),Ud(n,b),Vt!==4&&(Vt=2)),!1;var v=Error(a(520),{cause:u});if(v=cr(v,l),Ll===null?Ll=[v]:Ll.push(v),Vt!==4&&(Vt=2),i===null)return!0;u=cr(u,l),l=i;do{switch(l.tag){case 3:return l.flags|=65536,n=b&-b,l.lanes|=n,n=uf(l.stateNode,u,n),Ud(l,n),!1;case 1:if(i=l.type,v=l.stateNode,(l.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Yi===null||!Yi.has(v))))return l.flags|=65536,b&=-b,l.lanes|=b,b=ex(b),tx(b,n,l,u),Ud(l,b),!1}l=l.return}while(l!==null);return!1}var df=Error(a(461)),nn=!1;function vn(n,i,l,u){i.child=n===null?ab(i,null,l,u):Ma(i,n.child,l,u)}function nx(n,i,l,u,b){l=l.render;var v=i.ref;if("ref"in u){var C={};for(var P in u)P!=="ref"&&(C[P]=u[P])}else C=u;return ka(i),u=Gd(n,i,l,C,v,b),P=Vd(),n!==null&&!nn?(Yd(n,i,b),oi(n,i,b)):(lt&&P&&kd(i),i.flags|=1,vn(n,i,u,b),i.child)}function rx(n,i,l,u,b){if(n===null){var v=l.type;return typeof v=="function"&&!Ed(v)&&v.defaultProps===void 0&&l.compare===null?(i.tag=15,i.type=v,ix(n,i,v,u,b)):(n=Wo(l.type,null,u,i,i.mode,b),n.ref=i.ref,n.return=i,i.child=n)}if(v=n.child,!yf(n,b)){var C=v.memoizedProps;if(l=l.compare,l=l!==null?l:hl,l(C,u)&&n.ref===i.ref)return oi(n,i,b)}return i.flags|=1,n=ni(v,u),n.ref=i.ref,n.return=i,i.child=n}function ix(n,i,l,u,b){if(n!==null){var v=n.memoizedProps;if(hl(v,u)&&n.ref===i.ref)if(nn=!1,i.pendingProps=u=v,yf(n,b))(n.flags&131072)!==0&&(nn=!0);else return i.lanes=n.lanes,oi(n,i,b)}return ff(n,i,l,u,b)}function ax(n,i,l,u){var b=u.children,v=n!==null?n.memoizedState:null;if(n===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((i.flags&128)!==0){if(v=v!==null?v.baseLanes|l:l,n!==null){for(u=i.child=n.child,b=0;u!==null;)b=b|u.lanes|u.childLanes,u=u.sibling;u=b&~v}else u=0,i.child=null;return sx(n,i,v,l,u)}if((l&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},n!==null&&nc(i,v!==null?v.cachePool:null),v!==null?ob(i,v):$d(),cb(i);else return u=i.lanes=536870912,sx(n,i,v!==null?v.baseLanes|l:l,l,u)}else v!==null?(nc(i,v.cachePool),ob(i,v),Pi(),i.memoizedState=null):(n!==null&&nc(i,null),$d(),Pi());return vn(n,i,b,l),i.child}function Cl(n,i){return n!==null&&n.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function sx(n,i,l,u,b){var v=Ld();return v=v===null?null:{parent:en._currentValue,pool:v},i.memoizedState={baseLanes:l,cachePool:v},n!==null&&nc(i,null),$d(),cb(i),n!==null&&fs(n,i,u,!0),i.childLanes=b,null}function xc(n,i){return i=vc({mode:i.mode,children:i.children},n.mode),i.ref=n.ref,n.child=i,i.return=n,i}function lx(n,i,l){return Ma(i,n.child,null,l),n=xc(i,i.pendingProps),n.flags|=2,Wn(i),i.memoizedState=null,n}function h2(n,i,l){var u=i.pendingProps,b=(i.flags&128)!==0;if(i.flags&=-129,n===null){if(lt){if(u.mode==="hidden")return n=xc(i,u),i.lanes=536870912,Cl(null,n);if(Pd(i),(n=Dt)?(n=y0(n,fr),n=n!==null&&n.data==="&"?n:null,n!==null&&(i.memoizedState={dehydrated:n,treeContext:Li!==null?{id:Ur,overflow:Hr}:null,retryLane:536870912,hydrationErrors:null},l=Fg(n),l.return=i,i.child=l,xn=i,Dt=null)):n=null,n===null)throw Ii(i);return i.lanes=536870912,null}return xc(i,u)}var v=n.memoizedState;if(v!==null){var C=v.dehydrated;if(Pd(i),b)if(i.flags&256)i.flags&=-257,i=lx(n,i,l);else if(i.memoizedState!==null)i.child=n.child,i.flags|=128,i=null;else throw Error(a(558));else if(nn||fs(n,i,l,!1),b=(l&n.childLanes)!==0,nn||b){if(u=kt,u!==null&&(C=Bt(u,l),C!==0&&C!==v.retryLane))throw v.retryLane=C,wa(n,C),qn(u,n,C),df;Ac(),i=lx(n,i,l)}else n=v.treeContext,Dt=mr(C.nextSibling),xn=i,lt=!0,zi=null,fr=!1,n!==null&&Yg(i,n),i=xc(i,u),i.flags|=4096;return i}return n=ni(n.child,{mode:u.mode,children:u.children}),n.ref=i.ref,i.child=n,n.return=i,n}function yc(n,i){var l=i.ref;if(l===null)n!==null&&n.ref!==null&&(i.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(a(284));(n===null||n.ref!==l)&&(i.flags|=4194816)}}function ff(n,i,l,u,b){return ka(i),l=Gd(n,i,l,u,void 0,b),u=Vd(),n!==null&&!nn?(Yd(n,i,b),oi(n,i,b)):(lt&&u&&kd(i),i.flags|=1,vn(n,i,l,b),i.child)}function ox(n,i,l,u,b,v){return ka(i),i.updateQueue=null,l=db(i,u,l,b),ub(n),u=Vd(),n!==null&&!nn?(Yd(n,i,v),oi(n,i,v)):(lt&&u&&kd(i),i.flags|=1,vn(n,i,l,v),i.child)}function cx(n,i,l,u,b){if(ka(i),i.stateNode===null){var v=os,C=l.contextType;typeof C=="object"&&C!==null&&(v=yn(C)),v=new l(u,v),i.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=cf,i.stateNode=v,v._reactInternals=i,v=i.stateNode,v.props=u,v.state=i.memoizedState,v.refs={},Id(i),C=l.contextType,v.context=typeof C=="object"&&C!==null?yn(C):os,v.state=i.memoizedState,C=l.getDerivedStateFromProps,typeof C=="function"&&(of(i,l,C,u),v.state=i.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(C=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),C!==v.state&&cf.enqueueReplaceState(v,v.state,null),El(i,u,v,b),wl(),v.state=i.memoizedState),typeof v.componentDidMount=="function"&&(i.flags|=4194308),u=!0}else if(n===null){v=i.stateNode;var P=i.memoizedProps,ne=Ra(l,P);v.props=ne;var le=v.context,he=l.contextType;C=os,typeof he=="object"&&he!==null&&(C=yn(he));var ge=l.getDerivedStateFromProps;he=typeof ge=="function"||typeof v.getSnapshotBeforeUpdate=="function",P=i.pendingProps!==P,he||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(P||le!==C)&&Kb(i,v,u,C),Ui=!1;var oe=i.memoizedState;v.state=oe,El(i,u,v,b),wl(),le=i.memoizedState,P||oe!==le||Ui?(typeof ge=="function"&&(of(i,l,ge,u),le=i.memoizedState),(ne=Ui||Xb(i,l,ne,u,oe,le,C))?(he||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(i.flags|=4194308)):(typeof v.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=u,i.memoizedState=le),v.props=u,v.state=le,v.context=C,u=ne):(typeof v.componentDidMount=="function"&&(i.flags|=4194308),u=!1)}else{v=i.stateNode,Bd(n,i),C=i.memoizedProps,he=Ra(l,C),v.props=he,ge=i.pendingProps,oe=v.context,le=l.contextType,ne=os,typeof le=="object"&&le!==null&&(ne=yn(le)),P=l.getDerivedStateFromProps,(le=typeof P=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(C!==ge||oe!==ne)&&Kb(i,v,u,ne),Ui=!1,oe=i.memoizedState,v.state=oe,El(i,u,v,b),wl();var de=i.memoizedState;C!==ge||oe!==de||Ui||n!==null&&n.dependencies!==null&&ec(n.dependencies)?(typeof P=="function"&&(of(i,l,P,u),de=i.memoizedState),(he=Ui||Xb(i,l,he,u,oe,de,ne)||n!==null&&n.dependencies!==null&&ec(n.dependencies))?(le||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(u,de,ne),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(u,de,ne)),typeof v.componentDidUpdate=="function"&&(i.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof v.componentDidUpdate!="function"||C===n.memoizedProps&&oe===n.memoizedState||(i.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||C===n.memoizedProps&&oe===n.memoizedState||(i.flags|=1024),i.memoizedProps=u,i.memoizedState=de),v.props=u,v.state=de,v.context=ne,u=he):(typeof v.componentDidUpdate!="function"||C===n.memoizedProps&&oe===n.memoizedState||(i.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||C===n.memoizedProps&&oe===n.memoizedState||(i.flags|=1024),u=!1)}return v=u,yc(n,i),u=(i.flags&128)!==0,v||u?(v=i.stateNode,l=u&&typeof l.getDerivedStateFromError!="function"?null:v.render(),i.flags|=1,n!==null&&u?(i.child=Ma(i,n.child,null,b),i.child=Ma(i,null,l,b)):vn(n,i,l,b),i.memoizedState=v.state,n=i.child):n=oi(n,i,b),n}function ux(n,i,l,u){return Na(),i.flags|=256,vn(n,i,l,u),i.child}var hf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mf(n){return{baseLanes:n,cachePool:Jg()}}function pf(n,i,l){return n=n!==null?n.childLanes&~l:0,i&&(n|=er),n}function dx(n,i,l){var u=i.pendingProps,b=!1,v=(i.flags&128)!==0,C;if((C=v)||(C=n!==null&&n.memoizedState===null?!1:(Zt.current&2)!==0),C&&(b=!0,i.flags&=-129),C=(i.flags&32)!==0,i.flags&=-33,n===null){if(lt){if(b?qi(i):Pi(),(n=Dt)?(n=y0(n,fr),n=n!==null&&n.data!=="&"?n:null,n!==null&&(i.memoizedState={dehydrated:n,treeContext:Li!==null?{id:Ur,overflow:Hr}:null,retryLane:536870912,hydrationErrors:null},l=Fg(n),l.return=i,i.child=l,xn=i,Dt=null)):n=null,n===null)throw Ii(i);return Qf(n)?i.lanes=32:i.lanes=536870912,null}var P=u.children;return u=u.fallback,b?(Pi(),b=i.mode,P=vc({mode:"hidden",children:P},b),u=Ea(u,b,l,null),P.return=i,u.return=i,P.sibling=u,i.child=P,u=i.child,u.memoizedState=mf(l),u.childLanes=pf(n,C,l),i.memoizedState=hf,Cl(null,u)):(qi(i),gf(i,P))}var ne=n.memoizedState;if(ne!==null&&(P=ne.dehydrated,P!==null)){if(v)i.flags&256?(qi(i),i.flags&=-257,i=bf(n,i,l)):i.memoizedState!==null?(Pi(),i.child=n.child,i.flags|=128,i=null):(Pi(),P=u.fallback,b=i.mode,u=vc({mode:"visible",children:u.children},b),P=Ea(P,b,l,null),P.flags|=2,u.return=i,P.return=i,u.sibling=P,i.child=u,Ma(i,n.child,null,l),u=i.child,u.memoizedState=mf(l),u.childLanes=pf(n,C,l),i.memoizedState=hf,i=Cl(null,u));else if(qi(i),Qf(P)){if(C=P.nextSibling&&P.nextSibling.dataset,C)var le=C.dgst;C=le,u=Error(a(419)),u.stack="",u.digest=C,gl({value:u,source:null,stack:null}),i=bf(n,i,l)}else if(nn||fs(n,i,l,!1),C=(l&n.childLanes)!==0,nn||C){if(C=kt,C!==null&&(u=Bt(C,l),u!==0&&u!==ne.retryLane))throw ne.retryLane=u,wa(n,u),qn(C,n,u),df;Zf(P)||Ac(),i=bf(n,i,l)}else Zf(P)?(i.flags|=192,i.child=n.child,i=null):(n=ne.treeContext,Dt=mr(P.nextSibling),xn=i,lt=!0,zi=null,fr=!1,n!==null&&Yg(i,n),i=gf(i,u.children),i.flags|=4096);return i}return b?(Pi(),P=u.fallback,b=i.mode,ne=n.child,le=ne.sibling,u=ni(ne,{mode:"hidden",children:u.children}),u.subtreeFlags=ne.subtreeFlags&65011712,le!==null?P=ni(le,P):(P=Ea(P,b,l,null),P.flags|=2),P.return=i,u.return=i,u.sibling=P,i.child=u,Cl(null,u),u=i.child,P=n.child.memoizedState,P===null?P=mf(l):(b=P.cachePool,b!==null?(ne=en._currentValue,b=b.parent!==ne?{parent:ne,pool:ne}:b):b=Jg(),P={baseLanes:P.baseLanes|l,cachePool:b}),u.memoizedState=P,u.childLanes=pf(n,C,l),i.memoizedState=hf,Cl(n.child,u)):(qi(i),l=n.child,n=l.sibling,l=ni(l,{mode:"visible",children:u.children}),l.return=i,l.sibling=null,n!==null&&(C=i.deletions,C===null?(i.deletions=[n],i.flags|=16):C.push(n)),i.child=l,i.memoizedState=null,l)}function gf(n,i){return i=vc({mode:"visible",children:i},n.mode),i.return=n,n.child=i}function vc(n,i){return n=Zn(22,n,null,i),n.lanes=0,n}function bf(n,i,l){return Ma(i,n.child,null,l),n=gf(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function fx(n,i,l){n.lanes|=i;var u=n.alternate;u!==null&&(u.lanes|=i),Od(n.return,i,l)}function xf(n,i,l,u,b,v){var C=n.memoizedState;C===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:b,treeForkCount:v}:(C.isBackwards=i,C.rendering=null,C.renderingStartTime=0,C.last=u,C.tail=l,C.tailMode=b,C.treeForkCount=v)}function hx(n,i,l){var u=i.pendingProps,b=u.revealOrder,v=u.tail;u=u.children;var C=Zt.current,P=(C&2)!==0;if(P?(C=C&1|2,i.flags|=128):C&=1,z(Zt,C),vn(n,i,u,l),u=lt?pl:0,!P&&n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&fx(n,l,i);else if(n.tag===19)fx(n,l,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(b){case"forwards":for(l=i.child,b=null;l!==null;)n=l.alternate,n!==null&&oc(n)===null&&(b=l),l=l.sibling;l=b,l===null?(b=i.child,i.child=null):(b=l.sibling,l.sibling=null),xf(i,!1,b,l,v,u);break;case"backwards":case"unstable_legacy-backwards":for(l=null,b=i.child,i.child=null;b!==null;){if(n=b.alternate,n!==null&&oc(n)===null){i.child=b;break}n=b.sibling,b.sibling=l,l=b,b=n}xf(i,!0,l,null,v,u);break;case"together":xf(i,!1,null,null,void 0,u);break;default:i.memoizedState=null}return i.child}function oi(n,i,l){if(n!==null&&(i.dependencies=n.dependencies),Vi|=i.lanes,(l&i.childLanes)===0)if(n!==null){if(fs(n,i,l,!1),(l&i.childLanes)===0)return null}else return null;if(n!==null&&i.child!==n.child)throw Error(a(153));if(i.child!==null){for(n=i.child,l=ni(n,n.pendingProps),i.child=l,l.return=i;n.sibling!==null;)n=n.sibling,l=l.sibling=ni(n,n.pendingProps),l.return=i;l.sibling=null}return i.child}function yf(n,i){return(n.lanes&i)!==0?!0:(n=n.dependencies,!!(n!==null&&ec(n)))}function m2(n,i,l){switch(i.tag){case 3:W(i,i.stateNode.containerInfo),Bi(i,en,n.memoizedState.cache),Na();break;case 27:case 5:ce(i);break;case 4:W(i,i.stateNode.containerInfo);break;case 10:Bi(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,Pd(i),null;break;case 13:var u=i.memoizedState;if(u!==null)return u.dehydrated!==null?(qi(i),i.flags|=128,null):(l&i.child.childLanes)!==0?dx(n,i,l):(qi(i),n=oi(n,i,l),n!==null?n.sibling:null);qi(i);break;case 19:var b=(n.flags&128)!==0;if(u=(l&i.childLanes)!==0,u||(fs(n,i,l,!1),u=(l&i.childLanes)!==0),b){if(u)return hx(n,i,l);i.flags|=128}if(b=i.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),z(Zt,Zt.current),u)break;return null;case 22:return i.lanes=0,ax(n,i,l,i.pendingProps);case 24:Bi(i,en,n.memoizedState.cache)}return oi(n,i,l)}function mx(n,i,l){if(n!==null)if(n.memoizedProps!==i.pendingProps)nn=!0;else{if(!yf(n,l)&&(i.flags&128)===0)return nn=!1,m2(n,i,l);nn=(n.flags&131072)!==0}else nn=!1,lt&&(i.flags&1048576)!==0&&Vg(i,pl,i.index);switch(i.lanes=0,i.tag){case 16:e:{var u=i.pendingProps;if(n=Ca(i.elementType),i.type=n,typeof n=="function")Ed(n)?(u=Ra(n,u),i.tag=1,i=cx(null,i,n,u,l)):(i.tag=0,i=ff(null,i,n,u,l));else{if(n!=null){var b=n.$$typeof;if(b===M){i.tag=11,i=nx(null,i,n,u,l);break e}else if(b===U){i.tag=14,i=rx(null,i,n,u,l);break e}}throw i=A(n)||n,Error(a(306,i,""))}}return i;case 0:return ff(n,i,i.type,i.pendingProps,l);case 1:return u=i.type,b=Ra(u,i.pendingProps),cx(n,i,u,b,l);case 3:e:{if(W(i,i.stateNode.containerInfo),n===null)throw Error(a(387));u=i.pendingProps;var v=i.memoizedState;b=v.element,Bd(n,i),El(i,u,null,l);var C=i.memoizedState;if(u=C.cache,Bi(i,en,u),u!==v.cache&&Rd(i,[en],l,!0),wl(),u=C.element,v.isDehydrated)if(v={element:u,isDehydrated:!1,cache:C.cache},i.updateQueue.baseState=v,i.memoizedState=v,i.flags&256){i=ux(n,i,u,l);break e}else if(u!==b){b=cr(Error(a(424)),i),gl(b),i=ux(n,i,u,l);break e}else{switch(n=i.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(Dt=mr(n.firstChild),xn=i,lt=!0,zi=null,fr=!0,l=ab(i,null,u,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Na(),u===b){i=oi(n,i,l);break e}vn(n,i,u,l)}i=i.child}return i;case 26:return yc(n,i),n===null?(l=S0(i.type,null,i.pendingProps,null))?i.memoizedState=l:lt||(l=i.type,n=i.pendingProps,u=zc(Q.current).createElement(l),u[Ut]=i,u[mn]=n,_n(u,l,n),Ft(u),i.stateNode=u):i.memoizedState=S0(i.type,n.memoizedProps,i.pendingProps,n.memoizedState),null;case 27:return ce(i),n===null&&lt&&(u=i.stateNode=w0(i.type,i.pendingProps,Q.current),xn=i,fr=!0,b=Dt,Qi(i.type)?(Wf=b,Dt=mr(u.firstChild)):Dt=b),vn(n,i,i.pendingProps.children,l),yc(n,i),n===null&&(i.flags|=4194304),i.child;case 5:return n===null&&lt&&((b=u=Dt)&&(u=F2(u,i.type,i.pendingProps,fr),u!==null?(i.stateNode=u,xn=i,Dt=mr(u.firstChild),fr=!1,b=!0):b=!1),b||Ii(i)),ce(i),b=i.type,v=i.pendingProps,C=n!==null?n.memoizedProps:null,u=v.children,Yf(b,v)?u=null:C!==null&&Yf(b,C)&&(i.flags|=32),i.memoizedState!==null&&(b=Gd(n,i,a2,null,null,l),Pl._currentValue=b),yc(n,i),vn(n,i,u,l),i.child;case 6:return n===null&&lt&&((n=l=Dt)&&(l=G2(l,i.pendingProps,fr),l!==null?(i.stateNode=l,xn=i,Dt=null,n=!0):n=!1),n||Ii(i)),null;case 13:return dx(n,i,l);case 4:return W(i,i.stateNode.containerInfo),u=i.pendingProps,n===null?i.child=Ma(i,null,u,l):vn(n,i,u,l),i.child;case 11:return nx(n,i,i.type,i.pendingProps,l);case 7:return vn(n,i,i.pendingProps,l),i.child;case 8:return vn(n,i,i.pendingProps.children,l),i.child;case 12:return vn(n,i,i.pendingProps.children,l),i.child;case 10:return u=i.pendingProps,Bi(i,i.type,u.value),vn(n,i,u.children,l),i.child;case 9:return b=i.type._context,u=i.pendingProps.children,ka(i),b=yn(b),u=u(b),i.flags|=1,vn(n,i,u,l),i.child;case 14:return rx(n,i,i.type,i.pendingProps,l);case 15:return ix(n,i,i.type,i.pendingProps,l);case 19:return hx(n,i,l);case 31:return h2(n,i,l);case 22:return ax(n,i,l,i.pendingProps);case 24:return ka(i),u=yn(en),n===null?(b=Ld(),b===null&&(b=kt,v=Dd(),b.pooledCache=v,v.refCount++,v!==null&&(b.pooledCacheLanes|=l),b=v),i.memoizedState={parent:u,cache:b},Id(i),Bi(i,en,b)):((n.lanes&l)!==0&&(Bd(n,i),El(i,null,null,l),wl()),b=n.memoizedState,v=i.memoizedState,b.parent!==u?(b={parent:u,cache:u},i.memoizedState=b,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=b),Bi(i,en,u)):(u=v.cache,Bi(i,en,u),u!==b.cache&&Rd(i,[en],l,!0))),vn(n,i,i.pendingProps.children,l),i.child;case 29:throw i.pendingProps}throw Error(a(156,i.tag))}function ci(n){n.flags|=4}function vf(n,i,l,u,b){if((i=(n.mode&32)!==0)&&(i=!1),i){if(n.flags|=16777216,(b&335544128)===b)if(n.stateNode.complete)n.flags|=8192;else if($x())n.flags|=8192;else throw Aa=ic,zd}else n.flags&=-16777217}function px(n,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!M0(i))if($x())n.flags|=8192;else throw Aa=ic,zd}function _c(n,i){i!==null&&(n.flags|=4),n.flags&16384&&(i=n.tag!==22?Pe():536870912,n.lanes|=i,Ns|=i)}function Al(n,i){if(!lt)switch(n.tailMode){case"hidden":i=n.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?n.tail=null:l.sibling=null;break;case"collapsed":l=n.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:u.sibling=null}}function jt(n){var i=n.alternate!==null&&n.alternate.child===n.child,l=0,u=0;if(i)for(var b=n.child;b!==null;)l|=b.lanes|b.childLanes,u|=b.subtreeFlags&65011712,u|=b.flags&65011712,b.return=n,b=b.sibling;else for(b=n.child;b!==null;)l|=b.lanes|b.childLanes,u|=b.subtreeFlags,u|=b.flags,b.return=n,b=b.sibling;return n.subtreeFlags|=u,n.childLanes=l,i}function p2(n,i,l){var u=i.pendingProps;switch(Td(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jt(i),null;case 1:return jt(i),null;case 3:return l=i.stateNode,u=null,n!==null&&(u=n.memoizedState.cache),i.memoizedState.cache!==u&&(i.flags|=2048),ai(en),te(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(n===null||n.child===null)&&(ds(i)?ci(i):n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Ad())),jt(i),null;case 26:var b=i.type,v=i.memoizedState;return n===null?(ci(i),v!==null?(jt(i),px(i,v)):(jt(i),vf(i,b,null,u,l))):v?v!==n.memoizedState?(ci(i),jt(i),px(i,v)):(jt(i),i.flags&=-16777217):(n=n.memoizedProps,n!==u&&ci(i),jt(i),vf(i,b,n,u,l)),null;case 27:if(fe(i),l=Q.current,b=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==u&&ci(i);else{if(!u){if(i.stateNode===null)throw Error(a(166));return jt(i),null}n=F.current,ds(i)?Xg(i):(n=w0(b,u,l),i.stateNode=n,ci(i))}return jt(i),null;case 5:if(fe(i),b=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==u&&ci(i);else{if(!u){if(i.stateNode===null)throw Error(a(166));return jt(i),null}if(v=F.current,ds(i))Xg(i);else{var C=zc(Q.current);switch(v){case 1:v=C.createElementNS("http://www.w3.org/2000/svg",b);break;case 2:v=C.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;default:switch(b){case"svg":v=C.createElementNS("http://www.w3.org/2000/svg",b);break;case"math":v=C.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;case"script":v=C.createElement("div"),v.innerHTML="<script><\/script>",v=v.removeChild(v.firstChild);break;case"select":v=typeof u.is=="string"?C.createElement("select",{is:u.is}):C.createElement("select"),u.multiple?v.multiple=!0:u.size&&(v.size=u.size);break;default:v=typeof u.is=="string"?C.createElement(b,{is:u.is}):C.createElement(b)}}v[Ut]=i,v[mn]=u;e:for(C=i.child;C!==null;){if(C.tag===5||C.tag===6)v.appendChild(C.stateNode);else if(C.tag!==4&&C.tag!==27&&C.child!==null){C.child.return=C,C=C.child;continue}if(C===i)break e;for(;C.sibling===null;){if(C.return===null||C.return===i)break e;C=C.return}C.sibling.return=C.return,C=C.sibling}i.stateNode=v;e:switch(_n(v,b,u),b){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&ci(i)}}return jt(i),vf(i,i.type,n===null?null:n.memoizedProps,i.pendingProps,l),null;case 6:if(n&&i.stateNode!=null)n.memoizedProps!==u&&ci(i);else{if(typeof u!="string"&&i.stateNode===null)throw Error(a(166));if(n=Q.current,ds(i)){if(n=i.stateNode,l=i.memoizedProps,u=null,b=xn,b!==null)switch(b.tag){case 27:case 5:u=b.memoizedProps}n[Ut]=i,n=!!(n.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||d0(n.nodeValue,l)),n||Ii(i,!0)}else n=zc(n).createTextNode(u),n[Ut]=i,i.stateNode=n}return jt(i),null;case 31:if(l=i.memoizedState,n===null||n.memoizedState!==null){if(u=ds(i),l!==null){if(n===null){if(!u)throw Error(a(318));if(n=i.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(557));n[Ut]=i}else Na(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;jt(i),n=!1}else l=Ad(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=l),n=!0;if(!n)return i.flags&256?(Wn(i),i):(Wn(i),null);if((i.flags&128)!==0)throw Error(a(558))}return jt(i),null;case 13:if(u=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(b=ds(i),u!==null&&u.dehydrated!==null){if(n===null){if(!b)throw Error(a(318));if(b=i.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(a(317));b[Ut]=i}else Na(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;jt(i),b=!1}else b=Ad(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=b),b=!0;if(!b)return i.flags&256?(Wn(i),i):(Wn(i),null)}return Wn(i),(i.flags&128)!==0?(i.lanes=l,i):(l=u!==null,n=n!==null&&n.memoizedState!==null,l&&(u=i.child,b=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(b=u.alternate.memoizedState.cachePool.pool),v=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(v=u.memoizedState.cachePool.pool),v!==b&&(u.flags|=2048)),l!==n&&l&&(i.child.flags|=8192),_c(i,i.updateQueue),jt(i),null);case 4:return te(),n===null&&qf(i.stateNode.containerInfo),jt(i),null;case 10:return ai(i.type),jt(i),null;case 19:if(Y(Zt),u=i.memoizedState,u===null)return jt(i),null;if(b=(i.flags&128)!==0,v=u.rendering,v===null)if(b)Al(u,!1);else{if(Vt!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(v=oc(n),v!==null){for(i.flags|=128,Al(u,!1),n=v.updateQueue,i.updateQueue=n,_c(i,n),i.subtreeFlags=0,n=l,l=i.child;l!==null;)Pg(l,n),l=l.sibling;return z(Zt,Zt.current&1|2),lt&&ri(i,u.treeForkCount),i.child}n=n.sibling}u.tail!==null&&ct()>kc&&(i.flags|=128,b=!0,Al(u,!1),i.lanes=4194304)}else{if(!b)if(n=oc(v),n!==null){if(i.flags|=128,b=!0,n=n.updateQueue,i.updateQueue=n,_c(i,n),Al(u,!0),u.tail===null&&u.tailMode==="hidden"&&!v.alternate&&!lt)return jt(i),null}else 2*ct()-u.renderingStartTime>kc&&l!==536870912&&(i.flags|=128,b=!0,Al(u,!1),i.lanes=4194304);u.isBackwards?(v.sibling=i.child,i.child=v):(n=u.last,n!==null?n.sibling=v:i.child=v,u.last=v)}return u.tail!==null?(n=u.tail,u.rendering=n,u.tail=n.sibling,u.renderingStartTime=ct(),n.sibling=null,l=Zt.current,z(Zt,b?l&1|2:l&1),lt&&ri(i,u.treeForkCount),n):(jt(i),null);case 22:case 23:return Wn(i),qd(),u=i.memoizedState!==null,n!==null?n.memoizedState!==null!==u&&(i.flags|=8192):u&&(i.flags|=8192),u?(l&536870912)!==0&&(i.flags&128)===0&&(jt(i),i.subtreeFlags&6&&(i.flags|=8192)):jt(i),l=i.updateQueue,l!==null&&_c(i,l.retryQueue),l=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),u=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==l&&(i.flags|=2048),n!==null&&Y(Ta),null;case 24:return l=null,n!==null&&(l=n.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),ai(en),jt(i),null;case 25:return null;case 30:return null}throw Error(a(156,i.tag))}function g2(n,i){switch(Td(i),i.tag){case 1:return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return ai(en),te(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 26:case 27:case 5:return fe(i),null;case 31:if(i.memoizedState!==null){if(Wn(i),i.alternate===null)throw Error(a(340));Na()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 13:if(Wn(i),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(a(340));Na()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return Y(Zt),null;case 4:return te(),null;case 10:return ai(i.type),null;case 22:case 23:return Wn(i),qd(),n!==null&&Y(Ta),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 24:return ai(en),null;case 25:return null;default:return null}}function gx(n,i){switch(Td(i),i.tag){case 3:ai(en),te();break;case 26:case 27:case 5:fe(i);break;case 4:te();break;case 31:i.memoizedState!==null&&Wn(i);break;case 13:Wn(i);break;case 19:Y(Zt);break;case 10:ai(i.type);break;case 22:case 23:Wn(i),qd(),n!==null&&Y(Ta);break;case 24:ai(en)}}function Ml(n,i){try{var l=i.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var b=u.next;l=b;do{if((l.tag&n)===n){u=void 0;var v=l.create,C=l.inst;u=v(),C.destroy=u}l=l.next}while(l!==b)}}catch(P){yt(i,i.return,P)}}function Fi(n,i,l){try{var u=i.updateQueue,b=u!==null?u.lastEffect:null;if(b!==null){var v=b.next;u=v;do{if((u.tag&n)===n){var C=u.inst,P=C.destroy;if(P!==void 0){C.destroy=void 0,b=i;var ne=l,le=P;try{le()}catch(he){yt(b,ne,he)}}}u=u.next}while(u!==v)}}catch(he){yt(i,i.return,he)}}function bx(n){var i=n.updateQueue;if(i!==null){var l=n.stateNode;try{lb(i,l)}catch(u){yt(n,n.return,u)}}}function xx(n,i,l){l.props=Ra(n.type,n.memoizedProps),l.state=n.memoizedState;try{l.componentWillUnmount()}catch(u){yt(n,i,u)}}function Ol(n,i){try{var l=n.ref;if(l!==null){switch(n.tag){case 26:case 27:case 5:var u=n.stateNode;break;case 30:u=n.stateNode;break;default:u=n.stateNode}typeof l=="function"?n.refCleanup=l(u):l.current=u}}catch(b){yt(n,i,b)}}function $r(n,i){var l=n.ref,u=n.refCleanup;if(l!==null)if(typeof u=="function")try{u()}catch(b){yt(n,i,b)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(b){yt(n,i,b)}else l.current=null}function yx(n){var i=n.type,l=n.memoizedProps,u=n.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":l.autoFocus&&u.focus();break e;case"img":l.src?u.src=l.src:l.srcSet&&(u.srcset=l.srcSet)}}catch(b){yt(n,n.return,b)}}function _f(n,i,l){try{var u=n.stateNode;B2(u,n.type,l,i),u[mn]=i}catch(b){yt(n,n.return,b)}}function vx(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Qi(n.type)||n.tag===4}function wf(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||vx(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Qi(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Ef(n,i,l){var u=n.tag;if(u===5||u===6)n=n.stateNode,i?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(n,i):(i=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,i.appendChild(n),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=_e));else if(u!==4&&(u===27&&Qi(n.type)&&(l=n.stateNode,i=null),n=n.child,n!==null))for(Ef(n,i,l),n=n.sibling;n!==null;)Ef(n,i,l),n=n.sibling}function wc(n,i,l){var u=n.tag;if(u===5||u===6)n=n.stateNode,i?l.insertBefore(n,i):l.appendChild(n);else if(u!==4&&(u===27&&Qi(n.type)&&(l=n.stateNode),n=n.child,n!==null))for(wc(n,i,l),n=n.sibling;n!==null;)wc(n,i,l),n=n.sibling}function _x(n){var i=n.stateNode,l=n.memoizedProps;try{for(var u=n.type,b=i.attributes;b.length;)i.removeAttributeNode(b[0]);_n(i,u,l),i[Ut]=n,i[mn]=l}catch(v){yt(n,n.return,v)}}var ui=!1,rn=!1,Nf=!1,wx=typeof WeakSet=="function"?WeakSet:Set,gn=null;function b2(n,i){if(n=n.containerInfo,Gf=Pc,n=jg(n),gd(n)){if("selectionStart"in n)var l={start:n.selectionStart,end:n.selectionEnd};else e:{l=(l=n.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var b=u.anchorOffset,v=u.focusNode;u=u.focusOffset;try{l.nodeType,v.nodeType}catch{l=null;break e}var C=0,P=-1,ne=-1,le=0,he=0,ge=n,oe=null;t:for(;;){for(var de;ge!==l||b!==0&&ge.nodeType!==3||(P=C+b),ge!==v||u!==0&&ge.nodeType!==3||(ne=C+u),ge.nodeType===3&&(C+=ge.nodeValue.length),(de=ge.firstChild)!==null;)oe=ge,ge=de;for(;;){if(ge===n)break t;if(oe===l&&++le===b&&(P=C),oe===v&&++he===u&&(ne=C),(de=ge.nextSibling)!==null)break;ge=oe,oe=ge.parentNode}ge=de}l=P===-1||ne===-1?null:{start:P,end:ne}}else l=null}l=l||{start:0,end:0}}else l=null;for(Vf={focusedElem:n,selectionRange:l},Pc=!1,gn=i;gn!==null;)if(i=gn,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,gn=n;else for(;gn!==null;){switch(i=gn,v=i.alternate,n=i.flags,i.tag){case 0:if((n&4)!==0&&(n=i.updateQueue,n=n!==null?n.events:null,n!==null))for(l=0;l<n.length;l++)b=n[l],b.ref.impl=b.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&v!==null){n=void 0,l=i,b=v.memoizedProps,v=v.memoizedState,u=l.stateNode;try{var Ce=Ra(l.type,b);n=u.getSnapshotBeforeUpdate(Ce,v),u.__reactInternalSnapshotBeforeUpdate=n}catch(He){yt(l,l.return,He)}}break;case 3:if((n&1024)!==0){if(n=i.stateNode.containerInfo,l=n.nodeType,l===9)Kf(n);else if(l===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Kf(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(a(163))}if(n=i.sibling,n!==null){n.return=i.return,gn=n;break}gn=i.return}}function Ex(n,i,l){var u=l.flags;switch(l.tag){case 0:case 11:case 15:fi(n,l),u&4&&Ml(5,l);break;case 1:if(fi(n,l),u&4)if(n=l.stateNode,i===null)try{n.componentDidMount()}catch(C){yt(l,l.return,C)}else{var b=Ra(l.type,i.memoizedProps);i=i.memoizedState;try{n.componentDidUpdate(b,i,n.__reactInternalSnapshotBeforeUpdate)}catch(C){yt(l,l.return,C)}}u&64&&bx(l),u&512&&Ol(l,l.return);break;case 3:if(fi(n,l),u&64&&(n=l.updateQueue,n!==null)){if(i=null,l.child!==null)switch(l.child.tag){case 27:case 5:i=l.child.stateNode;break;case 1:i=l.child.stateNode}try{lb(n,i)}catch(C){yt(l,l.return,C)}}break;case 27:i===null&&u&4&&_x(l);case 26:case 5:fi(n,l),i===null&&u&4&&yx(l),u&512&&Ol(l,l.return);break;case 12:fi(n,l);break;case 31:fi(n,l),u&4&&kx(n,l);break;case 13:fi(n,l),u&4&&Tx(n,l),u&64&&(n=l.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(l=k2.bind(null,l),V2(n,l))));break;case 22:if(u=l.memoizedState!==null||ui,!u){i=i!==null&&i.memoizedState!==null||rn,b=ui;var v=rn;ui=u,(rn=i)&&!v?hi(n,l,(l.subtreeFlags&8772)!==0):fi(n,l),ui=b,rn=v}break;case 30:break;default:fi(n,l)}}function Nx(n){var i=n.alternate;i!==null&&(n.alternate=null,Nx(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&ga(i)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var zt=null,Bn=!1;function di(n,i,l){for(l=l.child;l!==null;)Sx(n,i,l),l=l.sibling}function Sx(n,i,l){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(Kt,l)}catch{}switch(l.tag){case 26:rn||$r(l,i),di(n,i,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:rn||$r(l,i);var u=zt,b=Bn;Qi(l.type)&&(zt=l.stateNode,Bn=!1),di(n,i,l),Hl(l.stateNode),zt=u,Bn=b;break;case 5:rn||$r(l,i);case 6:if(u=zt,b=Bn,zt=null,di(n,i,l),zt=u,Bn=b,zt!==null)if(Bn)try{(zt.nodeType===9?zt.body:zt.nodeName==="HTML"?zt.ownerDocument.body:zt).removeChild(l.stateNode)}catch(v){yt(l,i,v)}else try{zt.removeChild(l.stateNode)}catch(v){yt(l,i,v)}break;case 18:zt!==null&&(Bn?(n=zt,b0(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,l.stateNode),Rs(n)):b0(zt,l.stateNode));break;case 4:u=zt,b=Bn,zt=l.stateNode.containerInfo,Bn=!0,di(n,i,l),zt=u,Bn=b;break;case 0:case 11:case 14:case 15:Fi(2,l,i),rn||Fi(4,l,i),di(n,i,l);break;case 1:rn||($r(l,i),u=l.stateNode,typeof u.componentWillUnmount=="function"&&xx(l,i,u)),di(n,i,l);break;case 21:di(n,i,l);break;case 22:rn=(u=rn)||l.memoizedState!==null,di(n,i,l),rn=u;break;default:di(n,i,l)}}function kx(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{Rs(n)}catch(l){yt(i,i.return,l)}}}function Tx(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Rs(n)}catch(l){yt(i,i.return,l)}}function x2(n){switch(n.tag){case 31:case 13:case 19:var i=n.stateNode;return i===null&&(i=n.stateNode=new wx),i;case 22:return n=n.stateNode,i=n._retryCache,i===null&&(i=n._retryCache=new wx),i;default:throw Error(a(435,n.tag))}}function Ec(n,i){var l=x2(n);i.forEach(function(u){if(!l.has(u)){l.add(u);var b=T2.bind(null,n,u);u.then(b,b)}})}function Un(n,i){var l=i.deletions;if(l!==null)for(var u=0;u<l.length;u++){var b=l[u],v=n,C=i,P=C;e:for(;P!==null;){switch(P.tag){case 27:if(Qi(P.type)){zt=P.stateNode,Bn=!1;break e}break;case 5:zt=P.stateNode,Bn=!1;break e;case 3:case 4:zt=P.stateNode.containerInfo,Bn=!0;break e}P=P.return}if(zt===null)throw Error(a(160));Sx(v,C,b),zt=null,Bn=!1,v=b.alternate,v!==null&&(v.return=null),b.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)Cx(i,n),i=i.sibling}var Sr=null;function Cx(n,i){var l=n.alternate,u=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:Un(i,n),Hn(n),u&4&&(Fi(3,n,n.return),Ml(3,n),Fi(5,n,n.return));break;case 1:Un(i,n),Hn(n),u&512&&(rn||l===null||$r(l,l.return)),u&64&&ui&&(n=n.updateQueue,n!==null&&(u=n.callbacks,u!==null&&(l=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=l===null?u:l.concat(u))));break;case 26:var b=Sr;if(Un(i,n),Hn(n),u&512&&(rn||l===null||$r(l,l.return)),u&4){var v=l!==null?l.memoizedState:null;if(u=n.memoizedState,l===null)if(u===null)if(n.stateNode===null){e:{u=n.type,l=n.memoizedProps,b=b.ownerDocument||b;t:switch(u){case"title":v=b.getElementsByTagName("title")[0],(!v||v[Wr]||v[Ut]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=b.createElement(u),b.head.insertBefore(v,b.querySelector("head > title"))),_n(v,u,l),v[Ut]=n,Ft(v),u=v;break e;case"link":var C=C0("link","href",b).get(u+(l.href||""));if(C){for(var P=0;P<C.length;P++)if(v=C[P],v.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&v.getAttribute("rel")===(l.rel==null?null:l.rel)&&v.getAttribute("title")===(l.title==null?null:l.title)&&v.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){C.splice(P,1);break t}}v=b.createElement(u),_n(v,u,l),b.head.appendChild(v);break;case"meta":if(C=C0("meta","content",b).get(u+(l.content||""))){for(P=0;P<C.length;P++)if(v=C[P],v.getAttribute("content")===(l.content==null?null:""+l.content)&&v.getAttribute("name")===(l.name==null?null:l.name)&&v.getAttribute("property")===(l.property==null?null:l.property)&&v.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&v.getAttribute("charset")===(l.charSet==null?null:l.charSet)){C.splice(P,1);break t}}v=b.createElement(u),_n(v,u,l),b.head.appendChild(v);break;default:throw Error(a(468,u))}v[Ut]=n,Ft(v),u=v}n.stateNode=u}else A0(b,n.type,n.stateNode);else n.stateNode=T0(b,u,n.memoizedProps);else v!==u?(v===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):v.count--,u===null?A0(b,n.type,n.stateNode):T0(b,u,n.memoizedProps)):u===null&&n.stateNode!==null&&_f(n,n.memoizedProps,l.memoizedProps)}break;case 27:Un(i,n),Hn(n),u&512&&(rn||l===null||$r(l,l.return)),l!==null&&u&4&&_f(n,n.memoizedProps,l.memoizedProps);break;case 5:if(Un(i,n),Hn(n),u&512&&(rn||l===null||$r(l,l.return)),n.flags&32){b=n.stateNode;try{qe(b,"")}catch(Ce){yt(n,n.return,Ce)}}u&4&&n.stateNode!=null&&(b=n.memoizedProps,_f(n,b,l!==null?l.memoizedProps:b)),u&1024&&(Nf=!0);break;case 6:if(Un(i,n),Hn(n),u&4){if(n.stateNode===null)throw Error(a(162));u=n.memoizedProps,l=n.stateNode;try{l.nodeValue=u}catch(Ce){yt(n,n.return,Ce)}}break;case 3:if(Uc=null,b=Sr,Sr=Ic(i.containerInfo),Un(i,n),Sr=b,Hn(n),u&4&&l!==null&&l.memoizedState.isDehydrated)try{Rs(i.containerInfo)}catch(Ce){yt(n,n.return,Ce)}Nf&&(Nf=!1,Ax(n));break;case 4:u=Sr,Sr=Ic(n.stateNode.containerInfo),Un(i,n),Hn(n),Sr=u;break;case 12:Un(i,n),Hn(n);break;case 31:Un(i,n),Hn(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,Ec(n,u)));break;case 13:Un(i,n),Hn(n),n.child.flags&8192&&n.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Sc=ct()),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,Ec(n,u)));break;case 22:b=n.memoizedState!==null;var ne=l!==null&&l.memoizedState!==null,le=ui,he=rn;if(ui=le||b,rn=he||ne,Un(i,n),rn=he,ui=le,Hn(n),u&8192)e:for(i=n.stateNode,i._visibility=b?i._visibility&-2:i._visibility|1,b&&(l===null||ne||ui||rn||Da(n)),l=null,i=n;;){if(i.tag===5||i.tag===26){if(l===null){ne=l=i;try{if(v=ne.stateNode,b)C=v.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none";else{P=ne.stateNode;var ge=ne.memoizedProps.style,oe=ge!=null&&ge.hasOwnProperty("display")?ge.display:null;P.style.display=oe==null||typeof oe=="boolean"?"":(""+oe).trim()}}catch(Ce){yt(ne,ne.return,Ce)}}}else if(i.tag===6){if(l===null){ne=i;try{ne.stateNode.nodeValue=b?"":ne.memoizedProps}catch(Ce){yt(ne,ne.return,Ce)}}}else if(i.tag===18){if(l===null){ne=i;try{var de=ne.stateNode;b?x0(de,!0):x0(ne.stateNode,!1)}catch(Ce){yt(ne,ne.return,Ce)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===n)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break e;for(;i.sibling===null;){if(i.return===null||i.return===n)break e;l===i&&(l=null),i=i.return}l===i&&(l=null),i.sibling.return=i.return,i=i.sibling}u&4&&(u=n.updateQueue,u!==null&&(l=u.retryQueue,l!==null&&(u.retryQueue=null,Ec(n,l))));break;case 19:Un(i,n),Hn(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,Ec(n,u)));break;case 30:break;case 21:break;default:Un(i,n),Hn(n)}}function Hn(n){var i=n.flags;if(i&2){try{for(var l,u=n.return;u!==null;){if(vx(u)){l=u;break}u=u.return}if(l==null)throw Error(a(160));switch(l.tag){case 27:var b=l.stateNode,v=wf(n);wc(n,v,b);break;case 5:var C=l.stateNode;l.flags&32&&(qe(C,""),l.flags&=-33);var P=wf(n);wc(n,P,C);break;case 3:case 4:var ne=l.stateNode.containerInfo,le=wf(n);Ef(n,le,ne);break;default:throw Error(a(161))}}catch(he){yt(n,n.return,he)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function Ax(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var i=n;Ax(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),n=n.sibling}}function fi(n,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)Ex(n,i.alternate,i),i=i.sibling}function Da(n){for(n=n.child;n!==null;){var i=n;switch(i.tag){case 0:case 11:case 14:case 15:Fi(4,i,i.return),Da(i);break;case 1:$r(i,i.return);var l=i.stateNode;typeof l.componentWillUnmount=="function"&&xx(i,i.return,l),Da(i);break;case 27:Hl(i.stateNode);case 26:case 5:$r(i,i.return),Da(i);break;case 22:i.memoizedState===null&&Da(i);break;case 30:Da(i);break;default:Da(i)}n=n.sibling}}function hi(n,i,l){for(l=l&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var u=i.alternate,b=n,v=i,C=v.flags;switch(v.tag){case 0:case 11:case 15:hi(b,v,l),Ml(4,v);break;case 1:if(hi(b,v,l),u=v,b=u.stateNode,typeof b.componentDidMount=="function")try{b.componentDidMount()}catch(le){yt(u,u.return,le)}if(u=v,b=u.updateQueue,b!==null){var P=u.stateNode;try{var ne=b.shared.hiddenCallbacks;if(ne!==null)for(b.shared.hiddenCallbacks=null,b=0;b<ne.length;b++)sb(ne[b],P)}catch(le){yt(u,u.return,le)}}l&&C&64&&bx(v),Ol(v,v.return);break;case 27:_x(v);case 26:case 5:hi(b,v,l),l&&u===null&&C&4&&yx(v),Ol(v,v.return);break;case 12:hi(b,v,l);break;case 31:hi(b,v,l),l&&C&4&&kx(b,v);break;case 13:hi(b,v,l),l&&C&4&&Tx(b,v);break;case 22:v.memoizedState===null&&hi(b,v,l),Ol(v,v.return);break;case 30:break;default:hi(b,v,l)}i=i.sibling}}function Sf(n,i){var l=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),n=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(n=i.memoizedState.cachePool.pool),n!==l&&(n!=null&&n.refCount++,l!=null&&bl(l))}function kf(n,i){n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&bl(n))}function kr(n,i,l,u){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)Mx(n,i,l,u),i=i.sibling}function Mx(n,i,l,u){var b=i.flags;switch(i.tag){case 0:case 11:case 15:kr(n,i,l,u),b&2048&&Ml(9,i);break;case 1:kr(n,i,l,u);break;case 3:kr(n,i,l,u),b&2048&&(n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&bl(n)));break;case 12:if(b&2048){kr(n,i,l,u),n=i.stateNode;try{var v=i.memoizedProps,C=v.id,P=v.onPostCommit;typeof P=="function"&&P(C,i.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(ne){yt(i,i.return,ne)}}else kr(n,i,l,u);break;case 31:kr(n,i,l,u);break;case 13:kr(n,i,l,u);break;case 23:break;case 22:v=i.stateNode,C=i.alternate,i.memoizedState!==null?v._visibility&2?kr(n,i,l,u):Rl(n,i):v._visibility&2?kr(n,i,l,u):(v._visibility|=2,_s(n,i,l,u,(i.subtreeFlags&10256)!==0||!1)),b&2048&&Sf(C,i);break;case 24:kr(n,i,l,u),b&2048&&kf(i.alternate,i);break;default:kr(n,i,l,u)}}function _s(n,i,l,u,b){for(b=b&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var v=n,C=i,P=l,ne=u,le=C.flags;switch(C.tag){case 0:case 11:case 15:_s(v,C,P,ne,b),Ml(8,C);break;case 23:break;case 22:var he=C.stateNode;C.memoizedState!==null?he._visibility&2?_s(v,C,P,ne,b):Rl(v,C):(he._visibility|=2,_s(v,C,P,ne,b)),b&&le&2048&&Sf(C.alternate,C);break;case 24:_s(v,C,P,ne,b),b&&le&2048&&kf(C.alternate,C);break;default:_s(v,C,P,ne,b)}i=i.sibling}}function Rl(n,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var l=n,u=i,b=u.flags;switch(u.tag){case 22:Rl(l,u),b&2048&&Sf(u.alternate,u);break;case 24:Rl(l,u),b&2048&&kf(u.alternate,u);break;default:Rl(l,u)}i=i.sibling}}var Dl=8192;function ws(n,i,l){if(n.subtreeFlags&Dl)for(n=n.child;n!==null;)Ox(n,i,l),n=n.sibling}function Ox(n,i,l){switch(n.tag){case 26:ws(n,i,l),n.flags&Dl&&n.memoizedState!==null&&ik(l,Sr,n.memoizedState,n.memoizedProps);break;case 5:ws(n,i,l);break;case 3:case 4:var u=Sr;Sr=Ic(n.stateNode.containerInfo),ws(n,i,l),Sr=u;break;case 22:n.memoizedState===null&&(u=n.alternate,u!==null&&u.memoizedState!==null?(u=Dl,Dl=16777216,ws(n,i,l),Dl=u):ws(n,i,l));break;default:ws(n,i,l)}}function Rx(n){var i=n.alternate;if(i!==null&&(n=i.child,n!==null)){i.child=null;do i=n.sibling,n.sibling=null,n=i;while(n!==null)}}function jl(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var u=i[l];gn=u,jx(u,n)}Rx(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Dx(n),n=n.sibling}function Dx(n){switch(n.tag){case 0:case 11:case 15:jl(n),n.flags&2048&&Fi(9,n,n.return);break;case 3:jl(n);break;case 12:jl(n);break;case 22:var i=n.stateNode;n.memoizedState!==null&&i._visibility&2&&(n.return===null||n.return.tag!==13)?(i._visibility&=-3,Nc(n)):jl(n);break;default:jl(n)}}function Nc(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var u=i[l];gn=u,jx(u,n)}Rx(n)}for(n=n.child;n!==null;){switch(i=n,i.tag){case 0:case 11:case 15:Fi(8,i,i.return),Nc(i);break;case 22:l=i.stateNode,l._visibility&2&&(l._visibility&=-3,Nc(i));break;default:Nc(i)}n=n.sibling}}function jx(n,i){for(;gn!==null;){var l=gn;switch(l.tag){case 0:case 11:case 15:Fi(8,l,i);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var u=l.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:bl(l.memoizedState.cache)}if(u=l.child,u!==null)u.return=l,gn=u;else e:for(l=n;gn!==null;){u=gn;var b=u.sibling,v=u.return;if(Nx(u),u===l){gn=null;break e}if(b!==null){b.return=v,gn=b;break e}gn=v}}}var y2={getCacheForType:function(n){var i=yn(en),l=i.data.get(n);return l===void 0&&(l=n(),i.data.set(n,l)),l},cacheSignal:function(){return yn(en).controller.signal}},v2=typeof WeakMap=="function"?WeakMap:Map,pt=0,kt=null,Je=null,it=0,xt=0,Jn=null,Gi=!1,Es=!1,Tf=!1,mi=0,Vt=0,Vi=0,ja=0,Cf=0,er=0,Ns=0,Ll=null,$n=null,Af=!1,Sc=0,Lx=0,kc=1/0,Tc=null,Yi=null,dn=0,Xi=null,Ss=null,pi=0,Mf=0,Of=null,zx=null,zl=0,Rf=null;function tr(){return(pt&2)!==0&&it!==0?it&-it:O.T!==null?Bf():Si()}function Ix(){if(er===0)if((it&536870912)===0||lt){var n=Xn;Xn<<=1,(Xn&3932160)===0&&(Xn=262144),er=n}else er=536870912;return n=Qn.current,n!==null&&(n.flags|=32),er}function qn(n,i,l){(n===kt&&(xt===2||xt===9)||n.cancelPendingCommit!==null)&&(ks(n,0),Ki(n,it,er,!1)),gt(n,l),((pt&2)===0||n!==kt)&&(n===kt&&((pt&2)===0&&(ja|=l),Vt===4&&Ki(n,it,er,!1)),qr(n))}function Bx(n,i,l){if((pt&6)!==0)throw Error(a(327));var u=!l&&(i&127)===0&&(i&n.expiredLanes)===0||me(n,i),b=u?E2(n,i):jf(n,i,!0),v=u;do{if(b===0){Es&&!u&&Ki(n,i,0,!1);break}else{if(l=n.current.alternate,v&&!_2(l)){b=jf(n,i,!1),v=!1;continue}if(b===2){if(v=i,n.errorRecoveryDisabledLanes&v)var C=0;else C=n.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){i=C;e:{var P=n;b=Ll;var ne=P.current.memoizedState.isDehydrated;if(ne&&(ks(P,C).flags|=256),C=jf(P,C,!1),C!==2){if(Tf&&!ne){P.errorRecoveryDisabledLanes|=v,ja|=v,b=4;break e}v=$n,$n=b,v!==null&&($n===null?$n=v:$n.push.apply($n,v))}b=C}if(v=!1,b!==2)continue}}if(b===1){ks(n,0),Ki(n,i,0,!0);break}e:{switch(u=n,v=b,v){case 0:case 1:throw Error(a(345));case 4:if((i&4194048)!==i)break;case 6:Ki(u,i,er,!Gi);break e;case 2:$n=null;break;case 3:case 5:break;default:throw Error(a(329))}if((i&62914560)===i&&(b=Sc+300-ct(),10<b)){if(Ki(u,i,er,!Gi),re(u,0,!0)!==0)break e;pi=i,u.timeoutHandle=p0(Ux.bind(null,u,l,$n,Tc,Af,i,er,ja,Ns,Gi,v,"Throttled",-0,0),b);break e}Ux(u,l,$n,Tc,Af,i,er,ja,Ns,Gi,v,null,-0,0)}}break}while(!0);qr(n)}function Ux(n,i,l,u,b,v,C,P,ne,le,he,ge,oe,de){if(n.timeoutHandle=-1,ge=i.subtreeFlags,ge&8192||(ge&16785408)===16785408){ge={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:_e},Ox(i,v,ge);var Ce=(v&62914560)===v?Sc-ct():(v&4194048)===v?Lx-ct():0;if(Ce=ak(ge,Ce),Ce!==null){pi=v,n.cancelPendingCommit=Ce(Yx.bind(null,n,i,v,l,u,b,C,P,ne,he,ge,null,oe,de)),Ki(n,v,C,!le);return}}Yx(n,i,v,l,u,b,C,P,ne)}function _2(n){for(var i=n;;){var l=i.tag;if((l===0||l===11||l===15)&&i.flags&16384&&(l=i.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var u=0;u<l.length;u++){var b=l[u],v=b.getSnapshot;b=b.value;try{if(!Kn(v(),b))return!1}catch{return!1}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Ki(n,i,l,u){i&=~Cf,i&=~ja,n.suspendedLanes|=i,n.pingedLanes&=~i,u&&(n.warmLanes|=i),u=n.expirationTimes;for(var b=i;0<b;){var v=31-ut(b),C=1<<v;u[v]=-1,b&=~C}l!==0&&Se(n,l,i)}function Cc(){return(pt&6)===0?(Il(0),!1):!0}function Df(){if(Je!==null){if(xt===0)var n=Je.return;else n=Je,ii=Sa=null,Xd(n),gs=null,yl=0,n=Je;for(;n!==null;)gx(n.alternate,n),n=n.return;Je=null}}function ks(n,i){var l=n.timeoutHandle;l!==-1&&(n.timeoutHandle=-1,$2(l)),l=n.cancelPendingCommit,l!==null&&(n.cancelPendingCommit=null,l()),pi=0,Df(),kt=n,Je=l=ni(n.current,null),it=i,xt=0,Jn=null,Gi=!1,Es=me(n,i),Tf=!1,Ns=er=Cf=ja=Vi=Vt=0,$n=Ll=null,Af=!1,(i&8)!==0&&(i|=i&32);var u=n.entangledLanes;if(u!==0)for(n=n.entanglements,u&=i;0<u;){var b=31-ut(u),v=1<<b;i|=n[b],u&=~v}return mi=i,Ko(),l}function Hx(n,i){Xe=null,O.H=Tl,i===ps||i===rc?(i=nb(),xt=3):i===zd?(i=nb(),xt=4):xt=i===df?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Jn=i,Je===null&&(Vt=1,bc(n,cr(i,n.current)))}function $x(){var n=Qn.current;return n===null?!0:(it&4194048)===it?hr===null:(it&62914560)===it||(it&536870912)!==0?n===hr:!1}function qx(){var n=O.H;return O.H=Tl,n===null?Tl:n}function Px(){var n=O.A;return O.A=y2,n}function Ac(){Vt=4,Gi||(it&4194048)!==it&&Qn.current!==null||(Es=!0),(Vi&134217727)===0&&(ja&134217727)===0||kt===null||Ki(kt,it,er,!1)}function jf(n,i,l){var u=pt;pt|=2;var b=qx(),v=Px();(kt!==n||it!==i)&&(Tc=null,ks(n,i)),i=!1;var C=Vt;e:do try{if(xt!==0&&Je!==null){var P=Je,ne=Jn;switch(xt){case 8:Df(),C=6;break e;case 3:case 2:case 9:case 6:Qn.current===null&&(i=!0);var le=xt;if(xt=0,Jn=null,Ts(n,P,ne,le),l&&Es){C=0;break e}break;default:le=xt,xt=0,Jn=null,Ts(n,P,ne,le)}}w2(),C=Vt;break}catch(he){Hx(n,he)}while(!0);return i&&n.shellSuspendCounter++,ii=Sa=null,pt=u,O.H=b,O.A=v,Je===null&&(kt=null,it=0,Ko()),C}function w2(){for(;Je!==null;)Fx(Je)}function E2(n,i){var l=pt;pt|=2;var u=qx(),b=Px();kt!==n||it!==i?(Tc=null,kc=ct()+500,ks(n,i)):Es=me(n,i);e:do try{if(xt!==0&&Je!==null){i=Je;var v=Jn;t:switch(xt){case 1:xt=0,Jn=null,Ts(n,i,v,1);break;case 2:case 9:if(eb(v)){xt=0,Jn=null,Gx(i);break}i=function(){xt!==2&&xt!==9||kt!==n||(xt=7),qr(n)},v.then(i,i);break e;case 3:xt=7;break e;case 4:xt=5;break e;case 7:eb(v)?(xt=0,Jn=null,Gx(i)):(xt=0,Jn=null,Ts(n,i,v,7));break;case 5:var C=null;switch(Je.tag){case 26:C=Je.memoizedState;case 5:case 27:var P=Je;if(C?M0(C):P.stateNode.complete){xt=0,Jn=null;var ne=P.sibling;if(ne!==null)Je=ne;else{var le=P.return;le!==null?(Je=le,Mc(le)):Je=null}break t}}xt=0,Jn=null,Ts(n,i,v,5);break;case 6:xt=0,Jn=null,Ts(n,i,v,6);break;case 8:Df(),Vt=6;break e;default:throw Error(a(462))}}N2();break}catch(he){Hx(n,he)}while(!0);return ii=Sa=null,O.H=u,O.A=b,pt=l,Je!==null?0:(kt=null,it=0,Ko(),Vt)}function N2(){for(;Je!==null&&!Yn();)Fx(Je)}function Fx(n){var i=mx(n.alternate,n,mi);n.memoizedProps=n.pendingProps,i===null?Mc(n):Je=i}function Gx(n){var i=n,l=i.alternate;switch(i.tag){case 15:case 0:i=ox(l,i,i.pendingProps,i.type,void 0,it);break;case 11:i=ox(l,i,i.pendingProps,i.type.render,i.ref,it);break;case 5:Xd(i);default:gx(l,i),i=Je=Pg(i,mi),i=mx(l,i,mi)}n.memoizedProps=n.pendingProps,i===null?Mc(n):Je=i}function Ts(n,i,l,u){ii=Sa=null,Xd(i),gs=null,yl=0;var b=i.return;try{if(f2(n,b,i,l,it)){Vt=1,bc(n,cr(l,n.current)),Je=null;return}}catch(v){if(b!==null)throw Je=b,v;Vt=1,bc(n,cr(l,n.current)),Je=null;return}i.flags&32768?(lt||u===1?n=!0:Es||(it&536870912)!==0?n=!1:(Gi=n=!0,(u===2||u===9||u===3||u===6)&&(u=Qn.current,u!==null&&u.tag===13&&(u.flags|=16384))),Vx(i,n)):Mc(i)}function Mc(n){var i=n;do{if((i.flags&32768)!==0){Vx(i,Gi);return}n=i.return;var l=p2(i.alternate,i,mi);if(l!==null){Je=l;return}if(i=i.sibling,i!==null){Je=i;return}Je=i=n}while(i!==null);Vt===0&&(Vt=5)}function Vx(n,i){do{var l=g2(n.alternate,n);if(l!==null){l.flags&=32767,Je=l;return}if(l=n.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!i&&(n=n.sibling,n!==null)){Je=n;return}Je=n=l}while(n!==null);Vt=6,Je=null}function Yx(n,i,l,u,b,v,C,P,ne){n.cancelPendingCommit=null;do Oc();while(dn!==0);if((pt&6)!==0)throw Error(a(327));if(i!==null){if(i===n.current)throw Error(a(177));if(v=i.lanes|i.childLanes,v|=_d,Ae(n,l,v,C,P,ne),n===kt&&(Je=kt=null,it=0),Ss=i,Xi=n,pi=l,Mf=v,Of=b,zx=u,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,C2(Oe,function(){return Wx(),null})):(n.callbackNode=null,n.callbackPriority=0),u=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||u){u=O.T,O.T=null,b=H.p,H.p=2,C=pt,pt|=4;try{b2(n,i,l)}finally{pt=C,H.p=b,O.T=u}}dn=1,Xx(),Kx(),Zx()}}function Xx(){if(dn===1){dn=0;var n=Xi,i=Ss,l=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||l){l=O.T,O.T=null;var u=H.p;H.p=2;var b=pt;pt|=4;try{Cx(i,n);var v=Vf,C=jg(n.containerInfo),P=v.focusedElem,ne=v.selectionRange;if(C!==P&&P&&P.ownerDocument&&Dg(P.ownerDocument.documentElement,P)){if(ne!==null&&gd(P)){var le=ne.start,he=ne.end;if(he===void 0&&(he=le),"selectionStart"in P)P.selectionStart=le,P.selectionEnd=Math.min(he,P.value.length);else{var ge=P.ownerDocument||document,oe=ge&&ge.defaultView||window;if(oe.getSelection){var de=oe.getSelection(),Ce=P.textContent.length,He=Math.min(ne.start,Ce),Nt=ne.end===void 0?He:Math.min(ne.end,Ce);!de.extend&&He>Nt&&(C=Nt,Nt=He,He=C);var ae=Rg(P,He),ie=Rg(P,Nt);if(ae&&ie&&(de.rangeCount!==1||de.anchorNode!==ae.node||de.anchorOffset!==ae.offset||de.focusNode!==ie.node||de.focusOffset!==ie.offset)){var se=ge.createRange();se.setStart(ae.node,ae.offset),de.removeAllRanges(),He>Nt?(de.addRange(se),de.extend(ie.node,ie.offset)):(se.setEnd(ie.node,ie.offset),de.addRange(se))}}}}for(ge=[],de=P;de=de.parentNode;)de.nodeType===1&&ge.push({element:de,left:de.scrollLeft,top:de.scrollTop});for(typeof P.focus=="function"&&P.focus(),P=0;P<ge.length;P++){var pe=ge[P];pe.element.scrollLeft=pe.left,pe.element.scrollTop=pe.top}}Pc=!!Gf,Vf=Gf=null}finally{pt=b,H.p=u,O.T=l}}n.current=i,dn=2}}function Kx(){if(dn===2){dn=0;var n=Xi,i=Ss,l=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||l){l=O.T,O.T=null;var u=H.p;H.p=2;var b=pt;pt|=4;try{Ex(n,i.alternate,i)}finally{pt=b,H.p=u,O.T=l}}dn=3}}function Zx(){if(dn===4||dn===3){dn=0,wn();var n=Xi,i=Ss,l=pi,u=zx;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?dn=5:(dn=0,Ss=Xi=null,Qx(n,n.pendingLanes));var b=n.pendingLanes;if(b===0&&(Yi=null),xr(l),i=i.stateNode,At&&typeof At.onCommitFiberRoot=="function")try{At.onCommitFiberRoot(Kt,i,void 0,(i.current.flags&128)===128)}catch{}if(u!==null){i=O.T,b=H.p,H.p=2,O.T=null;try{for(var v=n.onRecoverableError,C=0;C<u.length;C++){var P=u[C];v(P.value,{componentStack:P.stack})}}finally{O.T=i,H.p=b}}(pi&3)!==0&&Oc(),qr(n),b=n.pendingLanes,(l&261930)!==0&&(b&42)!==0?n===Rf?zl++:(zl=0,Rf=n):zl=0,Il(0)}}function Qx(n,i){(n.pooledCacheLanes&=i)===0&&(i=n.pooledCache,i!=null&&(n.pooledCache=null,bl(i)))}function Oc(){return Xx(),Kx(),Zx(),Wx()}function Wx(){if(dn!==5)return!1;var n=Xi,i=Mf;Mf=0;var l=xr(pi),u=O.T,b=H.p;try{H.p=32>l?32:l,O.T=null,l=Of,Of=null;var v=Xi,C=pi;if(dn=0,Ss=Xi=null,pi=0,(pt&6)!==0)throw Error(a(331));var P=pt;if(pt|=4,Dx(v.current),Mx(v,v.current,C,l),pt=P,Il(0,!1),At&&typeof At.onPostCommitFiberRoot=="function")try{At.onPostCommitFiberRoot(Kt,v)}catch{}return!0}finally{H.p=b,O.T=u,Qx(n,i)}}function Jx(n,i,l){i=cr(l,i),i=uf(n.stateNode,i,2),n=$i(n,i,2),n!==null&&(gt(n,2),qr(n))}function yt(n,i,l){if(n.tag===3)Jx(n,n,l);else for(;i!==null;){if(i.tag===3){Jx(i,n,l);break}else if(i.tag===1){var u=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Yi===null||!Yi.has(u))){n=cr(l,n),l=ex(2),u=$i(i,l,2),u!==null&&(tx(l,u,i,n),gt(u,2),qr(u));break}}i=i.return}}function Lf(n,i,l){var u=n.pingCache;if(u===null){u=n.pingCache=new v2;var b=new Set;u.set(i,b)}else b=u.get(i),b===void 0&&(b=new Set,u.set(i,b));b.has(l)||(Tf=!0,b.add(l),n=S2.bind(null,n,i,l),i.then(n,n))}function S2(n,i,l){var u=n.pingCache;u!==null&&u.delete(i),n.pingedLanes|=n.suspendedLanes&l,n.warmLanes&=~l,kt===n&&(it&l)===l&&(Vt===4||Vt===3&&(it&62914560)===it&&300>ct()-Sc?(pt&2)===0&&ks(n,0):Cf|=l,Ns===it&&(Ns=0)),qr(n)}function e0(n,i){i===0&&(i=Pe()),n=wa(n,i),n!==null&&(gt(n,i),qr(n))}function k2(n){var i=n.memoizedState,l=0;i!==null&&(l=i.retryLane),e0(n,l)}function T2(n,i){var l=0;switch(n.tag){case 31:case 13:var u=n.stateNode,b=n.memoizedState;b!==null&&(l=b.retryLane);break;case 19:u=n.stateNode;break;case 22:u=n.stateNode._retryCache;break;default:throw Error(a(314))}u!==null&&u.delete(i),e0(n,l)}function C2(n,i){return Pt(n,i)}var Rc=null,Cs=null,zf=!1,Dc=!1,If=!1,Zi=0;function qr(n){n!==Cs&&n.next===null&&(Cs===null?Rc=Cs=n:Cs=Cs.next=n),Dc=!0,zf||(zf=!0,M2())}function Il(n,i){if(!If&&Dc){If=!0;do for(var l=!1,u=Rc;u!==null;){if(n!==0){var b=u.pendingLanes;if(b===0)var v=0;else{var C=u.suspendedLanes,P=u.pingedLanes;v=(1<<31-ut(42|n)+1)-1,v&=b&~(C&~P),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(l=!0,i0(u,v))}else v=it,v=re(u,u===kt?v:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(v&3)===0||me(u,v)||(l=!0,i0(u,v));u=u.next}while(l);If=!1}}function A2(){t0()}function t0(){Dc=zf=!1;var n=0;Zi!==0&&H2()&&(n=Zi);for(var i=ct(),l=null,u=Rc;u!==null;){var b=u.next,v=n0(u,i);v===0?(u.next=null,l===null?Rc=b:l.next=b,b===null&&(Cs=l)):(l=u,(n!==0||(v&3)!==0)&&(Dc=!0)),u=b}dn!==0&&dn!==5||Il(n),Zi!==0&&(Zi=0)}function n0(n,i){for(var l=n.suspendedLanes,u=n.pingedLanes,b=n.expirationTimes,v=n.pendingLanes&-62914561;0<v;){var C=31-ut(v),P=1<<C,ne=b[C];ne===-1?((P&l)===0||(P&u)!==0)&&(b[C]=Ee(P,i)):ne<=i&&(n.expiredLanes|=P),v&=~P}if(i=kt,l=it,l=re(n,n===i?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u=n.callbackNode,l===0||n===i&&(xt===2||xt===9)||n.cancelPendingCommit!==null)return u!==null&&u!==null&&Xt(u),n.callbackNode=null,n.callbackPriority=0;if((l&3)===0||me(n,l)){if(i=l&-l,i===n.callbackPriority)return i;switch(u!==null&&Xt(u),xr(l)){case 2:case 8:l=xe;break;case 32:l=Oe;break;case 268435456:l=Ze;break;default:l=Oe}return u=r0.bind(null,n),l=Pt(l,u),n.callbackPriority=i,n.callbackNode=l,i}return u!==null&&u!==null&&Xt(u),n.callbackPriority=2,n.callbackNode=null,2}function r0(n,i){if(dn!==0&&dn!==5)return n.callbackNode=null,n.callbackPriority=0,null;var l=n.callbackNode;if(Oc()&&n.callbackNode!==l)return null;var u=it;return u=re(n,n===kt?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u===0?null:(Bx(n,u,i),n0(n,ct()),n.callbackNode!=null&&n.callbackNode===l?r0.bind(null,n):null)}function i0(n,i){if(Oc())return null;Bx(n,i,!0)}function M2(){q2(function(){(pt&6)!==0?Pt(ue,A2):t0()})}function Bf(){if(Zi===0){var n=hs;n===0&&(n=nt,nt<<=1,(nt&261888)===0&&(nt=256)),Zi=n}return Zi}function a0(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Di(""+n)}function s0(n,i){var l=i.ownerDocument.createElement("input");return l.name=i.name,l.value=i.value,n.id&&l.setAttribute("form",n.id),i.parentNode.insertBefore(l,i),n=new FormData(n),l.parentNode.removeChild(l),n}function O2(n,i,l,u,b){if(i==="submit"&&l&&l.stateNode===b){var v=a0((b[mn]||null).action),C=u.submitter;C&&(i=(i=C[mn]||null)?a0(i.formAction):C.getAttribute("formAction"),i!==null&&(v=i,C=null));var P=new Go("action","action",null,u,b);n.push({event:P,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Zi!==0){var ne=C?s0(b,C):new FormData(b);rf(l,{pending:!0,data:ne,method:b.method,action:v},null,ne)}}else typeof v=="function"&&(P.preventDefault(),ne=C?s0(b,C):new FormData(b),rf(l,{pending:!0,data:ne,method:b.method,action:v},v,ne))},currentTarget:b}]})}}for(var Uf=0;Uf<vd.length;Uf++){var Hf=vd[Uf],R2=Hf.toLowerCase(),D2=Hf[0].toUpperCase()+Hf.slice(1);Nr(R2,"on"+D2)}Nr(Ig,"onAnimationEnd"),Nr(Bg,"onAnimationIteration"),Nr(Ug,"onAnimationStart"),Nr("dblclick","onDoubleClick"),Nr("focusin","onFocus"),Nr("focusout","onBlur"),Nr(KS,"onTransitionRun"),Nr(ZS,"onTransitionStart"),Nr(QS,"onTransitionCancel"),Nr(Hg,"onTransitionEnd"),ye("onMouseEnter",["mouseout","mouseover"]),ye("onMouseLeave",["mouseout","mouseover"]),ye("onPointerEnter",["pointerout","pointerover"]),ye("onPointerLeave",["pointerout","pointerover"]),wr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wr("onBeforeInput",["compositionend","keypress","textInput","paste"]),wr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),j2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bl));function l0(n,i){i=(i&4)!==0;for(var l=0;l<n.length;l++){var u=n[l],b=u.event;u=u.listeners;e:{var v=void 0;if(i)for(var C=u.length-1;0<=C;C--){var P=u[C],ne=P.instance,le=P.currentTarget;if(P=P.listener,ne!==v&&b.isPropagationStopped())break e;v=P,b.currentTarget=le;try{v(b)}catch(he){Xo(he)}b.currentTarget=null,v=ne}else for(C=0;C<u.length;C++){if(P=u[C],ne=P.instance,le=P.currentTarget,P=P.listener,ne!==v&&b.isPropagationStopped())break e;v=P,b.currentTarget=le;try{v(b)}catch(he){Xo(he)}b.currentTarget=null,v=ne}}}}function et(n,i){var l=i[Ti];l===void 0&&(l=i[Ti]=new Set);var u=n+"__bubble";l.has(u)||(o0(i,n,2,!1),l.add(u))}function $f(n,i,l){var u=0;i&&(u|=4),o0(l,n,u,i)}var jc="_reactListening"+Math.random().toString(36).slice(2);function qf(n){if(!n[jc]){n[jc]=!0,es.forEach(function(l){l!=="selectionchange"&&(j2.has(l)||$f(l,!1,n),$f(l,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[jc]||(i[jc]=!0,$f("selectionchange",!1,i))}}function o0(n,i,l,u){switch(I0(i)){case 2:var b=ok;break;case 8:b=ck;break;default:b=rh}l=b.bind(null,i,l,n),b=void 0,!ld||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(b=!0),u?b!==void 0?n.addEventListener(i,l,{capture:!0,passive:b}):n.addEventListener(i,l,!0):b!==void 0?n.addEventListener(i,l,{passive:b}):n.addEventListener(i,l,!1)}function Pf(n,i,l,u,b){var v=u;if((i&1)===0&&(i&2)===0&&u!==null)e:for(;;){if(u===null)return;var C=u.tag;if(C===3||C===4){var P=u.stateNode.containerInfo;if(P===b)break;if(C===4)for(C=u.return;C!==null;){var ne=C.tag;if((ne===3||ne===4)&&C.stateNode.containerInfo===b)return;C=C.return}for(;P!==null;){if(C=bn(P),C===null)return;if(ne=C.tag,ne===5||ne===6||ne===26||ne===27){u=v=C;continue e}P=P.parentNode}}u=u.return}$o(function(){var le=v,he=Ye(l),ge=[];e:{var oe=$g.get(n);if(oe!==void 0){var de=Go,Ce=n;switch(n){case"keypress":if(Po(l)===0)break e;case"keydown":case"keyup":de=TS;break;case"focusin":Ce="focus",de=dd;break;case"focusout":Ce="blur",de=dd;break;case"beforeblur":case"afterblur":de=dd;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":de=gg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":de=pS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":de=MS;break;case Ig:case Bg:case Ug:de=xS;break;case Hg:de=RS;break;case"scroll":case"scrollend":de=hS;break;case"wheel":de=jS;break;case"copy":case"cut":case"paste":de=vS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":de=xg;break;case"toggle":case"beforetoggle":de=zS}var He=(i&4)!==0,Nt=!He&&(n==="scroll"||n==="scrollend"),ae=He?oe!==null?oe+"Capture":null:oe;He=[];for(var ie=le,se;ie!==null;){var pe=ie;if(se=pe.stateNode,pe=pe.tag,pe!==5&&pe!==26&&pe!==27||se===null||ae===null||(pe=sl(ie,ae),pe!=null&&He.push(Ul(ie,pe,se))),Nt)break;ie=ie.return}0<He.length&&(oe=new de(oe,Ce,null,l,he),ge.push({event:oe,listeners:He}))}}if((i&7)===0){e:{if(oe=n==="mouseover"||n==="pointerover",de=n==="mouseout"||n==="pointerout",oe&&l!==Re&&(Ce=l.relatedTarget||l.fromElement)&&(bn(Ce)||Ce[yr]))break e;if((de||oe)&&(oe=he.window===he?he:(oe=he.ownerDocument)?oe.defaultView||oe.parentWindow:window,de?(Ce=l.relatedTarget||l.toElement,de=le,Ce=Ce?bn(Ce):null,Ce!==null&&(Nt=o(Ce),He=Ce.tag,Ce!==Nt||He!==5&&He!==27&&He!==6)&&(Ce=null)):(de=null,Ce=le),de!==Ce)){if(He=gg,pe="onMouseLeave",ae="onMouseEnter",ie="mouse",(n==="pointerout"||n==="pointerover")&&(He=xg,pe="onPointerLeave",ae="onPointerEnter",ie="pointer"),Nt=de==null?oe:_r(de),se=Ce==null?oe:_r(Ce),oe=new He(pe,ie+"leave",de,l,he),oe.target=Nt,oe.relatedTarget=se,pe=null,bn(he)===le&&(He=new He(ae,ie+"enter",Ce,l,he),He.target=se,He.relatedTarget=Nt,pe=He),Nt=pe,de&&Ce)t:{for(He=L2,ae=de,ie=Ce,se=0,pe=ae;pe;pe=He(pe))se++;pe=0;for(var Ie=ie;Ie;Ie=He(Ie))pe++;for(;0<se-pe;)ae=He(ae),se--;for(;0<pe-se;)ie=He(ie),pe--;for(;se--;){if(ae===ie||ie!==null&&ae===ie.alternate){He=ae;break t}ae=He(ae),ie=He(ie)}He=null}else He=null;de!==null&&c0(ge,oe,de,He,!1),Ce!==null&&Nt!==null&&c0(ge,Nt,Ce,He,!0)}}e:{if(oe=le?_r(le):window,de=oe.nodeName&&oe.nodeName.toLowerCase(),de==="select"||de==="input"&&oe.type==="file")var ht=kg;else if(Ng(oe))if(Tg)ht=VS;else{ht=FS;var De=PS}else de=oe.nodeName,!de||de.toLowerCase()!=="input"||oe.type!=="checkbox"&&oe.type!=="radio"?le&&Ri(le.elementType)&&(ht=kg):ht=GS;if(ht&&(ht=ht(n,le))){Sg(ge,ht,l,he);break e}De&&De(n,oe,le),n==="focusout"&&le&&oe.type==="number"&&le.memoizedProps.value!=null&&Oi(oe,"number",oe.value)}switch(De=le?_r(le):window,n){case"focusin":(Ng(De)||De.contentEditable==="true")&&(as=De,bd=le,ml=null);break;case"focusout":ml=bd=as=null;break;case"mousedown":xd=!0;break;case"contextmenu":case"mouseup":case"dragend":xd=!1,Lg(ge,l,he);break;case"selectionchange":if(XS)break;case"keydown":case"keyup":Lg(ge,l,he)}var Ke;if(hd)e:{switch(n){case"compositionstart":var at="onCompositionStart";break e;case"compositionend":at="onCompositionEnd";break e;case"compositionupdate":at="onCompositionUpdate";break e}at=void 0}else is?wg(n,l)&&(at="onCompositionEnd"):n==="keydown"&&l.keyCode===229&&(at="onCompositionStart");at&&(yg&&l.locale!=="ko"&&(is||at!=="onCompositionStart"?at==="onCompositionEnd"&&is&&(Ke=mg()):(ji=he,od="value"in ji?ji.value:ji.textContent,is=!0)),De=Lc(le,at),0<De.length&&(at=new bg(at,n,null,l,he),ge.push({event:at,listeners:De}),Ke?at.data=Ke:(Ke=Eg(l),Ke!==null&&(at.data=Ke)))),(Ke=BS?US(n,l):HS(n,l))&&(at=Lc(le,"onBeforeInput"),0<at.length&&(De=new bg("onBeforeInput","beforeinput",null,l,he),ge.push({event:De,listeners:at}),De.data=Ke)),O2(ge,n,le,l,he)}l0(ge,i)})}function Ul(n,i,l){return{instance:n,listener:i,currentTarget:l}}function Lc(n,i){for(var l=i+"Capture",u=[];n!==null;){var b=n,v=b.stateNode;if(b=b.tag,b!==5&&b!==26&&b!==27||v===null||(b=sl(n,l),b!=null&&u.unshift(Ul(n,b,v)),b=sl(n,i),b!=null&&u.push(Ul(n,b,v))),n.tag===3)return u;n=n.return}return[]}function L2(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function c0(n,i,l,u,b){for(var v=i._reactName,C=[];l!==null&&l!==u;){var P=l,ne=P.alternate,le=P.stateNode;if(P=P.tag,ne!==null&&ne===u)break;P!==5&&P!==26&&P!==27||le===null||(ne=le,b?(le=sl(l,v),le!=null&&C.unshift(Ul(l,le,ne))):b||(le=sl(l,v),le!=null&&C.push(Ul(l,le,ne)))),l=l.return}C.length!==0&&n.push({event:i,listeners:C})}var z2=/\r\n?/g,I2=/\u0000|\uFFFD/g;function u0(n){return(typeof n=="string"?n:""+n).replace(z2,`
+`).replace(I2,"")}function d0(n,i){return i=u0(i),u0(n)===i}function Et(n,i,l,u,b,v){switch(l){case"children":typeof u=="string"?i==="body"||i==="textarea"&&u===""||qe(n,u):(typeof u=="number"||typeof u=="bigint")&&i!=="body"&&qe(n,""+u);break;case"className":Mn(n,"class",u);break;case"tabIndex":Mn(n,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Mn(n,l,u);break;case"style":bt(n,u,v);break;case"data":if(i!=="object"){Mn(n,"data",u);break}case"src":case"href":if(u===""&&(i!=="a"||l!=="href")){n.removeAttribute(l);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(l);break}u=Di(""+u),n.setAttribute(l,u);break;case"action":case"formAction":if(typeof u=="function"){n.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof v=="function"&&(l==="formAction"?(i!=="input"&&Et(n,i,"name",b.name,b,null),Et(n,i,"formEncType",b.formEncType,b,null),Et(n,i,"formMethod",b.formMethod,b,null),Et(n,i,"formTarget",b.formTarget,b,null)):(Et(n,i,"encType",b.encType,b,null),Et(n,i,"method",b.method,b,null),Et(n,i,"target",b.target,b,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(l);break}u=Di(""+u),n.setAttribute(l,u);break;case"onClick":u!=null&&(n.onclick=_e);break;case"onScroll":u!=null&&et("scroll",n);break;case"onScrollEnd":u!=null&&et("scrollend",n);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(l=u.__html,l!=null){if(b.children!=null)throw Error(a(60));n.innerHTML=l}}break;case"multiple":n.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":n.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){n.removeAttribute("xlink:href");break}l=Di(""+u),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(l,""+u):n.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(l,""):n.removeAttribute(l);break;case"capture":case"download":u===!0?n.setAttribute(l,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(l,u):n.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?n.setAttribute(l,u):n.removeAttribute(l);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?n.removeAttribute(l):n.setAttribute(l,u);break;case"popover":et("beforetoggle",n),et("toggle",n),pn(n,"popover",u);break;case"xlinkActuate":Nn(n,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Nn(n,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Nn(n,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Nn(n,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Nn(n,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Nn(n,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Nn(n,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Nn(n,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Nn(n,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":pn(n,"is",u);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=ei.get(l)||l,pn(n,l,u))}}function Ff(n,i,l,u,b,v){switch(l){case"style":bt(n,u,v);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(l=u.__html,l!=null){if(b.children!=null)throw Error(a(60));n.innerHTML=l}}break;case"children":typeof u=="string"?qe(n,u):(typeof u=="number"||typeof u=="bigint")&&qe(n,""+u);break;case"onScroll":u!=null&&et("scroll",n);break;case"onScrollEnd":u!=null&&et("scrollend",n);break;case"onClick":u!=null&&(n.onclick=_e);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Jr.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(b=l.endsWith("Capture"),i=l.slice(2,b?l.length-7:void 0),v=n[mn]||null,v=v!=null?v[l]:null,typeof v=="function"&&n.removeEventListener(i,v,b),typeof u=="function")){typeof v!="function"&&v!==null&&(l in n?n[l]=null:n.hasAttribute(l)&&n.removeAttribute(l)),n.addEventListener(i,u,b);break e}l in n?n[l]=u:u===!0?n.setAttribute(l,""):pn(n,l,u)}}}function _n(n,i,l){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":et("error",n),et("load",n);var u=!1,b=!1,v;for(v in l)if(l.hasOwnProperty(v)){var C=l[v];if(C!=null)switch(v){case"src":u=!0;break;case"srcSet":b=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:Et(n,i,v,C,l,null)}}b&&Et(n,i,"srcSet",l.srcSet,l,null),u&&Et(n,i,"src",l.src,l,null);return;case"input":et("invalid",n);var P=v=C=b=null,ne=null,le=null;for(u in l)if(l.hasOwnProperty(u)){var he=l[u];if(he!=null)switch(u){case"name":b=he;break;case"type":C=he;break;case"checked":ne=he;break;case"defaultChecked":le=he;break;case"value":v=he;break;case"defaultValue":P=he;break;case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(a(137,i));break;default:Et(n,i,u,he,l,null)}}Er(n,v,P,ne,le,C,b,!1);return;case"select":et("invalid",n),u=C=v=null;for(b in l)if(l.hasOwnProperty(b)&&(P=l[b],P!=null))switch(b){case"value":v=P;break;case"defaultValue":C=P;break;case"multiple":u=P;default:Et(n,i,b,P,l,null)}i=v,l=C,n.multiple=!!u,i!=null?un(n,!!u,i,!1):l!=null&&un(n,!!u,l,!0);return;case"textarea":et("invalid",n),v=b=u=null;for(C in l)if(l.hasOwnProperty(C)&&(P=l[C],P!=null))switch(C){case"value":u=P;break;case"defaultValue":b=P;break;case"children":v=P;break;case"dangerouslySetInnerHTML":if(P!=null)throw Error(a(91));break;default:Et(n,i,C,P,l,null)}rs(n,u,b,v);return;case"option":for(ne in l)if(l.hasOwnProperty(ne)&&(u=l[ne],u!=null))switch(ne){case"selected":n.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:Et(n,i,ne,u,l,null)}return;case"dialog":et("beforetoggle",n),et("toggle",n),et("cancel",n),et("close",n);break;case"iframe":case"object":et("load",n);break;case"video":case"audio":for(u=0;u<Bl.length;u++)et(Bl[u],n);break;case"image":et("error",n),et("load",n);break;case"details":et("toggle",n);break;case"embed":case"source":case"link":et("error",n),et("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(le in l)if(l.hasOwnProperty(le)&&(u=l[le],u!=null))switch(le){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:Et(n,i,le,u,l,null)}return;default:if(Ri(i)){for(he in l)l.hasOwnProperty(he)&&(u=l[he],u!==void 0&&Ff(n,i,he,u,l,void 0));return}}for(P in l)l.hasOwnProperty(P)&&(u=l[P],u!=null&&Et(n,i,P,u,l,null))}function B2(n,i,l,u){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var b=null,v=null,C=null,P=null,ne=null,le=null,he=null;for(de in l){var ge=l[de];if(l.hasOwnProperty(de)&&ge!=null)switch(de){case"checked":break;case"value":break;case"defaultValue":ne=ge;default:u.hasOwnProperty(de)||Et(n,i,de,null,u,ge)}}for(var oe in u){var de=u[oe];if(ge=l[oe],u.hasOwnProperty(oe)&&(de!=null||ge!=null))switch(oe){case"type":v=de;break;case"name":b=de;break;case"checked":le=de;break;case"defaultChecked":he=de;break;case"value":C=de;break;case"defaultValue":P=de;break;case"children":case"dangerouslySetInnerHTML":if(de!=null)throw Error(a(137,i));break;default:de!==ge&&Et(n,i,oe,de,u,ge)}}ba(n,C,P,ne,le,he,v,b);return;case"select":de=C=P=oe=null;for(v in l)if(ne=l[v],l.hasOwnProperty(v)&&ne!=null)switch(v){case"value":break;case"multiple":de=ne;default:u.hasOwnProperty(v)||Et(n,i,v,null,u,ne)}for(b in u)if(v=u[b],ne=l[b],u.hasOwnProperty(b)&&(v!=null||ne!=null))switch(b){case"value":oe=v;break;case"defaultValue":P=v;break;case"multiple":C=v;default:v!==ne&&Et(n,i,b,v,u,ne)}i=P,l=C,u=de,oe!=null?un(n,!!l,oe,!1):!!u!=!!l&&(i!=null?un(n,!!l,i,!0):un(n,!!l,l?[]:"",!1));return;case"textarea":de=oe=null;for(P in l)if(b=l[P],l.hasOwnProperty(P)&&b!=null&&!u.hasOwnProperty(P))switch(P){case"value":break;case"children":break;default:Et(n,i,P,null,u,b)}for(C in u)if(b=u[C],v=l[C],u.hasOwnProperty(C)&&(b!=null||v!=null))switch(C){case"value":oe=b;break;case"defaultValue":de=b;break;case"children":break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(a(91));break;default:b!==v&&Et(n,i,C,b,u,v)}xa(n,oe,de);return;case"option":for(var Ce in l)if(oe=l[Ce],l.hasOwnProperty(Ce)&&oe!=null&&!u.hasOwnProperty(Ce))switch(Ce){case"selected":n.selected=!1;break;default:Et(n,i,Ce,null,u,oe)}for(ne in u)if(oe=u[ne],de=l[ne],u.hasOwnProperty(ne)&&oe!==de&&(oe!=null||de!=null))switch(ne){case"selected":n.selected=oe&&typeof oe!="function"&&typeof oe!="symbol";break;default:Et(n,i,ne,oe,u,de)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var He in l)oe=l[He],l.hasOwnProperty(He)&&oe!=null&&!u.hasOwnProperty(He)&&Et(n,i,He,null,u,oe);for(le in u)if(oe=u[le],de=l[le],u.hasOwnProperty(le)&&oe!==de&&(oe!=null||de!=null))switch(le){case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(a(137,i));break;default:Et(n,i,le,oe,u,de)}return;default:if(Ri(i)){for(var Nt in l)oe=l[Nt],l.hasOwnProperty(Nt)&&oe!==void 0&&!u.hasOwnProperty(Nt)&&Ff(n,i,Nt,void 0,u,oe);for(he in u)oe=u[he],de=l[he],!u.hasOwnProperty(he)||oe===de||oe===void 0&&de===void 0||Ff(n,i,he,oe,u,de);return}}for(var ae in l)oe=l[ae],l.hasOwnProperty(ae)&&oe!=null&&!u.hasOwnProperty(ae)&&Et(n,i,ae,null,u,oe);for(ge in u)oe=u[ge],de=l[ge],!u.hasOwnProperty(ge)||oe===de||oe==null&&de==null||Et(n,i,ge,oe,u,de)}function f0(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function U2(){if(typeof performance.getEntriesByType=="function"){for(var n=0,i=0,l=performance.getEntriesByType("resource"),u=0;u<l.length;u++){var b=l[u],v=b.transferSize,C=b.initiatorType,P=b.duration;if(v&&P&&f0(C)){for(C=0,P=b.responseEnd,u+=1;u<l.length;u++){var ne=l[u],le=ne.startTime;if(le>P)break;var he=ne.transferSize,ge=ne.initiatorType;he&&f0(ge)&&(ne=ne.responseEnd,C+=he*(ne<P?1:(P-le)/(ne-le)))}if(--u,i+=8*(v+C)/(b.duration/1e3),n++,10<n)break}}if(0<n)return i/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var Gf=null,Vf=null;function zc(n){return n.nodeType===9?n:n.ownerDocument}function h0(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function m0(n,i){if(n===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&i==="foreignObject"?0:n}function Yf(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Xf=null;function H2(){var n=window.event;return n&&n.type==="popstate"?n===Xf?!1:(Xf=n,!0):(Xf=null,!1)}var p0=typeof setTimeout=="function"?setTimeout:void 0,$2=typeof clearTimeout=="function"?clearTimeout:void 0,g0=typeof Promise=="function"?Promise:void 0,q2=typeof queueMicrotask=="function"?queueMicrotask:typeof g0<"u"?function(n){return g0.resolve(null).then(n).catch(P2)}:p0;function P2(n){setTimeout(function(){throw n})}function Qi(n){return n==="head"}function b0(n,i){var l=i,u=0;do{var b=l.nextSibling;if(n.removeChild(l),b&&b.nodeType===8)if(l=b.data,l==="/$"||l==="/&"){if(u===0){n.removeChild(b),Rs(i);return}u--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")u++;else if(l==="html")Hl(n.ownerDocument.documentElement);else if(l==="head"){l=n.ownerDocument.head,Hl(l);for(var v=l.firstChild;v;){var C=v.nextSibling,P=v.nodeName;v[Wr]||P==="SCRIPT"||P==="STYLE"||P==="LINK"&&v.rel.toLowerCase()==="stylesheet"||l.removeChild(v),v=C}}else l==="body"&&Hl(n.ownerDocument.body);l=b}while(l);Rs(i)}function x0(n,i){var l=n;n=0;do{var u=l.nextSibling;if(l.nodeType===1?i?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(i?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),u&&u.nodeType===8)if(l=u.data,l==="/$"){if(n===0)break;n--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||n++;l=u}while(l)}function Kf(n){var i=n.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var l=i;switch(i=i.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Kf(l),ga(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}n.removeChild(l)}}function F2(n,i,l,u){for(;n.nodeType===1;){var b=l;if(n.nodeName.toLowerCase()!==i.toLowerCase()){if(!u&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(u){if(!n[Wr])switch(i){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(v=n.getAttribute("rel"),v==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(v!==b.rel||n.getAttribute("href")!==(b.href==null||b.href===""?null:b.href)||n.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin)||n.getAttribute("title")!==(b.title==null?null:b.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(v=n.getAttribute("src"),(v!==(b.src==null?null:b.src)||n.getAttribute("type")!==(b.type==null?null:b.type)||n.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin))&&v&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(i==="input"&&n.type==="hidden"){var v=b.name==null?null:""+b.name;if(b.type==="hidden"&&n.getAttribute("name")===v)return n}else return n;if(n=mr(n.nextSibling),n===null)break}return null}function G2(n,i,l){if(i==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!l||(n=mr(n.nextSibling),n===null))return null;return n}function y0(n,i){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!i||(n=mr(n.nextSibling),n===null))return null;return n}function Zf(n){return n.data==="$?"||n.data==="$~"}function Qf(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function V2(n,i){var l=n.ownerDocument;if(n.data==="$~")n._reactRetry=i;else if(n.data!=="$?"||l.readyState!=="loading")i();else{var u=function(){i(),l.removeEventListener("DOMContentLoaded",u)};l.addEventListener("DOMContentLoaded",u),n._reactRetry=u}}function mr(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return n}var Wf=null;function v0(n){n=n.nextSibling;for(var i=0;n;){if(n.nodeType===8){var l=n.data;if(l==="/$"||l==="/&"){if(i===0)return mr(n.nextSibling);i--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||i++}n=n.nextSibling}return null}function _0(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var l=n.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(i===0)return n;i--}else l!=="/$"&&l!=="/&"||i++}n=n.previousSibling}return null}function w0(n,i,l){switch(i=zc(l),n){case"html":if(n=i.documentElement,!n)throw Error(a(452));return n;case"head":if(n=i.head,!n)throw Error(a(453));return n;case"body":if(n=i.body,!n)throw Error(a(454));return n;default:throw Error(a(451))}}function Hl(n){for(var i=n.attributes;i.length;)n.removeAttributeNode(i[0]);ga(n)}var pr=new Map,E0=new Set;function Ic(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var gi=H.d;H.d={f:Y2,r:X2,D:K2,C:Z2,L:Q2,m:W2,X:ek,S:J2,M:tk};function Y2(){var n=gi.f(),i=Cc();return n||i}function X2(n){var i=vr(n);i!==null&&i.tag===5&&i.type==="form"?Hb(i):gi.r(n)}var As=typeof document>"u"?null:document;function N0(n,i,l){var u=As;if(u&&typeof i=="string"&&i){var b=Sn(i);b='link[rel="'+n+'"][href="'+b+'"]',typeof l=="string"&&(b+='[crossorigin="'+l+'"]'),E0.has(b)||(E0.add(b),n={rel:n,crossOrigin:l,href:i},u.querySelector(b)===null&&(i=u.createElement("link"),_n(i,"link",n),Ft(i),u.head.appendChild(i)))}}function K2(n){gi.D(n),N0("dns-prefetch",n,null)}function Z2(n,i){gi.C(n,i),N0("preconnect",n,i)}function Q2(n,i,l){gi.L(n,i,l);var u=As;if(u&&n&&i){var b='link[rel="preload"][as="'+Sn(i)+'"]';i==="image"&&l&&l.imageSrcSet?(b+='[imagesrcset="'+Sn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(b+='[imagesizes="'+Sn(l.imageSizes)+'"]')):b+='[href="'+Sn(n)+'"]';var v=b;switch(i){case"style":v=Ms(n);break;case"script":v=Os(n)}pr.has(v)||(n=p({rel:"preload",href:i==="image"&&l&&l.imageSrcSet?void 0:n,as:i},l),pr.set(v,n),u.querySelector(b)!==null||i==="style"&&u.querySelector($l(v))||i==="script"&&u.querySelector(ql(v))||(i=u.createElement("link"),_n(i,"link",n),Ft(i),u.head.appendChild(i)))}}function W2(n,i){gi.m(n,i);var l=As;if(l&&n){var u=i&&typeof i.as=="string"?i.as:"script",b='link[rel="modulepreload"][as="'+Sn(u)+'"][href="'+Sn(n)+'"]',v=b;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=Os(n)}if(!pr.has(v)&&(n=p({rel:"modulepreload",href:n},i),pr.set(v,n),l.querySelector(b)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ql(v)))return}u=l.createElement("link"),_n(u,"link",n),Ft(u),l.head.appendChild(u)}}}function J2(n,i,l){gi.S(n,i,l);var u=As;if(u&&n){var b=Ir(u).hoistableStyles,v=Ms(n);i=i||"default";var C=b.get(v);if(!C){var P={loading:0,preload:null};if(C=u.querySelector($l(v)))P.loading=5;else{n=p({rel:"stylesheet",href:n,"data-precedence":i},l),(l=pr.get(v))&&Jf(n,l);var ne=C=u.createElement("link");Ft(ne),_n(ne,"link",n),ne._p=new Promise(function(le,he){ne.onload=le,ne.onerror=he}),ne.addEventListener("load",function(){P.loading|=1}),ne.addEventListener("error",function(){P.loading|=2}),P.loading|=4,Bc(C,i,u)}C={type:"stylesheet",instance:C,count:1,state:P},b.set(v,C)}}}function ek(n,i){gi.X(n,i);var l=As;if(l&&n){var u=Ir(l).hoistableScripts,b=Os(n),v=u.get(b);v||(v=l.querySelector(ql(b)),v||(n=p({src:n,async:!0},i),(i=pr.get(b))&&eh(n,i),v=l.createElement("script"),Ft(v),_n(v,"link",n),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(b,v))}}function tk(n,i){gi.M(n,i);var l=As;if(l&&n){var u=Ir(l).hoistableScripts,b=Os(n),v=u.get(b);v||(v=l.querySelector(ql(b)),v||(n=p({src:n,async:!0,type:"module"},i),(i=pr.get(b))&&eh(n,i),v=l.createElement("script"),Ft(v),_n(v,"link",n),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(b,v))}}function S0(n,i,l,u){var b=(b=Q.current)?Ic(b):null;if(!b)throw Error(a(446));switch(n){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(i=Ms(l.href),l=Ir(b).hoistableStyles,u=l.get(i),u||(u={type:"style",instance:null,count:0,state:null},l.set(i,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){n=Ms(l.href);var v=Ir(b).hoistableStyles,C=v.get(n);if(C||(b=b.ownerDocument||b,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(n,C),(v=b.querySelector($l(n)))&&!v._p&&(C.instance=v,C.state.loading=5),pr.has(n)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},pr.set(n,l),v||nk(b,n,l,C.state))),i&&u===null)throw Error(a(528,""));return C}if(i&&u!==null)throw Error(a(529,""));return null;case"script":return i=l.async,l=l.src,typeof l=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Os(l),l=Ir(b).hoistableScripts,u=l.get(i),u||(u={type:"script",instance:null,count:0,state:null},l.set(i,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,n))}}function Ms(n){return'href="'+Sn(n)+'"'}function $l(n){return'link[rel="stylesheet"]['+n+"]"}function k0(n){return p({},n,{"data-precedence":n.precedence,precedence:null})}function nk(n,i,l,u){n.querySelector('link[rel="preload"][as="style"]['+i+"]")?u.loading=1:(i=n.createElement("link"),u.preload=i,i.addEventListener("load",function(){return u.loading|=1}),i.addEventListener("error",function(){return u.loading|=2}),_n(i,"link",l),Ft(i),n.head.appendChild(i))}function Os(n){return'[src="'+Sn(n)+'"]'}function ql(n){return"script[async]"+n}function T0(n,i,l){if(i.count++,i.instance===null)switch(i.type){case"style":var u=n.querySelector('style[data-href~="'+Sn(l.href)+'"]');if(u)return i.instance=u,Ft(u),u;var b=p({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return u=(n.ownerDocument||n).createElement("style"),Ft(u),_n(u,"style",b),Bc(u,l.precedence,n),i.instance=u;case"stylesheet":b=Ms(l.href);var v=n.querySelector($l(b));if(v)return i.state.loading|=4,i.instance=v,Ft(v),v;u=k0(l),(b=pr.get(b))&&Jf(u,b),v=(n.ownerDocument||n).createElement("link"),Ft(v);var C=v;return C._p=new Promise(function(P,ne){C.onload=P,C.onerror=ne}),_n(v,"link",u),i.state.loading|=4,Bc(v,l.precedence,n),i.instance=v;case"script":return v=Os(l.src),(b=n.querySelector(ql(v)))?(i.instance=b,Ft(b),b):(u=l,(b=pr.get(v))&&(u=p({},l),eh(u,b)),n=n.ownerDocument||n,b=n.createElement("script"),Ft(b),_n(b,"link",u),n.head.appendChild(b),i.instance=b);case"void":return null;default:throw Error(a(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(u=i.instance,i.state.loading|=4,Bc(u,l.precedence,n));return i.instance}function Bc(n,i,l){for(var u=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=u.length?u[u.length-1]:null,v=b,C=0;C<u.length;C++){var P=u[C];if(P.dataset.precedence===i)v=P;else if(v!==b)break}v?v.parentNode.insertBefore(n,v.nextSibling):(i=l.nodeType===9?l.head:l,i.insertBefore(n,i.firstChild))}function Jf(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.title==null&&(n.title=i.title)}function eh(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.integrity==null&&(n.integrity=i.integrity)}var Uc=null;function C0(n,i,l){if(Uc===null){var u=new Map,b=Uc=new Map;b.set(l,u)}else b=Uc,u=b.get(l),u||(u=new Map,b.set(l,u));if(u.has(n))return u;for(u.set(n,null),l=l.getElementsByTagName(n),b=0;b<l.length;b++){var v=l[b];if(!(v[Wr]||v[Ut]||n==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var C=v.getAttribute(i)||"";C=n+C;var P=u.get(C);P?P.push(v):u.set(C,[v])}}return u}function A0(n,i,l){n=n.ownerDocument||n,n.head.insertBefore(l,i==="title"?n.querySelector("head > title"):null)}function rk(n,i,l){if(l===1||i.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return n=i.disabled,typeof i.precedence=="string"&&n==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function M0(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function ik(n,i,l,u){if(l.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var b=Ms(u.href),v=i.querySelector($l(b));if(v){i=v._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(n.count++,n=Hc.bind(n),i.then(n,n)),l.state.loading|=4,l.instance=v,Ft(v);return}v=i.ownerDocument||i,u=k0(u),(b=pr.get(b))&&Jf(u,b),v=v.createElement("link"),Ft(v);var C=v;C._p=new Promise(function(P,ne){C.onload=P,C.onerror=ne}),_n(v,"link",u),l.instance=v}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(l,i),(i=l.state.preload)&&(l.state.loading&3)===0&&(n.count++,l=Hc.bind(n),i.addEventListener("load",l),i.addEventListener("error",l))}}var th=0;function ak(n,i){return n.stylesheets&&n.count===0&&qc(n,n.stylesheets),0<n.count||0<n.imgCount?function(l){var u=setTimeout(function(){if(n.stylesheets&&qc(n,n.stylesheets),n.unsuspend){var v=n.unsuspend;n.unsuspend=null,v()}},6e4+i);0<n.imgBytes&&th===0&&(th=62500*U2());var b=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&qc(n,n.stylesheets),n.unsuspend)){var v=n.unsuspend;n.unsuspend=null,v()}},(n.imgBytes>th?50:800)+i);return n.unsuspend=l,function(){n.unsuspend=null,clearTimeout(u),clearTimeout(b)}}:null}function Hc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)qc(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var $c=null;function qc(n,i){n.stylesheets=null,n.unsuspend!==null&&(n.count++,$c=new Map,i.forEach(sk,n),$c=null,Hc.call(n))}function sk(n,i){if(!(i.state.loading&4)){var l=$c.get(n);if(l)var u=l.get(null);else{l=new Map,$c.set(n,l);for(var b=n.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<b.length;v++){var C=b[v];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(l.set(C.dataset.precedence,C),u=C)}u&&l.set(null,u)}b=i.instance,C=b.getAttribute("data-precedence"),v=l.get(C)||u,v===u&&l.set(null,b),l.set(C,b),this.count++,u=Hc.bind(this),b.addEventListener("load",u),b.addEventListener("error",u),v?v.parentNode.insertBefore(b,v.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(b,n.firstChild)),i.state.loading|=4}}var Pl={$$typeof:E,Provider:null,Consumer:null,_currentValue:X,_currentValue2:X,_threadCount:0};function lk(n,i,l,u,b,v,C,P,ne){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=St(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=St(0),this.hiddenUpdates=St(null),this.identifierPrefix=u,this.onUncaughtError=b,this.onCaughtError=v,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ne,this.incompleteTransitions=new Map}function O0(n,i,l,u,b,v,C,P,ne,le,he,ge){return n=new lk(n,i,l,C,ne,le,he,ge,P),i=1,v===!0&&(i|=24),v=Zn(3,null,null,i),n.current=v,v.stateNode=n,i=Dd(),i.refCount++,n.pooledCache=i,i.refCount++,v.memoizedState={element:u,isDehydrated:l,cache:i},Id(v),n}function R0(n){return n?(n=os,n):os}function D0(n,i,l,u,b,v){b=R0(b),u.context===null?u.context=b:u.pendingContext=b,u=Hi(i),u.payload={element:l},v=v===void 0?null:v,v!==null&&(u.callback=v),l=$i(n,u,i),l!==null&&(qn(l,n,i),_l(l,n,i))}function j0(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var l=n.retryLane;n.retryLane=l!==0&&l<i?l:i}}function nh(n,i){j0(n,i),(n=n.alternate)&&j0(n,i)}function L0(n){if(n.tag===13||n.tag===31){var i=wa(n,67108864);i!==null&&qn(i,n,67108864),nh(n,67108864)}}function z0(n){if(n.tag===13||n.tag===31){var i=tr();i=Mt(i);var l=wa(n,i);l!==null&&qn(l,n,i),nh(n,i)}}var Pc=!0;function ok(n,i,l,u){var b=O.T;O.T=null;var v=H.p;try{H.p=2,rh(n,i,l,u)}finally{H.p=v,O.T=b}}function ck(n,i,l,u){var b=O.T;O.T=null;var v=H.p;try{H.p=8,rh(n,i,l,u)}finally{H.p=v,O.T=b}}function rh(n,i,l,u){if(Pc){var b=ih(u);if(b===null)Pf(n,i,u,Fc,l),B0(n,u);else if(dk(b,n,i,l,u))u.stopPropagation();else if(B0(n,u),i&4&&-1<uk.indexOf(n)){for(;b!==null;){var v=vr(b);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var C=hn(v.pendingLanes);if(C!==0){var P=v;for(P.pendingLanes|=2,P.entangledLanes|=2;C;){var ne=1<<31-ut(C);P.entanglements[1]|=ne,C&=~ne}qr(v),(pt&6)===0&&(kc=ct()+500,Il(0))}}break;case 31:case 13:P=wa(v,2),P!==null&&qn(P,v,2),Cc(),nh(v,2)}if(v=ih(u),v===null&&Pf(n,i,u,Fc,l),v===b)break;b=v}b!==null&&u.stopPropagation()}else Pf(n,i,u,null,l)}}function ih(n){return n=Ye(n),ah(n)}var Fc=null;function ah(n){if(Fc=null,n=bn(n),n!==null){var i=o(n);if(i===null)n=null;else{var l=i.tag;if(l===13){if(n=c(i),n!==null)return n;n=null}else if(l===31){if(n=d(i),n!==null)return n;n=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}return Fc=n,null}function I0(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(It()){case ue:return 2;case xe:return 8;case Oe:case Fe:return 32;case Ze:return 268435456;default:return 32}default:return 32}}var sh=!1,Wi=null,Ji=null,ea=null,Fl=new Map,Gl=new Map,ta=[],uk="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function B0(n,i){switch(n){case"focusin":case"focusout":Wi=null;break;case"dragenter":case"dragleave":Ji=null;break;case"mouseover":case"mouseout":ea=null;break;case"pointerover":case"pointerout":Fl.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gl.delete(i.pointerId)}}function Vl(n,i,l,u,b,v){return n===null||n.nativeEvent!==v?(n={blockedOn:i,domEventName:l,eventSystemFlags:u,nativeEvent:v,targetContainers:[b]},i!==null&&(i=vr(i),i!==null&&L0(i)),n):(n.eventSystemFlags|=u,i=n.targetContainers,b!==null&&i.indexOf(b)===-1&&i.push(b),n)}function dk(n,i,l,u,b){switch(i){case"focusin":return Wi=Vl(Wi,n,i,l,u,b),!0;case"dragenter":return Ji=Vl(Ji,n,i,l,u,b),!0;case"mouseover":return ea=Vl(ea,n,i,l,u,b),!0;case"pointerover":var v=b.pointerId;return Fl.set(v,Vl(Fl.get(v)||null,n,i,l,u,b)),!0;case"gotpointercapture":return v=b.pointerId,Gl.set(v,Vl(Gl.get(v)||null,n,i,l,u,b)),!0}return!1}function U0(n){var i=bn(n.target);if(i!==null){var l=o(i);if(l!==null){if(i=l.tag,i===13){if(i=c(l),i!==null){n.blockedOn=i,ki(n.priority,function(){z0(l)});return}}else if(i===31){if(i=d(l),i!==null){n.blockedOn=i,ki(n.priority,function(){z0(l)});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){n.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Gc(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var l=ih(n.nativeEvent);if(l===null){l=n.nativeEvent;var u=new l.constructor(l.type,l);Re=u,l.target.dispatchEvent(u),Re=null}else return i=vr(l),i!==null&&L0(i),n.blockedOn=l,!1;i.shift()}return!0}function H0(n,i,l){Gc(n)&&l.delete(i)}function fk(){sh=!1,Wi!==null&&Gc(Wi)&&(Wi=null),Ji!==null&&Gc(Ji)&&(Ji=null),ea!==null&&Gc(ea)&&(ea=null),Fl.forEach(H0),Gl.forEach(H0)}function Vc(n,i){n.blockedOn===i&&(n.blockedOn=null,sh||(sh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,fk)))}var Yc=null;function $0(n){Yc!==n&&(Yc=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Yc===n&&(Yc=null);for(var i=0;i<n.length;i+=3){var l=n[i],u=n[i+1],b=n[i+2];if(typeof u!="function"){if(ah(u||l)===null)continue;break}var v=vr(l);v!==null&&(n.splice(i,3),i-=3,rf(v,{pending:!0,data:b,method:l.method,action:u},u,b))}}))}function Rs(n){function i(ne){return Vc(ne,n)}Wi!==null&&Vc(Wi,n),Ji!==null&&Vc(Ji,n),ea!==null&&Vc(ea,n),Fl.forEach(i),Gl.forEach(i);for(var l=0;l<ta.length;l++){var u=ta[l];u.blockedOn===n&&(u.blockedOn=null)}for(;0<ta.length&&(l=ta[0],l.blockedOn===null);)U0(l),l.blockedOn===null&&ta.shift();if(l=(n.ownerDocument||n).$$reactFormReplay,l!=null)for(u=0;u<l.length;u+=3){var b=l[u],v=l[u+1],C=b[mn]||null;if(typeof v=="function")C||$0(l);else if(C){var P=null;if(v&&v.hasAttribute("formAction")){if(b=v,C=v[mn]||null)P=C.formAction;else if(ah(b)!==null)continue}else P=C.action;typeof P=="function"?l[u+1]=P:(l.splice(u,3),u-=3),$0(l)}}}function q0(){function n(v){v.canIntercept&&v.info==="react-transition"&&v.intercept({handler:function(){return new Promise(function(C){return b=C})},focusReset:"manual",scroll:"manual"})}function i(){b!==null&&(b(),b=null),u||setTimeout(l,20)}function l(){if(!u&&!navigation.transition){var v=navigation.currentEntry;v&&v.url!=null&&navigation.navigate(v.url,{state:v.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,b=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(l,100),function(){u=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),b!==null&&(b(),b=null)}}}function lh(n){this._internalRoot=n}Xc.prototype.render=lh.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(a(409));var l=i.current,u=tr();D0(l,u,n,i,null,null)},Xc.prototype.unmount=lh.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;D0(n.current,2,null,n,null,null),Cc(),i[yr]=null}};function Xc(n){this._internalRoot=n}Xc.prototype.unstable_scheduleHydration=function(n){if(n){var i=Si();n={blockedOn:null,target:n,priority:i};for(var l=0;l<ta.length&&i!==0&&i<ta[l].priority;l++);ta.splice(l,0,n),l===0&&U0(n)}};var P0=t.version;if(P0!=="19.2.7")throw Error(a(527,P0,"19.2.7"));H.findDOMNode=function(n){var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(a(188)):(n=Object.keys(n).join(","),Error(a(268,n)));return n=h(i),n=n!==null?m(n):null,n=n===null?null:n.stateNode,n};var hk={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Kc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kc.isDisabled&&Kc.supportsFiber)try{Kt=Kc.inject(hk),At=Kc}catch{}}return Xl.createRoot=function(n,i){if(!s(n))throw Error(a(299));var l=!1,u="",b=Zb,v=Qb,C=Wb;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(b=i.onUncaughtError),i.onCaughtError!==void 0&&(v=i.onCaughtError),i.onRecoverableError!==void 0&&(C=i.onRecoverableError)),i=O0(n,1,!1,null,null,l,u,null,b,v,C,q0),n[yr]=i.current,qf(n),new lh(i)},Xl.hydrateRoot=function(n,i,l){if(!s(n))throw Error(a(299));var u=!1,b="",v=Zb,C=Qb,P=Wb,ne=null;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(b=l.identifierPrefix),l.onUncaughtError!==void 0&&(v=l.onUncaughtError),l.onCaughtError!==void 0&&(C=l.onCaughtError),l.onRecoverableError!==void 0&&(P=l.onRecoverableError),l.formState!==void 0&&(ne=l.formState)),i=O0(n,1,!0,i,l??null,u,b,ne,v,C,P,q0),i.context=R0(null),l=i.current,u=tr(),u=Mt(u),b=Hi(u),b.callback=null,$i(l,b,u),l=u,i.current.lanes=l,gt(i,l),qr(i),n[yr]=i.current,qf(n),new Xc(i)},Xl.version="19.2.7",Xl}var J0;function wk(){if(J0)return uh.exports;J0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),uh.exports=_k(),uh.exports}var Ek=wk();/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const S_=(...e)=>e.filter((t,r,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===r).join(" ").trim();/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Nk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Sk=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,a)=>a?a.toUpperCase():r.toLowerCase());/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const ey=e=>{const t=Sk(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var kk={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.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Tk=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Ck=ee.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:s="",children:o,iconNode:c,...d},f)=>ee.createElement("svg",{ref:f,...kk,width:t,height:t,stroke:e,strokeWidth:a?Number(r)*24/Number(t):r,className:S_("lucide",s),...!o&&!Tk(d)&&{"aria-hidden":"true"},...d},[...c.map(([h,m])=>ee.createElement(h,m)),...Array.isArray(o)?o:[o]]));/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Me=(e,t)=>{const r=ee.forwardRef(({className:a,...s},o)=>ee.createElement(Ck,{ref:o,iconNode:t,className:S_(`lucide-${Nk(ey(e))}`,`lucide-${e}`,a),...s}));return r.displayName=ey(e),r};/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Ak=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],gp=Me("arrow-left",Ak);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Mk=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],k_=Me("arrow-up-right",Mk);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Ok=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Rk=Me("arrow-up",Ok);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Dk=[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],T_=Me("ban",Dk);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const jk=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]],Lk=Me("bell-off",jk);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const zk=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Ao=Me("bot",zk);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Ik=[["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"}]],C_=Me("brain",Ik);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Bk=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],Uk=Me("calendar-clock",Bk);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Hk=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],$k=Me("check-check",Hk);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const qk=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Gs=Me("check",qk);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Pk=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ho=Me("chevron-down",Pk);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Fk=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Gk=Me("chevron-right",Fk);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Vk=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],A_=Me("chevron-up",Vk);/**
+ * @license lucide-react v0.563.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=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],Xk=Me("chevrons-up-down",Yk);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Kk=[["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"}]],Hu=Me("circle-alert",Kk);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Zk=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],M_=Me("circle-check-big",Zk);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Qk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],O_=Me("circle-check",Qk);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Wk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],Jk=Me("circle-dot",Wk);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const eT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],tT=Me("circle",eT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const nT=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],R_=Me("clock",nT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const rT=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],iT=Me("code",rT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const aT=[["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"}]],mo=Me("copy",aT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const sT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]],lT=Me("crosshair",sT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const oT=[["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"}]],ty=Me("external-link",oT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const cT=[["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"}]],uT=Me("eye",cT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const dT=[["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 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],fT=Me("file-text",dT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const hT=[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]],D_=Me("flag",hT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const mT=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],pT=Me("git-merge",mT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const gT=[["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"}]],bT=Me("git-pull-request",gT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const xT=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],yT=Me("github",xT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const vT=[["path",{d:"m22 13.29-3.33-10a.42.42 0 0 0-.14-.18.38.38 0 0 0-.22-.11.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18l-2.26 6.67H8.32L6.1 3.26a.42.42 0 0 0-.1-.18.38.38 0 0 0-.26-.08.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18L2 13.29a.74.74 0 0 0 .27.83L12 21l9.69-6.88a.71.71 0 0 0 .31-.83Z",key:"148pdi"}]],_T=Me("gitlab",vT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const wT=[["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"}]],j_=Me("globe",wT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const ET=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],Vs=Me("history",ET);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const NT=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],ST=Me("image",NT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const kT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],TT=Me("info",kT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const CT=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]],AT=Me("list-todo",CT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const MT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],qs=Me("loader-circle",MT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const OT=[["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"}]],RT=Me("lock",OT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const DT=[["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"}]],jT=Me("log-out",DT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const LT=[["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"}]],bp=Me("mail",LT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const zT=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],ny=Me("message-circle",zT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const IT=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],BT=Me("pencil",IT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const UT=[["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"}]],HT=Me("plug",UT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const $T=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],qT=Me("plus",$T);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const PT=[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]],FT=Me("radar",PT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const GT=[["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"}]],VT=Me("refresh-cw",GT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const YT=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],XT=Me("rocket",YT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const KT=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],ZT=Me("rotate-ccw",KT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const QT=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],WT=Me("search",QT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const JT=[["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"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],eC=Me("shield-alert",JT);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const tC=[["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"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],L_=Me("shield-check",tC);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const nC=[["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"}]],rC=Me("shield",nC);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const iC=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Im=Me("sparkles",iC);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const aC=[["path",{d:"M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",key:"1dfntj"}],["path",{d:"M15 3v5a1 1 0 0 0 1 1h5",key:"6s6qgf"}]],sC=Me("sticky-note",aC);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const lC=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],z_=Me("terminal",lC);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const oC=[["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"}]],cC=Me("trash-2",oC);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const uC=[["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"}]],dC=Me("triangle-alert",uC);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const fC=[["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"}]],hC=Me("users",fC);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const mC=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],pC=Me("wand-sparkles",mC);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const gC=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Bm=Me("wrench",gC);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const bC=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],xp=Me("x",bC);/**
+ * @license lucide-react v0.563.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const xC=[["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"}]],yC=Me("zap",xC),vC={open:{label:"Open",color:"bg-red-500/10 text-red-400 border-red-500/20",dotColor:"bg-red-500",description:"Newly discovered, awaiting triage"},in_progress:{label:"In Progress",color:"bg-blue-500/10 text-blue-400 border-blue-500/20",dotColor:"bg-blue-500",description:"Someone is working on this"},snoozed:{label:"Snoozed",color:"bg-purple-500/10 text-purple-400 border-purple-500/20",dotColor:"bg-purple-500",description:"Temporarily hidden until a follow-up date"},fixed:{label:"Fixed",color:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",dotColor:"bg-emerald-500",description:"This vulnerability has been fixed"},ignored:{label:"Ignored",color:"bg-gray-500/10 text-gray-400 border-gray-500/20",dotColor:"bg-gray-500",description:"Acknowledged but accepted"}},_C={trivial:{label:"Trivial",color:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20"},low:{label:"Low",color:"bg-blue-500/10 text-blue-400 border-blue-500/20"},medium:{label:"Medium",color:"bg-yellow-500/10 text-yellow-400 border-yellow-500/20"},high:{label:"High",color:"bg-orange-500/10 text-orange-400 border-orange-500/20"}},I_={critical:"bg-red-500/20 text-red-500 border-red-500/30",high:"bg-orange-500/20 text-orange-500 border-orange-500/30",medium:"bg-yellow-500/20 text-yellow-500 border-yellow-500/30",low:"bg-blue-500/20 text-blue-500 border-blue-500/30"};function Zc(e){return e.original_severity!=null&&e.original_severity!==e.severity}const wC={js:"javascript",ts:"typescript",tsx:"typescript",jsx:"javascript",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",php:"php",cs:"csharp",cpp:"cpp",c:"c",sh:"bash",bash:"bash",sql:"sql",html:"html",css:"css",json:"json",yaml:"yaml",yml:"yaml",xml:"xml"};function EC(e){var r;if(!e)return null;const t=(r=e.split(".").pop())==null?void 0:r.toLowerCase();return t&&wC[t]||null}function yp(e){switch(e){case"critical":return"bg-red-500";case"high":return"bg-orange-500";case"medium":return"bg-yellow-500";default:return"bg-blue-500"}}async function vp(e){try{await navigator.clipboard.writeText(e)}catch{const t=document.createElement("textarea");t.value=e,t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}}const $u="https://app.strix.ai/api/auth/signup",NC="https://strix.ai/pricing",SC="ref=oss_viewer&utm_source=oss_viewer&utm_medium=local_viewer&utm_campaign=oss_viewer";function fa(e,t){const r=e.includes("?")?"&":"?";return`${e}${r}${SC}&utm_content=${encodeURIComponent(t)}`}function Cr(e,t={}){try{const r={event:e};for(const[s,o]of Object.entries(t))o!==void 0&&(r[s]=o);const a=JSON.stringify(r);typeof navigator<"u"&&navigator.sendBeacon?navigator.sendBeacon("/api/event",a):fetch("/api/event",{method:"POST",body:a,keepalive:!0})}catch{}}function Vr(e,t){Cr("cta_clicked",{cta:e,surface:t})}function B_(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=B_(e[t]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function kC(){for(var e,t,r=0,a="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=B_(e))&&(a&&(a+=" "),a+=t);return a}const TC=(e,t)=>{const r=new Array(e.length+t.length);for(let a=0;a<e.length;a++)r[a]=e[a];for(let a=0;a<t.length;a++)r[e.length+a]=t[a];return r},CC=(e,t)=>({classGroupId:e,validator:t}),U_=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),vu="-",ry=[],AC="arbitrary..",MC=e=>{const t=RC(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return OC(c);const d=c.split(vu),f=d[0]===""&&d.length>1?1:0;return H_(d,f,t)},getConflictingClassGroupIds:(c,d)=>{if(d){const f=a[c],h=r[c];return f?h?TC(h,f):f:h||ry}return r[c]||ry}}},H_=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const s=e[t],o=r.nextPart.get(s);if(o){const h=H_(e,t+1,o);if(h)return h}const c=r.validators;if(c===null)return;const d=t===0?e.join(vu):e.slice(t).join(vu),f=c.length;for(let h=0;h<f;h++){const m=c[h];if(m.validator(d))return m.classGroupId}},OC=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),a=t.slice(0,r);return a?AC+a:void 0})(),RC=e=>{const{theme:t,classGroups:r}=e;return DC(r,t)},DC=(e,t)=>{const r=U_();for(const a in e){const s=e[a];_p(s,r,a,t)}return r},_p=(e,t,r,a)=>{const s=e.length;for(let o=0;o<s;o++){const c=e[o];jC(c,t,r,a)}},jC=(e,t,r,a)=>{if(typeof e=="string"){LC(e,t,r);return}if(typeof e=="function"){zC(e,t,r,a);return}IC(e,t,r,a)},LC=(e,t,r)=>{const a=e===""?t:$_(t,e);a.classGroupId=r},zC=(e,t,r,a)=>{if(BC(e)){_p(e(a),t,r,a);return}t.validators===null&&(t.validators=[]),t.validators.push(CC(r,e))},IC=(e,t,r,a)=>{const s=Object.entries(e),o=s.length;for(let c=0;c<o;c++){const[d,f]=s[c];_p(f,$_(t,d),r,a)}},$_=(e,t)=>{let r=e;const a=t.split(vu),s=a.length;for(let o=0;o<s;o++){const c=a[o];let d=r.nextPart.get(c);d||(d=U_(),r.nextPart.set(c,d)),r=d}return r},BC=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,UC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),a=Object.create(null);const s=(o,c)=>{r[o]=c,t++,t>e&&(t=0,a=r,r=Object.create(null))};return{get(o){let c=r[o];if(c!==void 0)return c;if((c=a[o])!==void 0)return s(o,c),c},set(o,c){o in r?r[o]=c:s(o,c)}}},Um="!",iy=":",HC=[],ay=(e,t,r,a,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:a,isExternal:s}),$C=e=>{const{prefix:t,experimentalParseClassName:r}=e;let a=s=>{const o=[];let c=0,d=0,f=0,h;const m=s.length;for(let N=0;N<m;N++){const S=s[N];if(c===0&&d===0){if(S===iy){o.push(s.slice(f,N)),f=N+1;continue}if(S==="/"){h=N;continue}}S==="["?c++:S==="]"?c--:S==="("?d++:S===")"&&d--}const p=o.length===0?s:s.slice(f);let y=p,x=!1;p.endsWith(Um)?(y=p.slice(0,-1),x=!0):p.startsWith(Um)&&(y=p.slice(1),x=!0);const _=h&&h>f?h-f:void 0;return ay(o,x,y,_)};if(t){const s=t+iy,o=a;a=c=>c.startsWith(s)?o(c.slice(s.length)):ay(HC,!1,c,void 0,!0)}if(r){const s=a;a=o=>r({className:o,parseClassName:s})}return a},qC=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,a)=>{t.set(r,1e6+a)}),r=>{const a=[];let s=[];for(let o=0;o<r.length;o++){const c=r[o],d=c[0]==="[",f=t.has(c);d||f?(s.length>0&&(s.sort(),a.push(...s),s=[]),a.push(c)):s.push(c)}return s.length>0&&(s.sort(),a.push(...s)),a}},PC=e=>({cache:UC(e.cacheSize),parseClassName:$C(e),sortModifiers:qC(e),postfixLookupClassGroupIds:FC(e),...MC(e)}),FC=e=>{const t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let a=0;a<r.length;a++)t[r[a]]=!0;return t},GC=/\s+/,VC=(e,t)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:s,sortModifiers:o,postfixLookupClassGroupIds:c}=t,d=[],f=e.trim().split(GC);let h="";for(let m=f.length-1;m>=0;m-=1){const p=f[m],{isExternal:y,modifiers:x,hasImportantModifier:_,baseClassName:N,maybePostfixModifierPosition:S}=r(p);if(y){h=p+(h.length>0?" "+h:h);continue}let w=!!S,k;if(w){const U=N.substring(0,S);k=a(U);const B=k&&c[k]?a(N):void 0;B&&B!==k&&(k=B,w=!1)}else k=a(N);if(!k){if(!w){h=p+(h.length>0?" "+h:h);continue}if(k=a(N),!k){h=p+(h.length>0?" "+h:h);continue}w=!1}const E=x.length===0?"":x.length===1?x[0]:o(x).join(":"),M=_?E+Um:E,I=M+k;if(d.indexOf(I)>-1)continue;d.push(I);const R=s(k,w);for(let U=0;U<R.length;++U){const B=R[U];d.push(M+B)}h=p+(h.length>0?" "+h:h)}return h},YC=(...e)=>{let t=0,r,a,s="";for(;t<e.length;)(r=e[t++])&&(a=q_(r))&&(s&&(s+=" "),s+=a);return s},q_=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=q_(e[a]))&&(r&&(r+=" "),r+=t);return r},XC=(e,...t)=>{let r,a,s,o;const c=f=>{const h=t.reduce((m,p)=>p(m),e());return r=PC(h),a=r.cache.get,s=r.cache.set,o=d,d(f)},d=f=>{const h=a(f);if(h)return h;const m=VC(f,r);return s(f,m),m};return o=c,(...f)=>o(YC(...f))},KC=[],fn=e=>{const t=r=>r[e]||KC;return t.isThemeGetter=!0,t},P_=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,F_=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ZC=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,QC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,WC=/\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$/,JC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,eA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ra=e=>ZC.test(e),We=e=>!!e&&!Number.isNaN(Number(e)),Pr=e=>!!e&&Number.isInteger(Number(e)),mh=e=>e.endsWith("%")&&We(e.slice(0,-1)),bi=e=>QC.test(e),G_=()=>!0,nA=e=>WC.test(e)&&!JC.test(e),wp=()=>!1,rA=e=>eA.test(e),iA=e=>tA.test(e),aA=e=>!ke(e)&&!Te(e),sA=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),lA=e=>ha(e,X_,wp),ke=e=>P_.test(e),La=e=>ha(e,K_,nA),sy=e=>ha(e,pA,We),oA=e=>ha(e,Q_,G_),cA=e=>ha(e,Z_,wp),ly=e=>ha(e,V_,wp),uA=e=>ha(e,Y_,iA),Qc=e=>ha(e,W_,rA),Te=e=>F_.test(e),Kl=e=>Za(e,K_),dA=e=>Za(e,Z_),oy=e=>Za(e,V_),fA=e=>Za(e,X_),hA=e=>Za(e,Y_),Wc=e=>Za(e,W_,!0),mA=e=>Za(e,Q_,!0),ha=(e,t,r)=>{const a=P_.exec(e);return a?a[1]?t(a[1]):r(a[2]):!1},Za=(e,t,r=!1)=>{const a=F_.exec(e);return a?a[1]?t(a[1]):r:!1},V_=e=>e==="position"||e==="percentage",Y_=e=>e==="image"||e==="url",X_=e=>e==="length"||e==="size"||e==="bg-size",K_=e=>e==="length",pA=e=>e==="number",Z_=e=>e==="family-name",Q_=e=>e==="number"||e==="weight",W_=e=>e==="shadow",gA=()=>{const e=fn("color"),t=fn("font"),r=fn("text"),a=fn("font-weight"),s=fn("tracking"),o=fn("leading"),c=fn("breakpoint"),d=fn("container"),f=fn("spacing"),h=fn("radius"),m=fn("shadow"),p=fn("inset-shadow"),y=fn("text-shadow"),x=fn("drop-shadow"),_=fn("blur"),N=fn("perspective"),S=fn("aspect"),w=fn("ease"),k=fn("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...M(),Te,ke],R=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto","contain","none"],B=()=>[Te,ke,f],Z=()=>[ra,"full","auto",...B()],D=()=>[Pr,"none","subgrid",Te,ke],L=()=>["auto",{span:["full",Pr,Te,ke]},Pr,Te,ke],G=()=>[Pr,"auto",Te,ke],V=()=>["auto","min","max","fr",Te,ke],A=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...B()],H=()=>[ra,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...B()],X=()=>[ra,"screen","full","dvw","lvw","svw","min","max","fit",...B()],K=()=>[ra,"screen","full","lh","dvh","lvh","svh","min","max","fit",...B()],T=()=>[e,Te,ke],j=()=>[...M(),oy,ly,{position:[Te,ke]}],Y=()=>["no-repeat",{repeat:["","x","y","space","round"]}],z=()=>["auto","cover","contain",fA,lA,{size:[Te,ke]}],F=()=>[mh,Kl,La],$=()=>["","none","full",h,Te,ke],Q=()=>["",We,Kl,La],J=()=>["solid","dashed","dotted","double"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>[We,mh,oy,ly],ce=()=>["","none",_,Te,ke],fe=()=>["none",We,Te,ke],be=()=>["none",We,Te,ke],we=()=>[We,Te,ke],Ne=()=>[ra,"full",...B()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[bi],breakpoint:[bi],color:[G_],container:[bi],"drop-shadow":[bi],ease:["in","out","in-out"],font:[aA],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[bi],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[bi],shadow:[bi],spacing:["px",We],text:[bi],"text-shadow":[bi],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ra,ke,Te,S]}],container:["container"],"container-type":[{"@container":["","normal","size",Te,ke]}],"container-named":[sA],columns:[{columns:[We,ke,Te,d]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"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:I()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Z()}],"inset-x":[{"inset-x":Z()}],"inset-y":[{"inset-y":Z()}],start:[{"inset-s":Z(),start:Z()}],end:[{"inset-e":Z(),end:Z()}],"inset-bs":[{"inset-bs":Z()}],"inset-be":[{"inset-be":Z()}],top:[{top:Z()}],right:[{right:Z()}],bottom:[{bottom:Z()}],left:[{left:Z()}],visibility:["visible","invisible","collapse"],z:[{z:[Pr,"auto",Te,ke]}],basis:[{basis:[ra,"full","auto",d,...B()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[We,ra,"auto","initial","none",ke]}],grow:[{grow:["",We,Te,ke]}],shrink:[{shrink:["",We,Te,ke]}],order:[{order:[Pr,"first","last","none",Te,ke]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:L()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:L()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:B()}],"gap-x":[{"gap-x":B()}],"gap-y":[{"gap-y":B()}],"justify-content":[{justify:[...A(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...A()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:B()}],px:[{px:B()}],py:[{py:B()}],ps:[{ps:B()}],pe:[{pe:B()}],pbs:[{pbs:B()}],pbe:[{pbe:B()}],pt:[{pt:B()}],pr:[{pr:B()}],pb:[{pb:B()}],pl:[{pl:B()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":B()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":B()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],"inline-size":[{inline:["auto",...X()]}],"min-inline-size":[{"min-inline":["auto",...X()]}],"max-inline-size":[{"max-inline":["none",...X()]}],"block-size":[{block:["auto",...K()]}],"min-block-size":[{"min-block":["auto",...K()]}],"max-block-size":[{"max-block":["none",...K()]}],w:[{w:[d,"screen",...H()]}],"min-w":[{"min-w":[d,"screen","none",...H()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",r,Kl,La]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,mA,oA]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",mh,ke]}],"font-family":[{font:[dA,cA,t]}],"font-features":[{"font-features":[ke]}],"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:[s,Te,ke]}],"line-clamp":[{"line-clamp":[We,"none",Te,sy]}],leading:[{leading:[o,...B()]}],"list-image":[{"list-image":["none",Te,ke]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Te,ke]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[We,"from-font","auto",Te,La]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[We,"auto",Te,ke]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"tab-size":[{tab:[Pr,Te,ke]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Te,ke]}],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",Te,ke]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:j()}],"bg-repeat":[{bg:Y()}],"bg-size":[{bg:z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Pr,Te,ke],radial:["",Te,ke],conic:[Pr,Te,ke]},hA,uA]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:Q()}],"border-w-x":[{"border-x":Q()}],"border-w-y":[{"border-y":Q()}],"border-w-s":[{"border-s":Q()}],"border-w-e":[{"border-e":Q()}],"border-w-bs":[{"border-bs":Q()}],"border-w-be":[{"border-be":Q()}],"border-w-t":[{"border-t":Q()}],"border-w-r":[{"border-r":Q()}],"border-w-b":[{"border-b":Q()}],"border-w-l":[{"border-l":Q()}],"divide-x":[{"divide-x":Q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[We,Te,ke]}],"outline-w":[{outline:["",We,Kl,La]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",m,Wc,Qc]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",p,Wc,Qc]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[We,La]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",y,Wc,Qc]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[We,Te,ke]}],"mix-blend":[{"mix-blend":[...W(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":W()}],"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":[We]}],"mask-image-linear-from-pos":[{"mask-linear-from":te()}],"mask-image-linear-to-pos":[{"mask-linear-to":te()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":te()}],"mask-image-t-to-pos":[{"mask-t-to":te()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":te()}],"mask-image-r-to-pos":[{"mask-r-to":te()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":te()}],"mask-image-b-to-pos":[{"mask-b-to":te()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":te()}],"mask-image-l-to-pos":[{"mask-l-to":te()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":te()}],"mask-image-x-to-pos":[{"mask-x-to":te()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":te()}],"mask-image-y-to-pos":[{"mask-y-to":te()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[Te,ke]}],"mask-image-radial-from-pos":[{"mask-radial-from":te()}],"mask-image-radial-to-pos":[{"mask-radial-to":te()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"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":M()}],"mask-image-conic-pos":[{"mask-conic":[We]}],"mask-image-conic-from-pos":[{"mask-conic-from":te()}],"mask-image-conic-to-pos":[{"mask-conic-to":te()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:j()}],"mask-repeat":[{mask:Y()}],"mask-size":[{mask:z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Te,ke]}],filter:[{filter:["","none",Te,ke]}],blur:[{blur:ce()}],brightness:[{brightness:[We,Te,ke]}],contrast:[{contrast:[We,Te,ke]}],"drop-shadow":[{"drop-shadow":["","none",x,Wc,Qc]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",We,Te,ke]}],"hue-rotate":[{"hue-rotate":[We,Te,ke]}],invert:[{invert:["",We,Te,ke]}],saturate:[{saturate:[We,Te,ke]}],sepia:[{sepia:["",We,Te,ke]}],"backdrop-filter":[{"backdrop-filter":["","none",Te,ke]}],"backdrop-blur":[{"backdrop-blur":ce()}],"backdrop-brightness":[{"backdrop-brightness":[We,Te,ke]}],"backdrop-contrast":[{"backdrop-contrast":[We,Te,ke]}],"backdrop-grayscale":[{"backdrop-grayscale":["",We,Te,ke]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[We,Te,ke]}],"backdrop-invert":[{"backdrop-invert":["",We,Te,ke]}],"backdrop-opacity":[{"backdrop-opacity":[We,Te,ke]}],"backdrop-saturate":[{"backdrop-saturate":[We,Te,ke]}],"backdrop-sepia":[{"backdrop-sepia":["",We,Te,ke]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":B()}],"border-spacing-x":[{"border-spacing-x":B()}],"border-spacing-y":[{"border-spacing-y":B()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Te,ke]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[We,"initial",Te,ke]}],ease:[{ease:["linear","initial",w,Te,ke]}],delay:[{delay:[We,Te,ke]}],animate:[{animate:["none",k,Te,ke]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,Te,ke]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:fe()}],"rotate-x":[{"rotate-x":fe()}],"rotate-y":[{"rotate-y":fe()}],"rotate-z":[{"rotate-z":fe()}],scale:[{scale:be()}],"scale-x":[{"scale-x":be()}],"scale-y":[{"scale-y":be()}],"scale-z":[{"scale-z":be()}],"scale-3d":["scale-3d"],skew:[{skew:we()}],"skew-x":[{"skew-x":we()}],"skew-y":[{"skew-y":we()}],transform:[{transform:[Te,ke,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ne()}],"translate-x":[{"translate-x":Ne()}],"translate-y":[{"translate-y":Ne()}],"translate-z":[{"translate-z":Ne()}],"translate-none":["translate-none"],zoom:[{zoom:[Pr,Te,ke]}],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"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",Te,ke]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":T()}],"scrollbar-track-color":[{"scrollbar-track":T()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mbs":[{"scroll-mbs":B()}],"scroll-mbe":[{"scroll-mbe":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pbs":[{"scroll-pbs":B()}],"scroll-pbe":[{"scroll-pbe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"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",Te,ke]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[We,Kl,La,sy]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},bA=XC(gA);function Mr(...e){return bA(kC(e))}function xA(e){return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}function Hm(e){const t=new Date(e),a=Math.floor((new Date().getTime()-t.getTime())/1e3);return a<60?"just now":a<3600?`${Math.floor(a/60)}m ago`:a<86400?`${Math.floor(a/3600)}h ago`:a<604800?`${Math.floor(a/86400)}d ago`:xA(e)}function yA(e){return`STRIX-${e}`}function Ds(e){return new Intl.NumberFormat("en-US").format(e)}function vA(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const _A=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,wA=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,EA={};function cy(e,t){return(EA.jsx?wA:_A).test(e)}const NA=/[ \t\n\f\r]/g;function SA(e){return typeof e=="object"?e.type==="text"?uy(e.value):!1:uy(e)}function uy(e){return e.replace(NA,"")===""}class Mo{constructor(t,r,a){this.normal=r,this.property=t,a&&(this.space=a)}}Mo.prototype.normal={};Mo.prototype.property={};Mo.prototype.space=void 0;function J_(e,t){const r={},a={};for(const s of e)Object.assign(r,s.property),Object.assign(a,s.normal);return new Mo(r,a,t)}function $m(e){return e.toLowerCase()}class Vn{constructor(t,r){this.attribute=r,this.property=t}}Vn.prototype.attribute="";Vn.prototype.booleanish=!1;Vn.prototype.boolean=!1;Vn.prototype.commaOrSpaceSeparated=!1;Vn.prototype.commaSeparated=!1;Vn.prototype.defined=!1;Vn.prototype.mustUseProperty=!1;Vn.prototype.number=!1;Vn.prototype.overloadedBoolean=!1;Vn.prototype.property="";Vn.prototype.spaceSeparated=!1;Vn.prototype.space=void 0;let kA=0;const Ge=Qa(),an=Qa(),qm=Qa(),ve=Qa(),Tt=Qa(),$a=Qa(),nr=Qa();function Qa(){return 2**++kA}const Pm=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ge,booleanish:an,commaOrSpaceSeparated:nr,commaSeparated:$a,number:ve,overloadedBoolean:qm,spaceSeparated:Tt},Symbol.toStringTag,{value:"Module"})),ph=Object.keys(Pm);class Ep extends Vn{constructor(t,r,a,s){let o=-1;if(super(t,r),dy(this,"space",s),typeof a=="number")for(;++o<ph.length;){const c=ph[o];dy(this,ph[o],(a&Pm[c])===Pm[c])}}}Ep.prototype.defined=!0;function dy(e,t,r){r&&(e[t]=r)}function tl(e){const t={},r={};for(const[a,s]of Object.entries(e.properties)){const o=new Ep(a,e.transform(e.attributes||{},a),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(o.mustUseProperty=!0),t[a]=o,r[$m(a)]=a,r[$m(o.attribute)]=a}return new Mo(t,r,e.space)}const ew=tl({properties:{ariaActiveDescendant:null,ariaAtomic:an,ariaAutoComplete:null,ariaBusy:an,ariaChecked:an,ariaColCount:ve,ariaColIndex:ve,ariaColSpan:ve,ariaControls:Tt,ariaCurrent:null,ariaDescribedBy:Tt,ariaDetails:null,ariaDisabled:an,ariaDropEffect:Tt,ariaErrorMessage:null,ariaExpanded:an,ariaFlowTo:Tt,ariaGrabbed:an,ariaHasPopup:null,ariaHidden:an,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Tt,ariaLevel:ve,ariaLive:null,ariaModal:an,ariaMultiLine:an,ariaMultiSelectable:an,ariaOrientation:null,ariaOwns:Tt,ariaPlaceholder:null,ariaPosInSet:ve,ariaPressed:an,ariaReadOnly:an,ariaRelevant:null,ariaRequired:an,ariaRoleDescription:Tt,ariaRowCount:ve,ariaRowIndex:ve,ariaRowSpan:ve,ariaSelected:an,ariaSetSize:ve,ariaSort:null,ariaValueMax:ve,ariaValueMin:ve,ariaValueNow:ve,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function tw(e,t){return t in e?e[t]:t}function nw(e,t){return tw(e,t.toLowerCase())}const TA=tl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:$a,acceptCharset:Tt,accessKey:Tt,action:null,allow:null,allowFullScreen:Ge,allowPaymentRequest:Ge,allowUserMedia:Ge,alpha:Ge,alt:null,as:null,async:Ge,autoCapitalize:null,autoComplete:Tt,autoFocus:Ge,autoPlay:Ge,blocking:Tt,capture:null,charSet:null,checked:Ge,cite:null,className:Tt,closedBy:null,colorSpace:null,cols:ve,colSpan:ve,command:null,commandFor:null,content:null,contentEditable:an,controls:Ge,controlsList:Tt,coords:ve|$a,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ge,defer:Ge,dir:null,dirName:null,disabled:Ge,download:qm,draggable:an,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ge,formTarget:null,headers:Tt,height:ve,hidden:qm,high:ve,href:null,hrefLang:null,htmlFor:Tt,httpEquiv:Tt,id:null,imageSizes:null,imageSrcSet:null,inert:Ge,inputMode:null,integrity:null,is:null,isMap:Ge,itemId:null,itemProp:Tt,itemRef:Tt,itemScope:Ge,itemType:Tt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ge,low:ve,manifest:null,max:null,maxLength:ve,media:null,method:null,min:null,minLength:ve,multiple:Ge,muted:Ge,name:null,nonce:null,noModule:Ge,noValidate:Ge,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ge,optimum:ve,pattern:null,ping:Tt,placeholder:null,playsInline:Ge,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ge,referrerPolicy:null,rel:Tt,required:Ge,reversed:Ge,rows:ve,rowSpan:ve,sandbox:Tt,scope:null,scoped:Ge,seamless:Ge,selected:Ge,shadowRootClonable:Ge,shadowRootCustomElementRegistry:Ge,shadowRootDelegatesFocus:Ge,shadowRootMode:null,shadowRootSerializable:Ge,shape:null,size:ve,sizes:null,slot:null,span:ve,spellCheck:an,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ve,step:null,style:null,tabIndex:ve,target:null,title:null,translate:null,type:null,typeMustMatch:Ge,useMap:null,value:an,width:ve,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Tt,axis:null,background:null,bgColor:null,border:ve,borderColor:null,bottomMargin:ve,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ge,declare:Ge,event:null,face:null,frame:null,frameBorder:null,hSpace:ve,leftMargin:ve,link:null,longDesc:null,lowSrc:null,marginHeight:ve,marginWidth:ve,noResize:Ge,noHref:Ge,noShade:Ge,noWrap:Ge,object:null,profile:null,prompt:null,rev:null,rightMargin:ve,rules:null,scheme:null,scrolling:an,standby:null,summary:null,text:null,topMargin:ve,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ve,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Ge,disablePictureInPicture:Ge,disableRemotePlayback:Ge,exportParts:$a,part:Tt,prefix:null,property:null,results:ve,security:null,unselectable:null},space:"html",transform:nw}),CA=tl({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:nr,accentHeight:ve,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ve,amplitude:ve,arabicForm:null,ascent:ve,attributeName:null,attributeType:null,azimuth:ve,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ve,by:null,calcMode:null,capHeight:ve,className:Tt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ve,diffuseConstant:ve,direction:null,display:null,dur:null,divisor:ve,dominantBaseline:null,download:Ge,dx:null,dy:null,edgeMode:null,editable:null,elevation:ve,enableBackground:null,end:null,event:null,exponent:ve,externalResourcesRequired:null,fill:null,fillOpacity:ve,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:$a,g2:$a,glyphName:$a,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ve,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ve,horizOriginX:ve,horizOriginY:ve,id:null,ideographic:ve,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ve,k:ve,k1:ve,k2:ve,k3:ve,k4:ve,kernelMatrix:nr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ve,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ve,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ve,overlineThickness:ve,paintOrder:null,panose1:null,path:null,pathLength:ve,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Tt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ve,pointsAtY:ve,pointsAtZ:ve,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:nr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:nr,rev:nr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:nr,requiredFeatures:nr,requiredFonts:nr,requiredFormats:nr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ve,specularExponent:ve,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ve,strikethroughThickness:ve,string:null,stroke:null,strokeDashArray:nr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ve,strokeOpacity:ve,strokeWidth:null,style:null,surfaceScale:ve,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:nr,tabIndex:ve,tableValues:null,target:null,targetX:ve,targetY:ve,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:nr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ve,underlineThickness:ve,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ve,values:null,vAlphabetic:ve,vMathematical:ve,vectorEffect:null,vHanging:ve,vIdeographic:ve,version:null,vertAdvY:ve,vertOriginX:ve,vertOriginY:ve,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ve,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:tw}),rw=tl({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),iw=tl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:nw}),aw=tl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),AA={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},MA=/[A-Z]/g,fy=/-[a-z]/g,OA=/^data[-\w.:]+$/i;function RA(e,t){const r=$m(t);let a=t,s=Vn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&OA.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(fy,jA);a="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!fy.test(o)){let c=o.replace(MA,DA);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}s=Ep}return new s(a,t)}function DA(e){return"-"+e.toLowerCase()}function jA(e){return e.charAt(1).toUpperCase()}const LA=J_([ew,TA,rw,iw,aw],"html"),Np=J_([ew,CA,rw,iw,aw],"svg");function zA(e){return e.join(" ").trim()}var js={},gh,hy;function IA(){if(hy)return gh;hy=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,f=`
+`,h="/",m="*",p="",y="comment",x="declaration";function _(S,w){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];w=w||{};var k=1,E=1;function M(A){var q=A.match(t);q&&(k+=q.length);var O=A.lastIndexOf(f);E=~O?A.length-O:E+A.length}function I(){var A={line:k,column:E};return function(q){return q.position=new R(A),Z(),q}}function R(A){this.start=A,this.end={line:k,column:E},this.source=w.source}R.prototype.content=S;function U(A){var q=new Error(w.source+":"+k+":"+E+": "+A);if(q.reason=A,q.filename=w.source,q.line=k,q.column=E,q.source=S,!w.silent)throw q}function B(A){var q=A.exec(S);if(q){var O=q[0];return M(O),S=S.slice(O.length),q}}function Z(){B(r)}function D(A){var q;for(A=A||[];q=L();)q!==!1&&A.push(q);return A}function L(){var A=I();if(!(h!=S.charAt(0)||m!=S.charAt(1))){for(var q=2;p!=S.charAt(q)&&(m!=S.charAt(q)||h!=S.charAt(q+1));)++q;if(q+=2,p===S.charAt(q-1))return U("End of comment missing");var O=S.slice(2,q-2);return E+=2,M(O),S=S.slice(q),E+=2,A({type:y,comment:O})}}function G(){var A=I(),q=B(a);if(q){if(L(),!B(s))return U("property missing ':'");var O=B(o),H=A({type:x,property:N(q[0].replace(e,p)),value:O?N(O[0].replace(e,p)):p});return B(c),H}}function V(){var A=[];D(A);for(var q;q=G();)q!==!1&&(A.push(q),D(A));return A}return Z(),V()}function N(S){return S?S.replace(d,p):p}return gh=_,gh}var my;function BA(){if(my)return js;my=1;var e=js&&js.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(js,"__esModule",{value:!0}),js.default=r;const t=e(IA());function r(a,s){let o=null;if(!a||typeof a!="string")return o;const c=(0,t.default)(a),d=typeof s=="function";return c.forEach(f=>{if(f.type!=="declaration")return;const{property:h,value:m}=f;d?s(h,m,f):m&&(o=o||{},o[h]=m)}),o}return js}var Zl={},py;function UA(){if(py)return Zl;py=1,Object.defineProperty(Zl,"__esModule",{value:!0}),Zl.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,o=function(h){return!h||r.test(h)||e.test(h)},c=function(h,m){return m.toUpperCase()},d=function(h,m){return"".concat(m,"-")},f=function(h,m){return m===void 0&&(m={}),o(h)?h:(h=h.toLowerCase(),m.reactCompat?h=h.replace(s,d):h=h.replace(a,d),h.replace(t,c))};return Zl.camelCase=f,Zl}var Ql,gy;function HA(){if(gy)return Ql;gy=1;var e=Ql&&Ql.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(BA()),r=UA();function a(s,o){var c={};return!s||typeof s!="string"||(0,t.default)(s,function(d,f){d&&f&&(c[(0,r.camelCase)(d,o)]=f)}),c}return a.default=a,Ql=a,Ql}var $A=HA();const qA=To($A),sw=lw("end"),Sp=lw("start");function lw(e){return t;function t(r){const a=r&&r.position&&r.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function PA(e){const t=Sp(e),r=sw(e);if(t&&r)return{start:t,end:r}}function lo(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?by(e.position):"start"in e||"end"in e?by(e):"line"in e||"column"in e?Fm(e):""}function Fm(e){return xy(e&&e.line)+":"+xy(e&&e.column)}function by(e){return Fm(e&&e.start)+"-"+Fm(e&&e.end)}function xy(e){return e&&typeof e=="number"?e:1}class Cn extends Error{constructor(t,r,a){super(),typeof r=="string"&&(a=r,r=void 0);let s="",o={},c=!1;if(r&&("line"in r&&"column"in r?o={place:r}:"start"in r&&"end"in r?o={place:r}:"type"in r?o={ancestors:[r],place:r.position}:o={...r}),typeof t=="string"?s=t:!o.cause&&t&&(c=!0,s=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof a=="string"){const f=a.indexOf(":");f===-1?o.ruleId=a:(o.source=a.slice(0,f),o.ruleId=a.slice(f+1))}if(!o.place&&o.ancestors&&o.ancestors){const f=o.ancestors[o.ancestors.length-1];f&&(o.place=f.position)}const d=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=d?d.line:void 0,this.name=lo(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=c&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Cn.prototype.file="";Cn.prototype.name="";Cn.prototype.reason="";Cn.prototype.message="";Cn.prototype.stack="";Cn.prototype.column=void 0;Cn.prototype.line=void 0;Cn.prototype.ancestors=void 0;Cn.prototype.cause=void 0;Cn.prototype.fatal=void 0;Cn.prototype.place=void 0;Cn.prototype.ruleId=void 0;Cn.prototype.source=void 0;const kp={}.hasOwnProperty,FA=new Map,GA=/[A-Z]/g,VA=new Set(["table","tbody","thead","tfoot","tr"]),YA=new Set(["td","th"]),ow="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function XA(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let a;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=nM(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=tM(r,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Np:LA,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=cw(s,e,void 0);return o&&typeof o!="string"?o:s.create(e,s.Fragment,{children:o||void 0},void 0)}function cw(e,t,r){if(t.type==="element")return KA(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return ZA(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return WA(e,t,r);if(t.type==="mdxjsEsm")return QA(e,t);if(t.type==="root")return JA(e,t,r);if(t.type==="text")return eM(e,t)}function KA(e,t,r){const a=e.schema;let s=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(s=Np,e.schema=s),e.ancestors.push(t);const o=dw(e,t.tagName,!1),c=rM(e,t);let d=Cp(e,t);return VA.has(t.tagName)&&(d=d.filter(function(f){return typeof f=="string"?!SA(f):!0})),uw(e,c,o,t),Tp(c,d),e.ancestors.pop(),e.schema=a,e.create(t,o,c,r)}function ZA(e,t){if(t.data&&t.data.estree&&e.evaluater){const a=t.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}po(e,t.position)}function QA(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);po(e,t.position)}function WA(e,t,r){const a=e.schema;let s=a;t.name==="svg"&&a.space==="html"&&(s=Np,e.schema=s),e.ancestors.push(t);const o=t.name===null?e.Fragment:dw(e,t.name,!0),c=iM(e,t),d=Cp(e,t);return uw(e,c,o,t),Tp(c,d),e.ancestors.pop(),e.schema=a,e.create(t,o,c,r)}function JA(e,t,r){const a={};return Tp(a,Cp(e,t)),e.create(t,e.Fragment,a,r)}function eM(e,t){return t.value}function uw(e,t,r,a){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=a)}function Tp(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function tM(e,t,r){return a;function a(s,o,c,d){const h=Array.isArray(c.children)?r:t;return d?h(o,c,d):h(o,c)}}function nM(e,t){return r;function r(a,s,o,c){const d=Array.isArray(o.children),f=Sp(a);return t(s,o,c,d,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function rM(e,t){const r={};let a,s;for(s in t.properties)if(s!=="children"&&kp.call(t.properties,s)){const o=aM(e,s,t.properties[s]);if(o){const[c,d]=o;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&YA.has(t.tagName)?a=d:r[c]=d}}if(a){const o=r.style||(r.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return r}function iM(e,t){const r={};for(const a of t.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const o=a.data.estree.body[0];o.type;const c=o.expression;c.type;const d=c.properties[0];d.type,Object.assign(r,e.evaluater.evaluateExpression(d.argument))}else po(e,t.position);else{const s=a.name;let o;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const d=a.value.data.estree.body[0];d.type,o=e.evaluater.evaluateExpression(d.expression)}else po(e,t.position);else o=a.value===null?!0:a.value;r[s]=o}return r}function Cp(e,t){const r=[];let a=-1;const s=e.passKeys?new Map:FA;for(;++a<t.children.length;){const o=t.children[a];let c;if(e.passKeys){const f=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(f){const h=s.get(f)||0;c=f+"-"+h,s.set(f,h+1)}}const d=cw(e,o,c);d!==void 0&&r.push(d)}return r}function aM(e,t,r){const a=RA(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=a.commaSeparated?vA(r):zA(r)),a.property==="style"){let s=typeof r=="object"?r:sM(e,String(r));return e.stylePropertyNameCase==="css"&&(s=lM(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&a.space?AA[a.property]||a.property:a.attribute,r]}}function sM(e,t){try{return qA(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const a=r,s=new Cn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=ow+"#cannot-parse-style-attribute",s}}function dw(e,t,r){let a;if(!r)a={type:"Literal",value:t};else if(t.includes(".")){const s=t.split(".");let o=-1,c;for(;++o<s.length;){const d=cy(s[o])?{type:"Identifier",name:s[o]}:{type:"Literal",value:s[o]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(o&&d.type==="Literal"),optional:!1}:d}a=c}else a=cy(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(a.type==="Literal"){const s=a.value;return kp.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(a);po(e)}function po(e,t){const r=new Cn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=ow+"#cannot-handle-mdx-estrees-without-createevaluater",r}function lM(e){const t={};let r;for(r in e)kp.call(e,r)&&(t[oM(r)]=e[r]);return t}function oM(e){let t=e.replace(GA,cM);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function cM(e){return"-"+e.toLowerCase()}const bh={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},uM={};function Ap(e,t){const r=uM,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return fw(e,a,s)}function fw(e,t,r){if(dM(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return yy(e.children,t,r)}return Array.isArray(e)?yy(e,t,r):""}function yy(e,t,r){const a=[];let s=-1;for(;++s<e.length;)a[s]=fw(e[s],t,r);return a.join("")}function dM(e){return!!(e&&typeof e=="object")}const vy=document.createElement("i");function Mp(e){const t="&"+e+";";vy.innerHTML=t;const r=vy.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function ir(e,t,r,a){const s=e.length;let o=0,c;if(t<0?t=-t>s?0:s+t:t=t>s?s:t,r=r>0?r:0,a.length<1e4)c=Array.from(a),c.unshift(t,r),e.splice(...c);else for(r&&e.splice(t,r);o<a.length;)c=a.slice(o,o+1e4),c.unshift(t,0),e.splice(...c),o+=1e4,t+=1e4}function br(e,t){return e.length>0?(ir(e,e.length,0,t),e):t}const _y={}.hasOwnProperty;function hw(e){const t={};let r=-1;for(;++r<e.length;)fM(t,e[r]);return t}function fM(e,t){let r;for(r in t){const s=(_y.call(e,r)?e[r]:void 0)||(e[r]={}),o=t[r];let c;if(o)for(c in o){_y.call(s,c)||(s[c]=[]);const d=o[c];hM(s[c],Array.isArray(d)?d:d?[d]:[])}}}function hM(e,t){let r=-1;const a=[];for(;++r<t.length;)(t[r].add==="after"?e:a).push(t[r]);ir(e,0,0,a)}function mw(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Dr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const jn=ma(/[A-Za-z]/),Tn=ma(/[\dA-Za-z]/),mM=ma(/[#-'*+\--9=?A-Z^-~]/);function _u(e){return e!==null&&(e<32||e===127)}const Gm=ma(/\d/),pM=ma(/[\dA-Fa-f]/),gM=ma(/[!-/:-@[-`{-~]/);function Be(e){return e!==null&&e<-2}function Ct(e){return e!==null&&(e<0||e===32)}function tt(e){return e===-2||e===-1||e===32}const qu=ma(new RegExp("\\p{P}|\\p{S}","u")),Fa=ma(/\s/);function ma(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function nl(e){const t=[];let r=-1,a=0,s=0;for(;++r<e.length;){const o=e.charCodeAt(r);let c="";if(o===37&&Tn(e.charCodeAt(r+1))&&Tn(e.charCodeAt(r+2)))s=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(c=String.fromCharCode(o));else if(o>55295&&o<57344){const d=e.charCodeAt(r+1);o<56320&&d>56319&&d<57344?(c=String.fromCharCode(o,d),s=1):c="�"}else c=String.fromCharCode(o);c&&(t.push(e.slice(a,r),encodeURIComponent(c)),a=r+s+1,c=""),s&&(r+=s,s=0)}return t.join("")+e.slice(a)}function ot(e,t,r,a){const s=a?a-1:Number.POSITIVE_INFINITY;let o=0;return c;function c(f){return tt(f)?(e.enter(r),d(f)):t(f)}function d(f){return tt(f)&&o++<s?(e.consume(f),d):(e.exit(r),t(f))}}const bM={tokenize:xM};function xM(e){const t=e.attempt(this.parser.constructs.contentInitial,a,s);let r;return t;function a(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),ot(e,t,"linePrefix")}function s(d){return e.enter("paragraph"),o(d)}function o(d){const f=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=f),r=f,c(d)}function c(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return Be(d)?(e.consume(d),e.exit("chunkText"),o):(e.consume(d),c)}}const yM={tokenize:vM},wy={tokenize:_M};function vM(e){const t=this,r=[];let a=0,s,o,c;return d;function d(E){if(a<r.length){const M=r[a];return t.containerState=M[1],e.attempt(M[0].continuation,f,h)(E)}return h(E)}function f(E){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&k();const M=t.events.length;let I=M,R;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){R=t.events[I][1].end;break}w(a);let U=M;for(;U<t.events.length;)t.events[U][1].end={...R},U++;return ir(t.events,I+1,0,t.events.slice(M)),t.events.length=U,h(E)}return d(E)}function h(E){if(a===r.length){if(!s)return y(E);if(s.currentConstruct&&s.currentConstruct.concrete)return _(E);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(wy,m,p)(E)}function m(E){return s&&k(),w(a),y(E)}function p(E){return t.parser.lazy[t.now().line]=a!==r.length,c=t.now().offset,_(E)}function y(E){return t.containerState={},e.attempt(wy,x,_)(E)}function x(E){return a++,r.push([t.currentConstruct,t.containerState]),y(E)}function _(E){if(E===null){s&&k(),w(0),e.consume(E);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:o}),N(E)}function N(E){if(E===null){S(e.exit("chunkFlow"),!0),w(0),e.consume(E);return}return Be(E)?(e.consume(E),S(e.exit("chunkFlow")),a=0,t.interrupt=void 0,d):(e.consume(E),N)}function S(E,M){const I=t.sliceStream(E);if(M&&I.push(null),E.previous=o,o&&(o.next=E),o=E,s.defineSkip(E.start),s.write(I),t.parser.lazy[E.start.line]){let R=s.events.length;for(;R--;)if(s.events[R][1].start.offset<c&&(!s.events[R][1].end||s.events[R][1].end.offset>c))return;const U=t.events.length;let B=U,Z,D;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){if(Z){D=t.events[B][1].end;break}Z=!0}for(w(a),R=U;R<t.events.length;)t.events[R][1].end={...D},R++;ir(t.events,B+1,0,t.events.slice(U)),t.events.length=R}}function w(E){let M=r.length;for(;M-- >E;){const I=r[M];t.containerState=I[1],I[0].exit.call(t,e)}r.length=E}function k(){s.write([null]),o=void 0,s=void 0,t.containerState._closeFlow=void 0}}function _M(e,t,r){return ot(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ys(e){if(e===null||Ct(e)||Fa(e))return 1;if(qu(e))return 2}function Pu(e,t,r){const a=[];let s=-1;for(;++s<e.length;){const o=e[s].resolveAll;o&&!a.includes(o)&&(t=o(t,r),a.push(o))}return t}const Vm={name:"attention",resolveAll:wM,tokenize:EM};function wM(e,t){let r=-1,a,s,o,c,d,f,h,m;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(a=r;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&t.sliceSerialize(e[a][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[a][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;f=e[a][1].end.offset-e[a][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const p={...e[a][1].end},y={...e[r][1].start};Ey(p,-f),Ey(y,f),c={type:f>1?"strongSequence":"emphasisSequence",start:p,end:{...e[a][1].end}},d={type:f>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:y},o={type:f>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[r][1].start}},s={type:f>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},e[a][1].end={...c.start},e[r][1].start={...d.end},h=[],e[a][1].end.offset-e[a][1].start.offset&&(h=br(h,[["enter",e[a][1],t],["exit",e[a][1],t]])),h=br(h,[["enter",s,t],["enter",c,t],["exit",c,t],["enter",o,t]]),h=br(h,Pu(t.parser.constructs.insideSpan.null,e.slice(a+1,r),t)),h=br(h,[["exit",o,t],["enter",d,t],["exit",d,t],["exit",s,t]]),e[r][1].end.offset-e[r][1].start.offset?(m=2,h=br(h,[["enter",e[r][1],t],["exit",e[r][1],t]])):m=0,ir(e,a-1,r-a+3,h),r=a+h.length-m-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function EM(e,t){const r=this.parser.constructs.attentionMarkers.null,a=this.previous,s=Ys(a);let o;return c;function c(f){return o=f,e.enter("attentionSequence"),d(f)}function d(f){if(f===o)return e.consume(f),d;const h=e.exit("attentionSequence"),m=Ys(f),p=!m||m===2&&s||r.includes(f),y=!s||s===2&&m||r.includes(a);return h._open=!!(o===42?p:p&&(s||!y)),h._close=!!(o===42?y:y&&(m||!p)),t(f)}}function Ey(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const NM={name:"autolink",tokenize:SM};function SM(e,t,r){let a=0;return s;function s(x){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(x){return jn(x)?(e.consume(x),c):x===64?r(x):h(x)}function c(x){return x===43||x===45||x===46||Tn(x)?(a=1,d(x)):h(x)}function d(x){return x===58?(e.consume(x),a=0,f):(x===43||x===45||x===46||Tn(x))&&a++<32?(e.consume(x),d):(a=0,h(x))}function f(x){return x===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),t):x===null||x===32||x===60||_u(x)?r(x):(e.consume(x),f)}function h(x){return x===64?(e.consume(x),m):mM(x)?(e.consume(x),h):r(x)}function m(x){return Tn(x)?p(x):r(x)}function p(x){return x===46?(e.consume(x),a=0,m):x===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),t):y(x)}function y(x){if((x===45||Tn(x))&&a++<63){const _=x===45?y:p;return e.consume(x),_}return r(x)}}const Oo={partial:!0,tokenize:kM};function kM(e,t,r){return a;function a(o){return tt(o)?ot(e,s,"linePrefix")(o):s(o)}function s(o){return o===null||Be(o)?t(o):r(o)}}const pw={continuation:{tokenize:CM},exit:AM,name:"blockQuote",tokenize:TM};function TM(e,t,r){const a=this;return s;function s(c){if(c===62){const d=a.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),o}return r(c)}function o(c){return tt(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(c))}}function CM(e,t,r){const a=this;return s;function s(c){return tt(c)?ot(e,o,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):o(c)}function o(c){return e.attempt(pw,t,r)(c)}}function AM(e){e.exit("blockQuote")}const gw={name:"characterEscape",tokenize:MM};function MM(e,t,r){return a;function a(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),s}function s(o){return gM(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(o)}}const bw={name:"characterReference",tokenize:OM};function OM(e,t,r){const a=this;let s=0,o,c;return d;function d(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),f}function f(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),o=31,c=Tn,m(p))}function h(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,c=pM,m):(e.enter("characterReferenceValue"),o=7,c=Gm,m(p))}function m(p){if(p===59&&s){const y=e.exit("characterReferenceValue");return c===Tn&&!Mp(a.sliceSerialize(y))?r(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return c(p)&&s++<o?(e.consume(p),m):r(p)}}const Ny={partial:!0,tokenize:DM},Sy={concrete:!0,name:"codeFenced",tokenize:RM};function RM(e,t,r){const a=this,s={partial:!0,tokenize:I};let o=0,c=0,d;return f;function f(R){return h(R)}function h(R){const U=a.events[a.events.length-1];return o=U&&U[1].type==="linePrefix"?U[2].sliceSerialize(U[1],!0).length:0,d=R,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(R)}function m(R){return R===d?(c++,e.consume(R),m):c<3?r(R):(e.exit("codeFencedFenceSequence"),tt(R)?ot(e,p,"whitespace")(R):p(R))}function p(R){return R===null||Be(R)?(e.exit("codeFencedFence"),a.interrupt?t(R):e.check(Ny,N,M)(R)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),y(R))}function y(R){return R===null||Be(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(R)):tt(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ot(e,x,"whitespace")(R)):R===96&&R===d?r(R):(e.consume(R),y)}function x(R){return R===null||Be(R)?p(R):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),_(R))}function _(R){return R===null||Be(R)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(R)):R===96&&R===d?r(R):(e.consume(R),_)}function N(R){return e.attempt(s,M,S)(R)}function S(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),w}function w(R){return o>0&&tt(R)?ot(e,k,"linePrefix",o+1)(R):k(R)}function k(R){return R===null||Be(R)?e.check(Ny,N,M)(R):(e.enter("codeFlowValue"),E(R))}function E(R){return R===null||Be(R)?(e.exit("codeFlowValue"),k(R)):(e.consume(R),E)}function M(R){return e.exit("codeFenced"),t(R)}function I(R,U,B){let Z=0;return D;function D(q){return R.enter("lineEnding"),R.consume(q),R.exit("lineEnding"),L}function L(q){return R.enter("codeFencedFence"),tt(q)?ot(R,G,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):G(q)}function G(q){return q===d?(R.enter("codeFencedFenceSequence"),V(q)):B(q)}function V(q){return q===d?(Z++,R.consume(q),V):Z>=c?(R.exit("codeFencedFenceSequence"),tt(q)?ot(R,A,"whitespace")(q):A(q)):B(q)}function A(q){return q===null||Be(q)?(R.exit("codeFencedFence"),U(q)):B(q)}}}function DM(e,t,r){const a=this;return s;function s(c){return c===null?r(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o)}function o(c){return a.parser.lazy[a.now().line]?r(c):t(c)}}const xh={name:"codeIndented",tokenize:LM},jM={partial:!0,tokenize:zM};function LM(e,t,r){const a=this;return s;function s(h){return e.enter("codeIndented"),ot(e,o,"linePrefix",5)(h)}function o(h){const m=a.events[a.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?c(h):r(h)}function c(h){return h===null?f(h):Be(h)?e.attempt(jM,c,f)(h):(e.enter("codeFlowValue"),d(h))}function d(h){return h===null||Be(h)?(e.exit("codeFlowValue"),c(h)):(e.consume(h),d)}function f(h){return e.exit("codeIndented"),t(h)}}function zM(e,t,r){const a=this;return s;function s(c){return a.parser.lazy[a.now().line]?r(c):Be(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):ot(e,o,"linePrefix",5)(c)}function o(c){const d=a.events[a.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):Be(c)?s(c):r(c)}}const IM={name:"codeText",previous:UM,resolve:BM,tokenize:HM};function BM(e){let t=e.length-4,r=3,a,s;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=r;++a<t;)if(e[a][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(a=r-1,t++;++a<=t;)s===void 0?a!==t&&e[a][1].type!=="lineEnding"&&(s=a):(a===t||e[a][1].type==="lineEnding")&&(e[s][1].type="codeTextData",a!==s+2&&(e[s][1].end=e[a-1][1].end,e.splice(s+2,a-s-2),t-=a-s-2,a=s+2),s=void 0);return e}function UM(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function HM(e,t,r){let a=0,s,o;return c;function c(p){return e.enter("codeText"),e.enter("codeTextSequence"),d(p)}function d(p){return p===96?(e.consume(p),a++,d):(e.exit("codeTextSequence"),f(p))}function f(p){return p===null?r(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),f):p===96?(o=e.enter("codeTextSequence"),s=0,m(p)):Be(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("codeTextData"),h(p))}function h(p){return p===null||p===32||p===96||Be(p)?(e.exit("codeTextData"),f(p)):(e.consume(p),h)}function m(p){return p===96?(e.consume(p),s++,m):s===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(o.type="codeTextData",h(p))}}class $M{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const a=r??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(t,a):t>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(t,r,a){const s=r||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return a&&Wl(this.left,a),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Wl(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Wl(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);Wl(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Wl(this.left,r.reverse())}}}function Wl(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function xw(e){const t={};let r=-1,a,s,o,c,d,f,h;const m=new $M(e);for(;++r<m.length;){for(;r in t;)r=t[r];if(a=m.get(r),r&&a[1].type==="chunkFlow"&&m.get(r-1)[1].type==="listItemPrefix"&&(f=a[1]._tokenizer.events,o=0,o<f.length&&f[o][1].type==="lineEndingBlank"&&(o+=2),o<f.length&&f[o][1].type==="content"))for(;++o<f.length&&f[o][1].type!=="content";)f[o][1].type==="chunkText"&&(f[o][1]._isInFirstContentOfListItem=!0,o++);if(a[0]==="enter")a[1].contentType&&(Object.assign(t,qM(m,r)),r=t[r],h=!0);else if(a[1]._container){for(o=r,s=void 0;o--;)if(c=m.get(o),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(m.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=o);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(a[1].end={...m.get(s)[1].start},d=m.slice(s,r),d.unshift(a),m.splice(s,r-s+1,d))}}return ir(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!h}function qM(e,t){const r=e.get(t)[1],a=e.get(t)[2];let s=t-1;const o=[];let c=r._tokenizer;c||(c=a.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,f=[],h={};let m,p,y=-1,x=r,_=0,N=0;const S=[N];for(;x;){for(;e.get(++s)[1]!==x;);o.push(s),x._tokenizer||(m=a.sliceStream(x),x.next||m.push(null),p&&c.defineSkip(x.start),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(m),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),p=x,x=x.next}for(x=r;++y<d.length;)d[y][0]==="exit"&&d[y-1][0]==="enter"&&d[y][1].type===d[y-1][1].type&&d[y][1].start.line!==d[y][1].end.line&&(N=y+1,S.push(N),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(c.events=[],x?(x._tokenizer=void 0,x.previous=void 0):S.pop(),y=S.length;y--;){const w=d.slice(S[y],S[y+1]),k=o.pop();f.push([k,k+w.length-1]),e.splice(k,2,w)}for(f.reverse(),y=-1;++y<f.length;)h[_+f[y][0]]=_+f[y][1],_+=f[y][1]-f[y][0]-1;return h}const PM={resolve:GM,tokenize:VM},FM={partial:!0,tokenize:YM};function GM(e){return xw(e),e}function VM(e,t){let r;return a;function a(d){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),s(d)}function s(d){return d===null?o(d):Be(d)?e.check(FM,c,o)(d):(e.consume(d),s)}function o(d){return e.exit("chunkContent"),e.exit("content"),t(d)}function c(d){return e.consume(d),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function YM(e,t,r){const a=this;return s;function s(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),ot(e,o,"linePrefix")}function o(c){if(c===null||Be(c))return r(c);const d=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):e.interrupt(a.parser.constructs.flow,r,t)(c)}}function yw(e,t,r,a,s,o,c,d,f){const h=f||Number.POSITIVE_INFINITY;let m=0;return p;function p(w){return w===60?(e.enter(a),e.enter(s),e.enter(o),e.consume(w),e.exit(o),y):w===null||w===32||w===41||_u(w)?r(w):(e.enter(a),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),N(w))}function y(w){return w===62?(e.enter(o),e.consume(w),e.exit(o),e.exit(s),e.exit(a),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),x(w))}function x(w){return w===62?(e.exit("chunkString"),e.exit(d),y(w)):w===null||w===60||Be(w)?r(w):(e.consume(w),w===92?_:x)}function _(w){return w===60||w===62||w===92?(e.consume(w),x):x(w)}function N(w){return!m&&(w===null||w===41||Ct(w))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(a),t(w)):m<h&&w===40?(e.consume(w),m++,N):w===41?(e.consume(w),m--,N):w===null||w===32||w===40||_u(w)?r(w):(e.consume(w),w===92?S:N)}function S(w){return w===40||w===41||w===92?(e.consume(w),N):N(w)}}function vw(e,t,r,a,s,o){const c=this;let d=0,f;return h;function h(x){return e.enter(a),e.enter(s),e.consume(x),e.exit(s),e.enter(o),m}function m(x){return d>999||x===null||x===91||x===93&&!f||x===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?r(x):x===93?(e.exit(o),e.enter(s),e.consume(x),e.exit(s),e.exit(a),t):Be(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===null||x===91||x===93||Be(x)||d++>999?(e.exit("chunkString"),m(x)):(e.consume(x),f||(f=!tt(x)),x===92?y:p)}function y(x){return x===91||x===92||x===93?(e.consume(x),d++,p):p(x)}}function _w(e,t,r,a,s,o){let c;return d;function d(y){return y===34||y===39||y===40?(e.enter(a),e.enter(s),e.consume(y),e.exit(s),c=y===40?41:y,f):r(y)}function f(y){return y===c?(e.enter(s),e.consume(y),e.exit(s),e.exit(a),t):(e.enter(o),h(y))}function h(y){return y===c?(e.exit(o),f(c)):y===null?r(y):Be(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),ot(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===c||y===null||Be(y)?(e.exit("chunkString"),h(y)):(e.consume(y),y===92?p:m)}function p(y){return y===c||y===92?(e.consume(y),m):m(y)}}function oo(e,t){let r;return a;function a(s){return Be(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r=!0,a):tt(s)?ot(e,a,r?"linePrefix":"lineSuffix")(s):t(s)}}const XM={name:"definition",tokenize:ZM},KM={partial:!0,tokenize:QM};function ZM(e,t,r){const a=this;let s;return o;function o(x){return e.enter("definition"),c(x)}function c(x){return vw.call(a,e,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function d(x){return s=Dr(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),f):r(x)}function f(x){return Ct(x)?oo(e,h)(x):h(x)}function h(x){return yw(e,m,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function m(x){return e.attempt(KM,p,p)(x)}function p(x){return tt(x)?ot(e,y,"whitespace")(x):y(x)}function y(x){return x===null||Be(x)?(e.exit("definition"),a.parser.defined.push(s),t(x)):r(x)}}function QM(e,t,r){return a;function a(d){return Ct(d)?oo(e,s)(d):r(d)}function s(d){return _w(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function o(d){return tt(d)?ot(e,c,"whitespace")(d):c(d)}function c(d){return d===null||Be(d)?t(d):r(d)}}const WM={name:"hardBreakEscape",tokenize:JM};function JM(e,t,r){return a;function a(o){return e.enter("hardBreakEscape"),e.consume(o),s}function s(o){return Be(o)?(e.exit("hardBreakEscape"),t(o)):r(o)}}const e5={name:"headingAtx",resolve:t5,tokenize:n5};function t5(e,t){let r=e.length-2,a=3,s,o;return e[a][1].type==="whitespace"&&(a+=2),r-2>a&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(a===r-1||r-4>a&&e[r-2][1].type==="whitespace")&&(r-=a+1===r?2:4),r>a&&(s={type:"atxHeadingText",start:e[a][1].start,end:e[r][1].end},o={type:"chunkText",start:e[a][1].start,end:e[r][1].end,contentType:"text"},ir(e,a,r-a+1,[["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t]])),e}function n5(e,t,r){let a=0;return s;function s(m){return e.enter("atxHeading"),o(m)}function o(m){return e.enter("atxHeadingSequence"),c(m)}function c(m){return m===35&&a++<6?(e.consume(m),c):m===null||Ct(m)?(e.exit("atxHeadingSequence"),d(m)):r(m)}function d(m){return m===35?(e.enter("atxHeadingSequence"),f(m)):m===null||Be(m)?(e.exit("atxHeading"),t(m)):tt(m)?ot(e,d,"whitespace")(m):(e.enter("atxHeadingText"),h(m))}function f(m){return m===35?(e.consume(m),f):(e.exit("atxHeadingSequence"),d(m))}function h(m){return m===null||m===35||Ct(m)?(e.exit("atxHeadingText"),d(m)):(e.consume(m),h)}}const r5=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ky=["pre","script","style","textarea"],i5={concrete:!0,name:"htmlFlow",resolveTo:l5,tokenize:o5},a5={partial:!0,tokenize:u5},s5={partial:!0,tokenize:c5};function l5(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function o5(e,t,r){const a=this;let s,o,c,d,f;return h;function h(z){return m(z)}function m(z){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(z),p}function p(z){return z===33?(e.consume(z),y):z===47?(e.consume(z),o=!0,N):z===63?(e.consume(z),s=3,a.interrupt?t:T):jn(z)?(e.consume(z),c=String.fromCharCode(z),S):r(z)}function y(z){return z===45?(e.consume(z),s=2,x):z===91?(e.consume(z),s=5,d=0,_):jn(z)?(e.consume(z),s=4,a.interrupt?t:T):r(z)}function x(z){return z===45?(e.consume(z),a.interrupt?t:T):r(z)}function _(z){const F="CDATA[";return z===F.charCodeAt(d++)?(e.consume(z),d===F.length?a.interrupt?t:G:_):r(z)}function N(z){return jn(z)?(e.consume(z),c=String.fromCharCode(z),S):r(z)}function S(z){if(z===null||z===47||z===62||Ct(z)){const F=z===47,$=c.toLowerCase();return!F&&!o&&ky.includes($)?(s=1,a.interrupt?t(z):G(z)):r5.includes(c.toLowerCase())?(s=6,F?(e.consume(z),w):a.interrupt?t(z):G(z)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(z):o?k(z):E(z))}return z===45||Tn(z)?(e.consume(z),c+=String.fromCharCode(z),S):r(z)}function w(z){return z===62?(e.consume(z),a.interrupt?t:G):r(z)}function k(z){return tt(z)?(e.consume(z),k):D(z)}function E(z){return z===47?(e.consume(z),D):z===58||z===95||jn(z)?(e.consume(z),M):tt(z)?(e.consume(z),E):D(z)}function M(z){return z===45||z===46||z===58||z===95||Tn(z)?(e.consume(z),M):I(z)}function I(z){return z===61?(e.consume(z),R):tt(z)?(e.consume(z),I):E(z)}function R(z){return z===null||z===60||z===61||z===62||z===96?r(z):z===34||z===39?(e.consume(z),f=z,U):tt(z)?(e.consume(z),R):B(z)}function U(z){return z===f?(e.consume(z),f=null,Z):z===null||Be(z)?r(z):(e.consume(z),U)}function B(z){return z===null||z===34||z===39||z===47||z===60||z===61||z===62||z===96||Ct(z)?I(z):(e.consume(z),B)}function Z(z){return z===47||z===62||tt(z)?E(z):r(z)}function D(z){return z===62?(e.consume(z),L):r(z)}function L(z){return z===null||Be(z)?G(z):tt(z)?(e.consume(z),L):r(z)}function G(z){return z===45&&s===2?(e.consume(z),O):z===60&&s===1?(e.consume(z),H):z===62&&s===4?(e.consume(z),j):z===63&&s===3?(e.consume(z),T):z===93&&s===5?(e.consume(z),K):Be(z)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(a5,Y,V)(z)):z===null||Be(z)?(e.exit("htmlFlowData"),V(z)):(e.consume(z),G)}function V(z){return e.check(s5,A,Y)(z)}function A(z){return e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),q}function q(z){return z===null||Be(z)?V(z):(e.enter("htmlFlowData"),G(z))}function O(z){return z===45?(e.consume(z),T):G(z)}function H(z){return z===47?(e.consume(z),c="",X):G(z)}function X(z){if(z===62){const F=c.toLowerCase();return ky.includes(F)?(e.consume(z),j):G(z)}return jn(z)&&c.length<8?(e.consume(z),c+=String.fromCharCode(z),X):G(z)}function K(z){return z===93?(e.consume(z),T):G(z)}function T(z){return z===62?(e.consume(z),j):z===45&&s===2?(e.consume(z),T):G(z)}function j(z){return z===null||Be(z)?(e.exit("htmlFlowData"),Y(z)):(e.consume(z),j)}function Y(z){return e.exit("htmlFlow"),t(z)}}function c5(e,t,r){const a=this;return s;function s(c){return Be(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):r(c)}function o(c){return a.parser.lazy[a.now().line]?r(c):t(c)}}function u5(e,t,r){return a;function a(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(Oo,t,r)}}const d5={name:"htmlText",tokenize:f5};function f5(e,t,r){const a=this;let s,o,c;return d;function d(T){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(T),f}function f(T){return T===33?(e.consume(T),h):T===47?(e.consume(T),I):T===63?(e.consume(T),E):jn(T)?(e.consume(T),B):r(T)}function h(T){return T===45?(e.consume(T),m):T===91?(e.consume(T),o=0,_):jn(T)?(e.consume(T),k):r(T)}function m(T){return T===45?(e.consume(T),x):r(T)}function p(T){return T===null?r(T):T===45?(e.consume(T),y):Be(T)?(c=p,H(T)):(e.consume(T),p)}function y(T){return T===45?(e.consume(T),x):p(T)}function x(T){return T===62?O(T):T===45?y(T):p(T)}function _(T){const j="CDATA[";return T===j.charCodeAt(o++)?(e.consume(T),o===j.length?N:_):r(T)}function N(T){return T===null?r(T):T===93?(e.consume(T),S):Be(T)?(c=N,H(T)):(e.consume(T),N)}function S(T){return T===93?(e.consume(T),w):N(T)}function w(T){return T===62?O(T):T===93?(e.consume(T),w):N(T)}function k(T){return T===null||T===62?O(T):Be(T)?(c=k,H(T)):(e.consume(T),k)}function E(T){return T===null?r(T):T===63?(e.consume(T),M):Be(T)?(c=E,H(T)):(e.consume(T),E)}function M(T){return T===62?O(T):E(T)}function I(T){return jn(T)?(e.consume(T),R):r(T)}function R(T){return T===45||Tn(T)?(e.consume(T),R):U(T)}function U(T){return Be(T)?(c=U,H(T)):tt(T)?(e.consume(T),U):O(T)}function B(T){return T===45||Tn(T)?(e.consume(T),B):T===47||T===62||Ct(T)?Z(T):r(T)}function Z(T){return T===47?(e.consume(T),O):T===58||T===95||jn(T)?(e.consume(T),D):Be(T)?(c=Z,H(T)):tt(T)?(e.consume(T),Z):O(T)}function D(T){return T===45||T===46||T===58||T===95||Tn(T)?(e.consume(T),D):L(T)}function L(T){return T===61?(e.consume(T),G):Be(T)?(c=L,H(T)):tt(T)?(e.consume(T),L):Z(T)}function G(T){return T===null||T===60||T===61||T===62||T===96?r(T):T===34||T===39?(e.consume(T),s=T,V):Be(T)?(c=G,H(T)):tt(T)?(e.consume(T),G):(e.consume(T),A)}function V(T){return T===s?(e.consume(T),s=void 0,q):T===null?r(T):Be(T)?(c=V,H(T)):(e.consume(T),V)}function A(T){return T===null||T===34||T===39||T===60||T===61||T===96?r(T):T===47||T===62||Ct(T)?Z(T):(e.consume(T),A)}function q(T){return T===47||T===62||Ct(T)?Z(T):r(T)}function O(T){return T===62?(e.consume(T),e.exit("htmlTextData"),e.exit("htmlText"),t):r(T)}function H(T){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),X}function X(T){return tt(T)?ot(e,K,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):K(T)}function K(T){return e.enter("htmlTextData"),c(T)}}const Op={name:"labelEnd",resolveAll:g5,resolveTo:b5,tokenize:x5},h5={tokenize:y5},m5={tokenize:v5},p5={tokenize:_5};function g5(e){let t=-1;const r=[];for(;++t<e.length;){const a=e[t][1];if(r.push(e[t]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const s=a.type==="labelImage"?4:2;a.type="data",t+=s}}return e.length!==r.length&&ir(e,0,e.length,r),e}function b5(e,t){let r=e.length,a=0,s,o,c,d;for(;r--;)if(s=e[r][1],o){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(e[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(o=r,s.type!=="labelLink")){a=2;break}}else s.type==="labelEnd"&&(c=r);const f={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[o][1].start},end:{...e[c][1].end}},m={type:"labelText",start:{...e[o+a+2][1].end},end:{...e[c-2][1].start}};return d=[["enter",f,t],["enter",h,t]],d=br(d,e.slice(o+1,o+a+3)),d=br(d,[["enter",m,t]]),d=br(d,Pu(t.parser.constructs.insideSpan.null,e.slice(o+a+4,c-3),t)),d=br(d,[["exit",m,t],e[c-2],e[c-1],["exit",h,t]]),d=br(d,e.slice(c+1)),d=br(d,[["exit",f,t]]),ir(e,o,e.length,d),e}function x5(e,t,r){const a=this;let s=a.events.length,o,c;for(;s--;)if((a.events[s][1].type==="labelImage"||a.events[s][1].type==="labelLink")&&!a.events[s][1]._balanced){o=a.events[s][1];break}return d;function d(y){return o?o._inactive?p(y):(c=a.parser.defined.includes(Dr(a.sliceSerialize({start:o.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(y),e.exit("labelMarker"),e.exit("labelEnd"),f):r(y)}function f(y){return y===40?e.attempt(h5,m,c?m:p)(y):y===91?e.attempt(m5,m,c?h:p)(y):c?m(y):p(y)}function h(y){return e.attempt(p5,m,p)(y)}function m(y){return t(y)}function p(y){return o._balanced=!0,r(y)}}function y5(e,t,r){return a;function a(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),s}function s(p){return Ct(p)?oo(e,o)(p):o(p)}function o(p){return p===41?m(p):yw(e,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function c(p){return Ct(p)?oo(e,f)(p):m(p)}function d(p){return r(p)}function f(p){return p===34||p===39||p===40?_w(e,h,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):m(p)}function h(p){return Ct(p)?oo(e,m)(p):m(p)}function m(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):r(p)}}function v5(e,t,r){const a=this;return s;function s(d){return vw.call(a,e,o,c,"reference","referenceMarker","referenceString")(d)}function o(d){return a.parser.defined.includes(Dr(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(d):r(d)}function c(d){return r(d)}}function _5(e,t,r){return a;function a(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),s}function s(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):r(o)}}const w5={name:"labelStartImage",resolveAll:Op.resolveAll,tokenize:E5};function E5(e,t,r){const a=this;return s;function s(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),o}function o(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),c):r(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(d):t(d)}}const N5={name:"labelStartLink",resolveAll:Op.resolveAll,tokenize:S5};function S5(e,t,r){const a=this;return s;function s(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),o}function o(c){return c===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(c):t(c)}}const yh={name:"lineEnding",tokenize:k5};function k5(e,t){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ot(e,t,"linePrefix")}}const mu={name:"thematicBreak",tokenize:T5};function T5(e,t,r){let a=0,s;return o;function o(h){return e.enter("thematicBreak"),c(h)}function c(h){return s=h,d(h)}function d(h){return h===s?(e.enter("thematicBreakSequence"),f(h)):a>=3&&(h===null||Be(h))?(e.exit("thematicBreak"),t(h)):r(h)}function f(h){return h===s?(e.consume(h),a++,f):(e.exit("thematicBreakSequence"),tt(h)?ot(e,d,"whitespace")(h):d(h))}}const Pn={continuation:{tokenize:O5},exit:D5,name:"list",tokenize:M5},C5={partial:!0,tokenize:j5},A5={partial:!0,tokenize:R5};function M5(e,t,r){const a=this,s=a.events[a.events.length-1];let o=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return d;function d(x){const _=a.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!a.containerState.marker||x===a.containerState.marker:Gm(x)){if(a.containerState.type||(a.containerState.type=_,e.enter(_,{_container:!0})),_==="listUnordered")return e.enter("listItemPrefix"),x===42||x===45?e.check(mu,r,h)(x):h(x);if(!a.interrupt||x===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(x)}return r(x)}function f(x){return Gm(x)&&++c<10?(e.consume(x),f):(!a.interrupt||c<2)&&(a.containerState.marker?x===a.containerState.marker:x===41||x===46)?(e.exit("listItemValue"),h(x)):r(x)}function h(x){return e.enter("listItemMarker"),e.consume(x),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||x,e.check(Oo,a.interrupt?r:m,e.attempt(C5,y,p))}function m(x){return a.containerState.initialBlankLine=!0,o++,y(x)}function p(x){return tt(x)?(e.enter("listItemPrefixWhitespace"),e.consume(x),e.exit("listItemPrefixWhitespace"),y):r(x)}function y(x){return a.containerState.size=o+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(x)}}function O5(e,t,r){const a=this;return a.containerState._closeFlow=void 0,e.check(Oo,s,o);function s(d){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,ot(e,t,"listItemIndent",a.containerState.size+1)(d)}function o(d){return a.containerState.furtherBlankLines||!tt(d)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(d)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(A5,t,c)(d))}function c(d){return a.containerState._closeFlow=!0,a.interrupt=void 0,ot(e,e.attempt(Pn,t,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function R5(e,t,r){const a=this;return ot(e,s,"listItemIndent",a.containerState.size+1);function s(o){const c=a.events[a.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===a.containerState.size?t(o):r(o)}}function D5(e){e.exit(this.containerState.type)}function j5(e,t,r){const a=this;return ot(e,s,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(o){const c=a.events[a.events.length-1];return!tt(o)&&c&&c[1].type==="listItemPrefixWhitespace"?t(o):r(o)}}const Ty={name:"setextUnderline",resolveTo:L5,tokenize:z5};function L5(e,t){let r=e.length,a,s,o;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){a=r;break}e[r][1].type==="paragraph"&&(s=r)}else e[r][1].type==="content"&&e.splice(r,1),!o&&e[r][1].type==="definition"&&(o=r);const c={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",o?(e.splice(s,0,["enter",c,t]),e.splice(o+1,0,["exit",e[a][1],t]),e[a][1].end={...e[o][1].end}):e[a][1]=c,e.push(["exit",c,t]),e}function z5(e,t,r){const a=this;let s;return o;function o(h){let m=a.events.length,p;for(;m--;)if(a.events[m][1].type!=="lineEnding"&&a.events[m][1].type!=="linePrefix"&&a.events[m][1].type!=="content"){p=a.events[m][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||p)?(e.enter("setextHeadingLine"),s=h,c(h)):r(h)}function c(h){return e.enter("setextHeadingLineSequence"),d(h)}function d(h){return h===s?(e.consume(h),d):(e.exit("setextHeadingLineSequence"),tt(h)?ot(e,f,"lineSuffix")(h):f(h))}function f(h){return h===null||Be(h)?(e.exit("setextHeadingLine"),t(h)):r(h)}}const I5={tokenize:B5};function B5(e){const t=this,r=e.attempt(Oo,a,e.attempt(this.parser.constructs.flowInitial,s,ot(e,e.attempt(this.parser.constructs.flow,s,e.attempt(PM,s)),"linePrefix")));return r;function a(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function s(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const U5={resolveAll:Ew()},H5=ww("string"),$5=ww("text");function ww(e){return{resolveAll:Ew(e==="text"?q5:void 0),tokenize:t};function t(r){const a=this,s=this.parser.constructs[e],o=r.attempt(s,c,d);return c;function c(m){return h(m)?o(m):d(m)}function d(m){if(m===null){r.consume(m);return}return r.enter("data"),r.consume(m),f}function f(m){return h(m)?(r.exit("data"),o(m)):(r.consume(m),f)}function h(m){if(m===null)return!0;const p=s[m];let y=-1;if(p)for(;++y<p.length;){const x=p[y];if(!x.previous||x.previous.call(a,a.previous))return!0}return!1}}}function Ew(e){return t;function t(r,a){let s=-1,o;for(;++s<=r.length;)o===void 0?r[s]&&r[s][1].type==="data"&&(o=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==o+2&&(r[o][1].end=r[s-1][1].end,r.splice(o+2,s-o-2),s=o+2),o=void 0);return e?e(r,a):r}}function q5(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const a=e[r-1][1],s=t.sliceStream(a);let o=s.length,c=-1,d=0,f;for(;o--;){const h=s[o];if(typeof h=="string"){for(c=h.length;h.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(h===-2)f=!0,d++;else if(h!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(d=0),d){const h={type:r===e.length||f||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?c:a.start._bufferIndex+c,_index:a.start._index+o,line:a.end.line,column:a.end.column-d,offset:a.end.offset-d},end:{...a.end}};a.end={...h.start},a.start.offset===a.end.offset?Object.assign(a,h):(e.splice(r,0,["enter",h,t],["exit",h,t]),r+=2)}r++}return e}const P5={42:Pn,43:Pn,45:Pn,48:Pn,49:Pn,50:Pn,51:Pn,52:Pn,53:Pn,54:Pn,55:Pn,56:Pn,57:Pn,62:pw},F5={91:XM},G5={[-2]:xh,[-1]:xh,32:xh},V5={35:e5,42:mu,45:[Ty,mu],60:i5,61:Ty,95:mu,96:Sy,126:Sy},Y5={38:bw,92:gw},X5={[-5]:yh,[-4]:yh,[-3]:yh,33:w5,38:bw,42:Vm,60:[NM,d5],91:N5,92:[WM,gw],93:Op,95:Vm,96:IM},K5={null:[Vm,U5]},Z5={null:[42,95]},Q5={null:[]},W5=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Z5,contentInitial:F5,disable:Q5,document:P5,flow:V5,flowInitial:G5,insideSpan:K5,string:Y5,text:X5},Symbol.toStringTag,{value:"Module"}));function J5(e,t,r){let a={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},o=[];let c=[],d=[];const f={attempt:U(I),check:U(R),consume:k,enter:E,exit:M,interrupt:U(R,{interrupt:!0})},h={code:null,containerState:{},defineSkip:N,events:[],now:_,parser:e,previous:null,sliceSerialize:y,sliceStream:x,write:p};let m=t.tokenize.call(h,f);return t.resolveAll&&o.push(t),h;function p(L){return c=br(c,L),S(),c[c.length-1]!==null?[]:(B(t,0),h.events=Pu(o,h.events,h),h.events)}function y(L,G){return tO(x(L),G)}function x(L){return eO(c,L)}function _(){const{_bufferIndex:L,_index:G,line:V,column:A,offset:q}=a;return{_bufferIndex:L,_index:G,line:V,column:A,offset:q}}function N(L){s[L.line]=L.column,D()}function S(){let L;for(;a._index<c.length;){const G=c[a._index];if(typeof G=="string")for(L=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===L&&a._bufferIndex<G.length;)w(G.charCodeAt(a._bufferIndex));else w(G)}}function w(L){m=m(L)}function k(L){Be(L)?(a.line++,a.column=1,a.offset+=L===-3?2:1,D()):L!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===c[a._index].length&&(a._bufferIndex=-1,a._index++)),h.previous=L}function E(L,G){const V=G||{};return V.type=L,V.start=_(),h.events.push(["enter",V,h]),d.push(V),V}function M(L){const G=d.pop();return G.end=_(),h.events.push(["exit",G,h]),G}function I(L,G){B(L,G.from)}function R(L,G){G.restore()}function U(L,G){return V;function V(A,q,O){let H,X,K,T;return Array.isArray(A)?Y(A):"tokenize"in A?Y([A]):j(A);function j(Q){return J;function J(W){const te=W!==null&&Q[W],ce=W!==null&&Q.null,fe=[...Array.isArray(te)?te:te?[te]:[],...Array.isArray(ce)?ce:ce?[ce]:[]];return Y(fe)(W)}}function Y(Q){return H=Q,X=0,Q.length===0?O:z(Q[X])}function z(Q){return J;function J(W){return T=Z(),K=Q,Q.partial||(h.currentConstruct=Q),Q.name&&h.parser.constructs.disable.null.includes(Q.name)?$():Q.tokenize.call(G?Object.assign(Object.create(h),G):h,f,F,$)(W)}}function F(Q){return L(K,T),q}function $(Q){return T.restore(),++X<H.length?z(H[X]):O}}}function B(L,G){L.resolveAll&&!o.includes(L)&&o.push(L),L.resolve&&ir(h.events,G,h.events.length-G,L.resolve(h.events.slice(G),h)),L.resolveTo&&(h.events=L.resolveTo(h.events,h))}function Z(){const L=_(),G=h.previous,V=h.currentConstruct,A=h.events.length,q=Array.from(d);return{from:A,restore:O};function O(){a=L,h.previous=G,h.currentConstruct=V,h.events.length=A,d=q,D()}}function D(){a.line in s&&a.column<2&&(a.column=s[a.line],a.offset+=s[a.line]-1)}}function eO(e,t){const r=t.start._index,a=t.start._bufferIndex,s=t.end._index,o=t.end._bufferIndex;let c;if(r===s)c=[e[r].slice(a,o)];else{if(c=e.slice(r,s),a>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(a):c.shift()}o>0&&c.push(e[s].slice(0,o))}return c}function tO(e,t){let r=-1;const a=[];let s;for(;++r<e.length;){const o=e[r];let c;if(typeof o=="string")c=o;else switch(o){case-5:{c="\r";break}case-4:{c=`
+`;break}case-3:{c=`\r
+`;break}case-2:{c=t?" ":" ";break}case-1:{if(!t&&s)continue;c=" ";break}default:c=String.fromCharCode(o)}s=o===-2,a.push(c)}return a.join("")}function nO(e){const a={constructs:hw([W5,...(e||{}).extensions||[]]),content:s(bM),defined:[],document:s(yM),flow:s(I5),lazy:{},string:s(H5),text:s($5)};return a;function s(o){return c;function c(d){return J5(a,o,d)}}}function rO(e){for(;!xw(e););return e}const Cy=/[\0\t\n\r]/g;function iO(){let e=1,t="",r=!0,a;return s;function s(o,c,d){const f=[];let h,m,p,y,x;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(c||void 0).decode(o)),p=0,t="",r&&(o.charCodeAt(0)===65279&&p++,r=void 0);p<o.length;){if(Cy.lastIndex=p,h=Cy.exec(o),y=h&&h.index!==void 0?h.index:o.length,x=o.charCodeAt(y),!h){t=o.slice(p);break}if(x===10&&p===y&&a)f.push(-3),a=void 0;else switch(a&&(f.push(-5),a=void 0),p<y&&(f.push(o.slice(p,y)),e+=y-p),x){case 0:{f.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,f.push(-2);e++<m;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:a=!0,e=1}p=y+1}return d&&(a&&f.push(-5),t&&f.push(t),f.push(null)),f}}const aO=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function sO(e){return e.replace(aO,lO)}function lO(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),o=s===120||s===88;return mw(r.slice(o?2:1),o?16:10)}return Mp(r)||e}const Nw={}.hasOwnProperty;function oO(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),cO(r)(rO(nO(r).document().write(iO()(e,t,!0))))}function cO(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Yt),autolinkProtocol:Z,autolinkEmail:Z,atxHeading:o(je),blockQuote:o(ce),characterEscape:Z,characterReference:Z,codeFenced:o(fe),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:o(fe,c),codeText:o(be,c),codeTextData:Z,data:Z,codeFlowValue:Z,definition:o(we),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:o(Ne),hardBreakEscape:o($e),hardBreakTrailing:o($e),htmlFlow:o(st,c),htmlFlowData:Z,htmlText:o(st,c),htmlTextData:Z,image:o(Rt),label:c,link:o(Yt),listItem:o(Xt),listItemValue:y,listOrdered:o(Pt,p),listUnordered:o(Pt),paragraph:o(Yn),reference:z,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:o(je),strong:o(wn),thematicBreak:o(It)},exit:{atxHeading:f(),atxHeadingSequence:I,autolink:f(),autolinkEmail:te,autolinkProtocol:W,blockQuote:f(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:$,characterReferenceMarkerNumeric:$,characterReferenceValue:Q,characterReference:J,codeFenced:f(S),codeFencedFence:N,codeFencedFenceInfo:x,codeFencedFenceMeta:_,codeFlowValue:D,codeIndented:f(w),codeText:f(q),codeTextData:D,data:D,definition:f(),definitionDestinationString:M,definitionLabelString:k,definitionTitleString:E,emphasis:f(),hardBreakEscape:f(G),hardBreakTrailing:f(G),htmlFlow:f(V),htmlFlowData:D,htmlText:f(A),htmlTextData:D,image:f(H),label:K,labelText:X,lineEnding:L,link:f(O),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:F,resourceDestinationString:T,resourceTitleString:j,resource:Y,setextHeading:f(B),setextHeadingLineSequence:U,setextHeadingText:R,strong:f(),thematicBreak:f()}};Sw(t,(e||{}).mdastExtensions||[]);const r={};return a;function a(ue){let xe={type:"root",children:[]};const Oe={stack:[xe],tokenStack:[],config:t,enter:d,exit:h,buffer:c,resume:m,data:r},Fe=[];let Ze=-1;for(;++Ze<ue.length;)if(ue[Ze][1].type==="listOrdered"||ue[Ze][1].type==="listUnordered")if(ue[Ze][0]==="enter")Fe.push(Ze);else{const on=Fe.pop();Ze=s(ue,on,Ze)}for(Ze=-1;++Ze<ue.length;){const on=t[ue[Ze][0]];Nw.call(on,ue[Ze][1].type)&&on[ue[Ze][1].type].call(Object.assign({sliceSerialize:ue[Ze][2].sliceSerialize},Oe),ue[Ze][1])}if(Oe.tokenStack.length>0){const on=Oe.tokenStack[Oe.tokenStack.length-1];(on[1]||Ay).call(Oe,void 0,on[0])}for(xe.position={start:ia(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:ia(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},Ze=-1;++Ze<t.transforms.length;)xe=t.transforms[Ze](xe)||xe;return xe}function s(ue,xe,Oe){let Fe=xe-1,Ze=-1,on=!1,En,Kt,At,Wt;for(;++Fe<=Oe;){const ut=ue[Fe];switch(ut[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ut[0]==="enter"?Ze++:Ze--,Wt=void 0;break}case"lineEndingBlank":{ut[0]==="enter"&&(En&&!Wt&&!Ze&&!At&&(At=Fe),Wt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Wt=void 0}if(!Ze&&ut[0]==="enter"&&ut[1].type==="listItemPrefix"||Ze===-1&&ut[0]==="exit"&&(ut[1].type==="listUnordered"||ut[1].type==="listOrdered")){if(En){let zn=Fe;for(Kt=void 0;zn--;){const cn=ue[zn];if(cn[1].type==="lineEnding"||cn[1].type==="lineEndingBlank"){if(cn[0]==="exit")continue;Kt&&(ue[Kt][1].type="lineEndingBlank",on=!0),cn[1].type="lineEnding",Kt=zn}else if(!(cn[1].type==="linePrefix"||cn[1].type==="blockQuotePrefix"||cn[1].type==="blockQuotePrefixWhitespace"||cn[1].type==="blockQuoteMarker"||cn[1].type==="listItemIndent"))break}At&&(!Kt||At<Kt)&&(En._spread=!0),En.end=Object.assign({},Kt?ue[Kt][1].start:ut[1].end),ue.splice(Kt||Fe,0,["exit",En,ut[2]]),Fe++,Oe++}if(ut[1].type==="listItemPrefix"){const zn={type:"listItem",_spread:!1,start:Object.assign({},ut[1].start),end:void 0};En=zn,ue.splice(Fe,0,["enter",zn,ut[2]]),Fe++,Oe++,At=void 0,Wt=!0}}}return ue[xe][1]._spread=on,Oe}function o(ue,xe){return Oe;function Oe(Fe){d.call(this,ue(Fe),Fe),xe&&xe.call(this,Fe)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(ue,xe,Oe){this.stack[this.stack.length-1].children.push(ue),this.stack.push(ue),this.tokenStack.push([xe,Oe||void 0]),ue.position={start:ia(xe.start),end:void 0}}function f(ue){return xe;function xe(Oe){ue&&ue.call(this,Oe),h.call(this,Oe)}}function h(ue,xe){const Oe=this.stack.pop(),Fe=this.tokenStack.pop();if(Fe)Fe[0].type!==ue.type&&(xe?xe.call(this,ue,Fe[0]):(Fe[1]||Ay).call(this,ue,Fe[0]));else throw new Error("Cannot close `"+ue.type+"` ("+lo({start:ue.start,end:ue.end})+"): it’s not open");Oe.position.end=ia(ue.end)}function m(){return Ap(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function y(ue){if(this.data.expectingFirstListItemValue){const xe=this.stack[this.stack.length-2];xe.start=Number.parseInt(this.sliceSerialize(ue),10),this.data.expectingFirstListItemValue=void 0}}function x(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.lang=ue}function _(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.meta=ue}function N(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.value=ue.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.value=ue.replace(/(\r?\n|\r)$/g,"")}function k(ue){const xe=this.resume(),Oe=this.stack[this.stack.length-1];Oe.label=xe,Oe.identifier=Dr(this.sliceSerialize(ue)).toLowerCase()}function E(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.title=ue}function M(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.url=ue}function I(ue){const xe=this.stack[this.stack.length-1];if(!xe.depth){const Oe=this.sliceSerialize(ue).length;xe.depth=Oe}}function R(){this.data.setextHeadingSlurpLineEnding=!0}function U(ue){const xe=this.stack[this.stack.length-1];xe.depth=this.sliceSerialize(ue).codePointAt(0)===61?1:2}function B(){this.data.setextHeadingSlurpLineEnding=void 0}function Z(ue){const Oe=this.stack[this.stack.length-1].children;let Fe=Oe[Oe.length-1];(!Fe||Fe.type!=="text")&&(Fe=ct(),Fe.position={start:ia(ue.start),end:void 0},Oe.push(Fe)),this.stack.push(Fe)}function D(ue){const xe=this.stack.pop();xe.value+=this.sliceSerialize(ue),xe.position.end=ia(ue.end)}function L(ue){const xe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Oe=xe.children[xe.children.length-1];Oe.position.end=ia(ue.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(xe.type)&&(Z.call(this,ue),D.call(this,ue))}function G(){this.data.atHardBreak=!0}function V(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.value=ue}function A(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.value=ue}function q(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.value=ue}function O(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const xe=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=xe,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function H(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const xe=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=xe,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function X(ue){const xe=this.sliceSerialize(ue),Oe=this.stack[this.stack.length-2];Oe.label=sO(xe),Oe.identifier=Dr(xe).toLowerCase()}function K(){const ue=this.stack[this.stack.length-1],xe=this.resume(),Oe=this.stack[this.stack.length-1];if(this.data.inReference=!0,Oe.type==="link"){const Fe=ue.children;Oe.children=Fe}else Oe.alt=xe}function T(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.url=ue}function j(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.title=ue}function Y(){this.data.inReference=void 0}function z(){this.data.referenceType="collapsed"}function F(ue){const xe=this.resume(),Oe=this.stack[this.stack.length-1];Oe.label=xe,Oe.identifier=Dr(this.sliceSerialize(ue)).toLowerCase(),this.data.referenceType="full"}function $(ue){this.data.characterReferenceType=ue.type}function Q(ue){const xe=this.sliceSerialize(ue),Oe=this.data.characterReferenceType;let Fe;Oe?(Fe=mw(xe,Oe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Fe=Mp(xe);const Ze=this.stack[this.stack.length-1];Ze.value+=Fe}function J(ue){const xe=this.stack.pop();xe.position.end=ia(ue.end)}function W(ue){D.call(this,ue);const xe=this.stack[this.stack.length-1];xe.url=this.sliceSerialize(ue)}function te(ue){D.call(this,ue);const xe=this.stack[this.stack.length-1];xe.url="mailto:"+this.sliceSerialize(ue)}function ce(){return{type:"blockquote",children:[]}}function fe(){return{type:"code",lang:null,meta:null,value:""}}function be(){return{type:"inlineCode",value:""}}function we(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ne(){return{type:"emphasis",children:[]}}function je(){return{type:"heading",depth:0,children:[]}}function $e(){return{type:"break"}}function st(){return{type:"html",value:""}}function Rt(){return{type:"image",title:null,url:"",alt:null}}function Yt(){return{type:"link",title:null,url:"",children:[]}}function Pt(ue){return{type:"list",ordered:ue.type==="listOrdered",start:null,spread:ue._spread,children:[]}}function Xt(ue){return{type:"listItem",spread:ue._spread,checked:null,children:[]}}function Yn(){return{type:"paragraph",children:[]}}function wn(){return{type:"strong",children:[]}}function ct(){return{type:"text",value:""}}function It(){return{type:"thematicBreak"}}}function ia(e){return{line:e.line,column:e.column,offset:e.offset}}function Sw(e,t){let r=-1;for(;++r<t.length;){const a=t[r];Array.isArray(a)?Sw(e,a):uO(e,a)}}function uO(e,t){let r;for(r in t)if(Nw.call(t,r))switch(r){case"canContainEols":{const a=t[r];a&&e[r].push(...a);break}case"transforms":{const a=t[r];a&&e[r].push(...a);break}case"enter":case"exit":{const a=t[r];a&&Object.assign(e[r],a);break}}}function Ay(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+lo({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+lo({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+lo({start:t.start,end:t.end})+") is still open")}function dO(e){const t=this;t.parser=r;function r(a){return oO(a,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function fO(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function hO(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
+`}]}function mO(e,t){const r=t.value?t.value+`
+`:"",a={},s=t.lang?t.lang.split(/\s+/):[];s.length>0&&(a.className=["language-"+s[0]]);let o={type:"element",tagName:"code",properties:a,children:[{type:"text",value:r}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function pO(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function gO(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function bO(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),s=nl(a.toLowerCase()),o=e.footnoteOrder.indexOf(a);let c,d=e.footnoteCounts.get(a);d===void 0?(d=0,e.footnoteOrder.push(a),c=e.footnoteOrder.length):c=o+1,d+=1,e.footnoteCounts.set(a,d);const f={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+s,id:r+"fnref-"+s+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(t,f);const h={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(t,h),e.applyData(t,h)}function xO(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function yO(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function kw(e,t){const r=t.referenceType;let a="]";if(r==="collapsed"?a+="[]":r==="full"&&(a+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+a}];const s=e.all(t),o=s[0];o&&o.type==="text"?o.value="["+o.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=a:s.push({type:"text",value:a}),s}function vO(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return kw(e,t);const s={src:nl(a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(s.title=a.title);const o={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,o),e.applyData(t,o)}function _O(e,t){const r={src:nl(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const a={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,a),e.applyData(t,a)}function wO(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const a={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,a),e.applyData(t,a)}function EO(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return kw(e,t);const s={href:nl(a.url||"")};a.title!==null&&a.title!==void 0&&(s.title=a.title);const o={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function NO(e,t){const r={href:nl(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const a={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function SO(e,t,r){const a=e.all(t),s=r?kO(r):Tw(t),o={},c=[];if(typeof t.checked=="boolean"){const m=a[0];let p;m&&m.type==="element"&&m.tagName==="p"?p=m:(p={type:"element",tagName:"p",properties:{},children:[]},a.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let d=-1;for(;++d<a.length;){const m=a[d];(s||d!==0||m.type!=="element"||m.tagName!=="p")&&c.push({type:"text",value:`
+`}),m.type==="element"&&m.tagName==="p"&&!s?c.push(...m.children):c.push(m)}const f=a[a.length-1];f&&(s||f.type!=="element"||f.tagName!=="p")&&c.push({type:"text",value:`
+`});const h={type:"element",tagName:"li",properties:o,children:c};return e.patch(t,h),e.applyData(t,h)}function kO(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let a=-1;for(;!t&&++a<r.length;)t=Tw(r[a])}return t}function Tw(e){const t=e.spread;return t??e.children.length>1}function TO(e,t){const r={},a=e.all(t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++s<a.length;){const c=a[s];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(a,!0)};return e.patch(t,o),e.applyData(t,o)}function CO(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function AO(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function MO(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function OO(e,t){const r=e.all(t),a=r.shift(),s=[];if(a){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(t.children[0],c),s.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},d=Sp(t.children[1]),f=sw(t.children[t.children.length-1]);d&&f&&(c.position={start:d,end:f}),s.push(c)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,o),e.applyData(t,o)}function RO(e,t,r){const a=r?r.children:void 0,o=(a?a.indexOf(t):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,d=c?c.length:t.children.length;let f=-1;const h=[];for(;++f<d;){const p=t.children[f],y={},x=c?c[f]:void 0;x&&(y.align=x);let _={type:"element",tagName:o,properties:y,children:[]};p&&(_.children=e.all(p),e.patch(p,_),_=e.applyData(p,_)),h.push(_)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,m),e.applyData(t,m)}function DO(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const My=9,Oy=32;function jO(e){const t=String(e),r=/\r?\n|\r/g;let a=r.exec(t),s=0;const o=[];for(;a;)o.push(Ry(t.slice(s,a.index),s>0,!0),a[0]),s=a.index+a[0].length,a=r.exec(t);return o.push(Ry(t.slice(s),s>0,!1)),o.join("")}function Ry(e,t,r){let a=0,s=e.length;if(t){let o=e.codePointAt(a);for(;o===My||o===Oy;)a++,o=e.codePointAt(a)}if(r){let o=e.codePointAt(s-1);for(;o===My||o===Oy;)s--,o=e.codePointAt(s-1)}return s>a?e.slice(a,s):""}function LO(e,t){const r={type:"text",value:jO(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function zO(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const IO={blockquote:fO,break:hO,code:mO,delete:pO,emphasis:gO,footnoteReference:bO,heading:xO,html:yO,imageReference:vO,image:_O,inlineCode:wO,linkReference:EO,link:NO,listItem:SO,list:TO,paragraph:CO,root:AO,strong:MO,table:OO,tableCell:DO,tableRow:RO,text:LO,thematicBreak:zO,toml:Jc,yaml:Jc,definition:Jc,footnoteDefinition:Jc};function Jc(){}const Cw=-1,Fu=0,co=1,wu=2,Rp=3,Dp=4,jp=5,Lp=6,Aw=7,Mw=8,Ow=typeof self=="object"?self:globalThis,Dy=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new Ow[e](t)},BO=(e,t)=>{const r=(s,o)=>(e.set(o,s),s),a=s=>{if(e.has(s))return e.get(s);const[o,c]=t[s];switch(o){case Fu:case Cw:return r(c,s);case co:{const d=r([],s);for(const f of c)d.push(a(f));return d}case wu:{const d=r({},s);for(const[f,h]of c)d[a(f)]=a(h);return d}case Rp:return r(new Date(c),s);case Dp:{const{source:d,flags:f}=c;return r(new RegExp(d,f),s)}case jp:{const d=r(new Map,s);for(const[f,h]of c)d.set(a(f),a(h));return d}case Lp:{const d=r(new Set,s);for(const f of c)d.add(a(f));return d}case Aw:{const{name:d,message:f}=c;return r(typeof Ow[d]=="function"?Dy(d,f):new Error(f),s)}case Mw:return r(BigInt(c),s);case"BigInt":return r(Object(BigInt(c)),s);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:d}=new Uint8Array(c);return r(new DataView(d),c)}}return r(Dy(o,c),s)};return a},jy=e=>BO(new Map,e)(0),Ba="",{toString:UO}={},{keys:HO}=Object,Jl=e=>{const t=typeof e;if(t!=="object"||!e)return[Fu,t];const r=UO.call(e).slice(8,-1);switch(r){case"Array":return[co,Ba];case"Object":return[wu,Ba];case"Date":return[Rp,Ba];case"RegExp":return[Dp,Ba];case"Map":return[jp,Ba];case"Set":return[Lp,Ba];case"DataView":return[co,r]}return r.includes("Array")?[co,r]:e instanceof Error?[Aw,e.name||"Error"]:[wu,r]},eu=([e,t])=>e===Fu&&(t==="function"||t==="symbol"),$O=(e,t,r,a)=>{const s=(c,d)=>{const f=a.push(c)-1;return r.set(d,f),f},o=c=>{if(r.has(c))return r.get(c);let[d,f]=Jl(c);switch(d){case Fu:{let m=c;switch(f){case"bigint":d=Mw,m=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);m=null;break;case"undefined":return s([Cw],c)}return s([d,m],c)}case co:{if(f){let y=c;return f==="DataView"?y=new Uint8Array(c.buffer):f==="ArrayBuffer"&&(y=new Uint8Array(c)),s([f,[...y]],c)}const m=[],p=s([d,m],c);for(const y of c)m.push(o(y));return p}case wu:{if(f)switch(f){case"BigInt":return s([f,c.toString()],c);case"Boolean":case"Number":case"String":return s([f,c.valueOf()],c)}if(t&&"toJSON"in c)return o(c.toJSON());const m=[],p=s([d,m],c);for(const y of HO(c))(e||!eu(Jl(c[y])))&&m.push([o(y),o(c[y])]);return p}case Rp:return s([d,isNaN(c.getTime())?Ba:c.toISOString()],c);case Dp:{const{source:m,flags:p}=c;return s([d,{source:m,flags:p}],c)}case jp:{const m=[],p=s([d,m],c);for(const[y,x]of c)(e||!(eu(Jl(y))||eu(Jl(x))))&&m.push([o(y),o(x)]);return p}case Lp:{const m=[],p=s([d,m],c);for(const y of c)(e||!eu(Jl(y)))&&m.push(o(y));return p}}const{message:h}=c;return s([d,{name:f,message:h}],c)};return o},Ly=(e,{json:t,lossy:r}={})=>{const a=[];return $O(!(t||r),!!t,new Map,a)(e),a},Eu=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?jy(Ly(e,t)):structuredClone(e):(e,t)=>jy(Ly(e,t));function qO(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function PO(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function FO(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||qO,a=e.options.footnoteBackLabel||PO,s=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let f=-1;for(;++f<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[f]);if(!h)continue;const m=e.all(h),p=String(h.identifier).toUpperCase(),y=nl(p.toLowerCase());let x=0;const _=[],N=e.footnoteCounts.get(p);for(;N!==void 0&&++x<=N;){_.length>0&&_.push({type:"text",value:" "});let k=typeof r=="string"?r:r(f,x);typeof k=="string"&&(k={type:"text",value:k}),_.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+y+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(f,x),className:["data-footnote-backref"]},children:Array.isArray(k)?k:[k]})}const S=m[m.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const k=S.children[S.children.length-1];k&&k.type==="text"?k.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(..._)}else m.push(..._);const w={type:"element",tagName:"li",properties:{id:t+"fn-"+y},children:e.wrap(m,!0)};e.patch(h,w),d.push(w)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Eu(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
+`},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
+`}]}}const Gu=(function(e){if(e==null)return XO;if(typeof e=="function")return Vu(e);if(typeof e=="object")return Array.isArray(e)?GO(e):VO(e);if(typeof e=="string")return YO(e);throw new Error("Expected function, string, or object as test")});function GO(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Gu(e[r]);return Vu(a);function a(...s){let o=-1;for(;++o<t.length;)if(t[o].apply(this,s))return!0;return!1}}function VO(e){const t=e;return Vu(r);function r(a){const s=a;let o;for(o in e)if(s[o]!==t[o])return!1;return!0}}function YO(e){return Vu(t);function t(r){return r&&r.type===e}}function Vu(e){return t;function t(r,a,s){return!!(KO(r)&&e.call(this,r,typeof a=="number"?a:void 0,s||void 0))}}function XO(){return!0}function KO(e){return e!==null&&typeof e=="object"&&"type"in e}const Rw=[],ZO=!0,Ym=!1,QO="skip";function Dw(e,t,r,a){let s;typeof t=="function"&&typeof r!="function"?(a=r,r=t):s=t;const o=Gu(s),c=a?-1:1;d(e,void 0,[])();function d(f,h,m){const p=f&&typeof f=="object"?f:{};if(typeof p.type=="string"){const x=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(y,"name",{value:"node ("+(f.type+(x?"<"+x+">":""))+")"})}return y;function y(){let x=Rw,_,N,S;if((!t||o(f,h,m[m.length-1]||void 0))&&(x=WO(r(f,m)),x[0]===Ym))return x;if("children"in f&&f.children){const w=f;if(w.children&&x[0]!==QO)for(N=(a?w.children.length:-1)+c,S=m.concat(w);N>-1&&N<w.children.length;){const k=w.children[N];if(_=d(k,N,S)(),_[0]===Ym)return _;N=typeof _[1]=="number"?_[1]:N+c}}return x}}}function WO(e){return Array.isArray(e)?e:typeof e=="number"?[ZO,e]:e==null?Rw:[e]}function zp(e,t,r,a){let s,o,c;typeof t=="function"&&typeof r!="function"?(o=void 0,c=t,s=r):(o=t,c=r,s=a),Dw(e,o,d,s);function d(f,h){const m=h[h.length-1],p=m?m.children.indexOf(f):void 0;return c(f,p,m)}}const Xm={}.hasOwnProperty,JO={};function eR(e,t){const r=t||JO,a=new Map,s=new Map,o=new Map,c={...IO,...r.handlers},d={all:h,applyData:nR,definitionById:a,footnoteById:s,footnoteCounts:o,footnoteOrder:[],handlers:c,one:f,options:r,patch:tR,wrap:iR};return zp(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const p=m.type==="definition"?a:s,y=String(m.identifier).toUpperCase();p.has(y)||p.set(y,m)}}),d;function f(m,p){const y=m.type,x=d.handlers[y];if(Xm.call(d.handlers,y)&&x)return x(d,m,p);if(d.options.passThrough&&d.options.passThrough.includes(y)){if("children"in m){const{children:N,...S}=m,w=Eu(S);return w.children=d.all(m),w}return Eu(m)}return(d.options.unknownHandler||rR)(d,m,p)}function h(m){const p=[];if("children"in m){const y=m.children;let x=-1;for(;++x<y.length;){const _=d.one(y[x],m);if(_){if(x&&y[x-1].type==="break"&&(!Array.isArray(_)&&_.type==="text"&&(_.value=zy(_.value)),!Array.isArray(_)&&_.type==="element")){const N=_.children[0];N&&N.type==="text"&&(N.value=zy(N.value))}Array.isArray(_)?p.push(..._):p.push(_)}}}return p}}function tR(e,t){e.position&&(t.position=PA(e))}function nR(e,t){let r=t;if(e&&e.data){const a=e.data.hName,s=e.data.hChildren,o=e.data.hProperties;if(typeof a=="string")if(r.type==="element")r.tagName=a;else{const c="children"in r?r.children:[r];r={type:"element",tagName:a,properties:{},children:c}}r.type==="element"&&o&&Object.assign(r.properties,Eu(o)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function rR(e,t){const r=t.data||{},a="value"in t&&!(Xm.call(r,"hProperties")||Xm.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function iR(e,t){const r=[];let a=-1;for(t&&r.push({type:"text",value:`
+`});++a<e.length;)a&&r.push({type:"text",value:`
+`}),r.push(e[a]);return t&&e.length>0&&r.push({type:"text",value:`
+`}),r}function zy(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Iy(e,t){const r=eR(e,t),a=r.one(e,void 0),s=FO(r),o=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return s&&o.children.push({type:"text",value:`
+`},s),o}function aR(e,t){return e&&"run"in e?async function(r,a){const s=Iy(r,{file:a,...t});await e.run(s,a)}:function(r,a){return Iy(r,{file:a,...e||t})}}function By(e){if(e)throw e}var vh,Uy;function sR(){if(Uy)return vh;Uy=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},o=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var m=e.call(h,"constructor"),p=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!p)return!1;var y;for(y in h);return typeof y>"u"||e.call(h,y)},c=function(h,m){r&&m.name==="__proto__"?r(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},d=function(h,m){if(m==="__proto__")if(e.call(h,m)){if(a)return a(h,m).value}else return;return h[m]};return vh=function f(){var h,m,p,y,x,_,N=arguments[0],S=1,w=arguments.length,k=!1;for(typeof N=="boolean"&&(k=N,N=arguments[1]||{},S=2),(N==null||typeof N!="object"&&typeof N!="function")&&(N={});S<w;++S)if(h=arguments[S],h!=null)for(m in h)p=d(N,m),y=d(h,m),N!==y&&(k&&y&&(o(y)||(x=s(y)))?(x?(x=!1,_=p&&s(p)?p:[]):_=p&&o(p)?p:{},c(N,{name:m,newValue:f(k,_,y)})):typeof y<"u"&&c(N,{name:m,newValue:y}));return N},vh}var lR=sR();const _h=To(lR);function Km(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function oR(){const e=[],t={run:r,use:a};return t;function r(...s){let o=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...s);function d(f,...h){const m=e[++o];let p=-1;if(f){c(f);return}for(;++p<s.length;)(h[p]===null||h[p]===void 0)&&(h[p]=s[p]);s=h,m?cR(m,d)(...h):c(null,...h)}}function a(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),t}}function cR(e,t){let r;return a;function a(...c){const d=e.length>c.length;let f;d&&c.push(s);try{f=e.apply(this,c)}catch(h){const m=h;if(d&&r)throw m;return s(m)}d||(f&&f.then&&typeof f.then=="function"?f.then(o,s):f instanceof Error?s(f):o(f))}function s(c,...d){r||(r=!0,t(c,...d))}function o(c){s(null,c)}}const Fr={basename:uR,dirname:dR,extname:fR,join:hR,sep:"/"};function uR(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ro(e);let r=0,a=-1,s=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(o){r=s+1;break}}else a<0&&(o=!0,a=s+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let c=-1,d=t.length-1;for(;s--;)if(e.codePointAt(s)===47){if(o){r=s+1;break}}else c<0&&(o=!0,c=s+1),d>-1&&(e.codePointAt(s)===t.codePointAt(d--)?d<0&&(a=s):(d=-1,a=c));return r===a?a=c:a<0&&(a=e.length),e.slice(r,a)}function dR(e){if(Ro(e),e.length===0)return".";let t=-1,r=e.length,a;for(;--r;)if(e.codePointAt(r)===47){if(a){t=r;break}}else a||(a=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function fR(e){Ro(e);let t=e.length,r=-1,a=0,s=-1,o=0,c;for(;t--;){const d=e.codePointAt(t);if(d===47){if(c){a=t+1;break}continue}r<0&&(c=!0,r=t+1),d===46?s<0?s=t:o!==1&&(o=1):s>-1&&(o=-1)}return s<0||r<0||o===0||o===1&&s===r-1&&s===a+1?"":e.slice(s,r)}function hR(...e){let t=-1,r;for(;++t<e.length;)Ro(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":mR(r)}function mR(e){Ro(e);const t=e.codePointAt(0)===47;let r=pR(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function pR(e,t){let r="",a=0,s=-1,o=0,c=-1,d,f;for(;++c<=e.length;){if(c<e.length)d=e.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(s===c-1||o===1))if(s!==c-1&&o===2){if(r.length<2||a!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(f=r.lastIndexOf("/"),f!==r.length-1){f<0?(r="",a=0):(r=r.slice(0,f),a=r.length-1-r.lastIndexOf("/")),s=c,o=0;continue}}else if(r.length>0){r="",a=0,s=c,o=0;continue}}t&&(r=r.length>0?r+"/..":"..",a=2)}else r.length>0?r+="/"+e.slice(s+1,c):r=e.slice(s+1,c),a=c-s-1;s=c,o=0}else d===46&&o>-1?o++:o=-1}return r}function Ro(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const gR={cwd:bR};function bR(){return"/"}function Zm(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function xR(e){if(typeof e=="string")e=new URL(e);else if(!Zm(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return yR(e)}function yR(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const a=t.codePointAt(r+2);if(a===70||a===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(t)}const wh=["history","path","basename","stem","extname","dirname"];class jw{constructor(t){let r;t?Zm(t)?r={path:t}:typeof t=="string"||vR(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":gR.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<wh.length;){const o=wh[a];o in r&&r[o]!==void 0&&r[o]!==null&&(this[o]=o==="history"?[...r[o]]:r[o])}let s;for(s in r)wh.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?Fr.basename(this.path):void 0}set basename(t){Nh(t,"basename"),Eh(t,"basename"),this.path=Fr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Fr.dirname(this.path):void 0}set dirname(t){Hy(this.basename,"dirname"),this.path=Fr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Fr.extname(this.path):void 0}set extname(t){if(Eh(t,"extname"),Hy(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Fr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Zm(t)&&(t=xR(t)),Nh(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Fr.basename(this.path,this.extname):void 0}set stem(t){Nh(t,"stem"),Eh(t,"stem"),this.path=Fr.join(this.dirname||"",t+(this.extname||""))}fail(t,r,a){const s=this.message(t,r,a);throw s.fatal=!0,s}info(t,r,a){const s=this.message(t,r,a);return s.fatal=void 0,s}message(t,r,a){const s=new Cn(t,r,a);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Eh(e,t){if(e&&e.includes(Fr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Fr.sep+"`")}function Nh(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Hy(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function vR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const _R=(function(e){const a=this.constructor.prototype,s=a[e],o=function(){return s.apply(o,arguments)};return Object.setPrototypeOf(o,a),o}),wR={}.hasOwnProperty;class Ip extends _R{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=oR()}copy(){const t=new Ip;let r=-1;for(;++r<this.attachers.length;){const a=this.attachers[r];t.use(...a)}return t.data(_h(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(Th("data",this.frozen),this.namespace[t]=r,this):wR.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Th("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const s=r.call(t,...a);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=tu(t),a=this.parser||this.Parser;return Sh("parse",a),a(String(r),r)}process(t,r){const a=this;return this.freeze(),Sh("process",this.parser||this.Parser),kh("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(o,c){const d=tu(t),f=a.parse(d);a.run(f,d,function(m,p,y){if(m||!p||!y)return h(m);const x=p,_=a.stringify(x,y);SR(_)?y.value=_:y.result=_,h(m,y)});function h(m,p){m||!p?c(m):o?o(p):r(void 0,p)}}}processSync(t){let r=!1,a;return this.freeze(),Sh("processSync",this.parser||this.Parser),kh("processSync",this.compiler||this.Compiler),this.process(t,s),qy("processSync","process",r),a;function s(o,c){r=!0,By(o),a=c}}run(t,r,a){$y(t),this.freeze();const s=this.transformers;return!a&&typeof r=="function"&&(a=r,r=void 0),a?o(void 0,a):new Promise(o);function o(c,d){const f=tu(r);s.run(t,f,h);function h(m,p,y){const x=p||t;m?d(m):c?c(x):a(void 0,x,y)}}}runSync(t,r){let a=!1,s;return this.run(t,r,o),qy("runSync","run",a),s;function o(c,d){By(c),s=d,a=!0}}stringify(t,r){this.freeze();const a=tu(r),s=this.compiler||this.Compiler;return kh("stringify",s),$y(t),s(t,a)}use(t,...r){const a=this.attachers,s=this.namespace;if(Th("use",this.frozen),t!=null)if(typeof t=="function")f(t,r);else if(typeof t=="object")Array.isArray(t)?d(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(h){if(typeof h=="function")f(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[m,...p]=h;f(m,p)}else c(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function c(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(h.plugins),h.settings&&(s.settings=_h(!0,s.settings,h.settings))}function d(h){let m=-1;if(h!=null)if(Array.isArray(h))for(;++m<h.length;){const p=h[m];o(p)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function f(h,m){let p=-1,y=-1;for(;++p<a.length;)if(a[p][0]===h){y=p;break}if(y===-1)a.push([h,...m]);else if(m.length>0){let[x,..._]=m;const N=a[y][1];Km(N)&&Km(x)&&(x=_h(!0,N,x)),a[y]=[h,x,..._]}}}}const ER=new Ip().freeze();function Sh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function kh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Th(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function $y(e){if(!Km(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function qy(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function tu(e){return NR(e)?e:new jw(e)}function NR(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function SR(e){return typeof e=="string"||kR(e)}function kR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const TR="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Py=[],Fy={allowDangerousHtml:!0},CR=/^(https?|ircs?|mailto|xmpp)$/i,AR=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Bp(e){const t=MR(e),r=OR(e);return RR(t.runSync(t.parse(r),r),e)}function MR(e){const t=e.rehypePlugins||Py,r=e.remarkPlugins||Py,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Fy}:Fy;return ER().use(dO).use(r).use(aR,a).use(t)}function OR(e){const t=e.children||"",r=new jw;return typeof t=="string"&&(r.value=t),r}function RR(e,t){const r=t.allowedElements,a=t.allowElement,s=t.components,o=t.disallowedElements,c=t.skipHtml,d=t.unwrapDisallowed,f=t.urlTransform||DR;for(const m of AR)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+TR+m.id,void 0);return zp(e,h),XA(e,{Fragment:g.Fragment,components:s,ignoreInvalidStyle:!0,jsx:g.jsx,jsxs:g.jsxs,passKeys:!0,passNode:!0});function h(m,p,y){if(m.type==="raw"&&y&&typeof p=="number")return c?y.children.splice(p,1):y.children[p]={type:"text",value:m.value},p;if(m.type==="element"){let x;for(x in bh)if(Object.hasOwn(bh,x)&&Object.hasOwn(m.properties,x)){const _=m.properties[x],N=bh[x];(N===null||N.includes(m.tagName))&&(m.properties[x]=f(String(_||""),x,m))}}if(m.type==="element"){let x=r?!r.includes(m.tagName):o?o.includes(m.tagName):!1;if(!x&&a&&typeof p=="number"&&(x=!a(m,p,y)),x&&y&&typeof p=="number")return d&&m.children?y.children.splice(p,1,...m.children):y.children.splice(p,1),p}}}function DR(e){const t=e.indexOf(":"),r=e.indexOf("?"),a=e.indexOf("#"),s=e.indexOf("/");return t===-1||s!==-1&&t>s||r!==-1&&t>r||a!==-1&&t>a||CR.test(e.slice(0,t))?e:""}function Gy(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let a=0,s=r.indexOf(t);for(;s!==-1;)a++,s=r.indexOf(t,s+t.length);return a}function jR(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function LR(e,t,r){const s=Gu((r||{}).ignore||[]),o=zR(t);let c=-1;for(;++c<o.length;)Dw(e,"text",d);function d(h,m){let p=-1,y;for(;++p<m.length;){const x=m[p],_=y?y.children:void 0;if(s(x,_?_.indexOf(x):void 0,y))return;y=x}if(y)return f(h,m)}function f(h,m){const p=m[m.length-1],y=o[c][0],x=o[c][1];let _=0;const S=p.children.indexOf(h);let w=!1,k=[];y.lastIndex=0;let E=y.exec(h.value);for(;E;){const M=E.index,I={index:E.index,input:E.input,stack:[...m,h]};let R=x(...E,I);if(typeof R=="string"&&(R=R.length>0?{type:"text",value:R}:void 0),R===!1?y.lastIndex=M+1:(_!==M&&k.push({type:"text",value:h.value.slice(_,M)}),Array.isArray(R)?k.push(...R):R&&k.push(R),_=M+E[0].length,w=!0),!y.global)break;E=y.exec(h.value)}return w?(_<h.value.length&&k.push({type:"text",value:h.value.slice(_)}),p.children.splice(S,1,...k)):k=[h],S+k.length}}function zR(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let a=-1;for(;++a<r.length;){const s=r[a];t.push([IR(s[0]),BR(s[1])])}return t}function IR(e){return typeof e=="string"?new RegExp(jR(e),"g"):e}function BR(e){return typeof e=="function"?e:function(){return e}}const Ch="phrasing",Ah=["autolink","link","image","label"];function UR(){return{transforms:[VR],enter:{literalAutolink:$R,literalAutolinkEmail:Mh,literalAutolinkHttp:Mh,literalAutolinkWww:Mh},exit:{literalAutolink:GR,literalAutolinkEmail:FR,literalAutolinkHttp:qR,literalAutolinkWww:PR}}}function HR(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ch,notInConstruct:Ah},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ch,notInConstruct:Ah},{character:":",before:"[ps]",after:"\\/",inConstruct:Ch,notInConstruct:Ah}]}}function $R(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Mh(e){this.config.enter.autolinkProtocol.call(this,e)}function qR(e){this.config.exit.autolinkProtocol.call(this,e)}function PR(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function FR(e){this.config.exit.autolinkEmail.call(this,e)}function GR(e){this.exit(e)}function VR(e){LR(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,YR],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),XR]],{ignore:["link","linkReference"]})}function YR(e,t,r,a,s){let o="";if(!Lw(s)||(/^w/i.test(t)&&(r=t+r,t="",o="http://"),!KR(r)))return!1;const c=ZR(r+a);if(!c[0])return!1;const d={type:"link",title:null,url:o+t+c[0],children:[{type:"text",value:t+c[0]}]};return c[1]?[d,{type:"text",value:c[1]}]:d}function XR(e,t,r,a){return!Lw(a,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function KR(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function ZR(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],a=r.indexOf(")");const s=Gy(e,"(");let o=Gy(e,")");for(;a!==-1&&s>o;)e+=r.slice(0,a+1),r=r.slice(a+1),a=r.indexOf(")"),o++;return[e,r]}function Lw(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Fa(r)||qu(r))&&(!t||r!==47)}zw.peek=a3;function QR(){this.buffer()}function WR(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function JR(){this.buffer()}function e3(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function t3(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Dr(this.sliceSerialize(e)).toLowerCase(),r.label=t}function n3(e){this.exit(e)}function r3(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Dr(this.sliceSerialize(e)).toLowerCase(),r.label=t}function i3(e){this.exit(e)}function a3(){return"["}function zw(e,t,r,a){const s=r.createTracker(a);let o=s.move("[^");const c=r.enter("footnoteReference"),d=r.enter("reference");return o+=s.move(r.safe(r.associationId(e),{after:"]",before:o})),d(),c(),o+=s.move("]"),o}function s3(){return{enter:{gfmFootnoteCallString:QR,gfmFootnoteCall:WR,gfmFootnoteDefinitionLabelString:JR,gfmFootnoteDefinition:e3},exit:{gfmFootnoteCallString:t3,gfmFootnoteCall:n3,gfmFootnoteDefinitionLabelString:r3,gfmFootnoteDefinition:i3}}}function l3(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:zw},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(a,s,o,c){const d=o.createTracker(c);let f=d.move("[^");const h=o.enter("footnoteDefinition"),m=o.enter("label");return f+=d.move(o.safe(o.associationId(a),{before:f,after:"]"})),m(),f+=d.move("]:"),a.children&&a.children.length>0&&(d.shift(4),f+=d.move((t?`
+`:" ")+o.indentLines(o.containerFlow(a,d.current()),t?Iw:o3))),h(),f}}function o3(e,t,r){return t===0?e:Iw(e,t,r)}function Iw(e,t,r){return(r?"":" ")+e}const c3=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Bw.peek=m3;function u3(){return{canContainEols:["delete"],enter:{strikethrough:f3},exit:{strikethrough:h3}}}function d3(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:c3}],handlers:{delete:Bw}}}function f3(e){this.enter({type:"delete",children:[]},e)}function h3(e){this.exit(e)}function Bw(e,t,r,a){const s=r.createTracker(a),o=r.enter("strikethrough");let c=s.move("~~");return c+=r.containerPhrasing(e,{...s.current(),before:c,after:"~"}),c+=s.move("~~"),o(),c}function m3(){return"~"}function p3(e){return e.length}function g3(e,t){const r=t||{},a=(r.align||[]).concat(),s=r.stringLength||p3,o=[],c=[],d=[],f=[];let h=0,m=-1;for(;++m<e.length;){const N=[],S=[];let w=-1;for(e[m].length>h&&(h=e[m].length);++w<e[m].length;){const k=b3(e[m][w]);if(r.alignDelimiters!==!1){const E=s(k);S[w]=E,(f[w]===void 0||E>f[w])&&(f[w]=E)}N.push(k)}c[m]=N,d[m]=S}let p=-1;if(typeof a=="object"&&"length"in a)for(;++p<h;)o[p]=Vy(a[p]);else{const N=Vy(a);for(;++p<h;)o[p]=N}p=-1;const y=[],x=[];for(;++p<h;){const N=o[p];let S="",w="";N===99?(S=":",w=":"):N===108?S=":":N===114&&(w=":");let k=r.alignDelimiters===!1?1:Math.max(1,f[p]-S.length-w.length);const E=S+"-".repeat(k)+w;r.alignDelimiters!==!1&&(k=S.length+k+w.length,k>f[p]&&(f[p]=k),x[p]=k),y[p]=E}c.splice(1,0,y),d.splice(1,0,x),m=-1;const _=[];for(;++m<c.length;){const N=c[m],S=d[m];p=-1;const w=[];for(;++p<h;){const k=N[p]||"";let E="",M="";if(r.alignDelimiters!==!1){const I=f[p]-(S[p]||0),R=o[p];R===114?E=" ".repeat(I):R===99?I%2?(E=" ".repeat(I/2+.5),M=" ".repeat(I/2-.5)):(E=" ".repeat(I/2),M=E):M=" ".repeat(I)}r.delimiterStart!==!1&&!p&&w.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&k==="")&&(r.delimiterStart!==!1||p)&&w.push(" "),r.alignDelimiters!==!1&&w.push(E),w.push(k),r.alignDelimiters!==!1&&w.push(M),r.padding!==!1&&w.push(" "),(r.delimiterEnd!==!1||p!==h-1)&&w.push("|")}_.push(r.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return _.join(`
+`)}function b3(e){return e==null?"":String(e)}function Vy(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function x3(e,t,r,a){const s=r.enter("blockquote"),o=r.createTracker(a);o.move("> "),o.shift(2);const c=r.indentLines(r.containerFlow(e,o.current()),y3);return s(),c}function y3(e,t,r){return">"+(r?"":" ")+e}function v3(e,t){return Yy(e,t.inConstruct,!0)&&!Yy(e,t.notInConstruct,!1)}function Yy(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let a=-1;for(;++a<t.length;)if(e.includes(t[a]))return!0;return!1}function Xy(e,t,r,a){let s=-1;for(;++s<r.unsafe.length;)if(r.unsafe[s].character===`
+`&&v3(r.stack,r.unsafe[s]))return/[ \t]/.test(a.before)?"":" ";return`\\
+`}function _3(e,t){const r=String(e);let a=r.indexOf(t),s=a,o=0,c=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===s?++o>c&&(c=o):o=1,s=a+t.length,a=r.indexOf(t,s);return c}function w3(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function E3(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function N3(e,t,r,a){const s=E3(r),o=e.value||"",c=s==="`"?"GraveAccent":"Tilde";if(w3(e,r)){const p=r.enter("codeIndented"),y=r.indentLines(o,S3);return p(),y}const d=r.createTracker(a),f=s.repeat(Math.max(_3(o,s)+1,3)),h=r.enter("codeFenced");let m=d.move(f);if(e.lang){const p=r.enter(`codeFencedLang${c}`);m+=d.move(r.safe(e.lang,{before:m,after:" ",encode:["`"],...d.current()})),p()}if(e.lang&&e.meta){const p=r.enter(`codeFencedMeta${c}`);m+=d.move(" "),m+=d.move(r.safe(e.meta,{before:m,after:`
+`,encode:["`"],...d.current()})),p()}return m+=d.move(`
+`),o&&(m+=d.move(o+`
+`)),m+=d.move(f),h(),m}function S3(e,t,r){return(r?"":" ")+e}function Up(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function k3(e,t,r,a){const s=Up(r),o=s==='"'?"Quote":"Apostrophe",c=r.enter("definition");let d=r.enter("label");const f=r.createTracker(a);let h=f.move("[");return h+=f.move(r.safe(r.associationId(e),{before:h,after:"]",...f.current()})),h+=f.move("]: "),d(),!e.url||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),h+=f.move("<"),h+=f.move(r.safe(e.url,{before:h,after:">",...f.current()})),h+=f.move(">")):(d=r.enter("destinationRaw"),h+=f.move(r.safe(e.url,{before:h,after:e.title?" ":`
+`,...f.current()}))),d(),e.title&&(d=r.enter(`title${o}`),h+=f.move(" "+s),h+=f.move(r.safe(e.title,{before:h,after:s,...f.current()})),h+=f.move(s),d()),c(),h}function T3(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function go(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Nu(e,t,r){const a=Ys(e),s=Ys(t);return a===void 0?s===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Uw.peek=C3;function Uw(e,t,r,a){const s=T3(r),o=r.enter("emphasis"),c=r.createTracker(a),d=c.move(s);let f=c.move(r.containerPhrasing(e,{after:s,before:d,...c.current()}));const h=f.charCodeAt(0),m=Nu(a.before.charCodeAt(a.before.length-1),h,s);m.inside&&(f=go(h)+f.slice(1));const p=f.charCodeAt(f.length-1),y=Nu(a.after.charCodeAt(0),p,s);y.inside&&(f=f.slice(0,-1)+go(p));const x=c.move(s);return o(),r.attentionEncodeSurroundingInfo={after:y.outside,before:m.outside},d+f+x}function C3(e,t,r){return r.options.emphasis||"*"}function A3(e,t){let r=!1;return zp(e,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return r=!0,Ym}),!!((!e.depth||e.depth<3)&&Ap(e)&&(t.options.setext||r))}function M3(e,t,r,a){const s=Math.max(Math.min(6,e.depth||1),1),o=r.createTracker(a);if(A3(e,r)){const m=r.enter("headingSetext"),p=r.enter("phrasing"),y=r.containerPhrasing(e,{...o.current(),before:`
+`,after:`
+`});return p(),m(),y+`
+`+(s===1?"=":"-").repeat(y.length-(Math.max(y.lastIndexOf("\r"),y.lastIndexOf(`
+`))+1))}const c="#".repeat(s),d=r.enter("headingAtx"),f=r.enter("phrasing");o.move(c+" ");let h=r.containerPhrasing(e,{before:"# ",after:`
+`,...o.current()});return/^[\t ]/.test(h)&&(h=go(h.charCodeAt(0))+h.slice(1)),h=h?c+" "+h:c,r.options.closeAtx&&(h+=" "+c),f(),d(),h}Hw.peek=O3;function Hw(e){return e.value||""}function O3(){return"<"}$w.peek=R3;function $w(e,t,r,a){const s=Up(r),o=s==='"'?"Quote":"Apostrophe",c=r.enter("image");let d=r.enter("label");const f=r.createTracker(a);let h=f.move("![");return h+=f.move(r.safe(e.alt,{before:h,after:"]",...f.current()})),h+=f.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),h+=f.move("<"),h+=f.move(r.safe(e.url,{before:h,after:">",...f.current()})),h+=f.move(">")):(d=r.enter("destinationRaw"),h+=f.move(r.safe(e.url,{before:h,after:e.title?" ":")",...f.current()}))),d(),e.title&&(d=r.enter(`title${o}`),h+=f.move(" "+s),h+=f.move(r.safe(e.title,{before:h,after:s,...f.current()})),h+=f.move(s),d()),h+=f.move(")"),c(),h}function R3(){return"!"}qw.peek=D3;function qw(e,t,r,a){const s=e.referenceType,o=r.enter("imageReference");let c=r.enter("label");const d=r.createTracker(a);let f=d.move("![");const h=r.safe(e.alt,{before:f,after:"]",...d.current()});f+=d.move(h+"]["),c();const m=r.stack;r.stack=[],c=r.enter("reference");const p=r.safe(r.associationId(e),{before:f,after:"]",...d.current()});return c(),r.stack=m,o(),s==="full"||!h||h!==p?f+=d.move(p+"]"):s==="shortcut"?f=f.slice(0,-1):f+=d.move("]"),f}function D3(){return"!"}Pw.peek=j3;function Pw(e,t,r){let a=e.value||"",s="`",o=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(a);)s+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++o<r.unsafe.length;){const c=r.unsafe[o],d=r.compilePattern(c);let f;if(c.atBreak)for(;f=d.exec(a);){let h=f.index;a.charCodeAt(h)===10&&a.charCodeAt(h-1)===13&&h--,a=a.slice(0,h)+" "+a.slice(f.index+1)}}return s+a+s}function j3(){return"`"}function Fw(e,t){const r=Ap(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Gw.peek=L3;function Gw(e,t,r,a){const s=Up(r),o=s==='"'?"Quote":"Apostrophe",c=r.createTracker(a);let d,f;if(Fw(e,r)){const m=r.stack;r.stack=[],d=r.enter("autolink");let p=c.move("<");return p+=c.move(r.containerPhrasing(e,{before:p,after:">",...c.current()})),p+=c.move(">"),d(),r.stack=m,p}d=r.enter("link"),f=r.enter("label");let h=c.move("[");return h+=c.move(r.containerPhrasing(e,{before:h,after:"](",...c.current()})),h+=c.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=r.enter("destinationLiteral"),h+=c.move("<"),h+=c.move(r.safe(e.url,{before:h,after:">",...c.current()})),h+=c.move(">")):(f=r.enter("destinationRaw"),h+=c.move(r.safe(e.url,{before:h,after:e.title?" ":")",...c.current()}))),f(),e.title&&(f=r.enter(`title${o}`),h+=c.move(" "+s),h+=c.move(r.safe(e.title,{before:h,after:s,...c.current()})),h+=c.move(s),f()),h+=c.move(")"),d(),h}function L3(e,t,r){return Fw(e,r)?"<":"["}Vw.peek=z3;function Vw(e,t,r,a){const s=e.referenceType,o=r.enter("linkReference");let c=r.enter("label");const d=r.createTracker(a);let f=d.move("[");const h=r.containerPhrasing(e,{before:f,after:"]",...d.current()});f+=d.move(h+"]["),c();const m=r.stack;r.stack=[],c=r.enter("reference");const p=r.safe(r.associationId(e),{before:f,after:"]",...d.current()});return c(),r.stack=m,o(),s==="full"||!h||h!==p?f+=d.move(p+"]"):s==="shortcut"?f=f.slice(0,-1):f+=d.move("]"),f}function z3(){return"["}function Hp(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function I3(e){const t=Hp(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function B3(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Yw(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function U3(e,t,r,a){const s=r.enter("list"),o=r.bulletCurrent;let c=e.ordered?B3(r):Hp(r);const d=e.ordered?c==="."?")":".":I3(r);let f=t&&r.bulletLastUsed?c===r.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&m&&(!m.children||!m.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(f=!0),Yw(r)===c&&m){let p=-1;for(;++p<e.children.length;){const y=e.children[p];if(y&&y.type==="listItem"&&y.children&&y.children[0]&&y.children[0].type==="thematicBreak"){f=!0;break}}}}f&&(c=d),r.bulletCurrent=c;const h=r.containerFlow(e,a);return r.bulletLastUsed=c,r.bulletCurrent=o,s(),h}function H3(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function $3(e,t,r,a){const s=H3(r);let o=r.bulletCurrent||Hp(r);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let c=o.length+1;(s==="tab"||s==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(c=Math.ceil(c/4)*4);const d=r.createTracker(a);d.move(o+" ".repeat(c-o.length)),d.shift(c);const f=r.enter("listItem"),h=r.indentLines(r.containerFlow(e,d.current()),m);return f(),h;function m(p,y,x){return y?(x?"":" ".repeat(c))+p:(x?o:o+" ".repeat(c-o.length))+p}}function q3(e,t,r,a){const s=r.enter("paragraph"),o=r.enter("phrasing"),c=r.containerPhrasing(e,a);return o(),s(),c}const P3=Gu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function F3(e,t,r,a){return(e.children.some(function(c){return P3(c)})?r.containerPhrasing:r.containerFlow).call(r,e,a)}function G3(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Xw.peek=V3;function Xw(e,t,r,a){const s=G3(r),o=r.enter("strong"),c=r.createTracker(a),d=c.move(s+s);let f=c.move(r.containerPhrasing(e,{after:s,before:d,...c.current()}));const h=f.charCodeAt(0),m=Nu(a.before.charCodeAt(a.before.length-1),h,s);m.inside&&(f=go(h)+f.slice(1));const p=f.charCodeAt(f.length-1),y=Nu(a.after.charCodeAt(0),p,s);y.inside&&(f=f.slice(0,-1)+go(p));const x=c.move(s+s);return o(),r.attentionEncodeSurroundingInfo={after:y.outside,before:m.outside},d+f+x}function V3(e,t,r){return r.options.strong||"*"}function Y3(e,t,r,a){return r.safe(e.value,a)}function X3(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function K3(e,t,r){const a=(Yw(r)+(r.options.ruleSpaces?" ":"")).repeat(X3(r));return r.options.ruleSpaces?a.slice(0,-1):a}const Kw={blockquote:x3,break:Xy,code:N3,definition:k3,emphasis:Uw,hardBreak:Xy,heading:M3,html:Hw,image:$w,imageReference:qw,inlineCode:Pw,link:Gw,linkReference:Vw,list:U3,listItem:$3,paragraph:q3,root:F3,strong:Xw,text:Y3,thematicBreak:K3};function Z3(){return{enter:{table:Q3,tableData:Ky,tableHeader:Ky,tableRow:J3},exit:{codeText:e4,table:W3,tableData:Oh,tableHeader:Oh,tableRow:Oh}}}function Q3(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function W3(e){this.exit(e),this.data.inTable=void 0}function J3(e){this.enter({type:"tableRow",children:[]},e)}function Oh(e){this.exit(e)}function Ky(e){this.enter({type:"tableCell",children:[]},e)}function e4(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,t4));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function t4(e,t){return t==="|"?t:e}function n4(e){const t=e||{},r=t.tableCellPadding,a=t.tablePipeAlign,s=t.stringLength,o=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
+`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:y,table:c,tableCell:f,tableRow:d}};function c(x,_,N,S){return h(m(x,N,S),x.align)}function d(x,_,N,S){const w=p(x,N,S),k=h([w]);return k.slice(0,k.indexOf(`
+`))}function f(x,_,N,S){const w=N.enter("tableCell"),k=N.enter("phrasing"),E=N.containerPhrasing(x,{...S,before:o,after:o});return k(),w(),E}function h(x,_){return g3(x,{align:_,alignDelimiters:a,padding:r,stringLength:s})}function m(x,_,N){const S=x.children;let w=-1;const k=[],E=_.enter("table");for(;++w<S.length;)k[w]=p(S[w],_,N);return E(),k}function p(x,_,N){const S=x.children;let w=-1;const k=[],E=_.enter("tableRow");for(;++w<S.length;)k[w]=f(S[w],x,_,N);return E(),k}function y(x,_,N){let S=Kw.inlineCode(x,_,N);return N.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function r4(){return{exit:{taskListCheckValueChecked:Zy,taskListCheckValueUnchecked:Zy,paragraph:a4}}}function i4(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:s4}}}function Zy(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function a4(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const a=r.children[0];if(a&&a.type==="text"){const s=t.children;let o=-1,c;for(;++o<s.length;){const d=s[o];if(d.type==="paragraph"){c=d;break}}c===r&&(a.value=a.value.slice(1),a.value.length===0?r.children.shift():r.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,r.position.start=Object.assign({},a.position.start)))}}this.exit(e)}function s4(e,t,r,a){const s=e.children[0],o=typeof e.checked=="boolean"&&s&&s.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",d=r.createTracker(a);o&&d.move(c);let f=Kw.listItem(e,t,r,{...a,...d.current()});return o&&(f=f.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),f;function h(m){return m+c}}function l4(){return[UR(),s3(),u3(),Z3(),r4()]}function o4(e){return{extensions:[HR(),l3(e),d3(),n4(e),i4()]}}const c4={tokenize:p4,partial:!0},Zw={tokenize:g4,partial:!0},Qw={tokenize:b4,partial:!0},Ww={tokenize:x4,partial:!0},u4={tokenize:y4,partial:!0},Jw={name:"wwwAutolink",tokenize:h4,previous:tE},eE={name:"protocolAutolink",tokenize:m4,previous:nE},Ei={name:"emailAutolink",tokenize:f4,previous:rE},Kr={};function d4(){return{text:Kr}}let za=48;for(;za<123;)Kr[za]=Ei,za++,za===58?za=65:za===91&&(za=97);Kr[43]=Ei;Kr[45]=Ei;Kr[46]=Ei;Kr[95]=Ei;Kr[72]=[Ei,eE];Kr[104]=[Ei,eE];Kr[87]=[Ei,Jw];Kr[119]=[Ei,Jw];function f4(e,t,r){const a=this;let s,o;return c;function c(p){return!Qm(p)||!rE.call(a,a.previous)||$p(a.events)?r(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(p))}function d(p){return Qm(p)?(e.consume(p),d):p===64?(e.consume(p),f):r(p)}function f(p){return p===46?e.check(u4,m,h)(p):p===45||p===95||Tn(p)?(o=!0,e.consume(p),f):m(p)}function h(p){return e.consume(p),s=!0,f}function m(p){return o&&s&&jn(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):r(p)}}function h4(e,t,r){const a=this;return s;function s(c){return c!==87&&c!==119||!tE.call(a,a.previous)||$p(a.events)?r(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(c4,e.attempt(Zw,e.attempt(Qw,o),r),r)(c))}function o(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(c)}}function m4(e,t,r){const a=this;let s="",o=!1;return c;function c(p){return(p===72||p===104)&&nE.call(a,a.previous)&&!$p(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(p),e.consume(p),d):r(p)}function d(p){if(jn(p)&&s.length<5)return s+=String.fromCodePoint(p),e.consume(p),d;if(p===58){const y=s.toLowerCase();if(y==="http"||y==="https")return e.consume(p),f}return r(p)}function f(p){return p===47?(e.consume(p),o?h:(o=!0,f)):r(p)}function h(p){return p===null||_u(p)||Ct(p)||Fa(p)||qu(p)?r(p):e.attempt(Zw,e.attempt(Qw,m),r)(p)}function m(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}function p4(e,t,r){let a=0;return s;function s(c){return(c===87||c===119)&&a<3?(a++,e.consume(c),s):c===46&&a===3?(e.consume(c),o):r(c)}function o(c){return c===null?r(c):t(c)}}function g4(e,t,r){let a,s,o;return c;function c(h){return h===46||h===95?e.check(Ww,f,d)(h):h===null||Ct(h)||Fa(h)||h!==45&&qu(h)?f(h):(o=!0,e.consume(h),c)}function d(h){return h===95?a=!0:(s=a,a=void 0),e.consume(h),c}function f(h){return s||a||!o?r(h):t(h)}}function b4(e,t){let r=0,a=0;return s;function s(c){return c===40?(r++,e.consume(c),s):c===41&&a<r?o(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?e.check(Ww,t,o)(c):c===null||Ct(c)||Fa(c)?t(c):(e.consume(c),s)}function o(c){return c===41&&a++,e.consume(c),s}}function x4(e,t,r){return a;function a(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(e.consume(d),a):d===38?(e.consume(d),o):d===93?(e.consume(d),s):d===60||d===null||Ct(d)||Fa(d)?t(d):r(d)}function s(d){return d===null||d===40||d===91||Ct(d)||Fa(d)?t(d):a(d)}function o(d){return jn(d)?c(d):r(d)}function c(d){return d===59?(e.consume(d),a):jn(d)?(e.consume(d),c):r(d)}}function y4(e,t,r){return a;function a(o){return e.consume(o),s}function s(o){return Tn(o)?r(o):t(o)}}function tE(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ct(e)}function nE(e){return!jn(e)}function rE(e){return!(e===47||Qm(e))}function Qm(e){return e===43||e===45||e===46||e===95||Tn(e)}function $p(e){let t=e.length,r=!1;for(;t--;){const a=e[t][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){r=!0;break}if(a._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const v4={tokenize:C4,partial:!0};function _4(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:S4,continuation:{tokenize:k4},exit:T4}},text:{91:{name:"gfmFootnoteCall",tokenize:N4},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:w4,resolveTo:E4}}}}function w4(e,t,r){const a=this;let s=a.events.length;const o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c;for(;s--;){const f=a.events[s][1];if(f.type==="labelImage"){c=f;break}if(f.type==="gfmFootnoteCall"||f.type==="labelLink"||f.type==="label"||f.type==="image"||f.type==="link")break}return d;function d(f){if(!c||!c._balanced)return r(f);const h=Dr(a.sliceSerialize({start:c.end,end:a.now()}));return h.codePointAt(0)!==94||!o.includes(h.slice(1))?r(f):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),t(f))}}function E4(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},d=[e[r+1],e[r+2],["enter",a,t],e[r+3],e[r+4],["enter",s,t],["exit",s,t],["enter",o,t],["enter",c,t],["exit",c,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",a,t]];return e.splice(r,e.length-r+1,...d),e}function N4(e,t,r){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let o=0,c;return d;function d(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),f}function f(p){return p!==94?r(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(p){if(o>999||p===93&&!c||p===null||p===91||Ct(p))return r(p);if(p===93){e.exit("chunkString");const y=e.exit("gfmFootnoteCallString");return s.includes(Dr(a.sliceSerialize(y)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(p)}return Ct(p)||(c=!0),o++,e.consume(p),p===92?m:h}function m(p){return p===91||p===92||p===93?(e.consume(p),o++,h):h(p)}}function S4(e,t,r){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let o,c=0,d;return f;function f(_){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(_){return _===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):r(_)}function m(_){if(c>999||_===93&&!d||_===null||_===91||Ct(_))return r(_);if(_===93){e.exit("chunkString");const N=e.exit("gfmFootnoteDefinitionLabelString");return o=Dr(a.sliceSerialize(N)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),y}return Ct(_)||(d=!0),c++,e.consume(_),_===92?p:m}function p(_){return _===91||_===92||_===93?(e.consume(_),c++,m):m(_)}function y(_){return _===58?(e.enter("definitionMarker"),e.consume(_),e.exit("definitionMarker"),s.includes(o)||s.push(o),ot(e,x,"gfmFootnoteDefinitionWhitespace")):r(_)}function x(_){return t(_)}}function k4(e,t,r){return e.check(Oo,t,e.attempt(v4,t,r))}function T4(e){e.exit("gfmFootnoteDefinition")}function C4(e,t,r){const a=this;return ot(e,s,"gfmFootnoteDefinitionIndent",5);function s(o){const c=a.events[a.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?t(o):r(o)}}function A4(e){let r=(e||{}).singleTilde;const a={name:"strikethrough",tokenize:o,resolveAll:s};return r==null&&(r=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function s(c,d){let f=-1;for(;++f<c.length;)if(c[f][0]==="enter"&&c[f][1].type==="strikethroughSequenceTemporary"&&c[f][1]._close){let h=f;for(;h--;)if(c[h][0]==="exit"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._open&&c[f][1].end.offset-c[f][1].start.offset===c[h][1].end.offset-c[h][1].start.offset){c[f][1].type="strikethroughSequence",c[h][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},c[h][1].start),end:Object.assign({},c[f][1].end)},p={type:"strikethroughText",start:Object.assign({},c[h][1].end),end:Object.assign({},c[f][1].start)},y=[["enter",m,d],["enter",c[h][1],d],["exit",c[h][1],d],["enter",p,d]],x=d.parser.constructs.insideSpan.null;x&&ir(y,y.length,0,Pu(x,c.slice(h+1,f),d)),ir(y,y.length,0,[["exit",p,d],["enter",c[f][1],d],["exit",c[f][1],d],["exit",m,d]]),ir(c,h-1,f-h+3,y),f=h+y.length-2;break}}for(f=-1;++f<c.length;)c[f][1].type==="strikethroughSequenceTemporary"&&(c[f][1].type="data");return c}function o(c,d,f){const h=this.previous,m=this.events;let p=0;return y;function y(_){return h===126&&m[m.length-1][1].type!=="characterEscape"?f(_):(c.enter("strikethroughSequenceTemporary"),x(_))}function x(_){const N=Ys(h);if(_===126)return p>1?f(_):(c.consume(_),p++,x);if(p<2&&!r)return f(_);const S=c.exit("strikethroughSequenceTemporary"),w=Ys(_);return S._open=!w||w===2&&!!N,S._close=!N||N===2&&!!w,d(_)}}}class M4{constructor(){this.map=[]}add(t,r,a){O4(this,t,r,a)}consume(t){if(this.map.sort(function(o,c){return o[0]-c[0]}),this.map.length===0)return;let r=this.map.length;const a=[];for(;r>0;)r-=1,a.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];a.push(t.slice()),t.length=0;let s=a.pop();for(;s;){for(const o of s)t.push(o);s=a.pop()}this.map.length=0}}function O4(e,t,r,a){let s=0;if(!(r===0&&a.length===0)){for(;s<e.map.length;){if(e.map[s][0]===t){e.map[s][1]+=r,e.map[s][2].push(...a);return}s+=1}e.map.push([t,r,a])}}function R4(e,t){let r=!1;const a=[];for(;t<e.length;){const s=e[t];if(r){if(s[0]==="enter")s[1].type==="tableContent"&&a.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=a.length-1;a[o]=a[o]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return a}function D4(){return{flow:{null:{name:"table",tokenize:j4,resolveAll:L4}}}}function j4(e,t,r){const a=this;let s=0,o=0,c;return d;function d(D){let L=a.events.length-1;for(;L>-1;){const A=a.events[L][1].type;if(A==="lineEnding"||A==="linePrefix")L--;else break}const G=L>-1?a.events[L][1].type:null,V=G==="tableHead"||G==="tableRow"?R:f;return V===R&&a.parser.lazy[a.now().line]?r(D):V(D)}function f(D){return e.enter("tableHead"),e.enter("tableRow"),h(D)}function h(D){return D===124||(c=!0,o+=1),m(D)}function m(D){return D===null?r(D):Be(D)?o>1?(o=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),x):r(D):tt(D)?ot(e,m,"whitespace")(D):(o+=1,c&&(c=!1,s+=1),D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),c=!0,m):(e.enter("data"),p(D)))}function p(D){return D===null||D===124||Ct(D)?(e.exit("data"),m(D)):(e.consume(D),D===92?y:p)}function y(D){return D===92||D===124?(e.consume(D),p):p(D)}function x(D){return a.interrupt=!1,a.parser.lazy[a.now().line]?r(D):(e.enter("tableDelimiterRow"),c=!1,tt(D)?ot(e,_,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):_(D))}function _(D){return D===45||D===58?S(D):D===124?(c=!0,e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),N):I(D)}function N(D){return tt(D)?ot(e,S,"whitespace")(D):S(D)}function S(D){return D===58?(o+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),w):D===45?(o+=1,w(D)):D===null||Be(D)?M(D):I(D)}function w(D){return D===45?(e.enter("tableDelimiterFiller"),k(D)):I(D)}function k(D){return D===45?(e.consume(D),k):D===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),E):(e.exit("tableDelimiterFiller"),E(D))}function E(D){return tt(D)?ot(e,M,"whitespace")(D):M(D)}function M(D){return D===124?_(D):D===null||Be(D)?!c||s!==o?I(D):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(D)):I(D)}function I(D){return r(D)}function R(D){return e.enter("tableRow"),U(D)}function U(D){return D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),U):D===null||Be(D)?(e.exit("tableRow"),t(D)):tt(D)?ot(e,U,"whitespace")(D):(e.enter("data"),B(D))}function B(D){return D===null||D===124||Ct(D)?(e.exit("data"),U(D)):(e.consume(D),D===92?Z:B)}function Z(D){return D===92||D===124?(e.consume(D),B):B(D)}}function L4(e,t){let r=-1,a=!0,s=0,o=[0,0,0,0],c=[0,0,0,0],d=!1,f=0,h,m,p;const y=new M4;for(;++r<e.length;){const x=e[r],_=x[1];x[0]==="enter"?_.type==="tableHead"?(d=!1,f!==0&&(Qy(y,t,f,h,m),m=void 0,f=0),h={type:"table",start:Object.assign({},_.start),end:Object.assign({},_.end)},y.add(r,0,[["enter",h,t]])):_.type==="tableRow"||_.type==="tableDelimiterRow"?(a=!0,p=void 0,o=[0,0,0,0],c=[0,r+1,0,0],d&&(d=!1,m={type:"tableBody",start:Object.assign({},_.start),end:Object.assign({},_.end)},y.add(r,0,[["enter",m,t]])),s=_.type==="tableDelimiterRow"?2:m?3:1):s&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")?(a=!1,c[2]===0&&(o[1]!==0&&(c[0]=c[1],p=nu(y,t,o,s,void 0,p),o=[0,0,0,0]),c[2]=r)):_.type==="tableCellDivider"&&(a?a=!1:(o[1]!==0&&(c[0]=c[1],p=nu(y,t,o,s,void 0,p)),o=c,c=[o[1],r,0,0])):_.type==="tableHead"?(d=!0,f=r):_.type==="tableRow"||_.type==="tableDelimiterRow"?(f=r,o[1]!==0?(c[0]=c[1],p=nu(y,t,o,s,r,p)):c[1]!==0&&(p=nu(y,t,c,s,r,p)),s=0):s&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")&&(c[3]=r)}for(f!==0&&Qy(y,t,f,h,m),y.consume(t.events),r=-1;++r<t.events.length;){const x=t.events[r];x[0]==="enter"&&x[1].type==="table"&&(x[1]._align=R4(t.events,r))}return e}function nu(e,t,r,a,s,o){const c=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",d="tableContent";r[0]!==0&&(o.end=Object.assign({},Bs(t.events,r[0])),e.add(r[0],0,[["exit",o,t]]));const f=Bs(t.events,r[1]);if(o={type:c,start:Object.assign({},f),end:Object.assign({},f)},e.add(r[1],0,[["enter",o,t]]),r[2]!==0){const h=Bs(t.events,r[2]),m=Bs(t.events,r[3]),p={type:d,start:Object.assign({},h),end:Object.assign({},m)};if(e.add(r[2],0,[["enter",p,t]]),a!==2){const y=t.events[r[2]],x=t.events[r[3]];if(y[1].end=Object.assign({},x[1].end),y[1].type="chunkText",y[1].contentType="text",r[3]>r[2]+1){const _=r[2]+1,N=r[3]-r[2]-1;e.add(_,N,[])}}e.add(r[3]+1,0,[["exit",p,t]])}return s!==void 0&&(o.end=Object.assign({},Bs(t.events,s)),e.add(s,0,[["exit",o,t]]),o=void 0),o}function Qy(e,t,r,a,s){const o=[],c=Bs(t.events,r);s&&(s.end=Object.assign({},c),o.push(["exit",s,t])),a.end=Object.assign({},c),o.push(["exit",a,t]),e.add(r+1,0,o)}function Bs(e,t){const r=e[t],a=r[0]==="enter"?"start":"end";return r[1][a]}const z4={name:"tasklistCheck",tokenize:B4};function I4(){return{text:{91:z4}}}function B4(e,t,r){const a=this;return s;function s(f){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?r(f):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),o)}function o(f){return Ct(f)?(e.enter("taskListCheckValueUnchecked"),e.consume(f),e.exit("taskListCheckValueUnchecked"),c):f===88||f===120?(e.enter("taskListCheckValueChecked"),e.consume(f),e.exit("taskListCheckValueChecked"),c):r(f)}function c(f){return f===93?(e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),d):r(f)}function d(f){return Be(f)?t(f):tt(f)?e.check({tokenize:U4},t,r)(f):r(f)}}function U4(e,t,r){return ot(e,a,"whitespace");function a(s){return s===null?r(s):t(s)}}function H4(e){return hw([d4(),_4(),A4(e),D4(),I4()])}const $4={};function qp(e){const t=this,r=e||$4,a=t.data(),s=a.micromarkExtensions||(a.micromarkExtensions=[]),o=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),c=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);s.push(H4(r)),o.push(l4()),c.push(o4(r))}var Rh,Wy;function q4(){if(Wy)return Rh;Wy=1;function e(re){return re instanceof Map?re.clear=re.delete=re.set=function(){throw new Error("map is read-only")}:re instanceof Set&&(re.add=re.clear=re.delete=function(){throw new Error("set is read-only")}),Object.freeze(re),Object.getOwnPropertyNames(re).forEach(me=>{const Ee=re[me],Pe=typeof Ee;(Pe==="object"||Pe==="function")&&!Object.isFrozen(Ee)&&e(Ee)}),re}class t{constructor(me){me.data===void 0&&(me.data={}),this.data=me.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(re){return re.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function a(re,...me){const Ee=Object.create(null);for(const Pe in re)Ee[Pe]=re[Pe];return me.forEach(function(Pe){for(const St in Pe)Ee[St]=Pe[St]}),Ee}const s="</span>",o=re=>!!re.scope,c=(re,{prefix:me})=>{if(re.startsWith("language:"))return re.replace("language:","language-");if(re.includes(".")){const Ee=re.split(".");return[`${me}${Ee.shift()}`,...Ee.map((Pe,St)=>`${Pe}${"_".repeat(St+1)}`)].join(" ")}return`${me}${re}`};class d{constructor(me,Ee){this.buffer="",this.classPrefix=Ee.classPrefix,me.walk(this)}addText(me){this.buffer+=r(me)}openNode(me){if(!o(me))return;const Ee=c(me.scope,{prefix:this.classPrefix});this.span(Ee)}closeNode(me){o(me)&&(this.buffer+=s)}value(){return this.buffer}span(me){this.buffer+=`<span class="${me}">`}}const f=(re={})=>{const me={children:[]};return Object.assign(me,re),me};class h{constructor(){this.rootNode=f(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(me){this.top.children.push(me)}openNode(me){const Ee=f({scope:me});this.add(Ee),this.stack.push(Ee)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(me){return this.constructor._walk(me,this.rootNode)}static _walk(me,Ee){return typeof Ee=="string"?me.addText(Ee):Ee.children&&(me.openNode(Ee),Ee.children.forEach(Pe=>this._walk(me,Pe)),me.closeNode(Ee)),me}static _collapse(me){typeof me!="string"&&me.children&&(me.children.every(Ee=>typeof Ee=="string")?me.children=[me.children.join("")]:me.children.forEach(Ee=>{h._collapse(Ee)}))}}class m extends h{constructor(me){super(),this.options=me}addText(me){me!==""&&this.add(me)}startScope(me){this.openNode(me)}endScope(){this.closeNode()}__addSublanguage(me,Ee){const Pe=me.root;Ee&&(Pe.scope=`language:${Ee}`),this.add(Pe)}toHTML(){return new d(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function p(re){return re?typeof re=="string"?re:re.source:null}function y(re){return N("(?=",re,")")}function x(re){return N("(?:",re,")*")}function _(re){return N("(?:",re,")?")}function N(...re){return re.map(Ee=>p(Ee)).join("")}function S(re){const me=re[re.length-1];return typeof me=="object"&&me.constructor===Object?(re.splice(re.length-1,1),me):{}}function w(...re){return"("+(S(re).capture?"":"?:")+re.map(Pe=>p(Pe)).join("|")+")"}function k(re){return new RegExp(re.toString()+"|").exec("").length-1}function E(re,me){const Ee=re&&re.exec(me);return Ee&&Ee.index===0}const M=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function I(re,{joinWith:me}){let Ee=0;return re.map(Pe=>{Ee+=1;const St=Ee;let gt=p(Pe),Ae="";for(;gt.length>0;){const Se=M.exec(gt);if(!Se){Ae+=gt;break}Ae+=gt.substring(0,Se.index),gt=gt.substring(Se.index+Se[0].length),Se[0][0]==="\\"&&Se[1]?Ae+="\\"+String(Number(Se[1])+St):(Ae+=Se[0],Se[0]==="("&&Ee++)}return Ae}).map(Pe=>`(${Pe})`).join(me)}const R=/\b\B/,U="[a-zA-Z]\\w*",B="[a-zA-Z_]\\w*",Z="\\b\\d+(\\.\\d+)?",D="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",L="\\b(0b[01]+)",G="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",V=(re={})=>{const me=/^#![ ]*\//;return re.binary&&(re.begin=N(me,/.*\b/,re.binary,/\b.*/)),a({scope:"meta",begin:me,end:/$/,relevance:0,"on:begin":(Ee,Pe)=>{Ee.index!==0&&Pe.ignoreMatch()}},re)},A={begin:"\\\\[\\s\\S]",relevance:0},q={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[A]},O={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[A]},H={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},X=function(re,me,Ee={}){const Pe=a({scope:"comment",begin:re,end:me,contains:[]},Ee);Pe.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const St=w("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Pe.contains.push({begin:N(/[ ]+/,"(",St,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Pe},K=X("//","$"),T=X("/\\*","\\*/"),j=X("#","$"),Y={scope:"number",begin:Z,relevance:0},z={scope:"number",begin:D,relevance:0},F={scope:"number",begin:L,relevance:0},$={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[A,{begin:/\[/,end:/\]/,relevance:0,contains:[A]}]},Q={scope:"title",begin:U,relevance:0},J={scope:"title",begin:B,relevance:0},W={begin:"\\.\\s*"+B,relevance:0};var ce=Object.freeze({__proto__:null,APOS_STRING_MODE:q,BACKSLASH_ESCAPE:A,BINARY_NUMBER_MODE:F,BINARY_NUMBER_RE:L,COMMENT:X,C_BLOCK_COMMENT_MODE:T,C_LINE_COMMENT_MODE:K,C_NUMBER_MODE:z,C_NUMBER_RE:D,END_SAME_AS_BEGIN:function(re){return Object.assign(re,{"on:begin":(me,Ee)=>{Ee.data._beginMatch=me[1]},"on:end":(me,Ee)=>{Ee.data._beginMatch!==me[1]&&Ee.ignoreMatch()}})},HASH_COMMENT_MODE:j,IDENT_RE:U,MATCH_NOTHING_RE:R,METHOD_GUARD:W,NUMBER_MODE:Y,NUMBER_RE:Z,PHRASAL_WORDS_MODE:H,QUOTE_STRING_MODE:O,REGEXP_MODE:$,RE_STARTERS_RE:G,SHEBANG:V,TITLE_MODE:Q,UNDERSCORE_IDENT_RE:B,UNDERSCORE_TITLE_MODE:J});function fe(re,me){re.input[re.index-1]==="."&&me.ignoreMatch()}function be(re,me){re.className!==void 0&&(re.scope=re.className,delete re.className)}function we(re,me){me&&re.beginKeywords&&(re.begin="\\b("+re.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",re.__beforeBegin=fe,re.keywords=re.keywords||re.beginKeywords,delete re.beginKeywords,re.relevance===void 0&&(re.relevance=0))}function Ne(re,me){Array.isArray(re.illegal)&&(re.illegal=w(...re.illegal))}function je(re,me){if(re.match){if(re.begin||re.end)throw new Error("begin & end are not supported with match");re.begin=re.match,delete re.match}}function $e(re,me){re.relevance===void 0&&(re.relevance=1)}const st=(re,me)=>{if(!re.beforeMatch)return;if(re.starts)throw new Error("beforeMatch cannot be used with starts");const Ee=Object.assign({},re);Object.keys(re).forEach(Pe=>{delete re[Pe]}),re.keywords=Ee.keywords,re.begin=N(Ee.beforeMatch,y(Ee.begin)),re.starts={relevance:0,contains:[Object.assign(Ee,{endsParent:!0})]},re.relevance=0,delete Ee.beforeMatch},Rt=["of","and","for","in","not","or","if","then","parent","list","value"],Yt="keyword";function Pt(re,me,Ee=Yt){const Pe=Object.create(null);return typeof re=="string"?St(Ee,re.split(" ")):Array.isArray(re)?St(Ee,re):Object.keys(re).forEach(function(gt){Object.assign(Pe,Pt(re[gt],me,gt))}),Pe;function St(gt,Ae){me&&(Ae=Ae.map(Se=>Se.toLowerCase())),Ae.forEach(function(Se){const Ue=Se.split("|");Pe[Ue[0]]=[gt,Xt(Ue[0],Ue[1])]})}}function Xt(re,me){return me?Number(me):Yn(re)?0:1}function Yn(re){return Rt.includes(re.toLowerCase())}const wn={},ct=re=>{console.error(re)},It=(re,...me)=>{console.log(`WARN: ${re}`,...me)},ue=(re,me)=>{wn[`${re}/${me}`]||(console.log(`Deprecated as of ${re}. ${me}`),wn[`${re}/${me}`]=!0)},xe=new Error;function Oe(re,me,{key:Ee}){let Pe=0;const St=re[Ee],gt={},Ae={};for(let Se=1;Se<=me.length;Se++)Ae[Se+Pe]=St[Se],gt[Se+Pe]=!0,Pe+=k(me[Se-1]);re[Ee]=Ae,re[Ee]._emit=gt,re[Ee]._multi=!0}function Fe(re){if(Array.isArray(re.begin)){if(re.skip||re.excludeBegin||re.returnBegin)throw ct("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),xe;if(typeof re.beginScope!="object"||re.beginScope===null)throw ct("beginScope must be object"),xe;Oe(re,re.begin,{key:"beginScope"}),re.begin=I(re.begin,{joinWith:""})}}function Ze(re){if(Array.isArray(re.end)){if(re.skip||re.excludeEnd||re.returnEnd)throw ct("skip, excludeEnd, returnEnd not compatible with endScope: {}"),xe;if(typeof re.endScope!="object"||re.endScope===null)throw ct("endScope must be object"),xe;Oe(re,re.end,{key:"endScope"}),re.end=I(re.end,{joinWith:""})}}function on(re){re.scope&&typeof re.scope=="object"&&re.scope!==null&&(re.beginScope=re.scope,delete re.scope)}function En(re){on(re),typeof re.beginScope=="string"&&(re.beginScope={_wrap:re.beginScope}),typeof re.endScope=="string"&&(re.endScope={_wrap:re.endScope}),Fe(re),Ze(re)}function Kt(re){function me(Ae,Se){return new RegExp(p(Ae),"m"+(re.case_insensitive?"i":"")+(re.unicodeRegex?"u":"")+(Se?"g":""))}class Ee{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Se,Ue){Ue.position=this.position++,this.matchIndexes[this.matchAt]=Ue,this.regexes.push([Ue,Se]),this.matchAt+=k(Se)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Se=this.regexes.map(Ue=>Ue[1]);this.matcherRe=me(I(Se,{joinWith:"|"}),!0),this.lastIndex=0}exec(Se){this.matcherRe.lastIndex=this.lastIndex;const Ue=this.matcherRe.exec(Se);if(!Ue)return null;const Bt=Ue.findIndex((xr,Si)=>Si>0&&xr!==void 0),Mt=this.matchIndexes[Bt];return Ue.splice(0,Bt),Object.assign(Ue,Mt)}}class Pe{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Se){if(this.multiRegexes[Se])return this.multiRegexes[Se];const Ue=new Ee;return this.rules.slice(Se).forEach(([Bt,Mt])=>Ue.addRule(Bt,Mt)),Ue.compile(),this.multiRegexes[Se]=Ue,Ue}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Se,Ue){this.rules.push([Se,Ue]),Ue.type==="begin"&&this.count++}exec(Se){const Ue=this.getMatcher(this.regexIndex);Ue.lastIndex=this.lastIndex;let Bt=Ue.exec(Se);if(this.resumingScanAtSamePosition()&&!(Bt&&Bt.index===this.lastIndex)){const Mt=this.getMatcher(0);Mt.lastIndex=this.lastIndex+1,Bt=Mt.exec(Se)}return Bt&&(this.regexIndex+=Bt.position+1,this.regexIndex===this.count&&this.considerAll()),Bt}}function St(Ae){const Se=new Pe;return Ae.contains.forEach(Ue=>Se.addRule(Ue.begin,{rule:Ue,type:"begin"})),Ae.terminatorEnd&&Se.addRule(Ae.terminatorEnd,{type:"end"}),Ae.illegal&&Se.addRule(Ae.illegal,{type:"illegal"}),Se}function gt(Ae,Se){const Ue=Ae;if(Ae.isCompiled)return Ue;[be,je,En,st].forEach(Mt=>Mt(Ae,Se)),re.compilerExtensions.forEach(Mt=>Mt(Ae,Se)),Ae.__beforeBegin=null,[we,Ne,$e].forEach(Mt=>Mt(Ae,Se)),Ae.isCompiled=!0;let Bt=null;return typeof Ae.keywords=="object"&&Ae.keywords.$pattern&&(Ae.keywords=Object.assign({},Ae.keywords),Bt=Ae.keywords.$pattern,delete Ae.keywords.$pattern),Bt=Bt||/\w+/,Ae.keywords&&(Ae.keywords=Pt(Ae.keywords,re.case_insensitive)),Ue.keywordPatternRe=me(Bt,!0),Se&&(Ae.begin||(Ae.begin=/\B|\b/),Ue.beginRe=me(Ue.begin),!Ae.end&&!Ae.endsWithParent&&(Ae.end=/\B|\b/),Ae.end&&(Ue.endRe=me(Ue.end)),Ue.terminatorEnd=p(Ue.end)||"",Ae.endsWithParent&&Se.terminatorEnd&&(Ue.terminatorEnd+=(Ae.end?"|":"")+Se.terminatorEnd)),Ae.illegal&&(Ue.illegalRe=me(Ae.illegal)),Ae.contains||(Ae.contains=[]),Ae.contains=[].concat(...Ae.contains.map(function(Mt){return Wt(Mt==="self"?Ae:Mt)})),Ae.contains.forEach(function(Mt){gt(Mt,Ue)}),Ae.starts&&gt(Ae.starts,Se),Ue.matcher=St(Ue),Ue}if(re.compilerExtensions||(re.compilerExtensions=[]),re.contains&&re.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return re.classNameAliases=a(re.classNameAliases||{}),gt(re)}function At(re){return re?re.endsWithParent||At(re.starts):!1}function Wt(re){return re.variants&&!re.cachedVariants&&(re.cachedVariants=re.variants.map(function(me){return a(re,{variants:null},me)})),re.cachedVariants?re.cachedVariants:At(re)?a(re,{starts:re.starts?a(re.starts):null}):Object.isFrozen(re)?a(re):re}var ut="11.11.1";class zn extends Error{constructor(me,Ee){super(me),this.name="HTMLInjectionError",this.html=Ee}}const cn=r,Ni=a,nt=Symbol("nomatch"),Xn=7,An=function(re){const me=Object.create(null),Ee=Object.create(null),Pe=[];let St=!0;const gt="Could not find the language '{}', did you forget to load/include a language module?",Ae={disableAutodetect:!0,name:"Plain text",contains:[]};let Se={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:m};function Ue(ye){return Se.noHighlightRe.test(ye)}function Bt(ye){let Le=ye.className+" ";Le+=ye.parentNode?ye.parentNode.className:"";const Qe=Se.languageDetectRe.exec(Le);if(Qe){const ft=bn(Qe[1]);return ft||(It(gt.replace("{}",Qe[1])),It("Falling back to no-highlight mode for this block.",ye)),ft?Qe[1]:"no-highlight"}return Le.split(/\s+/).find(ft=>Ue(ft)||bn(ft))}function Mt(ye,Le,Qe){let ft="",Ht="";typeof Le=="object"?(ft=ye,Qe=Le.ignoreIllegals,Ht=Le.language):(ue("10.7.0","highlight(lang, code, ...args) has been deprecated."),ue("10.7.0",`Please use highlight(code, options) instead.
+https://github.com/highlightjs/highlight.js/issues/2277`),Ht=ye,ft=Le),Qe===void 0&&(Qe=!0);const pn={code:ft,language:Ht};Jr("before:highlight",pn);const Mn=pn.result?pn.result:xr(pn.language,pn.code,Qe);return Mn.code=pn.code,Jr("after:highlight",Mn),Mn}function xr(ye,Le,Qe,ft){const Ht=Object.create(null);function pn(_e,Re){return _e.keywords[Re]}function Mn(){if(!qe.keywords){Jt.addText(bt);return}let _e=0;qe.keywordPatternRe.lastIndex=0;let Re=qe.keywordPatternRe.exec(bt),Ye="";for(;Re;){Ye+=bt.substring(_e,Re.index);const rt=un.case_insensitive?Re[0].toLowerCase():Re[0],$t=pn(qe,rt);if($t){const[lr,al]=$t;if(Jt.addText(Ye),Ye="",Ht[rt]=(Ht[rt]||0)+1,Ht[rt]<=Xn&&(Ri+=al),lr.startsWith("_"))Ye+=Re[0];else{const $o=un.classNameAliases[lr]||lr;On(Re[0],$o)}}else Ye+=Re[0];_e=qe.keywordPatternRe.lastIndex,Re=qe.keywordPatternRe.exec(bt)}Ye+=bt.substring(_e),Jt.addText(Ye)}function Nn(){if(bt==="")return;let _e=null;if(typeof qe.subLanguage=="string"){if(!me[qe.subLanguage]){Jt.addText(bt);return}_e=xr(qe.subLanguage,bt,!0,Ho[qe.subLanguage]),Ho[qe.subLanguage]=_e._top}else _e=ki(bt,qe.subLanguage.length?qe.subLanguage:null);qe.relevance>0&&(Ri+=_e.relevance),Jt.__addSublanguage(_e._emitter,_e.language)}function _t(){qe.subLanguage!=null?Nn():Mn(),bt=""}function On(_e,Re){_e!==""&&(Jt.startScope(Re),Jt.addText(_e),Jt.endScope())}function ts(_e,Re){let Ye=1;const rt=Re.length-1;for(;Ye<=rt;){if(!_e._emit[Ye]){Ye++;continue}const $t=un.classNameAliases[_e[Ye]]||_e[Ye],lr=Re[Ye];$t?On(lr,$t):(bt=lr,Mn(),bt=""),Ye++}}function Ai(_e,Re){return _e.scope&&typeof _e.scope=="string"&&Jt.openNode(un.classNameAliases[_e.scope]||_e.scope),_e.beginScope&&(_e.beginScope._wrap?(On(bt,un.classNameAliases[_e.beginScope._wrap]||_e.beginScope._wrap),bt=""):_e.beginScope._multi&&(ts(_e.beginScope,Re),bt="")),qe=Object.create(_e,{parent:{value:qe}}),qe}function Br(_e,Re,Ye){let rt=E(_e.endRe,Ye);if(rt){if(_e["on:end"]){const $t=new t(_e);_e["on:end"](Re,$t),$t.isMatchIgnored&&(rt=!1)}if(rt){for(;_e.endsParent&&_e.parent;)_e=_e.parent;return _e}}if(_e.endsWithParent)return Br(_e.parent,Re,Ye)}function Mi(_e){return qe.matcher.regexIndex===0?(bt+=_e[0],1):(Di=!0,0)}function ns(_e){const Re=_e[0],Ye=_e.rule,rt=new t(Ye),$t=[Ye.__beforeBegin,Ye["on:begin"]];for(const lr of $t)if(lr&&(lr(_e,rt),rt.isMatchIgnored))return Mi(Re);return Ye.skip?bt+=Re:(Ye.excludeBegin&&(bt+=Re),_t(),!Ye.returnBegin&&!Ye.excludeBegin&&(bt=Re)),Ai(Ye,_e),Ye.returnBegin?0:Re.length}function Sn(_e){const Re=_e[0],Ye=Le.substring(_e.index),rt=Br(qe,_e,Ye);if(!rt)return nt;const $t=qe;qe.endScope&&qe.endScope._wrap?(_t(),On(Re,qe.endScope._wrap)):qe.endScope&&qe.endScope._multi?(_t(),ts(qe.endScope,_e)):$t.skip?bt+=Re:($t.returnEnd||$t.excludeEnd||(bt+=Re),_t(),$t.excludeEnd&&(bt=Re));do qe.scope&&Jt.closeNode(),!qe.skip&&!qe.subLanguage&&(Ri+=qe.relevance),qe=qe.parent;while(qe!==rt.parent);return rt.starts&&Ai(rt.starts,_e),$t.returnEnd?0:Re.length}function ba(){const _e=[];for(let Re=qe;Re!==un;Re=Re.parent)Re.scope&&_e.unshift(Re.scope);_e.forEach(Re=>Jt.openNode(Re))}let Er={};function Oi(_e,Re){const Ye=Re&&Re[0];if(bt+=_e,Ye==null)return _t(),0;if(Er.type==="begin"&&Re.type==="end"&&Er.index===Re.index&&Ye===""){if(bt+=Le.slice(Re.index,Re.index+1),!St){const rt=new Error(`0 width match regex (${ye})`);throw rt.languageName=ye,rt.badRule=Er.rule,rt}return 1}if(Er=Re,Re.type==="begin")return ns(Re);if(Re.type==="illegal"&&!Qe){const rt=new Error('Illegal lexeme "'+Ye+'" for mode "'+(qe.scope||"<unnamed>")+'"');throw rt.mode=qe,rt}else if(Re.type==="end"){const rt=Sn(Re);if(rt!==nt)return rt}if(Re.type==="illegal"&&Ye==="")return bt+=`
+`,1;if(il>1e5&&il>Re.index*3)throw new Error("potential infinite loop, way more iterations than matches");return bt+=Ye,Ye.length}const un=bn(ye);if(!un)throw ct(gt.replace("{}",ye)),new Error('Unknown language: "'+ye+'"');const xa=Kt(un);let rs="",qe=ft||xa;const Ho={},Jt=new Se.__emitter(Se);ba();let bt="",Ri=0,ei=0,il=0,Di=!1;try{if(un.__emitTokens)un.__emitTokens(Le,Jt);else{for(qe.matcher.considerAll();;){il++,Di?Di=!1:qe.matcher.considerAll(),qe.matcher.lastIndex=ei;const _e=qe.matcher.exec(Le);if(!_e)break;const Re=Le.substring(ei,_e.index),Ye=Oi(Re,_e);ei=_e.index+Ye}Oi(Le.substring(ei))}return Jt.finalize(),rs=Jt.toHTML(),{language:ye,value:rs,relevance:Ri,illegal:!1,_emitter:Jt,_top:qe}}catch(_e){if(_e.message&&_e.message.includes("Illegal"))return{language:ye,value:cn(Le),illegal:!0,relevance:0,_illegalBy:{message:_e.message,index:ei,context:Le.slice(ei-100,ei+100),mode:_e.mode,resultSoFar:rs},_emitter:Jt};if(St)return{language:ye,value:cn(Le),illegal:!1,relevance:0,errorRaised:_e,_emitter:Jt,_top:qe};throw _e}}function Si(ye){const Le={value:cn(ye),illegal:!1,relevance:0,_top:Ae,_emitter:new Se.__emitter(Se)};return Le._emitter.addText(ye),Le}function ki(ye,Le){Le=Le||Se.languages||Object.keys(me);const Qe=Si(ye),ft=Le.filter(bn).filter(_r).map(_t=>xr(_t,ye,!1));ft.unshift(Qe);const Ht=ft.sort((_t,On)=>{if(_t.relevance!==On.relevance)return On.relevance-_t.relevance;if(_t.language&&On.language){if(bn(_t.language).supersetOf===On.language)return 1;if(bn(On.language).supersetOf===_t.language)return-1}return 0}),[pn,Mn]=Ht,Nn=pn;return Nn.secondBest=Mn,Nn}function sr(ye,Le,Qe){const ft=Le&&Ee[Le]||Qe;ye.classList.add("hljs"),ye.classList.add(`language-${ft}`)}function Ut(ye){let Le=null;const Qe=Bt(ye);if(Ue(Qe))return;if(Jr("before:highlightElement",{el:ye,language:Qe}),ye.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",ye);return}if(ye.children.length>0&&(Se.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(ye)),Se.throwUnescapedHTML))throw new zn("One of your code blocks includes unescaped HTML.",ye.innerHTML);Le=ye;const ft=Le.textContent,Ht=Qe?Mt(ft,{language:Qe,ignoreIllegals:!0}):ki(ft);ye.innerHTML=Ht.value,ye.dataset.highlighted="yes",sr(ye,Qe,Ht.language),ye.result={language:Ht.language,re:Ht.relevance,relevance:Ht.relevance},Ht.secondBest&&(ye.secondBest={language:Ht.secondBest.language,relevance:Ht.secondBest.relevance}),Jr("after:highlightElement",{el:ye,result:Ht,text:ft})}function mn(ye){Se=Ni(Se,ye)}const yr=()=>{Ci(),ue("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Ti(){Ci(),ue("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let pa=!1;function Ci(){function ye(){Ci()}if(document.readyState==="loading"){pa||window.addEventListener("DOMContentLoaded",ye,!1),pa=!0;return}document.querySelectorAll(Se.cssSelector).forEach(Ut)}function Ja(ye,Le){let Qe=null;try{Qe=Le(re)}catch(ft){if(ct("Language definition for '{}' could not be registered.".replace("{}",ye)),St)ct(ft);else throw ft;Qe=Ae}Qe.name||(Qe.name=ye),me[ye]=Qe,Qe.rawDefinition=Le.bind(null,re),Qe.aliases&&vr(Qe.aliases,{languageName:ye})}function Wr(ye){delete me[ye];for(const Le of Object.keys(Ee))Ee[Le]===ye&&delete Ee[Le]}function ga(){return Object.keys(me)}function bn(ye){return ye=(ye||"").toLowerCase(),me[ye]||me[Ee[ye]]}function vr(ye,{languageName:Le}){typeof ye=="string"&&(ye=[ye]),ye.forEach(Qe=>{Ee[Qe.toLowerCase()]=Le})}function _r(ye){const Le=bn(ye);return Le&&!Le.disableAutodetect}function Ir(ye){ye["before:highlightBlock"]&&!ye["before:highlightElement"]&&(ye["before:highlightElement"]=Le=>{ye["before:highlightBlock"](Object.assign({block:Le.el},Le))}),ye["after:highlightBlock"]&&!ye["after:highlightElement"]&&(ye["after:highlightElement"]=Le=>{ye["after:highlightBlock"](Object.assign({block:Le.el},Le))})}function Ft(ye){Ir(ye),Pe.push(ye)}function es(ye){const Le=Pe.indexOf(ye);Le!==-1&&Pe.splice(Le,1)}function Jr(ye,Le){const Qe=ye;Pe.forEach(function(ft){ft[Qe]&&ft[Qe](Le)})}function wr(ye){return ue("10.7.0","highlightBlock will be removed entirely in v12.0"),ue("10.7.0","Please use highlightElement now."),Ut(ye)}Object.assign(re,{highlight:Mt,highlightAuto:ki,highlightAll:Ci,highlightElement:Ut,highlightBlock:wr,configure:mn,initHighlighting:yr,initHighlightingOnLoad:Ti,registerLanguage:Ja,unregisterLanguage:Wr,listLanguages:ga,getLanguage:bn,registerAliases:vr,autoDetection:_r,inherit:Ni,addPlugin:Ft,removePlugin:es}),re.debugMode=function(){St=!1},re.safeMode=function(){St=!0},re.versionString=ut,re.regex={concat:N,lookahead:y,either:w,optional:_,anyNumberOfTimes:x};for(const ye in ce)typeof ce[ye]=="object"&&e(ce[ye]);return Object.assign(re,ce),re},hn=An({});return hn.newInstance=()=>An({}),Rh=hn,hn.HighlightJS=hn,hn.default=hn,Rh}var Dh,Jy;function P4(){if(Jy)return Dh;Jy=1;function e(t){const r=t.regex,a=r.concat(/[\p{L}_]/u,r.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),s=/[\p{L}0-9._:-]+/u,o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},c={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},d=t.inherit(c,{begin:/\(/,end:/\)/}),f=t.inherit(t.APOS_STRING_MODE,{className:"string"}),h=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),m={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:s,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[o]},{begin:/'/,end:/'/,contains:[o]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[c,h,f,d,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[c,d,h,f]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[h]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[m],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[m],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:r.concat(/</,r.lookahead(r.concat(a,r.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:a,relevance:0,starts:m}]},{className:"tag",begin:r.concat(/<\//,r.lookahead(r.concat(a,/>/))),contains:[{className:"name",begin:a,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return Dh=e,Dh}var jh,ev;function F4(){if(ev)return jh;ev=1;function e(t){const r=t.regex,a={},s={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[a]}]};Object.assign(a,{className:"variable",variants:[{begin:r.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},s]});const o={className:"subst",begin:/\$\(/,end:/\)/,contains:[t.BACKSLASH_ESCAPE]},c=t.inherit(t.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),d={begin:/<<-?\s*(?=\w+)/,starts:{contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},f={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,a,o]};o.contains.push(f);const h={match:/\\"/},m={className:"string",begin:/'/,end:/'/},p={match:/\\'/},y={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},t.NUMBER_MODE,a]},x=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],_=t.SHEBANG({binary:`(${x.join("|")})`,relevance:10}),N={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[t.inherit(t.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},S=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],w=["true","false"],k={match:/(\/[a-z._-]+)+/},E=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],M=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],I=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],R=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:S,literal:w,built_in:[...E,...M,"set","shopt",...I,...R]},contains:[_,t.SHEBANG(),N,y,c,d,k,f,h,m,p,a]}}return jh=e,jh}var Lh,tv;function G4(){if(tv)return Lh;tv=1;function e(t){const r=t.regex,a=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",d="("+s+"|"+r.optional(o)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",f={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},m={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},p={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},y={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(m,{className:"string"}),{className:"string",begin:/<.*?>/},a,t.C_BLOCK_COMMENT_MODE]},x={className:"title",begin:r.optional(o)+t.IDENT_RE,relevance:0},_=r.optional(o)+t.IDENT_RE+"\\s*\\(",w={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},k=[y,f,a,t.C_BLOCK_COMMENT_MODE,p,m],E={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:w,contains:k.concat([{begin:/\(/,end:/\)/,keywords:w,contains:k.concat(["self"]),relevance:0}]),relevance:0},M={begin:"("+d+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:w,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:w,relevance:0},{begin:_,returnBegin:!0,contains:[t.inherit(x,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:[a,t.C_BLOCK_COMMENT_MODE,m,p,f,{begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:["self",a,t.C_BLOCK_COMMENT_MODE,m,p,f]}]},f,a,t.C_BLOCK_COMMENT_MODE,y]};return{name:"C",aliases:["h"],keywords:w,disableAutodetect:!0,illegal:"</",contains:[].concat(E,M,k,[y,{begin:t.IDENT_RE+"::",keywords:w},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},t.TITLE_MODE]}]),exports:{preprocessor:y,strings:m,keywords:w}}}return Lh=e,Lh}var zh,nv;function V4(){if(nv)return zh;nv=1;function e(t){const r=t.regex,a=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",d="(?!struct)("+s+"|"+r.optional(o)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",f={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},m={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},p={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},y={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(m,{className:"string"}),{className:"string",begin:/<.*?>/},a,t.C_BLOCK_COMMENT_MODE]},x={className:"title",begin:r.optional(o)+t.IDENT_RE,relevance:0},_=r.optional(o)+t.IDENT_RE+"\\s*\\(",N=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],S=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],w=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],k=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],I={type:S,keyword:N,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:w},R={className:"function.dispatch",relevance:0,keywords:{_hint:k},begin:r.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},U=[R,y,f,a,t.C_BLOCK_COMMENT_MODE,p,m],B={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:I,contains:U.concat([{begin:/\(/,end:/\)/,keywords:I,contains:U.concat(["self"]),relevance:0}]),relevance:0},Z={className:"function",begin:"("+d+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:I,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:I,relevance:0},{begin:_,returnBegin:!0,contains:[x],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[m,p]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:[a,t.C_BLOCK_COMMENT_MODE,m,p,f,{begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:["self",a,t.C_BLOCK_COMMENT_MODE,m,p,f]}]},f,a,t.C_BLOCK_COMMENT_MODE,y]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:I,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(B,Z,R,U,[y,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:I,contains:["self",f]},{begin:t.IDENT_RE+"::",keywords:I},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return zh=e,zh}var Ih,rv;function Y4(){if(rv)return Ih;rv=1;function e(t){const r=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],a=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],s=["default","false","null","true"],o=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],c=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],d={keyword:o.concat(c),built_in:r,literal:s},f=t.inherit(t.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),h={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},m={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},p={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},y=t.inherit(p,{illegal:/\n/}),x={className:"subst",begin:/\{/,end:/\}/,keywords:d},_=t.inherit(x,{illegal:/\n/}),N={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},t.BACKSLASH_ESCAPE,_]},S={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},x]},w=t.inherit(S,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},_]});x.contains=[S,N,p,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,t.C_BLOCK_COMMENT_MODE],_.contains=[w,N,y,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,t.inherit(t.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const k={variants:[m,S,N,p,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},E={begin:"<",end:">",contains:[{beginKeywords:"in out"},f]},M=t.IDENT_RE+"(<"+t.IDENT_RE+"(\\s*,\\s*"+t.IDENT_RE+")*>)?(\\[\\])?",I={begin:"@"+t.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:d,illegal:/::/,contains:[t.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},k,h,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},f,E,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[f,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[f,E,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+M+"\\s+)+"+t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:d,contains:[{beginKeywords:a.join(" "),relevance:0},{begin:t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[t.TITLE_MODE,E],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,relevance:0,contains:[k,h,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},I]}}return Ih=e,Ih}var Bh,iv;function X4(){if(iv)return Bh;iv=1;const e=h=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:h.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[h.APOS_STRING_MODE,h.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:h.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],a=[...t,...r],s=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),o=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),c=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),d=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function f(h){const m=h.regex,p=e(h),y={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},x="and or not only",_=/@-?\w[\w]*(-\w+)*/,N="[a-zA-Z-][a-zA-Z0-9_-]*",S=[h.APOS_STRING_MODE,h.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[p.BLOCK_COMMENT,y,p.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+N,relevance:0},p.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+o.join("|")+")"},{begin:":(:)?("+c.join("|")+")"}]},p.CSS_VARIABLE,{className:"attribute",begin:"\\b("+d.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[p.BLOCK_COMMENT,p.HEXCOLOR,p.IMPORTANT,p.CSS_NUMBER_MODE,...S,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...S,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},p.FUNCTION_DISPATCH]},{begin:m.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:_},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:x,attribute:s.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...S,p.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+a.join("|")+")\\b"}]}}return Bh=f,Bh}var Uh,av;function K4(){if(av)return Uh;av=1;function e(t){const r=t.regex,a={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},s={begin:"^[-\\*]{3,}",end:"$"},o={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},c={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},d={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},f=/[A-Za-z][A-Za-z0-9+.-]*/,h={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:r.concat(/\[.+?\]\(/,f,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},m={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},p={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},y=t.inherit(m,{contains:[]}),x=t.inherit(p,{contains:[]});m.contains.push(x),p.contains.push(y);let _=[a,h];return[m,p,y,x].forEach(k=>{k.contains=k.contains.concat(_)}),_=_.concat(m,p),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:_},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:_}]}]},a,c,m,p,{className:"quote",begin:"^>\\s+",contains:_,end:"$"},o,s,h,d,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Uh=e,Uh}var Hh,sv;function Z4(){if(sv)return Hh;sv=1;function e(t){const r=t.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:r.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:r.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return Hh=e,Hh}var $h,lv;function Q4(){if(lv)return $h;lv=1;function e(t){const r=t.regex,a="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",s=r.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),o=r.concat(s,/(::\w+)*/),d={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},f={className:"doctag",begin:"@[A-Za-z]+"},h={begin:"#<",end:">"},m=[t.COMMENT("#","$",{contains:[f]}),t.COMMENT("^=begin","^=end",{contains:[f],relevance:10}),t.COMMENT("^__END__",t.MATCH_NOTHING_RE)],p={className:"subst",begin:/#\{/,end:/\}/,keywords:d},y={className:"string",contains:[t.BACKSLASH_ESCAPE,p],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:r.concat(/<<[-~]?'?/,r.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[t.BACKSLASH_ESCAPE,p]})]}]},x="[1-9](_?[0-9])*|0",_="[0-9](_?[0-9])*",N={className:"number",relevance:0,variants:[{begin:`\\b(${x})(\\.(${_}))?([eE][+-]?(${_})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},S={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:d}]},U=[y,{variants:[{match:[/class\s+/,o,/\s+<\s+/,o]},{match:[/\b(class|module)\s+/,o]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:d},{match:[/(include|extend)\s+/,o],scope:{2:"title.class"},keywords:d},{relevance:0,match:[o,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:s,scope:"title.class"},{match:[/def/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[S]},{begin:t.IDENT_RE+"::"},{className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[y,{begin:a}],relevance:0},N,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:d},{begin:"("+t.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[t.BACKSLASH_ESCAPE,p],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(h,m),relevance:0}].concat(h,m);p.contains=U,S.contains=U;const L=[{begin:/^\s*=>/,starts:{end:"$",contains:U}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:d,contains:U}}];return m.unshift(h),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:d,illegal:/\/\*/,contains:[t.SHEBANG({binary:"ruby"})].concat(L).concat(m).concat(U)}}return $h=e,$h}var qh,ov;function W4(){if(ov)return qh;ov=1;function e(t){const c={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:c,illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"string",variants:[t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[t.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:c,illegal:/["']/}]}]}}return qh=e,qh}var Ph,cv;function J4(){if(cv)return Ph;cv=1;function e(t){const r=t.regex,a=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:r.concat(a,r.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}return Ph=e,Ph}var Fh,uv;function eD(){if(uv)return Fh;uv=1;function e(t){const r=t.regex,a={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:t.NUMBER_RE}]},s=t.COMMENT();s.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const o={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},c={className:"literal",begin:/\bon|off|true|false|yes|no\b/},d={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},f={begin:/\[/,end:/\]/,contains:[s,c,o,d,a,"self"],relevance:0},h=/[A-Za-z0-9_-]+/,m=/"(\\"|[^"])*"/,p=/'[^']*'/,y=r.either(h,m,p),x=r.concat(y,"(\\s*\\.\\s*",y,")*",r.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[s,{className:"section",begin:/\[+/,end:/\]+/},{begin:x,className:"attr",starts:{end:/$/,contains:[s,f,c,o,d,a]}}]}}return Fh=e,Fh}var Gh,dv;function tD(){if(dv)return Gh;dv=1;var e="[0-9](_*[0-9])*",t=`\\.(${e})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",a={className:"number",variants:[{begin:`(\\b(${e})((${t})|\\.)?|(${t}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${t})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${t})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function s(c,d,f){return f===-1?"":c.replace(d,h=>s(c,d,f-1))}function o(c){const d=c.regex,f="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",h=f+s("(?:<"+f+"~~~(?:\\s*,\\s*"+f+"~~~)*>)?",/~~~/g,2),_={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},N={className:"meta",begin:"@"+f,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},S={className:"params",begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:[c.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:_,illegal:/<\/|#/,contains:[c.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[c.BACKSLASH_ESCAPE]},c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,f],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[d.concat(/(?!else)/,f),/\s+/,f,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,f],className:{1:"keyword",3:"title.class"},contains:[S,c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+h+"\\s+)",c.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:_,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:[N,c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,a,c.C_BLOCK_COMMENT_MODE]},c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE]},a,N]}}return Gh=o,Gh}var Vh,fv;function nD(){if(fv)return Vh;fv=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],a=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],s=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],o=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],c=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],d=[].concat(o,a,s);function f(h){const m=h.regex,p=(J,{after:W})=>{const te="</"+J[0].slice(1);return J.input.indexOf(te,W)!==-1},y=e,x={begin:"<>",end:"</>"},_=/<[A-Za-z0-9\\._:-]+\s*\/>/,N={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(J,W)=>{const te=J[0].length+J.index,ce=J.input[te];if(ce==="<"||ce===","){W.ignoreMatch();return}ce===">"&&(p(J,{after:te})||W.ignoreMatch());let fe;const be=J.input.substring(te);if(fe=be.match(/^\s*=/)){W.ignoreMatch();return}if((fe=be.match(/^\s+extends\s+/))&&fe.index===0){W.ignoreMatch();return}}},S={$pattern:e,keyword:t,literal:r,built_in:d,"variable.language":c},w="[0-9](_?[0-9])*",k=`\\.(${w})`,E="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",M={className:"number",variants:[{begin:`(\\b(${E})((${k})|\\.)?|(${k}))[eE][+-]?(${w})\\b`},{begin:`\\b(${E})\\b((${k})\\b|\\.)?|(${k})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},I={className:"subst",begin:"\\$\\{",end:"\\}",keywords:S,contains:[]},R={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[h.BACKSLASH_ESCAPE,I],subLanguage:"xml"}},U={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[h.BACKSLASH_ESCAPE,I],subLanguage:"css"}},B={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[h.BACKSLASH_ESCAPE,I],subLanguage:"graphql"}},Z={className:"string",begin:"`",end:"`",contains:[h.BACKSLASH_ESCAPE,I]},L={className:"comment",variants:[h.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:y+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),h.C_BLOCK_COMMENT_MODE,h.C_LINE_COMMENT_MODE]},G=[h.APOS_STRING_MODE,h.QUOTE_STRING_MODE,R,U,B,Z,{match:/\$\d+/},M];I.contains=G.concat({begin:/\{/,end:/\}/,keywords:S,contains:["self"].concat(G)});const V=[].concat(L,I.contains),A=V.concat([{begin:/(\s*)\(/,end:/\)/,keywords:S,contains:["self"].concat(V)}]),q={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:S,contains:A},O={variants:[{match:[/class/,/\s+/,y,/\s+/,/extends/,/\s+/,m.concat(y,"(",m.concat(/\./,y),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,y],scope:{1:"keyword",3:"title.class"}}]},H={relevance:0,match:m.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...a,...s]}},X={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},K={variants:[{match:[/function/,/\s+/,y,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[q],illegal:/%/},T={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function j(J){return m.concat("(?!",J.join("|"),")")}const Y={match:m.concat(/\b/,j([...o,"super","import"].map(J=>`${J}\\s*\\(`)),y,m.lookahead(/\s*\(/)),className:"title.function",relevance:0},z={begin:m.concat(/\./,m.lookahead(m.concat(y,/(?![0-9A-Za-z$_(])/))),end:y,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},F={match:[/get|set/,/\s+/,y,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},q]},$="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+h.UNDERSCORE_IDENT_RE+")\\s*=>",Q={match:[/const|var|let/,/\s+/,y,/\s*/,/=\s*/,/(async\s*)?/,m.lookahead($)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[q]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:S,exports:{PARAMS_CONTAINS:A,CLASS_REFERENCE:H},illegal:/#(?![$_A-z])/,contains:[h.SHEBANG({label:"shebang",binary:"node",relevance:5}),X,h.APOS_STRING_MODE,h.QUOTE_STRING_MODE,R,U,B,Z,L,{match:/\$\d+/},M,H,{scope:"attr",match:y+m.lookahead(":"),relevance:0},Q,{begin:"("+h.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[L,h.REGEXP_MODE,{className:"function",begin:$,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:h.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:S,contains:A}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:x.begin,end:x.end},{match:_},{begin:N.begin,"on:begin":N.isTrulyOpeningTag,end:N.end}],subLanguage:"xml",contains:[{begin:N.begin,end:N.end,skip:!0,contains:["self"]}]}]},K,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+h.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[q,h.inherit(h.TITLE_MODE,{begin:y,className:"title.function"})]},{match:/\.\.\./,relevance:0},z,{match:"\\$"+y,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[q]},Y,T,O,F,{match:/\$[(.]/}]}}return Vh=f,Vh}var Yh,hv;function rD(){if(hv)return Yh;hv=1;function e(t){const r={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},a={match:/[{}[\],:]/,className:"punctuation",relevance:0},s=["true","false","null"],o={scope:"literal",beginKeywords:s.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:s},contains:[r,a,t.QUOTE_STRING_MODE,o,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return Yh=e,Yh}var Xh,mv;function iD(){if(mv)return Xh;mv=1;var e="[0-9](_*[0-9])*",t=`\\.(${e})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",a={className:"number",variants:[{begin:`(\\b(${e})((${t})|\\.)?|(${t}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${t})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${t})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function s(o){const c={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},d={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},f={className:"symbol",begin:o.UNDERSCORE_IDENT_RE+"@"},h={className:"subst",begin:/\$\{/,end:/\}/,contains:[o.C_NUMBER_MODE]},m={className:"variable",begin:"\\$"+o.UNDERSCORE_IDENT_RE},p={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[m,h]},{begin:"'",end:"'",illegal:/\n/,contains:[o.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[o.BACKSLASH_ESCAPE,m,h]}]};h.contains.push(p);const y={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+o.UNDERSCORE_IDENT_RE+")?"},x={className:"meta",begin:"@"+o.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[o.inherit(p,{className:"string"}),"self"]}]},_=a,N=o.COMMENT("/\\*","\\*/",{contains:[o.C_BLOCK_COMMENT_MODE]}),S={variants:[{className:"type",begin:o.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},w=S;return w.variants[1].contains=[S],S.variants[1].contains=[w],{name:"Kotlin",aliases:["kt","kts"],keywords:c,contains:[o.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),o.C_LINE_COMMENT_MODE,N,d,f,y,x,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:c,relevance:5,contains:[{begin:o.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[o.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:c,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[S,o.C_LINE_COMMENT_MODE,N],relevance:0},o.C_LINE_COMMENT_MODE,N,y,x,p,o.C_NUMBER_MODE]},N]},{begin:[/class|interface|trait/,/\s+/,o.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},o.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},y,x]},p,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
+`},_]}}return Xh=s,Xh}var Kh,pv;function aD(){if(pv)return Kh;pv=1;const e=m=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:m.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:m.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],a=[...t,...r],s=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),o=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),c=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),d=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),f=o.concat(c).sort().reverse();function h(m){const p=e(m),y=f,x="and or not only",_="[\\w-]+",N="("+_+"|@\\{"+_+"\\})",S=[],w=[],k=function(V){return{className:"string",begin:"~?"+V+".*?"+V}},E=function(V,A,q){return{className:V,begin:A,relevance:q}},M={$pattern:/[a-z-]+/,keyword:x,attribute:s.join(" ")},I={begin:"\\(",end:"\\)",contains:w,keywords:M,relevance:0};w.push(m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,k("'"),k('"'),p.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},p.HEXCOLOR,I,E("variable","@@?"+_,10),E("variable","@\\{"+_+"\\}"),E("built_in","~?`[^`]*?`"),{className:"attribute",begin:_+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},p.IMPORTANT,{beginKeywords:"and not"},p.FUNCTION_DISPATCH);const R=w.concat({begin:/\{/,end:/\}/,contains:S}),U={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(w)},B={begin:N+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},p.CSS_VARIABLE,{className:"attribute",begin:"\\b("+d.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:w}}]},Z={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:M,returnEnd:!0,contains:w,relevance:0}},D={className:"variable",variants:[{begin:"@"+_+"\\s*:",relevance:15},{begin:"@"+_}],starts:{end:"[;}]",returnEnd:!0,contains:R}},L={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:N,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,U,E("keyword","all\\b"),E("variable","@\\{"+_+"\\}"),{begin:"\\b("+a.join("|")+")\\b",className:"selector-tag"},p.CSS_NUMBER_MODE,E("selector-tag",N,0),E("selector-id","#"+N),E("selector-class","\\."+N,0),E("selector-tag","&",0),p.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+o.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+c.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:R},{begin:"!important"},p.FUNCTION_DISPATCH]},G={begin:_+`:(:)?(${y.join("|")})`,returnBegin:!0,contains:[L]};return S.push(m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,Z,D,G,B,L,U,p.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:S}}return Kh=h,Kh}var Zh,gv;function sD(){if(gv)return Zh;gv=1;function e(t){const r="\\[=*\\[",a="\\]=*\\]",s={begin:r,end:a,contains:["self"]},o=[t.COMMENT("--(?!"+r+")","$"),t.COMMENT("--"+r,a,{contains:[s],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:t.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:o.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[t.inherit(t.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:o}].concat(o)},t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:r,end:a,contains:[s],relevance:5}])}}return Zh=e,Zh}var Qh,bv;function lD(){if(bv)return Qh;bv=1;function e(t){const r={className:"variable",variants:[{begin:"\\$\\("+t.UNDERSCORE_IDENT_RE+"\\)",contains:[t.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},a={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,r]},s={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[r,a]},o={begin:"^"+t.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},c={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},d={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[r]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[t.HASH_COMMENT_MODE,r,a,s,o,c,d]}}return Qh=e,Qh}var Wh,xv;function oD(){if(xv)return Wh;xv=1;function e(t){const r=t.regex,a=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],s=/[dualxmsipngr]{0,12}/,o={$pattern:/[\w.]+/,keyword:a.join(" ")},c={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:o},d={begin:/->\{/,end:/\}/},f={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},h={scope:"variable",variants:[{begin:/\$\d/},{begin:r.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[f]},m={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},p=[t.BACKSLASH_ESCAPE,c,h],y=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],x=(S,w,k="\\1")=>{const E=k==="\\1"?k:r.concat(k,w);return r.concat(r.concat("(?:",S,")"),w,/(?:\\.|[^\\\/])*?/,E,/(?:\\.|[^\\\/])*?/,k,s)},_=(S,w,k)=>r.concat(r.concat("(?:",S,")"),w,/(?:\\.|[^\\\/])*?/,k,s),N=[h,t.HASH_COMMENT_MODE,t.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),d,{className:"string",contains:p,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},m,{begin:"(\\/\\/|"+t.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[t.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:x("s|tr|y",r.either(...y,{capture:!0}))},{begin:x("s|tr|y","\\(","\\)")},{begin:x("s|tr|y","\\[","\\]")},{begin:x("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:_("(?:m|qr)?",/\//,/\//)},{begin:_("m|qr",r.either(...y,{capture:!0}),/\1/)},{begin:_("m|qr",/\(/,/\)/)},{begin:_("m|qr",/\[/,/\]/)},{begin:_("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,f]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,f,m]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return c.contains=N,d.contains=N,{name:"Perl",aliases:["pl","pm"],keywords:o,contains:N}}return Wh=e,Wh}var Jh,yv;function cD(){if(yv)return Jh;yv=1;function e(t){const r={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},a=/[a-zA-Z@][a-zA-Z0-9_]*/,f={"variable.language":["this","super"],$pattern:a,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},h={$pattern:a,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:f,illegal:"</",contains:[r,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.C_NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+h.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:h,contains:[t.UNDERSCORE_TITLE_MODE]},{begin:"\\."+t.UNDERSCORE_IDENT_RE,relevance:0}]}}return Jh=e,Jh}var em,vv;function uD(){if(vv)return em;vv=1;function e(t){const r=t.regex,a=/(?![A-Za-z0-9])(?![$])/,s=r.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,a),o=r.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,a),c=r.concat(/[A-Z]+/,a),d={scope:"variable",match:"\\$+"+s},f={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},h={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},m=t.inherit(t.APOS_STRING_MODE,{illegal:null}),p=t.inherit(t.QUOTE_STRING_MODE,{illegal:null,contains:t.QUOTE_STRING_MODE.contains.concat(h)}),y={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:t.QUOTE_STRING_MODE.contains.concat(h),"on:begin":(q,O)=>{O.data._beginMatch=q[1]||q[2]},"on:end":(q,O)=>{O.data._beginMatch!==q[1]&&O.ignoreMatch()}},x=t.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),_=`[
+]`,N={scope:"string",variants:[p,m,y,x]},S={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},w=["false","null","true"],k=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],E=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],I={keyword:k,literal:(q=>{const O=[];return q.forEach(H=>{O.push(H),H.toLowerCase()===H?O.push(H.toUpperCase()):O.push(H.toLowerCase())}),O})(w),built_in:E},R=q=>q.map(O=>O.replace(/\|\d+$/,"")),U={variants:[{match:[/new/,r.concat(_,"+"),r.concat("(?!",R(E).join("\\b|"),"\\b)"),o],scope:{1:"keyword",4:"title.class"}}]},B=r.concat(s,"\\b(?!\\()"),Z={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),B],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[o,r.concat(/::/,r.lookahead(/(?!class\b)/)),B],scope:{1:"title.class",3:"variable.constant"}},{match:[o,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[o,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},D={scope:"attr",match:r.concat(s,r.lookahead(":"),r.lookahead(/(?!::)/))},L={relevance:0,begin:/\(/,end:/\)/,keywords:I,contains:[D,d,Z,t.C_BLOCK_COMMENT_MODE,N,S,U]},G={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",R(k).join("\\b|"),"|",R(E).join("\\b|"),"\\b)"),s,r.concat(_,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[L]};L.contains.push(G);const V=[D,Z,t.C_BLOCK_COMMENT_MODE,N,S,U],A={begin:r.concat(/#\[\s*\\?/,r.either(o,c)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:w,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:w,keyword:["new","array"]},contains:["self",...V]},...V,{scope:"meta",variants:[{match:o},{match:c}]}]};return{case_insensitive:!1,keywords:I,contains:[A,t.HASH_COMMENT_MODE,t.COMMENT("//","$"),t.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:t.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},f,{scope:"variable.language",match:/\$this\b/},d,G,Z,{match:[/const/,/\s/,s],scope:{1:"keyword",3:"variable.constant"}},U,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},t.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:I,contains:["self",A,d,Z,t.C_BLOCK_COMMENT_MODE,N,S]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[t.inherit(t.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},t.UNDERSCORE_TITLE_MODE]},N,S]}}return em=e,em}var tm,_v;function dD(){if(_v)return tm;_v=1;function e(t){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},t.inherit(t.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return tm=e,tm}var nm,wv;function fD(){if(wv)return nm;wv=1;function e(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return nm=e,nm}var rm,Ev;function hD(){if(Ev)return rm;Ev=1;function e(t){const r=t.regex,a=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),s=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],f={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:s,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},h={className:"meta",begin:/^(>>>|\.\.\.) /},m={className:"subst",begin:/\{/,end:/\}/,keywords:f,illegal:/#/},p={begin:/\{\{/,relevance:0},y={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,h],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,h],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,h,p,m]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,h,p,m]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[t.BACKSLASH_ESCAPE,p,m]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,p,m]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},x="[0-9](_?[0-9])*",_=`(\\b(${x}))?\\.(${x})|\\b(${x})\\.`,N=`\\b|${s.join("|")}`,S={className:"number",relevance:0,variants:[{begin:`(\\b(${x})|(${_}))[eE][+-]?(${x})[jJ]?(?=${N})`},{begin:`(${_})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${N})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${N})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${N})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${N})`},{begin:`\\b(${x})[jJ](?=${N})`}]},w={className:"comment",begin:r.lookahead(/# type:/),end:/$/,keywords:f,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},k={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:f,contains:["self",h,S,y,t.HASH_COMMENT_MODE]}]};return m.contains=[y,S,h],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:f,illegal:/(<\/|\?)|=>/,contains:[h,S,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},y,w,t.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[k]},{variants:[{match:[/\bclass/,/\s+/,a,/\s*/,/\(\s*/,a,/\s*\)/]},{match:[/\bclass/,/\s+/,a]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[S,k,y]}]}}return rm=e,rm}var im,Nv;function mD(){if(Nv)return im;Nv=1;function e(t){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return im=e,im}var am,Sv;function pD(){if(Sv)return am;Sv=1;function e(t){const r=t.regex,a=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,s=r.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),o=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,c=r.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:a,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[t.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:r.lookahead(r.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:a},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),t.HASH_COMMENT_MODE,{scope:"string",contains:[t.BACKSLASH_ESCAPE],variants:[t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[o,s]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,s]},{scope:{1:"punctuation",2:"number"},match:[c,s]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,s]}]},{scope:{3:"operator"},match:[a,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:o},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:c},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return am=e,am}var sm,kv;function gD(){if(kv)return sm;kv=1;function e(t){const r=t.regex,a=/(r#)?/,s=r.concat(a,t.UNDERSCORE_IDENT_RE),o=r.concat(a,t.IDENT_RE),c={className:"title.function.invoke",relevance:0,begin:r.concat(/\b/,/(?!let|for|while|if|else|match\b)/,o,r.lookahead(/\s*\(/))},d="([ui](8|16|32|64|128|size)|f(32|64))?",f=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],h=["true","false","Some","None","Ok","Err"],m=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],p=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:t.IDENT_RE+"!?",type:p,keyword:f,literal:h,built_in:m},illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.COMMENT("/\\*","\\*/",{contains:["self"]}),t.inherit(t.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+d},{begin:"\\b0o([0-7_]+)"+d},{begin:"\\b0x([A-Fa-f0-9_]+)"+d},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+d}],relevance:0},{begin:[/fn/,/\s+/,s],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,s],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,s,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,s],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,s],className:{1:"keyword",3:"title.class"}},{begin:t.IDENT_RE+"::",keywords:{keyword:"Self",built_in:m,type:p}},{className:"punctuation",begin:"->"},c]}}return sm=e,sm}var lm,Tv;function bD(){if(Tv)return lm;Tv=1;const e=h=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:h.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[h.APOS_STRING_MODE,h.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:h.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],a=[...t,...r],s=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),o=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),c=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),d=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function f(h){const m=e(h),p=c,y=o,x="@[a-z-]+",_="and or not only",S={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[h.C_LINE_COMMENT_MODE,h.C_BLOCK_COMMENT_MODE,m.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},m.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+a.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+y.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+p.join("|")+")"},S,{begin:/\(/,end:/\)/,contains:[m.CSS_NUMBER_MODE]},m.CSS_VARIABLE,{className:"attribute",begin:"\\b("+d.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[m.BLOCK_COMMENT,S,m.HEXCOLOR,m.CSS_NUMBER_MODE,h.QUOTE_STRING_MODE,h.APOS_STRING_MODE,m.IMPORTANT,m.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:x,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:_,attribute:s.join(" ")},contains:[{begin:x,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},S,h.QUOTE_STRING_MODE,h.APOS_STRING_MODE,m.HEXCOLOR,m.CSS_NUMBER_MODE]},m.FUNCTION_DISPATCH]}}return lm=f,lm}var om,Cv;function xD(){if(Cv)return om;Cv=1;function e(t){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return om=e,om}var cm,Av;function yD(){if(Av)return cm;Av=1;function e(t){const r=t.regex,a=t.COMMENT("--","$"),s={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},o={begin:/"/,end:/"/,contains:[{match:/""/}]},c=["true","false","unknown"],d=["double precision","large object","with timezone","without timezone"],f=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],h=["add","asc","collation","desc","final","first","last","view"],m=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],p=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],y=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],x=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],_=p,N=[...m,...h].filter(R=>!p.includes(R)),S={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},w={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},k={match:r.concat(/\b/,r.either(..._),/\s*\(/),relevance:0,keywords:{built_in:_}};function E(R){return r.concat(/\b/,r.either(...R.map(U=>U.replace(/\s+/,"\\s+"))),/\b/)}const M={scope:"keyword",match:E(x),relevance:0};function I(R,{exceptions:U,when:B}={}){const Z=B;return U=U||[],R.map(D=>D.match(/\|\d+$/)||U.includes(D)?D:Z(D)?`${D}|0`:D)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:I(N,{when:R=>R.length<3}),literal:c,type:f,built_in:y},contains:[{scope:"type",match:E(d)},M,k,S,s,o,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,a,w]}}return cm=e,cm}var um,Mv;function vD(){if(Mv)return um;Mv=1;function e(B){return B?typeof B=="string"?B:B.source:null}function t(B){return r("(?=",B,")")}function r(...B){return B.map(D=>e(D)).join("")}function a(B){const Z=B[B.length-1];return typeof Z=="object"&&Z.constructor===Object?(B.splice(B.length-1,1),Z):{}}function s(...B){return"("+(a(B).capture?"":"?:")+B.map(L=>e(L)).join("|")+")"}const o=B=>r(/\b/,B,/\w$/.test(B)?/\b/:/\B/),c=["Protocol","Type"].map(o),d=["init","self"].map(o),f=["Any","Self"],h=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],m=["false","nil","true"],p=["assignment","associativity","higherThan","left","lowerThan","none","right"],y=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],x=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],_=s(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),N=s(_,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),S=r(_,N,"*"),w=s(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),k=s(w,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),E=r(w,k,"*"),M=r(/[A-Z]/,k,"*"),I=["attached","autoclosure",r(/convention\(/,s("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",r(/objc\(/,E,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],R=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function U(B){const Z={match:/\s+/,relevance:0},D=B.COMMENT("/\\*","\\*/",{contains:["self"]}),L=[B.C_LINE_COMMENT_MODE,D],G={match:[/\./,s(...c,...d)],className:{2:"keyword"}},V={match:r(/\./,s(...h)),relevance:0},A=h.filter(nt=>typeof nt=="string").concat(["_|0"]),q=h.filter(nt=>typeof nt!="string").concat(f).map(o),O={variants:[{className:"keyword",match:s(...q,...d)}]},H={$pattern:s(/\b\w+/,/#\w+/),keyword:A.concat(y),literal:m},X=[G,V,O],K={match:r(/\./,s(...x)),relevance:0},T={className:"built_in",match:r(/\b/,s(...x),/(?=\()/)},j=[K,T],Y={match:/->/,relevance:0},z={className:"operator",relevance:0,variants:[{match:S},{match:`\\.(\\.|${N})+`}]},F=[Y,z],$="([0-9]_*)+",Q="([0-9a-fA-F]_*)+",J={className:"number",relevance:0,variants:[{match:`\\b(${$})(\\.(${$}))?([eE][+-]?(${$}))?\\b`},{match:`\\b0x(${Q})(\\.(${Q}))?([pP][+-]?(${$}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},W=(nt="")=>({className:"subst",variants:[{match:r(/\\/,nt,/[0\\tnr"']/)},{match:r(/\\/,nt,/u\{[0-9a-fA-F]{1,8}\}/)}]}),te=(nt="")=>({className:"subst",match:r(/\\/,nt,/[\t ]*(?:[\r\n]|\r\n)/)}),ce=(nt="")=>({className:"subst",label:"interpol",begin:r(/\\/,nt,/\(/),end:/\)/}),fe=(nt="")=>({begin:r(nt,/"""/),end:r(/"""/,nt),contains:[W(nt),te(nt),ce(nt)]}),be=(nt="")=>({begin:r(nt,/"/),end:r(/"/,nt),contains:[W(nt),ce(nt)]}),we={className:"string",variants:[fe(),fe("#"),fe("##"),fe("###"),be(),be("#"),be("##"),be("###")]},Ne=[B.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[B.BACKSLASH_ESCAPE]}],je={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Ne},$e=nt=>{const Xn=r(nt,/\//),An=r(/\//,nt);return{begin:Xn,end:An,contains:[...Ne,{scope:"comment",begin:`#(?!.*${An})`,end:/$/}]}},st={scope:"regexp",variants:[$e("###"),$e("##"),$e("#"),je]},Rt={match:r(/`/,E,/`/)},Yt={className:"variable",match:/\$\d+/},Pt={className:"variable",match:`\\$${k}+`},Xt=[Rt,Yt,Pt],Yn={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:R,contains:[...F,J,we]}]}},wn={scope:"keyword",match:r(/@/,s(...I),t(s(/\(/,/\s+/)))},ct={scope:"meta",match:r(/@/,E)},It=[Yn,wn,ct],ue={match:t(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:r(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,k,"+")},{className:"type",match:M,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,t(M)),relevance:0}]},xe={begin:/</,end:/>/,keywords:H,contains:[...L,...X,...It,Y,ue]};ue.contains.push(xe);const Oe={match:r(E,/\s*:/),keywords:"_|0",relevance:0},Fe={begin:/\(/,end:/\)/,relevance:0,keywords:H,contains:["self",Oe,...L,st,...X,...j,...F,J,we,...Xt,...It,ue]},Ze={begin:/</,end:/>/,keywords:"repeat each",contains:[...L,ue]},on={begin:s(t(r(E,/\s*:/)),t(r(E,/\s+/,E,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:E}]},En={begin:/\(/,end:/\)/,keywords:H,contains:[on,...L,...X,...F,J,we,...It,ue,Fe],endsParent:!0,illegal:/["']/},Kt={match:[/(func|macro)/,/\s+/,s(Rt.match,E,S)],className:{1:"keyword",3:"title.function"},contains:[Ze,En,Z],illegal:[/\[/,/%/]},At={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Ze,En,Z],illegal:/\[|%/},Wt={match:[/operator/,/\s+/,S],className:{1:"keyword",3:"title"}},ut={begin:[/precedencegroup/,/\s+/,M],className:{1:"keyword",3:"title"},contains:[ue],keywords:[...p,...m],end:/}/},zn={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},cn={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},Ni={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,E,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:H,contains:[Ze,...X,{begin:/:/,end:/\{/,keywords:H,contains:[{scope:"title.class.inherited",match:M},...X],relevance:0}]};for(const nt of we.variants){const Xn=nt.contains.find(hn=>hn.label==="interpol");Xn.keywords=H;const An=[...X,...j,...F,J,we,...Xt];Xn.contains=[...An,{begin:/\(/,end:/\)/,contains:["self",...An]}]}return{name:"Swift",keywords:H,contains:[...L,Kt,At,zn,cn,Ni,Wt,ut,{beginKeywords:"import",end:/$/,contains:[...L],relevance:0},st,...X,...j,...F,J,we,...Xt,...It,ue,Fe]}}return um=U,um}var dm,Ov;function _D(){if(Ov)return dm;Ov=1;function e(t){const r="true false yes no null",a="[\\w#;/?:@&=+$,.~*'()[\\]]+",s={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},o={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},c={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},d={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,o]},f=t.inherit(d,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),x={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},_={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},N={begin:/\{/,end:/\}/,contains:[_],illegal:"\\n",relevance:0},S={begin:"\\[",end:"\\]",contains:[_],illegal:"\\n",relevance:0},w=[s,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+a},{className:"type",begin:"!<"+a+">"},{className:"type",begin:"!"+a},{className:"type",begin:"!!"+a},{className:"meta",begin:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:r,keywords:{literal:r}},x,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},N,S,c,d],k=[...w];return k.pop(),k.push(f),_.contains=k,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:w}}return dm=e,dm}var fm,Rv;function wD(){if(Rv)return fm;Rv=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],a=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],s=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],o=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],c=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],d=[].concat(o,a,s);function f(m){const p=m.regex,y=(W,{after:te})=>{const ce="</"+W[0].slice(1);return W.input.indexOf(ce,te)!==-1},x=e,_={begin:"<>",end:"</>"},N=/<[A-Za-z0-9\\._:-]+\s*\/>/,S={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(W,te)=>{const ce=W[0].length+W.index,fe=W.input[ce];if(fe==="<"||fe===","){te.ignoreMatch();return}fe===">"&&(y(W,{after:ce})||te.ignoreMatch());let be;const we=W.input.substring(ce);if(be=we.match(/^\s*=/)){te.ignoreMatch();return}if((be=we.match(/^\s+extends\s+/))&&be.index===0){te.ignoreMatch();return}}},w={$pattern:e,keyword:t,literal:r,built_in:d,"variable.language":c},k="[0-9](_?[0-9])*",E=`\\.(${k})`,M="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",I={className:"number",variants:[{begin:`(\\b(${M})((${E})|\\.)?|(${E}))[eE][+-]?(${k})\\b`},{begin:`\\b(${M})\\b((${E})\\b|\\.)?|(${E})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},R={className:"subst",begin:"\\$\\{",end:"\\}",keywords:w,contains:[]},U={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,R],subLanguage:"xml"}},B={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,R],subLanguage:"css"}},Z={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,R],subLanguage:"graphql"}},D={className:"string",begin:"`",end:"`",contains:[m.BACKSLASH_ESCAPE,R]},G={className:"comment",variants:[m.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:x+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),m.C_BLOCK_COMMENT_MODE,m.C_LINE_COMMENT_MODE]},V=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,U,B,Z,D,{match:/\$\d+/},I];R.contains=V.concat({begin:/\{/,end:/\}/,keywords:w,contains:["self"].concat(V)});const A=[].concat(G,R.contains),q=A.concat([{begin:/(\s*)\(/,end:/\)/,keywords:w,contains:["self"].concat(A)}]),O={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:w,contains:q},H={variants:[{match:[/class/,/\s+/,x,/\s+/,/extends/,/\s+/,p.concat(x,"(",p.concat(/\./,x),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,x],scope:{1:"keyword",3:"title.class"}}]},X={relevance:0,match:p.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...a,...s]}},K={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},T={variants:[{match:[/function/,/\s+/,x,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[O],illegal:/%/},j={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Y(W){return p.concat("(?!",W.join("|"),")")}const z={match:p.concat(/\b/,Y([...o,"super","import"].map(W=>`${W}\\s*\\(`)),x,p.lookahead(/\s*\(/)),className:"title.function",relevance:0},F={begin:p.concat(/\./,p.lookahead(p.concat(x,/(?![0-9A-Za-z$_(])/))),end:x,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},$={match:[/get|set/,/\s+/,x,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},O]},Q="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+m.UNDERSCORE_IDENT_RE+")\\s*=>",J={match:[/const|var|let/,/\s+/,x,/\s*/,/=\s*/,/(async\s*)?/,p.lookahead(Q)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[O]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:w,exports:{PARAMS_CONTAINS:q,CLASS_REFERENCE:X},illegal:/#(?![$_A-z])/,contains:[m.SHEBANG({label:"shebang",binary:"node",relevance:5}),K,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,U,B,Z,D,G,{match:/\$\d+/},I,X,{scope:"attr",match:x+p.lookahead(":"),relevance:0},J,{begin:"("+m.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[G,m.REGEXP_MODE,{className:"function",begin:Q,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:m.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:w,contains:q}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:_.begin,end:_.end},{match:N},{begin:S.begin,"on:begin":S.isTrulyOpeningTag,end:S.end}],subLanguage:"xml",contains:[{begin:S.begin,end:S.end,skip:!0,contains:["self"]}]}]},T,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+m.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[O,m.inherit(m.TITLE_MODE,{begin:x,className:"title.function"})]},{match:/\.\.\./,relevance:0},F,{match:"\\$"+x,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[O]},z,j,H,$,{match:/\$[(.]/}]}}function h(m){const p=m.regex,y=f(m),x=e,_=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],N={begin:[/namespace/,/\s+/,m.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},S={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:_},contains:[y.exports.CLASS_REFERENCE]},w={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},k=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],E={$pattern:e,keyword:t.concat(k),literal:r,built_in:d.concat(_),"variable.language":c},M={className:"meta",begin:"@"+x},I=(Z,D,L)=>{const G=Z.contains.findIndex(V=>V.label===D);if(G===-1)throw new Error("can not find mode to replace");Z.contains.splice(G,1,L)};Object.assign(y.keywords,E),y.exports.PARAMS_CONTAINS.push(M);const R=y.contains.find(Z=>Z.scope==="attr"),U=Object.assign({},R,{match:p.concat(x,p.lookahead(/\s*\?:/))});y.exports.PARAMS_CONTAINS.push([y.exports.CLASS_REFERENCE,R,U]),y.contains=y.contains.concat([M,N,S,U]),I(y,"shebang",m.SHEBANG()),I(y,"use_strict",w);const B=y.contains.find(Z=>Z.label==="func.def");return B.relevance=0,Object.assign(y,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),y}return fm=h,fm}var hm,Dv;function ED(){if(Dv)return hm;Dv=1;function e(t){const r=t.regex,a={className:"string",begin:/"(""|[^/n])"C\b/},s={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},o=/\d{1,2}\/\d{1,2}\/\d{4}/,c=/\d{4}-\d{1,2}-\d{1,2}/,d=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,f=/\d{1,2}(:\d{1,2}){1,2}/,h={className:"literal",variants:[{begin:r.concat(/# */,r.either(c,o),/ *#/)},{begin:r.concat(/# */,f,/ *#/)},{begin:r.concat(/# */,d,/ *#/)},{begin:r.concat(/# */,r.either(c,o),/ +/,r.either(d,f),/ *#/)}]},m={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},p={className:"label",begin:/^\w+:/},y=t.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),x=t.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[a,s,h,m,p,y,x,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[x]}]}}return hm=e,hm}var mm,jv;function ND(){if(jv)return mm;jv=1;function e(t){t.regex;const r=t.COMMENT(/\(;/,/;\)/);r.contains.push("self");const a=t.COMMENT(/;;/,/$/),s=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],o={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},c={className:"variable",begin:/\$[\w_]+/},d={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},f={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},h={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},m={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:s},contains:[a,r,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},c,d,o,t.QUOTE_STRING_MODE,h,m,f]}}return mm=e,mm}var pm,Lv;function SD(){if(Lv)return pm;Lv=1;var e=q4();return e.registerLanguage("xml",P4()),e.registerLanguage("bash",F4()),e.registerLanguage("c",G4()),e.registerLanguage("cpp",V4()),e.registerLanguage("csharp",Y4()),e.registerLanguage("css",X4()),e.registerLanguage("markdown",K4()),e.registerLanguage("diff",Z4()),e.registerLanguage("ruby",Q4()),e.registerLanguage("go",W4()),e.registerLanguage("graphql",J4()),e.registerLanguage("ini",eD()),e.registerLanguage("java",tD()),e.registerLanguage("javascript",nD()),e.registerLanguage("json",rD()),e.registerLanguage("kotlin",iD()),e.registerLanguage("less",aD()),e.registerLanguage("lua",sD()),e.registerLanguage("makefile",lD()),e.registerLanguage("perl",oD()),e.registerLanguage("objectivec",cD()),e.registerLanguage("php",uD()),e.registerLanguage("php-template",dD()),e.registerLanguage("plaintext",fD()),e.registerLanguage("python",hD()),e.registerLanguage("python-repl",mD()),e.registerLanguage("r",pD()),e.registerLanguage("rust",gD()),e.registerLanguage("scss",bD()),e.registerLanguage("shell",xD()),e.registerLanguage("sql",yD()),e.registerLanguage("swift",vD()),e.registerLanguage("yaml",_D()),e.registerLanguage("typescript",wD()),e.registerLanguage("vbnet",ED()),e.registerLanguage("wasm",ND()),e.HighlightJS=e,e.default=e,pm=e,pm}var kD=SD();const Gn=To(kD);function TD(e){const t=e.regex,r="HTTP/([32]|1\\.[01])",a=/[A-Za-z][A-Za-z0-9-]*/,s={className:"attribute",begin:t.concat("^",a,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},o=[s,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+r+" \\d{3})",end:/$/,contains:[{className:"meta",begin:r},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},{begin:"(?=^[A-Z]+ (.*?) "+r+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:r},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},e.inherit(s,{relevance:0})]}}function CD(e){const t=e.regex,r={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},s={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,r],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[r]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,r],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},r]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:s.contains,keywords:{section:"upstream location"}},{className:"section",begin:t.concat(e.UNDERSCORE_IDENT_RE+t.lookahead(/\s+\{/)),relevance:0},{begin:t.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:s}],relevance:0}],illegal:"[^\\s\\}\\{]"}}function AD(e){const t={className:"number",begin:/[$%]\d+/},r={className:"number",begin:/\b\d+/},a={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},s={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[a,s,e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{scope:"punctuation",match:/\\\n/},{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",t]},a,r,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}function MD(e){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}}function OD(e){const t="[ \\t\\f]*",r="[ \\t\\f]+",a=t+"[:=]"+t,s=r,o="("+a+"|"+s+")",c="([^\\\\:= \\t\\f\\n]|\\\\.)+",d={end:o,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:c+a},{begin:c+s}],contains:[{className:"attr",begin:c,endsParent:!0}],starts:d},{className:"attr",begin:c+t+"$"}]}}Gn.registerLanguage("http",TD);Gn.registerLanguage("nginx",CD);Gn.registerLanguage("apache",AD);Gn.registerLanguage("dockerfile",MD);Gn.registerLanguage("properties",OD);function iE({className:e,children:t,node:r}){var w,k;const[a,s]=ee.useState(!1),o=String(t).replace(/\n$/,""),c=/language-(\w+)/.exec(e||"");if(!(o.includes(`
+`)||c))return g.jsx("code",{className:`${e||""} bg-white/8 px-1.5 py-0.5 rounded text-[13px]`,children:t});const f=((w=r==null?void 0:r.data)==null?void 0:w.meta)||((k=r==null?void 0:r.properties)==null?void 0:k.metastring)||"",h=/title=["']?([^"'\s}]+)["']?/.exec(f),m=/startLineNumber=(\d+)/.exec(f),p=(h==null?void 0:h[1])||null,y=m?parseInt(m[1],10):1,x=p?m?`${p}:${y}`:p:null;let _;if(c)try{_=Gn.highlight(o,{language:c[1],ignoreIllegals:!0}).value}catch{_=Gn.highlightAuto(o).value}else _=Gn.highlightAuto(o).value;const N=_.split(`
+`),S=()=>{vp(o),s(!0),setTimeout(()=>s(!1),2e3)};return g.jsxs("div",{className:"group/code relative rounded-md border border-[#2a2a2a] my-4 text-[#ddd] overflow-hidden",children:[x?g.jsxs("div",{className:"flex items-stretch",children:[g.jsxs("span",{className:"relative flex items-center text-[13px] text-[#999] font-mono px-4 py-2 border-r border-[#2a2a2a]",children:[x,g.jsx("span",{className:"absolute top-0 inset-x-0 h-0.5 bg-white/60 rounded-full"})]}),g.jsx("div",{className:"flex-1 border-b border-[#2a2a2a]"}),g.jsx("button",{onClick:S,className:"px-3 py-2 text-[#555] hover:text-white transition-colors border-b border-[#2a2a2a]","aria-label":"Copy code",children:a?g.jsx(Gs,{className:"w-3.5 h-3.5 text-emerald-400"}):g.jsx(mo,{className:"w-3.5 h-3.5"})})]}):g.jsx("button",{onClick:S,className:"absolute top-2 right-2 z-10 p-1 rounded text-[#444] hover:text-white opacity-0 group-hover/code:opacity-100 transition-opacity","aria-label":"Copy code",children:a?g.jsx(Gs,{className:"w-3.5 h-3.5 text-emerald-400"}):g.jsx(mo,{className:"w-3.5 h-3.5"})}),g.jsx("div",{className:"overflow-auto max-h-[400px]",children:g.jsx("table",{className:"w-full border-collapse font-mono text-[12px] leading-[22px] [font-variant-ligatures:none]",children:g.jsx("tbody",{children:N.map((E,M)=>g.jsxs("tr",{children:[g.jsx("td",{className:"select-none w-[1px] whitespace-nowrap px-4 text-right text-[#555] align-top text-[12px] leading-[22px] border-r border-[#2a2a2a]",children:y+M}),g.jsx("td",{className:"pl-4 pr-4 whitespace-pre",dangerouslySetInnerHTML:{__html:E||`
+`}})]},M))})})})]})}function Pp(){return e=>{const t=r=>{var a;if(r.type==="element"&&r.tagName==="pre"&&r.children){const s=r.children.find(o=>o.type==="element"&&o.tagName==="code");(a=s==null?void 0:s.data)!=null&&a.meta&&(s.properties=s.properties||{},s.properties.metastring=s.data.meta)}r.children&&r.children.forEach(s=>t(s))};t(e)}}const Fp={code:iE,pre:({children:e})=>g.jsx(g.Fragment,{children:e})};function oa({title:e,content:t,action:r}){return g.jsxs("section",{children:[(e||r)&&g.jsxs("div",{className:"flex items-center justify-between gap-3 mb-3",children:[e?g.jsx("h2",{className:"text-xl font-semibold text-white",children:e}):g.jsx("span",{}),r]}),g.jsx("div",{className:"prose-markdown",children:g.jsx(Bp,{remarkPlugins:[qp],rehypePlugins:[Pp],components:Fp,children:t})})]})}class RD{diff(t,r,a={}){let s;typeof a=="function"?(s=a,a={}):"callback"in a&&(s=a.callback);const o=this.castInput(t,a),c=this.castInput(r,a),d=this.removeEmpty(this.tokenize(o,a)),f=this.removeEmpty(this.tokenize(c,a));return this.diffWithOptionsObj(d,f,a,s)}diffWithOptionsObj(t,r,a,s){var o;const c=k=>{if(k=this.postProcess(k,a),s){setTimeout(function(){s(k)},0);return}else return k},d=r.length,f=t.length;let h=1,m=d+f;a.maxEditLength!=null&&(m=Math.min(m,a.maxEditLength));const p=(o=a.timeout)!==null&&o!==void 0?o:1/0,y=Date.now()+p,x=[{oldPos:-1,lastComponent:void 0}];let _=this.extractCommon(x[0],r,t,0,a);if(x[0].oldPos+1>=f&&_+1>=d)return c(this.buildValues(x[0].lastComponent,r,t));let N=-1/0,S=1/0;const w=()=>{for(let k=Math.max(N,-h);k<=Math.min(S,h);k+=2){let E;const M=x[k-1],I=x[k+1];M&&(x[k-1]=void 0);let R=!1;if(I){const B=I.oldPos-k;R=I&&0<=B&&B<d}const U=M&&M.oldPos+1<f;if(!R&&!U){x[k]=void 0;continue}if(!U||R&&M.oldPos<I.oldPos?E=this.addToPath(I,!0,!1,0,a):E=this.addToPath(M,!1,!0,1,a),_=this.extractCommon(E,r,t,k,a),E.oldPos+1>=f&&_+1>=d)return c(this.buildValues(E.lastComponent,r,t))||!0;x[k]=E,E.oldPos+1>=f&&(S=Math.min(S,k-1)),_+1>=d&&(N=Math.max(N,k+1))}h++};if(s)(function k(){setTimeout(function(){if(h>m||Date.now()>y)return s(void 0);w()||k()},0)})();else for(;h<=m&&Date.now()<=y;){const k=w();if(k)return k}}addToPath(t,r,a,s,o){const c=t.lastComponent;return c&&!o.oneChangePerToken&&c.added===r&&c.removed===a?{oldPos:t.oldPos+s,lastComponent:{count:c.count+1,added:r,removed:a,previousComponent:c.previousComponent}}:{oldPos:t.oldPos+s,lastComponent:{count:1,added:r,removed:a,previousComponent:c}}}extractCommon(t,r,a,s,o){const c=r.length,d=a.length;let f=t.oldPos,h=f-s,m=0;for(;h+1<c&&f+1<d&&this.equals(a[f+1],r[h+1],o);)h++,f++,m++,o.oneChangePerToken&&(t.lastComponent={count:1,previousComponent:t.lastComponent,added:!1,removed:!1});return m&&!o.oneChangePerToken&&(t.lastComponent={count:m,previousComponent:t.lastComponent,added:!1,removed:!1}),t.oldPos=f,h}equals(t,r,a){return a.comparator?a.comparator(t,r):t===r||!!a.ignoreCase&&t.toLowerCase()===r.toLowerCase()}removeEmpty(t){const r=[];for(let a=0;a<t.length;a++)t[a]&&r.push(t[a]);return r}castInput(t,r){return t}tokenize(t,r){return Array.from(t)}join(t){return t.join("")}postProcess(t,r){return t}get useLongestToken(){return!1}buildValues(t,r,a){const s=[];let o;for(;t;)s.push(t),o=t.previousComponent,delete t.previousComponent,t=o;s.reverse();const c=s.length;let d=0,f=0,h=0;for(;d<c;d++){const m=s[d];if(m.removed)m.value=this.join(a.slice(h,h+m.count)),h+=m.count;else{if(!m.added&&this.useLongestToken){let p=r.slice(f,f+m.count);p=p.map(function(y,x){const _=a[h+x];return _.length>y.length?_:y}),m.value=this.join(p)}else m.value=this.join(r.slice(f,f+m.count));f+=m.count,m.added||(h+=m.count)}}return s}}class DD extends RD{constructor(){super(...arguments),this.tokenize=zD}equals(t,r,a){return a.ignoreWhitespace?((!a.newlineIsToken||!t.includes(`
+`))&&(t=t.trim()),(!a.newlineIsToken||!r.includes(`
+`))&&(r=r.trim())):a.ignoreNewlineAtEof&&!a.newlineIsToken&&(t.endsWith(`
+`)&&(t=t.slice(0,-1)),r.endsWith(`
+`)&&(r=r.slice(0,-1))),super.equals(t,r,a)}}const jD=new DD;function LD(e,t,r){return jD.diff(e,t,r)}function zD(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
+`));const r=[],a=e.split(/(\n|\r\n)/);a[a.length-1]||a.pop();for(let s=0;s<a.length;s++){const o=a[s];s%2&&!t.newlineIsToken?r[r.length-1]+=o:r.push(o)}return r}function ID(e,t){try{return Gn.highlight(e,{language:t,ignoreIllegals:!0}).value}catch{return Gn.highlightAuto(e).value}}function BD({file:e,startLine:t,endLine:r,before:a,after:s,onCopy:o}){const[c,d]=ee.useState(!1),f=r&&r!==t?`${t}-${r}`:`${t}`,h=EC(e)||"text",m=LD(a,s);let p=t,y=t;const x=m.flatMap(N=>N.value.replace(/\n$/,"").split(`
+`).map(S=>{const w=S===""?`
+`:h!=="text"?ID(S,h):S.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");let k="",E="";return N.removed?k=String(p++):(N.added||(k=String(p++)),E=String(y++)),{highlighted:w,added:!!N.added,removed:!!N.removed,leftNo:k,rightNo:E}})),_=()=>{vp(s),d(!0),setTimeout(()=>d(!1),2e3),o==null||o()};return g.jsxs("div",{className:"rounded-md border border-[#2a2a2a] overflow-hidden",children:[g.jsxs("div",{className:"flex items-stretch",children:[g.jsxs("span",{className:"relative flex items-center text-[13px] text-[#999] font-mono px-4 py-2 border-r border-[#2a2a2a] break-all",children:[e,":",f,g.jsx("span",{className:"absolute top-0 inset-x-0 h-0.5 bg-white/60 rounded-full"})]}),g.jsx("div",{className:"flex-1 border-b border-[#2a2a2a]"}),g.jsx("button",{onClick:_,className:"px-3 py-2 text-[#555] hover:text-white transition-colors flex-shrink-0 border-b border-[#2a2a2a]","aria-label":"Copy fixed code",children:c?g.jsx(Gs,{className:"w-3.5 h-3.5 text-emerald-400"}):g.jsx(mo,{className:"w-3.5 h-3.5"})})]}),g.jsx("div",{className:"overflow-auto max-h-[400px]",children:g.jsx("table",{className:"w-full border-collapse font-mono text-[12px] leading-[22px] [font-variant-ligatures:none]",children:g.jsx("tbody",{children:x.map((N,S)=>g.jsxs("tr",{className:N.added?"bg-blue-500/[0.12]":N.removed?"bg-red-500/[0.12]":"",children:[g.jsx("td",{className:"select-none w-[1px] whitespace-nowrap pl-4 pr-1.5 text-right text-[#555] align-top text-[12px] leading-[22px]",children:N.leftNo}),g.jsx("td",{className:"select-none w-[1px] whitespace-nowrap pl-1.5 pr-4 text-right text-[#555] align-top text-[12px] leading-[22px] border-r border-[#2a2a2a]",children:N.rightNo}),g.jsx("td",{className:"pl-4 pr-4 whitespace-pre",dangerouslySetInnerHTML:{__html:N.highlighted}})]},S))})})})]})}function UD({description:e,scriptCode:t,onCopy:r}){const[a,s]=ee.useState(!1);if(!e&&!t)return null;const o=()=>{t&&(vp(t),s(!0),setTimeout(()=>s(!1),2e3),r==null||r())};return g.jsxs("section",{children:[g.jsx("h2",{className:"text-xl font-semibold text-white mb-3",children:"Proof of Concept"}),g.jsxs("div",{className:"space-y-4",children:[e&&g.jsx("div",{className:"prose-markdown",children:g.jsx(Bp,{remarkPlugins:[qp],rehypePlugins:[Pp],components:Fp,children:e})}),t&&g.jsxs("div",{className:"group/poc relative rounded-md border border-[#2a2a2a] overflow-hidden",children:[g.jsxs("div",{className:"flex items-stretch",children:[g.jsxs("span",{className:"relative flex items-center text-[13px] text-[#999] font-mono px-4 py-2 border-r border-[#2a2a2a]",children:["PoC Script",g.jsx("span",{className:"absolute top-0 inset-x-0 h-0.5 bg-white/60 rounded-full"})]}),g.jsx("div",{className:"flex-1 border-b border-[#2a2a2a]"}),g.jsx("button",{onClick:o,className:"px-3 py-2 text-[#555] hover:text-white transition-colors flex-shrink-0 border-b border-[#2a2a2a]","aria-label":"Copy PoC code",children:a?g.jsx(Gs,{className:"w-3.5 h-3.5 text-emerald-400"}):g.jsx(mo,{className:"w-3.5 h-3.5"})})]}),g.jsx("div",{className:"overflow-auto max-h-[400px] px-4 py-3",children:g.jsx("pre",{className:"font-mono text-[12px] leading-[22px] whitespace-pre [font-variant-ligatures:none]",children:g.jsx("code",{dangerouslySetInnerHTML:{__html:Gn.highlight(t,{language:"python"}).value}})})})]})]})]})}function aE(e){const t=e.match(/(?:https?:\/\/)?(?:www\.)?github\.com\/([^\s/]+\/[^\s/]+)/);if(t){const s=t[1].replace(/\.git$/,"");return{display:s,href:`https://github.com/${s}`,provider:"github"}}const r=e.match(/(?:https?:\/\/)?(?:www\.)?gitlab\.com\/([^\s/]+\/[^\s/]+)/);if(r){const s=r[1].replace(/\.git$/,"");return{display:s,href:`https://gitlab.com/${s}`,provider:"gitlab"}}const a=e.match(/(?:https?:\/\/)?(?:www\.)?bitbucket\.org\/([^\s/]+\/[^\s/]+)/);if(a){const s=a[1].replace(/\.git$/,"");return{display:s,href:`https://bitbucket.org/${s}`,provider:"bitbucket"}}return/^https?:\/\//i.test(e)?{display:e.replace(/^https?:\/\/(www\.)?/,""),href:e,provider:null}:/^[a-zA-Z0-9][\w.-]*\.[a-zA-Z]{2,}/.test(e)?{display:e,href:`https://${e}`,provider:null}:{display:e,href:null,provider:null}}function bo(e,t){return e?aE(e).display.replace(/\/$/,""):t||"Untitled scan"}function HD({className:e}){return g.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:e,"aria-hidden":"true",children:g.jsx("path",{d:"M2.65 3a.72.72 0 0 0-.72.83l2.86 17.39a.98.98 0 0 0 .96.82h13.72a.72.72 0 0 0 .72-.6l2.86-17.4A.72.72 0 0 0 22.3 3H2.65Zm12.1 12.53H9.3L8.06 8.9h7.8l-1.11 6.63Z"})})}function $D({provider:e,className:t}){const r=t??"w-4 h-4";return e==="gitlab"?g.jsx(_T,{className:`${r} text-orange-400`}):e==="bitbucket"?g.jsx(HD,{className:`${r} text-blue-400`}):g.jsx(yT,{className:`${r} text-white`})}const qD={attack_vector:{N:"Remotely exploitable",A:"Adjacent network",L:"Local access required",P:"Physical access required"},attack_complexity:{L:"Easy to exploit",H:"Requires specific conditions"},privileges_required:{N:"No authentication needed",L:"Low privileges needed",H:"High privileges needed"},user_interaction:{N:"No user action required",R:"Requires user action",P:"Passive user role",A:"Active user role"},scope:{U:"Impact stays contained",C:"Can spread to other systems"},confidentiality:{N:"No data exposure",L:"Partial data exposure",H:"Full data exposure"},integrity:{N:"No data modification",L:"Limited modification",H:"Full data modification"},availability:{N:"No service disruption",L:"Limited disruption",H:"Full service disruption"}},PD={attack_vector:{N:"high",A:"medium",L:"low",P:"low"},attack_complexity:{L:"high",H:"low"},privileges_required:{N:"high",L:"medium",H:"low"},user_interaction:{N:"high",R:"low",P:"medium",A:"low"},scope:{C:"high",U:"low"},confidentiality:{H:"high",L:"medium",N:"low"},integrity:{H:"high",L:"medium",N:"low"},availability:{H:"high",L:"medium",N:"low"}},FD={high:"bg-red-500/15 text-red-400 border-red-500/25",medium:"bg-yellow-500/15 text-yellow-400 border-yellow-500/25",low:"bg-[#222] text-[#666] border-[#333]"},GD=[{label:"Exploitability",keys:["attack_vector","attack_complexity","privileges_required","user_interaction"]},{label:"Impact",keys:["scope","confidentiality","integrity","availability"]}];function VD(e,t,r,a,s){const o=e.replace(/\.git$/,"").replace(/\/+$/,""),c=a.split("/").map(encodeURIComponent).join("/"),d=r.split("/").map(encodeURIComponent).join("/");return t==="github"?`${o}/blob/${d}/${c}#L${s}`:t==="gitlab"?`${o}/-/blob/${d}/${c}#L${s}`:null}function YD({vulnerability:e,statusSlot:t,slackThreadUrl:r}){var R;const{severity:a,cvss:s,cve:o,cwe:c,fix_effort:d,created_at:f,target:h,endpoint:m,method:p,code_locations:y,cvss_breakdown:x,location_meta:_}=e,[N,S]=ee.useState(!0),w=y==null?void 0:y.filter(U=>U.fix_before&&U.fix_after),k=w&&w.length>0,E=h?aE(h):null,M=!!(h||m||p||k),I=x&&Object.values(x).some(U=>U!=null);return g.jsxs("aside",{className:"lg:sticky lg:top-6 lg:max-h-[calc(100vh-3rem)] lg:overflow-y-auto",children:[g.jsx("div",{className:"pb-4",children:g.jsxs("div",{className:"space-y-3",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"Severity"}),g.jsxs("div",{className:"flex items-center gap-1.5",children:[g.jsx("div",{className:`w-2 h-2 rounded-full ${yp(a)}`,"aria-hidden":"true"}),g.jsx("span",{className:"text-sm font-medium capitalize text-white",children:a})]})]}),g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"CVSS Score"}),g.jsx("span",{className:"text-sm font-semibold tabular-nums text-white",children:s!==null?s:"N/A"})]}),o&&g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"CVE"}),g.jsx("span",{className:"text-sm text-white font-mono",children:o})]}),c&&c.length>0&&g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"CWE"}),g.jsx("span",{className:"text-xs text-white font-mono truncate max-w-[80%] text-right",title:c.join(" · "),children:c.join(" · ")})]}),d&&g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"Fix Effort"}),g.jsx("span",{className:`inline-flex items-center px-2 py-0.5 text-[11px] font-medium rounded-full border ${((R=_C[d])==null?void 0:R.color)??"text-[#666]"}`,children:d.charAt(0).toUpperCase()+d.slice(1)})]}),g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"Discovered"}),g.jsxs("div",{className:"flex items-center gap-1.5",children:[g.jsx(R_,{className:"w-3 h-3 text-[#444]","aria-hidden":"true"}),g.jsx("span",{className:"text-sm text-white",children:Hm(f)})]})]}),g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"Status"}),t]})]})}),M&&g.jsxs("div",{className:"border-t border-[#191919] pt-4 pb-4",children:[g.jsx("p",{className:"text-xs font-medium text-[#aaa] mb-2.5",children:"Asset"}),g.jsxs("div",{className:"space-y-2.5",children:[h&&E&&g.jsxs("div",{className:"flex items-center gap-1.5",children:[E.provider?g.jsx("span",{className:"flex-shrink-0 [&_svg]:w-3.5 [&_svg]:h-3.5","aria-hidden":"true",children:g.jsx($D,{provider:E.provider})}):g.jsx(j_,{className:"w-3.5 h-3.5 text-[#555] flex-shrink-0","aria-hidden":"true"}),E.href?g.jsx("a",{href:E.href,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-white hover:text-[#ccc] break-words min-w-0 transition-colors",children:E.display}):g.jsx("span",{className:"text-sm text-white break-words min-w-0",children:E.display})]}),m&&g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"Endpoint"}),g.jsx("span",{className:"text-xs text-white font-mono truncate max-w-[75%] text-right",children:m})]}),p&&g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"Method"}),g.jsx("span",{className:"text-xs text-white font-mono",children:p})]}),k&&g.jsxs("div",{children:[g.jsx("span",{className:"text-xs text-[#aaa] mb-1.5 block",children:"Locations"}),g.jsx("div",{className:"space-y-0.5",children:w.map((U,B)=>{const Z=`${U.file}:${U.start_line}`,D=_?VD(_.repo_url,_.provider,_.branch,U.file,U.start_line):null;return D?g.jsx("a",{href:D,target:"_blank",rel:"noopener noreferrer",className:"text-[13px] text-[#888] hover:text-white font-mono break-all transition-colors block",children:Z},`loc-${B}`):g.jsx("span",{className:"text-[13px] text-[#888] font-mono break-all block",children:Z},`loc-${B}`)})})]})]})]}),I&&g.jsxs("div",{className:"border-t border-[#191919] pt-4",children:[g.jsxs("button",{onClick:()=>S(!N),className:"flex items-center justify-between w-full mb-2.5 group","aria-expanded":N,children:[g.jsx("span",{className:"text-xs font-medium text-[#aaa]",children:"Risk Assessment"}),g.jsx(ho,{className:`w-3.5 h-3.5 text-[#555] group-hover:text-white transition-transform ${N?"":"-rotate-90"}`,"aria-hidden":"true"})]}),g.jsx("div",{className:`space-y-3 ${N?"":"hidden"}`,children:GD.map(U=>{const B=U.keys.filter(Z=>x[Z]!=null);return B.length===0?null:g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[g.jsx("p",{className:"text-[10px] uppercase tracking-wider text-[#444] font-medium",children:U.label}),g.jsx("p",{className:"text-[10px] uppercase tracking-wider text-[#444] font-medium mr-2",children:"Risk"})]}),g.jsx("div",{className:"space-y-1",children:B.map(Z=>{var V,A;const D=x[Z],L=D?((V=PD[Z])==null?void 0:V[D])??"low":"low",G=D?((A=qD[Z])==null?void 0:A[D])??D:"N/A";return g.jsxs("div",{className:"flex items-center justify-between py-0.5",children:[g.jsx("span",{className:"text-[12px] text-[#aaa]",children:G}),g.jsx("span",{className:`text-[10px] font-medium px-1.5 py-0.5 rounded border ${FD[L]}`,children:L})]},Z)})})]},U.label)})})]})]})}function zv(e){return e?Math.floor((Date.now()-new Date(e).getTime())/1e3)<604800?` ${Hm(e)}`:` on ${Hm(e)}`:""}const XD={open:null,in_progress:{icon:R_,label:"Marked as In Progress",iconColor:"text-blue-400"},snoozed:{icon:Lk,label:"Snoozed",iconColor:"text-purple-400"},fixed:{icon:O_,label:"Marked as Fixed",iconColor:"text-emerald-400"},ignored:{icon:T_,label:"Marked as Ignored",iconColor:"text-[#888]"}},KD=[{label:"Auto-fix & open a PR",slug:"autofix",icon:Bm,requiresCode:!0},{label:"Sync to Jira / Linear",slug:"integrations",icon:pT}];function ZD({vulnerability:e}){const t=vC[e.status],r=e.code_locations&&e.code_locations.length>0,a=r||e.remediation_steps,s=!!(e.evidence||e.assumptions||e.poc_description||e.poc_script_code),[o,c]=ee.useState("fix"),f=[{id:"fix",label:"Fix",show:!!a},{id:"reproduction",label:"Reproduction",show:s}].filter(h=>h.show);return g.jsxs("div",{className:"space-y-6",children:[g.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[g.jsxs("div",{className:"min-w-0 flex-1",children:[g.jsxs("div",{className:"mb-2",children:[e.display_number&&g.jsx("span",{className:"text-xs font-mono text-[#555] block mb-1",children:yA(e.display_number)}),g.jsx("h1",{className:"text-2xl font-semibold text-white",children:e.title})]}),g.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[g.jsx("span",{className:`inline-flex items-center gap-1.5 px-3 py-1 text-sm font-medium rounded-full border ${t.color}`,children:t.label}),g.jsxs("div",{className:`inline-flex items-center gap-1.5 px-3 py-1 text-sm font-semibold rounded-full border ${I_[e.severity]}`,title:Zc(e)?`Adjusted from ${e.original_severity}`:void 0,children:[g.jsx("div",{className:`w-2 h-2 rounded-full ${yp(e.severity)}`}),g.jsxs("span",{className:"capitalize",children:[e.severity,!Zc(e)&&e.cvss?` ${e.cvss}`:""]}),Zc(e)&&g.jsx(Vs,{className:"w-3 h-3 opacity-70","aria-hidden":"true"})]}),e.cve&&g.jsxs(g.Fragment,{children:[g.jsx("span",{className:"text-[#333]",children:"·"}),g.jsx("span",{className:"text-sm text-[#666] font-mono",children:e.cve})]})]})]}),g.jsx("div",{className:"flex flex-shrink-0 flex-wrap items-center gap-2",children:KD.filter(h=>!h.requiresCode||r).map(h=>{const m=h.icon;return g.jsxs("a",{href:fa($u,h.slug),target:"_blank",rel:"noopener noreferrer",onClick:()=>Vr(h.slug,"finding_detail"),className:"inline-flex items-center gap-1.5 rounded-lg bg-white px-3 py-1.5 text-xs font-semibold text-black transition-opacity hover:opacity-90",children:[g.jsx(m,{className:"h-3.5 w-3.5","aria-hidden":"true"}),h.label]},h.slug)})})]}),e.status!=="open"&&(()=>{const h=XD[e.status];if(!h)return null;const m=h.icon;return g.jsxs("div",{className:"rounded-lg px-4 py-3.5 flex gap-3",style:{border:"1px solid rgba(255,255,255,0.08)"},children:[g.jsx(m,{className:`w-5 h-5 flex-shrink-0 mt-0.5 ${h.iconColor}`,"aria-hidden":"true"}),g.jsxs("div",{className:"min-w-0",children:[g.jsxs("p",{className:"text-sm font-semibold text-white",children:[h.label,zv(e.status_changed_at)]}),e.status_note&&g.jsxs("p",{className:"text-sm text-[#666] italic mt-1",children:["“",e.status_note,"”"]})]})]})})(),Zc(e)&&g.jsxs("div",{className:"rounded-lg px-4 py-3.5 flex gap-3",style:{border:"1px solid rgba(255,255,255,0.08)"},children:[g.jsx(Vs,{className:"w-5 h-5 flex-shrink-0 mt-0.5 text-orange-400","aria-hidden":"true"}),g.jsxs("div",{className:"min-w-0",children:[g.jsxs("p",{className:"text-sm font-semibold text-white",children:["Severity changed manually from"," ",g.jsx("span",{className:"capitalize",children:e.original_severity}),e.cvss!=null?` (${e.cvss})`:""," to"," ",g.jsx("span",{className:"capitalize",children:e.severity}),zv(e.severity_changed_at)]}),e.severity_override_reason&&g.jsxs("p",{className:"text-sm text-[#666] italic mt-1",children:["“",e.severity_override_reason,"”"]})]})]}),g.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_340px] gap-8",children:[g.jsxs("div",{className:"min-w-0",children:[g.jsxs("div",{className:"space-y-8",children:[g.jsx(oa,{title:"TL;DR",content:e.description}),e.impact&&g.jsx(oa,{title:"Impact",content:e.impact}),e.technical_analysis&&g.jsx(oa,{title:"Technical Details",content:e.technical_analysis})]}),f.length>0&&g.jsxs("div",{className:"mt-10",children:[g.jsx("div",{className:"border-b border-[#2a2a2a]",children:g.jsx("nav",{className:"flex gap-6","aria-label":"Tabs",children:f.map(h=>g.jsxs("button",{onClick:()=>c(h.id),className:`relative min-w-[80px] text-center pb-3 text-[16px] font-semibold transition-colors ${o===h.id?"text-white":"text-[#666] hover:text-white"}`,"aria-current":o===h.id?"page":void 0,children:[h.label,o===h.id&&g.jsx("span",{className:"absolute bottom-0 inset-x-0 h-0.5 bg-white rounded-full"})]},h.id))})}),a&&g.jsxs("div",{className:`pt-6 space-y-6 ${o==="fix"?"animate-tab-in":"hidden"}`,children:[e.remediation_steps&&g.jsx(oa,{title:"How do I fix it?",content:e.remediation_steps}),r&&e.code_locations.filter(h=>h.fix_before&&h.fix_after).map((h,m)=>g.jsx(BD,{file:h.file,startLine:h.start_line,endLine:h.end_line,before:h.fix_before,after:h.fix_after},`fix-${m}`))]}),s&&g.jsxs("div",{className:`pt-6 space-y-8 ${o==="reproduction"?"animate-tab-in":"hidden"}`,children:[e.assumptions&&g.jsx(oa,{title:"Assumptions",content:e.assumptions}),e.evidence&&g.jsx(oa,{title:"Evidence",content:e.evidence}),g.jsx(UD,{description:e.poc_description,scriptCode:e.poc_script_code})]})]})]}),g.jsx("div",{className:"lg:border-l lg:border-[#2a2a2a] lg:pl-6",children:g.jsx(YD,{vulnerability:e,statusSlot:g.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 text-xs font-medium rounded-full border ${t.color}`,children:[g.jsx("div",{className:`w-1.5 h-1.5 rounded-full ${t.dotColor}`}),t.label]})})})]})]})}const Iv=[{key:"critical",label:"critical",dotClass:"bg-red-500",textClass:"text-red-500"},{key:"high",label:"high",dotClass:"bg-orange-500",textClass:"text-orange-500"},{key:"medium",label:"medium",dotClass:"bg-yellow-500",textClass:"text-yellow-500"},{key:"low",label:"low",dotClass:"bg-blue-500",textClass:"text-blue-500"}];function QD({findings:e,className:t,unit:r="issues",trailing:a}){return e.total<=0?null:g.jsxs("div",{className:Mr("space-y-3",t),children:[g.jsxs("div",{className:"flex flex-wrap items-center gap-x-8 gap-y-3",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-2xl font-semibold text-white tabular-nums",children:e.total}),g.jsx("span",{className:"text-sm text-[#666]",children:r})]}),g.jsx("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-2",children:Iv.map(({key:s,label:o,dotClass:c,textClass:d})=>{const f=e[s];return f<=0?null:g.jsxs("div",{className:"flex items-center gap-1.5",children:[g.jsx("div",{className:Mr("w-2 h-2 rounded-full",c),"aria-hidden":"true"}),g.jsx("span",{className:Mr("text-sm tabular-nums",d),children:f}),g.jsx("span",{className:"text-xs text-[#555]",children:o})]},s)})}),a?g.jsx("div",{className:"flex items-center gap-2",children:a}):null]}),g.jsx("div",{className:"h-1.5 rounded-full bg-[#222] overflow-hidden flex",children:Iv.map(({key:s,dotClass:o})=>{const c=e[s];return c<=0?null:g.jsx("div",{className:Mr("h-full",o),style:{width:`${c/e.total*100}%`}},s)})})]})}function ln(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let r=0,a;r<e.length;r++)(a=ln(e[r]))!==""&&(t+=(t&&" ")+a);else for(let r in e)e[r]&&(t+=(t&&" ")+r);return t}var WD={value:()=>{}};function Yu(){for(var e=0,t=arguments.length,r={},a;e<t;++e){if(!(a=arguments[e]+"")||a in r||/[\s.]/.test(a))throw new Error("illegal type: "+a);r[a]=[]}return new pu(r)}function pu(e){this._=e}function JD(e,t){return e.trim().split(/^|\s+/).map(function(r){var a="",s=r.indexOf(".");if(s>=0&&(a=r.slice(s+1),r=r.slice(0,s)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:a}})}pu.prototype=Yu.prototype={constructor:pu,on:function(e,t){var r=this._,a=JD(e+"",r),s,o=-1,c=a.length;if(arguments.length<2){for(;++o<c;)if((s=(e=a[o]).type)&&(s=ej(r[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<c;)if(s=(e=a[o]).type)r[s]=Bv(r[s],e.name,t);else if(t==null)for(s in r)r[s]=Bv(r[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new pu(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var r=new Array(s),a=0,s,o;a<s;++a)r[a]=arguments[a+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],a=0,s=o.length;a<s;++a)o[a].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var a=this._[e],s=0,o=a.length;s<o;++s)a[s].value.apply(t,r)}};function ej(e,t){for(var r=0,a=e.length,s;r<a;++r)if((s=e[r]).name===t)return s.value}function Bv(e,t,r){for(var a=0,s=e.length;a<s;++a)if(e[a].name===t){e[a]=WD,e=e.slice(0,a).concat(e.slice(a+1));break}return r!=null&&e.push({name:t,value:r}),e}var Wm="http://www.w3.org/1999/xhtml";const Uv={svg:"http://www.w3.org/2000/svg",xhtml:Wm,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Xu(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Uv.hasOwnProperty(t)?{space:Uv[t],local:e}:e}function tj(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Wm&&t.documentElement.namespaceURI===Wm?t.createElement(e):t.createElementNS(r,e)}}function nj(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function sE(e){var t=Xu(e);return(t.local?nj:tj)(t)}function rj(){}function Gp(e){return e==null?rj:function(){return this.querySelector(e)}}function ij(e){typeof e!="function"&&(e=Gp(e));for(var t=this._groups,r=t.length,a=new Array(r),s=0;s<r;++s)for(var o=t[s],c=o.length,d=a[s]=new Array(c),f,h,m=0;m<c;++m)(f=o[m])&&(h=e.call(f,f.__data__,m,o))&&("__data__"in f&&(h.__data__=f.__data__),d[m]=h);return new ar(a,this._parents)}function aj(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function sj(){return[]}function lE(e){return e==null?sj:function(){return this.querySelectorAll(e)}}function lj(e){return function(){return aj(e.apply(this,arguments))}}function oj(e){typeof e=="function"?e=lj(e):e=lE(e);for(var t=this._groups,r=t.length,a=[],s=[],o=0;o<r;++o)for(var c=t[o],d=c.length,f,h=0;h<d;++h)(f=c[h])&&(a.push(e.call(f,f.__data__,h,c)),s.push(f));return new ar(a,s)}function oE(e){return function(){return this.matches(e)}}function cE(e){return function(t){return t.matches(e)}}var cj=Array.prototype.find;function uj(e){return function(){return cj.call(this.children,e)}}function dj(){return this.firstElementChild}function fj(e){return this.select(e==null?dj:uj(typeof e=="function"?e:cE(e)))}var hj=Array.prototype.filter;function mj(){return Array.from(this.children)}function pj(e){return function(){return hj.call(this.children,e)}}function gj(e){return this.selectAll(e==null?mj:pj(typeof e=="function"?e:cE(e)))}function bj(e){typeof e!="function"&&(e=oE(e));for(var t=this._groups,r=t.length,a=new Array(r),s=0;s<r;++s)for(var o=t[s],c=o.length,d=a[s]=[],f,h=0;h<c;++h)(f=o[h])&&e.call(f,f.__data__,h,o)&&d.push(f);return new ar(a,this._parents)}function uE(e){return new Array(e.length)}function xj(){return new ar(this._enter||this._groups.map(uE),this._parents)}function Su(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Su.prototype={constructor:Su,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function yj(e){return function(){return e}}function vj(e,t,r,a,s,o){for(var c=0,d,f=t.length,h=o.length;c<h;++c)(d=t[c])?(d.__data__=o[c],a[c]=d):r[c]=new Su(e,o[c]);for(;c<f;++c)(d=t[c])&&(s[c]=d)}function _j(e,t,r,a,s,o,c){var d,f,h=new Map,m=t.length,p=o.length,y=new Array(m),x;for(d=0;d<m;++d)(f=t[d])&&(y[d]=x=c.call(f,f.__data__,d,t)+"",h.has(x)?s[d]=f:h.set(x,f));for(d=0;d<p;++d)x=c.call(e,o[d],d,o)+"",(f=h.get(x))?(a[d]=f,f.__data__=o[d],h.delete(x)):r[d]=new Su(e,o[d]);for(d=0;d<m;++d)(f=t[d])&&h.get(y[d])===f&&(s[d]=f)}function wj(e){return e.__data__}function Ej(e,t){if(!arguments.length)return Array.from(this,wj);var r=t?_j:vj,a=this._parents,s=this._groups;typeof e!="function"&&(e=yj(e));for(var o=s.length,c=new Array(o),d=new Array(o),f=new Array(o),h=0;h<o;++h){var m=a[h],p=s[h],y=p.length,x=Nj(e.call(m,m&&m.__data__,h,a)),_=x.length,N=d[h]=new Array(_),S=c[h]=new Array(_),w=f[h]=new Array(y);r(m,p,N,S,w,x,t);for(var k=0,E=0,M,I;k<_;++k)if(M=N[k]){for(k>=E&&(E=k+1);!(I=S[E])&&++E<_;);M._next=I||null}}return c=new ar(c,a),c._enter=d,c._exit=f,c}function Nj(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Sj(){return new ar(this._exit||this._groups.map(uE),this._parents)}function kj(e,t,r){var a=this.enter(),s=this,o=this.exit();return typeof e=="function"?(a=e(a),a&&(a=a.selection())):a=a.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),r==null?o.remove():r(o),a&&s?a.merge(s).order():s}function Tj(e){for(var t=e.selection?e.selection():e,r=this._groups,a=t._groups,s=r.length,o=a.length,c=Math.min(s,o),d=new Array(s),f=0;f<c;++f)for(var h=r[f],m=a[f],p=h.length,y=d[f]=new Array(p),x,_=0;_<p;++_)(x=h[_]||m[_])&&(y[_]=x);for(;f<s;++f)d[f]=r[f];return new ar(d,this._parents)}function Cj(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var a=e[t],s=a.length-1,o=a[s],c;--s>=0;)(c=a[s])&&(o&&c.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(c,o),o=c);return this}function Aj(e){e||(e=Mj);function t(p,y){return p&&y?e(p.__data__,y.__data__):!p-!y}for(var r=this._groups,a=r.length,s=new Array(a),o=0;o<a;++o){for(var c=r[o],d=c.length,f=s[o]=new Array(d),h,m=0;m<d;++m)(h=c[m])&&(f[m]=h);f.sort(t)}return new ar(s,this._parents).order()}function Mj(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Oj(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Rj(){return Array.from(this)}function Dj(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var a=e[t],s=0,o=a.length;s<o;++s){var c=a[s];if(c)return c}return null}function jj(){let e=0;for(const t of this)++e;return e}function Lj(){return!this.node()}function zj(e){for(var t=this._groups,r=0,a=t.length;r<a;++r)for(var s=t[r],o=0,c=s.length,d;o<c;++o)(d=s[o])&&e.call(d,d.__data__,o,s);return this}function Ij(e){return function(){this.removeAttribute(e)}}function Bj(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Uj(e,t){return function(){this.setAttribute(e,t)}}function Hj(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function $j(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function qj(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function Pj(e,t){var r=Xu(e);if(arguments.length<2){var a=this.node();return r.local?a.getAttributeNS(r.space,r.local):a.getAttribute(r)}return this.each((t==null?r.local?Bj:Ij:typeof t=="function"?r.local?qj:$j:r.local?Hj:Uj)(r,t))}function dE(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Fj(e){return function(){this.style.removeProperty(e)}}function Gj(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Vj(e,t,r){return function(){var a=t.apply(this,arguments);a==null?this.style.removeProperty(e):this.style.setProperty(e,a,r)}}function Yj(e,t,r){return arguments.length>1?this.each((t==null?Fj:typeof t=="function"?Vj:Gj)(e,t,r??"")):Xs(this.node(),e)}function Xs(e,t){return e.style.getPropertyValue(t)||dE(e).getComputedStyle(e,null).getPropertyValue(t)}function Xj(e){return function(){delete this[e]}}function Kj(e,t){return function(){this[e]=t}}function Zj(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function Qj(e,t){return arguments.length>1?this.each((t==null?Xj:typeof t=="function"?Zj:Kj)(e,t)):this.node()[e]}function fE(e){return e.trim().split(/^|\s+/)}function Vp(e){return e.classList||new hE(e)}function hE(e){this._node=e,this._names=fE(e.getAttribute("class")||"")}hE.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function mE(e,t){for(var r=Vp(e),a=-1,s=t.length;++a<s;)r.add(t[a])}function pE(e,t){for(var r=Vp(e),a=-1,s=t.length;++a<s;)r.remove(t[a])}function Wj(e){return function(){mE(this,e)}}function Jj(e){return function(){pE(this,e)}}function eL(e,t){return function(){(t.apply(this,arguments)?mE:pE)(this,e)}}function tL(e,t){var r=fE(e+"");if(arguments.length<2){for(var a=Vp(this.node()),s=-1,o=r.length;++s<o;)if(!a.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?eL:t?Wj:Jj)(r,t))}function nL(){this.textContent=""}function rL(e){return function(){this.textContent=e}}function iL(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function aL(e){return arguments.length?this.each(e==null?nL:(typeof e=="function"?iL:rL)(e)):this.node().textContent}function sL(){this.innerHTML=""}function lL(e){return function(){this.innerHTML=e}}function oL(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function cL(e){return arguments.length?this.each(e==null?sL:(typeof e=="function"?oL:lL)(e)):this.node().innerHTML}function uL(){this.nextSibling&&this.parentNode.appendChild(this)}function dL(){return this.each(uL)}function fL(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function hL(){return this.each(fL)}function mL(e){var t=typeof e=="function"?e:sE(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function pL(){return null}function gL(e,t){var r=typeof e=="function"?e:sE(e),a=t==null?pL:typeof t=="function"?t:Gp(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),a.apply(this,arguments)||null)})}function bL(){var e=this.parentNode;e&&e.removeChild(this)}function xL(){return this.each(bL)}function yL(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function vL(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function _L(e){return this.select(e?vL:yL)}function wL(e){return arguments.length?this.property("__data__",e):this.node().__data__}function EL(e){return function(t){e.call(this,t,this.__data__)}}function NL(e){return e.trim().split(/^|\s+/).map(function(t){var r="",a=t.indexOf(".");return a>=0&&(r=t.slice(a+1),t=t.slice(0,a)),{type:t,name:r}})}function SL(e){return function(){var t=this.__on;if(t){for(var r=0,a=-1,s=t.length,o;r<s;++r)o=t[r],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):t[++a]=o;++a?t.length=a:delete this.__on}}}function kL(e,t,r){return function(){var a=this.__on,s,o=EL(t);if(a){for(var c=0,d=a.length;c<d;++c)if((s=a[c]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=o,s.options=r),s.value=t;return}}this.addEventListener(e.type,o,r),s={type:e.type,name:e.name,value:t,listener:o,options:r},a?a.push(s):this.__on=[s]}}function TL(e,t,r){var a=NL(e+""),s,o=a.length,c;if(arguments.length<2){var d=this.node().__on;if(d){for(var f=0,h=d.length,m;f<h;++f)for(s=0,m=d[f];s<o;++s)if((c=a[s]).type===m.type&&c.name===m.name)return m.value}return}for(d=t?kL:SL,s=0;s<o;++s)this.each(d(a[s],t,r));return this}function gE(e,t,r){var a=dE(e),s=a.CustomEvent;typeof s=="function"?s=new s(t,r):(s=a.document.createEvent("Event"),r?(s.initEvent(t,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function CL(e,t){return function(){return gE(this,e,t)}}function AL(e,t){return function(){return gE(this,e,t.apply(this,arguments))}}function ML(e,t){return this.each((typeof t=="function"?AL:CL)(e,t))}function*OL(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var a=e[t],s=0,o=a.length,c;s<o;++s)(c=a[s])&&(yield c)}var bE=[null];function ar(e,t){this._groups=e,this._parents=t}function Do(){return new ar([[document.documentElement]],bE)}function RL(){return this}ar.prototype=Do.prototype={constructor:ar,select:ij,selectAll:oj,selectChild:fj,selectChildren:gj,filter:bj,data:Ej,enter:xj,exit:Sj,join:kj,merge:Tj,selection:RL,order:Cj,sort:Aj,call:Oj,nodes:Rj,node:Dj,size:jj,empty:Lj,each:zj,attr:Pj,style:Yj,property:Qj,classed:tL,text:aL,html:cL,raise:dL,lower:hL,append:mL,insert:gL,remove:xL,clone:_L,datum:wL,on:TL,dispatch:ML,[Symbol.iterator]:OL};function rr(e){return typeof e=="string"?new ar([[document.querySelector(e)]],[document.documentElement]):new ar([[e]],bE)}function DL(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Tr(e,t){if(e=DL(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var a=r.createSVGPoint();return a.x=e.clientX,a.y=e.clientY,a=a.matrixTransform(t.getScreenCTM().inverse()),[a.x,a.y]}if(t.getBoundingClientRect){var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}const jL={passive:!1},xo={capture:!0,passive:!1};function gm(e){e.stopImmediatePropagation()}function Ps(e){e.preventDefault(),e.stopImmediatePropagation()}function xE(e){var t=e.document.documentElement,r=rr(e).on("dragstart.drag",Ps,xo);"onselectstart"in t?r.on("selectstart.drag",Ps,xo):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function yE(e,t){var r=e.document.documentElement,a=rr(e).on("dragstart.drag",null);t&&(a.on("click.drag",Ps,xo),setTimeout(function(){a.on("click.drag",null)},0)),"onselectstart"in r?a.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const ru=e=>()=>e;function Jm(e,{sourceEvent:t,subject:r,target:a,identifier:s,active:o,x:c,y:d,dx:f,dy:h,dispatch:m}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:a,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:c,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:f,enumerable:!0,configurable:!0},dy:{value:h,enumerable:!0,configurable:!0},_:{value:m}})}Jm.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function LL(e){return!e.ctrlKey&&!e.button}function zL(){return this.parentNode}function IL(e,t){return t??{x:e.x,y:e.y}}function BL(){return navigator.maxTouchPoints||"ontouchstart"in this}function vE(){var e=LL,t=zL,r=IL,a=BL,s={},o=Yu("start","drag","end"),c=0,d,f,h,m,p=0;function y(M){M.on("mousedown.drag",x).filter(a).on("touchstart.drag",S).on("touchmove.drag",w,jL).on("touchend.drag touchcancel.drag",k).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(M,I){if(!(m||!e.call(this,M,I))){var R=E(this,t.call(this,M,I),M,I,"mouse");R&&(rr(M.view).on("mousemove.drag",_,xo).on("mouseup.drag",N,xo),xE(M.view),gm(M),h=!1,d=M.clientX,f=M.clientY,R("start",M))}}function _(M){if(Ps(M),!h){var I=M.clientX-d,R=M.clientY-f;h=I*I+R*R>p}s.mouse("drag",M)}function N(M){rr(M.view).on("mousemove.drag mouseup.drag",null),yE(M.view,h),Ps(M),s.mouse("end",M)}function S(M,I){if(e.call(this,M,I)){var R=M.changedTouches,U=t.call(this,M,I),B=R.length,Z,D;for(Z=0;Z<B;++Z)(D=E(this,U,M,I,R[Z].identifier,R[Z]))&&(gm(M),D("start",M,R[Z]))}}function w(M){var I=M.changedTouches,R=I.length,U,B;for(U=0;U<R;++U)(B=s[I[U].identifier])&&(Ps(M),B("drag",M,I[U]))}function k(M){var I=M.changedTouches,R=I.length,U,B;for(m&&clearTimeout(m),m=setTimeout(function(){m=null},500),U=0;U<R;++U)(B=s[I[U].identifier])&&(gm(M),B("end",M,I[U]))}function E(M,I,R,U,B,Z){var D=o.copy(),L=Tr(Z||R,I),G,V,A;if((A=r.call(M,new Jm("beforestart",{sourceEvent:R,target:y,identifier:B,active:c,x:L[0],y:L[1],dx:0,dy:0,dispatch:D}),U))!=null)return G=A.x-L[0]||0,V=A.y-L[1]||0,function q(O,H,X){var K=L,T;switch(O){case"start":s[B]=q,T=c++;break;case"end":delete s[B],--c;case"drag":L=Tr(X||H,I),T=c;break}D.call(O,M,new Jm(O,{sourceEvent:H,subject:A,target:y,identifier:B,active:T,x:L[0]+G,y:L[1]+V,dx:L[0]-K[0],dy:L[1]-K[1],dispatch:D}),U)}}return y.filter=function(M){return arguments.length?(e=typeof M=="function"?M:ru(!!M),y):e},y.container=function(M){return arguments.length?(t=typeof M=="function"?M:ru(M),y):t},y.subject=function(M){return arguments.length?(r=typeof M=="function"?M:ru(M),y):r},y.touchable=function(M){return arguments.length?(a=typeof M=="function"?M:ru(!!M),y):a},y.on=function(){var M=o.on.apply(o,arguments);return M===o?y:M},y.clickDistance=function(M){return arguments.length?(p=(M=+M)*M,y):Math.sqrt(p)},y}function Yp(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function _E(e,t){var r=Object.create(e.prototype);for(var a in t)r[a]=t[a];return r}function jo(){}var yo=.7,ku=1/yo,Fs="\\s*([+-]?\\d+)\\s*",vo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Yr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",UL=/^#([0-9a-f]{3,8})$/,HL=new RegExp(`^rgb\\(${Fs},${Fs},${Fs}\\)$`),$L=new RegExp(`^rgb\\(${Yr},${Yr},${Yr}\\)$`),qL=new RegExp(`^rgba\\(${Fs},${Fs},${Fs},${vo}\\)$`),PL=new RegExp(`^rgba\\(${Yr},${Yr},${Yr},${vo}\\)$`),FL=new RegExp(`^hsl\\(${vo},${Yr},${Yr}\\)$`),GL=new RegExp(`^hsla\\(${vo},${Yr},${Yr},${vo}\\)$`),Hv={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Yp(jo,Ga,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:$v,formatHex:$v,formatHex8:VL,formatHsl:YL,formatRgb:qv,toString:qv});function $v(){return this.rgb().formatHex()}function VL(){return this.rgb().formatHex8()}function YL(){return wE(this).formatHsl()}function qv(){return this.rgb().formatRgb()}function Ga(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=UL.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Pv(t):r===3?new Fn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?iu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?iu(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=HL.exec(e))?new Fn(t[1],t[2],t[3],1):(t=$L.exec(e))?new Fn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=qL.exec(e))?iu(t[1],t[2],t[3],t[4]):(t=PL.exec(e))?iu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=FL.exec(e))?Vv(t[1],t[2]/100,t[3]/100,1):(t=GL.exec(e))?Vv(t[1],t[2]/100,t[3]/100,t[4]):Hv.hasOwnProperty(e)?Pv(Hv[e]):e==="transparent"?new Fn(NaN,NaN,NaN,0):null}function Pv(e){return new Fn(e>>16&255,e>>8&255,e&255,1)}function iu(e,t,r,a){return a<=0&&(e=t=r=NaN),new Fn(e,t,r,a)}function XL(e){return e instanceof jo||(e=Ga(e)),e?(e=e.rgb(),new Fn(e.r,e.g,e.b,e.opacity)):new Fn}function ep(e,t,r,a){return arguments.length===1?XL(e):new Fn(e,t,r,a??1)}function Fn(e,t,r,a){this.r=+e,this.g=+t,this.b=+r,this.opacity=+a}Yp(Fn,ep,_E(jo,{brighter(e){return e=e==null?ku:Math.pow(ku,e),new Fn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?yo:Math.pow(yo,e),new Fn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Fn(qa(this.r),qa(this.g),qa(this.b),Tu(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:Fv,formatHex:Fv,formatHex8:KL,formatRgb:Gv,toString:Gv}));function Fv(){return`#${Ha(this.r)}${Ha(this.g)}${Ha(this.b)}`}function KL(){return`#${Ha(this.r)}${Ha(this.g)}${Ha(this.b)}${Ha((isNaN(this.opacity)?1:this.opacity)*255)}`}function Gv(){const e=Tu(this.opacity);return`${e===1?"rgb(":"rgba("}${qa(this.r)}, ${qa(this.g)}, ${qa(this.b)}${e===1?")":`, ${e})`}`}function Tu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function qa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ha(e){return e=qa(e),(e<16?"0":"")+e.toString(16)}function Vv(e,t,r,a){return a<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ar(e,t,r,a)}function wE(e){if(e instanceof Ar)return new Ar(e.h,e.s,e.l,e.opacity);if(e instanceof jo||(e=Ga(e)),!e)return new Ar;if(e instanceof Ar)return e;e=e.rgb();var t=e.r/255,r=e.g/255,a=e.b/255,s=Math.min(t,r,a),o=Math.max(t,r,a),c=NaN,d=o-s,f=(o+s)/2;return d?(t===o?c=(r-a)/d+(r<a)*6:r===o?c=(a-t)/d+2:c=(t-r)/d+4,d/=f<.5?o+s:2-o-s,c*=60):d=f>0&&f<1?0:c,new Ar(c,d,f,e.opacity)}function ZL(e,t,r,a){return arguments.length===1?wE(e):new Ar(e,t,r,a??1)}function Ar(e,t,r,a){this.h=+e,this.s=+t,this.l=+r,this.opacity=+a}Yp(Ar,ZL,_E(jo,{brighter(e){return e=e==null?ku:Math.pow(ku,e),new Ar(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?yo:Math.pow(yo,e),new Ar(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,a=r+(r<.5?r:1-r)*t,s=2*r-a;return new Fn(bm(e>=240?e-240:e+120,s,a),bm(e,s,a),bm(e<120?e+240:e-120,s,a),this.opacity)},clamp(){return new Ar(Yv(this.h),au(this.s),au(this.l),Tu(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=Tu(this.opacity);return`${e===1?"hsl(":"hsla("}${Yv(this.h)}, ${au(this.s)*100}%, ${au(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Yv(e){return e=(e||0)%360,e<0?e+360:e}function au(e){return Math.max(0,Math.min(1,e||0))}function bm(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 Xp=e=>()=>e;function QL(e,t){return function(r){return e+r*t}}function WL(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(a){return Math.pow(e+a*t,r)}}function JL(e){return(e=+e)==1?EE:function(t,r){return r-t?WL(t,r,e):Xp(isNaN(t)?r:t)}}function EE(e,t){var r=t-e;return r?QL(e,r):Xp(isNaN(e)?t:e)}const Cu=(function e(t){var r=JL(t);function a(s,o){var c=r((s=ep(s)).r,(o=ep(o)).r),d=r(s.g,o.g),f=r(s.b,o.b),h=EE(s.opacity,o.opacity);return function(m){return s.r=c(m),s.g=d(m),s.b=f(m),s.opacity=h(m),s+""}}return a.gamma=e,a})(1);function e6(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,a=t.slice(),s;return function(o){for(s=0;s<r;++s)a[s]=e[s]*(1-o)+t[s]*o;return a}}function t6(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function n6(e,t){var r=t?t.length:0,a=e?Math.min(r,e.length):0,s=new Array(a),o=new Array(r),c;for(c=0;c<a;++c)s[c]=uo(e[c],t[c]);for(;c<r;++c)o[c]=t[c];return function(d){for(c=0;c<a;++c)o[c]=s[c](d);return o}}function r6(e,t){var r=new Date;return e=+e,t=+t,function(a){return r.setTime(e*(1-a)+t*a),r}}function Gr(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function i6(e,t){var r={},a={},s;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(s in t)s in e?r[s]=uo(e[s],t[s]):a[s]=t[s];return function(o){for(s in r)a[s]=r[s](o);return a}}var tp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,xm=new RegExp(tp.source,"g");function a6(e){return function(){return e}}function s6(e){return function(t){return e(t)+""}}function NE(e,t){var r=tp.lastIndex=xm.lastIndex=0,a,s,o,c=-1,d=[],f=[];for(e=e+"",t=t+"";(a=tp.exec(e))&&(s=xm.exec(t));)(o=s.index)>r&&(o=t.slice(r,o),d[c]?d[c]+=o:d[++c]=o),(a=a[0])===(s=s[0])?d[c]?d[c]+=s:d[++c]=s:(d[++c]=null,f.push({i:c,x:Gr(a,s)})),r=xm.lastIndex;return r<t.length&&(o=t.slice(r),d[c]?d[c]+=o:d[++c]=o),d.length<2?f[0]?s6(f[0].x):a6(t):(t=f.length,function(h){for(var m=0,p;m<t;++m)d[(p=f[m]).i]=p.x(h);return d.join("")})}function uo(e,t){var r=typeof t,a;return t==null||r==="boolean"?Xp(t):(r==="number"?Gr:r==="string"?(a=Ga(t))?(t=a,Cu):NE:t instanceof Ga?Cu:t instanceof Date?r6:t6(t)?e6:Array.isArray(t)?n6:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?i6:Gr)(e,t)}var Xv=180/Math.PI,np={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function SE(e,t,r,a,s,o){var c,d,f;return(c=Math.sqrt(e*e+t*t))&&(e/=c,t/=c),(f=e*r+t*a)&&(r-=e*f,a-=t*f),(d=Math.sqrt(r*r+a*a))&&(r/=d,a/=d,f/=d),e*a<t*r&&(e=-e,t=-t,f=-f,c=-c),{translateX:s,translateY:o,rotate:Math.atan2(t,e)*Xv,skewX:Math.atan(f)*Xv,scaleX:c,scaleY:d}}var su;function l6(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?np:SE(t.a,t.b,t.c,t.d,t.e,t.f)}function o6(e){return e==null||(su||(su=document.createElementNS("http://www.w3.org/2000/svg","g")),su.setAttribute("transform",e),!(e=su.transform.baseVal.consolidate()))?np:(e=e.matrix,SE(e.a,e.b,e.c,e.d,e.e,e.f))}function kE(e,t,r,a){function s(h){return h.length?h.pop()+" ":""}function o(h,m,p,y,x,_){if(h!==p||m!==y){var N=x.push("translate(",null,t,null,r);_.push({i:N-4,x:Gr(h,p)},{i:N-2,x:Gr(m,y)})}else(p||y)&&x.push("translate("+p+t+y+r)}function c(h,m,p,y){h!==m?(h-m>180?m+=360:m-h>180&&(h+=360),y.push({i:p.push(s(p)+"rotate(",null,a)-2,x:Gr(h,m)})):m&&p.push(s(p)+"rotate("+m+a)}function d(h,m,p,y){h!==m?y.push({i:p.push(s(p)+"skewX(",null,a)-2,x:Gr(h,m)}):m&&p.push(s(p)+"skewX("+m+a)}function f(h,m,p,y,x,_){if(h!==p||m!==y){var N=x.push(s(x)+"scale(",null,",",null,")");_.push({i:N-4,x:Gr(h,p)},{i:N-2,x:Gr(m,y)})}else(p!==1||y!==1)&&x.push(s(x)+"scale("+p+","+y+")")}return function(h,m){var p=[],y=[];return h=e(h),m=e(m),o(h.translateX,h.translateY,m.translateX,m.translateY,p,y),c(h.rotate,m.rotate,p,y),d(h.skewX,m.skewX,p,y),f(h.scaleX,h.scaleY,m.scaleX,m.scaleY,p,y),h=m=null,function(x){for(var _=-1,N=y.length,S;++_<N;)p[(S=y[_]).i]=S.x(x);return p.join("")}}}var c6=kE(l6,"px, ","px)","deg)"),u6=kE(o6,", ",")",")"),d6=1e-12;function Kv(e){return((e=Math.exp(e))+1/e)/2}function f6(e){return((e=Math.exp(e))-1/e)/2}function h6(e){return((e=Math.exp(2*e))-1)/(e+1)}const gu=(function e(t,r,a){function s(o,c){var d=o[0],f=o[1],h=o[2],m=c[0],p=c[1],y=c[2],x=m-d,_=p-f,N=x*x+_*_,S,w;if(N<d6)w=Math.log(y/h)/t,S=function(U){return[d+U*x,f+U*_,h*Math.exp(t*U*w)]};else{var k=Math.sqrt(N),E=(y*y-h*h+a*N)/(2*h*r*k),M=(y*y-h*h-a*N)/(2*y*r*k),I=Math.log(Math.sqrt(E*E+1)-E),R=Math.log(Math.sqrt(M*M+1)-M);w=(R-I)/t,S=function(U){var B=U*w,Z=Kv(I),D=h/(r*k)*(Z*h6(t*B+I)-f6(I));return[d+D*x,f+D*_,h*Z/Kv(t*B+I)]}}return S.duration=w*1e3*t/Math.SQRT2,S}return s.rho=function(o){var c=Math.max(.001,+o),d=c*c,f=d*d;return e(c,d,f)},s})(Math.SQRT2,2,4);var Ks=0,ao=0,eo=0,TE=1e3,Au,so,Mu=0,Va=0,Ku=0,_o=typeof performance=="object"&&performance.now?performance:Date,CE=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Kp(){return Va||(CE(m6),Va=_o.now()+Ku)}function m6(){Va=0}function Ou(){this._call=this._time=this._next=null}Ou.prototype=AE.prototype={constructor:Ou,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Kp():+r)+(t==null?0:+t),!this._next&&so!==this&&(so?so._next=this:Au=this,so=this),this._call=e,this._time=r,rp()},stop:function(){this._call&&(this._call=null,this._time=1/0,rp())}};function AE(e,t,r){var a=new Ou;return a.restart(e,t,r),a}function p6(){Kp(),++Ks;for(var e=Au,t;e;)(t=Va-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ks}function Zv(){Va=(Mu=_o.now())+Ku,Ks=ao=0;try{p6()}finally{Ks=0,b6(),Va=0}}function g6(){var e=_o.now(),t=e-Mu;t>TE&&(Ku-=t,Mu=e)}function b6(){for(var e,t=Au,r,a=1/0;t;)t._call?(a>t._time&&(a=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:Au=r);so=e,rp(a)}function rp(e){if(!Ks){ao&&(ao=clearTimeout(ao));var t=e-Va;t>24?(e<1/0&&(ao=setTimeout(Zv,e-_o.now()-Ku)),eo&&(eo=clearInterval(eo))):(eo||(Mu=_o.now(),eo=setInterval(g6,TE)),Ks=1,CE(Zv))}}function Qv(e,t,r){var a=new Ou;return t=t==null?0:+t,a.restart(s=>{a.stop(),e(s+t)},t,r),a}var x6=Yu("start","end","cancel","interrupt"),y6=[],ME=0,Wv=1,ip=2,bu=3,Jv=4,ap=5,xu=6;function Zu(e,t,r,a,s,o){var c=e.__transition;if(!c)e.__transition={};else if(r in c)return;v6(e,r,{name:t,index:a,group:s,on:x6,tween:y6,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:ME})}function Zp(e,t){var r=zr(e,t);if(r.state>ME)throw new Error("too late; already scheduled");return r}function Zr(e,t){var r=zr(e,t);if(r.state>bu)throw new Error("too late; already running");return r}function zr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function v6(e,t,r){var a=e.__transition,s;a[t]=r,r.timer=AE(o,0,r.time);function o(h){r.state=Wv,r.timer.restart(c,r.delay,r.time),r.delay<=h&&c(h-r.delay)}function c(h){var m,p,y,x;if(r.state!==Wv)return f();for(m in a)if(x=a[m],x.name===r.name){if(x.state===bu)return Qv(c);x.state===Jv?(x.state=xu,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete a[m]):+m<t&&(x.state=xu,x.timer.stop(),x.on.call("cancel",e,e.__data__,x.index,x.group),delete a[m])}if(Qv(function(){r.state===bu&&(r.state=Jv,r.timer.restart(d,r.delay,r.time),d(h))}),r.state=ip,r.on.call("start",e,e.__data__,r.index,r.group),r.state===ip){for(r.state=bu,s=new Array(y=r.tween.length),m=0,p=-1;m<y;++m)(x=r.tween[m].value.call(e,e.__data__,r.index,r.group))&&(s[++p]=x);s.length=p+1}}function d(h){for(var m=h<r.duration?r.ease.call(null,h/r.duration):(r.timer.restart(f),r.state=ap,1),p=-1,y=s.length;++p<y;)s[p].call(e,m);r.state===ap&&(r.on.call("end",e,e.__data__,r.index,r.group),f())}function f(){r.state=xu,r.timer.stop(),delete a[t];for(var h in a)return;delete e.__transition}}function yu(e,t){var r=e.__transition,a,s,o=!0,c;if(r){t=t==null?null:t+"";for(c in r){if((a=r[c]).name!==t){o=!1;continue}s=a.state>ip&&a.state<ap,a.state=xu,a.timer.stop(),a.on.call(s?"interrupt":"cancel",e,e.__data__,a.index,a.group),delete r[c]}o&&delete e.__transition}}function _6(e){return this.each(function(){yu(this,e)})}function w6(e,t){var r,a;return function(){var s=Zr(this,e),o=s.tween;if(o!==r){a=r=o;for(var c=0,d=a.length;c<d;++c)if(a[c].name===t){a=a.slice(),a.splice(c,1);break}}s.tween=a}}function E6(e,t,r){var a,s;if(typeof r!="function")throw new Error;return function(){var o=Zr(this,e),c=o.tween;if(c!==a){s=(a=c).slice();for(var d={name:t,value:r},f=0,h=s.length;f<h;++f)if(s[f].name===t){s[f]=d;break}f===h&&s.push(d)}o.tween=s}}function N6(e,t){var r=this._id;if(e+="",arguments.length<2){for(var a=zr(this.node(),r).tween,s=0,o=a.length,c;s<o;++s)if((c=a[s]).name===e)return c.value;return null}return this.each((t==null?w6:E6)(r,e,t))}function Qp(e,t,r){var a=e._id;return e.each(function(){var s=Zr(this,a);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return zr(s,a).value[t]}}function OE(e,t){var r;return(typeof t=="number"?Gr:t instanceof Ga?Cu:(r=Ga(t))?(t=r,Cu):NE)(e,t)}function S6(e){return function(){this.removeAttribute(e)}}function k6(e){return function(){this.removeAttributeNS(e.space,e.local)}}function T6(e,t,r){var a,s=r+"",o;return function(){var c=this.getAttribute(e);return c===s?null:c===a?o:o=t(a=c,r)}}function C6(e,t,r){var a,s=r+"",o;return function(){var c=this.getAttributeNS(e.space,e.local);return c===s?null:c===a?o:o=t(a=c,r)}}function A6(e,t,r){var a,s,o;return function(){var c,d=r(this),f;return d==null?void this.removeAttribute(e):(c=this.getAttribute(e),f=d+"",c===f?null:c===a&&f===s?o:(s=f,o=t(a=c,d)))}}function M6(e,t,r){var a,s,o;return function(){var c,d=r(this),f;return d==null?void this.removeAttributeNS(e.space,e.local):(c=this.getAttributeNS(e.space,e.local),f=d+"",c===f?null:c===a&&f===s?o:(s=f,o=t(a=c,d)))}}function O6(e,t){var r=Xu(e),a=r==="transform"?u6:OE;return this.attrTween(e,typeof t=="function"?(r.local?M6:A6)(r,a,Qp(this,"attr."+e,t)):t==null?(r.local?k6:S6)(r):(r.local?C6:T6)(r,a,t))}function R6(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function D6(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function j6(e,t){var r,a;function s(){var o=t.apply(this,arguments);return o!==a&&(r=(a=o)&&D6(e,o)),r}return s._value=t,s}function L6(e,t){var r,a;function s(){var o=t.apply(this,arguments);return o!==a&&(r=(a=o)&&R6(e,o)),r}return s._value=t,s}function z6(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var a=Xu(e);return this.tween(r,(a.local?j6:L6)(a,t))}function I6(e,t){return function(){Zp(this,e).delay=+t.apply(this,arguments)}}function B6(e,t){return t=+t,function(){Zp(this,e).delay=t}}function U6(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?I6:B6)(t,e)):zr(this.node(),t).delay}function H6(e,t){return function(){Zr(this,e).duration=+t.apply(this,arguments)}}function $6(e,t){return t=+t,function(){Zr(this,e).duration=t}}function q6(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?H6:$6)(t,e)):zr(this.node(),t).duration}function P6(e,t){if(typeof t!="function")throw new Error;return function(){Zr(this,e).ease=t}}function F6(e){var t=this._id;return arguments.length?this.each(P6(t,e)):zr(this.node(),t).ease}function G6(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Zr(this,e).ease=r}}function V6(e){if(typeof e!="function")throw new Error;return this.each(G6(this._id,e))}function Y6(e){typeof e!="function"&&(e=oE(e));for(var t=this._groups,r=t.length,a=new Array(r),s=0;s<r;++s)for(var o=t[s],c=o.length,d=a[s]=[],f,h=0;h<c;++h)(f=o[h])&&e.call(f,f.__data__,h,o)&&d.push(f);return new _i(a,this._parents,this._name,this._id)}function X6(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,a=t.length,s=r.length,o=Math.min(a,s),c=new Array(a),d=0;d<o;++d)for(var f=t[d],h=r[d],m=f.length,p=c[d]=new Array(m),y,x=0;x<m;++x)(y=f[x]||h[x])&&(p[x]=y);for(;d<a;++d)c[d]=t[d];return new _i(c,this._parents,this._name,this._id)}function K6(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function Z6(e,t,r){var a,s,o=K6(t)?Zp:Zr;return function(){var c=o(this,e),d=c.on;d!==a&&(s=(a=d).copy()).on(t,r),c.on=s}}function Q6(e,t){var r=this._id;return arguments.length<2?zr(this.node(),r).on.on(e):this.each(Z6(r,e,t))}function W6(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function J6(){return this.on("end.remove",W6(this._id))}function ez(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Gp(e));for(var a=this._groups,s=a.length,o=new Array(s),c=0;c<s;++c)for(var d=a[c],f=d.length,h=o[c]=new Array(f),m,p,y=0;y<f;++y)(m=d[y])&&(p=e.call(m,m.__data__,y,d))&&("__data__"in m&&(p.__data__=m.__data__),h[y]=p,Zu(h[y],t,r,y,h,zr(m,r)));return new _i(o,this._parents,t,r)}function tz(e){var t=this._name,r=this._id;typeof e!="function"&&(e=lE(e));for(var a=this._groups,s=a.length,o=[],c=[],d=0;d<s;++d)for(var f=a[d],h=f.length,m,p=0;p<h;++p)if(m=f[p]){for(var y=e.call(m,m.__data__,p,f),x,_=zr(m,r),N=0,S=y.length;N<S;++N)(x=y[N])&&Zu(x,t,r,N,y,_);o.push(y),c.push(m)}return new _i(o,c,t,r)}var nz=Do.prototype.constructor;function rz(){return new nz(this._groups,this._parents)}function iz(e,t){var r,a,s;return function(){var o=Xs(this,e),c=(this.style.removeProperty(e),Xs(this,e));return o===c?null:o===r&&c===a?s:s=t(r=o,a=c)}}function RE(e){return function(){this.style.removeProperty(e)}}function az(e,t,r){var a,s=r+"",o;return function(){var c=Xs(this,e);return c===s?null:c===a?o:o=t(a=c,r)}}function sz(e,t,r){var a,s,o;return function(){var c=Xs(this,e),d=r(this),f=d+"";return d==null&&(f=d=(this.style.removeProperty(e),Xs(this,e))),c===f?null:c===a&&f===s?o:(s=f,o=t(a=c,d))}}function lz(e,t){var r,a,s,o="style."+t,c="end."+o,d;return function(){var f=Zr(this,e),h=f.on,m=f.value[o]==null?d||(d=RE(t)):void 0;(h!==r||s!==m)&&(a=(r=h).copy()).on(c,s=m),f.on=a}}function oz(e,t,r){var a=(e+="")=="transform"?c6:OE;return t==null?this.styleTween(e,iz(e,a)).on("end.style."+e,RE(e)):typeof t=="function"?this.styleTween(e,sz(e,a,Qp(this,"style."+e,t))).each(lz(this._id,e)):this.styleTween(e,az(e,a,t),r).on("end.style."+e,null)}function cz(e,t,r){return function(a){this.style.setProperty(e,t.call(this,a),r)}}function uz(e,t,r){var a,s;function o(){var c=t.apply(this,arguments);return c!==s&&(a=(s=c)&&cz(e,c,r)),a}return o._value=t,o}function dz(e,t,r){var a="style."+(e+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(t==null)return this.tween(a,null);if(typeof t!="function")throw new Error;return this.tween(a,uz(e,t,r??""))}function fz(e){return function(){this.textContent=e}}function hz(e){return function(){var t=e(this);this.textContent=t??""}}function mz(e){return this.tween("text",typeof e=="function"?hz(Qp(this,"text",e)):fz(e==null?"":e+""))}function pz(e){return function(t){this.textContent=e.call(this,t)}}function gz(e){var t,r;function a(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&pz(s)),t}return a._value=e,a}function bz(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,gz(e))}function xz(){for(var e=this._name,t=this._id,r=DE(),a=this._groups,s=a.length,o=0;o<s;++o)for(var c=a[o],d=c.length,f,h=0;h<d;++h)if(f=c[h]){var m=zr(f,t);Zu(f,e,r,h,c,{time:m.time+m.delay+m.duration,delay:0,duration:m.duration,ease:m.ease})}return new _i(a,this._parents,e,r)}function yz(){var e,t,r=this,a=r._id,s=r.size();return new Promise(function(o,c){var d={value:c},f={value:function(){--s===0&&o()}};r.each(function(){var h=Zr(this,a),m=h.on;m!==e&&(t=(e=m).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(f)),h.on=t}),s===0&&o()})}var vz=0;function _i(e,t,r,a){this._groups=e,this._parents=t,this._name=r,this._id=a}function DE(){return++vz}var xi=Do.prototype;_i.prototype={constructor:_i,select:ez,selectAll:tz,selectChild:xi.selectChild,selectChildren:xi.selectChildren,filter:Y6,merge:X6,selection:rz,transition:xz,call:xi.call,nodes:xi.nodes,node:xi.node,size:xi.size,empty:xi.empty,each:xi.each,on:Q6,attr:O6,attrTween:z6,style:oz,styleTween:dz,text:mz,textTween:bz,remove:J6,tween:N6,delay:U6,duration:q6,ease:F6,easeVarying:V6,end:yz,[Symbol.iterator]:xi[Symbol.iterator]};function _z(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var wz={time:null,delay:0,duration:250,ease:_z};function Ez(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function Nz(e){var t,r;e instanceof _i?(t=e._id,e=e._name):(t=DE(),(r=wz).time=Kp(),e=e==null?null:e+"");for(var a=this._groups,s=a.length,o=0;o<s;++o)for(var c=a[o],d=c.length,f,h=0;h<d;++h)(f=c[h])&&Zu(f,e,t,h,c,r||Ez(f,t));return new _i(a,this._parents,e,t)}Do.prototype.interrupt=_6;Do.prototype.transition=Nz;const lu=e=>()=>e;function Sz(e,{sourceEvent:t,target:r,transform:a,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:a,enumerable:!0,configurable:!0},_:{value:s}})}function vi(e,t,r){this.k=e,this.x=t,this.y=r}vi.prototype={constructor:vi,scale:function(e){return e===1?this:new vi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new vi(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Qu=new vi(1,0,0);jE.prototype=vi.prototype;function jE(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Qu;return e.__zoom}function ym(e){e.stopImmediatePropagation()}function to(e){e.preventDefault(),e.stopImmediatePropagation()}function kz(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Tz(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function e1(){return this.__zoom||Qu}function Cz(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Az(){return navigator.maxTouchPoints||"ontouchstart"in this}function Mz(e,t,r){var a=e.invertX(t[0][0])-r[0][0],s=e.invertX(t[1][0])-r[1][0],o=e.invertY(t[0][1])-r[0][1],c=e.invertY(t[1][1])-r[1][1];return e.translate(s>a?(a+s)/2:Math.min(0,a)||Math.max(0,s),c>o?(o+c)/2:Math.min(0,o)||Math.max(0,c))}function LE(){var e=kz,t=Tz,r=Mz,a=Cz,s=Az,o=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,f=gu,h=Yu("start","zoom","end"),m,p,y,x=500,_=150,N=0,S=10;function w(A){A.property("__zoom",e1).on("wheel.zoom",B,{passive:!1}).on("mousedown.zoom",Z).on("dblclick.zoom",D).filter(s).on("touchstart.zoom",L).on("touchmove.zoom",G).on("touchend.zoom touchcancel.zoom",V).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}w.transform=function(A,q,O,H){var X=A.selection?A.selection():A;X.property("__zoom",e1),A!==X?I(A,q,O,H):X.interrupt().each(function(){R(this,arguments).event(H).start().zoom(null,typeof q=="function"?q.apply(this,arguments):q).end()})},w.scaleBy=function(A,q,O,H){w.scaleTo(A,function(){var X=this.__zoom.k,K=typeof q=="function"?q.apply(this,arguments):q;return X*K},O,H)},w.scaleTo=function(A,q,O,H){w.transform(A,function(){var X=t.apply(this,arguments),K=this.__zoom,T=O==null?M(X):typeof O=="function"?O.apply(this,arguments):O,j=K.invert(T),Y=typeof q=="function"?q.apply(this,arguments):q;return r(E(k(K,Y),T,j),X,c)},O,H)},w.translateBy=function(A,q,O,H){w.transform(A,function(){return r(this.__zoom.translate(typeof q=="function"?q.apply(this,arguments):q,typeof O=="function"?O.apply(this,arguments):O),t.apply(this,arguments),c)},null,H)},w.translateTo=function(A,q,O,H,X){w.transform(A,function(){var K=t.apply(this,arguments),T=this.__zoom,j=H==null?M(K):typeof H=="function"?H.apply(this,arguments):H;return r(Qu.translate(j[0],j[1]).scale(T.k).translate(typeof q=="function"?-q.apply(this,arguments):-q,typeof O=="function"?-O.apply(this,arguments):-O),K,c)},H,X)};function k(A,q){return q=Math.max(o[0],Math.min(o[1],q)),q===A.k?A:new vi(q,A.x,A.y)}function E(A,q,O){var H=q[0]-O[0]*A.k,X=q[1]-O[1]*A.k;return H===A.x&&X===A.y?A:new vi(A.k,H,X)}function M(A){return[(+A[0][0]+ +A[1][0])/2,(+A[0][1]+ +A[1][1])/2]}function I(A,q,O,H){A.on("start.zoom",function(){R(this,arguments).event(H).start()}).on("interrupt.zoom end.zoom",function(){R(this,arguments).event(H).end()}).tween("zoom",function(){var X=this,K=arguments,T=R(X,K).event(H),j=t.apply(X,K),Y=O==null?M(j):typeof O=="function"?O.apply(X,K):O,z=Math.max(j[1][0]-j[0][0],j[1][1]-j[0][1]),F=X.__zoom,$=typeof q=="function"?q.apply(X,K):q,Q=f(F.invert(Y).concat(z/F.k),$.invert(Y).concat(z/$.k));return function(J){if(J===1)J=$;else{var W=Q(J),te=z/W[2];J=new vi(te,Y[0]-W[0]*te,Y[1]-W[1]*te)}T.zoom(null,J)}})}function R(A,q,O){return!O&&A.__zooming||new U(A,q)}function U(A,q){this.that=A,this.args=q,this.active=0,this.sourceEvent=null,this.extent=t.apply(A,q),this.taps=0}U.prototype={event:function(A){return A&&(this.sourceEvent=A),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(A,q){return this.mouse&&A!=="mouse"&&(this.mouse[1]=q.invert(this.mouse[0])),this.touch0&&A!=="touch"&&(this.touch0[1]=q.invert(this.touch0[0])),this.touch1&&A!=="touch"&&(this.touch1[1]=q.invert(this.touch1[0])),this.that.__zoom=q,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(A){var q=rr(this.that).datum();h.call(A,this.that,new Sz(A,{sourceEvent:this.sourceEvent,target:w,transform:this.that.__zoom,dispatch:h}),q)}};function B(A,...q){if(!e.apply(this,arguments))return;var O=R(this,q).event(A),H=this.__zoom,X=Math.max(o[0],Math.min(o[1],H.k*Math.pow(2,a.apply(this,arguments)))),K=Tr(A);if(O.wheel)(O.mouse[0][0]!==K[0]||O.mouse[0][1]!==K[1])&&(O.mouse[1]=H.invert(O.mouse[0]=K)),clearTimeout(O.wheel);else{if(H.k===X)return;O.mouse=[K,H.invert(K)],yu(this),O.start()}to(A),O.wheel=setTimeout(T,_),O.zoom("mouse",r(E(k(H,X),O.mouse[0],O.mouse[1]),O.extent,c));function T(){O.wheel=null,O.end()}}function Z(A,...q){if(y||!e.apply(this,arguments))return;var O=A.currentTarget,H=R(this,q,!0).event(A),X=rr(A.view).on("mousemove.zoom",Y,!0).on("mouseup.zoom",z,!0),K=Tr(A,O),T=A.clientX,j=A.clientY;xE(A.view),ym(A),H.mouse=[K,this.__zoom.invert(K)],yu(this),H.start();function Y(F){if(to(F),!H.moved){var $=F.clientX-T,Q=F.clientY-j;H.moved=$*$+Q*Q>N}H.event(F).zoom("mouse",r(E(H.that.__zoom,H.mouse[0]=Tr(F,O),H.mouse[1]),H.extent,c))}function z(F){X.on("mousemove.zoom mouseup.zoom",null),yE(F.view,H.moved),to(F),H.event(F).end()}}function D(A,...q){if(e.apply(this,arguments)){var O=this.__zoom,H=Tr(A.changedTouches?A.changedTouches[0]:A,this),X=O.invert(H),K=O.k*(A.shiftKey?.5:2),T=r(E(k(O,K),H,X),t.apply(this,q),c);to(A),d>0?rr(this).transition().duration(d).call(I,T,H,A):rr(this).call(w.transform,T,H,A)}}function L(A,...q){if(e.apply(this,arguments)){var O=A.touches,H=O.length,X=R(this,q,A.changedTouches.length===H).event(A),K,T,j,Y;for(ym(A),T=0;T<H;++T)j=O[T],Y=Tr(j,this),Y=[Y,this.__zoom.invert(Y),j.identifier],X.touch0?!X.touch1&&X.touch0[2]!==Y[2]&&(X.touch1=Y,X.taps=0):(X.touch0=Y,K=!0,X.taps=1+!!m);m&&(m=clearTimeout(m)),K&&(X.taps<2&&(p=Y[0],m=setTimeout(function(){m=null},x)),yu(this),X.start())}}function G(A,...q){if(this.__zooming){var O=R(this,q).event(A),H=A.changedTouches,X=H.length,K,T,j,Y;for(to(A),K=0;K<X;++K)T=H[K],j=Tr(T,this),O.touch0&&O.touch0[2]===T.identifier?O.touch0[0]=j:O.touch1&&O.touch1[2]===T.identifier&&(O.touch1[0]=j);if(T=O.that.__zoom,O.touch1){var z=O.touch0[0],F=O.touch0[1],$=O.touch1[0],Q=O.touch1[1],J=(J=$[0]-z[0])*J+(J=$[1]-z[1])*J,W=(W=Q[0]-F[0])*W+(W=Q[1]-F[1])*W;T=k(T,Math.sqrt(J/W)),j=[(z[0]+$[0])/2,(z[1]+$[1])/2],Y=[(F[0]+Q[0])/2,(F[1]+Q[1])/2]}else if(O.touch0)j=O.touch0[0],Y=O.touch0[1];else return;O.zoom("touch",r(E(T,j,Y),O.extent,c))}}function V(A,...q){if(this.__zooming){var O=R(this,q).event(A),H=A.changedTouches,X=H.length,K,T;for(ym(A),y&&clearTimeout(y),y=setTimeout(function(){y=null},x),K=0;K<X;++K)T=H[K],O.touch0&&O.touch0[2]===T.identifier?delete O.touch0:O.touch1&&O.touch1[2]===T.identifier&&delete O.touch1;if(O.touch1&&!O.touch0&&(O.touch0=O.touch1,delete O.touch1),O.touch0)O.touch0[1]=this.__zoom.invert(O.touch0[0]);else if(O.end(),O.taps===2&&(T=Tr(T,this),Math.hypot(p[0]-T[0],p[1]-T[1])<S)){var j=rr(this).on("dblclick.zoom");j&&j.apply(this,arguments)}}}return w.wheelDelta=function(A){return arguments.length?(a=typeof A=="function"?A:lu(+A),w):a},w.filter=function(A){return arguments.length?(e=typeof A=="function"?A:lu(!!A),w):e},w.touchable=function(A){return arguments.length?(s=typeof A=="function"?A:lu(!!A),w):s},w.extent=function(A){return arguments.length?(t=typeof A=="function"?A:lu([[+A[0][0],+A[0][1]],[+A[1][0],+A[1][1]]]),w):t},w.scaleExtent=function(A){return arguments.length?(o[0]=+A[0],o[1]=+A[1],w):[o[0],o[1]]},w.translateExtent=function(A){return arguments.length?(c[0][0]=+A[0][0],c[1][0]=+A[1][0],c[0][1]=+A[0][1],c[1][1]=+A[1][1],w):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},w.constrain=function(A){return arguments.length?(r=A,w):r},w.duration=function(A){return arguments.length?(d=+A,w):d},w.interpolate=function(A){return arguments.length?(f=A,w):f},w.on=function(){var A=h.on.apply(h,arguments);return A===h?w:A},w.clickDistance=function(A){return arguments.length?(N=(A=+A)*A,w):Math.sqrt(N)},w.tapDistance=function(A){return arguments.length?(S=+A,w):S},w}const jr={error001:(e="react")=>`Seems like you have not used ${e==="svelte"?"SvelteFlowProvider":"ReactFlowProvider"} as an ancestor. Help: https://${e}flow.dev/error#001`,error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:r,targetHandle:a})=>`Couldn't create edge for ${e} handle id: "${e==="source"?r:a}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs.",error016:e=>`Edge with id "${e}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},wo=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],zE=["Enter"," ","Escape"],IE={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:r})=>`Moved selected node ${e}. New position, x: ${t}, y: ${r}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var Zs;(function(e){e.Strict="strict",e.Loose="loose"})(Zs||(Zs={}));var Pa;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(Pa||(Pa={}));var Eo;(function(e){e.Partial="partial",e.Full="full"})(Eo||(Eo={}));const BE={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var ca;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(ca||(ca={}));var Ru;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(Ru||(Ru={}));var ze;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(ze||(ze={}));const t1={[ze.Left]:ze.Right,[ze.Right]:ze.Left,[ze.Top]:ze.Bottom,[ze.Bottom]:ze.Top};function UE(e){return e===null?null:e?"valid":"invalid"}const HE=e=>!!e&&typeof e=="object"&&"id"in e&&"source"in e&&"target"in e,Oz=e=>!!e&&typeof e=="object"&&"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),Wp=e=>!!e&&typeof e=="object"&&"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),Lo=(e,t=[0,0])=>{const{width:r,height:a}=Qr(e),s=e.origin??t,o=r*s[0],c=a*s[1];return{x:e.position.x-o,y:e.position.y-c}},Rz=(e,t={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const r=e.reduce((a,s)=>{const o=typeof s=="string";let c=!t.nodeLookup&&!o?s:void 0;t.nodeLookup&&(c=o?t.nodeLookup.get(s):Wp(s)?s:t.nodeLookup.get(s.id));const d=c?Du(c,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return Wu(a,d)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Ju(r)},zo=(e,t={})=>{let r={x:1/0,y:1/0,x2:-1/0,y2:-1/0},a=!1;return e.forEach(s=>{(t.filter===void 0||t.filter(s))&&(r=Wu(r,Du(s)),a=!0)}),a?Ju(r):{x:0,y:0,width:0,height:0}},Jp=(e,t,[r,a,s]=[0,0,1],o=!1,c=!1)=>{const d=(t.x-r)/s,f=(t.y-a)/s,h=t.width/s,m=t.height/s,p=[];for(const y of e.values()){const{measured:x,selectable:_=!0,hidden:N=!1}=y;if(c&&!_||N)continue;const S=x.width??y.width??y.initialWidth??0,w=x.height??y.height??y.initialHeight??0,{x:k,y:E}=y.internals.positionAbsolute,M=FE(d,f,h,m,k,E,S,w),I=S*w,R=o&&M>0;(!y.internals.handleBounds||R||M>=I||y.dragging)&&p.push(y)}return p},Dz=(e,t)=>{const r=new Set;return e.forEach(a=>{r.add(a.id)}),t.filter(a=>r.has(a.source)||r.has(a.target))};function jz(e,t){const r=new Map,a=t!=null&&t.nodes?new Set(t.nodes.map(s=>s.id)):null;return e.forEach(s=>{let o;if(t!=null&&t.includeHiddenNodes){const{width:c,height:d}=Qr(s);o=c>0&&d>0}else o=!!(s.measured.width&&s.measured.height&&!s.hidden);o&&(!a||a.has(s.id))&&r.set(s.id,s)}),r}async function Lz({nodes:e,width:t,height:r,panZoom:a,minZoom:s,maxZoom:o},c){if(e.size===0)return!0;const d=jz(e,c),f=zo(d),h=tg(f,t,r,(c==null?void 0:c.minZoom)??s,(c==null?void 0:c.maxZoom)??o,(c==null?void 0:c.padding)??.1);return await a.setViewport(h,{duration:c==null?void 0:c.duration,ease:c==null?void 0:c.ease,interpolate:c==null?void 0:c.interpolate}),!0}function $E({nodeId:e,nextPosition:t,nodeLookup:r,nodeOrigin:a=[0,0],nodeExtent:s,onError:o}){const c=r.get(e),d=c.parentId?r.get(c.parentId):void 0,{x:f,y:h}=d?d.internals.positionAbsolute:{x:0,y:0},m=c.origin??a;let p=c.extent||s;if(c.extent==="parent"&&!c.expandParent)if(!d)o==null||o("005",jr.error005());else{const x=d.measured.width,_=d.measured.height;x&&_&&(p=[[f,h],[f+x,h+_]])}else d&&Xa(c.extent)&&(p=[[c.extent[0][0]+f,c.extent[0][1]+h],[c.extent[1][0]+f,c.extent[1][1]+h]]);const y=Xa(p)?Ya(t,p,c.measured):t;return(c.measured.width===void 0||c.measured.height===void 0)&&(o==null||o("015",jr.error015())),{position:{x:y.x-f+(c.measured.width??0)*m[0],y:y.y-h+(c.measured.height??0)*m[1]},positionAbsolute:y}}async function zz({nodesToRemove:e=[],edgesToRemove:t=[],nodes:r,edges:a,onBeforeDelete:s}){const o=new Set(e.map(y=>y.id)),c=[];for(const y of r){if(y.deletable===!1)continue;const x=o.has(y.id),_=!x&&y.parentId&&c.find(N=>N.id===y.parentId);(x||_)&&c.push(y)}const d=new Set(t.map(y=>y.id)),f=a.filter(y=>y.deletable!==!1),m=Dz(c,f);for(const y of f)d.has(y.id)&&!m.find(_=>_.id===y.id)&&m.push(y);if(!s)return{edges:m,nodes:c};const p=await s({nodes:c,edges:m});return typeof p=="boolean"?p?{edges:m,nodes:c}:{edges:[],nodes:[]}:p}const Qs=(e,t=0,r=1)=>Math.min(Math.max(e,t),r),Ya=(e={x:0,y:0},t,r)=>({x:Qs(e.x,t[0][0],t[1][0]-((r==null?void 0:r.width)??0)),y:Qs(e.y,t[0][1],t[1][1]-((r==null?void 0:r.height)??0))});function qE(e,t,r){const{width:a,height:s}=Qr(r),{x:o,y:c}=r.internals.positionAbsolute;return Ya(e,[[o,c],[o+a,c+s]],t)}const n1=(e,t,r)=>e<t?Qs(Math.abs(e-t),1,t)/t:e>r?-Qs(Math.abs(e-r),1,t)/t:0,eg=(e,t,r=15,a=40)=>{const s=n1(e.x,a,t.width-a)*r,o=n1(e.y,a,t.height-a)*r;return[s,o]},Wu=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),sp=({x:e,y:t,width:r,height:a})=>({x:e,y:t,x2:e+r,y2:t+a}),Ju=({x:e,y:t,x2:r,y2:a})=>({x:e,y:t,width:r-e,height:a-t}),No=(e,t=[0,0])=>{var s,o;const{x:r,y:a}=Wp(e)?e.internals.positionAbsolute:Lo(e,t);return{x:r,y:a,width:((s=e.measured)==null?void 0:s.width)??e.width??e.initialWidth??0,height:((o=e.measured)==null?void 0:o.height)??e.height??e.initialHeight??0}},Du=(e,t=[0,0])=>{var s,o;const{x:r,y:a}=Wp(e)?e.internals.positionAbsolute:Lo(e,t);return{x:r,y:a,x2:r+(((s=e.measured)==null?void 0:s.width)??e.width??e.initialWidth??0),y2:a+(((o=e.measured)==null?void 0:o.height)??e.height??e.initialHeight??0)}},PE=(e,t)=>Ju(Wu(sp(e),sp(t))),FE=(e,t,r,a,s,o,c,d)=>{const f=Math.max(0,Math.min(e+r,s+c)-Math.max(e,s)),h=Math.max(0,Math.min(t+a,o+d)-Math.max(t,o));return Math.ceil(f*h)},ju=(e,t)=>FE(e.x,e.y,e.width,e.height,t.x,t.y,t.width,t.height),r1=e=>Or(e.width)&&Or(e.height)&&Or(e.x)&&Or(e.y),Or=e=>!isNaN(e)&&isFinite(e),GE=(e,t)=>(r,a)=>{},Io=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),Bo=({x:e,y:t},[r,a,s],o=!1,c=[1,1])=>{const d={x:(e-r)/s,y:(t-a)/s};return o?Io(d,c):d},Ws=({x:e,y:t},[r,a,s])=>({x:e*s+r,y:t*s+a});function Ls(e,t){if(typeof e=="number")return Math.floor((t-t/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const r=parseFloat(e);if(!Number.isNaN(r))return Math.floor(r)}if(typeof e=="string"&&e.endsWith("%")){const r=parseFloat(e);if(!Number.isNaN(r))return Math.floor(t*r*.01)}return console.error(`The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function Iz(e,t,r){if(typeof e=="string"||typeof e=="number"){const a=Ls(e,r),s=Ls(e,t);return{top:a,right:s,bottom:a,left:s,x:s*2,y:a*2}}if(typeof e=="object"){const a=Ls(e.top??e.y??0,r),s=Ls(e.bottom??e.y??0,r),o=Ls(e.left??e.x??0,t),c=Ls(e.right??e.x??0,t);return{top:a,right:c,bottom:s,left:o,x:o+c,y:a+s}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function Bz(e,t,r,a,s,o){const{x:c,y:d}=Ws(e,[t,r,a]),{x:f,y:h}=Ws({x:e.x+e.width,y:e.y+e.height},[t,r,a]),m=s-f,p=o-h;return{left:Math.floor(c),top:Math.floor(d),right:Math.floor(m),bottom:Math.floor(p)}}const tg=(e,t,r,a,s,o)=>{const c=Iz(o,t,r),d=(t-c.x)/e.width,f=(r-c.y)/e.height,h=Math.min(d,f),m=Qs(h,a,s),p=e.x+e.width/2,y=e.y+e.height/2,x=t/2-p*m,_=r/2-y*m,N=Bz(e,x,_,m,t,r),S={left:Math.min(N.left-c.left,0),top:Math.min(N.top-c.top,0),right:Math.min(N.right-c.right,0),bottom:Math.min(N.bottom-c.bottom,0)};return{x:x-S.left+S.right,y:_-S.top+S.bottom,zoom:m}},So=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function Xa(e){return e!=null&&e!=="parent"}function Qr(e){var t,r;return{width:((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth??0,height:((r=e.measured)==null?void 0:r.height)??e.height??e.initialHeight??0}}function VE(e){var t,r;return(((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth)!==void 0&&(((r=e.measured)==null?void 0:r.height)??e.height??e.initialHeight)!==void 0}function YE(e,t={width:0,height:0},r,a,s){const o={...e},c=a.get(r);if(c){const d=c.origin||s;o.x+=c.internals.positionAbsolute.x-(t.width??0)*d[0],o.y+=c.internals.positionAbsolute.y-(t.height??0)*d[1]}return o}function i1(e,t){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}function Uz(){let e,t;return{promise:new Promise((a,s)=>{e=a,t=s}),resolve:e,reject:t}}function Hz(e){return{...IE,...e||{}}}function fo(e,{snapGrid:t=[0,0],snapToGrid:r=!1,transform:a,containerBounds:s}){const{x:o,y:c}=Rr(e),d=Bo({x:o-((s==null?void 0:s.left)??0),y:c-((s==null?void 0:s.top)??0)},a),{x:f,y:h}=r?Io(d,t):d;return{xSnapped:f,ySnapped:h,...d}}const ng=e=>({width:e.offsetWidth,height:e.offsetHeight}),XE=e=>{var t;return((t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},$z=["INPUT","SELECT","TEXTAREA"];function KE(e){var a,s;const t=((s=(a=e.composedPath)==null?void 0:a.call(e))==null?void 0:s[0])||e.target;return(t==null?void 0:t.nodeType)!==1?!1:$z.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}const ZE=e=>"clientX"in e,Rr=(e,t)=>{var o,c;const r=ZE(e),a=r?e.clientX:(o=e.touches)==null?void 0:o[0].clientX,s=r?e.clientY:(c=e.touches)==null?void 0:c[0].clientY;return{x:a-((t==null?void 0:t.left)??0),y:s-((t==null?void 0:t.top)??0)}},a1=(e,t,r,a,s)=>{const o=t.querySelectorAll(`.${e}`);return!o||!o.length?null:Array.from(o).map(c=>{const d=c.getBoundingClientRect();return{id:c.getAttribute("data-handleid"),type:e,nodeId:s,position:c.getAttribute("data-handlepos"),x:(d.left-r.left)/a,y:(d.top-r.top)/a,...ng(c)}})};function QE({sourceX:e,sourceY:t,targetX:r,targetY:a,sourceControlX:s,sourceControlY:o,targetControlX:c,targetControlY:d}){const f=e*.125+s*.375+c*.375+r*.125,h=t*.125+o*.375+d*.375+a*.125,m=Math.abs(f-e),p=Math.abs(h-t);return[f,h,m,p]}function ou(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function s1({pos:e,x1:t,y1:r,x2:a,y2:s,c:o}){switch(e){case ze.Left:return[t-ou(t-a,o),r];case ze.Right:return[t+ou(a-t,o),r];case ze.Top:return[t,r-ou(r-s,o)];case ze.Bottom:return[t,r+ou(s-r,o)]}}function WE({sourceX:e,sourceY:t,sourcePosition:r=ze.Bottom,targetX:a,targetY:s,targetPosition:o=ze.Top,curvature:c=.25}){const[d,f]=s1({pos:r,x1:e,y1:t,x2:a,y2:s,c}),[h,m]=s1({pos:o,x1:a,y1:s,x2:e,y2:t,c}),[p,y,x,_]=QE({sourceX:e,sourceY:t,targetX:a,targetY:s,sourceControlX:d,sourceControlY:f,targetControlX:h,targetControlY:m});return[`M${e},${t} C${d},${f} ${h},${m} ${a},${s}`,p,y,x,_]}function JE({sourceX:e,sourceY:t,targetX:r,targetY:a}){const s=Math.abs(r-e)/2,o=r<e?r+s:r-s,c=Math.abs(a-t)/2,d=a<t?a+c:a-c;return[o,d,s,c]}function qz({sourceNode:e,targetNode:t,selected:r=!1,zIndex:a=0,elevateOnSelect:s=!1,zIndexMode:o="basic"}){if(o==="manual")return a;const c=s&&r?a+1e3:a,d=Math.max(e.parentId||s&&e.selected?e.internals.z:0,t.parentId||s&&t.selected?t.internals.z:0);return c+d}function Pz({sourceNode:e,targetNode:t,width:r,height:a,transform:s}){const o=Wu(Du(e),Du(t));o.x===o.x2&&(o.x2+=1),o.y===o.y2&&(o.y2+=1);const c={x:-s[0]/s[2],y:-s[1]/s[2],width:r/s[2],height:a/s[2]};return ju(c,Ju(o))>0}const Fz=({source:e,sourceHandle:t,target:r,targetHandle:a})=>`xy-edge__${e}${t||""}-${r}${a||""}`,Gz=(e,t)=>t.some(r=>r.source===e.source&&r.target===e.target&&(r.sourceHandle===e.sourceHandle||!r.sourceHandle&&!e.sourceHandle)&&(r.targetHandle===e.targetHandle||!r.targetHandle&&!e.targetHandle)),Vz=(e,t,r={})=>{var o;if(!e.source||!e.target)return(o=r.onError)==null||o.call(r,"006",jr.error006()),t;const a=r.getEdgeId||Fz;let s;return HE(e)?s={...e}:s={...e,id:a(e)},Gz(s,t)?t:(s.sourceHandle===null&&delete s.sourceHandle,s.targetHandle===null&&delete s.targetHandle,t.concat(s))};function eN({sourceX:e,sourceY:t,targetX:r,targetY:a}){const[s,o,c,d]=JE({sourceX:e,sourceY:t,targetX:r,targetY:a});return[`M ${e},${t}L ${r},${a}`,s,o,c,d]}const l1={[ze.Left]:{x:-1,y:0},[ze.Right]:{x:1,y:0},[ze.Top]:{x:0,y:-1},[ze.Bottom]:{x:0,y:1}},Yz=({source:e,sourcePosition:t=ze.Bottom,target:r})=>t===ze.Left||t===ze.Right?e.x<r.x?{x:1,y:0}:{x:-1,y:0}:e.y<r.y?{x:0,y:1}:{x:0,y:-1},o1=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function Xz({source:e,sourcePosition:t=ze.Bottom,target:r,targetPosition:a=ze.Top,center:s,offset:o,stepPosition:c}){const d=l1[t],f=l1[a],h={x:e.x+d.x*o,y:e.y+d.y*o},m={x:r.x+f.x*o,y:r.y+f.y*o},p=Yz({source:h,sourcePosition:t,target:m}),y=p.x!==0?"x":"y",x=p[y];let _=[],N,S;const w={x:0,y:0},k={x:0,y:0},[,,E,M]=JE({sourceX:e.x,sourceY:e.y,targetX:r.x,targetY:r.y});if(d[y]*f[y]===-1){y==="x"?(N=s.x??h.x+(m.x-h.x)*c,S=s.y??(h.y+m.y)/2):(N=s.x??(h.x+m.x)/2,S=s.y??h.y+(m.y-h.y)*c);const B=[{x:N,y:h.y},{x:N,y:m.y}],Z=[{x:h.x,y:S},{x:m.x,y:S}];d[y]===x?_=y==="x"?B:Z:_=y==="x"?Z:B}else{const B=[{x:h.x,y:m.y}],Z=[{x:m.x,y:h.y}];if(y==="x"?_=d.x===x?Z:B:_=d.y===x?B:Z,t===a){const A=Math.abs(e[y]-r[y]);if(A<=o){const q=Math.min(o-1,o-A);d[y]===x?w[y]=(h[y]>e[y]?-1:1)*q:k[y]=(m[y]>r[y]?-1:1)*q}}if(t!==a){const A=y==="x"?"y":"x",q=d[y]===f[A],O=h[A]>m[A],H=h[A]<m[A];(d[y]===1&&(!q&&O||q&&H)||d[y]!==1&&(!q&&H||q&&O))&&(_=y==="x"?B:Z)}const D={x:h.x+w.x,y:h.y+w.y},L={x:m.x+k.x,y:m.y+k.y},G=Math.max(Math.abs(D.x-_[0].x),Math.abs(L.x-_[0].x)),V=Math.max(Math.abs(D.y-_[0].y),Math.abs(L.y-_[0].y));G>=V?(N=(D.x+L.x)/2,S=_[0].y):(N=_[0].x,S=(D.y+L.y)/2)}const I={x:h.x+w.x,y:h.y+w.y},R={x:m.x+k.x,y:m.y+k.y};return[[e,...I.x!==_[0].x||I.y!==_[0].y?[I]:[],..._,...R.x!==_[_.length-1].x||R.y!==_[_.length-1].y?[R]:[],r],N,S,E,M]}function Kz(e,t,r,a){const s=Math.min(o1(e,t)/2,o1(t,r)/2,a),{x:o,y:c}=t;if(e.x===o&&o===r.x||e.y===c&&c===r.y)return`L${o} ${c}`;if(e.y===c){const h=e.x<r.x?-1:1,m=e.y<r.y?1:-1;return`L ${o+s*h},${c}Q ${o},${c} ${o},${c+s*m}`}const d=e.x<r.x?1:-1,f=e.y<r.y?-1:1;return`L ${o},${c+s*f}Q ${o},${c} ${o+s*d},${c}`}function lp({sourceX:e,sourceY:t,sourcePosition:r=ze.Bottom,targetX:a,targetY:s,targetPosition:o=ze.Top,borderRadius:c=5,centerX:d,centerY:f,offset:h=20,stepPosition:m=.5}){const[p,y,x,_,N]=Xz({source:{x:e,y:t},sourcePosition:r,target:{x:a,y:s},targetPosition:o,center:{x:d,y:f},offset:h,stepPosition:m});let S=`M${p[0].x} ${p[0].y}`;for(let w=1;w<p.length-1;w++)S+=Kz(p[w-1],p[w],p[w+1],c);return S+=`L${p[p.length-1].x} ${p[p.length-1].y}`,[S,y,x,_,N]}function c1(e){var t;return e&&!!(e.internals.handleBounds||(t=e.handles)!=null&&t.length)&&!!(e.measured.width||e.width||e.initialWidth)}function Zz(e){var p;const{sourceNode:t,targetNode:r}=e;if(!c1(t)||!c1(r))return null;const a=t.internals.handleBounds||u1(t.handles),s=r.internals.handleBounds||u1(r.handles),o=d1((a==null?void 0:a.source)??[],e.sourceHandle),c=d1(e.connectionMode===Zs.Strict?(s==null?void 0:s.target)??[]:((s==null?void 0:s.target)??[]).concat((s==null?void 0:s.source)??[]),e.targetHandle);if(!o||!c)return(p=e.onError)==null||p.call(e,"008",jr.error008(o?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const d=(o==null?void 0:o.position)||ze.Bottom,f=(c==null?void 0:c.position)||ze.Top,h=Ka(t,o,d),m=Ka(r,c,f);return{sourceX:h.x,sourceY:h.y,targetX:m.x,targetY:m.y,sourcePosition:d,targetPosition:f}}function u1(e){if(!e)return null;const t=[],r=[];for(const a of e)a.width=a.width??1,a.height=a.height??1,a.type==="source"?t.push(a):a.type==="target"&&r.push(a);return{source:t,target:r}}function Ka(e,t,r=ze.Left,a=!1){const s=((t==null?void 0:t.x)??0)+e.internals.positionAbsolute.x,o=((t==null?void 0:t.y)??0)+e.internals.positionAbsolute.y,{width:c,height:d}=t??Qr(e);if(a)return{x:s+c/2,y:o+d/2};switch((t==null?void 0:t.position)??r){case ze.Top:return{x:s+c/2,y:o};case ze.Right:return{x:s+c,y:o+d/2};case ze.Bottom:return{x:s+c/2,y:o+d};case ze.Left:return{x:s,y:o+d/2}}}function d1(e,t){return e&&(t?e.find(r=>r.id===t):e[0])||null}function op(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(a=>`${a}=${e[a]}`).join("&")}`:""}function Qz(e,{id:t,defaultColor:r,defaultMarkerStart:a,defaultMarkerEnd:s}){const o=new Set;return e.reduce((c,d)=>([d.markerStart||a,d.markerEnd||s].forEach(f=>{if(f&&typeof f=="object"){const h=op(f,t);o.has(h)||(c.push({id:h,color:f.color||r,...f}),o.add(h))}}),c),[]).sort((c,d)=>c.id.localeCompare(d.id))}const tN=1e3,Wz=10,rg={nodeOrigin:[0,0],nodeExtent:wo,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},Jz={...rg,checkEquality:!0};function ig(e,t){const r={...e};for(const a in t)t[a]!==void 0&&(r[a]=t[a]);return r}function eI(e,t,r){const a=ig(rg,r);for(const s of e.values())if(s.parentId)sg(s,e,t,a);else{const o=Lo(s,a.nodeOrigin),c=Xa(s.extent)?s.extent:a.nodeExtent,d=Ya(o,c,Qr(s));s.internals.positionAbsolute=d}}function tI(e,t){if(!e.handles)return e.measured?t==null?void 0:t.internals.handleBounds:void 0;const r=[],a=[];for(const s of e.handles){const o={id:s.id,width:s.width??1,height:s.height??1,nodeId:e.id,x:s.x,y:s.y,position:s.position,type:s.type};s.type==="source"?r.push(o):s.type==="target"&&a.push(o)}return{source:r,target:a}}function ag(e){return e==="manual"}function cp(e,t,r,a={}){var m,p;const s=ig(Jz,a),o={i:0},c=new Map(t),d=s!=null&&s.elevateNodesOnSelect&&!ag(s.zIndexMode)?tN:0;let f=e.length>0,h=!1;t.clear(),r.clear();for(const y of e){let x=c.get(y.id);if(s.checkEquality&&y===(x==null?void 0:x.internals.userNode))t.set(y.id,x);else{const _=Lo(y,s.nodeOrigin),N=Xa(y.extent)?y.extent:s.nodeExtent,S=Ya(_,N,Qr(y));x={...s.defaults,...y,measured:{width:(m=y.measured)==null?void 0:m.width,height:(p=y.measured)==null?void 0:p.height},internals:{positionAbsolute:S,handleBounds:tI(y,x),z:nN(y,d,s.zIndexMode),userNode:y}},t.set(y.id,x)}(x.measured===void 0||x.measured.width===void 0||x.measured.height===void 0)&&!x.hidden&&(f=!1),y.parentId&&sg(x,t,r,a,o),h||(h=y.selected??!1)}return{nodesInitialized:f,hasSelectedNodes:h}}function nI(e,t){if(!e.parentId)return;const r=t.get(e.parentId);r?r.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function sg(e,t,r,a,s){const{elevateNodesOnSelect:o,nodeOrigin:c,nodeExtent:d,zIndexMode:f}=ig(rg,a),h=e.parentId,m=t.get(h);if(!m){console.warn(`Parent node ${h} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}nI(e,r),s&&!m.parentId&&m.internals.rootParentIndex===void 0&&f==="auto"&&(m.internals.rootParentIndex=++s.i,m.internals.z=m.internals.z+s.i*Wz),s&&m.internals.rootParentIndex!==void 0&&(s.i=m.internals.rootParentIndex);const p=o&&!ag(f)?tN:0,{x:y,y:x,z:_}=rI(e,m,c,d,p,f),{positionAbsolute:N}=e.internals,S=y!==N.x||x!==N.y;(S||_!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:S?{x:y,y:x}:N,z:_}})}function nN(e,t,r){const a=Or(e.zIndex)?e.zIndex:0;return ag(r)?a:a+(e.selected?t:0)}function rI(e,t,r,a,s,o){const{x:c,y:d}=t.internals.positionAbsolute,f=Qr(e),h=Lo(e,r),m=Xa(e.extent)?Ya(h,e.extent,f):h;let p=Ya({x:c+m.x,y:d+m.y},a,f);e.extent==="parent"&&(p=qE(p,f,t));const y=nN(e,s,o),x=t.internals.z??0;return{x:p.x,y:p.y,z:x>=y?x+1:y}}function lg(e,t,r,a=[0,0]){var c;const s=[],o=new Map;for(const d of e){const f=t.get(d.parentId);if(!f)continue;const h=((c=o.get(d.parentId))==null?void 0:c.expandedRect)??No(f),m=PE(h,d.rect);o.set(d.parentId,{expandedRect:m,parent:f})}return o.size>0&&o.forEach(({expandedRect:d,parent:f},h)=>{var E;const m=f.internals.positionAbsolute,p=Qr(f),y=f.origin??a,x=d.x<m.x?Math.round(Math.abs(m.x-d.x)):0,_=d.y<m.y?Math.round(Math.abs(m.y-d.y)):0,N=Math.max(p.width,Math.round(d.width)),S=Math.max(p.height,Math.round(d.height)),w=(N-p.width)*y[0],k=(S-p.height)*y[1];(x>0||_>0||w||k)&&(s.push({id:h,type:"position",position:{x:f.position.x-x+w,y:f.position.y-_+k}}),(E=r.get(h))==null||E.forEach(M=>{e.some(I=>I.id===M.id)||s.push({id:M.id,type:"position",position:{x:M.position.x+x,y:M.position.y+_}})})),(p.width<d.width||p.height<d.height||x||_)&&s.push({id:h,type:"dimensions",setAttributes:!0,dimensions:{width:N+(x?y[0]*x-w:0),height:S+(_?y[1]*_-k:0)}})}),s}function iI(e,t,r,a,s,o,c){const d=a==null?void 0:a.querySelector(".xyflow__viewport");let f=!1;if(!d)return{changes:[],updatedInternals:f};const h=[],m=window.getComputedStyle(d),{m22:p}=new window.DOMMatrixReadOnly(m.transform),y=[];for(const x of e.values()){const _=t.get(x.id);if(!_)continue;if(_.hidden){t.set(_.id,{..._,internals:{..._.internals,handleBounds:void 0}}),f=!0;continue}const N=ng(x.nodeElement),S=_.measured.width!==N.width||_.measured.height!==N.height;if(!!(N.width&&N.height&&(S||!_.internals.handleBounds||x.force))){const k=x.nodeElement.getBoundingClientRect(),E=Xa(_.extent)?_.extent:o;let{positionAbsolute:M}=_.internals;if(_.parentId&&_.extent==="parent"){const R=t.get(_.parentId);R&&(M=qE(M,N,R))}else E&&(M=Ya(M,E,N));const I={..._,measured:N,internals:{..._.internals,positionAbsolute:M,handleBounds:{source:a1("source",x.nodeElement,k,p,_.id),target:a1("target",x.nodeElement,k,p,_.id)}}};t.set(_.id,I),_.parentId&&sg(I,t,r,{nodeOrigin:s,zIndexMode:c}),f=!0,S&&(h.push({id:_.id,type:"dimensions",dimensions:N}),_.expandParent&&_.parentId&&y.push({id:_.id,parentId:_.parentId,rect:No(I,s)}))}}if(y.length>0){const x=lg(y,t,r,s);h.push(...x)}return{changes:h,updatedInternals:f}}async function aI({delta:e,panZoom:t,transform:r,translateExtent:a,width:s,height:o}){if(!t||!e.x&&!e.y)return!1;const c=await t.setViewportConstrained({x:r[0]+e.x,y:r[1]+e.y,zoom:r[2]},[[0,0],[s,o]],a);return!!c&&(c.x!==r[0]||c.y!==r[1]||c.k!==r[2])}function f1(e,t,r,a,s,o){let c=s;const d=a.get(c)||new Map;a.set(c,d.set(r,t)),c=`${s}-${e}`;const f=a.get(c)||new Map;if(a.set(c,f.set(r,t)),o){c=`${s}-${e}-${o}`;const h=a.get(c)||new Map;a.set(c,h.set(r,t))}}function rN(e,t,r){e.clear(),t.clear();for(const a of r){const{source:s,target:o,sourceHandle:c=null,targetHandle:d=null}=a,f={edgeId:a.id,source:s,target:o,sourceHandle:c,targetHandle:d},h=`${s}-${c}--${o}-${d}`,m=`${o}-${d}--${s}-${c}`;f1("source",f,m,e,s,c),f1("target",f,h,e,o,d),t.set(a.id,a)}}function iN(e,t){if(!e.parentId)return!1;const r=t.get(e.parentId);return r?r.selected?!0:iN(r,t):!1}function h1(e,t,r){var s;let a=e;do{if((s=a==null?void 0:a.matches)!=null&&s.call(a,t))return!0;if(a===r)return!1;a=a==null?void 0:a.parentElement}while(a);return!1}function sI(e,t,r,a){const s=new Map;for(const[o,c]of e)if((c.selected||c.id===a)&&(!c.parentId||!iN(c,e))&&(c.draggable||t&&typeof c.draggable>"u")){const d=e.get(o);d&&s.set(o,{id:o,position:d.position||{x:0,y:0},distance:{x:r.x-d.internals.positionAbsolute.x,y:r.y-d.internals.positionAbsolute.y},extent:d.extent,parentId:d.parentId,origin:d.origin,expandParent:d.expandParent,internals:{positionAbsolute:d.internals.positionAbsolute||{x:0,y:0}},measured:{width:d.measured.width??0,height:d.measured.height??0}})}return s}function vm({nodeId:e,dragItems:t,nodeLookup:r,dragging:a=!0}){var c,d,f;const s=[];for(const[h,m]of t){const p=(c=r.get(h))==null?void 0:c.internals.userNode;p&&s.push({...p,position:m.position,dragging:a})}if(!e)return[s[0],s];const o=(d=r.get(e))==null?void 0:d.internals.userNode;return[o?{...o,position:((f=t.get(e))==null?void 0:f.position)||o.position,dragging:a}:s[0],s]}function lI({dragItems:e,snapGrid:t,x:r,y:a}){const s=e.values().next().value;if(!s)return null;const o={x:r-s.distance.x,y:a-s.distance.y},c=Io(o,t);return{x:c.x-o.x,y:c.y-o.y}}function oI({onNodeMouseDown:e,getStoreItems:t,onDragStart:r,onDrag:a,onDragStop:s}){let o={x:null,y:null},c=0,d=new Map,f=!1,h={x:0,y:0},m=null,p=!1,y=null,x=!1,_=!1,N=null;function S({noDragClassName:k,handleSelector:E,domNode:M,isSelectable:I,nodeId:R,nodeClickDistance:U=0}){y=rr(M);function B({x:G,y:V}){const{nodeLookup:A,nodeExtent:q,snapGrid:O,snapToGrid:H,nodeOrigin:X,onNodeDrag:K,onSelectionDrag:T,onError:j,updateNodePositions:Y}=t();o={x:G,y:V};let z=!1;const F=d.size>1,$=F&&q?sp(zo(d)):null,Q=F&&H?lI({dragItems:d,snapGrid:O,x:G,y:V}):null;for(const[J,W]of d){if(!A.has(J))continue;let te={x:G-W.distance.x,y:V-W.distance.y};H&&(te=Q?{x:Math.round(te.x+Q.x),y:Math.round(te.y+Q.y)}:Io(te,O));let ce=null;if(F&&q&&!W.extent&&$){const{positionAbsolute:we}=W.internals,Ne=we.x-$.x+q[0][0],je=we.x+W.measured.width-$.x2+q[1][0],$e=we.y-$.y+q[0][1],st=we.y+W.measured.height-$.y2+q[1][1];ce=[[Ne,$e],[je,st]]}const{position:fe,positionAbsolute:be}=$E({nodeId:J,nextPosition:te,nodeLookup:A,nodeExtent:ce||q,nodeOrigin:X,onError:j});z=z||W.position.x!==fe.x||W.position.y!==fe.y,W.position=fe,W.internals.positionAbsolute=be}if(_=_||z,!!z&&(Y(d,!0),N&&(a||K||!R&&T))){const[J,W]=vm({nodeId:R,dragItems:d,nodeLookup:A});a==null||a(N,d,J,W),K==null||K(N,J,W),R||T==null||T(N,W)}}async function Z(){if(!m)return;const{transform:G,panBy:V,autoPanSpeed:A,autoPanOnNodeDrag:q}=t();if(!q){f=!1,cancelAnimationFrame(c);return}const[O,H]=eg(h,m,A);(O!==0||H!==0)&&(o.x=(o.x??0)-O/G[2],o.y=(o.y??0)-H/G[2],await V({x:O,y:H})&&B(o)),c=requestAnimationFrame(Z)}function D(G){var F;const{nodeLookup:V,multiSelectionActive:A,nodesDraggable:q,transform:O,snapGrid:H,snapToGrid:X,selectNodesOnDrag:K,onNodeDragStart:T,onSelectionDragStart:j,unselectNodesAndEdges:Y}=t();p=!0,(!K||!I)&&!A&&R&&((F=V.get(R))!=null&&F.selected||Y()),I&&K&&R&&(e==null||e(R));const z=fo(G.sourceEvent,{transform:O,snapGrid:H,snapToGrid:X,containerBounds:m});if(o=z,d=sI(V,q,z,R),d.size>0&&(r||T||!R&&j)){const[$,Q]=vm({nodeId:R,dragItems:d,nodeLookup:V});r==null||r(G.sourceEvent,d,$,Q),T==null||T(G.sourceEvent,$,Q),R||j==null||j(G.sourceEvent,Q)}}const L=vE().clickDistance(U).on("start",G=>{const{domNode:V,nodeDragThreshold:A,transform:q,snapGrid:O,snapToGrid:H}=t();m=(V==null?void 0:V.getBoundingClientRect())||null,x=!1,_=!1,N=G.sourceEvent,A===0&&D(G),o=fo(G.sourceEvent,{transform:q,snapGrid:O,snapToGrid:H,containerBounds:m}),h=Rr(G.sourceEvent,m)}).on("drag",G=>{const{autoPanOnNodeDrag:V,transform:A,snapGrid:q,snapToGrid:O,nodeDragThreshold:H,nodeLookup:X}=t(),K=fo(G.sourceEvent,{transform:A,snapGrid:q,snapToGrid:O,containerBounds:m});if(N=G.sourceEvent,(G.sourceEvent.type==="touchmove"&&G.sourceEvent.touches.length>1||R&&!X.has(R))&&(x=!0),!x){if(!f&&V&&p&&(f=!0,Z()),!p){const T=Rr(G.sourceEvent,m),j=T.x-h.x,Y=T.y-h.y;Math.sqrt(j*j+Y*Y)>H&&D(G)}(o.x!==K.xSnapped||o.y!==K.ySnapped)&&d&&p&&(h=Rr(G.sourceEvent,m),B(K))}}).on("end",G=>{if(!p||x){x&&d.size>0&&t().updateNodePositions(d,!1);return}if(f=!1,p=!1,cancelAnimationFrame(c),d.size>0){const{nodeLookup:V,updateNodePositions:A,onNodeDragStop:q,onSelectionDragStop:O}=t();if(_&&(A(d,!1),_=!1),s||q||!R&&O){const[H,X]=vm({nodeId:R,dragItems:d,nodeLookup:V,dragging:!1});s==null||s(G.sourceEvent,d,H,X),q==null||q(G.sourceEvent,H,X),R||O==null||O(G.sourceEvent,X)}}}).filter(G=>{const V=G.target;return!G.button&&(!k||!h1(V,`.${k}`,M))&&(!E||h1(V,E,M))});y.call(L)}function w(){y==null||y.on(".drag",null)}return{update:S,destroy:w}}function cI(e,t,r){const a=[],s={x:e.x-r,y:e.y-r,width:r*2,height:r*2};for(const o of t.values())ju(s,No(o))>0&&a.push(o);return a}const uI=250;function dI(e,t,r,a){var d,f;let s=[],o=1/0;const c=cI(e,r,t+uI);for(const h of c){const m=[...((d=h.internals.handleBounds)==null?void 0:d.source)??[],...((f=h.internals.handleBounds)==null?void 0:f.target)??[]];for(const p of m){if(a.nodeId===p.nodeId&&a.type===p.type&&a.id===p.id)continue;const{x:y,y:x}=Ka(h,p,p.position,!0),_=Math.sqrt(Math.pow(y-e.x,2)+Math.pow(x-e.y,2));_>t||(_<o?(s=[{...p,x:y,y:x}],o=_):_===o&&s.push({...p,x:y,y:x}))}}if(!s.length)return null;if(s.length>1){const h=a.type==="source"?"target":"source";return s.find(m=>m.type===h)??s[0]}return s[0]}function aN(e,t,r,a,s,o=!1){var h,m,p;const c=a.get(e);if(!c)return null;const d=s==="strict"?(h=c.internals.handleBounds)==null?void 0:h[t]:[...((m=c.internals.handleBounds)==null?void 0:m.source)??[],...((p=c.internals.handleBounds)==null?void 0:p.target)??[]],f=(r?d==null?void 0:d.find(y=>y.id===r):d==null?void 0:d[0])??null;return f&&o?{...f,...Ka(c,f,f.position,!0)}:f}function sN(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function fI(e,t){let r=null;return t?r=!0:e&&!t&&(r=!1),r}const lN=()=>!0;function hI(e,{connectionMode:t,connectionRadius:r,handleId:a,nodeId:s,edgeUpdaterType:o,isTarget:c,domNode:d,nodeLookup:f,lib:h,autoPanOnConnect:m,flowId:p,panBy:y,cancelConnection:x,onConnectStart:_,onConnect:N,onConnectEnd:S,isValidConnection:w=lN,onReconnectEnd:k,updateConnection:E,getTransform:M,getFromHandle:I,autoPanSpeed:R,dragThreshold:U=1,handleDomNode:B}){const Z=XE(e.target);let D=0,L;const{x:G,y:V}=Rr(e),A=sN(o,B),q=d==null?void 0:d.getBoundingClientRect();let O=!1;if(!q||!A)return;const H=aN(s,A,a,f,t);if(!H)return;let X=Rr(e,q),K=!1,T=null,j=!1,Y=null;function z(){if(!m||!q)return;const[fe,be]=eg(X,q,R);y({x:fe,y:be}),D=requestAnimationFrame(z)}const F={...H,nodeId:s,type:A,position:H.position},$=f.get(s);let J={inProgress:!0,isValid:null,from:Ka($,F,ze.Left,!0),fromHandle:F,fromPosition:F.position,fromNode:$,to:X,toHandle:null,toPosition:t1[F.position],toNode:null,pointer:X};function W(){O=!0,E(J),_==null||_(e,{nodeId:s,handleId:a,handleType:A})}U===0&&W();function te(fe){if(!O){const{x:st,y:Rt}=Rr(fe),Yt=st-G,Pt=Rt-V;if(!(Yt*Yt+Pt*Pt>U*U))return;W()}if(!I()||!F){ce(fe);return}const be=M();X=Rr(fe,q),L=dI(Bo(X,be,!1,[1,1]),r,f,F),K||(z(),K=!0);const we=oN(fe,{handle:L,connectionMode:t,fromNodeId:s,fromHandleId:a,fromType:c?"target":"source",isValidConnection:w,doc:Z,lib:h,flowId:p,nodeLookup:f});Y=we.handleDomNode,T=we.connection,j=fI(!!L,we.isValid);const Ne=f.get(s),je=Ne?Ka(Ne,F,ze.Left,!0):J.from,$e={...J,from:je,isValid:j,to:we.toHandle&&j?Ws({x:we.toHandle.x,y:we.toHandle.y},be):X,toHandle:we.toHandle,toPosition:j&&we.toHandle?we.toHandle.position:t1[F.position],toNode:we.toHandle?f.get(we.toHandle.nodeId):null,pointer:X};E($e),J=$e}function ce(fe){if(!("touches"in fe&&fe.touches.length>0)){if(O){(L||Y)&&T&&j&&(N==null||N(T));const{inProgress:be,...we}=J,Ne={...we,toPosition:J.toHandle?J.toPosition:null};S==null||S(fe,Ne),o&&(k==null||k(fe,Ne))}x(),cancelAnimationFrame(D),K=!1,j=!1,T=null,Y=null,Z.removeEventListener("mousemove",te),Z.removeEventListener("mouseup",ce),Z.removeEventListener("touchmove",te),Z.removeEventListener("touchend",ce)}}Z.addEventListener("mousemove",te),Z.addEventListener("mouseup",ce),Z.addEventListener("touchmove",te),Z.addEventListener("touchend",ce)}function oN(e,{handle:t,connectionMode:r,fromNodeId:a,fromHandleId:s,fromType:o,doc:c,lib:d,flowId:f,isValidConnection:h=lN,nodeLookup:m}){const p=o==="target",y=t?c.querySelector(`.${d}-flow__handle[data-id="${f}-${t==null?void 0:t.nodeId}-${t==null?void 0:t.id}-${t==null?void 0:t.type}"]`):null,{x,y:_}=Rr(e),N=c.elementFromPoint(x,_),S=N!=null&&N.classList.contains(`${d}-flow__handle`)?N:y,w={handleDomNode:S,isValid:!1,connection:null,toHandle:null};if(S){const k=sN(void 0,S),E=S.getAttribute("data-nodeid"),M=S.getAttribute("data-handleid"),I=S.classList.contains("connectable"),R=S.classList.contains("connectableend");if(!E||!k)return w;const U={source:p?E:a,sourceHandle:p?M:s,target:p?a:E,targetHandle:p?s:M};w.connection=U;const Z=I&&R&&(r===Zs.Strict?p&&k==="source"||!p&&k==="target":E!==a||M!==s);w.isValid=Z&&h(U),w.toHandle=aN(E,k,M,m,r,!0)}return w}const up={onPointerDown:hI,isValid:oN};function mI({domNode:e,panZoom:t,getTransform:r,getViewScale:a}){const s=rr(e);function o({translateExtent:d,width:f,height:h,zoomStep:m=1,pannable:p=!0,zoomable:y=!0,inversePan:x=!1}){const _=E=>{if(E.sourceEvent.type!=="wheel"||!t)return;const M=r(),I=E.sourceEvent.ctrlKey&&So()?10:1,R=-E.sourceEvent.deltaY*(E.sourceEvent.deltaMode===1?.05:E.sourceEvent.deltaMode?1:.002)*m,U=M[2]*Math.pow(2,R*I);t.scaleTo(U)};let N=[0,0];const S=E=>{(E.sourceEvent.type==="mousedown"||E.sourceEvent.type==="touchstart")&&(N=[E.sourceEvent.clientX??E.sourceEvent.touches[0].clientX,E.sourceEvent.clientY??E.sourceEvent.touches[0].clientY])},w=E=>{const M=r();if(E.sourceEvent.type!=="mousemove"&&E.sourceEvent.type!=="touchmove"||!t)return;const I=[E.sourceEvent.clientX??E.sourceEvent.touches[0].clientX,E.sourceEvent.clientY??E.sourceEvent.touches[0].clientY],R=[I[0]-N[0],I[1]-N[1]];N=I;const U=a()*Math.max(M[2],Math.log(M[2]))*(x?-1:1),B={x:M[0]-R[0]*U,y:M[1]-R[1]*U},Z=[[0,0],[f,h]];t.setViewportConstrained({x:B.x,y:B.y,zoom:M[2]},Z,d)},k=LE().on("start",S).on("zoom",p?w:null).on("zoom.wheel",y?_:null);s.call(k,{})}function c(){s.on("zoom",null)}return{update:o,destroy:c,pointer:Tr}}const ed=e=>({x:e.x,y:e.y,zoom:e.k}),_m=({x:e,y:t,zoom:r})=>Qu.translate(e,t).scale(r),Us=(e,t)=>e.target.closest(`.${t}`),cN=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),pI=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,wm=(e,t=0,r=pI,a=()=>{})=>{const s=typeof t=="number"&&t>0;return s||a(),s?e.transition().duration(t).ease(r).on("end",a):e},uN=e=>{const t=e.ctrlKey&&So()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function gI({zoomPanValues:e,noWheelClassName:t,d3Selection:r,d3Zoom:a,panOnScrollMode:s,panOnScrollSpeed:o,zoomOnPinch:c,onPanZoomStart:d,onPanZoom:f,onPanZoomEnd:h}){return m=>{if(Us(m,t))return m.ctrlKey&&m.preventDefault(),!1;m.preventDefault(),m.stopImmediatePropagation();const p=r.property("__zoom").k||1;if(m.ctrlKey&&c){const S=Tr(m),w=uN(m),k=p*Math.pow(2,w);a.scaleTo(r,k,S,m);return}const y=m.deltaMode===1?20:1;let x=s===Pa.Vertical?0:m.deltaX*y,_=s===Pa.Horizontal?0:m.deltaY*y;!So()&&m.shiftKey&&s!==Pa.Vertical&&(x=m.deltaY*y,_=0),a.translateBy(r,-(x/p)*o,-(_/p)*o,{internal:!0});const N=ed(r.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?f==null||f(m,N):(e.isPanScrolling=!0,d==null||d(m,N)),e.panScrollTimeout=setTimeout(()=>{h==null||h(m,N),e.isPanScrolling=!1},150)}}function bI({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:r}){return function(a,s){const o=a.type==="wheel",c=!t&&o&&!a.ctrlKey,d=Us(a,e);if(a.ctrlKey&&o&&d&&a.preventDefault(),c||d)return null;a.preventDefault(),r.call(this,a,s)}}function xI({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:r}){return a=>{var o,c,d;if((o=a.sourceEvent)!=null&&o.internal)return;const s=ed(a.transform);e.mouseButton=((c=a.sourceEvent)==null?void 0:c.button)||0,e.isZoomingOrPanning=!0,e.prevViewport=s,((d=a.sourceEvent)==null?void 0:d.type)==="mousedown"&&t(!0),r&&(r==null||r(a.sourceEvent,s))}}function yI({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:r,onTransformChange:a,onPanZoom:s}){return o=>{var c,d;e.usedRightMouseButton=!!(r&&cN(t,e.mouseButton??0)),(c=o.sourceEvent)!=null&&c.sync||a([o.transform.x,o.transform.y,o.transform.k]),s&&!((d=o.sourceEvent)!=null&&d.internal)&&(s==null||s(o.sourceEvent,ed(o.transform)))}}function vI({zoomPanValues:e,panOnDrag:t,panOnScroll:r,onDraggingChange:a,onPanZoomEnd:s,onPaneContextMenu:o}){return c=>{var d;if(!((d=c.sourceEvent)!=null&&d.internal)&&(e.isZoomingOrPanning=!1,o&&cN(t,e.mouseButton??0)&&!e.usedRightMouseButton&&c.sourceEvent&&o(c.sourceEvent),e.usedRightMouseButton=!1,a(!1),s)){const f=ed(c.transform);e.prevViewport=f,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{s==null||s(c.sourceEvent,f)},r?150:0)}}}function _I({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:r,panOnDrag:a,panOnScroll:s,zoomOnDoubleClick:o,userSelectionActive:c,noWheelClassName:d,noPanClassName:f,lib:h,connectionInProgress:m}){return p=>{var S;const y=e||t,x=r&&p.ctrlKey,_=p.type==="wheel";if(p.button===1&&p.type==="mousedown"&&(Us(p,`${h}-flow__node`)||Us(p,`${h}-flow__edge`)))return!0;if(!a&&!y&&!s&&!o&&!r||c||m&&!_||Us(p,d)&&_||Us(p,f)&&(!_||s&&_&&!e)||!r&&p.ctrlKey&&_)return!1;if(!r&&p.type==="touchstart"&&((S=p.touches)==null?void 0:S.length)>1)return p.preventDefault(),!1;if(!y&&!s&&!x&&_||!a&&(p.type==="mousedown"||p.type==="touchstart")||Array.isArray(a)&&!a.includes(p.button)&&p.type==="mousedown")return!1;const N=Array.isArray(a)&&a.includes(p.button)||!p.button||p.button<=1;return(!p.ctrlKey||_)&&N}}function wI({domNode:e,minZoom:t,maxZoom:r,translateExtent:a,viewport:s,onPanZoom:o,onPanZoomStart:c,onPanZoomEnd:d,onDraggingChange:f}){const h={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},m=e.getBoundingClientRect();let p=[[0,0],[m.width,m.height]];const y=typeof ResizeObserver<"u"?new ResizeObserver(V=>{const A=V[0];A&&(p=[[0,0],[A.contentRect.width,A.contentRect.height]])}):null;y==null||y.observe(e);const x=LE().extent(()=>p).scaleExtent([t,r]).translateExtent(a),_=rr(e).call(x);M({x:s.x,y:s.y,zoom:Qs(s.zoom,t,r)},[[0,0],[m.width,m.height]],a);const N=_.on("wheel.zoom"),S=_.on("dblclick.zoom");x.wheelDelta(uN);async function w(V,A){return _?new Promise(q=>{x==null||x.interpolate((A==null?void 0:A.interpolate)==="linear"?uo:gu).transform(wm(_,A==null?void 0:A.duration,A==null?void 0:A.ease,()=>q(!0)),V)}):!1}function k({noWheelClassName:V,noPanClassName:A,onPaneContextMenu:q,userSelectionActive:O,panOnScroll:H,panOnDrag:X,panOnScrollMode:K,panOnScrollSpeed:T,preventScrolling:j,zoomOnPinch:Y,zoomOnScroll:z,zoomOnDoubleClick:F,zoomActivationKeyPressed:$,lib:Q,onTransformChange:J,connectionInProgress:W,paneClickDistance:te,selectionOnDrag:ce}){O&&!h.isZoomingOrPanning&&E();const fe=H&&!$&&!O;x.clickDistance(ce?1/0:!Or(te)||te<0?0:te);const be=fe?gI({zoomPanValues:h,noWheelClassName:V,d3Selection:_,d3Zoom:x,panOnScrollMode:K,panOnScrollSpeed:T,zoomOnPinch:Y,onPanZoomStart:c,onPanZoom:o,onPanZoomEnd:d}):bI({noWheelClassName:V,preventScrolling:j,d3ZoomHandler:N});_.on("wheel.zoom",be,{passive:!1});const we=xI({zoomPanValues:h,onDraggingChange:f,onPanZoomStart:c});x.on("start",we);const Ne=yI({zoomPanValues:h,panOnDrag:X,onPaneContextMenu:!!q,onPanZoom:o,onTransformChange:J});x.on("zoom",Ne);const je=vI({zoomPanValues:h,panOnDrag:X,panOnScroll:H,onPaneContextMenu:q,onPanZoomEnd:d,onDraggingChange:f});x.on("end",je);const $e=_I({zoomActivationKeyPressed:$,panOnDrag:X,zoomOnScroll:z,panOnScroll:H,zoomOnDoubleClick:F,zoomOnPinch:Y,userSelectionActive:O,noPanClassName:A,noWheelClassName:V,lib:Q,connectionInProgress:W});x.filter($e),F?_.on("dblclick.zoom",S):_.on("dblclick.zoom",null)}function E(){x.on("zoom",null)}async function M(V,A,q){const O=_m(V),H=x==null?void 0:x.constrain()(O,A,q);return H&&await w(H),H}async function I(V,A){const q=_m(V);return await w(q,A),q}function R(V){if(_){const A=_m(V),q=_.property("__zoom");(q.k!==V.zoom||q.x!==V.x||q.y!==V.y)&&(x==null||x.transform(_,A,null,{sync:!0}))}}function U(){const V=_?jE(_.node()):{x:0,y:0,k:1};return{x:V.x,y:V.y,zoom:V.k}}async function B(V,A){return _?new Promise(q=>{x==null||x.interpolate((A==null?void 0:A.interpolate)==="linear"?uo:gu).scaleTo(wm(_,A==null?void 0:A.duration,A==null?void 0:A.ease,()=>q(!0)),V)}):!1}async function Z(V,A){return _?new Promise(q=>{x==null||x.interpolate((A==null?void 0:A.interpolate)==="linear"?uo:gu).scaleBy(wm(_,A==null?void 0:A.duration,A==null?void 0:A.ease,()=>q(!0)),V)}):!1}function D(V){x==null||x.scaleExtent(V)}function L(V){x==null||x.translateExtent(V)}function G(V){const A=!Or(V)||V<0?0:V;x==null||x.clickDistance(A)}return{update:k,destroy:E,setViewport:I,setViewportConstrained:M,getViewport:U,scaleTo:B,scaleBy:Z,setScaleExtent:D,setTranslateExtent:L,syncViewport:R,setClickDistance:G}}var Js;(function(e){e.Line="line",e.Handle="handle"})(Js||(Js={}));function EI({width:e,prevWidth:t,height:r,prevHeight:a,affectsX:s,affectsY:o}){const c=e-t,d=r-a,f=[c>0?1:c<0?-1:0,d>0?1:d<0?-1:0];return c&&s&&(f[0]=f[0]*-1),d&&o&&(f[1]=f[1]*-1),f}function m1(e){const t=e.includes("right")||e.includes("left"),r=e.includes("bottom")||e.includes("top"),a=e.includes("left"),s=e.includes("top");return{isHorizontal:t,isVertical:r,affectsX:a,affectsY:s}}function aa(e,t){return Math.max(0,t-e)}function sa(e,t){return Math.max(0,e-t)}function cu(e,t,r){return Math.max(0,t-e,e-r)}function p1(e,t){return e?!t:t}function NI(e,t,r,a,s,o,c,d){let{affectsX:f,affectsY:h}=t;const{isHorizontal:m,isVertical:p}=t,y=m&&p,{xSnapped:x,ySnapped:_}=r,{minWidth:N,maxWidth:S,minHeight:w,maxHeight:k}=a,{x:E,y:M,width:I,height:R,aspectRatio:U}=e;let B=Math.floor(m?x-e.pointerX:0),Z=Math.floor(p?_-e.pointerY:0);const D=I+(f?-B:B),L=R+(h?-Z:Z),G=-o[0]*I,V=-o[1]*R;let A=cu(D,N,S),q=cu(L,w,k);if(c){let X=0,K=0;f&&B<0?X=aa(E+B+G,c[0][0]):!f&&B>0&&(X=sa(E+D+G,c[1][0])),h&&Z<0?K=aa(M+Z+V,c[0][1]):!h&&Z>0&&(K=sa(M+L+V,c[1][1])),A=Math.max(A,X),q=Math.max(q,K)}if(d){let X=0,K=0;f&&B>0?X=sa(E+B,d[0][0]):!f&&B<0&&(X=aa(E+D,d[1][0])),h&&Z>0?K=sa(M+Z,d[0][1]):!h&&Z<0&&(K=aa(M+L,d[1][1])),A=Math.max(A,X),q=Math.max(q,K)}if(s){if(m){const X=cu(D/U,w,k)*U;if(A=Math.max(A,X),c){let K=0;!f&&!h||f&&!h&&y?K=sa(M+V+D/U,c[1][1])*U:K=aa(M+V+(f?B:-B)/U,c[0][1])*U,A=Math.max(A,K)}if(d){let K=0;!f&&!h||f&&!h&&y?K=aa(M+D/U,d[1][1])*U:K=sa(M+(f?B:-B)/U,d[0][1])*U,A=Math.max(A,K)}}if(p){const X=cu(L*U,N,S)/U;if(q=Math.max(q,X),c){let K=0;!f&&!h||h&&!f&&y?K=sa(E+L*U+G,c[1][0])/U:K=aa(E+(h?Z:-Z)*U+G,c[0][0])/U,q=Math.max(q,K)}if(d){let K=0;!f&&!h||h&&!f&&y?K=aa(E+L*U,d[1][0])/U:K=sa(E+(h?Z:-Z)*U,d[0][0])/U,q=Math.max(q,K)}}}Z=Z+(Z<0?q:-q),B=B+(B<0?A:-A),s&&(y?D>L*U?Z=(p1(f,h)?-B:B)/U:B=(p1(f,h)?-Z:Z)*U:m?(Z=B/U,h=f):(B=Z*U,f=h));const O=f?E+B:E,H=h?M+Z:M;return{width:I+(f?-B:B),height:R+(h?-Z:Z),x:o[0]*B*(f?-1:1)+O,y:o[1]*Z*(h?-1:1)+H}}const dN={width:0,height:0,x:0,y:0},SI={...dN,pointerX:0,pointerY:0,aspectRatio:1};function kI(e,t,r){const a=t.position.x+e.position.x,s=t.position.y+e.position.y,o=e.measured.width??0,c=e.measured.height??0,d=r[0]*o,f=r[1]*c;return[[a-d,s-f],[a+o-d,s+c-f]]}function TI({domNode:e,nodeId:t,getStoreItems:r,onChange:a,onEnd:s}){const o=rr(e);let c={controlDirection:m1("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function d({controlPosition:h,boundaries:m,keepAspectRatio:p,resizeDirection:y,onResizeStart:x,onResize:_,onResizeEnd:N,shouldResize:S}){let w={...dN},k={...SI};c={boundaries:m,resizeDirection:y,keepAspectRatio:p,controlDirection:m1(h)};let E,M=null,I=[],R,U,B,Z=!1;const D=vE().on("start",L=>{const{nodeLookup:G,transform:V,snapGrid:A,snapToGrid:q,nodeOrigin:O,paneDomNode:H}=r();if(E=G.get(t),!E)return;M=(H==null?void 0:H.getBoundingClientRect())??null;const{xSnapped:X,ySnapped:K}=fo(L.sourceEvent,{transform:V,snapGrid:A,snapToGrid:q,containerBounds:M});w={width:E.measured.width??0,height:E.measured.height??0,x:E.position.x??0,y:E.position.y??0},k={...w,pointerX:X,pointerY:K,aspectRatio:w.width/w.height},R=void 0,U=Xa(E.extent)?E.extent:void 0,E.parentId&&(E.extent==="parent"||E.expandParent)&&(R=G.get(E.parentId)),R&&E.extent==="parent"&&(U=[[0,0],[R.measured.width,R.measured.height]]),I=[],B=void 0;for(const[T,j]of G)if(j.parentId===t&&(I.push({id:T,position:{...j.position},extent:j.extent}),j.extent==="parent"||j.expandParent)){const Y=kI(j,E,j.origin??O);B?B=[[Math.min(Y[0][0],B[0][0]),Math.min(Y[0][1],B[0][1])],[Math.max(Y[1][0],B[1][0]),Math.max(Y[1][1],B[1][1])]]:B=Y}x==null||x(L,{...w})}).on("drag",L=>{const{transform:G,snapGrid:V,snapToGrid:A,nodeOrigin:q}=r(),O=fo(L.sourceEvent,{transform:G,snapGrid:V,snapToGrid:A,containerBounds:M}),H=[];if(!E)return;const{x:X,y:K,width:T,height:j}=w,Y={},z=E.origin??q,{width:F,height:$,x:Q,y:J}=NI(k,c.controlDirection,O,c.boundaries,c.keepAspectRatio,z,U,B),W=F!==T,te=$!==j,ce=Q!==X&&W,fe=J!==K&&te;if(!ce&&!fe&&!W&&!te)return;if((ce||fe||z[0]===1||z[1]===1)&&(Y.x=ce?Q:w.x,Y.y=fe?J:w.y,w.x=Y.x,w.y=Y.y,I.length>0)){const je=Q-X,$e=J-K;for(const st of I)st.position={x:st.position.x-je+z[0]*(F-T),y:st.position.y-$e+z[1]*($-j)},H.push(st)}if((W||te)&&(Y.width=W&&(!c.resizeDirection||c.resizeDirection==="horizontal")?F:w.width,Y.height=te&&(!c.resizeDirection||c.resizeDirection==="vertical")?$:w.height,w.width=Y.width,w.height=Y.height),R&&E.expandParent){const je=z[0]*(Y.width??0);Y.x&&Y.x<je&&(w.x=je,k.x=k.x-(Y.x-je));const $e=z[1]*(Y.height??0);Y.y&&Y.y<$e&&(w.y=$e,k.y=k.y-(Y.y-$e))}const be=EI({width:w.width,prevWidth:T,height:w.height,prevHeight:j,affectsX:c.controlDirection.affectsX,affectsY:c.controlDirection.affectsY}),we={...w,direction:be};(S==null?void 0:S(L,we))!==!1&&(Z=!0,_==null||_(L,we),a(Y,H))}).on("end",L=>{Z&&(N==null||N(L,{...w}),s==null||s({...w}),Z=!1)});o.call(D)}function f(){o.on(".drag",null)}return{update:d,destroy:f}}var Em={exports:{}},Nm={},Sm={exports:{}},km={};/**
+ * @license React
+ * use-sync-external-store-shim.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var g1;function CI(){if(g1)return km;g1=1;var e=Co();function t(p,y){return p===y&&(p!==0||1/p===1/y)||p!==p&&y!==y}var r=typeof Object.is=="function"?Object.is:t,a=e.useState,s=e.useEffect,o=e.useLayoutEffect,c=e.useDebugValue;function d(p,y){var x=y(),_=a({inst:{value:x,getSnapshot:y}}),N=_[0].inst,S=_[1];return o(function(){N.value=x,N.getSnapshot=y,f(N)&&S({inst:N})},[p,x,y]),s(function(){return f(N)&&S({inst:N}),p(function(){f(N)&&S({inst:N})})},[p]),c(x),x}function f(p){var y=p.getSnapshot;p=p.value;try{var x=y();return!r(p,x)}catch{return!0}}function h(p,y){return y()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:d;return km.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,km}var b1;function AI(){return b1||(b1=1,Sm.exports=CI()),Sm.exports}/**
+ * @license React
+ * use-sync-external-store-shim/with-selector.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var x1;function MI(){if(x1)return Nm;x1=1;var e=Co(),t=AI();function r(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}var a=typeof Object.is=="function"?Object.is:r,s=t.useSyncExternalStore,o=e.useRef,c=e.useEffect,d=e.useMemo,f=e.useDebugValue;return Nm.useSyncExternalStoreWithSelector=function(h,m,p,y,x){var _=o(null);if(_.current===null){var N={hasValue:!1,value:null};_.current=N}else N=_.current;_=d(function(){function w(R){if(!k){if(k=!0,E=R,R=y(R),x!==void 0&&N.hasValue){var U=N.value;if(x(U,R))return M=U}return M=R}if(U=M,a(E,R))return U;var B=y(R);return x!==void 0&&x(U,B)?(E=R,U):(E=R,M=B)}var k=!1,E,M,I=p===void 0?null:p;return[function(){return w(m())},I===null?void 0:function(){return w(I())}]},[m,p,y,x]);var S=s(h,_[0],_[1]);return c(function(){N.hasValue=!0,N.value=S},[S]),f(S),S},Nm}var y1;function OI(){return y1||(y1=1,Em.exports=MI()),Em.exports}var RI=OI();const DI=To(RI),jI={},v1=e=>{let t;const r=new Set,a=(m,p)=>{const y=typeof m=="function"?m(t):m;if(!Object.is(y,t)){const x=t;t=p??(typeof y!="object"||y===null)?y:Object.assign({},t,y),r.forEach(_=>_(t,x))}},s=()=>t,f={setState:a,getState:s,getInitialState:()=>h,subscribe:m=>(r.add(m),()=>r.delete(m)),destroy:()=>{(jI?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},h=t=e(a,s,f);return f},LI=e=>e?v1(e):v1,{useDebugValue:zI}=ua,{useSyncExternalStoreWithSelector:II}=DI,BI=e=>e;function fN(e,t=BI,r){const a=II(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return zI(a),a}const _1=(e,t)=>{const r=LI(e),a=(s,o=t)=>fN(r,s,o);return Object.assign(a,r),a},UI=(e,t)=>e?_1(e,t):_1;function qt(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[a,s]of e)if(!Object.is(s,t.get(a)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const a of e)if(!t.has(a))return!1;return!0}const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(const a of r)if(!Object.prototype.hasOwnProperty.call(t,a)||!Object.is(e[a],t[a]))return!1;return!0}N_();const td=ee.createContext(null),HI=td.Provider,hN=jr.error001("react");function dt(e,t){const r=ee.useContext(td);if(r===null)throw new Error(hN);return fN(r,e,t)}function Lt(){const e=ee.useContext(td);if(e===null)throw new Error(hN);return ee.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const w1={display:"none"},$I={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},mN="react-flow__node-desc",pN="react-flow__edge-desc",qI="react-flow__aria-live",PI=e=>e.ariaLiveMessage,FI=e=>e.ariaLabelConfig;function GI({rfId:e}){const t=dt(PI);return g.jsx("div",{id:`${qI}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:$I,children:t})}function VI({rfId:e,disableKeyboardA11y:t}){const r=dt(FI);return g.jsxs(g.Fragment,{children:[g.jsx("div",{id:`${mN}-${e}`,style:w1,children:t?r["node.a11yDescription.default"]:r["node.a11yDescription.keyboardDisabled"]}),g.jsx("div",{id:`${pN}-${e}`,style:w1,children:r["edge.a11yDescription.default"]}),!t&&g.jsx(GI,{rfId:e})]})}const nd=ee.forwardRef(({position:e="top-left",children:t,className:r,style:a,...s},o)=>{const c=`${e}`.split("-");return g.jsx("div",{className:ln(["react-flow__panel",r,...c]),style:a,ref:o,...s,children:t})});nd.displayName="Panel";const E1="https://reactflow.dev?utm_source=attribution";function YI({proOptions:e,position:t="bottom-right"}){return e!=null&&e.hideAttribution?null:g.jsx(nd,{position:t,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${E1}`,children:g.jsx("a",{href:E1,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const XI=e=>{const t=[],r=[];for(const[,a]of e.nodeLookup)a.selected&&t.push(a.internals.userNode);for(const[,a]of e.edgeLookup)a.selected&&r.push(a);return{selectedNodes:t,selectedEdges:r}},uu=e=>e.id;function KI(e,t){return qt(e.selectedNodes.map(uu),t.selectedNodes.map(uu))&&qt(e.selectedEdges.map(uu),t.selectedEdges.map(uu))}function ZI({onSelectionChange:e}){const t=Lt(),{selectedNodes:r,selectedEdges:a}=dt(XI,KI);return ee.useEffect(()=>{const s={nodes:r,edges:a};e==null||e(s),t.getState().onSelectionChangeHandlers.forEach(o=>o(s))},[r,a,e]),null}const QI=e=>!!e.onSelectionChangeHandlers;function WI({onSelectionChange:e}){const t=dt(QI);return e||t?g.jsx(ZI,{onSelectionChange:e}):null}const gN=[0,0],JI={x:0,y:0,zoom:1},e8=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],N1=[...e8,"rfId"],t8=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges}),S1={translateExtent:wo,nodeOrigin:gN,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function n8(e){const{setNodes:t,setEdges:r,setMinZoom:a,setMaxZoom:s,setTranslateExtent:o,setNodeExtent:c,reset:d,setDefaultNodesAndEdges:f}=dt(t8,qt),h=Lt();ee.useEffect(()=>(f(e.defaultNodes,e.defaultEdges),()=>{m.current=S1,d()}),[]);const m=ee.useRef(S1);return ee.useEffect(()=>{for(const p of N1){const y=e[p],x=m.current[p];y!==x&&(typeof e[p]>"u"||(p==="nodes"?t(y):p==="edges"?r(y):p==="minZoom"?a(y):p==="maxZoom"?s(y):p==="translateExtent"?o(y):p==="nodeExtent"?c(y):p==="ariaLabelConfig"?h.setState({ariaLabelConfig:Hz(y)}):p==="fitView"?h.setState({fitViewQueued:y}):p==="fitViewOptions"?h.setState({fitViewOptions:y}):h.setState({[p]:y})))}m.current=e},N1.map(p=>e[p])),null}function k1(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function r8(e){var a;const[t,r]=ee.useState(e==="system"?null:e);return ee.useEffect(()=>{if(e!=="system"){r(e);return}const s=k1(),o=()=>r(s!=null&&s.matches?"dark":"light");return o(),s==null||s.addEventListener("change",o),()=>{s==null||s.removeEventListener("change",o)}},[e]),t!==null?t:(a=k1())!=null&&a.matches?"dark":"light"}const T1=typeof document<"u"?document:null;function ko(e=null,t={target:T1,actInsideInputWithModifier:!0}){const[r,a]=ee.useState(!1),s=ee.useRef(!1),o=ee.useRef(new Set([])),[c,d]=ee.useMemo(()=>{if(e!==null){const h=(Array.isArray(e)?e:[e]).filter(p=>typeof p=="string").map(p=>p.replace("+",`
+`).replace(`
+
+`,`
++`).split(`
+`)),m=h.reduce((p,y)=>p.concat(...y),[]);return[h,m]}return[[],[]]},[e]);return ee.useEffect(()=>{const f=(t==null?void 0:t.target)??T1,h=(t==null?void 0:t.actInsideInputWithModifier)??!0;if(e!==null){const m=x=>{var S,w;if(s.current=x.ctrlKey||x.metaKey||x.shiftKey||x.altKey,(!s.current||s.current&&!h)&&KE(x))return!1;const N=A1(x.code,d);if(o.current.add(x[N]),C1(c,o.current,!1)){const k=((w=(S=x.composedPath)==null?void 0:S.call(x))==null?void 0:w[0])||x.target,E=(k==null?void 0:k.nodeName)==="BUTTON"||(k==null?void 0:k.nodeName)==="A";t.preventDefault!==!1&&(s.current||!E)&&x.preventDefault(),a(!0)}},p=x=>{const _=A1(x.code,d);C1(c,o.current,!0)?(a(!1),o.current.clear()):o.current.delete(x[_]),x.key==="Meta"&&o.current.clear(),s.current=!1},y=()=>{o.current.clear(),a(!1)};return f==null||f.addEventListener("keydown",m),f==null||f.addEventListener("keyup",p),window.addEventListener("blur",y),window.addEventListener("contextmenu",y),()=>{f==null||f.removeEventListener("keydown",m),f==null||f.removeEventListener("keyup",p),window.removeEventListener("blur",y),window.removeEventListener("contextmenu",y)}}},[e,a]),r}function C1(e,t,r){return e.filter(a=>r||a.length===t.size).some(a=>a.every(s=>t.has(s)))}function A1(e,t){return t.includes(e)?"code":"key"}const i8=()=>{const e=Lt();return ee.useMemo(()=>({zoomIn:async t=>{const{panZoom:r}=e.getState();return r?r.scaleBy(1.2,t):!1},zoomOut:async t=>{const{panZoom:r}=e.getState();return r?r.scaleBy(1/1.2,t):!1},zoomTo:async(t,r)=>{const{panZoom:a}=e.getState();return a?a.scaleTo(t,r):!1},getZoom:()=>e.getState().transform[2],setViewport:async(t,r)=>{const{transform:[a,s,o],panZoom:c}=e.getState();return c?(await c.setViewport({x:t.x??a,y:t.y??s,zoom:t.zoom??o},r),!0):!1},getViewport:()=>{const[t,r,a]=e.getState().transform;return{x:t,y:r,zoom:a}},setCenter:async(t,r,a)=>e.getState().setCenter(t,r,a),fitBounds:async(t,r)=>{const{width:a,height:s,minZoom:o,maxZoom:c,panZoom:d}=e.getState(),f=tg(t,a,s,o,c,(r==null?void 0:r.padding)??.1);return d?(await d.setViewport(f,{duration:r==null?void 0:r.duration,ease:r==null?void 0:r.ease,interpolate:r==null?void 0:r.interpolate}),!0):!1},screenToFlowPosition:(t,r={})=>{const{transform:a,snapGrid:s,snapToGrid:o,domNode:c}=e.getState();if(!c)return t;const{x:d,y:f}=c.getBoundingClientRect(),h={x:t.x-d,y:t.y-f},m=r.snapGrid??s,p=r.snapToGrid??o;return Bo(h,a,p,m)},flowToScreenPosition:t=>{const{transform:r,domNode:a}=e.getState();if(!a)return t;const{x:s,y:o}=a.getBoundingClientRect(),c=Ws(t,r);return{x:c.x+s,y:c.y+o}}}),[])};function bN(e,t){const r=[],a=new Map,s=[];for(const o of e)if(o.type==="add"){s.push(o);continue}else if(o.type==="remove"||o.type==="replace")a.set(o.id,[o]);else{const c=a.get(o.id);c?c.push(o):a.set(o.id,[o])}for(const o of t){const c=a.get(o.id);if(!c){r.push(o);continue}if(c[0].type==="remove")continue;if(c[0].type==="replace"){r.push({...c[0].item});continue}const d={...o};for(const f of c)a8(f,d);r.push(d)}return s.length&&s.forEach(o=>{o.index!==void 0?r.splice(o.index,0,{...o.item}):r.push({...o.item})}),r}function a8(e,t){switch(e.type){case"select":{t.selected=e.selected;break}case"position":{typeof e.position<"u"&&(t.position=e.position),typeof e.dragging<"u"&&(t.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(t.measured={...e.dimensions},e.setAttributes&&((e.setAttributes===!0||e.setAttributes==="width")&&(t.width=e.dimensions.width),(e.setAttributes===!0||e.setAttributes==="height")&&(t.height=e.dimensions.height))),typeof e.resizing=="boolean"&&(t.resizing=e.resizing);break}}}function xN(e,t){return bN(e,t)}function yN(e,t){return bN(e,t)}function Ua(e,t){return{id:e,type:"select",selected:t}}function Hs(e,t=new Set,r=!1){const a=[];for(const[s,o]of e){const c=t.has(s);!(o.selected===void 0&&!c)&&o.selected!==c&&(r&&(o.selected=c),a.push(Ua(o.id,c)))}return a}function M1({items:e=[],lookup:t}){var s;const r=[],a=new Map(e.map(o=>[o.id,o]));for(const[o,c]of e.entries()){const d=t.get(c.id),f=((s=d==null?void 0:d.internals)==null?void 0:s.userNode)??d;f!==void 0&&f!==c&&r.push({id:c.id,item:c,type:"replace"}),f===void 0&&r.push({item:c,type:"add",index:o})}for(const[o]of t)a.get(o)===void 0&&r.push({id:o,type:"remove"});return r}function O1(e){return{id:e.id,type:"remove"}}const s8=GE();function l8(e,t,r={}){return Vz(e,t,{...r,onError:r.onError??s8})}const R1=e=>Oz(e),o8=e=>HE(e);function vN(e){return ee.forwardRef(e)}const _N=typeof window<"u"?ee.useLayoutEffect:ee.useEffect;function D1(e){const[t,r]=ee.useState(BigInt(0)),[a]=ee.useState(()=>c8(()=>r(s=>s+BigInt(1))));return _N(()=>{const s=a.get();s.length&&(e(s),a.reset())},[t]),a}function c8(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:r=>{t.push(r),e()}}}const wN=ee.createContext(null);function u8({children:e}){const t=Lt(),r=ee.useCallback(d=>{const{nodes:f=[],setNodes:h,hasDefaultNodes:m,onNodesChange:p,nodeLookup:y,fitViewQueued:x,onNodesChangeMiddlewareMap:_}=t.getState();let N=f;for(const w of d)N=typeof w=="function"?w(N):w;let S=M1({items:N,lookup:y});for(const w of _.values())S=w(S);m&&h(N),S.length>0?p==null||p(S):x&&window.requestAnimationFrame(()=>{const{fitViewQueued:w,nodes:k,setNodes:E}=t.getState();w&&E(k)})},[]),a=D1(r),s=ee.useCallback(d=>{const{edges:f=[],setEdges:h,hasDefaultEdges:m,onEdgesChange:p,edgeLookup:y}=t.getState();let x=f;for(const _ of d)x=typeof _=="function"?_(x):_;m?h(x):p&&p(M1({items:x,lookup:y}))},[]),o=D1(s),c=ee.useMemo(()=>({nodeQueue:a,edgeQueue:o}),[]);return g.jsx(wN.Provider,{value:c,children:e})}function d8(){const e=ee.useContext(wN);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const f8=e=>!!e.panZoom;function Uo(){const e=i8(),t=Lt(),r=d8(),a=dt(f8),s=ee.useMemo(()=>{const o=p=>t.getState().nodeLookup.get(p),c=p=>{r.nodeQueue.push(p)},d=p=>{r.edgeQueue.push(p)},f=p=>{var w,k;const{nodeLookup:y,nodeOrigin:x}=t.getState(),_=R1(p)?p:y.get(p.id),N=_.parentId?YE(_.position,_.measured,_.parentId,y,x):_.position,S={..._,position:N,width:((w=_.measured)==null?void 0:w.width)??_.width,height:((k=_.measured)==null?void 0:k.height)??_.height};return No(S)},h=(p,y,x={replace:!1})=>{c(_=>_.map(N=>{if(N.id===p){const S=typeof y=="function"?y(N):y;return x.replace&&R1(S)?S:{...N,...S}}return N}))},m=(p,y,x={replace:!1})=>{d(_=>_.map(N=>{if(N.id===p){const S=typeof y=="function"?y(N):y;return x.replace&&o8(S)?S:{...N,...S}}return N}))};return{getNodes:()=>t.getState().nodes.map(p=>({...p})),getNode:p=>{var y;return(y=o(p))==null?void 0:y.internals.userNode},getInternalNode:o,getEdges:()=>{const{edges:p=[]}=t.getState();return p.map(y=>({...y}))},getEdge:p=>t.getState().edgeLookup.get(p),setNodes:c,setEdges:d,addNodes:p=>{const y=Array.isArray(p)?p:[p];r.nodeQueue.push(x=>[...x,...y])},addEdges:p=>{const y=Array.isArray(p)?p:[p];r.edgeQueue.push(x=>[...x,...y])},toObject:()=>{const{nodes:p=[],edges:y=[],transform:x}=t.getState(),[_,N,S]=x;return{nodes:p.map(w=>({...w})),edges:y.map(w=>({...w})),viewport:{x:_,y:N,zoom:S}}},deleteElements:async({nodes:p=[],edges:y=[]})=>{const{nodes:x,edges:_,onNodesDelete:N,onEdgesDelete:S,triggerNodeChanges:w,triggerEdgeChanges:k,onDelete:E,onBeforeDelete:M}=t.getState(),{nodes:I,edges:R}=await zz({nodesToRemove:p,edgesToRemove:y,nodes:x,edges:_,onBeforeDelete:M}),U=R.length>0,B=I.length>0;if(U){const Z=R.map(O1);S==null||S(R),k(Z)}if(B){const Z=I.map(O1);N==null||N(I),w(Z)}return(B||U)&&(E==null||E({nodes:I,edges:R})),{deletedNodes:I,deletedEdges:R}},getIntersectingNodes:(p,y=!0,x)=>{const _=r1(p),N=_?p:f(p),S=x!==void 0;return N?(x||t.getState().nodes).filter(w=>{const k=t.getState().nodeLookup.get(w.id);if(k&&!_&&(w.id===p.id||!k.internals.positionAbsolute))return!1;const E=No(S?w:k),M=ju(E,N);return y&&M>0||M>=E.width*E.height||M>=N.width*N.height}):[]},isNodeIntersecting:(p,y,x=!0)=>{const N=r1(p)?p:f(p);if(!N)return!1;const S=ju(N,y);return x&&S>0||S>=y.width*y.height||S>=N.width*N.height},updateNode:h,updateNodeData:(p,y,x={replace:!1})=>{h(p,_=>{const N=typeof y=="function"?y(_):y;return x.replace?{..._,data:N}:{..._,data:{..._.data,...N}}},x)},updateEdge:m,updateEdgeData:(p,y,x={replace:!1})=>{m(p,_=>{const N=typeof y=="function"?y(_):y;return x.replace?{..._,data:N}:{..._,data:{..._.data,...N}}},x)},getNodesBounds:p=>{const{nodeLookup:y,nodeOrigin:x}=t.getState();return Rz(p,{nodeLookup:y,nodeOrigin:x})},getHandleConnections:({type:p,id:y,nodeId:x})=>{var _;return Array.from(((_=t.getState().connectionLookup.get(`${x}-${p}${y?`-${y}`:""}`))==null?void 0:_.values())??[])},getNodeConnections:({type:p,handleId:y,nodeId:x})=>{var _;return Array.from(((_=t.getState().connectionLookup.get(`${x}${p?y?`-${p}-${y}`:`-${p}`:""}`))==null?void 0:_.values())??[])},fitView:async p=>{const y=t.getState().fitViewResolver??Uz();return t.setState({fitViewQueued:!0,fitViewOptions:p,fitViewResolver:y}),r.nodeQueue.push(x=>[...x]),y.promise}}},[]);return ee.useMemo(()=>({...s,...e,viewportInitialized:a}),[a])}const j1=e=>e.selected,h8=typeof window<"u"?window:void 0;function m8({deleteKeyCode:e,multiSelectionKeyCode:t}){const r=Lt(),{deleteElements:a}=Uo(),s=ko(e,{actInsideInputWithModifier:!1}),o=ko(t,{target:h8});ee.useEffect(()=>{if(s){const{edges:c,nodes:d}=r.getState();a({nodes:d.filter(j1),edges:c.filter(j1)}),r.setState({nodesSelectionActive:!1})}},[s]),ee.useEffect(()=>{r.setState({multiSelectionActive:o})},[o])}function p8(e){const t=Lt();ee.useEffect(()=>{const r=()=>{var s,o,c,d;if(!e.current||!(((o=(s=e.current).checkVisibility)==null?void 0:o.call(s))??!0))return!1;const a=ng(e.current);(a.height===0||a.width===0)&&((d=(c=t.getState()).onError)==null||d.call(c,"004",jr.error004())),t.setState({width:a.width||500,height:a.height||500})};if(e.current){r(),window.addEventListener("resize",r);const a=new ResizeObserver(()=>r());return a.observe(e.current),()=>{window.removeEventListener("resize",r),a&&e.current&&a.unobserve(e.current)}}},[])}const rd={position:"absolute",width:"100%",height:"100%",top:0,left:0},g8=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function b8({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:r=!0,panOnScroll:a=!1,panOnScrollSpeed:s=.5,panOnScrollMode:o=Pa.Free,zoomOnDoubleClick:c=!0,panOnDrag:d=!0,defaultViewport:f,translateExtent:h,minZoom:m,maxZoom:p,zoomActivationKeyCode:y,preventScrolling:x=!0,children:_,noWheelClassName:N,noPanClassName:S,onViewportChange:w,isControlledViewport:k,paneClickDistance:E,selectionOnDrag:M}){const I=Lt(),R=ee.useRef(null),{userSelectionActive:U,lib:B,connectionInProgress:Z}=dt(g8,qt),D=ko(y),L=ee.useRef();p8(R);const G=ee.useCallback(V=>{w==null||w({x:V[0],y:V[1],zoom:V[2]}),k||I.setState({transform:V})},[w,k]);return ee.useEffect(()=>{if(R.current){L.current=wI({domNode:R.current,minZoom:m,maxZoom:p,translateExtent:h,viewport:f,onDraggingChange:O=>I.setState(H=>H.paneDragging===O?H:{paneDragging:O}),onPanZoomStart:(O,H)=>{const{onViewportChangeStart:X,onMoveStart:K}=I.getState();K==null||K(O,H),X==null||X(H)},onPanZoom:(O,H)=>{const{onViewportChange:X,onMove:K}=I.getState();K==null||K(O,H),X==null||X(H)},onPanZoomEnd:(O,H)=>{const{onViewportChangeEnd:X,onMoveEnd:K}=I.getState();K==null||K(O,H),X==null||X(H)}});const{x:V,y:A,zoom:q}=L.current.getViewport();return I.setState({panZoom:L.current,transform:[V,A,q],domNode:R.current.closest(".react-flow")}),()=>{var O;(O=L.current)==null||O.destroy()}}},[]),ee.useEffect(()=>{var V;(V=L.current)==null||V.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:r,panOnScroll:a,panOnScrollSpeed:s,panOnScrollMode:o,zoomOnDoubleClick:c,panOnDrag:d,zoomActivationKeyPressed:D,preventScrolling:x,noPanClassName:S,userSelectionActive:U,noWheelClassName:N,lib:B,onTransformChange:G,connectionInProgress:Z,selectionOnDrag:M,paneClickDistance:E})},[e,t,r,a,s,o,c,d,D,x,S,U,N,B,G,Z,M,E]),g.jsx("div",{className:"react-flow__renderer",ref:R,style:rd,children:_})}const x8=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function y8(){const{userSelectionActive:e,userSelectionRect:t}=dt(x8,qt);return e&&t?g.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}const Tm=(e,t)=>r=>{r.target===t.current&&(e==null||e(r))},v8=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,dragging:e.paneDragging,panBy:e.panBy,autoPanSpeed:e.autoPanSpeed});function _8({isSelecting:e,selectionKeyPressed:t,selectionMode:r=Eo.Full,panOnDrag:a,autoPanOnSelection:s,paneClickDistance:o,selectionOnDrag:c,onSelectionStart:d,onSelectionEnd:f,onPaneClick:h,onPaneContextMenu:m,onPaneScroll:p,onPaneMouseEnter:y,onPaneMouseMove:x,onPaneMouseLeave:_,children:N}){const S=ee.useRef(0),w=Lt(),{userSelectionActive:k,elementsSelectable:E,dragging:M,panBy:I,autoPanSpeed:R}=dt(v8,qt),U=E&&(e||k),B=ee.useRef(null),Z=ee.useRef(),D=ee.useRef(new Set),L=ee.useRef(new Set),G=ee.useRef(!1),V=ee.useRef(!1),A=ee.useRef({x:0,y:0}),q=ee.useRef(!1),O=W=>{if(V.current||G.current||w.getState().connection.inProgress){V.current=!1,G.current=!1;return}h==null||h(W),w.getState().resetSelectedElements(),w.setState({nodesSelectionActive:!1})},H=W=>{if(Array.isArray(a)&&(a!=null&&a.includes(2))){W.preventDefault();return}m==null||m(W)},X=p?W=>p(W):void 0,K=W=>{V.current&&(W.stopPropagation(),V.current=!1)},T=W=>{var st,Rt;const{domNode:te,transform:ce}=w.getState();if(Z.current=te==null?void 0:te.getBoundingClientRect(),!Z.current)return;const fe=W.target===B.current;if(!fe&&!!W.target.closest(".nokey")||!e||!(c&&fe||t)||W.button!==0||!W.isPrimary)return;(Rt=(st=W.target)==null?void 0:st.setPointerCapture)==null||Rt.call(st,W.pointerId),V.current=!1;const{x:Ne,y:je}=Rr(W.nativeEvent,Z.current),$e=Bo({x:Ne,y:je},ce);w.setState({userSelectionRect:{width:0,height:0,startX:$e.x,startY:$e.y,x:Ne,y:je}}),fe||(W.stopPropagation(),W.preventDefault())};function j(W,te){const{userSelectionRect:ce}=w.getState();if(!ce)return;const{transform:fe,nodeLookup:be,edgeLookup:we,connectionLookup:Ne,triggerNodeChanges:je,triggerEdgeChanges:$e,defaultEdgeOptions:st}=w.getState(),Rt={x:ce.startX,y:ce.startY},{x:Yt,y:Pt}=Ws(Rt,fe),Xt={startX:Rt.x,startY:Rt.y,x:W<Yt?W:Yt,y:te<Pt?te:Pt,width:Math.abs(W-Yt),height:Math.abs(te-Pt)},Yn=D.current,wn=L.current;D.current=new Set(Jp(be,Xt,fe,r===Eo.Partial,!0).map(It=>It.id)),L.current=new Set;const ct=(st==null?void 0:st.selectable)??!0;for(const It of D.current){const ue=Ne.get(It);if(ue)for(const{edgeId:xe}of ue.values()){const Oe=we.get(xe);Oe&&(Oe.selectable??ct)&&L.current.add(xe)}}if(!i1(Yn,D.current)){const It=Hs(be,D.current,!0);je(It)}if(!i1(wn,L.current)){const It=Hs(we,L.current);$e(It)}w.setState({userSelectionRect:Xt,userSelectionActive:!0,nodesSelectionActive:!1})}function Y(){if(!s||!Z.current)return;const[W,te]=eg(A.current,Z.current,R);I({x:W,y:te}).then(ce=>{if(!V.current||!ce){S.current=requestAnimationFrame(Y);return}const{x:fe,y:be}=A.current;j(fe,be),S.current=requestAnimationFrame(Y)})}const z=()=>{cancelAnimationFrame(S.current),S.current=0,q.current=!1};ee.useEffect(()=>()=>z(),[]);const F=W=>{const{userSelectionRect:te,transform:ce,resetSelectedElements:fe}=w.getState();if(!Z.current||!te)return;const{x:be,y:we}=Rr(W.nativeEvent,Z.current);A.current={x:be,y:we};const Ne=Ws({x:te.startX,y:te.startY},ce);if(!V.current){const je=t?0:o;if(Math.hypot(be-Ne.x,we-Ne.y)<=je)return;fe(),d==null||d(W)}V.current=!0,q.current||(Y(),q.current=!0),j(be,we)},$=W=>{var te,ce;if(!U){W.target===B.current&&w.getState().connection.inProgress&&(G.current=!0);return}W.button===0&&((ce=(te=W.target)==null?void 0:te.releasePointerCapture)==null||ce.call(te,W.pointerId),!k&&W.target===B.current&&w.getState().userSelectionRect&&(O==null||O(W)),w.setState({userSelectionActive:!1,userSelectionRect:null}),V.current&&(f==null||f(W),w.setState({nodesSelectionActive:D.current.size>0})),z())},Q=W=>{var te,ce;(ce=(te=W.target)==null?void 0:te.releasePointerCapture)==null||ce.call(te,W.pointerId),z()},J=a===!0||Array.isArray(a)&&a.includes(0);return g.jsxs("div",{className:ln(["react-flow__pane",{draggable:J,dragging:M,selection:e}]),onClick:U?void 0:Tm(O,B),onContextMenu:Tm(H,B),onWheel:Tm(X,B),onPointerEnter:U?void 0:y,onPointerMove:U?F:x,onPointerUp:$,onPointerCancel:U?Q:void 0,onPointerDownCapture:U?T:void 0,onClickCapture:U?K:void 0,onPointerLeave:_,ref:B,style:rd,children:[N,g.jsx(y8,{})]})}function dp({id:e,store:t,unselect:r=!1,nodeRef:a}){const{addSelectedNodes:s,unselectNodesAndEdges:o,multiSelectionActive:c,nodeLookup:d,onError:f}=t.getState(),h=d.get(e);if(!h){f==null||f("012",jr.error012(e));return}t.setState({nodesSelectionActive:!1}),h.selected?(r||h.selected&&c)&&(o({nodes:[h],edges:[]}),requestAnimationFrame(()=>{var m;return(m=a==null?void 0:a.current)==null?void 0:m.blur()})):s([e])}function EN({nodeRef:e,disabled:t=!1,noDragClassName:r,handleSelector:a,nodeId:s,isSelectable:o,nodeClickDistance:c}){const d=Lt(),[f,h]=ee.useState(!1),m=ee.useRef();return ee.useEffect(()=>{if(!t)return m.current=oI({getStoreItems:()=>d.getState(),onNodeMouseDown:p=>{dp({id:p,store:d,nodeRef:e})},onDragStart:()=>{h(!0)},onDragStop:()=>{h(!1)}}),()=>{var p;(p=m.current)==null||p.destroy(),m.current=void 0}},[t,d,e]),ee.useEffect(()=>{t||!e.current||!m.current||m.current.update({noDragClassName:r,handleSelector:a,domNode:e.current,isSelectable:o,nodeId:s,nodeClickDistance:c})},[r,a,t,o,e,s,c]),f}const w8=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function NN(){const e=Lt();return ee.useCallback(r=>{const{nodeExtent:a,snapToGrid:s,snapGrid:o,nodesDraggable:c,onError:d,updateNodePositions:f,nodeLookup:h,nodeOrigin:m}=e.getState(),p=new Map,y=w8(c),x=s?o[0]:5,_=s?o[1]:5,N=r.direction.x*x*r.factor,S=r.direction.y*_*r.factor;for(const[,w]of h){if(!y(w))continue;let k={x:w.internals.positionAbsolute.x+N,y:w.internals.positionAbsolute.y+S};s&&(k=Io(k,o));const{position:E,positionAbsolute:M}=$E({nodeId:w.id,nextPosition:k,nodeLookup:h,nodeExtent:a,nodeOrigin:m,onError:d});w.position=E,w.internals.positionAbsolute=M,p.set(w.id,w)}f(p)},[])}const og=ee.createContext(null),E8=og.Provider;og.Consumer;const SN=()=>ee.useContext(og),N8=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),kN=ee.createContext(null);function S8({children:e}){const t=dt(N8,qt);return g.jsx(kN.Provider,{value:t,children:e})}function k8(){const e=ee.useContext(kN);if(!e)throw new Error("useHandleConfig must be used within a HandleConfigProvider");return e}const T8={connectingFrom:!1,connectingTo:!1,clickConnecting:!1,isPossibleEndHandle:!0,connectionInProcess:!1,clickConnectionInProcess:!1,valid:!1},C8=(e,t,r)=>a=>{const{connectionClickStartHandle:s,connectionMode:o,connection:c}=a,{fromHandle:d,toHandle:f,isValid:h}=c;if(!d&&!s)return T8;const m=(f==null?void 0:f.nodeId)===e&&(f==null?void 0:f.id)===t&&(f==null?void 0:f.type)===r;return{connectingFrom:(d==null?void 0:d.nodeId)===e&&(d==null?void 0:d.id)===t&&(d==null?void 0:d.type)===r,connectingTo:m,clickConnecting:(s==null?void 0:s.nodeId)===e&&(s==null?void 0:s.id)===t&&(s==null?void 0:s.type)===r,isPossibleEndHandle:o===Zs.Strict?(d==null?void 0:d.type)!==r:e!==(d==null?void 0:d.nodeId)||t!==(d==null?void 0:d.id),connectionInProcess:!!d,clickConnectionInProcess:!!s,valid:m&&h}};function A8({type:e="source",position:t=ze.Top,isValidConnection:r,isConnectable:a=!0,isConnectableStart:s=!0,isConnectableEnd:o=!0,id:c,onConnect:d,children:f,className:h,onMouseDown:m,onTouchStart:p,...y},x){var q,O;const _=c||null,N=e==="target",S=Lt(),w=SN(),{connectOnClick:k,noPanClassName:E,rfId:M}=k8(),{connectingFrom:I,connectingTo:R,clickConnecting:U,isPossibleEndHandle:B,connectionInProcess:Z,clickConnectionInProcess:D,valid:L}=dt(C8(w,_,e),qt);w||(O=(q=S.getState()).onError)==null||O.call(q,"010",jr.error010());const G=H=>{const{defaultEdgeOptions:X,onConnect:K,hasDefaultEdges:T}=S.getState(),j={...X,...H};if(T){const{edges:Y,setEdges:z,onError:F}=S.getState();z(l8(j,Y,{onError:F}))}K==null||K(j),d==null||d(j)},V=H=>{if(!w)return;const X=ZE(H.nativeEvent);if(s&&(X&&H.button===0||!X)){const K=S.getState();up.onPointerDown(H.nativeEvent,{handleDomNode:H.currentTarget,autoPanOnConnect:K.autoPanOnConnect,connectionMode:K.connectionMode,connectionRadius:K.connectionRadius,domNode:K.domNode,nodeLookup:K.nodeLookup,lib:K.lib,isTarget:N,handleId:_,nodeId:w,flowId:K.rfId,panBy:K.panBy,cancelConnection:K.cancelConnection,onConnectStart:K.onConnectStart,onConnectEnd:(...T)=>{var j,Y;return(Y=(j=S.getState()).onConnectEnd)==null?void 0:Y.call(j,...T)},updateConnection:K.updateConnection,onConnect:G,isValidConnection:r||((...T)=>{var j,Y;return((Y=(j=S.getState()).isValidConnection)==null?void 0:Y.call(j,...T))??!0}),getTransform:()=>S.getState().transform,getFromHandle:()=>S.getState().connection.fromHandle,autoPanSpeed:K.autoPanSpeed,dragThreshold:K.connectionDragThreshold})}X?m==null||m(H):p==null||p(H)},A=H=>{const{onClickConnectStart:X,onClickConnectEnd:K,connectionClickStartHandle:T,connectionMode:j,isValidConnection:Y,lib:z,rfId:F,nodeLookup:$,connection:Q}=S.getState();if(!w||!T&&!s)return;if(!T){X==null||X(H.nativeEvent,{nodeId:w,handleId:_,handleType:e}),S.setState({connectionClickStartHandle:{nodeId:w,type:e,id:_}});return}const J=XE(H.target),W=r||Y,{connection:te,isValid:ce}=up.isValid(H.nativeEvent,{handle:{nodeId:w,id:_,type:e},connectionMode:j,fromNodeId:T.nodeId,fromHandleId:T.id||null,fromType:T.type,isValidConnection:W,flowId:F,doc:J,lib:z,nodeLookup:$});ce&&te&&G(te);const fe=structuredClone(Q);delete fe.inProgress,fe.toPosition=fe.toHandle?fe.toHandle.position:null,K==null||K(H,fe),S.setState({connectionClickStartHandle:null})};return g.jsx("div",{"data-handleid":_,"data-nodeid":w,"data-handlepos":t,"data-id":`${M}-${w}-${_}-${e}`,className:ln(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",E,h,{source:!N,target:N,connectable:a,connectablestart:s,connectableend:o,clickconnecting:U,connectingfrom:I,connectingto:R,valid:L,connectionindicator:a&&(!Z||B)&&(Z||D?o:s)}]),onMouseDown:V,onTouchStart:V,onClick:k?A:void 0,ref:x,...y,children:f})}const el=ee.memo(vN(A8));function M8({data:e,isConnectable:t,sourcePosition:r=ze.Bottom}){return g.jsxs(g.Fragment,{children:[e==null?void 0:e.label,g.jsx(el,{type:"source",position:r,isConnectable:t})]})}function O8({data:e,isConnectable:t,targetPosition:r=ze.Top,sourcePosition:a=ze.Bottom}){return g.jsxs(g.Fragment,{children:[g.jsx(el,{type:"target",position:r,isConnectable:t}),e==null?void 0:e.label,g.jsx(el,{type:"source",position:a,isConnectable:t})]})}function R8(){return null}function D8({data:e,isConnectable:t,targetPosition:r=ze.Top}){return g.jsxs(g.Fragment,{children:[g.jsx(el,{type:"target",position:r,isConnectable:t}),e==null?void 0:e.label]})}const Lu={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},L1={input:M8,default:O8,output:D8,group:R8};function j8(e){var t,r,a,s;return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??((t=e.style)==null?void 0:t.width),height:e.height??e.initialHeight??((r=e.style)==null?void 0:r.height)}:{width:e.width??((a=e.style)==null?void 0:a.width),height:e.height??((s=e.style)==null?void 0:s.height)}}const L8=e=>{const{width:t,height:r,x:a,y:s}=zo(e.nodeLookup,{filter:o=>!!o.selected});return{width:Or(t)?t:null,height:Or(r)?r:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${a}px,${s}px)`}};function z8({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:r}){const a=Lt(),{width:s,height:o,transformString:c,userSelectionActive:d}=dt(L8,qt),f=NN(),h=ee.useRef(null);ee.useEffect(()=>{var x;r||(x=h.current)==null||x.focus({preventScroll:!0})},[r]);const m=!d&&s!==null&&o!==null;if(EN({nodeRef:h,disabled:!m}),!m)return null;const p=e?x=>{const _=a.getState().nodes.filter(N=>N.selected);e(x,_)}:void 0,y=x=>{Object.prototype.hasOwnProperty.call(Lu,x.key)&&(x.preventDefault(),f({direction:Lu[x.key],factor:x.shiftKey?4:1}))};return g.jsx("div",{className:ln(["react-flow__nodesselection","react-flow__container",t]),style:{transform:c},children:g.jsx("div",{ref:h,className:"react-flow__nodesselection-rect",onContextMenu:p,tabIndex:r?void 0:-1,onKeyDown:r?void 0:y,style:{width:s,height:o}})})}const z1=typeof window<"u"?window:void 0,I8=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function TN({children:e,onPaneClick:t,onPaneMouseEnter:r,onPaneMouseMove:a,onPaneMouseLeave:s,onPaneContextMenu:o,onPaneScroll:c,paneClickDistance:d,deleteKeyCode:f,selectionKeyCode:h,selectionOnDrag:m,selectionMode:p,onSelectionStart:y,onSelectionEnd:x,multiSelectionKeyCode:_,panActivationKeyCode:N,zoomActivationKeyCode:S,elementsSelectable:w,zoomOnScroll:k,zoomOnPinch:E,panOnScroll:M,panOnScrollSpeed:I,panOnScrollMode:R,zoomOnDoubleClick:U,panOnDrag:B,autoPanOnSelection:Z,defaultViewport:D,translateExtent:L,minZoom:G,maxZoom:V,preventScrolling:A,onSelectionContextMenu:q,noWheelClassName:O,noPanClassName:H,disableKeyboardA11y:X,onViewportChange:K,isControlledViewport:T}){const{nodesSelectionActive:j,userSelectionActive:Y}=dt(I8,qt),z=ko(h,{target:z1}),F=ko(N,{target:z1}),$=F||B,Q=F||M,J=m&&$!==!0,W=z||Y||J;return m8({deleteKeyCode:f,multiSelectionKeyCode:_}),g.jsx(b8,{onPaneContextMenu:o,elementsSelectable:w,zoomOnScroll:k,zoomOnPinch:E,panOnScroll:Q,panOnScrollSpeed:I,panOnScrollMode:R,zoomOnDoubleClick:U,panOnDrag:!z&&$,defaultViewport:D,translateExtent:L,minZoom:G,maxZoom:V,zoomActivationKeyCode:S,preventScrolling:A,noWheelClassName:O,noPanClassName:H,onViewportChange:K,isControlledViewport:T,paneClickDistance:d,selectionOnDrag:J,children:g.jsxs(_8,{onSelectionStart:y,onSelectionEnd:x,onPaneClick:t,onPaneMouseEnter:r,onPaneMouseMove:a,onPaneMouseLeave:s,onPaneContextMenu:o,onPaneScroll:c,panOnDrag:$,autoPanOnSelection:Z,isSelecting:!!W,selectionMode:p,selectionKeyPressed:z,paneClickDistance:d,selectionOnDrag:J,children:[e,j&&g.jsx(z8,{onSelectionContextMenu:q,noPanClassName:H,disableKeyboardA11y:X})]})})}TN.displayName="FlowRenderer";const B8=ee.memo(TN),U8=e=>t=>e?Jp(t.nodeLookup,{x:0,y:0,width:t.width,height:t.height},t.transform,!0).map(r=>r.id):Array.from(t.nodeLookup.keys());function H8(e){return dt(ee.useCallback(U8(e),[e]),qt)}const $8=e=>e.updateNodeInternals;function q8(){const e=dt($8),[t]=ee.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(r=>{const a=new Map;r.forEach(s=>{const o=s.target.getAttribute("data-id");a.set(o,{id:o,nodeElement:s.target,force:!0})}),e(a)}));return ee.useEffect(()=>()=>{t==null||t.disconnect()},[t]),t}function P8({node:e,nodeType:t,hasDimensions:r,resizeObserver:a}){const s=Lt(),o=ee.useRef(null),c=ee.useRef(null),d=ee.useRef(e.sourcePosition),f=ee.useRef(e.targetPosition),h=ee.useRef(t),m=r&&!!e.internals.handleBounds;return ee.useEffect(()=>{o.current&&!e.hidden&&(!m||c.current!==o.current)&&(c.current&&(a==null||a.unobserve(c.current)),a==null||a.observe(o.current),c.current=o.current)},[m,e.hidden]),ee.useEffect(()=>()=>{c.current&&(a==null||a.unobserve(c.current),c.current=null)},[]),ee.useEffect(()=>{if(o.current){const p=h.current!==t,y=d.current!==e.sourcePosition,x=f.current!==e.targetPosition;(p||y||x)&&(h.current=t,d.current=e.sourcePosition,f.current=e.targetPosition,s.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:o.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),o}function F8({id:e,onClick:t,onMouseEnter:r,onMouseMove:a,onMouseLeave:s,onContextMenu:o,onDoubleClick:c,nodesDraggable:d,elementsSelectable:f,nodesConnectable:h,nodesFocusable:m,resizeObserver:p,noDragClassName:y,noPanClassName:x,disableKeyboardA11y:_,rfId:N,nodeTypes:S,nodeClickDistance:w,onError:k}){const{node:E,internals:M,isParent:I}=dt(W=>{const te=W.nodeLookup.get(e),ce=W.parentLookup.has(e);return{node:te,internals:te.internals,isParent:ce}},qt);let R=E.type||"default",U=(S==null?void 0:S[R])||L1[R];U===void 0&&(k==null||k("003",jr.error003(R)),R="default",U=(S==null?void 0:S.default)||L1.default);const B=!!(E.draggable||d&&typeof E.draggable>"u"),Z=!!(E.selectable||f&&typeof E.selectable>"u"),D=!!(E.connectable||h&&typeof E.connectable>"u"),L=!!(E.focusable||m&&typeof E.focusable>"u"),G=Lt(),V=VE(E),A=P8({node:E,nodeType:R,hasDimensions:V,resizeObserver:p}),q=EN({nodeRef:A,disabled:E.hidden||!B,noDragClassName:y,handleSelector:E.dragHandle,nodeId:e,isSelectable:Z,nodeClickDistance:w}),O=NN();if(E.hidden)return null;const H=Qr(E),X=j8(E),K=Z||B||t||r||a||s,T=r?W=>r(W,{...M.userNode}):void 0,j=a?W=>a(W,{...M.userNode}):void 0,Y=s?W=>s(W,{...M.userNode}):void 0,z=o?W=>o(W,{...M.userNode}):void 0,F=c?W=>c(W,{...M.userNode}):void 0,$=W=>{const{selectNodesOnDrag:te,nodeDragThreshold:ce}=G.getState();Z&&(!te||!B||ce>0)&&dp({id:e,store:G,nodeRef:A}),t&&t(W,{...M.userNode})},Q=W=>{if(!(KE(W.nativeEvent)||_)){if(zE.includes(W.key)&&Z){const te=W.key==="Escape";dp({id:e,store:G,unselect:te,nodeRef:A})}else if(B&&E.selected&&Object.prototype.hasOwnProperty.call(Lu,W.key)){W.preventDefault();const{ariaLabelConfig:te}=G.getState();G.setState({ariaLiveMessage:te["node.a11yDescription.ariaLiveMessage"]({direction:W.key.replace("Arrow","").toLowerCase(),x:~~M.positionAbsolute.x,y:~~M.positionAbsolute.y})}),O({direction:Lu[W.key],factor:W.shiftKey?4:1})}}},J=()=>{var Ne;if(_||!((Ne=A.current)!=null&&Ne.matches(":focus-visible")))return;const{transform:W,width:te,height:ce,autoPanOnNodeFocus:fe,setCenter:be}=G.getState();if(!fe)return;Jp(new Map([[e,E]]),{x:0,y:0,width:te,height:ce},W,!0).length>0||be(E.position.x+H.width/2,E.position.y+H.height/2,{zoom:W[2]})};return g.jsx("div",{className:ln(["react-flow__node",`react-flow__node-${R}`,{[x]:B},E.className,{selected:E.selected,selectable:Z,parent:I,draggable:B,dragging:q}]),ref:A,style:{zIndex:M.z,transform:`translate(${M.positionAbsolute.x}px,${M.positionAbsolute.y}px)`,pointerEvents:K?"all":"none",visibility:V?"visible":"hidden",...E.style,...X},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:T,onMouseMove:j,onMouseLeave:Y,onContextMenu:z,onClick:$,onDoubleClick:F,onKeyDown:L?Q:void 0,tabIndex:L?0:void 0,onFocus:L?J:void 0,role:E.ariaRole??(L?"group":void 0),"aria-roledescription":"node","aria-describedby":_?void 0:`${mN}-${N}`,"aria-label":E.ariaLabel,...E.domAttributes,children:g.jsx(E8,{value:e,children:g.jsx(U,{id:e,data:E.data,type:R,positionAbsoluteX:M.positionAbsolute.x,positionAbsoluteY:M.positionAbsolute.y,selected:E.selected??!1,selectable:Z,draggable:B,deletable:E.deletable??!0,isConnectable:D,sourcePosition:E.sourcePosition,targetPosition:E.targetPosition,dragging:q,dragHandle:E.dragHandle,zIndex:M.z,parentId:E.parentId,...H})})})}var G8=ee.memo(F8);const V8=e=>({nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function CN(e){const{nodesConnectable:t,nodesFocusable:r,elementsSelectable:a,onError:s}=dt(V8,qt),o=H8(e.onlyRenderVisibleElements),c=q8();return g.jsx("div",{className:"react-flow__nodes",style:rd,children:o.map(d=>g.jsx(G8,{id:d,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:c,nodesDraggable:e.nodesDraggable??!0,nodesConnectable:t,nodesFocusable:r,elementsSelectable:a,nodeClickDistance:e.nodeClickDistance,onError:s},d))})}CN.displayName="NodeRenderer";const Y8=ee.memo(CN);function X8(e){return dt(ee.useCallback(r=>{if(!e)return r.edges.map(s=>s.id);const a=[];if(r.width&&r.height)for(const s of r.edges){const o=r.nodeLookup.get(s.source),c=r.nodeLookup.get(s.target);o&&c&&Pz({sourceNode:o,targetNode:c,width:r.width,height:r.height,transform:r.transform})&&a.push(s.id)}return a},[e]),qt)}const K8=({color:e="none",strokeWidth:t=1})=>{const r={strokeWidth:t,...e&&{stroke:e}};return g.jsx("polyline",{className:"arrow",style:r,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},Z8=({color:e="none",strokeWidth:t=1})=>{const r={strokeWidth:t,...e&&{stroke:e,fill:e}};return g.jsx("polyline",{className:"arrowclosed",style:r,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},I1={[Ru.Arrow]:K8,[Ru.ArrowClosed]:Z8};function Q8(e){const t=Lt();return ee.useMemo(()=>{var s,o;return Object.prototype.hasOwnProperty.call(I1,e)?I1[e]:((o=(s=t.getState()).onError)==null||o.call(s,"009",jr.error009(e)),null)},[e])}const W8=({id:e,type:t,color:r,width:a=12.5,height:s=12.5,markerUnits:o="strokeWidth",strokeWidth:c,orient:d="auto-start-reverse"})=>{const f=Q8(t);return f?g.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${a}`,markerHeight:`${s}`,viewBox:"-10 -10 20 20",markerUnits:o,orient:d,refX:"0",refY:"0",children:g.jsx(f,{color:r,strokeWidth:c})}):null},AN=({defaultColor:e,rfId:t})=>{const r=dt(o=>o.edges),a=dt(o=>o.defaultEdgeOptions),s=ee.useMemo(()=>Qz(r,{id:t,defaultColor:e,defaultMarkerStart:a==null?void 0:a.markerStart,defaultMarkerEnd:a==null?void 0:a.markerEnd}),[r,a,t,e]);return s.length?g.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:g.jsx("defs",{children:s.map(o=>g.jsx(W8,{id:o.id,type:o.type,color:o.color,width:o.width,height:o.height,markerUnits:o.markerUnits,strokeWidth:o.strokeWidth,orient:o.orient},o.id))})}):null};AN.displayName="MarkerDefinitions";var J8=ee.memo(AN);function MN({x:e,y:t,label:r,labelStyle:a,labelShowBg:s=!0,labelBgStyle:o,labelBgPadding:c=[2,4],labelBgBorderRadius:d=2,children:f,className:h,...m}){const[p,y]=ee.useState({x:1,y:0,width:0,height:0}),x=ln(["react-flow__edge-textwrapper",h]),_=ee.useRef(null);return ee.useEffect(()=>{if(_.current){const N=_.current.getBBox();y({x:N.x,y:N.y,width:N.width,height:N.height})}},[r]),r?g.jsxs("g",{transform:`translate(${e-p.width/2} ${t-p.height/2})`,className:x,visibility:p.width?"visible":"hidden",...m,children:[s&&g.jsx("rect",{width:p.width+2*c[0],x:-c[0],y:-c[1],height:p.height+2*c[1],className:"react-flow__edge-textbg",style:o,rx:d,ry:d}),g.jsx("text",{className:"react-flow__edge-text",y:p.height/2,dy:"0.3em",ref:_,style:a,children:r}),f]}):null}MN.displayName="EdgeText";const e9=ee.memo(MN);function id({path:e,labelX:t,labelY:r,label:a,labelStyle:s,labelShowBg:o,labelBgStyle:c,labelBgPadding:d,labelBgBorderRadius:f,interactionWidth:h=20,...m}){return g.jsxs(g.Fragment,{children:[g.jsx("path",{...m,d:e,fill:"none",className:ln(["react-flow__edge-path",m.className])}),h?g.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:h,className:"react-flow__edge-interaction"}):null,a&&Or(t)&&Or(r)?g.jsx(e9,{x:t,y:r,label:a,labelStyle:s,labelShowBg:o,labelBgStyle:c,labelBgPadding:d,labelBgBorderRadius:f}):null]})}function B1({pos:e,x1:t,y1:r,x2:a,y2:s}){return e===ze.Left||e===ze.Right?[.5*(t+a),r]:[t,.5*(r+s)]}function ON({sourceX:e,sourceY:t,sourcePosition:r=ze.Bottom,targetX:a,targetY:s,targetPosition:o=ze.Top}){const[c,d]=B1({pos:r,x1:e,y1:t,x2:a,y2:s}),[f,h]=B1({pos:o,x1:a,y1:s,x2:e,y2:t}),[m,p,y,x]=QE({sourceX:e,sourceY:t,targetX:a,targetY:s,sourceControlX:c,sourceControlY:d,targetControlX:f,targetControlY:h});return[`M${e},${t} C${c},${d} ${f},${h} ${a},${s}`,m,p,y,x]}function RN(e){return ee.memo(({id:t,sourceX:r,sourceY:a,targetX:s,targetY:o,sourcePosition:c,targetPosition:d,label:f,labelStyle:h,labelShowBg:m,labelBgStyle:p,labelBgPadding:y,labelBgBorderRadius:x,style:_,markerEnd:N,markerStart:S,interactionWidth:w})=>{const[k,E,M]=ON({sourceX:r,sourceY:a,sourcePosition:c,targetX:s,targetY:o,targetPosition:d}),I=e.isInternal?void 0:t;return g.jsx(id,{id:I,path:k,labelX:E,labelY:M,label:f,labelStyle:h,labelShowBg:m,labelBgStyle:p,labelBgPadding:y,labelBgBorderRadius:x,style:_,markerEnd:N,markerStart:S,interactionWidth:w})})}const t9=RN({isInternal:!1}),DN=RN({isInternal:!0});t9.displayName="SimpleBezierEdge";DN.displayName="SimpleBezierEdgeInternal";function jN(e){return ee.memo(({id:t,sourceX:r,sourceY:a,targetX:s,targetY:o,label:c,labelStyle:d,labelShowBg:f,labelBgStyle:h,labelBgPadding:m,labelBgBorderRadius:p,style:y,sourcePosition:x=ze.Bottom,targetPosition:_=ze.Top,markerEnd:N,markerStart:S,pathOptions:w,interactionWidth:k})=>{const[E,M,I]=lp({sourceX:r,sourceY:a,sourcePosition:x,targetX:s,targetY:o,targetPosition:_,borderRadius:w==null?void 0:w.borderRadius,offset:w==null?void 0:w.offset,stepPosition:w==null?void 0:w.stepPosition}),R=e.isInternal?void 0:t;return g.jsx(id,{id:R,path:E,labelX:M,labelY:I,label:c,labelStyle:d,labelShowBg:f,labelBgStyle:h,labelBgPadding:m,labelBgBorderRadius:p,style:y,markerEnd:N,markerStart:S,interactionWidth:k})})}const LN=jN({isInternal:!1}),zN=jN({isInternal:!0});LN.displayName="SmoothStepEdge";zN.displayName="SmoothStepEdgeInternal";function IN(e){return ee.memo(({id:t,...r})=>{var s;const a=e.isInternal?void 0:t;return g.jsx(LN,{...r,id:a,pathOptions:ee.useMemo(()=>{var o;return{borderRadius:0,offset:(o=r.pathOptions)==null?void 0:o.offset}},[(s=r.pathOptions)==null?void 0:s.offset])})})}const n9=IN({isInternal:!1}),BN=IN({isInternal:!0});n9.displayName="StepEdge";BN.displayName="StepEdgeInternal";function UN(e){return ee.memo(({id:t,sourceX:r,sourceY:a,targetX:s,targetY:o,label:c,labelStyle:d,labelShowBg:f,labelBgStyle:h,labelBgPadding:m,labelBgBorderRadius:p,style:y,markerEnd:x,markerStart:_,interactionWidth:N})=>{const[S,w,k]=eN({sourceX:r,sourceY:a,targetX:s,targetY:o}),E=e.isInternal?void 0:t;return g.jsx(id,{id:E,path:S,labelX:w,labelY:k,label:c,labelStyle:d,labelShowBg:f,labelBgStyle:h,labelBgPadding:m,labelBgBorderRadius:p,style:y,markerEnd:x,markerStart:_,interactionWidth:N})})}const r9=UN({isInternal:!1}),HN=UN({isInternal:!0});r9.displayName="StraightEdge";HN.displayName="StraightEdgeInternal";function $N(e){return ee.memo(({id:t,sourceX:r,sourceY:a,targetX:s,targetY:o,sourcePosition:c=ze.Bottom,targetPosition:d=ze.Top,label:f,labelStyle:h,labelShowBg:m,labelBgStyle:p,labelBgPadding:y,labelBgBorderRadius:x,style:_,markerEnd:N,markerStart:S,pathOptions:w,interactionWidth:k})=>{const[E,M,I]=WE({sourceX:r,sourceY:a,sourcePosition:c,targetX:s,targetY:o,targetPosition:d,curvature:w==null?void 0:w.curvature}),R=e.isInternal?void 0:t;return g.jsx(id,{id:R,path:E,labelX:M,labelY:I,label:f,labelStyle:h,labelShowBg:m,labelBgStyle:p,labelBgPadding:y,labelBgBorderRadius:x,style:_,markerEnd:N,markerStart:S,interactionWidth:k})})}const i9=$N({isInternal:!1}),qN=$N({isInternal:!0});i9.displayName="BezierEdge";qN.displayName="BezierEdgeInternal";const U1={default:qN,straight:HN,step:BN,smoothstep:zN,simplebezier:DN},H1={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null,zIndex:void 0},a9=(e,t,r)=>r===ze.Left?e-t:r===ze.Right?e+t:e,s9=(e,t,r)=>r===ze.Top?e-t:r===ze.Bottom?e+t:e,$1="react-flow__edgeupdater";function q1({position:e,centerX:t,centerY:r,radius:a=10,onMouseDown:s,onMouseEnter:o,onMouseOut:c,type:d}){return g.jsx("circle",{onMouseDown:s,onMouseEnter:o,onMouseOut:c,className:ln([$1,`${$1}-${d}`]),cx:a9(t,a,e),cy:s9(r,a,e),r:a,stroke:"transparent",fill:"transparent"})}function l9({isReconnectable:e,reconnectRadius:t,edge:r,sourceX:a,sourceY:s,targetX:o,targetY:c,sourcePosition:d,targetPosition:f,onReconnect:h,onReconnectStart:m,onReconnectEnd:p,setReconnecting:y,setUpdateHover:x}){const _=Lt(),N=(M,I)=>{if(M.button!==0)return;const{autoPanOnConnect:R,domNode:U,connectionMode:B,connectionRadius:Z,lib:D,onConnectStart:L,cancelConnection:G,nodeLookup:V,rfId:A,panBy:q,updateConnection:O}=_.getState(),H=I.type==="target",X=(j,Y)=>{y(!1),p==null||p(j,r,I.type,Y)},K=j=>h==null?void 0:h(r,j),T=(j,Y)=>{y(!0),m==null||m(M,r,I.type),L==null||L(j,Y)};up.onPointerDown(M.nativeEvent,{autoPanOnConnect:R,connectionMode:B,connectionRadius:Z,domNode:U,handleId:I.id,nodeId:I.nodeId,nodeLookup:V,isTarget:H,edgeUpdaterType:I.type,lib:D,flowId:A,cancelConnection:G,panBy:q,isValidConnection:(...j)=>{var Y,z;return((z=(Y=_.getState()).isValidConnection)==null?void 0:z.call(Y,...j))??!0},onConnect:K,onConnectStart:T,onConnectEnd:(...j)=>{var Y,z;return(z=(Y=_.getState()).onConnectEnd)==null?void 0:z.call(Y,...j)},onReconnectEnd:X,updateConnection:O,getTransform:()=>_.getState().transform,getFromHandle:()=>_.getState().connection.fromHandle,dragThreshold:_.getState().connectionDragThreshold,handleDomNode:M.currentTarget})},S=M=>N(M,{nodeId:r.target,id:r.targetHandle??null,type:"target"}),w=M=>N(M,{nodeId:r.source,id:r.sourceHandle??null,type:"source"}),k=()=>x(!0),E=()=>x(!1);return g.jsxs(g.Fragment,{children:[(e===!0||e==="source")&&g.jsx(q1,{position:d,centerX:a,centerY:s,radius:t,onMouseDown:S,onMouseEnter:k,onMouseOut:E,type:"source"}),(e===!0||e==="target")&&g.jsx(q1,{position:f,centerX:o,centerY:c,radius:t,onMouseDown:w,onMouseEnter:k,onMouseOut:E,type:"target"})]})}function o9({id:e,edgesFocusable:t,edgesReconnectable:r,elementsSelectable:a,onClick:s,onDoubleClick:o,onContextMenu:c,onMouseEnter:d,onMouseMove:f,onMouseLeave:h,reconnectRadius:m,onReconnect:p,onReconnectStart:y,onReconnectEnd:x,rfId:_,edgeTypes:N,noPanClassName:S,onError:w,disableKeyboardA11y:k}){let E=dt(be=>be.edgeLookup.get(e));const M=dt(be=>be.defaultEdgeOptions);E=M?{...M,...E}:E;let I=E.type||"default",R=(N==null?void 0:N[I])||U1[I];R===void 0&&(w==null||w("011",jr.error011(I)),I="default",R=(N==null?void 0:N.default)||U1.default);const U=!!(E.focusable||t&&typeof E.focusable>"u"),B=typeof p<"u"&&(E.reconnectable||r&&typeof E.reconnectable>"u"),Z=!!(E.selectable||a&&typeof E.selectable>"u"),D=ee.useRef(null),[L,G]=ee.useState(!1),[V,A]=ee.useState(!1),q=Lt(),{zIndex:O=E.zIndex,sourceX:H,sourceY:X,targetX:K,targetY:T,sourcePosition:j,targetPosition:Y}=dt(ee.useCallback(be=>{const we=be.nodeLookup.get(E.source),Ne=be.nodeLookup.get(E.target);if(!we||!Ne)return H1;const je=Zz({id:e,sourceNode:we,targetNode:Ne,sourceHandle:E.sourceHandle||null,targetHandle:E.targetHandle||null,connectionMode:be.connectionMode,onError:w}),$e=qz({selected:E.selected,zIndex:E.zIndex,sourceNode:we,targetNode:Ne,elevateOnSelect:be.elevateEdgesOnSelect,zIndexMode:be.zIndexMode});return{...je||H1,zIndex:$e}},[E.source,E.target,E.sourceHandle,E.targetHandle,E.selected,E.zIndex]),qt),z=ee.useMemo(()=>E.markerStart?`url('#${op(E.markerStart,_)}')`:void 0,[E.markerStart,_]),F=ee.useMemo(()=>E.markerEnd?`url('#${op(E.markerEnd,_)}')`:void 0,[E.markerEnd,_]);if(E.hidden||H===null||X===null||K===null||T===null)return null;const $=be=>{var $e;const{addSelectedEdges:we,unselectNodesAndEdges:Ne,multiSelectionActive:je}=q.getState();Z&&(q.setState({nodesSelectionActive:!1}),E.selected&&je?(Ne({nodes:[],edges:[E]}),($e=D.current)==null||$e.blur()):we([e])),s&&s(be,E)},Q=o?be=>{o(be,{...E})}:void 0,J=c?be=>{c(be,{...E})}:void 0,W=d?be=>{d(be,{...E})}:void 0,te=f?be=>{f(be,{...E})}:void 0,ce=h?be=>{h(be,{...E})}:void 0,fe=be=>{var we;if(!k&&zE.includes(be.key)&&Z){const{unselectNodesAndEdges:Ne,addSelectedEdges:je}=q.getState();be.key==="Escape"?((we=D.current)==null||we.blur(),Ne({edges:[E]})):je([e])}};return g.jsx("svg",{style:{zIndex:O},children:g.jsxs("g",{className:ln(["react-flow__edge",`react-flow__edge-${I}`,E.className,S,{selected:E.selected,animated:E.animated,inactive:!Z&&!s,updating:L,selectable:Z}]),onClick:$,onDoubleClick:Q,onContextMenu:J,onMouseEnter:W,onMouseMove:te,onMouseLeave:ce,onKeyDown:U?fe:void 0,tabIndex:U?0:void 0,role:E.ariaRole??(U?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":E.ariaLabel===null?void 0:E.ariaLabel||`Edge from ${E.source} to ${E.target}`,"aria-describedby":U?`${pN}-${_}`:void 0,ref:D,...E.domAttributes,children:[!V&&g.jsx(R,{id:e,source:E.source,target:E.target,type:E.type,selected:E.selected,animated:E.animated,selectable:Z,deletable:E.deletable??!0,label:E.label,labelStyle:E.labelStyle,labelShowBg:E.labelShowBg,labelBgStyle:E.labelBgStyle,labelBgPadding:E.labelBgPadding,labelBgBorderRadius:E.labelBgBorderRadius,sourceX:H,sourceY:X,targetX:K,targetY:T,sourcePosition:j,targetPosition:Y,data:E.data,style:E.style,sourceHandleId:E.sourceHandle,targetHandleId:E.targetHandle,markerStart:z,markerEnd:F,pathOptions:"pathOptions"in E?E.pathOptions:void 0,interactionWidth:E.interactionWidth}),B&&g.jsx(l9,{edge:E,isReconnectable:B,reconnectRadius:m,onReconnect:p,onReconnectStart:y,onReconnectEnd:x,sourceX:H,sourceY:X,targetX:K,targetY:T,sourcePosition:j,targetPosition:Y,setUpdateHover:G,setReconnecting:A})]})})}var c9=ee.memo(o9);const u9=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function PN({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:r,edgeTypes:a,noPanClassName:s,onReconnect:o,onEdgeContextMenu:c,onEdgeMouseEnter:d,onEdgeMouseMove:f,onEdgeMouseLeave:h,onEdgeClick:m,reconnectRadius:p,onEdgeDoubleClick:y,onReconnectStart:x,onReconnectEnd:_,disableKeyboardA11y:N}){const{edgesFocusable:S,edgesReconnectable:w,elementsSelectable:k,onError:E}=dt(u9,qt),M=X8(t);return g.jsxs("div",{className:"react-flow__edges",children:[g.jsx(J8,{defaultColor:e,rfId:r}),M.map(I=>g.jsx(c9,{id:I,edgesFocusable:S,edgesReconnectable:w,elementsSelectable:k,noPanClassName:s,onReconnect:o,onContextMenu:c,onMouseEnter:d,onMouseMove:f,onMouseLeave:h,onClick:m,reconnectRadius:p,onDoubleClick:y,onReconnectStart:x,onReconnectEnd:_,rfId:r,onError:E,edgeTypes:a,disableKeyboardA11y:N},I))]})}PN.displayName="EdgeRenderer";const d9=ee.memo(PN),P1=e=>`translate(${e[0]}px,${e[1]}px) scale(${e[2]})`;function f9({children:e}){const t=Lt(),r=ee.useRef(null),[a]=ee.useState(()=>t.getState().transform);return _N(()=>{let s=null;const o=()=>{const c=t.getState().transform;s&&c[0]===s[0]&&c[1]===s[1]&&c[2]===s[2]||(s=c,r.current&&(r.current.style.transform=P1(c)))};return o(),t.subscribe(o)},[t]),g.jsx("div",{ref:r,className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:P1(a)},children:e})}function h9(e){const t=Uo(),r=ee.useRef(!1);ee.useEffect(()=>{!r.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),r.current=!0)},[e,t.viewportInitialized])}const m9=e=>{var t;return(t=e.panZoom)==null?void 0:t.syncViewport};function p9(e){const t=dt(m9),r=Lt();return ee.useEffect(()=>{e&&(t==null||t(e),r.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function g9(e){return e.connection.inProgress?{...e.connection,to:Bo(e.connection.to,e.transform)}:{...e.connection}}function b9(e){return g9}function x9(e){const t=b9();return dt(t,qt)}const y9=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function v9({containerStyle:e,style:t,type:r,component:a}){const{nodesConnectable:s,width:o,height:c,isValid:d,inProgress:f}=dt(y9,qt);return!(o&&s&&f)?null:g.jsx("svg",{style:e,width:o,height:c,className:"react-flow__connectionline react-flow__container",children:g.jsx("g",{className:ln(["react-flow__connection",UE(d)]),children:g.jsx(FN,{style:t,type:r,CustomComponent:a,isValid:d})})})}const FN=({style:e,type:t=ca.Bezier,CustomComponent:r,isValid:a})=>{const{inProgress:s,from:o,fromNode:c,fromHandle:d,fromPosition:f,to:h,toNode:m,toHandle:p,toPosition:y,pointer:x}=x9();if(!s)return;if(r)return g.jsx(r,{connectionLineType:t,connectionLineStyle:e,fromNode:c,fromHandle:d,fromX:o.x,fromY:o.y,toX:h.x,toY:h.y,fromPosition:f,toPosition:y,connectionStatus:UE(a),toNode:m,toHandle:p,pointer:x});let _="";const N={sourceX:o.x,sourceY:o.y,sourcePosition:f,targetX:h.x,targetY:h.y,targetPosition:y};switch(t){case ca.Bezier:[_]=WE(N);break;case ca.SimpleBezier:[_]=ON(N);break;case ca.Step:[_]=lp({...N,borderRadius:0});break;case ca.SmoothStep:[_]=lp(N);break;default:[_]=eN(N)}return g.jsx("path",{d:_,fill:"none",className:"react-flow__connection-path",style:e})};FN.displayName="ConnectionLine";const _9={};function F1(e=_9){ee.useRef(e),Lt(),ee.useEffect(()=>{},[e])}function w9(){Lt(),ee.useRef(!1),ee.useEffect(()=>{},[])}function GN({nodeTypes:e,edgeTypes:t,onInit:r,onNodeClick:a,onEdgeClick:s,onNodeDoubleClick:o,onEdgeDoubleClick:c,onNodeMouseEnter:d,onNodeMouseMove:f,onNodeMouseLeave:h,onNodeContextMenu:m,onSelectionContextMenu:p,onSelectionStart:y,onSelectionEnd:x,connectionLineType:_,connectionLineStyle:N,connectionLineComponent:S,connectionLineContainerStyle:w,selectionKeyCode:k,selectionOnDrag:E,selectionMode:M,multiSelectionKeyCode:I,panActivationKeyCode:R,zoomActivationKeyCode:U,deleteKeyCode:B,onlyRenderVisibleElements:Z,elementsSelectable:D,defaultViewport:L,translateExtent:G,minZoom:V,maxZoom:A,preventScrolling:q,defaultMarkerColor:O,zoomOnScroll:H,zoomOnPinch:X,panOnScroll:K,panOnScrollSpeed:T,panOnScrollMode:j,zoomOnDoubleClick:Y,panOnDrag:z,autoPanOnSelection:F,onPaneClick:$,onPaneMouseEnter:Q,onPaneMouseMove:J,onPaneMouseLeave:W,onPaneScroll:te,onPaneContextMenu:ce,paneClickDistance:fe,nodeClickDistance:be,onEdgeContextMenu:we,onEdgeMouseEnter:Ne,onEdgeMouseMove:je,onEdgeMouseLeave:$e,reconnectRadius:st,onReconnect:Rt,onReconnectStart:Yt,onReconnectEnd:Pt,noDragClassName:Xt,noWheelClassName:Yn,noPanClassName:wn,disableKeyboardA11y:ct,nodeExtent:It,rfId:ue,viewport:xe,onViewportChange:Oe,nodesDraggable:Fe}){return F1(e),F1(t),w9(),h9(r),p9(xe),g.jsx(B8,{onPaneClick:$,onPaneMouseEnter:Q,onPaneMouseMove:J,onPaneMouseLeave:W,onPaneContextMenu:ce,onPaneScroll:te,paneClickDistance:fe,deleteKeyCode:B,selectionKeyCode:k,selectionOnDrag:E,selectionMode:M,onSelectionStart:y,onSelectionEnd:x,multiSelectionKeyCode:I,panActivationKeyCode:R,zoomActivationKeyCode:U,elementsSelectable:D,zoomOnScroll:H,zoomOnPinch:X,zoomOnDoubleClick:Y,panOnScroll:K,panOnScrollSpeed:T,panOnScrollMode:j,panOnDrag:z,autoPanOnSelection:F,defaultViewport:L,translateExtent:G,minZoom:V,maxZoom:A,onSelectionContextMenu:p,preventScrolling:q,noDragClassName:Xt,noWheelClassName:Yn,noPanClassName:wn,disableKeyboardA11y:ct,onViewportChange:Oe,isControlledViewport:!!xe,children:g.jsxs(f9,{children:[g.jsx(d9,{edgeTypes:t,onEdgeClick:s,onEdgeDoubleClick:c,onReconnect:Rt,onReconnectStart:Yt,onReconnectEnd:Pt,onlyRenderVisibleElements:Z,onEdgeContextMenu:we,onEdgeMouseEnter:Ne,onEdgeMouseMove:je,onEdgeMouseLeave:$e,reconnectRadius:st,defaultMarkerColor:O,noPanClassName:wn,disableKeyboardA11y:ct,rfId:ue}),g.jsx(v9,{style:N,type:_,component:S,containerStyle:w}),g.jsx("div",{className:"react-flow__edgelabel-renderer"}),g.jsx(Y8,{nodeTypes:e,onNodeClick:a,onNodeDoubleClick:o,onNodeMouseEnter:d,onNodeMouseMove:f,onNodeMouseLeave:h,onNodeContextMenu:m,nodeClickDistance:be,onlyRenderVisibleElements:Z,noPanClassName:wn,noDragClassName:Xt,disableKeyboardA11y:ct,nodeExtent:It,rfId:ue,nodesDraggable:Fe}),g.jsx("div",{className:"react-flow__viewport-portal"})]})})}GN.displayName="GraphView";const E9=ee.memo(GN),N9=GE(),G1=({nodes:e,edges:t,defaultNodes:r,defaultEdges:a,width:s,height:o,fitView:c,fitViewOptions:d,minZoom:f=.5,maxZoom:h=2,nodeOrigin:m,nodeExtent:p,zIndexMode:y="basic"}={})=>{const x=new Map,_=new Map,N=new Map,S=new Map,w=a??t??[],k=r??e??[],E=m??[0,0],M=p??wo;rN(N,S,w);const{nodesInitialized:I}=cp(k,x,_,{nodeOrigin:E,nodeExtent:M,zIndexMode:y});let R=[0,0,1];if(c&&s&&o){const U=zo(x,{filter:L=>!!((L.width||L.initialWidth)&&(L.height||L.initialHeight))}),{x:B,y:Z,zoom:D}=tg(U,s,o,f,h,(d==null?void 0:d.padding)??.1);R=[B,Z,D]}return{rfId:"1",width:s??0,height:o??0,transform:R,nodes:k,nodesInitialized:I,nodeLookup:x,parentLookup:_,edges:w,edgeLookup:S,connectionLookup:N,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:r!==void 0,hasDefaultEdges:a!==void 0,panZoom:null,minZoom:f,maxZoom:h,translateExtent:wo,nodeExtent:M,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:Zs.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:E,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:c??!1,fitViewOptions:d,fitViewResolver:null,connection:{...BE},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:N9,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:IE,zIndexMode:y,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},S9=({nodes:e,edges:t,defaultNodes:r,defaultEdges:a,width:s,height:o,fitView:c,fitViewOptions:d,minZoom:f,maxZoom:h,nodeOrigin:m,nodeExtent:p,zIndexMode:y})=>UI((x,_)=>{async function N(){const{nodeLookup:S,panZoom:w,fitViewOptions:k,fitViewResolver:E,width:M,height:I,minZoom:R,maxZoom:U}=_();w&&(await Lz({nodes:S,width:M,height:I,panZoom:w,minZoom:R,maxZoom:U},k),E==null||E.resolve(!0),x({fitViewResolver:null}))}return{...G1({nodes:e,edges:t,width:s,height:o,fitView:c,fitViewOptions:d,minZoom:f,maxZoom:h,nodeOrigin:m,nodeExtent:p,defaultNodes:r,defaultEdges:a,zIndexMode:y}),setNodes:S=>{const{nodeLookup:w,parentLookup:k,nodeOrigin:E,elevateNodesOnSelect:M,fitViewQueued:I,zIndexMode:R,nodesSelectionActive:U}=_(),{nodesInitialized:B,hasSelectedNodes:Z}=cp(S,w,k,{nodeOrigin:E,nodeExtent:p,elevateNodesOnSelect:M,checkEquality:!0,zIndexMode:R}),D=U&&Z;I&&B?(N(),x({nodes:S,nodesInitialized:B,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:D})):x({nodes:S,nodesInitialized:B,nodesSelectionActive:D})},setEdges:S=>{const{connectionLookup:w,edgeLookup:k}=_();rN(w,k,S),x({edges:S})},setDefaultNodesAndEdges:(S,w)=>{if(S){const{setNodes:k}=_();k(S),x({hasDefaultNodes:!0})}if(w){const{setEdges:k}=_();k(w),x({hasDefaultEdges:!0})}},updateNodeInternals:S=>{const{triggerNodeChanges:w,nodeLookup:k,parentLookup:E,domNode:M,nodeOrigin:I,nodeExtent:R,debug:U,fitViewQueued:B,zIndexMode:Z}=_(),{changes:D,updatedInternals:L}=iI(S,k,E,M,I,R,Z);L&&(eI(k,E,{nodeOrigin:I,nodeExtent:R,zIndexMode:Z}),B?(N(),x({fitViewQueued:!1,fitViewOptions:void 0})):x({}),(D==null?void 0:D.length)>0&&(U&&console.log("React Flow: trigger node changes",D),w==null||w(D)))},updateNodePositions:(S,w=!1)=>{const k=[];let E=[];const{nodeLookup:M,triggerNodeChanges:I,connection:R,updateConnection:U,onNodesChangeMiddlewareMap:B}=_();for(const[Z,D]of S){const L=M.get(Z),G=!!(L!=null&&L.expandParent&&(L!=null&&L.parentId)&&(D!=null&&D.position)),V={id:Z,type:"position",position:G?{x:Math.max(0,D.position.x),y:Math.max(0,D.position.y)}:D.position,dragging:w};if(L&&R.inProgress&&R.fromNode.id===L.id){const A=Ka(L,R.fromHandle,ze.Left,!0);U({...R,from:A})}G&&L.parentId&&k.push({id:Z,parentId:L.parentId,rect:{...D.internals.positionAbsolute,width:D.measured.width??0,height:D.measured.height??0}}),E.push(V)}if(k.length>0){const{parentLookup:Z,nodeOrigin:D}=_(),L=lg(k,M,Z,D);E.push(...L)}for(const Z of B.values())E=Z(E);I(E)},triggerNodeChanges:S=>{const{onNodesChange:w,setNodes:k,nodes:E,hasDefaultNodes:M,debug:I}=_();if(S!=null&&S.length){if(M){const R=xN(S,E);k(R)}I&&console.log("React Flow: trigger node changes",S),w==null||w(S)}},triggerEdgeChanges:S=>{const{onEdgesChange:w,setEdges:k,edges:E,hasDefaultEdges:M,debug:I}=_();if(S!=null&&S.length){if(M){const R=yN(S,E);k(R)}I&&console.log("React Flow: trigger edge changes",S),w==null||w(S)}},addSelectedNodes:S=>{const{multiSelectionActive:w,edgeLookup:k,nodeLookup:E,triggerNodeChanges:M,triggerEdgeChanges:I}=_();if(w){const R=S.map(U=>Ua(U,!0));M(R);return}M(Hs(E,new Set([...S]),!0)),I(Hs(k))},addSelectedEdges:S=>{const{multiSelectionActive:w,edgeLookup:k,nodeLookup:E,triggerNodeChanges:M,triggerEdgeChanges:I}=_();if(w){const R=S.map(U=>Ua(U,!0));I(R);return}I(Hs(k,new Set([...S]))),M(Hs(E,new Set,!0))},unselectNodesAndEdges:({nodes:S,edges:w}={})=>{const{edges:k,nodes:E,nodeLookup:M,triggerNodeChanges:I,triggerEdgeChanges:R}=_(),U=S||E,B=w||k,Z=[];for(const L of U){if(!L.selected)continue;const G=M.get(L.id);G&&(G.selected=!1),Z.push(Ua(L.id,!1))}const D=[];for(const L of B)L.selected&&D.push(Ua(L.id,!1));I(Z),R(D)},setMinZoom:S=>{const{panZoom:w,maxZoom:k}=_();w==null||w.setScaleExtent([S,k]),x({minZoom:S})},setMaxZoom:S=>{const{panZoom:w,minZoom:k}=_();w==null||w.setScaleExtent([k,S]),x({maxZoom:S})},setTranslateExtent:S=>{var w;(w=_().panZoom)==null||w.setTranslateExtent(S),x({translateExtent:S})},resetSelectedElements:()=>{const{edges:S,nodes:w,triggerNodeChanges:k,triggerEdgeChanges:E,elementsSelectable:M}=_();if(!M)return;const I=w.reduce((U,B)=>B.selected?[...U,Ua(B.id,!1)]:U,[]),R=S.reduce((U,B)=>B.selected?[...U,Ua(B.id,!1)]:U,[]);k(I),E(R)},setNodeExtent:S=>{const{nodes:w,nodeLookup:k,parentLookup:E,nodeOrigin:M,elevateNodesOnSelect:I,nodeExtent:R,zIndexMode:U}=_();S[0][0]===R[0][0]&&S[0][1]===R[0][1]&&S[1][0]===R[1][0]&&S[1][1]===R[1][1]||(cp(w,k,E,{nodeOrigin:M,nodeExtent:S,elevateNodesOnSelect:I,checkEquality:!1,zIndexMode:U}),x({nodeExtent:S}))},panBy:S=>{const{transform:w,width:k,height:E,panZoom:M,translateExtent:I}=_();return aI({delta:S,panZoom:M,transform:w,translateExtent:I,width:k,height:E})},setCenter:async(S,w,k)=>{const{width:E,height:M,maxZoom:I,panZoom:R}=_();if(!R)return!1;const U=typeof(k==null?void 0:k.zoom)<"u"?k.zoom:I;return await R.setViewport({x:E/2-S*U,y:M/2-w*U,zoom:U},{duration:k==null?void 0:k.duration,ease:k==null?void 0:k.ease,interpolate:k==null?void 0:k.interpolate}),!0},cancelConnection:()=>{x({connection:{...BE}})},updateConnection:S=>{x({connection:S})},reset:()=>x({...G1()})}},Object.is);function k9({initialNodes:e,initialEdges:t,defaultNodes:r,defaultEdges:a,initialWidth:s,initialHeight:o,initialMinZoom:c,initialMaxZoom:d,initialFitViewOptions:f,fitView:h,nodeOrigin:m,nodeExtent:p,zIndexMode:y,children:x}){const[_]=ee.useState(()=>S9({nodes:e,edges:t,defaultNodes:r,defaultEdges:a,width:s,height:o,fitView:h,minZoom:c,maxZoom:d,fitViewOptions:f,nodeOrigin:m,nodeExtent:p,zIndexMode:y}));return g.jsx(HI,{value:_,children:g.jsx(u8,{children:g.jsx(S8,{children:x})})})}function T9({children:e,nodes:t,edges:r,defaultNodes:a,defaultEdges:s,width:o,height:c,fitView:d,fitViewOptions:f,minZoom:h,maxZoom:m,nodeOrigin:p,nodeExtent:y,zIndexMode:x}){return ee.useContext(td)?g.jsx(g.Fragment,{children:e}):g.jsx(k9,{initialNodes:t,initialEdges:r,defaultNodes:a,defaultEdges:s,initialWidth:o,initialHeight:c,fitView:d,initialFitViewOptions:f,initialMinZoom:h,initialMaxZoom:m,nodeOrigin:p,nodeExtent:y,zIndexMode:x,children:e})}const C9={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function A9({nodes:e,edges:t,defaultNodes:r,defaultEdges:a,className:s,nodeTypes:o,edgeTypes:c,onNodeClick:d,onEdgeClick:f,onInit:h,onMove:m,onMoveStart:p,onMoveEnd:y,onConnect:x,onConnectStart:_,onConnectEnd:N,onClickConnectStart:S,onClickConnectEnd:w,onNodeMouseEnter:k,onNodeMouseMove:E,onNodeMouseLeave:M,onNodeContextMenu:I,onNodeDoubleClick:R,onNodeDragStart:U,onNodeDrag:B,onNodeDragStop:Z,onNodesDelete:D,onEdgesDelete:L,onDelete:G,onSelectionChange:V,onSelectionDragStart:A,onSelectionDrag:q,onSelectionDragStop:O,onSelectionContextMenu:H,onSelectionStart:X,onSelectionEnd:K,onBeforeDelete:T,connectionMode:j,connectionLineType:Y=ca.Bezier,connectionLineStyle:z,connectionLineComponent:F,connectionLineContainerStyle:$,deleteKeyCode:Q="Backspace",selectionKeyCode:J="Shift",selectionOnDrag:W=!1,selectionMode:te=Eo.Full,panActivationKeyCode:ce="Space",multiSelectionKeyCode:fe=So()?"Meta":"Control",zoomActivationKeyCode:be=So()?"Meta":"Control",snapToGrid:we,snapGrid:Ne,onlyRenderVisibleElements:je=!1,selectNodesOnDrag:$e,nodesDraggable:st,autoPanOnNodeFocus:Rt,nodesConnectable:Yt,nodesFocusable:Pt,nodeOrigin:Xt=gN,edgesFocusable:Yn,edgesReconnectable:wn,elementsSelectable:ct=!0,defaultViewport:It=JI,minZoom:ue=.5,maxZoom:xe=2,translateExtent:Oe=wo,preventScrolling:Fe=!0,nodeExtent:Ze,defaultMarkerColor:on="#b1b1b7",zoomOnScroll:En=!0,zoomOnPinch:Kt=!0,panOnScroll:At=!1,panOnScrollSpeed:Wt=.5,panOnScrollMode:ut=Pa.Free,zoomOnDoubleClick:zn=!0,panOnDrag:cn=!0,onPaneClick:Ni,onPaneMouseEnter:nt,onPaneMouseMove:Xn,onPaneMouseLeave:An,onPaneScroll:hn,onPaneContextMenu:re,paneClickDistance:me=1,nodeClickDistance:Ee=0,children:Pe,onReconnect:St,onReconnectStart:gt,onReconnectEnd:Ae,onEdgeContextMenu:Se,onEdgeDoubleClick:Ue,onEdgeMouseEnter:Bt,onEdgeMouseMove:Mt,onEdgeMouseLeave:xr,reconnectRadius:Si=10,onNodesChange:ki,onEdgesChange:sr,noDragClassName:Ut="nodrag",noWheelClassName:mn="nowheel",noPanClassName:yr="nopan",fitView:Ti,fitViewOptions:pa,connectOnClick:Ci,attributionPosition:Ja,proOptions:Wr,defaultEdgeOptions:ga,elevateNodesOnSelect:bn=!0,elevateEdgesOnSelect:vr=!1,disableKeyboardA11y:_r=!1,autoPanOnConnect:Ir,autoPanOnNodeDrag:Ft,autoPanOnSelection:es=!0,autoPanSpeed:Jr,connectionRadius:wr,isValidConnection:ye,onError:Le,style:Qe,id:ft,nodeDragThreshold:Ht,connectionDragThreshold:pn,viewport:Mn,onViewportChange:Nn,width:_t,height:On,colorMode:ts="light",debug:Ai,onScroll:Br,ariaLabelConfig:Mi,zIndexMode:ns="basic",...Sn},ba){const Er=ft||"1",Oi=r8(ts),un=ee.useCallback(xa=>{xa.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),Br==null||Br(xa)},[Br]);return g.jsx("div",{"data-testid":"rf__wrapper",...Sn,onScroll:un,style:{...Qe,...C9},ref:ba,className:ln(["react-flow",s,Oi]),id:ft,role:"application",children:g.jsxs(T9,{nodes:e,edges:t,width:_t,height:On,fitView:Ti,fitViewOptions:pa,minZoom:ue,maxZoom:xe,nodeOrigin:Xt,nodeExtent:Ze,zIndexMode:ns,children:[g.jsx(n8,{nodes:e,edges:t,defaultNodes:r,defaultEdges:a,onConnect:x,onConnectStart:_,onConnectEnd:N,onClickConnectStart:S,onClickConnectEnd:w,nodesDraggable:st,autoPanOnNodeFocus:Rt,nodesConnectable:Yt,nodesFocusable:Pt,edgesFocusable:Yn,edgesReconnectable:wn,elementsSelectable:ct,elevateNodesOnSelect:bn,elevateEdgesOnSelect:vr,minZoom:ue,maxZoom:xe,nodeExtent:Ze,onNodesChange:ki,onEdgesChange:sr,snapToGrid:we,snapGrid:Ne,connectionMode:j,translateExtent:Oe,connectOnClick:Ci,defaultEdgeOptions:ga,fitView:Ti,fitViewOptions:pa,onNodesDelete:D,onEdgesDelete:L,onDelete:G,onNodeDragStart:U,onNodeDrag:B,onNodeDragStop:Z,onSelectionDrag:q,onSelectionDragStart:A,onSelectionDragStop:O,onMove:m,onMoveStart:p,onMoveEnd:y,noPanClassName:yr,nodeOrigin:Xt,rfId:Er,autoPanOnConnect:Ir,autoPanOnNodeDrag:Ft,autoPanSpeed:Jr,onError:Le,connectionRadius:wr,isValidConnection:ye,selectNodesOnDrag:$e,nodeDragThreshold:Ht,connectionDragThreshold:pn,onBeforeDelete:T,debug:Ai,ariaLabelConfig:Mi,zIndexMode:ns}),g.jsx(E9,{onInit:h,onNodeClick:d,onEdgeClick:f,onNodeMouseEnter:k,onNodeMouseMove:E,onNodeMouseLeave:M,onNodeContextMenu:I,onNodeDoubleClick:R,nodeTypes:o,edgeTypes:c,connectionLineType:Y,connectionLineStyle:z,connectionLineComponent:F,connectionLineContainerStyle:$,selectionKeyCode:J,selectionOnDrag:W,selectionMode:te,deleteKeyCode:Q,multiSelectionKeyCode:fe,panActivationKeyCode:ce,zoomActivationKeyCode:be,onlyRenderVisibleElements:je,defaultViewport:It,translateExtent:Oe,minZoom:ue,maxZoom:xe,preventScrolling:Fe,zoomOnScroll:En,zoomOnPinch:Kt,zoomOnDoubleClick:zn,panOnScroll:At,panOnScrollSpeed:Wt,panOnScrollMode:ut,panOnDrag:cn,autoPanOnSelection:es,onPaneClick:Ni,onPaneMouseEnter:nt,onPaneMouseMove:Xn,onPaneMouseLeave:An,onPaneScroll:hn,onPaneContextMenu:re,paneClickDistance:me,nodeClickDistance:Ee,onSelectionContextMenu:H,onSelectionStart:X,onSelectionEnd:K,onReconnect:St,onReconnectStart:gt,onReconnectEnd:Ae,onEdgeContextMenu:Se,onEdgeDoubleClick:Ue,onEdgeMouseEnter:Bt,onEdgeMouseMove:Mt,onEdgeMouseLeave:xr,reconnectRadius:Si,defaultMarkerColor:on,noDragClassName:Ut,noWheelClassName:mn,noPanClassName:yr,rfId:Er,disableKeyboardA11y:_r,nodeExtent:Ze,viewport:Mn,onViewportChange:Nn,nodesDraggable:st}),g.jsx(WI,{onSelectionChange:V}),Pe,g.jsx(YI,{proOptions:Wr,position:Ja}),g.jsx(VI,{rfId:Er,disableKeyboardA11y:_r})]})})}var M9=vN(A9);function O9(e){const[t,r]=ee.useState(e),a=ee.useCallback(s=>r(o=>xN(s,o)),[]);return[t,r,a]}function R9(e){const[t,r]=ee.useState(e),a=ee.useCallback(s=>r(o=>yN(s,o)),[]);return[t,r,a]}function D9({dimensions:e,lineWidth:t,variant:r,className:a}){return g.jsx("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:ln(["react-flow__background-pattern",r,a])})}function j9({radius:e,className:t}){return g.jsx("circle",{cx:e,cy:e,r:e,className:ln(["react-flow__background-pattern","dots",t])})}var da;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(da||(da={}));const L9={[da.Dots]:1,[da.Lines]:1,[da.Cross]:6},z9=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function VN({id:e,variant:t=da.Dots,gap:r=20,size:a,lineWidth:s=1,offset:o=0,color:c,bgColor:d,style:f,className:h,patternClassName:m}){const p=ee.useRef(null),{transform:y,patternId:x}=dt(z9,qt),_=a||L9[t],N=t===da.Dots,S=t===da.Cross,w=Array.isArray(r)?r:[r,r],k=[w[0]*y[2]||1,w[1]*y[2]||1],E=_*y[2],M=Array.isArray(o)?o:[o,o],I=S?[E,E]:k,R=[M[0]*y[2]||1+I[0]/2,M[1]*y[2]||1+I[1]/2],U=`${x}${e||""}`;return g.jsxs("svg",{className:ln(["react-flow__background",h]),style:{...f,...rd,"--xy-background-color-props":d,"--xy-background-pattern-color-props":c},ref:p,"data-testid":"rf__background",children:[g.jsx("pattern",{id:U,x:y[0]%k[0],y:y[1]%k[1],width:k[0],height:k[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${R[0]},-${R[1]})`,children:N?g.jsx(j9,{radius:E/2,className:m}):g.jsx(D9,{dimensions:I,lineWidth:s,variant:t,className:m})}),g.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${U})`})]})}VN.displayName="Background";const I9=ee.memo(VN);function B9(){return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:g.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function U9(){return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:g.jsx("path",{d:"M0 0h32v4.2H0z"})})}function H9(){return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:g.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function $9(){return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:g.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function q9(){return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:g.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function du({children:e,className:t,...r}){return g.jsx("button",{type:"button",className:ln(["react-flow__controls-button",t]),...r,children:e})}const P9=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function YN({style:e,showZoom:t=!0,showFitView:r=!0,showInteractive:a=!0,fitViewOptions:s,onZoomIn:o,onZoomOut:c,onFitView:d,onInteractiveChange:f,className:h,children:m,position:p="bottom-left",orientation:y="vertical","aria-label":x}){const _=Lt(),{isInteractive:N,minZoomReached:S,maxZoomReached:w,ariaLabelConfig:k}=dt(P9,qt),{zoomIn:E,zoomOut:M,fitView:I}=Uo(),R=()=>{E(),o==null||o()},U=()=>{M(),c==null||c()},B=()=>{I(s),d==null||d()},Z=()=>{_.setState({nodesDraggable:!N,nodesConnectable:!N,elementsSelectable:!N}),f==null||f(!N)},D=y==="horizontal"?"horizontal":"vertical";return g.jsxs(nd,{className:ln(["react-flow__controls",D,h]),position:p,style:e,"data-testid":"rf__controls","aria-label":x??k["controls.ariaLabel"],children:[t&&g.jsxs(g.Fragment,{children:[g.jsx(du,{onClick:R,className:"react-flow__controls-zoomin",title:k["controls.zoomIn.ariaLabel"],"aria-label":k["controls.zoomIn.ariaLabel"],disabled:w,children:g.jsx(B9,{})}),g.jsx(du,{onClick:U,className:"react-flow__controls-zoomout",title:k["controls.zoomOut.ariaLabel"],"aria-label":k["controls.zoomOut.ariaLabel"],disabled:S,children:g.jsx(U9,{})})]}),r&&g.jsx(du,{className:"react-flow__controls-fitview",onClick:B,title:k["controls.fitView.ariaLabel"],"aria-label":k["controls.fitView.ariaLabel"],children:g.jsx(H9,{})}),a&&g.jsx(du,{className:"react-flow__controls-interactive",onClick:Z,title:k["controls.interactive.ariaLabel"],"aria-label":k["controls.interactive.ariaLabel"],children:N?g.jsx(q9,{}):g.jsx($9,{})}),m]})}YN.displayName="Controls";const F9=ee.memo(YN);function G9({id:e,x:t,y:r,width:a,height:s,style:o,color:c,strokeColor:d,strokeWidth:f,className:h,borderRadius:m,shapeRendering:p,selected:y,onClick:x}){const{background:_,backgroundColor:N}=o||{},S=c||_||N;return g.jsx("rect",{className:ln(["react-flow__minimap-node",{selected:y},h]),x:t,y:r,rx:m,ry:m,width:a,height:s,style:{fill:S,stroke:d,strokeWidth:f},shapeRendering:p,onClick:x?w=>x(w,e):void 0})}const V9=ee.memo(G9),Y9=e=>e.nodes.map(t=>t.id),Cm=e=>e instanceof Function?e:()=>e;function X9({nodeStrokeColor:e,nodeColor:t,nodeClassName:r="",nodeBorderRadius:a=5,nodeStrokeWidth:s,nodeComponent:o=V9,onClick:c}){const d=dt(Y9,qt),f=Cm(t),h=Cm(e),m=Cm(r),p=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return g.jsx(g.Fragment,{children:d.map(y=>g.jsx(Z9,{id:y,nodeColorFunc:f,nodeStrokeColorFunc:h,nodeClassNameFunc:m,nodeBorderRadius:a,nodeStrokeWidth:s,NodeComponent:o,onClick:c,shapeRendering:p},y))})}function K9({id:e,nodeColorFunc:t,nodeStrokeColorFunc:r,nodeClassNameFunc:a,nodeBorderRadius:s,nodeStrokeWidth:o,shapeRendering:c,NodeComponent:d,onClick:f}){const{node:h,x:m,y:p,width:y,height:x}=dt(_=>{const N=_.nodeLookup.get(e);if(!N)return{node:void 0,x:0,y:0,width:0,height:0};const S=N.internals.userNode,{x:w,y:k}=N.internals.positionAbsolute,{width:E,height:M}=Qr(S);return{node:S,x:w,y:k,width:E,height:M}},qt);return!h||h.hidden||!VE(h)?null:g.jsx(d,{x:m,y:p,width:y,height:x,style:h.style,selected:!!h.selected,className:a(h),color:t(h),borderRadius:s,strokeColor:r(h),strokeWidth:o,shapeRendering:c,onClick:f,id:h.id})}const Z9=ee.memo(K9);var Q9=ee.memo(X9);const W9=200,J9=150,eB=e=>!e.hidden,tB=e=>{const t={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:t,boundingRect:e.nodeLookup.size>0?PE(zo(e.nodeLookup,{filter:eB}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},V1=(e,t)=>e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,nB=(e,t)=>V1(e.viewBB,t.viewBB)&&V1(e.boundingRect,t.boundingRect)&&e.rfId===t.rfId&&e.panZoom===t.panZoom&&e.translateExtent===t.translateExtent&&e.flowWidth===t.flowWidth&&e.flowHeight===t.flowHeight&&e.ariaLabelConfig===t.ariaLabelConfig,rB="react-flow__minimap-desc";function XN({style:e,className:t,nodeStrokeColor:r,nodeColor:a,nodeClassName:s="",nodeBorderRadius:o=5,nodeStrokeWidth:c,nodeComponent:d,bgColor:f,maskColor:h,maskStrokeColor:m,maskStrokeWidth:p,position:y="bottom-right",onClick:x,onNodeClick:_,pannable:N=!1,zoomable:S=!1,ariaLabel:w,inversePan:k,zoomStep:E=1,offsetScale:M=5}){const I=Lt(),R=ee.useRef(null),{boundingRect:U,viewBB:B,rfId:Z,panZoom:D,translateExtent:L,flowWidth:G,flowHeight:V,ariaLabelConfig:A}=dt(tB,nB),q=(e==null?void 0:e.width)??W9,O=(e==null?void 0:e.height)??J9,H=U.width/q,X=U.height/O,K=Math.max(H,X),T=K*q,j=K*O,Y=M*K,z=U.x-(T-U.width)/2-Y,F=U.y-(j-U.height)/2-Y,$=T+Y*2,Q=j+Y*2,J=`${rB}-${Z}`,W=ee.useRef(0),te=ee.useRef();W.current=K,ee.useEffect(()=>{if(R.current&&D)return te.current=mI({domNode:R.current,panZoom:D,getTransform:()=>I.getState().transform,getViewScale:()=>W.current}),()=>{var we;(we=te.current)==null||we.destroy()}},[D]),ee.useEffect(()=>{var we;(we=te.current)==null||we.update({translateExtent:L,width:G,height:V,inversePan:k,pannable:N,zoomStep:E,zoomable:S})},[N,S,k,E,L,G,V]);const ce=x?we=>{var $e;const[Ne,je]=(($e=te.current)==null?void 0:$e.pointer(we))||[0,0];x(we,{x:Ne,y:je})}:void 0,fe=_?ee.useCallback((we,Ne)=>{const je=I.getState().nodeLookup.get(Ne).internals.userNode;_(we,je)},[]):void 0,be=w??A["minimap.ariaLabel"];return g.jsx(nd,{position:y,style:{...e,"--xy-minimap-background-color-props":typeof f=="string"?f:void 0,"--xy-minimap-mask-background-color-props":typeof h=="string"?h:void 0,"--xy-minimap-mask-stroke-color-props":typeof m=="string"?m:void 0,"--xy-minimap-mask-stroke-width-props":typeof p=="number"?p*K:void 0,"--xy-minimap-node-background-color-props":typeof a=="string"?a:void 0,"--xy-minimap-node-stroke-color-props":typeof r=="string"?r:void 0,"--xy-minimap-node-stroke-width-props":typeof c=="number"?c:void 0},className:ln(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:g.jsxs("svg",{width:q,height:O,viewBox:`${z} ${F} ${$} ${Q}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":J,ref:R,onClick:ce,children:[be&&g.jsx("title",{id:J,children:be}),g.jsx(Q9,{onClick:fe,nodeColor:a,nodeStrokeColor:r,nodeBorderRadius:o,nodeClassName:s,nodeStrokeWidth:c,nodeComponent:d}),g.jsx("path",{className:"react-flow__minimap-mask",d:`M${z-Y},${F-Y}h${$+Y*2}v${Q+Y*2}h${-$-Y*2}z
+ M${B.x},${B.y}h${B.width}v${B.height}h${-B.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}XN.displayName="MiniMap";const iB=ee.memo(XN),aB=e=>t=>e?`${Math.max(1/t.transform[2],1)}`:void 0,sB={[Js.Line]:"right",[Js.Handle]:"bottom-right"};function lB({nodeId:e,position:t,variant:r=Js.Handle,className:a,style:s=void 0,children:o,color:c,minWidth:d=10,minHeight:f=10,maxWidth:h=Number.MAX_VALUE,maxHeight:m=Number.MAX_VALUE,keepAspectRatio:p=!1,resizeDirection:y,autoScale:x=!0,shouldResize:_,onResizeStart:N,onResize:S,onResizeEnd:w}){const k=SN(),E=typeof e=="string"?e:k,M=Lt(),I=ee.useRef(null),R=r===Js.Handle,U=dt(ee.useCallback(aB(R&&x),[R,x]),qt),B=ee.useRef(null),Z=t??sB[r];ee.useEffect(()=>{if(!(!I.current||!E))return B.current||(B.current=TI({domNode:I.current,nodeId:E,getStoreItems:()=>{const{nodeLookup:L,transform:G,snapGrid:V,snapToGrid:A,nodeOrigin:q,domNode:O}=M.getState();return{nodeLookup:L,transform:G,snapGrid:V,snapToGrid:A,nodeOrigin:q,paneDomNode:O}},onChange:(L,G)=>{const{triggerNodeChanges:V,nodeLookup:A,parentLookup:q,nodeOrigin:O}=M.getState(),H=[],X={x:L.x,y:L.y},K=A.get(E);if(K&&K.expandParent&&K.parentId){const T=K.origin??O,j=L.width??K.measured.width??0,Y=L.height??K.measured.height??0,z={id:K.id,parentId:K.parentId,rect:{width:j,height:Y,...YE({x:L.x??K.position.x,y:L.y??K.position.y},{width:j,height:Y},K.parentId,A,T)}},F=lg([z],A,q,O);H.push(...F),X.x=L.x?Math.max(T[0]*j,L.x):void 0,X.y=L.y?Math.max(T[1]*Y,L.y):void 0}if(X.x!==void 0&&X.y!==void 0){const T={id:E,type:"position",position:{...X}};H.push(T)}if(L.width!==void 0&&L.height!==void 0){const j={id:E,type:"dimensions",resizing:!0,setAttributes:y?y==="horizontal"?"width":"height":!0,dimensions:{width:L.width,height:L.height}};H.push(j)}for(const T of G){const j={...T,type:"position"};H.push(j)}V(H)},onEnd:({width:L,height:G})=>{const V={id:E,type:"dimensions",resizing:!1,dimensions:{width:L,height:G}};M.getState().triggerNodeChanges([V])}})),B.current.update({controlPosition:Z,boundaries:{minWidth:d,minHeight:f,maxWidth:h,maxHeight:m},keepAspectRatio:p,resizeDirection:y,onResizeStart:N,onResize:S,onResizeEnd:w,shouldResize:_}),()=>{var L;(L=B.current)==null||L.destroy()}},[Z,d,f,h,m,p,N,S,w,_]);const D=Z.split("-");return g.jsx("div",{className:ln(["react-flow__resize-control","nodrag",...D,r,a]),ref:I,style:{...s,scale:U,...c&&{[R?"backgroundColor":"borderColor"]:c}},children:o})}ee.memo(lB);var vt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Lr=vt((e,t)=>{var r=Object.defineProperty,a=(V,A,q)=>A in V?r(V,A,{enumerable:!0,configurable:!0,writable:!0,value:q}):V[A]=q,s=(V,A)=>()=>(A||V((A={exports:{}}).exports,A),A.exports),o=(V,A,q)=>a(V,typeof A!="symbol"?A+"":A,q),c=s((V,A)=>{var q="\0",O="\0",H="",X=class{constructor(F){o(this,"_isDirected",!0),o(this,"_isMultigraph",!1),o(this,"_isCompound",!1),o(this,"_label"),o(this,"_defaultNodeLabelFn",()=>{}),o(this,"_defaultEdgeLabelFn",()=>{}),o(this,"_nodes",{}),o(this,"_in",{}),o(this,"_preds",{}),o(this,"_out",{}),o(this,"_sucs",{}),o(this,"_edgeObjs",{}),o(this,"_edgeLabels",{}),o(this,"_nodeCount",0),o(this,"_edgeCount",0),o(this,"_parent"),o(this,"_children"),F&&(this._isDirected=Object.hasOwn(F,"directed")?F.directed:!0,this._isMultigraph=Object.hasOwn(F,"multigraph")?F.multigraph:!1,this._isCompound=Object.hasOwn(F,"compound")?F.compound:!1),this._isCompound&&(this._parent={},this._children={},this._children[O]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(F){return this._label=F,this}graph(){return this._label}setDefaultNodeLabel(F){return this._defaultNodeLabelFn=F,typeof F!="function"&&(this._defaultNodeLabelFn=()=>F),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var F=this;return this.nodes().filter($=>Object.keys(F._in[$]).length===0)}sinks(){var F=this;return this.nodes().filter($=>Object.keys(F._out[$]).length===0)}setNodes(F,$){var Q=arguments,J=this;return F.forEach(function(W){Q.length>1?J.setNode(W,$):J.setNode(W)}),this}setNode(F,$){return Object.hasOwn(this._nodes,F)?(arguments.length>1&&(this._nodes[F]=$),this):(this._nodes[F]=arguments.length>1?$:this._defaultNodeLabelFn(F),this._isCompound&&(this._parent[F]=O,this._children[F]={},this._children[O][F]=!0),this._in[F]={},this._preds[F]={},this._out[F]={},this._sucs[F]={},++this._nodeCount,this)}node(F){return this._nodes[F]}hasNode(F){return Object.hasOwn(this._nodes,F)}removeNode(F){var $=this;if(Object.hasOwn(this._nodes,F)){var Q=J=>$.removeEdge($._edgeObjs[J]);delete this._nodes[F],this._isCompound&&(this._removeFromParentsChildList(F),delete this._parent[F],this.children(F).forEach(function(J){$.setParent(J)}),delete this._children[F]),Object.keys(this._in[F]).forEach(Q),delete this._in[F],delete this._preds[F],Object.keys(this._out[F]).forEach(Q),delete this._out[F],delete this._sucs[F],--this._nodeCount}return this}setParent(F,$){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if($===void 0)$=O;else{$+="";for(var Q=$;Q!==void 0;Q=this.parent(Q))if(Q===F)throw new Error("Setting "+$+" as parent of "+F+" would create a cycle");this.setNode($)}return this.setNode(F),this._removeFromParentsChildList(F),this._parent[F]=$,this._children[$][F]=!0,this}_removeFromParentsChildList(F){delete this._children[this._parent[F]][F]}parent(F){if(this._isCompound){var $=this._parent[F];if($!==O)return $}}children(F=O){if(this._isCompound){var $=this._children[F];if($)return Object.keys($)}else{if(F===O)return this.nodes();if(this.hasNode(F))return[]}}predecessors(F){var $=this._preds[F];if($)return Object.keys($)}successors(F){var $=this._sucs[F];if($)return Object.keys($)}neighbors(F){var $=this.predecessors(F);if($){let J=new Set($);for(var Q of this.successors(F))J.add(Q);return Array.from(J.values())}}isLeaf(F){var $;return this.isDirected()?$=this.successors(F):$=this.neighbors(F),$.length===0}filterNodes(F){var $=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});$.setGraph(this.graph());var Q=this;Object.entries(this._nodes).forEach(function([te,ce]){F(te)&&$.setNode(te,ce)}),Object.values(this._edgeObjs).forEach(function(te){$.hasNode(te.v)&&$.hasNode(te.w)&&$.setEdge(te,Q.edge(te))});var J={};function W(te){var ce=Q.parent(te);return ce===void 0||$.hasNode(ce)?(J[te]=ce,ce):ce in J?J[ce]:W(ce)}return this._isCompound&&$.nodes().forEach(te=>$.setParent(te,W(te))),$}setDefaultEdgeLabel(F){return this._defaultEdgeLabelFn=F,typeof F!="function"&&(this._defaultEdgeLabelFn=()=>F),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(F,$){var Q=this,J=arguments;return F.reduce(function(W,te){return J.length>1?Q.setEdge(W,te,$):Q.setEdge(W,te),te}),this}setEdge(){var F,$,Q,J,W=!1,te=arguments[0];typeof te=="object"&&te!==null&&"v"in te?(F=te.v,$=te.w,Q=te.name,arguments.length===2&&(J=arguments[1],W=!0)):(F=te,$=arguments[1],Q=arguments[3],arguments.length>2&&(J=arguments[2],W=!0)),F=""+F,$=""+$,Q!==void 0&&(Q=""+Q);var ce=j(this._isDirected,F,$,Q);if(Object.hasOwn(this._edgeLabels,ce))return W&&(this._edgeLabels[ce]=J),this;if(Q!==void 0&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(F),this.setNode($),this._edgeLabels[ce]=W?J:this._defaultEdgeLabelFn(F,$,Q);var fe=Y(this._isDirected,F,$,Q);return F=fe.v,$=fe.w,Object.freeze(fe),this._edgeObjs[ce]=fe,K(this._preds[$],F),K(this._sucs[F],$),this._in[$][ce]=fe,this._out[F][ce]=fe,this._edgeCount++,this}edge(F,$,Q){var J=arguments.length===1?z(this._isDirected,arguments[0]):j(this._isDirected,F,$,Q);return this._edgeLabels[J]}edgeAsObj(){let F=this.edge(...arguments);return typeof F!="object"?{label:F}:F}hasEdge(F,$,Q){var J=arguments.length===1?z(this._isDirected,arguments[0]):j(this._isDirected,F,$,Q);return Object.hasOwn(this._edgeLabels,J)}removeEdge(F,$,Q){var J=arguments.length===1?z(this._isDirected,arguments[0]):j(this._isDirected,F,$,Q),W=this._edgeObjs[J];return W&&(F=W.v,$=W.w,delete this._edgeLabels[J],delete this._edgeObjs[J],T(this._preds[$],F),T(this._sucs[F],$),delete this._in[$][J],delete this._out[F][J],this._edgeCount--),this}inEdges(F,$){return this.isDirected()?this.filterEdges(this._in[F],F,$):this.nodeEdges(F,$)}outEdges(F,$){return this.isDirected()?this.filterEdges(this._out[F],F,$):this.nodeEdges(F,$)}nodeEdges(F,$){if(F in this._nodes)return this.filterEdges({...this._in[F],...this._out[F]},F,$)}filterEdges(F,$,Q){if(F){var J=Object.values(F);return Q?J.filter(function(W){return W.v===$&&W.w===Q||W.v===Q&&W.w===$}):J}}};function K(F,$){F[$]?F[$]++:F[$]=1}function T(F,$){--F[$]||delete F[$]}function j(F,$,Q,J){var W=""+$,te=""+Q;if(!F&&W>te){var ce=W;W=te,te=ce}return W+H+te+H+(J===void 0?q:J)}function Y(F,$,Q,J){var W=""+$,te=""+Q;if(!F&&W>te){var ce=W;W=te,te=ce}var fe={v:W,w:te};return J&&(fe.name=J),fe}function z(F,$){return j(F,$.v,$.w,$.name)}A.exports=X}),d=s((V,A)=>{A.exports="3.0.2"}),f=s((V,A)=>{A.exports={Graph:c(),version:d()}}),h=s((V,A)=>{var q=c();A.exports={write:O,read:K};function O(T){var j={options:{directed:T.isDirected(),multigraph:T.isMultigraph(),compound:T.isCompound()},nodes:H(T),edges:X(T)};return T.graph()!==void 0&&(j.value=structuredClone(T.graph())),j}function H(T){return T.nodes().map(function(j){var Y=T.node(j),z=T.parent(j),F={v:j};return Y!==void 0&&(F.value=Y),z!==void 0&&(F.parent=z),F})}function X(T){return T.edges().map(function(j){var Y=T.edge(j),z={v:j.v,w:j.w};return j.name!==void 0&&(z.name=j.name),Y!==void 0&&(z.value=Y),z})}function K(T){var j=new q(T.options).setGraph(T.value);return T.nodes.forEach(function(Y){j.setNode(Y.v,Y.value),Y.parent&&j.setParent(Y.v,Y.parent)}),T.edges.forEach(function(Y){j.setEdge({v:Y.v,w:Y.w,name:Y.name},Y.value)}),j}}),m=s((V,A)=>{A.exports=O;var q=()=>1;function O(X,K,T,j){return H(X,String(K),T||q,j||function(Y){return X.outEdges(Y)})}function H(X,K,T,j){var Y={},z=!0,F=0,$=X.nodes(),Q=function(ce){var fe=T(ce);Y[ce.v].distance+fe<Y[ce.w].distance&&(Y[ce.w]={distance:Y[ce.v].distance+fe,predecessor:ce.v},z=!0)},J=function(){$.forEach(function(ce){j(ce).forEach(function(fe){var be=fe.v===ce?fe.v:fe.w,we=be===fe.v?fe.w:fe.v;Q({v:be,w:we})})})};$.forEach(function(ce){var fe=ce===K?0:Number.POSITIVE_INFINITY;Y[ce]={distance:fe}});for(var W=$.length,te=1;te<W&&(z=!1,F++,J(),!!z);te++);if(F===W-1&&(z=!1,J(),z))throw new Error("The graph contains a negative weight cycle");return Y}}),p=s((V,A)=>{A.exports=q;function q(O){var H={},X=[],K;function T(j){Object.hasOwn(H,j)||(H[j]=!0,K.push(j),O.successors(j).forEach(T),O.predecessors(j).forEach(T))}return O.nodes().forEach(function(j){K=[],T(j),K.length&&X.push(K)}),X}}),y=s((V,A)=>{var q=class{constructor(){o(this,"_arr",[]),o(this,"_keyIndices",{})}size(){return this._arr.length}keys(){return this._arr.map(function(O){return O.key})}has(O){return Object.hasOwn(this._keyIndices,O)}priority(O){var H=this._keyIndices[O];if(H!==void 0)return this._arr[H].priority}min(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key}add(O,H){var X=this._keyIndices;if(O=String(O),!Object.hasOwn(X,O)){var K=this._arr,T=K.length;return X[O]=T,K.push({key:O,priority:H}),this._decrease(T),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var O=this._arr.pop();return delete this._keyIndices[O.key],this._heapify(0),O.key}decrease(O,H){var X=this._keyIndices[O];if(H>this._arr[X].priority)throw new Error("New priority is greater than current priority. Key: "+O+" Old: "+this._arr[X].priority+" New: "+H);this._arr[X].priority=H,this._decrease(X)}_heapify(O){var H=this._arr,X=2*O,K=X+1,T=O;X<H.length&&(T=H[X].priority<H[T].priority?X:T,K<H.length&&(T=H[K].priority<H[T].priority?K:T),T!==O&&(this._swap(O,T),this._heapify(T)))}_decrease(O){for(var H=this._arr,X=H[O].priority,K;O!==0&&(K=O>>1,!(H[K].priority<X));)this._swap(O,K),O=K}_swap(O,H){var X=this._arr,K=this._keyIndices,T=X[O],j=X[H];X[O]=j,X[H]=T,K[j.key]=O,K[T.key]=H}};A.exports=q}),x=s((V,A)=>{var q=y();A.exports=H;var O=()=>1;function H(K,T,j,Y){var z=function(F){return K.outEdges(F)};return X(K,String(T),j||O,Y||z)}function X(K,T,j,Y){var z={},F=new q,$,Q,J=function(W){var te=W.v!==$?W.v:W.w,ce=z[te],fe=j(W),be=Q.distance+fe;if(fe<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+W+" Weight: "+fe);be<ce.distance&&(ce.distance=be,ce.predecessor=$,F.decrease(te,be))};for(K.nodes().forEach(function(W){var te=W===T?0:Number.POSITIVE_INFINITY;z[W]={distance:te},F.add(W,te)});F.size()>0&&($=F.removeMin(),Q=z[$],Q.distance!==Number.POSITIVE_INFINITY);)Y($).forEach(J);return z}}),_=s((V,A)=>{var q=x();A.exports=O;function O(H,X,K){return H.nodes().reduce(function(T,j){return T[j]=q(H,j,X,K),T},{})}}),N=s((V,A)=>{A.exports=q;function q(H,X,K){if(H[X].predecessor!==void 0)throw new Error("Invalid source vertex");if(H[K].predecessor===void 0&&K!==X)throw new Error("Invalid destination vertex");return{weight:H[K].distance,path:O(H,X,K)}}function O(H,X,K){for(var T=[],j=K;j!==X;)T.push(j),j=H[j].predecessor;return T.push(X),T.reverse()}}),S=s((V,A)=>{A.exports=q;function q(O){var H=0,X=[],K={},T=[];function j(Y){var z=K[Y]={onStack:!0,lowlink:H,index:H++};if(X.push(Y),O.successors(Y).forEach(function(Q){Object.hasOwn(K,Q)?K[Q].onStack&&(z.lowlink=Math.min(z.lowlink,K[Q].index)):(j(Q),z.lowlink=Math.min(z.lowlink,K[Q].lowlink))}),z.lowlink===z.index){var F=[],$;do $=X.pop(),K[$].onStack=!1,F.push($);while(Y!==$);T.push(F)}}return O.nodes().forEach(function(Y){Object.hasOwn(K,Y)||j(Y)}),T}}),w=s((V,A)=>{var q=S();A.exports=O;function O(H){return q(H).filter(function(X){return X.length>1||X.length===1&&H.hasEdge(X[0],X[0])})}}),k=s((V,A)=>{A.exports=O;var q=()=>1;function O(X,K,T){return H(X,K||q,T||function(j){return X.outEdges(j)})}function H(X,K,T){var j={},Y=X.nodes();return Y.forEach(function(z){j[z]={},j[z][z]={distance:0},Y.forEach(function(F){z!==F&&(j[z][F]={distance:Number.POSITIVE_INFINITY})}),T(z).forEach(function(F){var $=F.v===z?F.w:F.v,Q=K(F);j[z][$]={distance:Q,predecessor:z}})}),Y.forEach(function(z){var F=j[z];Y.forEach(function($){var Q=j[$];Y.forEach(function(J){var W=Q[z],te=F[J],ce=Q[J],fe=W.distance+te.distance;fe<ce.distance&&(ce.distance=fe,ce.predecessor=te.predecessor)})})}),j}}),E=s((V,A)=>{function q(H){var X={},K={},T=[];function j(Y){if(Object.hasOwn(K,Y))throw new O;Object.hasOwn(X,Y)||(K[Y]=!0,X[Y]=!0,H.predecessors(Y).forEach(j),delete K[Y],T.push(Y))}if(H.sinks().forEach(j),Object.keys(X).length!==H.nodeCount())throw new O;return T}var O=class extends Error{constructor(){super(...arguments)}};A.exports=q,q.CycleException=O}),M=s((V,A)=>{var q=E();A.exports=O;function O(H){try{q(H)}catch(X){if(X instanceof q.CycleException)return!1;throw X}return!0}}),I=s((V,A)=>{A.exports=q;function q(H,X,K,T,j){Array.isArray(X)||(X=[X]);var Y=(H.isDirected()?H.successors:H.neighbors).bind(H),z={};return X.forEach(function(F){if(!H.hasNode(F))throw new Error("Graph does not have node: "+F);j=O(H,F,K==="post",z,Y,T,j)}),j}function O(H,X,K,T,j,Y,z){return Object.hasOwn(T,X)||(T[X]=!0,K||(z=Y(z,X)),j(X).forEach(function(F){z=O(H,F,K,T,j,Y,z)}),K&&(z=Y(z,X))),z}}),R=s((V,A)=>{var q=I();A.exports=O;function O(H,X,K){return q(H,X,K,function(T,j){return T.push(j),T},[])}}),U=s((V,A)=>{var q=R();A.exports=O;function O(H,X){return q(H,X,"post")}}),B=s((V,A)=>{var q=R();A.exports=O;function O(H,X){return q(H,X,"pre")}}),Z=s((V,A)=>{var q=c(),O=y();A.exports=H;function H(X,K){var T=new q,j={},Y=new O,z;function F(Q){var J=Q.v===z?Q.w:Q.v,W=Y.priority(J);if(W!==void 0){var te=K(Q);te<W&&(j[J]=z,Y.decrease(J,te))}}if(X.nodeCount()===0)return T;X.nodes().forEach(function(Q){Y.add(Q,Number.POSITIVE_INFINITY),T.setNode(Q)}),Y.decrease(X.nodes()[0],0);for(var $=!1;Y.size()>0;){if(z=Y.removeMin(),Object.hasOwn(j,z))T.setEdge(z,j[z]);else{if($)throw new Error("Input graph is not connected: "+X);$=!0}X.nodeEdges(z).forEach(F)}return T}}),D=s((V,A)=>{var q=x(),O=m();A.exports=H;function H(K,T,j,Y){return X(K,T,j,Y||function(z){return K.outEdges(z)})}function X(K,T,j,Y){if(j===void 0)return q(K,T,j,Y);for(var z=!1,F=K.nodes(),$=0;$<F.length;$++){for(var Q=Y(F[$]),J=0;J<Q.length;J++){var W=Q[J],te=W.v===F[$]?W.v:W.w,ce=te===W.v?W.w:W.v;j({v:te,w:ce})<0&&(z=!0)}if(z)return O(K,T,j,Y)}return q(K,T,j,Y)}}),L=s((V,A)=>{A.exports={bellmanFord:m(),components:p(),dijkstra:x(),dijkstraAll:_(),extractPath:N(),findCycles:w(),floydWarshall:k(),isAcyclic:M(),postorder:U(),preorder:B(),prim:Z(),shortestPaths:D(),reduce:I(),tarjan:S(),topsort:E()}}),G=f();t.exports={Graph:G.Graph,json:h(),alg:L(),version:G.version}}),oB=vt((e,t)=>{var r=class{constructor(){let o={};o._next=o._prev=o,this._sentinel=o}dequeue(){let o=this._sentinel,c=o._prev;if(c!==o)return a(c),c}enqueue(o){let c=this._sentinel;o._prev&&o._next&&a(o),o._next=c._next,c._next._prev=o,c._next=o,o._prev=c}toString(){let o=[],c=this._sentinel,d=c._prev;for(;d!==c;)o.push(JSON.stringify(d,s)),d=d._prev;return"["+o.join(", ")+"]"}};function a(o){o._prev._next=o._next,o._next._prev=o._prev,delete o._next,delete o._prev}function s(o,c){if(o!=="_next"&&o!=="_prev")return c}t.exports=r}),cB=vt((e,t)=>{var r=Lr().Graph,a=oB();t.exports=o;var s=()=>1;function o(p,y){if(p.nodeCount()<=1)return[];let x=f(p,y||s);return c(x.graph,x.buckets,x.zeroIdx).flatMap(_=>p.outEdges(_.v,_.w))}function c(p,y,x){let _=[],N=y[y.length-1],S=y[0],w;for(;p.nodeCount();){for(;w=S.dequeue();)d(p,y,x,w);for(;w=N.dequeue();)d(p,y,x,w);if(p.nodeCount()){for(let k=y.length-2;k>0;--k)if(w=y[k].dequeue(),w){_=_.concat(d(p,y,x,w,!0));break}}}return _}function d(p,y,x,_,N){let S=N?[]:void 0;return p.inEdges(_.v).forEach(w=>{let k=p.edge(w),E=p.node(w.v);N&&S.push({v:w.v,w:w.w}),E.out-=k,h(y,x,E)}),p.outEdges(_.v).forEach(w=>{let k=p.edge(w),E=w.w,M=p.node(E);M.in-=k,h(y,x,M)}),p.removeNode(_.v),S}function f(p,y){let x=new r,_=0,N=0;p.nodes().forEach(k=>{x.setNode(k,{v:k,in:0,out:0})}),p.edges().forEach(k=>{let E=x.edge(k.v,k.w)||0,M=y(k),I=E+M;x.setEdge(k.v,k.w,I),N=Math.max(N,x.node(k.v).out+=M),_=Math.max(_,x.node(k.w).in+=M)});let S=m(N+_+3).map(()=>new a),w=_+1;return x.nodes().forEach(k=>{h(S,w,x.node(k))}),{graph:x,buckets:S,zeroIdx:w}}function h(p,y,x){x.out?x.in?p[x.out-x.in+y].enqueue(x):p[p.length-1].enqueue(x):p[0].enqueue(x)}function m(p){let y=[];for(let x=0;x<p;x++)y.push(x);return y}}),sn=vt((e,t)=>{var r=Lr().Graph;t.exports={addBorderNode:y,addDummyNode:a,applyWithChunking:N,asNonCompoundGraph:o,buildLayerMatrix:h,intersectRect:f,mapValues:B,maxRank:S,normalizeRanks:m,notime:E,partition:w,pick:U,predecessorWeights:d,range:R,removeEmptyRanks:p,simplify:s,successorWeights:c,time:k,uniqueId:I,zipObject:Z};function a(D,L,G,V){for(var A=V;D.hasNode(A);)A=I(V);return G.dummy=L,D.setNode(A,G),A}function s(D){let L=new r().setGraph(D.graph());return D.nodes().forEach(G=>L.setNode(G,D.node(G))),D.edges().forEach(G=>{let V=L.edge(G.v,G.w)||{weight:0,minlen:1},A=D.edge(G);L.setEdge(G.v,G.w,{weight:V.weight+A.weight,minlen:Math.max(V.minlen,A.minlen)})}),L}function o(D){let L=new r({multigraph:D.isMultigraph()}).setGraph(D.graph());return D.nodes().forEach(G=>{D.children(G).length||L.setNode(G,D.node(G))}),D.edges().forEach(G=>{L.setEdge(G,D.edge(G))}),L}function c(D){let L=D.nodes().map(G=>{let V={};return D.outEdges(G).forEach(A=>{V[A.w]=(V[A.w]||0)+D.edge(A).weight}),V});return Z(D.nodes(),L)}function d(D){let L=D.nodes().map(G=>{let V={};return D.inEdges(G).forEach(A=>{V[A.v]=(V[A.v]||0)+D.edge(A).weight}),V});return Z(D.nodes(),L)}function f(D,L){let G=D.x,V=D.y,A=L.x-G,q=L.y-V,O=D.width/2,H=D.height/2;if(!A&&!q)throw new Error("Not possible to find intersection inside of the rectangle");let X,K;return Math.abs(q)*O>Math.abs(A)*H?(q<0&&(H=-H),X=H*A/q,K=H):(A<0&&(O=-O),X=O,K=O*q/A),{x:G+X,y:V+K}}function h(D){let L=R(S(D)+1).map(()=>[]);return D.nodes().forEach(G=>{let V=D.node(G),A=V.rank;A!==void 0&&(L[A][V.order]=G)}),L}function m(D){let L=D.nodes().map(V=>{let A=D.node(V).rank;return A===void 0?Number.MAX_VALUE:A}),G=N(Math.min,L);D.nodes().forEach(V=>{let A=D.node(V);Object.hasOwn(A,"rank")&&(A.rank-=G)})}function p(D){let L=D.nodes().map(O=>D.node(O).rank).filter(O=>O!==void 0),G=N(Math.min,L),V=[];D.nodes().forEach(O=>{let H=D.node(O).rank-G;V[H]||(V[H]=[]),V[H].push(O)});let A=0,q=D.graph().nodeRankFactor;Array.from(V).forEach((O,H)=>{O===void 0&&H%q!==0?--A:O!==void 0&&A&&O.forEach(X=>D.node(X).rank+=A)})}function y(D,L,G,V){let A={width:0,height:0};return arguments.length>=4&&(A.rank=G,A.order=V),a(D,"border",A,L)}function x(D,L=_){let G=[];for(let V=0;V<D.length;V+=L){let A=D.slice(V,V+L);G.push(A)}return G}var _=65535;function N(D,L){if(L.length>_){let G=x(L);return D.apply(null,G.map(V=>D.apply(null,V)))}else return D.apply(null,L)}function S(D){let L=D.nodes().map(G=>{let V=D.node(G).rank;return V===void 0?Number.MIN_VALUE:V});return N(Math.max,L)}function w(D,L){let G={lhs:[],rhs:[]};return D.forEach(V=>{L(V)?G.lhs.push(V):G.rhs.push(V)}),G}function k(D,L){let G=Date.now();try{return L()}finally{console.log(D+" time: "+(Date.now()-G)+"ms")}}function E(D,L){return L()}var M=0;function I(D){var L=++M;return D+(""+L)}function R(D,L,G=1){L==null&&(L=D,D=0);let V=q=>q<L;G<0&&(V=q=>L<q);let A=[];for(let q=D;V(q);q+=G)A.push(q);return A}function U(D,L){let G={};for(let V of L)D[V]!==void 0&&(G[V]=D[V]);return G}function B(D,L){let G=L;return typeof L=="string"&&(G=V=>V[L]),Object.entries(D).reduce((V,[A,q])=>(V[A]=G(q,A),V),{})}function Z(D,L){return D.reduce((G,V,A)=>(G[V]=L[A],G),{})}}),uB=vt((e,t)=>{var r=cB(),a=sn().uniqueId;t.exports={run:s,undo:c};function s(d){(d.graph().acyclicer==="greedy"?r(d,f(d)):o(d)).forEach(h=>{let m=d.edge(h);d.removeEdge(h),m.forwardName=h.name,m.reversed=!0,d.setEdge(h.w,h.v,m,a("rev"))});function f(h){return m=>h.edge(m).weight}}function o(d){let f=[],h={},m={};function p(y){Object.hasOwn(m,y)||(m[y]=!0,h[y]=!0,d.outEdges(y).forEach(x=>{Object.hasOwn(h,x.w)?f.push(x):p(x.w)}),delete h[y])}return d.nodes().forEach(p),f}function c(d){d.edges().forEach(f=>{let h=d.edge(f);if(h.reversed){d.removeEdge(f);let m=h.forwardName;delete h.reversed,delete h.forwardName,d.setEdge(f.w,f.v,h,m)}})}}),dB=vt((e,t)=>{var r=sn();t.exports={run:a,undo:o};function a(c){c.graph().dummyChains=[],c.edges().forEach(d=>s(c,d))}function s(c,d){let f=d.v,h=c.node(f).rank,m=d.w,p=c.node(m).rank,y=d.name,x=c.edge(d),_=x.labelRank;if(p===h+1)return;c.removeEdge(d);let N,S,w;for(w=0,++h;h<p;++w,++h)x.points=[],S={width:0,height:0,edgeLabel:x,edgeObj:d,rank:h},N=r.addDummyNode(c,"edge",S,"_d"),h===_&&(S.width=x.width,S.height=x.height,S.dummy="edge-label",S.labelpos=x.labelpos),c.setEdge(f,N,{weight:x.weight},y),w===0&&c.graph().dummyChains.push(N),f=N;c.setEdge(f,m,{weight:x.weight},y)}function o(c){c.graph().dummyChains.forEach(d=>{let f=c.node(d),h=f.edgeLabel,m;for(c.setEdge(f.edgeObj,h);f.dummy;)m=c.successors(d)[0],c.removeNode(d),h.points.push({x:f.x,y:f.y}),f.dummy==="edge-label"&&(h.x=f.x,h.y=f.y,h.width=f.width,h.height=f.height),d=m,f=c.node(d)})}}),zu=vt((e,t)=>{var{applyWithChunking:r}=sn();t.exports={longestPath:a,slack:s};function a(o){var c={};function d(f){var h=o.node(f);if(Object.hasOwn(c,f))return h.rank;c[f]=!0;let m=o.outEdges(f).map(y=>y==null?Number.POSITIVE_INFINITY:d(y.w)-o.edge(y).minlen);var p=r(Math.min,m);return p===Number.POSITIVE_INFINITY&&(p=0),h.rank=p}o.sources().forEach(d)}function s(o,c){return o.node(c.w).rank-o.node(c.v).rank-o.edge(c).minlen}}),KN=vt((e,t)=>{var r=Lr().Graph,a=zu().slack;t.exports=s;function s(f){var h=new r({directed:!1}),m=f.nodes()[0],p=f.nodeCount();h.setNode(m,{});for(var y,x;o(h,f)<p;)y=c(h,f),x=h.hasNode(y.v)?a(f,y):-a(f,y),d(h,f,x);return h}function o(f,h){function m(p){h.nodeEdges(p).forEach(y=>{var x=y.v,_=p===x?y.w:x;!f.hasNode(_)&&!a(h,y)&&(f.setNode(_,{}),f.setEdge(p,_,{}),m(_))})}return f.nodes().forEach(m),f.nodeCount()}function c(f,h){return h.edges().reduce((m,p)=>{let y=Number.POSITIVE_INFINITY;return f.hasNode(p.v)!==f.hasNode(p.w)&&(y=a(h,p)),y<m[0]?[y,p]:m},[Number.POSITIVE_INFINITY,null])[1]}function d(f,h,m){f.nodes().forEach(p=>h.node(p).rank+=m)}}),fB=vt((e,t)=>{var r=KN(),a=zu().slack,s=zu().longestPath,o=Lr().alg.preorder,c=Lr().alg.postorder,d=sn().simplify;t.exports=f,f.initLowLimValues=y,f.initCutValues=h,f.calcCutValue=p,f.leaveEdge=_,f.enterEdge=N,f.exchangeEdges=S;function f(M){M=d(M),s(M);var I=r(M);y(I),h(I,M);for(var R,U;R=_(I);)U=N(I,M,R),S(I,M,R,U)}function h(M,I){var R=c(M,M.nodes());R=R.slice(0,R.length-1),R.forEach(U=>m(M,I,U))}function m(M,I,R){var U=M.node(R),B=U.parent;M.edge(R,B).cutvalue=p(M,I,R)}function p(M,I,R){var U=M.node(R),B=U.parent,Z=!0,D=I.edge(R,B),L=0;return D||(Z=!1,D=I.edge(B,R)),L=D.weight,I.nodeEdges(R).forEach(G=>{var V=G.v===R,A=V?G.w:G.v;if(A!==B){var q=V===Z,O=I.edge(G).weight;if(L+=q?O:-O,k(M,R,A)){var H=M.edge(R,A).cutvalue;L+=q?-H:H}}}),L}function y(M,I){arguments.length<2&&(I=M.nodes()[0]),x(M,{},1,I)}function x(M,I,R,U,B){var Z=R,D=M.node(U);return I[U]=!0,M.neighbors(U).forEach(L=>{Object.hasOwn(I,L)||(R=x(M,I,R,L,U))}),D.low=Z,D.lim=R++,B?D.parent=B:delete D.parent,R}function _(M){return M.edges().find(I=>M.edge(I).cutvalue<0)}function N(M,I,R){var U=R.v,B=R.w;I.hasEdge(U,B)||(U=R.w,B=R.v);var Z=M.node(U),D=M.node(B),L=Z,G=!1;Z.lim>D.lim&&(L=D,G=!0);var V=I.edges().filter(A=>G===E(M,M.node(A.v),L)&&G!==E(M,M.node(A.w),L));return V.reduce((A,q)=>a(I,q)<a(I,A)?q:A)}function S(M,I,R,U){var B=R.v,Z=R.w;M.removeEdge(B,Z),M.setEdge(U.v,U.w,{}),y(M),h(M,I),w(M,I)}function w(M,I){var R=M.nodes().find(B=>!I.node(B).parent),U=o(M,R);U=U.slice(1),U.forEach(B=>{var Z=M.node(B).parent,D=I.edge(B,Z),L=!1;D||(D=I.edge(Z,B),L=!0),I.node(B).rank=I.node(Z).rank+(L?D.minlen:-D.minlen)})}function k(M,I,R){return M.hasEdge(I,R)}function E(M,I,R){return R.low<=I.lim&&I.lim<=R.lim}}),hB=vt((e,t)=>{var r=zu(),a=r.longestPath,s=KN(),o=fB();t.exports=c;function c(m){var p=m.graph().ranker;if(p instanceof Function)return p(m);switch(m.graph().ranker){case"network-simplex":h(m);break;case"tight-tree":f(m);break;case"longest-path":d(m);break;case"none":break;default:h(m)}}var d=a;function f(m){a(m),s(m)}function h(m){o(m)}}),mB=vt((e,t)=>{t.exports=r;function r(o){let c=s(o);o.graph().dummyChains.forEach(d=>{let f=o.node(d),h=f.edgeObj,m=a(o,c,h.v,h.w),p=m.path,y=m.lca,x=0,_=p[x],N=!0;for(;d!==h.w;){if(f=o.node(d),N){for(;(_=p[x])!==y&&o.node(_).maxRank<f.rank;)x++;_===y&&(N=!1)}if(!N){for(;x<p.length-1&&o.node(_=p[x+1]).minRank<=f.rank;)x++;_=p[x]}o.setParent(d,_),d=o.successors(d)[0]}})}function a(o,c,d,f){let h=[],m=[],p=Math.min(c[d].low,c[f].low),y=Math.max(c[d].lim,c[f].lim),x,_;x=d;do x=o.parent(x),h.push(x);while(x&&(c[x].low>p||y>c[x].lim));for(_=x,x=f;(x=o.parent(x))!==_;)m.push(x);return{path:h.concat(m.reverse()),lca:_}}function s(o){let c={},d=0;function f(h){let m=d;o.children(h).forEach(f),c[h]={low:m,lim:d++}}return o.children().forEach(f),c}}),pB=vt((e,t)=>{var r=sn();t.exports={run:a,cleanup:d};function a(f){let h=r.addDummyNode(f,"root",{},"_root"),m=o(f),p=Object.values(m),y=r.applyWithChunking(Math.max,p)-1,x=2*y+1;f.graph().nestingRoot=h,f.edges().forEach(N=>f.edge(N).minlen*=x);let _=c(f)+1;f.children().forEach(N=>s(f,h,x,_,y,m,N)),f.graph().nodeRankFactor=x}function s(f,h,m,p,y,x,_){let N=f.children(_);if(!N.length){_!==h&&f.setEdge(h,_,{weight:0,minlen:m});return}let S=r.addBorderNode(f,"_bt"),w=r.addBorderNode(f,"_bb"),k=f.node(_);f.setParent(S,_),k.borderTop=S,f.setParent(w,_),k.borderBottom=w,N.forEach(E=>{s(f,h,m,p,y,x,E);let M=f.node(E),I=M.borderTop?M.borderTop:E,R=M.borderBottom?M.borderBottom:E,U=M.borderTop?p:2*p,B=I!==R?1:y-x[_]+1;f.setEdge(S,I,{weight:U,minlen:B,nestingEdge:!0}),f.setEdge(R,w,{weight:U,minlen:B,nestingEdge:!0})}),f.parent(_)||f.setEdge(h,S,{weight:0,minlen:y+x[_]})}function o(f){var h={};function m(p,y){var x=f.children(p);x&&x.length&&x.forEach(_=>m(_,y+1)),h[p]=y}return f.children().forEach(p=>m(p,1)),h}function c(f){return f.edges().reduce((h,m)=>h+f.edge(m).weight,0)}function d(f){var h=f.graph();f.removeNode(h.nestingRoot),delete h.nestingRoot,f.edges().forEach(m=>{var p=f.edge(m);p.nestingEdge&&f.removeEdge(m)})}}),gB=vt((e,t)=>{var r=sn();t.exports=a;function a(o){function c(d){let f=o.children(d),h=o.node(d);if(f.length&&f.forEach(c),Object.hasOwn(h,"minRank")){h.borderLeft=[],h.borderRight=[];for(let m=h.minRank,p=h.maxRank+1;m<p;++m)s(o,"borderLeft","_bl",d,h,m),s(o,"borderRight","_br",d,h,m)}}o.children().forEach(c)}function s(o,c,d,f,h,m){let p={width:0,height:0,rank:m,borderType:c},y=h[c][m-1],x=r.addDummyNode(o,"border",p,d);h[c][m]=x,o.setParent(x,f),y&&o.setEdge(y,x,{weight:1})}}),bB=vt((e,t)=>{t.exports={adjust:r,undo:a};function r(m){let p=m.graph().rankdir.toLowerCase();(p==="lr"||p==="rl")&&s(m)}function a(m){let p=m.graph().rankdir.toLowerCase();(p==="bt"||p==="rl")&&c(m),(p==="lr"||p==="rl")&&(f(m),s(m))}function s(m){m.nodes().forEach(p=>o(m.node(p))),m.edges().forEach(p=>o(m.edge(p)))}function o(m){let p=m.width;m.width=m.height,m.height=p}function c(m){m.nodes().forEach(p=>d(m.node(p))),m.edges().forEach(p=>{let y=m.edge(p);y.points.forEach(d),Object.hasOwn(y,"y")&&d(y)})}function d(m){m.y=-m.y}function f(m){m.nodes().forEach(p=>h(m.node(p))),m.edges().forEach(p=>{let y=m.edge(p);y.points.forEach(h),Object.hasOwn(y,"x")&&h(y)})}function h(m){let p=m.x;m.x=m.y,m.y=p}}),xB=vt((e,t)=>{var r=sn();t.exports=a;function a(s){let o={},c=s.nodes().filter(p=>!s.children(p).length),d=c.map(p=>s.node(p).rank),f=r.applyWithChunking(Math.max,d),h=r.range(f+1).map(()=>[]);function m(p){if(o[p])return;o[p]=!0;let y=s.node(p);h[y.rank].push(p),s.successors(p).forEach(m)}return c.sort((p,y)=>s.node(p).rank-s.node(y).rank).forEach(m),h}}),yB=vt((e,t)=>{var r=sn().zipObject;t.exports=a;function a(o,c){let d=0;for(let f=1;f<c.length;++f)d+=s(o,c[f-1],c[f]);return d}function s(o,c,d){let f=r(d,d.map((_,N)=>N)),h=c.flatMap(_=>o.outEdges(_).map(N=>({pos:f[N.w],weight:o.edge(N).weight})).sort((N,S)=>N.pos-S.pos)),m=1;for(;m<d.length;)m<<=1;let p=2*m-1;m-=1;let y=new Array(p).fill(0),x=0;return h.forEach(_=>{let N=_.pos+m;y[N]+=_.weight;let S=0;for(;N>0;)N%2&&(S+=y[N+1]),N=N-1>>1,y[N]+=_.weight;x+=_.weight*S}),x}}),vB=vt((e,t)=>{t.exports=r;function r(a,s=[]){return s.map(o=>{let c=a.inEdges(o);if(c.length){let d=c.reduce((f,h)=>{let m=a.edge(h),p=a.node(h.v);return{sum:f.sum+m.weight*p.order,weight:f.weight+m.weight}},{sum:0,weight:0});return{v:o,barycenter:d.sum/d.weight,weight:d.weight}}else return{v:o}})}}),_B=vt((e,t)=>{var r=sn();t.exports=a;function a(c,d){let f={};c.forEach((m,p)=>{let y=f[m.v]={indegree:0,in:[],out:[],vs:[m.v],i:p};m.barycenter!==void 0&&(y.barycenter=m.barycenter,y.weight=m.weight)}),d.edges().forEach(m=>{let p=f[m.v],y=f[m.w];p!==void 0&&y!==void 0&&(y.indegree++,p.out.push(f[m.w]))});let h=Object.values(f).filter(m=>!m.indegree);return s(h)}function s(c){let d=[];function f(m){return p=>{p.merged||(p.barycenter===void 0||m.barycenter===void 0||p.barycenter>=m.barycenter)&&o(m,p)}}function h(m){return p=>{p.in.push(m),--p.indegree===0&&c.push(p)}}for(;c.length;){let m=c.pop();d.push(m),m.in.reverse().forEach(f(m)),m.out.forEach(h(m))}return d.filter(m=>!m.merged).map(m=>r.pick(m,["vs","i","barycenter","weight"]))}function o(c,d){let f=0,h=0;c.weight&&(f+=c.barycenter*c.weight,h+=c.weight),d.weight&&(f+=d.barycenter*d.weight,h+=d.weight),c.vs=d.vs.concat(c.vs),c.barycenter=f/h,c.weight=h,c.i=Math.min(d.i,c.i),d.merged=!0}}),wB=vt((e,t)=>{var r=sn();t.exports=a;function a(c,d){let f=r.partition(c,S=>Object.hasOwn(S,"barycenter")),h=f.lhs,m=f.rhs.sort((S,w)=>w.i-S.i),p=[],y=0,x=0,_=0;h.sort(o(!!d)),_=s(p,m,_),h.forEach(S=>{_+=S.vs.length,p.push(S.vs),y+=S.barycenter*S.weight,x+=S.weight,_=s(p,m,_)});let N={vs:p.flat(!0)};return x&&(N.barycenter=y/x,N.weight=x),N}function s(c,d,f){let h;for(;d.length&&(h=d[d.length-1]).i<=f;)d.pop(),c.push(h.vs),f++;return f}function o(c){return(d,f)=>d.barycenter<f.barycenter?-1:d.barycenter>f.barycenter?1:c?f.i-d.i:d.i-f.i}}),EB=vt((e,t)=>{var r=vB(),a=_B(),s=wB();t.exports=o;function o(f,h,m,p){let y=f.children(h),x=f.node(h),_=x?x.borderLeft:void 0,N=x?x.borderRight:void 0,S={};_&&(y=y.filter(M=>M!==_&&M!==N));let w=r(f,y);w.forEach(M=>{if(f.children(M.v).length){let I=o(f,M.v,m,p);S[M.v]=I,Object.hasOwn(I,"barycenter")&&d(M,I)}});let k=a(w,m);c(k,S);let E=s(k,p);if(_&&(E.vs=[_,E.vs,N].flat(!0),f.predecessors(_).length)){let M=f.node(f.predecessors(_)[0]),I=f.node(f.predecessors(N)[0]);Object.hasOwn(E,"barycenter")||(E.barycenter=0,E.weight=0),E.barycenter=(E.barycenter*E.weight+M.order+I.order)/(E.weight+2),E.weight+=2}return E}function c(f,h){f.forEach(m=>{m.vs=m.vs.flatMap(p=>h[p]?h[p].vs:p)})}function d(f,h){f.barycenter!==void 0?(f.barycenter=(f.barycenter*f.weight+h.barycenter*h.weight)/(f.weight+h.weight),f.weight+=h.weight):(f.barycenter=h.barycenter,f.weight=h.weight)}}),NB=vt((e,t)=>{var r=Lr().Graph,a=sn();t.exports=s;function s(c,d,f,h){h||(h=c.nodes());let m=o(c),p=new r({compound:!0}).setGraph({root:m}).setDefaultNodeLabel(y=>c.node(y));return h.forEach(y=>{let x=c.node(y),_=c.parent(y);(x.rank===d||x.minRank<=d&&d<=x.maxRank)&&(p.setNode(y),p.setParent(y,_||m),c[f](y).forEach(N=>{let S=N.v===y?N.w:N.v,w=p.edge(S,y),k=w!==void 0?w.weight:0;p.setEdge(S,y,{weight:c.edge(N).weight+k})}),Object.hasOwn(x,"minRank")&&p.setNode(y,{borderLeft:x.borderLeft[d],borderRight:x.borderRight[d]}))}),p}function o(c){for(var d;c.hasNode(d=a.uniqueId("_root")););return d}}),SB=vt((e,t)=>{t.exports=r;function r(a,s,o){let c={},d;o.forEach(f=>{let h=a.parent(f),m,p;for(;h;){if(m=a.parent(h),m?(p=c[m],c[m]=h):(p=d,d=h),p&&p!==h){s.setEdge(p,h);return}h=m}})}}),kB=vt((e,t)=>{var r=xB(),a=yB(),s=EB(),o=NB(),c=SB(),d=Lr().Graph,f=sn();t.exports=h;function h(x,_={}){if(typeof _.customOrder=="function"){_.customOrder(x,h);return}let N=f.maxRank(x),S=m(x,f.range(1,N+1),"inEdges"),w=m(x,f.range(N-1,-1,-1),"outEdges"),k=r(x);if(y(x,k),_.disableOptimalOrderHeuristic)return;let E=Number.POSITIVE_INFINITY,M,I=_.constraints||[];for(let R=0,U=0;U<4;++R,++U){p(R%2?S:w,R%4>=2,I),k=f.buildLayerMatrix(x);let B=a(x,k);B<E?(U=0,M=Object.assign({},k),E=B):B===E&&(M=structuredClone(k))}y(x,M)}function m(x,_,N){let S=new Map,w=(k,E)=>{S.has(k)||S.set(k,[]),S.get(k).push(E)};for(let k of x.nodes()){let E=x.node(k);if(typeof E.rank=="number"&&w(E.rank,k),typeof E.minRank=="number"&&typeof E.maxRank=="number")for(let M=E.minRank;M<=E.maxRank;M++)M!==E.rank&&w(M,k)}return _.map(function(k){return o(x,k,N,S.get(k)||[])})}function p(x,_,N){let S=new d;x.forEach(function(w){N.forEach(M=>S.setEdge(M.left,M.right));let k=w.graph().root,E=s(w,k,S,_);E.vs.forEach((M,I)=>w.node(M).order=I),c(w,S,E.vs)})}function y(x,_){Object.values(_).forEach(N=>N.forEach((S,w)=>x.node(S).order=w))}}),TB=vt((e,t)=>{var r=Lr().Graph,a=sn();t.exports={positionX:N,findType1Conflicts:s,findType2Conflicts:o,addConflict:d,hasConflict:f,verticalAlignment:h,horizontalCompaction:m,alignCoordinates:x,findSmallestWidthAlignment:y,balance:_};function s(k,E){let M={};function I(R,U){let B=0,Z=0,D=R.length,L=U[U.length-1];return U.forEach((G,V)=>{let A=c(k,G),q=A?k.node(A).order:D;(A||G===L)&&(U.slice(Z,V+1).forEach(O=>{k.predecessors(O).forEach(H=>{let X=k.node(H),K=X.order;(K<B||q<K)&&!(X.dummy&&k.node(O).dummy)&&d(M,H,O)})}),Z=V+1,B=q)}),U}return E.length&&E.reduce(I),M}function o(k,E){let M={};function I(U,B,Z,D,L){let G;a.range(B,Z).forEach(V=>{G=U[V],k.node(G).dummy&&k.predecessors(G).forEach(A=>{let q=k.node(A);q.dummy&&(q.order<D||q.order>L)&&d(M,A,G)})})}function R(U,B){let Z=-1,D,L=0;return B.forEach((G,V)=>{if(k.node(G).dummy==="border"){let A=k.predecessors(G);A.length&&(D=k.node(A[0]).order,I(B,L,V,Z,D),L=V,Z=D)}I(B,L,B.length,D,U.length)}),B}return E.length&&E.reduce(R),M}function c(k,E){if(k.node(E).dummy)return k.predecessors(E).find(M=>k.node(M).dummy)}function d(k,E,M){if(E>M){let R=E;E=M,M=R}let I=k[E];I||(k[E]=I={}),I[M]=!0}function f(k,E,M){if(E>M){let I=E;E=M,M=I}return!!k[E]&&Object.hasOwn(k[E],M)}function h(k,E,M,I){let R={},U={},B={};return E.forEach(Z=>{Z.forEach((D,L)=>{R[D]=D,U[D]=D,B[D]=L})}),E.forEach(Z=>{let D=-1;Z.forEach(L=>{let G=I(L);if(G.length){G=G.sort((A,q)=>B[A]-B[q]);let V=(G.length-1)/2;for(let A=Math.floor(V),q=Math.ceil(V);A<=q;++A){let O=G[A];U[L]===L&&D<B[O]&&!f(M,L,O)&&(U[O]=L,U[L]=R[L]=R[O],D=B[O])}}})}),{root:R,align:U}}function m(k,E,M,I,R){let U={},B=p(k,E,M,R),Z=R?"borderLeft":"borderRight";function D(V,A){let q=B.nodes().slice(),O={},H=q.pop();for(;H;){if(O[H])V(H);else{O[H]=!0,q.push(H);for(let X of A(H))q.push(X)}H=q.pop()}}function L(V){U[V]=B.inEdges(V).reduce((A,q)=>Math.max(A,U[q.v]+B.edge(q)),0)}function G(V){let A=B.outEdges(V).reduce((O,H)=>Math.min(O,U[H.w]-B.edge(H)),Number.POSITIVE_INFINITY),q=k.node(V);A!==Number.POSITIVE_INFINITY&&q.borderType!==Z&&(U[V]=Math.max(U[V],A))}return D(L,B.predecessors.bind(B)),D(G,B.successors.bind(B)),Object.keys(I).forEach(V=>U[V]=U[M[V]]),U}function p(k,E,M,I){let R=new r,U=k.graph(),B=S(U.nodesep,U.edgesep,I);return E.forEach(Z=>{let D;Z.forEach(L=>{let G=M[L];if(R.setNode(G),D){var V=M[D],A=R.edge(V,G);R.setEdge(V,G,Math.max(B(k,L,D),A||0))}D=L})}),R}function y(k,E){return Object.values(E).reduce((M,I)=>{let R=Number.NEGATIVE_INFINITY,U=Number.POSITIVE_INFINITY;Object.entries(I).forEach(([Z,D])=>{let L=w(k,Z)/2;R=Math.max(D+L,R),U=Math.min(D-L,U)});let B=R-U;return B<M[0]&&(M=[B,I]),M},[Number.POSITIVE_INFINITY,null])[1]}function x(k,E){let M=Object.values(E),I=a.applyWithChunking(Math.min,M),R=a.applyWithChunking(Math.max,M);["u","d"].forEach(U=>{["l","r"].forEach(B=>{let Z=U+B,D=k[Z];if(D===E)return;let L=Object.values(D),G=I-a.applyWithChunking(Math.min,L);B!=="l"&&(G=R-a.applyWithChunking(Math.max,L)),G&&(k[Z]=a.mapValues(D,V=>V+G))})})}function _(k,E){return a.mapValues(k.ul,(M,I)=>{if(E)return k[E.toLowerCase()][I];{let R=Object.values(k).map(U=>U[I]).sort((U,B)=>U-B);return(R[1]+R[2])/2}})}function N(k){let E=a.buildLayerMatrix(k),M=Object.assign(s(k,E),o(k,E)),I={},R;["u","d"].forEach(B=>{R=B==="u"?E:Object.values(E).reverse(),["l","r"].forEach(Z=>{Z==="r"&&(R=R.map(V=>Object.values(V).reverse()));let D=(B==="u"?k.predecessors:k.successors).bind(k),L=h(k,R,M,D),G=m(k,R,L.root,L.align,Z==="r");Z==="r"&&(G=a.mapValues(G,V=>-V)),I[B+Z]=G})});let U=y(k,I);return x(I,U),_(I,k.graph().align)}function S(k,E,M){return(I,R,U)=>{let B=I.node(R),Z=I.node(U),D=0,L;if(D+=B.width/2,Object.hasOwn(B,"labelpos"))switch(B.labelpos.toLowerCase()){case"l":L=-B.width/2;break;case"r":L=B.width/2;break}if(L&&(D+=M?L:-L),L=0,D+=(B.dummy?E:k)/2,D+=(Z.dummy?E:k)/2,D+=Z.width/2,Object.hasOwn(Z,"labelpos"))switch(Z.labelpos.toLowerCase()){case"l":L=Z.width/2;break;case"r":L=-Z.width/2;break}return L&&(D+=M?L:-L),L=0,D}}function w(k,E){return k.node(E).width}}),CB=vt((e,t)=>{var r=sn(),a=TB().positionX;t.exports=s;function s(c){c=r.asNonCompoundGraph(c),o(c),Object.entries(a(c)).forEach(([d,f])=>c.node(d).x=f)}function o(c){let d=r.buildLayerMatrix(c),f=c.graph().ranksep,h=c.graph().rankalign,m=0;d.forEach(p=>{let y=p.reduce((x,_)=>{let N=c.node(_).height;return x>N?x:N},0);p.forEach(x=>{let _=c.node(x);h==="top"?_.y=m+_.height/2:h==="bottom"?_.y=m+y-_.height/2:_.y=m+y/2}),m+=y+f})}}),AB=vt((e,t)=>{var r=uB(),a=dB(),s=hB(),o=sn().normalizeRanks,c=mB(),d=sn().removeEmptyRanks,f=pB(),h=gB(),m=bB(),p=kB(),y=CB(),x=sn(),_=Lr().Graph;t.exports=N;function N($,Q={}){let J=Q.debugTiming?x.time:x.notime;return J("layout",()=>{let W=J(" buildLayoutGraph",()=>D($));return J(" runLayout",()=>S(W,J,Q)),J(" updateInputGraph",()=>w($,W)),W})}function S($,Q,J){Q(" makeSpaceForEdgeLabels",()=>L($)),Q(" removeSelfEdges",()=>T($)),Q(" acyclic",()=>r.run($)),Q(" nestingGraph.run",()=>f.run($)),Q(" rank",()=>s(x.asNonCompoundGraph($))),Q(" injectEdgeLabelProxies",()=>G($)),Q(" removeEmptyRanks",()=>d($)),Q(" nestingGraph.cleanup",()=>f.cleanup($)),Q(" normalizeRanks",()=>o($)),Q(" assignRankMinMax",()=>V($)),Q(" removeEdgeLabelProxies",()=>A($)),Q(" normalize.run",()=>a.run($)),Q(" parentDummyChains",()=>c($)),Q(" addBorderSegments",()=>h($)),Q(" order",()=>p($,J)),Q(" insertSelfEdges",()=>j($)),Q(" adjustCoordinateSystem",()=>m.adjust($)),Q(" position",()=>y($)),Q(" positionSelfEdges",()=>Y($)),Q(" removeBorderNodes",()=>K($)),Q(" normalize.undo",()=>a.undo($)),Q(" fixupEdgeLabelCoords",()=>H($)),Q(" undoCoordinateSystem",()=>m.undo($)),Q(" translateGraph",()=>q($)),Q(" assignNodeIntersects",()=>O($)),Q(" reversePoints",()=>X($)),Q(" acyclic.undo",()=>r.undo($))}function w($,Q){$.nodes().forEach(J=>{let W=$.node(J),te=Q.node(J);W&&(W.x=te.x,W.y=te.y,W.order=te.order,W.rank=te.rank,Q.children(J).length&&(W.width=te.width,W.height=te.height))}),$.edges().forEach(J=>{let W=$.edge(J),te=Q.edge(J);W.points=te.points,Object.hasOwn(te,"x")&&(W.x=te.x,W.y=te.y)}),$.graph().width=Q.graph().width,$.graph().height=Q.graph().height}var k=["nodesep","edgesep","ranksep","marginx","marginy"],E={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb",rankalign:"center"},M=["acyclicer","ranker","rankdir","align","rankalign"],I=["width","height","rank"],R={width:0,height:0},U=["minlen","weight","width","height","labeloffset"],B={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Z=["labelpos"];function D($){let Q=new _({multigraph:!0,compound:!0}),J=F($.graph());return Q.setGraph(Object.assign({},E,z(J,k),x.pick(J,M))),$.nodes().forEach(W=>{let te=F($.node(W)),ce=z(te,I);Object.keys(R).forEach(fe=>{ce[fe]===void 0&&(ce[fe]=R[fe])}),Q.setNode(W,ce),Q.setParent(W,$.parent(W))}),$.edges().forEach(W=>{let te=F($.edge(W));Q.setEdge(W,Object.assign({},B,z(te,U),x.pick(te,Z)))}),Q}function L($){let Q=$.graph();Q.ranksep/=2,$.edges().forEach(J=>{let W=$.edge(J);W.minlen*=2,W.labelpos.toLowerCase()!=="c"&&(Q.rankdir==="TB"||Q.rankdir==="BT"?W.width+=W.labeloffset:W.height+=W.labeloffset)})}function G($){$.edges().forEach(Q=>{let J=$.edge(Q);if(J.width&&J.height){let W=$.node(Q.v),te={rank:($.node(Q.w).rank-W.rank)/2+W.rank,e:Q};x.addDummyNode($,"edge-proxy",te,"_ep")}})}function V($){let Q=0;$.nodes().forEach(J=>{let W=$.node(J);W.borderTop&&(W.minRank=$.node(W.borderTop).rank,W.maxRank=$.node(W.borderBottom).rank,Q=Math.max(Q,W.maxRank))}),$.graph().maxRank=Q}function A($){$.nodes().forEach(Q=>{let J=$.node(Q);J.dummy==="edge-proxy"&&($.edge(J.e).labelRank=J.rank,$.removeNode(Q))})}function q($){let Q=Number.POSITIVE_INFINITY,J=0,W=Number.POSITIVE_INFINITY,te=0,ce=$.graph(),fe=ce.marginx||0,be=ce.marginy||0;function we(Ne){let je=Ne.x,$e=Ne.y,st=Ne.width,Rt=Ne.height;Q=Math.min(Q,je-st/2),J=Math.max(J,je+st/2),W=Math.min(W,$e-Rt/2),te=Math.max(te,$e+Rt/2)}$.nodes().forEach(Ne=>we($.node(Ne))),$.edges().forEach(Ne=>{let je=$.edge(Ne);Object.hasOwn(je,"x")&&we(je)}),Q-=fe,W-=be,$.nodes().forEach(Ne=>{let je=$.node(Ne);je.x-=Q,je.y-=W}),$.edges().forEach(Ne=>{let je=$.edge(Ne);je.points.forEach($e=>{$e.x-=Q,$e.y-=W}),Object.hasOwn(je,"x")&&(je.x-=Q),Object.hasOwn(je,"y")&&(je.y-=W)}),ce.width=J-Q+fe,ce.height=te-W+be}function O($){$.edges().forEach(Q=>{let J=$.edge(Q),W=$.node(Q.v),te=$.node(Q.w),ce,fe;J.points?(ce=J.points[0],fe=J.points[J.points.length-1]):(J.points=[],ce=te,fe=W),J.points.unshift(x.intersectRect(W,ce)),J.points.push(x.intersectRect(te,fe))})}function H($){$.edges().forEach(Q=>{let J=$.edge(Q);if(Object.hasOwn(J,"x"))switch((J.labelpos==="l"||J.labelpos==="r")&&(J.width-=J.labeloffset),J.labelpos){case"l":J.x-=J.width/2+J.labeloffset;break;case"r":J.x+=J.width/2+J.labeloffset;break}})}function X($){$.edges().forEach(Q=>{let J=$.edge(Q);J.reversed&&J.points.reverse()})}function K($){$.nodes().forEach(Q=>{if($.children(Q).length){let J=$.node(Q),W=$.node(J.borderTop),te=$.node(J.borderBottom),ce=$.node(J.borderLeft[J.borderLeft.length-1]),fe=$.node(J.borderRight[J.borderRight.length-1]);J.width=Math.abs(fe.x-ce.x),J.height=Math.abs(te.y-W.y),J.x=ce.x+J.width/2,J.y=W.y+J.height/2}}),$.nodes().forEach(Q=>{$.node(Q).dummy==="border"&&$.removeNode(Q)})}function T($){$.edges().forEach(Q=>{if(Q.v===Q.w){var J=$.node(Q.v);J.selfEdges||(J.selfEdges=[]),J.selfEdges.push({e:Q,label:$.edge(Q)}),$.removeEdge(Q)}})}function j($){var Q=x.buildLayerMatrix($);Q.forEach(J=>{var W=0;J.forEach((te,ce)=>{var fe=$.node(te);fe.order=ce+W,(fe.selfEdges||[]).forEach(be=>{x.addDummyNode($,"selfedge",{width:be.label.width,height:be.label.height,rank:fe.rank,order:ce+ ++W,e:be.e,label:be.label},"_se")}),delete fe.selfEdges})})}function Y($){$.nodes().forEach(Q=>{var J=$.node(Q);if(J.dummy==="selfedge"){var W=$.node(J.e.v),te=W.x+W.width/2,ce=W.y,fe=J.x-te,be=W.height/2;$.setEdge(J.e,J.label),$.removeNode(Q),J.label.points=[{x:te+2*fe/3,y:ce-be},{x:te+5*fe/6,y:ce-be},{x:te+fe,y:ce},{x:te+5*fe/6,y:ce+be},{x:te+2*fe/3,y:ce+be}],J.label.x=J.x,J.label.y=J.y}})}function z($,Q){return x.mapValues(x.pick($,Q),Number)}function F($){var Q={};return $&&Object.entries($).forEach(([J,W])=>{typeof J=="string"&&(J=J.toLowerCase()),Q[J]=W}),Q}}),MB=vt((e,t)=>{var r=sn(),a=Lr().Graph;t.exports={debugOrdering:s};function s(o){let c=r.buildLayerMatrix(o),d=new a({compound:!0,multigraph:!0}).setGraph({});return o.nodes().forEach(f=>{d.setNode(f,{label:f}),d.setParent(f,"layer"+o.node(f).rank)}),o.edges().forEach(f=>d.setEdge(f.v,f.w,{},f.name)),c.forEach((f,h)=>{let m="layer"+h;d.setNode(m,{rank:"same"}),f.reduce((p,y)=>(d.setEdge(p,y,{style:"invis"}),y))}),d}}),OB=vt((e,t)=>{t.exports="2.0.4"}),RB=vt((e,t)=>{t.exports={graphlib:Lr(),layout:AB(),debug:MB(),util:{time:sn().time,notime:sn().notime},version:OB()}});const Y1=RB();/*! For license information please see dagre.esm.js.LEGAL.txt */const X1={running:"bg-blue-500",completed:"bg-emerald-500",failed:"bg-red-500",error:"bg-red-500"};function DB({data:e,selected:t}){const r=e;return g.jsxs("div",{className:`w-[260px] rounded-lg border px-4 py-3 transition-colors ${r.isSelected||t?"border-white/30 bg-[#0a0a0a]":"border-[#222] bg-black hover:border-[#333]"}`,children:[g.jsx(el,{type:"target",position:ze.Top,isConnectable:!1,className:`!w-1.5 !h-1.5 !border-0 ${r.parentId?"!bg-[#444]":"!bg-transparent"}`}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsxs("span",{className:"relative flex h-2 w-2 shrink-0",children:[g.jsx("span",{className:`absolute inline-flex h-full w-full rounded-full opacity-75 ${X1[r.status]??"bg-gray-500"} ${r.status==="running"?"animate-ping":""}`}),g.jsx("span",{className:`relative inline-flex h-2 w-2 rounded-full ${X1[r.status]??"bg-gray-500"}`})]}),g.jsx("span",{className:"text-sm font-semibold text-white leading-snug line-clamp-3",children:r.name})]}),g.jsx(el,{type:"source",position:ze.Bottom,isConnectable:!1,className:`!w-1.5 !h-1.5 !border-0 ${r.children&&r.children.length>0?"!bg-[#444]":"!bg-transparent"}`})]})}const jB=ee.memo(DB);function no({w:e=24}){return g.jsxs("div",{className:"w-[180px] h-[72px] rounded-lg border border-[#222] bg-[#0a0a0a] px-3 py-2 shrink-0",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[g.jsx("div",{className:"w-2 h-2 rounded-full bg-[#2a2a2a]"}),g.jsx("div",{className:"h-3 rounded bg-[#252525]",style:{width:`${e*4}px`}})]}),g.jsx("div",{className:"h-2 w-28 rounded bg-[#1e1e1e] mb-1.5"}),g.jsxs("div",{className:"flex gap-3",children:[g.jsx("div",{className:"h-2 w-8 rounded bg-[#1e1e1e]"}),g.jsx("div",{className:"h-2 w-8 rounded bg-[#1e1e1e]"})]})]})}function zs(){return g.jsx("div",{className:"w-px h-6 bg-[#2a2a2a]"})}function K1({count:e}){return g.jsx("div",{className:"relative flex justify-center",children:g.jsx("div",{className:"absolute top-0 h-px bg-[#2a2a2a]",style:{width:`${(e-1)*220}px`}})})}function LB(){return g.jsx("div",{className:"h-full bg-black overflow-hidden",children:g.jsxs("div",{className:"flex flex-col items-center pt-10 animate-pulse",children:[g.jsx(no,{w:20}),g.jsx(zs,{}),g.jsx(K1,{count:3}),g.jsx("div",{className:"flex gap-10",children:[18,22,16].map((e,t)=>g.jsxs("div",{className:"flex flex-col items-center",children:[g.jsx(zs,{}),g.jsx(no,{w:e})]},t))}),g.jsxs("div",{className:"flex gap-10 w-full justify-center",children:[g.jsxs("div",{className:"flex flex-col items-center",children:[g.jsx(zs,{}),g.jsx(K1,{count:2}),g.jsx("div",{className:"flex gap-10",children:[14,20].map((e,t)=>g.jsxs("div",{className:"flex flex-col items-center",children:[g.jsx(zs,{}),g.jsx(no,{w:e})]},t))})]}),g.jsxs("div",{className:"flex flex-col items-center",children:[g.jsx(zs,{}),g.jsx(no,{w:18}),g.jsx(zs,{}),g.jsx(no,{w:12})]}),g.jsx("div",{className:"w-[180px]"})]})]})})}const fp=260,hp=80,zB={agentNode:jB};function IB(e,t){const r=new Y1.graphlib.Graph;r.setDefaultEdgeLabel(()=>({})),r.setGraph({rankdir:"TB",nodesep:60,ranksep:80});const a=[],s=[];for(const[o,c]of e)if(r.setNode(o,{width:fp,height:hp}),a.push({id:o,type:"agentNode",position:{x:0,y:0},data:{...c,isSelected:o===t}}),c.parentId&&e.has(c.parentId)){const d=`${c.parentId}->${o}`;r.setEdge(c.parentId,o),s.push({id:d,source:c.parentId,target:o,style:{stroke:"#2a2a2a",strokeWidth:1.5}})}Y1.layout(r);for(const o of a){const c=r.node(o.id);c&&(o.position={x:c.x-fp/2,y:c.y-hp/2})}return{nodes:a,edges:s}}const Am=300;function BB({nodes:e}){const{setCenter:t}=Uo(),r=ee.useRef(!1);return ee.useEffect(()=>{if(e.length>0&&!r.current){const s=e.find(d=>!d.data.parentId)??e[0];r.current=!0;const o=s.position.x+fp/2,c=s.position.y+hp/2;setTimeout(()=>t(o,c,{zoom:.85,duration:400}),60)}},[e,t]),null}function UB(){const{zoomIn:e,zoomOut:t,fitView:r}=Uo();return g.jsx(F9,{position:"bottom-right",showZoom:!1,showFitView:!1,showInteractive:!1,className:"!bg-transparent !border-none !shadow-none",children:g.jsxs("div",{className:"flex flex-col overflow-hidden rounded-lg border border-[#222]",children:[g.jsx("button",{onClick:()=>e({duration:Am}),className:"flex items-center justify-center w-7 h-7 bg-[#111] text-white hover:bg-[#2a2a2a] transition-colors",title:"Zoom in",children:g.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"w-3.5 h-3.5",children:g.jsx("path",{d:"M12 5v14M5 12h14"})})}),g.jsx("button",{onClick:()=>t({duration:Am}),className:"flex items-center justify-center w-7 h-7 bg-[#111] text-white hover:bg-[#2a2a2a] border-y border-[#222] transition-colors",title:"Zoom out",children:g.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"w-3.5 h-3.5",children:g.jsx("path",{d:"M5 12h14"})})}),g.jsx("button",{onClick:()=>r({padding:.3,duration:Am}),className:"flex items-center justify-center w-7 h-7 bg-[#111] text-white hover:bg-[#2a2a2a] transition-colors",title:"Fit view",children:g.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"w-3.5 h-3.5",children:g.jsx("path",{d:"M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"})})})]})})}function HB({agents:e,selectedAgentId:t,onSelectAgent:r,eventsLoaded:a,eventsEmpty:s,scanCompleted:o}){const[c,d,f]=O9([]),[h,m,p]=R9([]);ee.useEffect(()=>{if(e.size===0)return;const{nodes:S,edges:w}=IB(e,t);d(S),m(w)},[e.size,d,m]),ee.useEffect(()=>{e.size!==0&&d(S=>S.map(w=>{const k=e.get(w.id);return k?{...w,data:{...k,isSelected:w.id===t}}:w}))},[e,t,d]);const y=ee.useRef(!1),x=ee.useCallback((S,w)=>{y.current=!0,r(w.id)},[r]),_=ee.useCallback(()=>{if(y.current){y.current=!1;return}r(null)},[r]);if(e.size===0&&a&&s)return g.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center px-4",children:[g.jsx("div",{className:"w-10 h-10 mb-3 rounded-full bg-[#111] flex items-center justify-center",children:o?g.jsx("svg",{className:"w-5 h-5 text-[#444]",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25a2.25 2.25 0 0 1-2.25-2.25v-2.25Z"})}):g.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-500 animate-pulse"})}),g.jsx("p",{className:"text-sm text-[#555]",children:o?"Agent trace data is not available for this pentest":"Waiting for agent data…"})]});const N=e.size>0;return g.jsxs("div",{className:"relative h-full",children:[g.jsx("div",{className:`absolute inset-0 z-10 transition-opacity duration-500 ${N?"opacity-0 pointer-events-none":"opacity-100"}`,children:g.jsx(LB,{})}),g.jsx("div",{className:`h-full transition-opacity duration-500 ${N?"opacity-100":"opacity-0"}`,children:g.jsxs(M9,{nodes:c,edges:h,onNodesChange:f,onEdgesChange:p,onNodeClick:x,onPaneClick:_,nodeTypes:zB,nodesConnectable:!1,edgesFocusable:!1,edgesReconnectable:!1,minZoom:.15,maxZoom:1.5,proOptions:{hideAttribution:!0},className:"bg-black",children:[g.jsx(I9,{color:"#111",gap:20}),g.jsx(BB,{nodes:c}),g.jsx(UB,{}),g.jsx(iB,{position:"bottom-left",nodeColor:S=>{var k;const w=(k=S.data)==null?void 0:k.status;return w==="running"?"#3b82f6":w==="completed"?"#10b981":w==="failed"||w==="error"?"#ef4444":"#555"},maskColor:"rgba(0,0,0,0.8)",style:{width:80,height:50},className:"!bg-[#0a0a0a] !border-[#222]"})]})})]})}function $s({text:e,className:t=""}){return g.jsx("div",{className:`prose-markdown ${t}`,children:g.jsx(Bp,{remarkPlugins:[qp],rehypePlugins:[Pp],components:Fp,children:e})})}const Z1=6,Q1=20;function Ln({text:e,maxLines:t=20}){const[r,a]=ee.useState(!1),o=e.trimEnd().split(`
+`).length>t;return g.jsxs("div",{children:[g.jsx("div",{className:r&&o?"max-h-[1200px] overflow-auto":"",style:!r&&o?{display:"-webkit-box",WebkitLineClamp:t,WebkitBoxOrient:"vertical",overflow:"hidden"}:void 0,children:g.jsx($s,{text:e})}),o&&g.jsx("button",{onClick:()=>a(!r),className:"text-xs text-[#555] hover:text-[#888] mt-1",children:r?"Show less":"Show more"})]})}function wi({children:e,className:t=""}){const[r,a]=ee.useState(!1),o=typeof e=="string"?e.trimEnd().split(`
+`):null,c=o!==null&&o.length>Z1,d=c&&!r?o.slice(0,Z1).join(`
+`):e;return g.jsxs("div",{children:[g.jsx("pre",{className:`font-mono text-[13px] leading-relaxed whitespace-pre-wrap break-words mt-1 ${r?"overflow-auto max-h-[1200px]":"overflow-hidden"} ${t}`,children:d}),c&&g.jsx("button",{onClick:()=>a(!r),className:"text-xs text-[#555] hover:text-[#888] mt-0.5",children:r?"Show less":"Show more"})]})}function cg({code:e,language:t,className:r="",collapsible:a=!1}){const[s,o]=ee.useState(!1),c=e.trimEnd().split(`
+`),d=a&&c.length>Q1,f=d&&!s?c.slice(0,Q1).join(`
+`):e;let h;try{h=t?Gn.highlight(f,{language:t,ignoreIllegals:!0}).value:Gn.highlightAuto(f).value}catch{h=Gn.highlightAuto(f).value}return g.jsxs("div",{children:[g.jsx("pre",{className:`font-mono text-[12px] leading-relaxed px-0 py-1 mt-1 whitespace-pre-wrap break-all ${a?s?"overflow-auto max-h-[1200px]":"overflow-hidden":"overflow-auto max-h-[400px]"} ${r}`,children:g.jsx("code",{dangerouslySetInnerHTML:{__html:h}})}),d&&g.jsx("button",{onClick:()=>o(!s),className:"text-xs text-[#555] hover:text-[#888] mt-0.5",children:s?"Show less":"Show more"})]})}const $B=50,W1=200,J1=25,e_=24,qB=[/\n?\[Command still running after [\d.]+s - showing output so far\.?\s*(?:Use C-c to interrupt if needed\.)?\]/g,/^\[Below is the output of the previous command\.\]\n?/gm,/^No command is currently running\. Cannot send input\.$/gm,/^A command is already running\. Use is_input=true to send input to it, or interrupt it first \(e\.g\., with C-c\)\.$/gm],PB=/^Chunk ID: [0-9a-f]+\s*$/,FB=[/^Wall time: [\d.]+ seconds\s*$/,/^Process exited with code -?\d+\s*$/,/^Process running with session ID \d+\s*$/,/^Original token count: \d+\s*$/];function GB(e){const t=[];for(let r=0;r<e.length;r++){if(PB.test(e[r])){let a=r+1;for(;a<e.length&&FB.some(s=>s.test(e[a]));)a++;a<e.length&&e[a].trim()==="Output:"&&a++,r=a-1;continue}t.push(e[r])}return t}function VB(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Mm(e){return e.length>W1?e.slice(0,W1-3)+"...":e}function YB(e,t=""){let r=e.replace(/\x1b(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~]|\][^\x07]*\x07)/g,"").replace(/\r/g,"");for(const a of qB)r=r.replace(a,"");if(r.trim()){const a=GB(r.split(`
+`)),s=[];for(const o of a)s.length===0&&!o.trim()||/^\[STRIX_\d+\]\$\s*/.test(o)||t&&o.trim()===t.trim()||t&&new RegExp(`^[\\$#>]\\s*${VB(t.trim())}\\s*$`).test(o)||s.push(o);for(;s.length>0&&/^\[STRIX_\d+\]\$\s*/.test(s[s.length-1]);)s.pop();r=s.join(`
+`)}return r.trim()}function XB(e){const t=e.split(`
+`);if(t.length<=$B)return t.map(Mm).join(`
+`);const r=t.length-J1-e_;return[...t.slice(0,J1).map(Mm),`... ${r} lines truncated ...`,...t.slice(-e_).map(Mm)].join(`
+`)}function KB({toolName:e,args:t,result:r}){const a=e==="write_stdin",s=a?t.chars??t.input??"":t.command??t.cmd??"",o=r;let c=null,d=null,f=null;if(o&&typeof o=="object"){c=typeof o.content=="string"?o.content:null,d=typeof o.error=="string"?o.error:null,f=typeof o.exit_code=="number"?o.exit_code:null;const m=typeof o.status=="string"?o.status:"";(m==="running"||m==="command still running")&&(c=null)}else typeof o=="string"&&(c=o);const h=c?XB(YB(c,s)):null;return g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:a?"Terminal input":"Terminal"}),s&&g.jsx(cg,{code:s,language:"bash",collapsible:!0}),d&&g.jsx(wi,{className:"text-red-400/70",children:d}),h&&g.jsx(wi,{className:"text-[#666]",children:h}),f!=null&&f!==0&&g.jsxs("div",{className:"font-mono text-[13px] text-red-400/70 mt-0.5",children:["exit code ",f]})]})}const t_={back:"going back in browser history",forward:"going forward in browser history",scroll_down:"scrolling down",scroll_up:"scrolling up",refresh:"refreshing",close_tab:"closing tab",switch_tab:"switching tab",list_tabs:"listing tabs",view_source:"viewing page source",get_console_logs:"getting console logs",screenshot:"taking screenshot",wait:"waiting...",close:"closing"},n_={click:"clicking",double_click:"double clicking",hover:"hovering"};function Om({prefix:e,url:t,suffix:r}){return g.jsxs("span",{className:"text-[#888] text-[13px]",children:[e,t&&g.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"text-cyan-400/80 hover:underline",children:t}),r]})}function ZB(e){const t=e.action??"",r=e.url??void 0;if(t in t_)return t_[t];if(t==="launch")return r?g.jsx(Om,{prefix:"launching ",url:r}):"launching";if(t==="goto"||t==="navigate")return g.jsx(Om,{prefix:"navigating to ",url:r});if(t==="new_tab")return g.jsx(Om,{prefix:"opening tab ",url:r});if(t in n_)return n_[t];if(t==="type")return`typing "${(e.text??"").slice(0,40)}"`;if(t==="press_key"||t==="key_press")return`pressing key ${e.key??""}`;if(t==="save_pdf"||t==="save_as_pdf"){const a=e.file_path??"";return`saving PDF${a?` to ${a}`:""}`}return t==="execute_js"?"executing javascript":t||"browser action"}function QB({args:e}){const r=(e.action??"")==="execute_js"?e.js_code??e.code??"":"",a=ZB(e);return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[g.jsx("span",{className:"text-blue-400/80 font-semibold text-sm shrink-0",children:"Browser"}),g.jsx("span",{className:"min-w-0 truncate text-[#888] text-[13px]",children:a})]}),r&&g.jsx(cg,{code:r,language:"javascript",collapsible:!0})]})}function ug(e){return e.length>60?"..."+e.slice(-57):e}const fu=30;function WB({toolName:e,args:t}){const r=t.path??t.file_path??"",a=t.command??"",s=t.old_str??"",o=t.new_str??"",c=t.regex??"";let d;e==="list_files"?d="list":e==="search_files"?d="search":a==="view"?d="view":a==="create"?d="create":a==="str_replace"?d="edit":a==="undo_edit"?d="undo":a==="insert"?d="insert":d="file";const f=r?ug(r):"",h=c?` /${c}/`:"",m=s?s.split(`
+`):[],p=o?o.split(`
+`):[],y=m.length+p.length,x=y>fu,_=x?Math.round(fu*(m.length/y)):m.length,N=x?fu-_:p.length;return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-baseline gap-2",children:[g.jsx("span",{className:"text-sky-400/80 font-semibold text-sm shrink-0",children:d}),f&&g.jsx("span",{className:"text-[#888] font-mono text-[13px] break-all",children:f})]}),h&&g.jsx("div",{className:"text-purple-400/60 font-mono text-[13px] break-all mt-0.5",children:h}),(s||o)&&g.jsxs("div",{className:"font-mono text-[13px] leading-relaxed mt-1.5",children:[m.slice(0,_).map((S,w)=>g.jsxs("div",{className:"text-red-400/60",children:[g.jsx("span",{className:"select-none text-red-400/30 mr-1",children:"-"}),S]},`o${w}`)),p.slice(0,N).map((S,w)=>g.jsxs("div",{className:"text-emerald-400/60",children:[g.jsx("span",{className:"select-none text-emerald-400/30 mr-1",children:"+"}),S]},`n${w}`)),x&&g.jsxs("div",{className:"text-[#444] mt-0.5",children:["... ",y-fu," more lines"]})]})]})}const hu=30,JB="*** Begin Patch",e7="*** End Patch",r_="*** Add File: ",i_="*** Update File: ",a_="*** Delete File: ",t7={add:"create",update:"edit",delete:"delete"};function n7(e){const t=e.patch;return typeof t=="string"?t:t&&typeof t=="object"&&typeof t.patch=="string"?t.patch:typeof e.input=="string"?e.input:""}function r7(e){const t=[];let r=null;const a=()=>{r&&t.push(r),r=null};for(const s of e.split(`
+`))if(!(s===JB||s===e7))if(s.startsWith(r_))a(),r={kind:"add",path:s.slice(r_.length).trim(),oldLines:[],newLines:[]};else if(s.startsWith(i_))a(),r={kind:"update",path:s.slice(i_.length).trim(),oldLines:[],newLines:[]};else if(s.startsWith(a_))a(),r={kind:"delete",path:s.slice(a_.length).trim(),oldLines:[],newLines:[]};else if((r==null?void 0:r.kind)==="update"){if(s.startsWith("@@"))continue;s.startsWith("-")&&!s.startsWith("---")?r.oldLines.push(s.slice(1)):s.startsWith("+")&&!s.startsWith("+++")&&r.newLines.push(s.slice(1))}else(r==null?void 0:r.kind)==="add"&&(s.startsWith("+")?r.newLines.push(s.slice(1)):s.trim()&&r.newLines.push(s));return a(),t}function i7({op:e}){const t=t7[e.kind]??"file",r=e.oldLines.length+e.newLines.length,a=r>hu,s=a&&r>0?Math.round(hu*(e.oldLines.length/r)):e.oldLines.length,o=a?hu-s:e.newLines.length;return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-baseline gap-2",children:[g.jsx("span",{className:"text-sky-400/80 font-semibold text-sm shrink-0",children:t}),e.path&&g.jsx("span",{className:"text-[#888] font-mono text-[13px] break-all",children:ug(e.path)})]}),(e.oldLines.length>0||e.newLines.length>0)&&g.jsxs("div",{className:"font-mono text-[13px] leading-relaxed mt-1.5",children:[e.oldLines.slice(0,s).map((c,d)=>g.jsxs("div",{className:"text-red-400/60",children:[g.jsx("span",{className:"select-none text-red-400/30 mr-1",children:"-"}),c]},`o${d}`)),e.newLines.slice(0,o).map((c,d)=>g.jsxs("div",{className:"text-emerald-400/60",children:[g.jsx("span",{className:"select-none text-emerald-400/30 mr-1",children:"+"}),c]},`n${d}`)),a&&g.jsxs("div",{className:"text-[#444] mt-0.5",children:["... ",r-hu," more lines"]})]})]})}function a7({args:e,result:t,status:r}){const a=r7(n7(e));return a.length===0?g.jsxs("div",{children:[g.jsx("span",{className:"text-sky-400/80 font-semibold text-sm",children:"patch"}),r==="failed"&&typeof t=="string"&&t.trim()&&g.jsx("div",{className:"text-red-400/70 text-[13px] mt-1",children:t.trim()})]}):g.jsxs("div",{className:"space-y-2",children:[a.map((s,o)=>g.jsx(i7,{op:s},o)),r==="failed"&&typeof t=="string"&&t.trim()&&g.jsx("div",{className:"text-red-400/70 text-[13px]",children:t.trim()})]})}function s7({args:e,result:t}){const r=(e.path??"").trim(),a=t;let s=null;if(typeof a=="string"){const o=a.trim();o&&!o.toLowerCase().startsWith("data:image/")&&!o.startsWith("{")&&(s=o)}return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-baseline gap-2",children:[g.jsx("span",{className:"text-sky-400/80 font-semibold text-sm shrink-0",children:"view image"}),r&&g.jsx("span",{className:"text-[#888] font-mono text-[13px] break-all",children:ug(r)})]}),s&&g.jsx("div",{className:"text-red-400/70 text-[13px] mt-1",children:s})]})}const l7={critical:"text-red-400",high:"text-orange-400",medium:"text-yellow-400",low:"text-blue-400",info:"text-cyan-400"};function o7({args:e,result:t}){const r=e.title??"",a=e.description??"",s=e.impact??"",o=e.target??"",c=e.endpoint??"",d=e.method??"",f=e.technical_analysis??"",h=e.poc_description??"",m=e.poc_script_code??"",p=e.remediation_steps??"",y=e.cve??"",x=e.cwe??"",_=t,N=(_&&typeof _=="object"?_.severity:null)??e.severity??"medium",S=String(N).toLowerCase(),w=(_&&typeof _=="object"?_.cvss_score:null)??e.cvss??null,k=l7[S]??"text-yellow-400";return g.jsxs("div",{className:"space-y-3",children:[g.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[g.jsx("span",{className:`font-semibold text-sm ${k}`,children:S.toUpperCase()}),w!=null&&g.jsxs("span",{className:"text-[#888] text-[13px]",children:["CVSS ",w]}),y&&g.jsx("span",{className:"text-[#888] font-mono text-[13px]",children:y}),x&&g.jsx("span",{className:"text-[#888] font-mono text-[13px]",children:x})]}),r&&g.jsx("div",{className:"text-[15px] text-white/80 font-semibold",children:r}),(o||c)&&g.jsxs("div",{className:"text-[13px] text-[#888] font-mono",children:[o,c?` ${d} ${c}`:""]}),a&&g.jsx(Ln,{text:a,maxLines:20}),s&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Impact"}),g.jsx("div",{className:"mt-1",children:g.jsx(Ln,{text:s,maxLines:15})})]}),f&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Technical Analysis"}),g.jsx("div",{className:"mt-1",children:g.jsx(Ln,{text:f,maxLines:20})})]}),(h||m)&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Proof of Concept"}),h&&g.jsx("div",{className:"mt-1",children:g.jsx($s,{text:h})}),m&&g.jsx(iE,{children:m})]}),p&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Remediation"}),g.jsx("div",{className:"mt-1",children:g.jsx(Ln,{text:p,maxLines:15})})]})]})}const ZN=200,QN={GET:"text-emerald-400/80",POST:"text-blue-400/80",PUT:"text-yellow-400/80",PATCH:"text-orange-400/80",DELETE:"text-red-400/80"};function dg(e){return e<300?"text-emerald-400/80":e<400?"text-yellow-400/80":e<500?"text-orange-400/80":"text-red-400/80"}function Xr(e,t=80){return e.length>t?e.slice(0,t-3)+"...":e}function mp(e,t=150){return Xr(e.replace(/\n/g," ").replace(/\r/g,"").replace(/\t/g," "),t)}function pp(e,t){const r=e.split(`
+`),a=r.slice(0,t).map(s=>Xr(s,ZN-5)).join(`
+`);return r.length>t?a+`
+...`:a}function c7({args:e,result:t}){const r=e.httpql_filter??"",a=t,s=a?a.requests:null,o=Array.isArray(s)?s:[];return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"listing requests"}),r&&g.jsx("span",{className:"text-[#888] text-[13px]",children:Xr(r,150)})]}),o.length>0&&g.jsxs("div",{className:"mt-1.5 font-mono text-[13px] space-y-0.5",children:[o.slice(0,20).map((c,d)=>{const f=(c.method??"GET").toUpperCase(),h=c.host??"",m=c.path??"",p=c.response,y=(p==null?void 0:p.statusCode)??null;return g.jsxs("div",{className:"flex gap-2",children:[g.jsx("span",{className:`w-10 shrink-0 font-bold ${QN[f]??"text-[#888]"}`,children:f}),g.jsx("span",{className:"text-[#777] truncate",children:Xr(h+m,180)}),y!=null&&g.jsx("span",{className:`ml-auto shrink-0 ${dg(y)}`,children:y})]},d)}),o.length>20&&g.jsxs("div",{className:"text-[#555]",children:["... +",o.length-20," more"]})]})]})}function u7({args:e,result:t}){const r=e.request_id,a=e.part??"request",s=e.search_pattern??"",o=t,c=o?o.matches:null,d=Array.isArray(c)?c:[],f=o?o.content??null:null,h=o?!!o.has_more:!1;return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsxs("span",{className:"text-purple-400/80 font-semibold text-sm",children:[s?"searching":"viewing"," ",a]}),r!=null&&g.jsxs("span",{className:"text-[#888] text-[13px]",children:["#",r]}),s&&g.jsxs("span",{className:"text-[#666] font-mono text-[13px]",children:["/",Xr(s,100),"/"]})]}),d.length>0&&g.jsxs("div",{className:"mt-1.5 font-mono text-[13px] space-y-1",children:[d.slice(0,5).map((m,p)=>{const y=(m.before??"").replace(/\n/g," ").replace(/\r/g,"").slice(-100),x=(m.after??"").replace(/\n/g," ").replace(/\r/g,"").slice(0,100);return g.jsxs("div",{children:[y&&g.jsxs("span",{className:"text-[#555]",children:["...",y]}),g.jsx("span",{className:"text-amber-400/80 font-bold",children:m.match}),x&&g.jsxs("span",{className:"text-[#555]",children:[x,"..."]})]},p)}),d.length>5&&g.jsxs("div",{className:"text-[#555]",children:["... +",d.length-5," more matches"]})]}),f&&!d.length&&(()=>{const m=f.split(`
+`),p=m.slice(0,15).map(x=>Xr(x,ZN)).join(`
+`),y=h||m.length>15;return g.jsx(wi,{className:"text-[#666]",children:p+(y?`
+... more content available`:"")})})()]})}function d7({args:e,result:t}){const r=(e.method??"GET").toUpperCase(),a=e.url??"",s=e.headers,o=e.body,c=typeof o=="string"?o:"",d=t,f=d?d.error??null:null,h=d?d.status_code??null:null,m=d?d.response_time_ms??null:null,p=d?d.body:null,y=typeof p=="string"?p:null;return g.jsxs("div",{children:[g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"request"}),g.jsxs("div",{className:"mt-1.5 font-mono text-[13px] space-y-0.5",children:[g.jsxs("div",{children:[g.jsx("span",{className:"text-[#555] select-none mr-1",children:">>"}),g.jsx("span",{className:`font-bold ${QN[r]??"text-[#888]"}`,children:r}),g.jsx("span",{className:"text-[#888] ml-1 break-all",children:Xr(a,180)})]}),s&&typeof s=="object"&&Object.entries(s).slice(0,5).map(([x,_])=>g.jsxs("div",{className:"text-[#555] pl-5",children:[x,": ",mp(String(_),150)]},x))]}),c&&g.jsx(wi,{className:"text-[#888]",children:pp(c,4)}),f&&g.jsx("div",{className:"text-red-400/70 text-[13px] mt-1.5",children:mp(f,150)}),h!=null&&g.jsxs("div",{className:"font-mono text-[13px] mt-1.5",children:[g.jsx("span",{className:"text-[#555] select-none mr-1",children:"<<"}),g.jsx("span",{className:`font-bold ${dg(h)}`,children:h}),m!=null&&g.jsxs("span",{className:"text-[#555] ml-2",children:[m,"ms"]})]}),y&&g.jsx(wi,{className:"text-[#666]",children:pp(y,6)})]})}function f7({args:e,result:t}){const r=e.request_id,a=e.modifications,s=t,o=s?s.status_code??null:null,c=s?s.response_time_ms??null:null,d=s?s.body:null,f=typeof d=="string"?d:null;return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"repeating request"}),r!=null&&g.jsxs("span",{className:"text-[#888] text-[13px]",children:["#",r]})]}),a&&typeof a=="object"&&Object.keys(a).length>0&&g.jsx("div",{className:"mt-1.5 font-mono text-[13px] space-y-0.5",children:Object.entries(a).slice(0,5).map(([h,m])=>g.jsxs("div",{children:[g.jsxs("span",{className:"text-orange-400/60",children:[h,":"]})," ",g.jsx("span",{className:"text-[#777]",children:mp(typeof m=="string"?m:JSON.stringify(m),150)})]},h))}),o!=null&&g.jsxs("div",{className:"font-mono text-[13px] mt-1.5",children:[g.jsx("span",{className:"text-[#555] select-none mr-1",children:"<<"}),g.jsx("span",{className:`font-bold ${dg(o)}`,children:o}),c!=null&&g.jsxs("span",{className:"text-[#555] ml-2",children:[c,"ms"]})]}),f&&g.jsx(wi,{className:"text-[#666]",children:pp(f,5)})]})}const h7={get:"getting",list:"listing",create:"creating",update:"updating",delete:"deleting"};function m7({args:e}){const t=e.action??"",r=e.scope_name??"",a=h7[t]??(t||"managing");return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsxs("span",{className:"text-purple-400/80 font-semibold text-sm",children:[a," proxy scope"]}),r&&g.jsx("span",{className:"text-[#888] text-[13px]",children:Xr(r,50)})]})}function p7({args:e}){const t=e.parent_id;return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"listing sitemap"}),t&&g.jsxs("span",{className:"text-[#888] text-[13px]",children:["under #",Xr(String(t),20)]})]})}function g7({args:e}){const t=e.entry_id;return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"viewing sitemap entry"}),t&&g.jsxs("span",{className:"text-[#888] text-[13px]",children:["#",Xr(String(t),20)]})]})}function b7(e){switch(e.toolName){case"list_requests":return g.jsx(c7,{...e});case"view_request":return g.jsx(u7,{...e});case"send_request":return g.jsx(d7,{...e});case"repeat_request":return g.jsx(f7,{...e});case"scope_rules":return g.jsx(m7,{...e});case"list_sitemap":return g.jsx(p7,{...e});case"view_sitemap_entry":return g.jsx(g7,{...e});default:return g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:e.toolName.replace(/_/g," ")})}}function x7({args:e}){const t=e.thought??e.content??"";return t?g.jsxs("div",{children:[g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"Agent is thinking"}),g.jsx("div",{className:"mt-1.5 italic text-[#888]",children:g.jsx(Ln,{text:t,maxLines:20})})]}):null}function y7({toolName:e,args:t}){if(e==="create_agent"){const r=t.name??t.agent_name??"",a=t.task??"";return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"spawning"}),r&&g.jsx("span",{className:"text-cyan-400 font-semibold text-sm",children:r})]}),a&&g.jsx("div",{className:"mt-1.5",children:g.jsx(Ln,{text:a,maxLines:15})})]})}if(e==="agent_finish"){const r=t.result_summary??"",a=t.success,s=t.findings,o=Array.isArray(s)?s:void 0;return g.jsxs("div",{children:[g.jsx("span",{className:`font-semibold text-sm ${a===!1?"text-red-400/80":"text-emerald-400/80"}`,children:a===!1?"Agent failed":"Agent completed"}),r&&g.jsx("div",{className:"mt-1.5",children:g.jsx(Ln,{text:r,maxLines:20})}),o&&o.length>0&&g.jsx("div",{className:"mt-1.5 space-y-0.5",children:o.map((c,d)=>g.jsxs("div",{className:"text-[13px] text-[#888]",children:[g.jsx("span",{className:"text-red-400/50 mr-1",children:"•"}),typeof c=="string"?c:JSON.stringify(c)]},d))})]})}if(e==="send_message_to_agent"){const r=t.message??"",a=t.target_agent_id??t.agent_id??"";return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"message"}),a&&g.jsxs("span",{className:"text-[#888] text-[13px]",children:["to ",a.slice(0,16)]})]}),r&&g.jsx("div",{className:"mt-1.5",children:g.jsx(Ln,{text:r,maxLines:20})})]})}if(e==="wait_for_message"){const r=t.reason??"";return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"waiting"}),r&&g.jsx("span",{className:"text-[#888] text-[13px] truncate",children:r})]})}if(e==="stop_agent"){const r=t.target_agent_id??"",a=t.cascade!==!1,s=t.reason??"";return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[g.jsx("span",{className:"text-red-400/80 font-semibold text-sm",children:"stopping"}),r&&g.jsx("span",{className:"text-[#888] text-[13px]",children:r.slice(0,16)}),a&&g.jsx("span",{className:"text-[#555] text-[13px] italic",children:"+ descendants"})]}),s&&g.jsx("div",{className:"mt-1.5 text-[#888] text-[13px]",children:s})]})}return e==="view_agent_graph"?g.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"viewing agents graph"}):g.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:e.replace(/_/g," ")})}function v7({args:e,result:t}){const r=e.query??e.search_query??"",a=t,s=a?a.content??null:null,o=a&&!a.success?a.message??null:null;return g.jsxs("div",{children:[g.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"Searching the web"}),r&&g.jsx("div",{className:"text-[#888] text-[13px] mt-0.5",children:r}),o&&g.jsx("div",{className:"text-red-400/70 text-[13px] mt-1.5",children:o}),s&&g.jsx("div",{className:"mt-2",children:g.jsx(Ln,{text:s,maxLines:15})})]})}const _7=50,s_=200,l_=25,o_=24,w7=/\x1b(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~]|\][^\x07]*\x07)/g,E7=/\.\.\. \[(stdout|stderr|result|output|error) truncated at \d+k? chars\]/g;function N7(e){return e.replace(w7,"")}function Rm(e){const t=N7(e);return t.length>s_?t.slice(0,s_-3)+"...":t}function S7(e){return e.replace(E7,"").trim()}function k7(e){const t=e.split(`
+`);if(t.length<=_7)return t.map(Rm).join(`
+`);const r=t.length-l_-o_;return[...t.slice(0,l_).map(Rm),`... ${r} lines truncated ...`,...t.slice(-o_).map(Rm)].join(`
+`)}function T7({args:e,result:t}){const r=e.action??"",a=e.code??e.script??"",s=t;let o=null;s&&typeof s=="object"?o=typeof s.stdout=="string"?s.stdout:null:typeof s=="string"&&(o=s);const c=r==="new_session"?"new session":r==="close"?"close session":r==="list_sessions"?"list sessions":null,d=o?k7(S7(o)):null;return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-yellow-400/80 font-semibold text-sm",children:"Python"}),c&&g.jsx("span",{className:"text-[#888] text-[13px]",children:c})]}),a&&g.jsx(cg,{code:a,language:"python",collapsible:!0}),d&&g.jsx(wi,{className:"text-[#666]",children:d})]})}function C7({args:e}){const t=e.targets,a=(Array.isArray(t)?t:[]).map(s=>typeof s=="object"&&s?s.original??null:null).filter(Boolean);return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:"Starting penetration test"}),a.length===1&&g.jsxs("span",{className:"text-[#888] text-[13px]",children:["on ",a[0]]})]}),a.length>1&&g.jsx("div",{className:"mt-1.5 space-y-0.5",children:a.map((s,o)=>g.jsxs("div",{className:"text-[13px] text-[#888]",children:[g.jsx("span",{className:"text-[#555] mr-1",children:"•"}),s]},o))})]})}function A7({args:e}){const t=e.name??"Unknown Agent",r=e.task??"";return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-[#888] text-[13px]",children:"subagent"}),g.jsx("span",{className:"text-purple-400 font-semibold text-sm",children:t})]}),r&&g.jsx("div",{className:"mt-1.5",children:g.jsx(Ln,{text:r,maxLines:15})})]})}function M7(e){return e.toolName==="subagent_start_info"?g.jsx(A7,{...e}):g.jsx(C7,{...e})}function O7({args:e}){const t=e.executive_summary??"",r=e.methodology??"",a=e.technical_analysis??"",s=e.recommendations??"";return g.jsxs("div",{className:"space-y-3",children:[g.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:"Penetration test completed"}),t&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Executive Summary"}),g.jsx("div",{className:"mt-1",children:g.jsx(Ln,{text:t,maxLines:25})})]}),r&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Methodology"}),g.jsx("div",{className:"mt-1",children:g.jsx(Ln,{text:r,maxLines:25})})]}),a&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Technical Analysis"}),g.jsx("div",{className:"mt-1",children:g.jsx(Ln,{text:a,maxLines:25})})]}),s&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Recommendations"}),g.jsx("div",{className:"mt-1",children:g.jsx(Ln,{text:s,maxLines:25})})]}),!t&&!r&&!a&&!s&&g.jsx("div",{className:"text-[#555] text-xs",children:"Generating final report..."})]})}function R7({toolName:e,args:t,result:r}){if(e==="create_note"){const a=t.title??"",s=t.content??"",o=t.category??"general";return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note"}),g.jsxs("span",{className:"text-[#555] text-[13px]",children:["(",o,")"]})]}),a&&g.jsx("div",{className:"mt-1.5 text-[#999] text-[13px]",children:a}),s&&g.jsx("div",{className:"mt-1",children:g.jsx($s,{text:s})})]})}if(e==="delete_note")return g.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note removed"});if(e==="update_note"){const a=t.title??"",s=t.content??"";return g.jsxs("div",{children:[g.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note updated"}),a&&g.jsx("div",{className:"mt-1.5 text-[#999] text-[13px]",children:a}),s&&g.jsx("div",{className:"mt-1",children:g.jsx($s,{text:s})})]})}if(e==="get_note"){const a=r,s=a&&typeof a=="object"&&a.success?a.note:void 0;return g.jsxs("div",{children:[g.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note read"}),s&&g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"mt-1.5 text-[#999] text-[13px]",children:[s.title??"(untitled)",g.jsxs("span",{className:"text-[#555] ml-1",children:["(",s.category??"general",")"]})]}),s.content&&g.jsx("div",{className:"mt-1",children:g.jsx($s,{text:s.content})})]})]})}if(e==="list_notes"){const a=r;let s=[];if(a&&typeof a=="object"&&a.success){const o=a.notes;s=Array.isArray(o)?o:[]}return g.jsxs("div",{children:[g.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"notes"}),s.length>0?g.jsx("div",{className:"mt-1.5 space-y-0.5",children:s.map((o,c)=>g.jsxs("div",{className:"text-[13px]",children:[g.jsx("span",{className:"text-[#555] mr-1",children:"-"}),g.jsx("span",{className:"text-[#999]",children:o.title??"(untitled)"}),g.jsxs("span",{className:"text-[#555] ml-1",children:["(",o.category??"general",")"]}),o.content&&g.jsx("div",{className:"ml-3",children:g.jsx($s,{text:o.content})})]},c))}):g.jsx("div",{className:"mt-1 text-[#555] text-xs",children:"No notes"})]})}return g.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note"})}const D7={create_todo:{label:"Task added",Icon:qT},list_todos:{label:"Plan",Icon:$k},update_todo:{label:"Task updated",Icon:BT},mark_todo_done:{label:"Task completed",Icon:M_},mark_todo_pending:{label:"Task reopened",Icon:ZT},delete_todo:{label:"Task removed",Icon:cC}};function j7({status:e}){return e==="done"?g.jsx(M_,{className:"w-3.5 h-3.5 text-emerald-400/70 shrink-0"}):e==="in_progress"?g.jsx(Jk,{className:"w-3.5 h-3.5 text-purple-400/70 shrink-0 animate-pulse"}):g.jsx(tT,{className:"w-3.5 h-3.5 text-[#444] shrink-0"})}function L7({todos:e,highlightId:t}){return g.jsx("div",{className:"space-y-0",children:e.map((r,a)=>{const s=r.status??"pending",o=t&&r.id===t;return g.jsxs("div",{className:`flex items-start gap-2.5 py-1.5 px-2 -mx-2 rounded-md transition-colors ${o?"bg-purple-500/[0.08]":""}`,children:[g.jsx("div",{className:"mt-[1px]",children:g.jsx(j7,{status:s})}),g.jsx("span",{className:`text-[13px] leading-snug ${s==="done"?"text-[#555] line-through":s==="in_progress"?"text-[#bbb]":"text-[#999]"}`,children:r.title??"(untitled)"})]},r.id??a)})})}function z7({toolName:e,args:t,result:r}){const a=D7[e]??{label:"Plan",Icon:VT},s=a.Icon,o=r;if(typeof o=="string"&&o.trim())return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(s,{className:"w-3.5 h-3.5 text-purple-400/60"}),g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:a.label})]}),g.jsx("div",{className:"mt-1.5 text-[#888] text-[13px]",children:o.trim()})]});let c=[],d=null,f;if(o&&typeof o=="object"){if(d=o.error??null,o.success){const m=o.todos;c=Array.isArray(m)?m:[]}f=o.id??t.todo_id??void 0}const h=e!=="list_todos"?f:void 0;return c.length===0&&!d?g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(s,{className:"w-3.5 h-3.5 text-purple-400/60"}),g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:a.label})]}):g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[g.jsx(s,{className:"w-3.5 h-3.5 text-purple-400/60"}),g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:a.label})]}),d&&g.jsx("div",{className:"text-red-400/70 text-[13px] mb-2",children:d}),c.length>0&&g.jsx("div",{className:"rounded-lg border border-white/[0.06] bg-white/[0.015] px-3 py-2",children:g.jsx(L7,{todos:c,highlightId:h})})]})}function c_(e){if(e==null)return null;if(typeof e=="string")return e.trim()?e:null;if(typeof e=="object"){const t=e;if(typeof t.__raw=="string")return t.__raw;if(Object.keys(t).length===0)return null;try{return JSON.stringify(e,null,2)}catch{return String(e)}}return String(e)}function WN({toolName:e,args:t,result:r}){const a=c_(t),s=c_(r);return g.jsxs("div",{children:[g.jsx("span",{className:"text-[#888] font-semibold text-sm",children:e.replace(/_/g," ")}),a&&g.jsx(wi,{className:"text-[#777]",children:a}),s&&g.jsx(wi,{className:"text-[#666]",children:s})]})}function I7({args:e}){const t=e.skills,r=(Array.isArray(t)?t:String(t??"").split(",")).map(a=>String(a).trim()).filter(Boolean);return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:"Loading skill"}),r.length>0&&g.jsx("span",{className:"text-[#888] text-[13px]",children:r.join(", ")})]})}const ad={terminal:{renderer:KB,icon:z_,color:"text-emerald-400"},python:{renderer:T7,icon:iT,color:"text-yellow-400"},browser:{renderer:QB,icon:j_,color:"text-blue-400"},filesystem:{renderer:WB,icon:fT,color:"text-sky-400"},proxy:{renderer:b7,icon:k_,color:"text-purple-400",match:/request|sitemap|scope/},reporting:{renderer:o7,icon:eC,color:"text-red-400"},thinking:{renderer:x7,icon:C_,color:"text-purple-400"},agents:{renderer:y7,icon:Ao,color:"text-cyan-400",match:/agent/},search:{renderer:v7,icon:WT,color:"text-amber-400"},lifecycle:{renderer:M7,icon:D_,color:"text-emerald-400"},notes:{renderer:R7,icon:sC,color:"text-amber-400",match:/note/},skills:{renderer:I7,icon:Bm,color:"text-emerald-400"},todos:{renderer:z7,icon:AT,color:"text-purple-400",match:/todo/},telemetry:{renderer:WN,icon:Bm,color:"text-[#555]"}},B7={terminal:["exec_command","write_stdin","terminal_execute"],python:["python_action"],browser:["browser_action"],filesystem:["apply_patch","view_image","str_replace_editor","list_files","search_files"],proxy:["list_requests","view_request","repeat_request","list_sitemap","view_sitemap_entry","scope_rules","send_request"],reporting:["create_vulnerability_report"],thinking:["think"],agents:["create_agent","agent_finish","send_message_to_agent","wait_for_message","view_agent_graph","stop_agent"],search:["web_search"],lifecycle:["scan_start_info","subagent_start_info","finish_scan"],notes:["create_note","delete_note","update_note","list_notes","get_note"],skills:["load_skill"],todos:["create_todo","list_todos","update_todo","mark_todo_done","mark_todo_pending","delete_todo"],telemetry:["sandbox_error_details","llm_error_details"]},U7=Object.fromEntries(Object.entries(B7).flatMap(([e,t])=>t.map(r=>[r,e]))),H7={finish_scan:O7,apply_patch:a7,view_image:s7},$7={agent_finish:{icon:D_,color:"text-cyan-400"},send_message_to_agent:{icon:ny,color:"text-cyan-400"},wait_for_message:{icon:ny,color:"text-cyan-400"},view_agent_graph:{icon:uT,color:"text-cyan-400"},stop_agent:{icon:T_,color:"text-red-400"},scan_start_info:{icon:lT,color:"text-emerald-400"},subagent_start_info:{icon:Ao,color:"text-purple-400"},view_image:{icon:ST,color:"text-sky-400"}},q7=ad.telemetry;function JN(e){var r;const t=U7[e];if(t)return t;for(const[a,s]of Object.entries(ad))if((r=s.match)!=null&&r.test(e))return a;return null}function P7(e){const t=H7[e];if(t)return t;const r=JN(e);return r?ad[r].renderer:WN}function F7(e){const t=$7[e];if(t)return t;const r=JN(e),a=r?ad[r]:q7;return{icon:a.icon,color:a.color}}const G7=30;function V7({role:e,content:t}){const r=e==="user"||e==="human";return g.jsxs("div",{children:[g.jsx("span",{className:`font-semibold text-sm ${r?"text-blue-400/80":"text-purple-400/80"}`,children:r?"User":"Thinking"}),g.jsx("div",{className:"mt-1.5 italic text-[#888]",children:g.jsx(Ln,{text:t,maxLines:G7})})]})}class Y7 extends ee.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?g.jsx("span",{className:"text-[#555] font-semibold text-sm",children:this.props.toolName.replace(/_/g," ")}):this.props.children}}function X7(e){const t=P7(e.toolName);return g.jsx(Y7,{toolName:e.toolName,children:g.jsx(t,{...e})})}function eS(e){if(e==null||typeof e!="string")return e;const t=e.trim();if(!t)return e;try{return JSON.parse(t)}catch{}try{const r=t.replace(/\bNone\b/g,"null").replace(/\bTrue\b/g,"true").replace(/\bFalse\b/g,"false").replace(/'/g,'"');return JSON.parse(r)}catch{return{__raw:e}}}function tS(e){const t=eS(e);return t&&typeof t=="object"&&!Array.isArray(t)?t:t==null?{}:{__raw:typeof t=="string"?t:JSON.stringify(t)}}function u_(e){const t=/(\d+)$/.exec(e);return t?parseInt(t[1],10):0}function fg(e){var r;const t=(r=e.data)==null?void 0:r.role;return e.type==="chat"&&(t==="user"||t==="human")}function K7(e){var t;return fg(e)&&String(((t=e.data)==null?void 0:t.content)??"").startsWith("[Message from ")}function Z7(e){const t=new Set;let r=!1;for(const a of e)if(fg(a)){if(K7(a)){t.add(a.id);continue}r||(r=!0,t.add(a.id))}return t}const Q7={completed:"text-emerald-400 border-emerald-500/30 bg-emerald-500/10",running:"text-blue-400 border-blue-500/30 bg-blue-500/10",waiting:"text-yellow-400 border-yellow-500/30 bg-yellow-500/10",stopped:"text-[#aaa] border-[#333] bg-[#1a1a1a]",crashed:"text-red-400 border-red-500/30 bg-red-500/10",failed:"text-red-400 border-red-500/30 bg-red-500/10"};function W7(e){return e==="completed"?"completed":e==="running"?"running":e==="failed"||e==="crashed"?"failed":e}function J7(e,t){var d;const r=new Map;for(const f of e)if(f.parent_id){const h=r.get(f.parent_id)??[];h.push(f.id),r.set(f.parent_id,h)}const a=new Map,s=new Map,o=new Map;for(const f of t)if(f.type==="tool"){if(a.set(f.agent_id,(a.get(f.agent_id)??0)+1),((d=f.data)==null?void 0:d.tool_name)==="create_agent"){const h=tS(f.data.args),m=h.name??h.agent_name??"",p=h.task??"";m&&p&&o.set(m,p)}}else fg(f)||s.set(f.agent_id,(s.get(f.agent_id)??0)+1);const c=new Map;for(const f of e)c.set(f.id,{id:f.id,name:f.name,task:o.get(f.name)??"",status:W7(f.status),parentId:f.parent_id,children:r.get(f.id)??[],createdAt:f.created_at,toolCount:a.get(f.id)??0,messageCount:s.get(f.id)??0});return c}function eU({agent:e,events:t,showHeader:r=!0}){const a=ee.useMemo(()=>{const c=t.filter(f=>f.agent_id===e.id).sort((f,h)=>u_(f.id)-u_(h.id)),d=Z7(c);return c.filter(f=>!d.has(f.id))},[t,e.id]),s=a.filter(c=>c.type==="tool").length,o=a.length-s;return g.jsxs("div",{children:[r&&g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"flex items-center gap-2 flex-wrap mb-1",children:[g.jsx("span",{className:"text-base font-semibold text-white truncate",children:e.name}),g.jsx("span",{className:`flex-shrink-0 text-xs font-medium capitalize px-2 py-0.5 rounded-full border ${Q7[e.status]??"text-[#aaa] border-[#333] bg-[#1a1a1a]"}`,children:e.status}),g.jsx("span",{className:"font-mono text-xs text-[#555]",children:e.id})]}),g.jsxs("p",{className:"text-xs text-[#666] mb-4",children:[o," message",o===1?"":"s"," · ",s," tool call",s===1?"":"s"]})]}),a.length===0?g.jsx("p",{className:"text-sm text-[#666]",children:"No recorded activity for this agent."}):g.jsx("div",{className:"py-1",children:a.map((c,d)=>{var N,S,w,k,E,M;const f=d===a.length-1,h=c.type==="tool",m=h?String(((N=c.data)==null?void 0:N.tool_name)??"tool"):"",p=h?"":String(((S=c.data)==null?void 0:S.role)??"assistant");let y,x;if(h){const I=F7(m);y=I.icon,x=I.color}else{const I=p==="user"||p==="human";y=I?Ao:C_,x=I?"text-blue-400":"text-purple-400"}const _=h?String(((w=c.data)==null?void 0:w.status)??"completed"):"completed";return g.jsxs("div",{className:"flex gap-3",children:[g.jsxs("div",{className:"flex flex-col items-center shrink-0",children:[g.jsx("div",{className:`w-[30px] h-[30px] rounded-full bg-black border flex items-center justify-center shrink-0 ${h&&_==="running"?"border-blue-500/40 animate-pulse":h&&_==="failed"?"border-red-500/30":"border-[#222]"}`,children:g.jsx(y,{className:`w-3.5 h-3.5 ${x}`})}),!f&&g.jsx("div",{className:"w-px flex-1 bg-[#1a1a1a] mt-1"})]}),g.jsx("div",{className:"flex-1 min-w-0 pt-[5px] pb-6",children:h?g.jsx(X7,{toolName:m,args:tS((k=c.data)==null?void 0:k.args),result:eS((E=c.data)==null?void 0:E.result)??null,status:_}):g.jsx(V7,{role:p,content:String(((M=c.data)==null?void 0:M.content)??"")})})]},c.id)})})]})}class Iu extends Error{constructor(t){super(t),this.name="RunParseError"}}const tU=["critical","high","medium","low"];function nU(e){const t=String(e??"").toLowerCase().trim();return tU.includes(t)?t:"low"}function rU(e){if(typeof e=="string"&&e.trim()){const t=e.trim().replace(" UTC","Z").replace(" ","T"),r=new Date(t);if(!Number.isNaN(r.getTime()))return r.toISOString();const a=new Date(e);if(!Number.isNaN(a.getTime()))return a.toISOString()}return new Date().toISOString()}function Ot(e){return typeof e=="string"&&e.length>0?e:null}function iU(e){return typeof e=="number"&&Number.isFinite(e)?e:null}function nS(e,t){try{return JSON.parse(e)}catch{throw new Iu(`${t} isn't valid JSON. Make sure you selected a Strix run directory.`)}}function aU(e){const t=nS(e,"run.json");if(!t||typeof t!="object"||Array.isArray(t))throw new Iu("run.json is not an object.");const r=t,a=[],s=r.targets_info;if(Array.isArray(s)){for(const x of s)if(x&&typeof x=="object"){const _=x.original;typeof _=="string"&&_&&a.push(_)}}const o=Ot(r.start_time),c=Ot(r.end_time);let d=null;if(o&&c){const x=new Date(o).getTime(),_=new Date(c).getTime();!Number.isNaN(x)&&!Number.isNaN(_)&&_>=x&&(d=Math.round((_-x)/1e3))}let f=null,h=null,m=null,p=null;const y=r.scan_results;if(y&&typeof y=="object"){const x=y;f=Ot(x.executive_summary),h=Ot(x.technical_analysis),m=Ot(x.methodology),p=Ot(x.recommendations)}return{runId:Ot(r.run_id),runName:Ot(r.run_name),targets:a,scanMode:Ot(r.scan_mode),status:Ot(r.status),startTime:o,endTime:c,durationSeconds:d,executiveSummary:f,technicalAnalysis:h,methodology:m,recommendations:p}}function sU(){return{pr_review_id:null,cve:null,cvss:null,potential_risk_saving:null,risk_saving_description:null,impact:null,endpoint:null,method:null,target:null,technical_analysis:null,poc_description:null,poc_script_code:null,code_diff:null,code_file:null,code_before:null,code_after:null,cwe:null,code_locations:null,remediation_steps:null,fix_pr_body:null,evidence:null,assumptions:null,fix_effort:null,cvss_breakdown:null,status_changed_at:null,status_changed_by:null,status_note:null,snoozed_until:null,reopened_at:null,reopened_by:null,original_severity:null,severity_changed_at:null,severity_changed_by:null,severity_override_reason:null,retest_of_vulnerability_id:null}}function lU(e,t,r){const a=e.cwe,s=typeof a=="string"&&a.trim()?[a.trim()]:Array.isArray(a)?a.filter(c=>typeof c=="string"&&c):null;return{...sU(),id:Ot(e.id)??`vuln-${t+1}`,scan_id:r,title:Ot(e.title)??"Untitled finding",description:Ot(e.description)??"",severity:nU(e.severity),status:"open",created_at:rU(e.timestamp),cve:Ot(e.cve),cvss:iU(e.cvss),impact:Ot(e.impact),endpoint:Ot(e.endpoint),method:Ot(e.method),target:Ot(e.target),technical_analysis:Ot(e.technical_analysis),poc_description:Ot(e.poc_description),poc_script_code:Ot(e.poc_script_code),cwe:s,code_locations:Array.isArray(e.code_locations)?e.code_locations:null,remediation_steps:Ot(e.remediation_steps),fix_pr_body:Ot(e.fix_pr_body),evidence:Ot(e.evidence),assumptions:Ot(e.assumptions),fix_effort:Ot(e.fix_effort)??null,cvss_breakdown:e.cvss_breakdown??null}}function oU(e,t=null){const r=nS(e,"vulnerabilities.json");if(!Array.isArray(r))throw new Iu("vulnerabilities.json is not a JSON array.");return r.map((a,s)=>{if(!a||typeof a!="object")throw new Iu(`vulnerabilities.json entry #${s+1} is not an object.`);return lU(a,s,t)})}function cU(e){const t={critical:0,high:0,medium:0,low:0};for(const r of e)t[r.severity]+=1;return t}async function Wa(e){const t=await fetch(e,{cache:"no-store"});if(!t.ok)throw new Error(`${e} responded ${t.status}`);return t.json()}function sd(e){return e?`?run=${encodeURIComponent(e)}`:""}async function rS(e){const t=await Wa("/api/run"+sd(e)),r=aU(JSON.stringify(t)),a=t.finished===!0;return{summary:r,raw:t,finished:a}}async function iS(e,t){const r=await Wa("/api/vulnerabilities"+sd(t));return oU(JSON.stringify(r),e)}async function uU(e){const t=await Wa("/api/report"+sd(e));return(t==null?void 0:t.markdown)??null}async function aS(e){const t=await Wa("/api/transcript"+sd(e));return{agents:Array.isArray(t==null?void 0:t.agents)?t.agents:[],events:Array.isArray(t==null?void 0:t.events)?t.events:[]}}async function d_(e){const{summary:t,raw:r,finished:a}=await rS(e),[s,o,c]=await Promise.all([iS(t.runId,e).catch(()=>[]),uU(e).catch(()=>null),aS(e).catch(()=>({agents:[],events:[]}))]);return{summary:t,raw:r,finished:a,vulnerabilities:s,reportMarkdown:o,transcript:c}}async function rl(e,t){const r=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),cache:"no-store"});let a={};try{const s=await r.json();s&&typeof s=="object"&&(a=s)}catch{}return{ok:r.ok,status:r.status,data:a}}async function dU(){const e=await Wa("/api/runs");return{locked:(e==null?void 0:e.locked)??!0,count:typeof(e==null?void 0:e.count)=="number"?e.count:0,runs:Array.isArray(e==null?void 0:e.runs)?e.runs:[]}}async function fU(){const e=await Wa("/api/capabilities");return{can_steer:(e==null?void 0:e.can_steer)===!0}}async function hU(e,t){const{ok:r,data:a}=await rl("/api/agents/steer",{agent_id:e,message:t});return r&&a.ok===!0?{ok:!0}:{ok:!1,error:String(a.error??"unavailable")}}async function mU(e,t){const{ok:r,data:a}=await rl("/api/feedback",{message:e,email:t});return r&&a.ok===!0?{ok:!0}:{ok:!1,error:String(a.error??"unavailable")}}async function pU(){const e=await Wa("/api/auth/status");return{verified:(e==null?void 0:e.verified)===!0,email:(e==null?void 0:e.email)??null}}async function sS(e){const{ok:t,data:r}=await rl("/api/auth/otp/start",{email:e});return t&&r.ok===!0?{ok:!0}:{ok:!1,error:String(r.error??"unavailable")}}async function lS(e,t){const{ok:r,data:a}=await rl("/api/auth/otp/verify",{email:e,code:t});return r&&a.verified===!0?{verified:!0,email:String(a.email??e)}:{verified:!1,error:String(a.error??"invalid_code")}}async function gU(){await rl("/api/auth/forget",{})}async function bU(e){const{ok:t,data:r}=await rl("/api/report/send",e?{run:e}:{});return t&&r.ok===!0?{ok:!0,password:String(r.password??""),filename:String(r.filename??"strix-report.pdf")}:{ok:!1,error:String(r.error??"unavailable")}}const Is="__root__";function oS({agents:e,fixedAgentId:t,className:r}){const a=ee.useRef(null),[s,o]=ee.useState(!1),[c,d]=ee.useState(!1),[f,h]=ee.useState(""),[m,p]=ee.useState(!1),[y,x]=ee.useState(null),_=t!=null,N=ee.useMemo(()=>e.find(L=>!L.parent_id)??e[0]??null,[e]),S=ee.useMemo(()=>e.filter(L=>L.parent_id&&L.status==="running"),[e]),[w,k]=ee.useState(Is),[E,M]=ee.useState(!1);ee.useEffect(()=>{w!==Is&&!S.some(L=>L.id===w)&&k(Is)},[w,S]);const{targetId:I,targetName:R}=ee.useMemo(()=>{if(_){const G=e.find(V=>V.id===t)??null;return{targetId:t??null,targetName:(G==null?void 0:G.name)??"this agent"}}if(w===Is)return{targetId:(N==null?void 0:N.id)??null,targetName:"Root agent"};const L=e.find(G=>G.id===w)??null;return{targetId:(L==null?void 0:L.id)??(N==null?void 0:N.id)??null,targetName:(L==null?void 0:L.name)??"Root agent"}},[e,t,_,N,w]),U=f.trim().length===0;ee.useLayoutEffect(()=>{const L=a.current;L&&(L.style.height="auto",L.style.height=`${L.scrollHeight}px`)},[f]);const B=ee.useCallback(()=>{o(!0),requestAnimationFrame(()=>{var L;return(L=a.current)==null?void 0:L.focus()})},[]),Z=ee.useCallback(()=>{o(!1),d(!1),M(!1)},[]),D=ee.useCallback(async()=>{if(m)return;const L=f.trim();if(!L||!I)return;p(!0),x(null);const G=R,V=await hU(I,L);p(!1),V.ok?(h(""),x(`Sent to ${G}`),Cr("agent_steered")):V.error==="not_delivered"?x("Could not reach that agent (it may have finished)."):x("Could not send that message. Try again.")},[m,f,I,R]);return s?g.jsxs("div",{className:Mr("mt-4 rounded-2xl border border-white/[0.08] bg-[#050505] overflow-hidden transition-colors duration-300",c?"border-white/[0.18]":"hover:border-white/[0.12]",r),children:[g.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-white/[0.06] px-5 py-3",children:[g.jsxs("div",{className:"min-w-0",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Im,{className:"h-4 w-4 text-[#666]"}),g.jsx("p",{className:"text-sm font-medium text-white",children:"Live prompt"})]}),g.jsx("p",{className:"mt-0.5 text-xs text-[#777]",children:"Connected"})]}),g.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[_?g.jsxs("div",{className:"rounded-full border border-white/[0.08] bg-white/[0.03] px-3 py-1 text-xs text-[#aaa]",children:["Target: ",g.jsx("span",{className:"text-white",children:R})]}):g.jsxs("div",{className:"flex items-center gap-1.5",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"Target:"}),g.jsxs("div",{className:"relative",children:[g.jsxs("button",{type:"button",onClick:()=>M(L=>!L),onBlur:()=>requestAnimationFrame(()=>M(!1)),className:"inline-flex h-7 items-center gap-1 rounded-full border border-white/[0.08] bg-white/[0.03] px-3 text-xs text-white transition-colors hover:border-white/[0.16] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/20","aria-haspopup":"listbox","aria-expanded":E,children:[g.jsx("span",{className:"max-w-[140px] truncate",children:R}),g.jsx(ho,{className:"h-3.5 w-3.5 text-[#999]"})]}),E&&g.jsxs("div",{className:"absolute right-0 z-10 mt-1 min-w-[160px] overflow-hidden rounded-lg border border-[#333] bg-[#0a0a0a] py-1 shadow-xl",role:"listbox",children:[g.jsx(f_,{label:"Root agent",active:w===Is,onSelect:()=>{k(Is),M(!1)}}),S.map(L=>g.jsx(f_,{label:L.name,active:w===L.id,onSelect:()=>{k(L.id),M(!1)}},L.id))]})]})]}),g.jsx("button",{type:"button",onClick:Z,className:"inline-flex h-7 w-7 items-center justify-center rounded-full text-[#777] transition-colors hover:bg-white/[0.06] hover:text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/20","aria-label":"Collapse live prompt composer",children:g.jsx(ho,{className:"h-4 w-4"})})]})]}),g.jsx("div",{className:"px-5 pt-4 pb-3",children:g.jsx("textarea",{ref:a,rows:1,value:f,onChange:L=>h(L.target.value),onFocus:()=>d(!0),onBlur:()=>d(!1),onKeyDown:L=>{L.key==="Enter"&&!L.shiftKey&&(L.preventDefault(),D())},placeholder:"Send a live prompt to the running scan…",maxLength:4e3,disabled:m,className:"block w-full resize-none border-0 bg-transparent p-0 text-[15px] leading-6 text-white placeholder:text-[#444] focus:outline-none disabled:opacity-60 max-h-[160px] overflow-y-auto"})}),g.jsxs("div",{className:"flex items-center justify-between gap-3 px-4 pb-4",children:[g.jsx("div",{className:"text-xs text-[#666]",children:y??"Press Enter to send."}),g.jsxs("button",{type:"button",onClick:L=>{L.stopPropagation(),D()},disabled:m||U,className:Mr("inline-flex h-10 min-w-[112px] items-center justify-center gap-2 rounded-full px-4 text-sm font-medium transition-colors",m||U?"bg-white/[0.08] text-[#666]":"bg-white text-black hover:bg-neutral-200"),children:[m?g.jsx(qs,{className:"h-4 w-4 animate-spin"}):g.jsx(Rk,{className:"h-4 w-4",strokeWidth:2.5}),g.jsx("span",{children:"Send prompt"})]})]})]}):g.jsxs("button",{type:"button",onClick:B,className:Mr("mt-4 flex w-full items-center justify-between gap-3 rounded-2xl border border-white/[0.08] bg-[#050505] px-5 py-3 text-left transition-colors duration-300 hover:border-white/[0.12] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/20",r),"aria-expanded":!1,"aria-label":"Expand live prompt composer",children:[g.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[g.jsx(Im,{className:"h-4 w-4 shrink-0 text-[#666]"}),g.jsx("span",{className:"truncate text-sm font-medium text-white",children:"Guide the agent"})]}),g.jsx(A_,{className:"h-4 w-4 shrink-0 text-[#777]"})]})}function f_({label:e,active:t,onSelect:r}){return g.jsx("button",{type:"button",role:"option","aria-selected":t,onMouseDown:a=>{a.preventDefault(),r()},className:Mr("block w-full truncate px-3 py-1.5 text-left text-xs transition-colors hover:bg-white/[0.06]",t?"text-white":"text-[#aaa]"),children:e})}const xU={completed:"bg-emerald-400",running:"bg-blue-400",waiting:"bg-yellow-400",stopped:"bg-[#888]",crashed:"bg-red-400",failed:"bg-red-400"},yU=80;function vU({open:e,agent:t,events:r,steerable:a,onClose:s}){const o=ee.useRef(null),c=ee.useRef(!1),[d,f]=ee.useState(e),[h,m]=ee.useState(e?"open":"closed"),[p,y]=ee.useState(!1),x=ee.useRef(t);ee.useEffect(()=>{t&&(x.current=t)},[t]);const _=t??x.current;ee.useEffect(()=>{if(e){f(!0),m("open");return}m("closed");const S=setTimeout(()=>f(!1),140);return()=>clearTimeout(S)},[e]),ee.useEffect(()=>{if(!d){y(!1);return}const S=requestAnimationFrame(()=>y(!0));return()=>cancelAnimationFrame(S)},[d]);const N=ee.useCallback(()=>{const S=o.current;S&&(c.current=S.scrollHeight-S.scrollTop-S.clientHeight<yU)},[]);return ee.useEffect(()=>{const S=o.current;!S||!c.current||requestAnimationFrame(()=>{S.scrollTo({top:S.scrollHeight,behavior:"smooth"})})},[r]),ee.useEffect(()=>{if(!d)return;const S=k=>{k.key==="Escape"&&s()};document.addEventListener("keydown",S);const w=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",S),document.body.style.overflow=w}},[d,s]),!d||!_?null:g.jsx("div",{"data-state":h,className:"agent-modal fixed inset-0 z-50 flex items-center justify-center bg-black/80 p-4 sm:p-8",onClick:s,role:"dialog","aria-modal":"true","aria-label":`Agent ${_.name}`,children:g.jsxs("div",{className:"relative flex h-[60vh] w-[calc(100vw-4rem)] max-w-6xl flex-col overflow-hidden rounded-xl border border-[#222] bg-[#0a0a0a] shadow-2xl",onClick:S=>S.stopPropagation(),children:[g.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-[#222] px-5 py-3.5",children:[g.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[g.jsx("span",{className:`h-2 w-2 flex-shrink-0 rounded-full ${xU[_.status]??"bg-[#888]"}`}),g.jsx("span",{className:"truncate text-sm font-semibold text-white",children:_.name}),g.jsx("span",{className:"flex-shrink-0 font-mono text-xs text-[#555]",children:_.id})]}),g.jsx("button",{type:"button",onClick:s,"aria-label":"Close",className:"flex-shrink-0 rounded-md p-1 text-[#888] transition-colors hover:bg-[#1a1a1a] hover:text-white",children:g.jsx(xp,{className:"h-4 w-4"})})]}),g.jsx("div",{ref:o,onScroll:N,className:"flex-1 overflow-y-auto p-5",children:p&&g.jsx(eU,{agent:_,events:r,showHeader:!1})}),a&&g.jsx("div",{className:"border-t border-[#222] px-5 py-3",children:g.jsx(oS,{agents:[_],fixedAgentId:_.id,className:"mt-0"})})]})})}var cS={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},h_=ua.createContext&&ua.createContext(cS),_U=["attr","size","title"];function wU(e,t){if(e==null)return{};var r,a,s=EU(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}function EU(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}function Bu(){return Bu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Bu.apply(null,arguments)}function m_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,a)}return r}function Uu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?m_(Object(r),!0).forEach(function(a){NU(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m_(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function NU(e,t,r){return(t=SU(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SU(e){var t=kU(e,"string");return typeof t=="symbol"?t:t+""}function kU(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uS(e){return e&&e.map((t,r)=>ua.createElement(t.tag,Uu({key:r},t.attr),uS(t.child)))}function hg(e){return t=>ua.createElement(TU,Bu({attr:Uu({},e.attr)},t),uS(e.child))}function TU(e){var t=r=>{var a=e.attr,s=e.size,o=e.title,c=wU(e,_U),d=s||r.size||"1em",f;return r.className&&(f=r.className),e.className&&(f=(f?f+" ":"")+e.className),ua.createElement("svg",Bu({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,a,c,{className:f,style:Uu(Uu({color:e.color||r.color},r.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),o&&ua.createElement("title",null,o),e.children)};return h_!==void 0?ua.createElement(h_.Consumer,null,r=>t(r)):t(cS)}function CU(e){return hg({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"5",cy:"6",r:"3"},child:[]},{tag:"path",attr:{d:"M5 9v12"},child:[]},{tag:"circle",attr:{cx:"19",cy:"18",r:"3"},child:[]},{tag:"path",attr:{d:"m15 9-3-3 3-3"},child:[]},{tag:"path",attr:{d:"M12 6h5a2 2 0 0 1 2 2v7"},child:[]}]})(e)}function AU(e){return hg({attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{d:"M15 4.95703C15 4.58711 14.8563 4.24054 14.5949 3.97992L12.0096 1.39234C11.4879 0.86922 10.5788 0.86922 10.0571 1.39234L8 3.45119V3.32321C8 2.55068 7.37187 1.922 6.6 1.922H2.4C1.62813 1.922 1 2.55068 1 3.32321V13.5988C1 14.3713 1.62813 15 2.4 15H12.6667C13.4385 15 14.0667 14.3713 14.0667 13.5988V9.39514C14.0667 8.62261 13.4385 7.99393 12.6667 7.99393H12.5379L14.5949 5.93508C14.8553 5.67445 15 5.32602 15 4.95703ZM2.4 2.85521H6.6C6.85667 2.85521 7.06667 3.06446 7.06667 3.32228V7.99299H1.93333V3.32228C1.93333 3.06446 2.14333 2.85521 2.4 2.85521ZM1.93333 13.5979V8.92714H7.06667V14.0649H2.4C2.14333 14.0649 1.93333 13.8547 1.93333 13.5979ZM13.1333 9.39421V13.5979C13.1333 13.8547 12.9233 14.0649 12.6667 14.0649H8V8.92714H12.6667C12.9233 8.92714 13.1333 9.13638 13.1333 9.39421ZM8 7.99299V6.46287L9.5288 7.99299H8ZM13.9351 5.2737L11.3488 7.86221C11.1789 8.03223 10.8859 8.03223 10.716 7.86221L8.12973 5.2737C8.0448 5.18963 7.99813 5.07753 7.99813 4.95796C7.99813 4.83839 8.0448 4.7263 8.12973 4.64129L10.716 2.05278C10.8009 1.96777 10.9129 1.92106 11.0324 1.92106C11.1519 1.92106 11.2639 1.96777 11.3488 2.05278L13.9351 4.64129C14.02 4.72536 14.0667 4.83746 14.0667 4.95703C14.0667 5.0766 14.02 5.1887 13.9351 5.2737Z"},child:[]}]})(e)}function dS(e){return hg({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M431 320.6c-1-3.6 1.2-8.6 3.3-12.2a34 34 0 0 1 2.1-3.1A162 162 0 0 0 464 215c.3-92.2-77.5-167-173.7-167-83.9 0-153.9 57.1-170.3 132.9a160.7 160.7 0 0 0-3.7 34.2c0 92.3 74.8 169.1 171 169.1 15.3 0 35.9-4.6 47.2-7.7s22.5-7.2 25.4-8.3a26.4 26.4 0 0 1 9.3-1.7 26 26 0 0 1 10.1 2l56.7 20.1a13.5 13.5 0 0 0 3.9 1 8 8 0 0 0 8-8 13 13 0 0 0-.5-2.7z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M66.46 232a146.23 146.23 0 0 0 6.39 152.67c2.31 3.49 3.61 6.19 3.21 8s-11.93 61.87-11.93 61.87a8 8 0 0 0 2.71 7.68A8.17 8.17 0 0 0 72 464a7.3 7.3 0 0 0 2.91-.6l56.21-22a15.7 15.7 0 0 1 12 .2c18.94 7.38 39.88 12 60.83 12A159.2 159.2 0 0 0 284 432.11"},child:[]}]})(e)}const MU=[{icon:bT,label:"PR security reviews"},{icon:rC,label:"Attack surface monitoring"},{icon:yC,label:"Real-time threat intelligence"},{icon:Uk,label:"Scheduled pentesting"},{icon:pC,label:"One-click autofix"},{icon:HT,label:"Jira, Linear & Slack integrations"}];function OU({open:e,onClose:t,description:r,source:a="sidebar"}){const[s,o]=ee.useState(e),[c,d]=ee.useState(e?"open":"closed");return ee.useEffect(()=>{if(e){o(!0),d("open");return}d("closed");const f=setTimeout(()=>o(!1),200);return()=>clearTimeout(f)},[e]),ee.useEffect(()=>{if(!s)return;const f=m=>{m.key==="Escape"&&t()};document.addEventListener("keydown",f);const h=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",f),document.body.style.overflow=h}},[s,t]),s?g.jsx("div",{"data-state":c,className:"dialog-overlay fixed inset-0 z-50 flex items-center justify-center bg-black/80 p-4",onClick:t,role:"dialog","aria-modal":"true","aria-label":"Upgrade your plan",children:g.jsxs("div",{"data-state":c,className:"dialog-panel relative w-full max-w-md rounded-2xl border border-[#222] bg-black p-6 shadow-lg sm:rounded-lg",onClick:f=>f.stopPropagation(),children:[g.jsx("button",{type:"button",onClick:t,"aria-label":"Close",className:"absolute right-4 top-4 rounded-md p-1 text-[#888] transition-colors hover:bg-[#1a1a1a] hover:text-white",children:g.jsx(xp,{className:"h-4 w-4"})}),g.jsxs("div",{children:[g.jsx("h2",{className:"text-lg text-white",children:"Available in Strix Cloud"}),r&&g.jsx("p",{className:"mt-2 text-base leading-relaxed text-[#e5e5e5]",children:r})]}),g.jsxs("div",{className:"space-y-4 pt-4",children:[g.jsxs("div",{className:"rounded-xl border border-[#333] bg-[#0a0a0a] p-4 sm:rounded-lg",children:[g.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[g.jsx(Im,{className:"h-4 w-4 text-blue-400"}),g.jsx("span",{className:"text-sm font-medium text-white",children:"Strix Cloud also includes"})]}),g.jsx("ul",{className:"space-y-2 text-sm text-[#888]",children:MU.map(f=>g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx(f.icon,{className:"h-3.5 w-3.5 text-[#555]"}),f.label]},f.label))})]}),g.jsxs("div",{className:"flex flex-col gap-2",children:[g.jsxs("a",{href:fa($u,"upgrade_try_free"),target:"_blank",rel:"noopener noreferrer",onClick:()=>Vr("upgrade_try_free",a),className:"flex h-10 w-full items-center justify-center gap-2 rounded-lg bg-white px-4 text-sm font-semibold text-black transition-colors hover:bg-neutral-200",children:["Open Strix Cloud",g.jsx(ty,{className:"h-3.5 w-3.5"})]}),g.jsxs("a",{href:fa(NC,"upgrade_view_plans"),target:"_blank",rel:"noopener noreferrer",onClick:()=>Vr("upgrade_view_plans",a),className:"flex h-9 w-full items-center justify-center gap-1.5 rounded-lg border border-[#333] px-4 text-sm font-medium text-[#888] transition-colors hover:border-[#555] hover:text-white",children:["Learn more",g.jsx(ty,{className:"h-3 w-3"})]})]})]})]})}):null}const Dm=160,jm=260,ro=400,RU=140,p_="strix_viewer_sidebar_width",g_="strix_viewer_sidebar_collapsed";function DU(e,t){try{const r=localStorage.getItem(e),a=r?parseInt(r,10):NaN;return Number.isFinite(a)?a:t}catch{return t}}function jU({view:e,onSelectView:t,issuesCount:r,agentCount:a,runCount:s,finished:o,verified:c,email:d,onOpenEmail:f,onOpenHistory:h,onForget:m}){var D;const[p,y]=ee.useState(()=>{const L=DU(p_,jm);return Math.min(ro,Math.max(Dm,L))}),[x,_]=ee.useState(()=>{try{return localStorage.getItem(g_)==="1"}catch{return!1}}),[N,S]=ee.useState(!1),[w,k]=ee.useState(!1),[E,M]=ee.useState(null),I=ee.useRef(null),R=ee.useCallback(L=>{y(L);try{localStorage.setItem(p_,String(L))}catch{}},[]),U=ee.useCallback(L=>{_(L);try{localStorage.setItem(g_,L?"1":"0")}catch{}},[]),B=ee.useCallback(()=>{U(!1),R(jm)},[U,R]),Z=ee.useCallback(L=>{L.preventDefault(),S(!0)},[]);return ee.useEffect(()=>{if(!N||x)return;const L=V=>{const A=V.clientX;A>=Dm&&A<=ro?y(A):A>ro&&y(ro)},G=V=>{const A=V.clientX;A<RU?(U(!0),R(jm)):R(Math.min(ro,Math.max(Dm,A))),S(!1)};return window.addEventListener("mousemove",L),window.addEventListener("mouseup",G),()=>{window.removeEventListener("mousemove",L),window.removeEventListener("mouseup",G)}},[N,x,U,R]),ee.useEffect(()=>{if(!w)return;const L=G=>{I.current&&!I.current.contains(G.target)&&k(!1)};return document.addEventListener("mousedown",L),()=>document.removeEventListener("mousedown",L)},[w]),g.jsxs(g.Fragment,{children:[x&&g.jsx("div",{className:"fixed left-0 top-0 z-40 hidden h-full w-4 cursor-pointer transition-colors hover:bg-[rgba(255,255,255,0.08)] lg:block",onClick:B,title:"Expand sidebar"}),g.jsxs("aside",{className:Mr("sticky top-0 z-20 hidden h-screen flex-shrink-0 flex-col overflow-hidden border-r border-[rgba(255,255,255,0.08)] bg-black lg:flex",!N&&"transition-[width] duration-200 ease-out"),style:{width:x?0:p},children:[g.jsx("header",{className:"relative flex flex-col gap-1 pt-1 min-w-[160px]",children:g.jsx("div",{className:"flex flex-row py-1 px-2",children:g.jsxs("div",{className:"flex h-10 w-full flex-row items-center",children:[g.jsxs("a",{href:fa("https://app.strix.ai","logo"),target:"_blank",rel:"noopener noreferrer",onClick:()=>Vr("logo","sidebar"),className:"flex flex-1 flex-row items-center gap-2 rounded-md py-2 pl-2.5 pr-1 min-w-0 transition-colors hover:bg-[rgba(255,255,255,0.06)]",title:"Open Strix Cloud",children:[g.jsx("span",{className:"flex flex-shrink-0 items-center justify-center rounded-full bg-gradient-to-br from-emerald-400 to-cyan-500",style:{width:20,height:20},children:g.jsx("span",{className:"text-[10px] font-semibold text-white",children:"S"})}),g.jsxs("span",{className:"flex flex-1 flex-row items-center gap-2 min-w-0",children:[g.jsx("span",{className:"truncate min-w-0 text-[14px] font-medium text-[#ededed]",children:"Strix"}),g.jsx("span",{className:"flex h-5 flex-shrink-0 items-center rounded px-2 text-[11px] font-medium text-[#888] bg-[rgba(255,255,255,0.08)]",children:"Local"})]})]}),g.jsx("a",{href:fa("https://app.strix.ai","logo"),target:"_blank",rel:"noopener noreferrer",onClick:()=>Vr("logo","sidebar"),className:"flex flex-none items-center rounded-md px-1.5 py-2 transition-colors hover:bg-[rgba(255,255,255,0.06)]","aria-label":"Open Strix Cloud",children:g.jsx(Xk,{className:"h-4 w-4 text-[#666]"})})]})})}),g.jsx("nav",{className:"relative min-w-[160px] flex-1 overflow-y-auto overflow-x-clip scrollbar-thin pb-10 pt-2",children:g.jsxs("div",{className:"relative flex flex-col gap-px px-2",children:[g.jsx(yi,{icon:g.jsx(LU,{}),label:"Overview",active:e==="overview",onClick:()=>t("overview")}),g.jsx(yi,{icon:g.jsx(dC,{className:"h-4 w-4"}),label:"Issues",count:r>0?r:void 0,active:e==="issues",onClick:()=>t("issues")}),a>0&&g.jsx(yi,{icon:g.jsx(Ao,{className:"h-4 w-4"}),label:"Agents",count:a,active:e==="agents",onClick:()=>t("agents")}),g.jsx(yi,{icon:g.jsx(Vs,{className:"h-4 w-4"}),label:"Past runs",count:s>0?s:void 0,active:e==="history",onClick:h}),o&&g.jsx(yi,{icon:g.jsx(bp,{className:"h-4 w-4"}),label:"Export report",active:e==="email",onClick:f}),g.jsx(yi,{icon:g.jsx(dS,{className:"h-4 w-4"}),label:"Feedback & support",active:e==="feedback",onClick:()=>t("feedback")}),g.jsx("hr",{className:"mx-0 my-1 h-px w-full border-0 bg-[rgba(255,255,255,0.08)]"}),g.jsx(yi,{icon:g.jsx(CU,{className:"h-4 w-4"}),label:"PR Security Reviews",active:!1,onClick:()=>M("Strix reviews every pull request and flags exploitable changes before they merge.")}),g.jsx(yi,{icon:g.jsx(AU,{className:"h-4 w-4"}),label:"Integrations",active:!1,onClick:()=>M("Sync findings to Jira, Linear, and Slack so fixes happen where your team already works.")}),g.jsx(yi,{icon:g.jsx(hC,{className:"h-4 w-4"}),label:"Members",active:!1,onClick:()=>M("Invite your team, set roles, and share findings and run history across your org.")})]})}),g.jsx("section",{className:"flex min-w-[160px] flex-col gap-0.5",ref:I,children:g.jsxs("div",{className:"relative p-2",children:[c&&d?g.jsxs("button",{onClick:()=>k(L=>!L),className:"relative flex w-full cursor-pointer items-center gap-2 rounded-md bg-transparent px-2.5 py-2 transition-colors hover:bg-[rgba(255,255,255,0.06)]",children:[g.jsx("span",{className:"flex flex-shrink-0 items-center justify-center rounded-full bg-gradient-to-br from-emerald-400 to-cyan-500",style:{width:20,height:20},children:g.jsx("span",{className:"text-[9px] font-semibold text-white",children:((D=d[0])==null?void 0:D.toUpperCase())||"U"})}),g.jsxs("span",{className:"flex min-w-0 flex-1 flex-col text-left",children:[g.jsx("span",{className:"truncate text-[13px] font-medium text-[#ededed]",children:d}),g.jsx("span",{className:"truncate text-[11px] text-[#555]",children:"Linked to this machine"})]})]}):g.jsxs("div",{className:"flex items-center gap-2 rounded-md px-2.5 py-2",children:[g.jsx("span",{className:"flex flex-shrink-0 items-center justify-center rounded-full bg-gradient-to-br from-emerald-400 to-cyan-500",style:{width:20,height:20},children:g.jsx("span",{className:"text-[9px] font-semibold text-white",children:"S"})}),g.jsx("span",{className:"flex min-w-0 flex-1 flex-col text-left",children:g.jsx("span",{className:"truncate text-[13px] font-medium text-[#ededed]",children:"Local viewer"})})]}),w&&c&&d&&g.jsxs("div",{className:"absolute bottom-full left-2 right-2 z-50 mb-1 overflow-hidden rounded-lg border border-[#333] bg-black shadow-xl",children:[g.jsxs("div",{className:"border-b border-[#333] px-3 py-2",children:[g.jsx("p",{className:"truncate text-[13px] font-medium text-white",children:"Linked email"}),g.jsx("p",{className:"truncate text-[11px] text-[#666]",children:d})]}),g.jsxs("button",{onClick:()=>{k(!1),m()},className:"flex w-full items-center gap-2 px-3 py-2 text-[13px] text-[#888] transition-colors hover:bg-[rgba(255,255,255,0.06)] hover:text-red-400",children:[g.jsx(jT,{className:"h-4 w-4"}),"Forget this email"]})]})]})}),g.jsx("div",{className:"group absolute right-0 top-0 z-30 h-full w-1 cursor-col-resize",onMouseDown:Z,children:g.jsx("div",{className:Mr("absolute right-0 top-0 h-full w-px bg-[rgba(255,255,255,0.08)] transition-all duration-100",N?"w-0.5 bg-[rgba(255,255,255,0.3)]":"group-hover:bg-[rgba(255,255,255,0.2)]")})})]}),N&&g.jsx("div",{className:"fixed inset-0 z-10 cursor-col-resize"}),g.jsx(OU,{open:E!==null,description:E??"",source:"sidebar",onClose:()=>M(null)})]})}function yi({icon:e,label:t,active:r,onClick:a,count:s}){return g.jsxs("button",{onClick:a,className:Mr("group flex h-9 w-full origin-left flex-row items-center rounded-md transition-colors",r?"bg-[rgba(255,255,255,0.12)] text-white":"text-[#888] hover:bg-[rgba(255,255,255,0.06)] hover:text-[#ededed]"),children:[g.jsx("div",{className:"grid flex-none place-content-center",style:{width:36,height:36},children:e}),g.jsx("span",{className:"min-w-0 flex-1 truncate text-left text-[14px] font-medium",children:t}),s!=null&&g.jsx("span",{className:"mr-2 flex-none rounded-full border border-white/10 px-2 py-0.5 text-[10px] tabular-nums leading-none text-[#777]",children:s})]})}function LU(){return g.jsx("svg",{style:{width:16,height:16,color:"currentcolor"},viewBox:"0 0 16 16",fill:"currentColor",children:g.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 5.5V2.5H5.5V5.5H2.5ZM1 2C1 1.44772 1.44772 1 2 1H6C6.55228 1 7 1.44772 7 2V6C7 6.55228 6.55228 7 6 7H2C1.44772 7 1 6.55228 1 6V2ZM2.5 13.5V10.5H5.5V13.5H2.5ZM1 10C1 9.44772 1.44772 9 2 9H6C6.55228 9 7 9.44772 7 10V14C7 14.5523 6.55228 15 6 15H2C1.44772 15 1 14.5523 1 14V10ZM10.5 2.5V5.5H13.5V2.5H10.5ZM10 1C9.44772 1 9 1.44772 9 2V6C9 6.55228 9.44772 7 10 7H14C14.5523 7 15 6.55228 15 6V2C15 1.44772 14.5523 1 14 1H10ZM10.5 13.5V10.5H13.5V13.5H10.5ZM9 10C9 9.44772 9.44772 9 10 9H14C14.5523 9 15 9.44772 15 10V14C15 14.5523 14.5523 15 14 15H10C9.44772 15 9 14.5523 9 14V10Z"})})}const b_={work_email_required:"Please use your work email, not a personal one.",rate_limited:"Too many requests. Wait a minute and try again.",invalid_email:"That email does not look right. Check it and try again.",unavailable:"The email service is unavailable right now. Try again shortly."},zU=new Set(["gmail.com","googlemail.com","yahoo.com","ymail.com","outlook.com","hotmail.com","live.com","icloud.com","me.com","aol.com","proton.me","protonmail.com","gmx.com","mail.com"]);function IU({onVerified:e}){const[t,r]=ee.useState("email"),[a,s]=ee.useState(""),[o,c]=ee.useState(""),[d,f]=ee.useState(!1),[h,m]=ee.useState(null),[p,y]=ee.useState(null),x=async()=>{const N=a.trim();if(!N){m("Enter your email to continue.");return}const S=N.slice(N.lastIndexOf("@")+1).toLowerCase();if(zU.has(S)){Cr("work_email_required"),m(b_.work_email_required);return}f(!0),m(null);const w=await sS(N);f(!1),w.ok?(Cr("email_submitted",{purpose:"verify"}),y(`We sent a 6-digit code to ${N}.`),r("code")):(w.error==="work_email_required"&&Cr("work_email_required"),m(b_[w.error]??"Could not send a code. Try again."))},_=async()=>{const N=o.trim();if(N.length<4){m("Enter the 6-digit code from your email.");return}f(!0),m(null);const S=await lS(a.trim(),N);if(f(!1),!S.verified){m("That code did not match. Check it and try again.");return}Cr("email_verified",{purpose:"verify"}),e()};return g.jsxs("div",{className:"mx-auto mt-5 max-w-sm text-left",children:[h&&g.jsxs("div",{className:"mb-3 flex items-start gap-2 rounded-lg border border-red-500/30 bg-red-500/5 px-3 py-2",children:[g.jsx(Hu,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-red-400","aria-hidden":"true"}),g.jsx("p",{className:"text-xs text-red-300",children:h})]}),p&&!h&&g.jsx("p",{className:"mb-3 text-xs text-[#888]",children:p}),t==="email"?g.jsxs("form",{className:"space-y-3",onSubmit:N=>{N.preventDefault(),x()},children:[g.jsxs("label",{className:"block",children:[g.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"Your work email"}),g.jsx("input",{type:"email",autoFocus:!0,value:a,onChange:N=>s(N.target.value),placeholder:"[email protected]",className:"w-full rounded-lg bg-black px-3 py-2.5 text-sm text-white outline-none transition-colors focus:border-[#444]",style:{border:"1px solid #2a2a2a"}}),g.jsx("span",{className:"mt-1.5 block text-[11px] text-[#666]",children:"Use your work email."})]}),g.jsxs("button",{type:"submit",disabled:d,className:"flex w-full cursor-pointer items-center justify-center gap-2 rounded-lg bg-white px-4 py-2.5 text-sm font-semibold text-black transition-opacity hover:opacity-90 disabled:opacity-60",children:[d&&g.jsx(qs,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),"Send me a code"]})]}):g.jsxs("form",{className:"space-y-3",onSubmit:N=>{N.preventDefault(),_()},children:[g.jsxs("label",{className:"block",children:[g.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"6-digit code"}),g.jsx("input",{inputMode:"numeric",autoFocus:!0,value:o,onChange:N=>c(N.target.value.replace(/\D/g,"").slice(0,6)),placeholder:"123456",className:"w-full rounded-lg bg-black px-3 py-2.5 text-center text-lg font-mono tracking-[0.4em] text-white outline-none transition-colors focus:border-[#444]",style:{border:"1px solid #2a2a2a"}})]}),g.jsxs("button",{type:"submit",disabled:d,className:"flex w-full cursor-pointer items-center justify-center gap-2 rounded-lg bg-white px-4 py-2.5 text-sm font-semibold text-black transition-opacity hover:opacity-90 disabled:opacity-60",children:[d&&g.jsx(qs,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),"Verify"]}),g.jsx("button",{type:"button",onClick:()=>{r("email"),m(null),y(null)},className:"w-full cursor-pointer text-center text-xs text-[#666] transition-colors hover:text-[#aaa]",children:"Use a different email"})]})]})}const BU=[{key:"critical",dot:"bg-red-500",text:"text-red-500"},{key:"high",dot:"bg-orange-500",text:"text-orange-500"},{key:"medium",dot:"bg-yellow-500",text:"text-yellow-500"},{key:"low",dot:"bg-blue-500",text:"text-blue-500"}];function UU({counts:e}){const t=BU.filter(r=>e[r.key]>0);return t.length===0?g.jsx("span",{className:"text-xs text-[#555]",children:"No findings"}):g.jsx("div",{className:"flex items-center gap-3",children:t.map(r=>g.jsxs("div",{className:"flex items-center gap-1.5",children:[g.jsx("span",{className:`h-2 w-2 rounded-full ${r.dot}`,"aria-hidden":"true"}),g.jsx("span",{className:`text-xs tabular-nums ${r.text}`,children:e[r.key]})]},r.key))})}function HU(e){if(!e)return null;const t=e.trim().replace(" UTC","Z").replace(" ","T"),r=new Date(t);return Number.isNaN(r.getTime())?null:r.toLocaleString(void 0,{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"})}function x_(e){if(!e)return null;const t=e.trim().replace(" UTC","Z").replace(" ","T"),r=new Date(t);if(Number.isNaN(r.getTime()))return null;const a=Date.now()-r.getTime(),s=Math.floor(a/6e4);if(s<1)return"just now";if(s<60)return`${s}m ago`;const o=Math.floor(s/60);if(o<24)return`${o}h ago`;const c=Math.floor(o/24);return c<7?`${c}d ago`:HU(e)}function $U({runs:e,activeRun:t,onSelectRun:r,onVerified:a}){const s=(e==null?void 0:e.count)??0,[o,c]=ee.useState(!1);return!e||e.locked?g.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-8 text-center",children:[g.jsx("div",{className:"mx-auto mb-4 flex h-11 w-11 items-center justify-center rounded-xl",style:{border:"1px solid #2a2a2a",background:"rgba(255,255,255,0.04)"},children:g.jsx(Vs,{className:"h-5 w-5 text-[#888]","aria-hidden":"true"})}),g.jsx("h2",{className:"text-base font-semibold text-white",children:"Browse every run on this machine"}),g.jsxs("p",{className:"mx-auto mt-1.5 max-w-md text-sm text-[#888]",children:["You have ",s," past ",s===1?"run":"runs"," on this machine."]}),o?g.jsxs(g.Fragment,{children:[g.jsx("p",{className:"mx-auto mt-3 max-w-sm text-xs text-[#666]",children:"Verify your email with a one-time code to unlock the full history."}),g.jsx(IU,{onVerified:a})]}):g.jsx("button",{onClick:()=>{Vr("history_unlock","past_runs"),c(!0)},className:"mt-4 cursor-pointer rounded-lg bg-white px-4 py-2 text-sm font-semibold text-black transition-opacity hover:opacity-90",children:"View runs"}),g.jsxs("p",{className:"mt-4 flex items-center justify-center gap-1.5 text-xs text-[#555]",children:[g.jsx(z_,{className:"h-3.5 w-3.5","aria-hidden":"true"}),"Or open one from the CLI with"," ",g.jsx("code",{className:"font-mono text-[#888]",children:"strix view <name>"})]})]}):e.runs.length===0?g.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-8 text-center text-sm text-[#888]",children:"No past runs found on this machine yet."}):g.jsx("div",{className:"space-y-2",children:e.runs.map(d=>{const f=d.name===t,h=x_(d.start_time)??x_(d.end_time),m=bo(d.target,d.name);return g.jsxs("button",{onClick:()=>r(d.name),className:`animate-card-in group flex w-full cursor-pointer items-center gap-4 rounded-lg border px-4 py-3 text-left transition-colors ${f?"border-[#444] bg-[rgba(255,255,255,0.04)]":"border-[#222] bg-[rgba(255,255,255,0.02)] hover:border-[#444]"}`,children:[g.jsxs("div",{className:"min-w-0 flex-1",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"truncate text-sm font-medium text-white",children:m}),f&&g.jsx("span",{className:"rounded-full px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-emerald-400",style:{border:"1px solid rgba(16,185,129,0.3)"},children:"Active"})]}),g.jsxs("div",{className:"mt-0.5 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-xs text-[#666]",children:[d.scan_mode&&g.jsx("span",{className:"capitalize",children:d.scan_mode}),d.scan_mode&&(h||d.status)&&g.jsx("span",{className:"text-[#333]",children:"·"}),h&&g.jsx("span",{children:h}),h&&d.status&&g.jsx("span",{className:"text-[#333]",children:"·"}),d.status&&g.jsx("span",{className:"capitalize",children:d.status})]})]}),g.jsx(UU,{counts:d.severity_counts}),g.jsx(Gk,{className:"h-4 w-4 flex-shrink-0 text-[#555] transition-colors group-hover:text-[#aaa]","aria-hidden":"true"})]},d.name)})})}const y_={work_email_required:"Please use your work email, not a personal one.",rate_limited:"Too many requests. Wait a minute and try again.",invalid_email:"That email does not look right. Check it and try again.",unavailable:"The email service is unavailable right now. Try again shortly."},qU={forbidden:"This email was unsubscribed from Strix, so we cannot send to it.",too_large:"This report is too large to email. Try a smaller run.",unavailable:"The email service is unavailable right now. Try again shortly."},PU=new Set(["gmail.com","googlemail.com","yahoo.com","ymail.com","outlook.com","hotmail.com","live.com","icloud.com","me.com","aol.com","proton.me","protonmail.com","gmx.com","mail.com"]);function FU({activeRun:e,auth:t,purpose:r,skipDisclosure:a=!1,onAuthChanged:s,onExit:o}){const c=(t==null?void 0:t.verified)===!0,d=r==="verify",[f,h]=ee.useState(()=>d?"email":a?c?"sending":"email":"disclosure"),[m,p]=ee.useState((t==null?void 0:t.email)??""),[y,x]=ee.useState(""),[_,N]=ee.useState(!1),[S,w]=ee.useState(null),[k,E]=ee.useState(null),[M,I]=ee.useState(""),[R,U]=ee.useState(""),[B,Z]=ee.useState(!1),[D,L]=ee.useState(""),G=ee.useRef(!1),V=async()=>{h("sending"),w(null);const K=await bU(e);if(K.ok){Cr("report_sent"),I(K.password),U(K.filename),h("password");return}if(K.error==="reverify"||K.error==="unverified"){E("Your verification expired. Enter your email to verify again."),h("email");return}w(qU[K.error]??"Could not send the report. Try again."),h("disclosure")},A=()=>{w(null),E(null),c?V():h("email")};ee.useEffect(()=>{!d&&a&&c&&!G.current&&(G.current=!0,V())},[]);const q=async()=>{const K=m.trim();if(!K){w("Enter your email to continue.");return}const T=K.slice(K.lastIndexOf("@")+1).toLowerCase();if(PU.has(T)){Cr("work_email_required"),w(y_.work_email_required);return}N(!0),w(null);const j=await sS(K);N(!1),j.ok?(Cr("email_submitted",{purpose:r}),E(`We sent a 6-digit code to ${K}.`),h("code")):(j.error==="work_email_required"&&Cr("work_email_required"),w(y_[j.error]??"Could not send a code. Try again."))},O=async()=>{const K=y.trim();if(K.length<4){w("Enter the 6-digit code from your email.");return}N(!0),w(null);const T=await lS(m.trim(),K);if(N(!1),!T.verified){w("That code did not match. Check it and try again.");return}Cr("email_verified",{purpose:r}),L(T.email),s(),d?o("history"):V()},H=async()=>{try{await navigator.clipboard.writeText(M),Z(!0),setTimeout(()=>Z(!1),1500)}catch{}},X=D||(t==null?void 0:t.email)||m.trim();return g.jsxs("div",{className:"mx-auto max-w-xl space-y-4",children:[g.jsxs("button",{onClick:()=>o(d?"history":"overview"),className:"cursor-pointer inline-flex items-center gap-1.5 text-sm text-[#888] transition-colors hover:text-white",children:[g.jsx(gp,{className:"h-4 w-4"}),d?"Back to past runs":"Back to results"]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(bp,{className:"h-5 w-5 text-[#888]","aria-hidden":"true"}),g.jsx("h1",{className:"text-2xl font-semibold text-white",children:d?"Verify your email":"Export report to PDF"})]}),g.jsxs("div",{className:"w-full rounded-2xl bg-[rgba(255,255,255,0.02)] p-6",style:{border:"1px solid #2a2a2a"},children:[g.jsx("p",{className:"mb-4 text-xs text-[#666]",children:d?"We send a one-time code to confirm it is you.":"Verified by a one-time code sent to your email"}),S&&g.jsxs("div",{className:"mb-4 flex items-start gap-2 rounded-lg border border-red-500/30 bg-red-500/5 px-3 py-2",children:[g.jsx(Hu,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-red-400","aria-hidden":"true"}),g.jsx("p",{className:"text-xs text-red-300",children:S})]}),k&&!S&&f!=="password"&&g.jsx("p",{className:"mb-4 text-xs text-[#888]",children:k}),f==="disclosure"&&g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"space-y-2.5 rounded-lg p-3.5",style:{border:"1px solid #222",background:"rgba(255,255,255,0.02)"},children:[g.jsxs("div",{className:"flex items-start gap-2.5",children:[g.jsx(L_,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-emerald-400","aria-hidden":"true"}),g.jsxs("p",{className:"text-xs leading-relaxed text-[#aaa]",children:["We email an ",g.jsx("span",{className:"text-white",children:"encrypted PDF"}),". Nothing else leaves your machine."]})]}),g.jsxs("div",{className:"flex items-start gap-2.5",children:[g.jsx(RT,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-[#888]","aria-hidden":"true"}),g.jsx("p",{className:"text-xs leading-relaxed text-[#aaa]",children:"Only you hold the password; Strix can't read it."})]})]}),g.jsx("button",{onClick:A,className:"w-full cursor-pointer rounded-lg bg-white px-4 py-2.5 text-sm font-semibold text-black transition-opacity hover:opacity-90",children:c?"Email me the encrypted PDF":"Continue with your email"}),c&&(t==null?void 0:t.email)&&g.jsxs("p",{className:"text-center text-xs text-[#666]",children:["Sending to ",t.email]})]}),f==="email"&&g.jsxs("form",{className:"space-y-4",onSubmit:K=>{K.preventDefault(),q()},children:[g.jsxs("label",{className:"block",children:[g.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"Your work email"}),g.jsx("input",{type:"email",autoFocus:!0,value:m,onChange:K=>p(K.target.value),placeholder:"[email protected]",className:"w-full rounded-lg bg-black px-3 py-2.5 text-sm text-white outline-none transition-colors focus:border-[#444]",style:{border:"1px solid #2a2a2a"}})]}),g.jsxs("button",{type:"submit",disabled:_,className:"flex w-full cursor-pointer items-center justify-center gap-2 rounded-lg bg-white px-4 py-2.5 text-sm font-semibold text-black transition-opacity hover:opacity-90 disabled:opacity-60",children:[_&&g.jsx(qs,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),"Send me a code"]})]}),f==="code"&&g.jsxs("form",{className:"space-y-4",onSubmit:K=>{K.preventDefault(),O()},children:[g.jsxs("label",{className:"block",children:[g.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"6-digit code"}),g.jsx("input",{inputMode:"numeric",autoFocus:!0,value:y,onChange:K=>x(K.target.value.replace(/\D/g,"").slice(0,6)),placeholder:"123456",className:"w-full rounded-lg bg-black px-3 py-2.5 text-center text-lg font-mono tracking-[0.4em] text-white outline-none transition-colors focus:border-[#444]",style:{border:"1px solid #2a2a2a"}})]}),g.jsxs("button",{type:"submit",disabled:_,className:"flex w-full cursor-pointer items-center justify-center gap-2 rounded-lg bg-white px-4 py-2.5 text-sm font-semibold text-black transition-opacity hover:opacity-90 disabled:opacity-60",children:[_&&g.jsx(qs,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),d?"Verify":"Verify and send"]}),g.jsx("button",{type:"button",onClick:()=>{h("email"),w(null),E(null)},className:"w-full cursor-pointer text-center text-xs text-[#666] transition-colors hover:text-[#aaa]",children:"Use a different email"})]}),f==="sending"&&g.jsxs("div",{className:"flex flex-col items-center gap-3 py-8",children:[g.jsx(qs,{className:"h-6 w-6 animate-spin text-white","aria-hidden":"true"}),g.jsx("p",{className:"text-sm text-[#aaa]",children:"Generating and encrypting locally..."})]}),f==="password"&&g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"flex items-start gap-2.5 rounded-lg border border-emerald-500/30 bg-emerald-500/5 px-3 py-2.5",children:[g.jsx(Gs,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-emerald-400","aria-hidden":"true"}),g.jsxs("p",{className:"text-xs text-emerald-200",children:["Sent to ",X,". Open the attached PDF with this password."]})]}),g.jsxs("div",{children:[g.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"Your one-time password"}),g.jsxs("div",{className:"flex items-center gap-2 rounded-lg bg-black p-3",style:{border:"1px solid #2a2a2a"},children:[g.jsx("code",{className:"flex-1 break-all font-mono text-base text-white",children:M}),g.jsxs("button",{onClick:H,className:"flex cursor-pointer items-center gap-1 rounded-md px-2 py-1 text-xs text-[#aaa] transition-colors hover:bg-[rgba(255,255,255,0.06)] hover:text-white",style:{border:"1px solid #2a2a2a"},children:[B?g.jsx(Gs,{className:"h-3.5 w-3.5"}):g.jsx(mo,{className:"h-3.5 w-3.5"}),B?"Copied":"Copy"]})]}),g.jsxs("p",{className:"mt-2 text-xs text-[#666]",children:["Save this now. Strix never stores it, so we cannot show it again. File:"," ",g.jsx("span",{className:"font-mono text-[#888]",children:R})]})]}),g.jsx("button",{onClick:()=>o("overview"),className:"w-full cursor-pointer rounded-lg px-4 py-2.5 text-sm font-semibold text-white transition-colors hover:bg-[rgba(255,255,255,0.06)]",style:{border:"1px solid #2a2a2a"},children:"Done"})]})]})]})}function la(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function io(e){return Array.isArray(e)?e:[]}function gr(e){return typeof e=="string"&&e.trim()?e:null}function Ia(e){return typeof e=="number"&&Number.isFinite(e)?e:null}function GU(e){return e.replace(/_/g," ")}function v_(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}function VU(e){if(e==null||e<0)return"n/a";const t=Math.floor(e/3600),r=Math.floor(e%3600/60),a=e%60;return t?`${t}h ${r}m ${a}s`:r?`${r}m ${a}s`:`${a}s`}function Dn({label:e,children:t}){return g.jsxs("div",{className:"grid grid-cols-[7rem_1fr] gap-3 items-baseline",children:[g.jsx("dt",{className:"text-[11px] uppercase tracking-wide text-[#666]",children:e}),g.jsx("dd",{className:"min-w-0 break-words text-sm text-[#ddd]",children:t})]})}function YU({raw:e,durationSeconds:t}){const[r,a]=ee.useState(!0),s=io(e.targets_info).map(G=>{const V=la(G),A=gr(V.original)??gr(la(V.details).target_url)??"unknown target",q=gr(V.type);return{display:A,type:q?GU(q):null}}),o=gr(e.instruction),c=v_(gr(e.scan_mode)),d=gr(e.scope_mode),f=la(e.diff_scope),h=f.active===!0,m=gr(f.mode),p=gr(e.diff_base),y=e.non_interactive===!0,x=io(e.local_sources).map(G=>{if(typeof G=="string")return G;const V=la(G);return gr(V.source_path)??gr(V.target_path)??""}).filter(Boolean),_=v_(gr(e.status));let N=d??"auto";h&&(N+=` (diff${m?`: ${m}`:""}${p?` vs ${p}`:""})`);const S=la(e.llm_usage),w=Object.keys(S).length>0,k=io(S.agents).map(la),E=Array.from(new Set(k.map(G=>gr(G.model)).filter(G=>!!G))),M=Ia(S.requests),I=Ia(S.input_tokens),R=Ia(la(io(S.input_tokens_details)[0]).cached_tokens),U=Ia(S.output_tokens),B=Ia(la(io(S.output_tokens_details)[0]).reasoning_tokens),Z=Ia(S.total_tokens),D=Ia(S.cost),L=(G,V)=>g.jsxs("span",{className:"text-[#666]",children:[" (",Ds(G)," ",V,")"]});return g.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[g.jsxs("button",{type:"button",onClick:()=>a(G=>!G),"aria-expanded":r,className:"flex w-full cursor-pointer items-center gap-2 text-left",children:[g.jsx(TT,{className:"h-4 w-4 text-[#888]","aria-hidden":"true"}),g.jsx("h2",{className:"text-sm font-semibold text-white",children:"Run details"}),r?g.jsx(A_,{className:"ml-auto h-4 w-4 text-[#666]","aria-hidden":"true"}):g.jsx(ho,{className:"ml-auto h-4 w-4 text-[#666]","aria-hidden":"true"})]}),r&&g.jsxs("div",{className:"mt-4 grid grid-cols-1 gap-x-8 gap-y-6 md:grid-cols-2",children:[g.jsxs("section",{children:[g.jsx("h3",{className:"mb-3 text-[11px] font-semibold uppercase tracking-wide text-[#555]",children:"Configuration"}),g.jsxs("dl",{className:"space-y-2.5",children:[s.length>0&&g.jsx(Dn,{label:"Targets",children:g.jsx("div",{className:"space-y-1",children:s.map((G,V)=>g.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[g.jsx("span",{className:"font-mono text-[#ddd]",children:G.display}),G.type&&g.jsx("span",{className:"rounded-full border border-[#2a2a2a] px-1.5 py-0.5 text-[10px] text-[#888]",children:G.type})]},V))})}),g.jsx(Dn,{label:"Instruction",children:o?g.jsx("span",{className:"whitespace-pre-wrap",children:o}):g.jsx("span",{className:"text-[#666]",children:"None"})}),c&&g.jsx(Dn,{label:"Scan mode",children:c}),g.jsx(Dn,{label:"Scope",children:N}),g.jsx(Dn,{label:"Mode",children:y?"Non-interactive":"Interactive"}),x.length>0&&g.jsx(Dn,{label:"Local sources",children:g.jsx("div",{className:"space-y-0.5 font-mono text-[#ddd]",children:x.map((G,V)=>g.jsx("div",{children:G},V))})}),_&&g.jsx(Dn,{label:"Status",children:_})]})]}),g.jsxs("section",{children:[g.jsx("h3",{className:"mb-3 text-[11px] font-semibold uppercase tracking-wide text-[#555]",children:"Usage & cost"}),w?g.jsxs("dl",{className:"space-y-2.5 tabular-nums",children:[g.jsx(Dn,{label:"Model",children:E.length?E.join(", "):"n/a"}),g.jsx(Dn,{label:"Run time",children:VU(t)}),M!=null&&g.jsx(Dn,{label:"Requests",children:Ds(M)}),I!=null&&g.jsxs(Dn,{label:"Input tokens",children:[Ds(I),R!=null&&L(R,"cached")]}),U!=null&&g.jsxs(Dn,{label:"Output tokens",children:[Ds(U),B!=null&&L(B,"reasoning")]}),Z!=null&&g.jsx(Dn,{label:"Total tokens",children:Ds(Z)}),D!=null&&g.jsxs(Dn,{label:"Cost",children:["$",D.toFixed(2)]}),k.length>0&&g.jsx(Dn,{label:"Agents",children:Ds(k.length)})]}):g.jsx("p",{className:"text-sm text-[#666]",children:"Not available yet."})]})]})]})}const __="strix_viewer_trust_dismissed";function XU({message:e}){const[t,r]=ee.useState(()=>{try{return localStorage.getItem(__)==="1"}catch{return!1}});if(t)return null;const a=()=>{try{localStorage.setItem(__,"1")}catch{}r(!0)};return g.jsx("div",{className:"fixed bottom-3 left-3 z-[60] max-w-xs rounded-lg bg-[#0a0a0a] p-3 shadow-2xl",style:{border:"1px solid #2a2a2a"},role:"status",children:g.jsxs("div",{className:"flex gap-2.5",children:[g.jsx(L_,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-emerald-400","aria-hidden":"true"}),g.jsx("p",{className:"text-xs leading-relaxed text-[#aaa]",children:e}),g.jsx("button",{onClick:a,"aria-label":"Dismiss",className:"-mr-0.5 -mt-0.5 flex-shrink-0 cursor-pointer rounded p-0.5 text-[#666] transition-colors hover:text-white",children:g.jsx(xp,{className:"h-3.5 w-3.5"})})]})})}const KU=5e3,w_={invalid_email:"That email doesn't look right.",invalid_message:"Please write a little more.",unavailable:"Couldn't send that just now. Try again."};function ZU({defaultEmail:e,onExit:t}){const[r,a]=ee.useState(""),[s,o]=ee.useState(e??""),[c,d]=ee.useState("form"),[f,h]=ee.useState(null),m=r.trim().length>0&&s.trim().length>0&&c!=="sending",p=async()=>{if(!m)return;d("sending"),h(null);const y=await mU(r.trim(),s.trim());if(y.ok){d("sent");return}d("form"),h(w_[y.error]??w_.unavailable)};return g.jsxs("div",{className:"mx-auto max-w-xl space-y-4",children:[g.jsxs("button",{onClick:()=>t("overview"),className:"cursor-pointer inline-flex items-center gap-1.5 text-sm text-[#888] transition-colors hover:text-white",children:[g.jsx(gp,{className:"h-4 w-4"}),"Back to results"]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(dS,{className:"h-5 w-5 text-[#888]","aria-hidden":"true"}),g.jsx("h1",{className:"text-2xl font-semibold text-white",children:"Feedback & support"})]}),g.jsx("div",{className:"w-full rounded-2xl bg-[rgba(255,255,255,0.02)] p-6",style:{border:"1px solid #2a2a2a"},children:c==="sent"?g.jsxs("div",{className:"flex items-start gap-3",children:[g.jsx(O_,{className:"mt-0.5 h-5 w-5 flex-shrink-0 text-emerald-400","aria-hidden":"true"}),g.jsxs("div",{className:"min-w-0",children:[g.jsx("p",{className:"text-sm font-semibold text-white",children:"Thanks, we got it."}),g.jsx("p",{className:"mt-1 text-xs text-[#888]",children:"We read every message. If it needs a reply, we'll reach out to the email you gave."}),g.jsx("button",{onClick:()=>{a(""),d("form")},className:"mt-4 cursor-pointer text-xs text-[#888] transition-colors hover:text-white",children:"Send more feedback"})]})]}):g.jsxs(g.Fragment,{children:[g.jsx("p",{className:"mb-4 text-xs text-[#666]",children:"Bugs, feature requests, or anything else. Tell us what's on your mind."}),f&&g.jsxs("div",{className:"mb-4 flex items-start gap-2 rounded-lg border border-red-500/30 bg-red-500/5 px-3 py-2",children:[g.jsx(Hu,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-red-400","aria-hidden":"true"}),g.jsx("p",{className:"text-xs text-red-300",children:f})]}),g.jsxs("label",{className:"block",children:[g.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"Your feedback"}),g.jsx("textarea",{autoFocus:!0,value:r,maxLength:KU,onChange:y=>a(y.target.value),rows:5,placeholder:"What's working, what's not, what you'd love to see…",className:"w-full resize-y rounded-lg border border-[#2a2a2a] bg-black px-3 py-2.5 text-sm text-white outline-none transition-colors focus:border-white/50 focus:ring-2 focus:ring-white/10"})]}),g.jsxs("label",{className:"mt-4 block",children:[g.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"Your work email"}),g.jsx("input",{type:"email",value:s,onChange:y=>o(y.target.value),placeholder:"[email protected]",className:"w-full rounded-lg border border-[#2a2a2a] bg-black px-3 py-2.5 text-sm text-white outline-none transition-colors focus:border-white/50 focus:ring-2 focus:ring-white/10"})]}),g.jsx("button",{onClick:()=>void p(),disabled:!m,className:"mt-4 flex w-full cursor-pointer items-center justify-center gap-2 rounded-lg bg-white px-4 py-2.5 text-sm font-semibold text-black transition-opacity hover:opacity-90 disabled:opacity-60",children:c==="sending"?"Sending…":"Send feedback"})]})})]})}function QU({text:e,children:t,className:r=""}){const[a,s]=ee.useState(!1);return g.jsxs("span",{className:`relative inline-flex ${r}`,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),onFocus:()=>s(!0),onBlur:()=>s(!1),children:[t,a&&g.jsx("span",{role:"tooltip",className:"pointer-events-none absolute bottom-full left-1/2 z-50 mb-2 w-max max-w-[240px] -translate-x-1/2 rounded-md px-2.5 py-1.5 text-xs text-[#ddd] shadow-lg",style:{border:"1px solid #2a2a2a",background:"#0a0a0a"},children:e})]})}function fS({label:e,desc:t,slug:r,icon:a,surface:s}){return g.jsx(QU,{text:t,children:g.jsxs("a",{href:fa($u,r),target:"_blank",rel:"noopener noreferrer",onClick:()=>Vr(r,s),className:"group inline-flex items-center gap-2 rounded-lg border border-[#222] bg-[rgba(255,255,255,0.02)] px-3 py-2 text-sm text-[#aaa] transition-colors hover:border-[#444] hover:text-white",children:[g.jsx(a,{className:"h-4 w-4 text-[#888] transition-colors group-hover:text-white","aria-hidden":"true"}),g.jsx("span",{children:e})]})})}const WU="Your findings stay on your machine. They're rendered here locally in your browser and never uploaded or stored by Strix.",E_=["critical","high","medium","low"],JU=500;function eH(){const[e,t]=ee.useState(null),[r,a]=ee.useState(null),[s,o]=ee.useState(null),[c,d]=ee.useState(null),[f,h]=ee.useState("overview"),[m,p]=ee.useState(null),[y,x]=ee.useState(null),[_,N]=ee.useState("report"),[S,w]=ee.useState(!1),[k,E]=ee.useState(!1),M=ee.useCallback(async()=>{try{p(await pU())}catch{}},[]),I=ee.useCallback(async()=>{try{x(await dU())}catch{}},[]);ee.useEffect(()=>{M(),I(),fU().then(T=>E(T.can_steer)).catch(()=>{})},[M,I]);const R=ee.useRef(!1);ee.useEffect(()=>{let T=!1,j;R.current=!1;const Y=()=>{j=setTimeout(z,JU)},z=async()=>{if(!T)try{const{summary:F,raw:$,finished:Q}=await rS(e);if(T)return;if(Q&&!R.current){R.current=!0;const te=await d_(e);T||a(te);return}const[J,W]=await Promise.all([aS(e).catch(()=>({agents:[],events:[]})),iS(F.runId,e).catch(()=>[])]);if(T)return;a(te=>({summary:F,raw:$,finished:Q,transcript:J,vulnerabilities:W,reportMarkdown:(te==null?void 0:te.reportMarkdown)??null})),Y()}catch(F){if(T)return;o(F instanceof Error?F.message:"Could not load run data."),Y()}};return(async()=>{try{const F=await d_(e);if(T)return;a(F),F.finished?R.current=!0:Y()}catch(F){if(T)return;o(F instanceof Error?F.message:"Could not load run data."),Y()}})(),()=>{T=!0,j&&clearTimeout(j)}},[e]);const U=ee.useMemo(()=>r?cU(r.vulnerabilities):null,[r]),B=(r==null?void 0:r.vulnerabilities.find(T=>T.id===c))??null,Z=(r==null?void 0:r.transcript.agents.length)??0,D=(m==null?void 0:m.verified)===!0,L=ee.useRef(!1);ee.useEffect(()=>{L.current=!1},[e]),ee.useEffect(()=>{L.current||!r||(r.finished?(L.current=!0,h("overview")):Z>0&&(L.current=!0,h("agents")))},[r,Z]);const G=ee.useCallback(T=>{L.current=!0,h(T)},[]),V=ee.useCallback(T=>{t(T),d(null),a(null),o(null),L.current=!1},[]),A=ee.useCallback((T,j)=>{Vr("email_report",j),N("report"),w(T),G("email")},[G]),q=ee.useCallback(()=>A(!1,"sidebar"),[A]),O=ee.useCallback(()=>A(!0,"overview"),[A]),H=ee.useCallback(()=>{I(),G("history")},[I,G]),X=ee.useCallback(async()=>{await M(),await I()},[M,I]),K=ee.useCallback(async()=>{await gU(),await M(),await I()},[M,I]);return g.jsxs("div",{className:"min-h-screen bg-black text-white flex",children:[g.jsx(jU,{view:f,onSelectView:T=>{d(null),T==="history"?H():G(T)},issuesCount:(r==null?void 0:r.vulnerabilities.length)??0,agentCount:Z,runCount:(y==null?void 0:y.count)??0,finished:(r==null?void 0:r.finished)??!1,verified:D,email:(m==null?void 0:m.email)??null,onOpenEmail:q,onOpenHistory:H,onForget:()=>void K()}),g.jsxs("div",{className:"flex-1 min-w-0",children:[g.jsx("div",{className:"border-b border-[#222]",children:g.jsxs("div",{className:"max-w-[88rem] mx-auto px-3 sm:px-6 py-4 flex items-center gap-1.5",children:[g.jsxs("a",{href:fa("https://app.strix.ai","logo"),target:"_blank",rel:"noopener noreferrer",onClick:()=>Vr("logo","topbar"),className:"flex items-center gap-1.5 opacity-90 transition-opacity hover:opacity-100 lg:hidden",title:"Open Strix Cloud",children:[g.jsx("img",{src:"./logo.png",alt:"Strix",className:"w-10 h-8 object-cover"}),g.jsx("div",{className:"text-base text-white font-medium tracking-tight",children:"Strix"})]}),r&&g.jsx(nH,{finished:r.finished}),g.jsxs("div",{className:"ml-auto flex items-center gap-3",children:[D&&y&&!y.locked&&y.runs.length>0&&g.jsx(tH,{runs:y,activeRun:e,launchedName:bo((r==null?void 0:r.summary.targets[0])??null,(r==null?void 0:r.summary.runName)??(r==null?void 0:r.summary.runId)??"Current run"),onSelect:V}),g.jsxs("a",{href:fa($u,"run_in_cloud"),target:"_blank",rel:"noopener noreferrer",onClick:()=>Vr("run_in_cloud","topbar"),className:"inline-flex items-center gap-1 rounded-lg bg-white px-3 py-1.5 text-xs font-semibold text-black transition-opacity hover:opacity-90",children:["Run in the cloud",g.jsx(k_,{className:"w-3 h-3","aria-hidden":"true"})]})]})]})}),g.jsxs("div",{className:"max-w-[88rem] mx-auto px-3 sm:px-6 py-8 sm:py-12 space-y-6",children:[s&&!r&&f!=="history"&&f!=="email"&&g.jsxs("div",{className:"rounded-lg px-4 py-3 flex gap-3 items-start border border-red-500/30 bg-red-500/5",children:[g.jsx(Hu,{className:"w-5 h-5 flex-shrink-0 mt-0.5 text-red-400","aria-hidden":"true"}),g.jsx("p",{className:"text-sm text-red-300",children:s})]}),g.jsx("div",{className:"animate-page-in space-y-6",children:f==="email"?g.jsx(FU,{activeRun:e,auth:m,purpose:_,skipDisclosure:S,onAuthChanged:()=>{M(),I()},onExit:T=>h(T==="history"?"history":"overview")}):f==="feedback"?g.jsx(ZU,{defaultEmail:(m==null?void 0:m.email)??null,onExit:T=>h(T)}):f==="history"?g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Vs,{className:"w-5 h-5 text-[#888]","aria-hidden":"true"}),g.jsx("h1",{className:"text-2xl font-semibold text-white",children:"Past runs"})]}),g.jsx($U,{runs:y,activeRun:e,onSelectRun:V,onVerified:()=>void X()})]}):!r&&!s?g.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-10 text-center",children:[g.jsx("div",{className:"w-6 h-6 mx-auto mb-3 rounded-full border-2 border-[#333] border-t-white animate-spin"}),g.jsx("p",{className:"text-sm text-[#888]",children:"Loading run data…"})]}):r&&U?g.jsxs(g.Fragment,{children:[g.jsx(iH,{summary:r.summary}),g.jsxs("div",{className:"flex gap-5 border-b border-[#2a2a2a] lg:hidden",children:[g.jsx(zm,{active:f==="overview",onClick:()=>G("overview"),children:"Overview"}),g.jsxs(zm,{active:f==="issues",onClick:()=>G("issues"),children:["Issues",r.vulnerabilities.length>0?` (${r.vulnerabilities.length})`:""]}),Z>0&&g.jsxs(zm,{active:f==="agents",onClick:()=>G("agents"),children:["Agents (",Z,")"]})]}),f==="overview"?g.jsx(cH,{summary:r.summary,counts:U,total:r.vulnerabilities.length,reportMarkdown:r.reportMarkdown,raw:r.raw,finished:r.finished,onOpenEmail:O}):f==="agents"&&Z>0?g.jsx(uH,{run:r,canSteer:k}):B?g.jsxs("div",{className:"space-y-4",children:[g.jsxs("button",{onClick:()=>d(null),className:"cursor-pointer inline-flex items-center gap-1.5 text-sm text-[#888] hover:text-white transition-colors",children:[g.jsx(gp,{className:"w-4 h-4"})," Back to all findings"]}),g.jsx(ZD,{vulnerability:B})]}):g.jsx(aH,{vulnerabilities:r.vulnerabilities,finished:r.finished,onSelect:T=>d(T)})]}):null},`${e??"launched"}:${f}:${c??""}`)]})]}),g.jsx(XU,{message:WU})]})}function tH({runs:e,activeRun:t,launchedName:r,onSelect:a}){const[s,o]=ee.useState(!1),c=e.runs.find(f=>f.name===t),d=c?bo(c.target,c.name):r;return g.jsxs("div",{className:"relative",children:[g.jsxs("button",{onClick:()=>o(f=>!f),onBlur:()=>setTimeout(()=>o(!1),150),className:"flex items-center gap-1.5 rounded-lg px-2.5 py-1.5 text-xs text-[#aaa] transition-colors hover:text-white",style:{border:"1px solid #2a2a2a"},children:[g.jsx(Vs,{className:"w-3.5 h-3.5","aria-hidden":"true"}),g.jsx("span",{className:"max-w-[160px] truncate",children:d}),g.jsx(ho,{className:"w-3.5 h-3.5","aria-hidden":"true"})]}),s&&g.jsx("div",{className:"absolute right-0 z-50 mt-1.5 max-h-80 w-64 overflow-y-auto rounded-lg py-1 shadow-xl",style:{border:"1px solid #2a2a2a",background:"#0a0a0a"},children:e.runs.map(f=>{const h=f.name===t;return g.jsxs("button",{onMouseDown:()=>a(f.name),className:`flex w-full items-center gap-2 px-3 py-2 text-left text-xs transition-colors hover:bg-[rgba(255,255,255,0.06)] ${h?"text-white":"text-[#aaa]"}`,children:[g.jsxs("span",{className:"min-w-0 flex-1",children:[g.jsx("span",{className:"block truncate",children:bo(f.target,f.name)}),f.target&&g.jsx("span",{className:"block truncate font-mono text-[#666]",children:f.target})]}),h&&g.jsx("span",{className:"h-1.5 w-1.5 flex-shrink-0 rounded-full bg-emerald-400"})]},f.name)})})]})}function nH({finished:e}){return e?g.jsxs("span",{className:"ml-3 inline-flex items-center gap-1.5 text-xs text-[#888]",children:[g.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-[#555]"}),"Complete"]}):g.jsxs("span",{className:"ml-3 inline-flex items-center gap-1.5 text-xs text-emerald-400",children:[g.jsxs("span",{className:"relative flex h-1.5 w-1.5",children:[g.jsx("span",{className:"absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75 animate-ping"}),g.jsx("span",{className:"relative inline-flex h-1.5 w-1.5 rounded-full bg-emerald-400"})]}),"Live"]})}function rH(e){if(e==null)return null;if(e<60)return`${e}s`;const t=Math.floor(e/60);return t<60?`${t}m`:`${Math.floor(t/60)}h ${t%60}m`}function iH({summary:e}){const t=rH(e.durationSeconds);return g.jsxs("div",{children:[g.jsx("h1",{className:"text-2xl font-semibold text-white",children:bo(e.targets[0]??null,e.runName??e.runId??"Scan results")}),g.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 text-sm text-[#888]",children:[e.targets.length>0&&g.jsx("span",{className:"font-mono text-[#aaa]",children:e.targets.join(", ")}),e.scanMode&&g.jsx(Lm,{label:e.scanMode}),t&&g.jsx(Lm,{label:t}),e.status&&g.jsx(Lm,{label:e.status})]})]})}function Lm({label:e}){return g.jsxs(g.Fragment,{children:[g.jsx("span",{className:"text-[#333]",children:"·"}),g.jsx("span",{className:"capitalize",children:e})]})}function aH({vulnerabilities:e,finished:t,onSelect:r}){const a=[...e].sort((s,o)=>E_.indexOf(s.severity)-E_.indexOf(o.severity));return a.length===0?g.jsxs("div",{className:"space-y-4",children:[g.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-8 text-center text-sm text-[#888]",children:t?"No findings in this run.":"No findings yet. The scan is still running…"}),t&&g.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[g.jsx("p",{className:"text-sm font-medium text-white",children:"Stay ahead of new exposures"}),g.jsx("p",{className:"mt-0.5 mb-3 text-xs text-[#666]",children:"Attack surface monitoring catches new exposures for your org over time."}),g.jsx(fS,{label:"Attack surface monitoring",desc:"Continuous coverage for your whole org.",slug:"asm",surface:"empty_state",icon:FT})]})]}):g.jsx("div",{className:"space-y-2",children:a.map(s=>g.jsxs("button",{onClick:()=>r(s.id),className:"animate-card-in cursor-pointer w-full text-left rounded-lg border border-[#222] hover:border-[#444] bg-[rgba(255,255,255,0.02)] px-4 py-3 transition-colors flex items-center gap-3",children:[g.jsx("span",{className:`w-2.5 h-2.5 rounded-full flex-shrink-0 ${yp(s.severity)}`,"aria-hidden":"true"}),g.jsxs("span",{className:"flex-1 min-w-0",children:[g.jsx("span",{className:"block text-sm font-medium text-white truncate",children:s.title}),s.target&&g.jsx("span",{className:"block text-xs text-[#666] font-mono truncate",children:s.target})]}),g.jsx("span",{className:`text-xs font-semibold px-2 py-0.5 rounded-full border capitalize ${I_[s.severity]}`,children:s.severity})]},s.id))})}function sH(e){return e.replace(/^\s*#{1,6}[ \t]+.*(?:\r?\n)+/,"").trimStart()}function lH(e){const t=[];let r=null;for(const a of e.split(`
+`)){const s=a.match(/^#{1,6}\s+(.*)$/);if(s){const o=s[1].trim().toLowerCase();if(o===r)continue;r=o}else a.trim()!==""&&(r=null);t.push(a)}return t.join(`
+`)}function oH({onOpenEmail:e}){return g.jsx("button",{onClick:e,className:"group w-full cursor-pointer rounded-xl border border-emerald-500/25 bg-emerald-500/[0.06] p-4 text-left transition-colors hover:border-emerald-500/40",children:g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-lg",style:{border:"1px solid rgba(16,185,129,0.3)",background:"rgba(16,185,129,0.08)"},children:g.jsx(bp,{className:"h-4 w-4 text-emerald-400","aria-hidden":"true"})}),g.jsxs("div",{className:"min-w-0 flex-1",children:[g.jsx("p",{className:"text-sm font-semibold text-white",children:"Email an encrypted PDF report of this run"}),g.jsx("p",{className:"mt-0.5 text-xs text-[#888]",children:"Encrypted with a key only you can see, email verified with a one-time code before sending."})]}),g.jsx("span",{className:"flex-shrink-0 rounded-lg bg-white px-3 py-1.5 text-xs font-semibold text-black transition-opacity group-hover:opacity-90",children:"Export report to PDF"})]})})}function cH({summary:e,counts:t,total:r,reportMarkdown:a,raw:s,finished:o,onOpenEmail:c}){const d=[["Executive Summary",e.executiveSummary],["Technical Analysis",e.technicalAnalysis],["Methodology",e.methodology],["Recommendations",e.recommendations]].filter(([,f])=>!!f).map(([f,h])=>({title:f,content:sH(h)}));return g.jsxs("div",{className:"space-y-6",children:[g.jsx("div",{className:"animate-card-in",children:g.jsx(YU,{raw:s,durationSeconds:e.durationSeconds})}),r>0&&g.jsx("div",{className:"animate-card-in rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:g.jsx(QD,{findings:{total:r,...t}})}),o&&g.jsx("div",{className:"animate-card-in",children:g.jsx(oH,{onOpenEmail:c})}),d.length>0?g.jsx("div",{className:"animate-card-in rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5 space-y-8",children:d.map(f=>g.jsx(oa,{title:f.title,content:f.content},f.title))}):a?g.jsx("div",{className:"animate-card-in rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:g.jsx(oa,{content:lH(a)})}):r===0&&g.jsx("p",{className:"text-sm text-[#888]",children:"No summary available for this run yet."})]})}function zm({active:e,onClick:t,children:r}){return g.jsxs("button",{onClick:t,className:`cursor-pointer relative pb-2.5 text-sm font-semibold transition-colors ${e?"text-white":"text-[#666] hover:text-white"}`,children:[r,e&&g.jsx("span",{className:"absolute bottom-0 inset-x-0 h-0.5 bg-white rounded-full"})]})}function uH({run:e,canSteer:t}){const{agents:r,events:a}=e.transcript,s=ee.useMemo(()=>J7(r,a),[r,a]),[o,c]=ee.useState(null),d=o?r.find(h=>h.id===o)??null:null,f=t&&!e.finished;return g.jsxs("div",{className:"space-y-5",children:[g.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Ao,{className:"w-4 h-4 text-[#888]","aria-hidden":"true"}),g.jsx("h2",{className:"text-sm font-semibold text-white",children:"Agent graph"}),g.jsxs("span",{className:"text-xs text-[#666]",children:[r.length," agent",r.length===1?"":"s"]})]}),g.jsx("p",{className:"mt-1 mb-4 text-xs text-[#666]",children:"Click an agent to open its full transcript."}),g.jsx("div",{className:"h-[480px] rounded-lg border border-[#1a1a1a] overflow-hidden",children:g.jsx(HB,{agents:s,selectedAgentId:o,onSelectAgent:h=>c(h),eventsLoaded:!0,eventsEmpty:s.size===0,scanCompleted:e.finished})})]}),f&&g.jsx(oS,{agents:r}),g.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[g.jsx("p",{className:"text-sm font-semibold text-white",children:"Run this scan with more depth"}),g.jsx("p",{className:"mt-0.5 text-xs text-[#666]",children:"Re-run this scan on managed infra in the cloud."}),g.jsx("div",{className:"mt-3 flex flex-wrap gap-2.5",children:g.jsx(fS,{label:"Re-run in Strix Cloud with more depth",desc:"Run this scan on managed infra with more depth.",slug:"live_scan",surface:"agents",icon:XT})})]}),g.jsx(vU,{open:d!==null,agent:d,events:a,steerable:f,onClose:()=>c(null)})]})}Ek.createRoot(document.getElementById("root")).render(g.jsx(ee.StrictMode,{children:g.jsx(eH,{})}));
diff --git a/strix/viewer/static/index.html b/strix/viewer/static/index.html
index 89030c29..2414088b 100644
--- a/strix/viewer/static/index.html
+++ b/strix/viewer/static/index.html
@@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="color-scheme" content="dark" />
<title>Strix Results</title>
- <script type="module" crossorigin src="./assets/index-BU_tk5L-.js"></script>
- <link rel="stylesheet" crossorigin href="./assets/index-C0NveaV7.css">
+ <script type="module" crossorigin src="./assets/index-_2j_QfOq.js"></script>
+ <link rel="stylesheet" crossorigin href="./assets/index-BtBksasm.css">
</head>
<body>
<div id="root"></div>