Skip to content

armgit / strix

Public Imported from GitHub
0

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

refactor(agents): replace respond_to_user with a text-free wait_for_user

Ahmed Allam16a316540ccb
diff --git a/strix/agents/factory.py b/strix/agents/factory.py
index 063a5dd4..61af684d 100644
--- a/strix/agents/factory.py
+++ b/strix/agents/factory.py
@@ -61,7 +61,6 @@ from strix.tools.reporting.tool import (
list_reports,
update_vulnerability_report,
)
-from strix.tools.respond.tool import respond_to_user
from strix.tools.thinking.tool import think
from strix.tools.threat_model.tools import (
amend_threat_model,
@@ -76,6 +75,7 @@ from strix.tools.todo.tools import (
mark_todo_pending,
update_todo,
)
+from strix.tools.wait_for_user.tool import wait_for_user
from strix.tools.web_search.tool import web_get_contents, web_search
@@ -509,7 +509,7 @@ def _make_shell_configurator(*, chat_completions: bool, strict_schemas: bool) ->
# Tools that hand control away by parking the agent rather than ending the scan.
-_PARKING_TOOLS: frozenset[str] = frozenset({"respond_to_user", "wait_for_agents"})
+_PARKING_TOOLS: frozenset[str] = frozenset({"wait_for_user", "wait_for_agents"})
def _lifecycle_tool_completed(tool_name: str, output: Any) -> bool:
@@ -697,7 +697,7 @@ def build_strix_agent(
agent_tools = [*_EXTRA_TOOLS, *(extra_tools or [])]
if interactive:
# Yielding to the user is only meaningful when one is attached.
- agent_tools.append(respond_to_user)
+ agent_tools.append(wait_for_user)
if is_root:
tools: list[Tool] = [*_BASE_TOOLS, *agent_tools, finish_scan]
else:
diff --git a/strix/agents/prompts/system_prompt.jinja b/strix/agents/prompts/system_prompt.jinja
index 4af8ff4f..dde39f14 100644
--- a/strix/agents/prompts/system_prompt.jinja
+++ b/strix/agents/prompts/system_prompt.jinja
@@ -33,18 +33,19 @@ INTER-AGENT MESSAGES:
{% if interactive %}
INTERACTIVE BEHAVIOR:
- You are in an interactive conversation with a user.
-- HOW EXECUTION ENDS: your turn ends ONLY when you make an explicit lifecycle tool call. Plain text NEVER ends your turn and NEVER hands control to the user — text is shown to the user, and then execution continues.
- - To answer the user and hand control back, call respond_to_user. It delivers your message AND parks you for their reply in one call, so there is no way to answer and then forget to stop. This is the ONLY way to yield to the user.
+- Everything you write as plain text is shown to the user, as you write it. Plain text is the ONLY way to talk to the user: there is no message tool and no message argument anywhere.
+- HOW EXECUTION ENDS: your turn ends ONLY when you make an explicit lifecycle tool call. Plain text NEVER ends your turn and NEVER hands control to the user — it is shown, and then execution continues.
+ - To hand control to the user, call wait_for_user. It takes no arguments and says nothing; it only stops you until they reply. This is the ONLY way to yield to the user.
- To wait on another AGENT (a child's report, a peer's reply), call wait_for_agents. That is not a way to reach the user.
- To end the whole engagement, call the lifecycle tool: finish_scan (root) or agent_finish (subagent).
- A turn that ends with plain text and no tool call does NOT stop you: the system nudges you to continue and will re-run you. Do not rely on going silent to pause — it will not pause you.
-- Answering a user question: put the answer in respond_to_user's message. Do not write the answer as plain text and then fall silent — that does not reach a stopping point, it just triggers a continuation nudge.
-- If all you want to do is reply and stop, that whole turn is ONE respond_to_user call carrying the answer. Do not write the answer as text and then call respond_to_user as well: the user reads it twice.
-- If you do end a turn on plain text and the nudge arrives, your words already reached the user. Do not restate them: call respond_to_user with NO message to simply wait, or with only whatever you still need to add.
-- You may include brief explanatory text before a tool call, and you can narrate while you work — plain text is shown to the user as you go. Narrating is free; respond_to_user is specifically the act of WAITING for the user, so do not call it just to give a status update.
+- Answering the user: write the answer as plain text, then call wait_for_user in the same turn. Never call wait_for_user before you have written your reply: the user would be handed a silent turn, and the system sends you back to write it.
+- Never restate, summarize, or close out what you have already written, in text or in any tool argument. Once it is written, the user has read it; the only thing left to do is call wait_for_user.
+- If you end a turn on plain text and the nudge arrives, your words already reached the user. Do not repeat them: call wait_for_user.
+- You can narrate while you work — plain text is shown to the user as you go. Narrating is free; wait_for_user is specifically the act of WAITING for the user, so do not call it just to give a status update.
- Respond naturally when the user asks questions or gives instructions.
-- While actively working on a task, every turn should carry exactly one tool call — use think to plan, the appropriate tool to act, and respond_to_user only when you genuinely need the user.
-- Never loop through think or other tools just to prepare, polish, confirm, or announce an answer. Once you know the answer, send it with respond_to_user.
+- While actively working on a task, every turn should carry exactly one tool call — use think to plan, the appropriate tool to act, and wait_for_user only when you genuinely need the user.
+- Never loop through think or other tools just to prepare, polish, confirm, or announce an answer. Once you know the answer, write it and call wait_for_user.
{% else %}
AUTONOMOUS BEHAVIOR:
- Work autonomously by default
diff --git a/strix/core/execution.py b/strix/core/execution.py
index 69a5cf87..ac44c53f 100644
--- a/strix/core/execution.py
+++ b/strix/core/execution.py
@@ -10,7 +10,7 @@ from collections.abc import Callable
from functools import cache
from typing import TYPE_CHECKING, Any, cast
-from agents import RunConfig, Runner
+from agents import ItemHelpers, MessageOutputItem, RunConfig, Runner
from agents.exceptions import AgentsException, MaxTurnsExceeded, UserError
from agents.sandbox.errors import ExecTransportError
from openai import (
@@ -505,13 +505,18 @@ async def _run_until_lifecycle(
"""Drive an agent until an explicit lifecycle tool settles its status.
A turn that ends without ``finish_scan``, ``agent_finish``,
- ``respond_to_user``, or ``wait_for_agents`` leaves the agent ``running``:
+ ``wait_for_user``, or ``wait_for_agents`` leaves the agent ``running``:
plain text never terminates a run and never yields to the user. Such a turn
- is nudged back into a tool call, bounded by a recovery limit.
+ is nudged back into a tool call, bounded by a recovery limit. The same
+ budget covers a ``wait_for_user`` call made before anything was said to the
+ user since their last message: plain text is the only channel to them, so
+ that park would hand them a silent turn, and the agent is sent back to
+ write its reply instead.
"""
result: RunResultBase | None = None
input_data: Any = initial_input
recovery_limit = _INTERACTIVE_TOOL_RECOVERY_LIMIT if interactive else max(1, max_turns)
+ said_to_user = False
while True:
if coordinator.budget_stopped:
@@ -568,21 +573,26 @@ async def _run_until_lifecycle(
input_data = []
continue
+ said_to_user = said_to_user or _said_to_user(result)
status = await _agent_status(coordinator, agent_id)
- if status != "running":
+ silent_yield = (
+ interactive and not said_to_user and await _parked_for_user(coordinator, agent_id)
+ )
+ if status != "running" and not silent_yield:
await coordinator.reset_recovery(agent_id)
return result
recoveries = await coordinator.record_recovery(agent_id)
- logger.warning(
- "agent %s ended a turn without a lifecycle tool call (interactive=%s); "
- "forcing tool continuation (%d/%d): %s",
+ _log_recovery(
agent_id,
- interactive,
+ result,
recoveries,
recovery_limit,
- _final_output_preview(result),
+ interactive=interactive,
+ silent_yield=silent_yield,
)
+ if silent_yield:
+ await coordinator.mark_running(agent_id)
if recoveries >= recovery_limit:
return await _exhausted_recovery(coordinator, agent_id, result, interactive=interactive)
@@ -593,6 +603,7 @@ async def _run_until_lifecycle(
attempt=recoveries,
limit=recovery_limit,
interactive=interactive,
+ silent_yield=silent_yield,
)
@@ -884,6 +895,51 @@ async def _agent_status(coordinator: AgentCoordinator, agent_id: str) -> Status
return coordinator.statuses.get(agent_id)
+async def _parked_for_user(coordinator: AgentCoordinator, agent_id: str) -> bool:
+ async with coordinator._lock:
+ return (
+ coordinator.statuses.get(agent_id) == "waiting"
+ and coordinator.wait_kinds.get(agent_id) == "user"
+ )
+
+
+def _log_recovery(
+ agent_id: str,
+ result: RunResultBase | None,
+ attempt: int,
+ limit: int,
+ *,
+ interactive: bool,
+ silent_yield: bool,
+) -> None:
+ if silent_yield:
+ logger.warning(
+ "agent %s called wait_for_user without saying anything to the user; "
+ "sending it back to reply (%d/%d)",
+ agent_id,
+ attempt,
+ limit,
+ )
+ return
+ logger.warning(
+ "agent %s ended a turn without a lifecycle tool call (interactive=%s); "
+ "forcing tool continuation (%d/%d): %s",
+ agent_id,
+ interactive,
+ attempt,
+ limit,
+ _final_output_preview(result),
+ )
+
+
+def _said_to_user(result: RunResultBase | None) -> bool:
+ """Whether the run produced any assistant text, the only channel to the user."""
+ for item in getattr(result, "new_items", ()) or ():
+ if isinstance(item, MessageOutputItem) and ItemHelpers.text_message_output(item).strip():
+ return True
+ return False
+
+
def _final_output_preview(result: RunResultBase | None) -> str:
final_output = getattr(result, "final_output", None)
if final_output is None:
@@ -901,15 +957,23 @@ async def _append_tool_required_message(
attempt: int,
limit: int,
interactive: bool,
+ silent_yield: bool = False,
) -> list[dict[str, str]]:
finish_tool = "finish_scan" if context.get("parent_id") is None else "agent_finish"
- if interactive:
+ if silent_yield:
+ message = (
+ "You called wait_for_user without having written anything to the user since "
+ "their last message, so they would be handed a silent turn. Plain text is the "
+ "only channel to the user: write your reply as plain text now, then call "
+ f"wait_for_user. This is recovery attempt {attempt}/{limit}."
+ )
+ elif interactive:
message = (
"Your previous message ended a turn without a tool call. Plain text never ends "
"execution and never hands control to the user: it is shown to the user, and the "
"run continues. Continue immediately and call exactly one tool. "
- "If you have something to tell the user and nothing to do until they reply, "
- "call respond_to_user — with no message if you have already said it. "
+ "If you have nothing to do until the user replies, call wait_for_user; your "
+ "text already reached them, so do not repeat it. "
"If you are blocked waiting for another agent, call wait_for_agents. "
f"If the whole engagement is complete, call {finish_tool}. "
"Otherwise use the appropriate execution or planning tool. "
diff --git a/strix/interface/tui/internal/render/registry.go b/strix/interface/tui/internal/render/registry.go
index 9b7f4f35..7813c991 100644
--- a/strix/interface/tui/internal/render/registry.go
+++ b/strix/interface/tui/internal/render/registry.go
@@ -94,6 +94,8 @@ func Tool(data map[string]any) string {
return renderListReports(result)
case "get_report":
return renderGetReport(result)
+ case "wait_for_user":
+ return renderWaitForUser()
case "respond_to_user":
return renderRespondToUser(args)
case "finish_scan":
diff --git a/strix/interface/tui/internal/render/render_test.go b/strix/interface/tui/internal/render/render_test.go
index 13474b84..383dac55 100644
--- a/strix/interface/tui/internal/render/render_test.go
+++ b/strix/interface/tui/internal/render/render_test.go
@@ -136,7 +136,12 @@ func TestToolDispatchCoversKnownTools(t *testing.T) {
[]string{"report read", "not found"},
},
{
- "respond_to_user",
+ "wait_for_user",
+ tool("wait_for_user", map[string]any{}, nil, "completed"),
+ []string{"waiting for your reply"},
+ },
+ {
+ "respond_to_user (recorded runs)",
tool("respond_to_user", map[string]any{"message": "Here is the answer"}, nil, "completed"),
[]string{"Here is the answer", "waiting for your reply"},
},
@@ -320,6 +325,9 @@ func TestCollapseToolOnlyOutputHeavyTools(t *testing.T) {
if out, expandable := CollapseTool(full, "respond_to_user", false); expandable || out != full {
t.Fatal("respond_to_user must never collapse")
}
+ if out, expandable := CollapseTool(full, "wait_for_user", false); expandable || out != full {
+ t.Fatal("wait_for_user must never collapse")
+ }
}
func TestReportSectionsRenderMarkdown(t *testing.T) {
diff --git a/strix/interface/tui/internal/render/respond.go b/strix/interface/tui/internal/render/respond.go
deleted file mode 100644
index 7b8452a3..00000000
--- a/strix/interface/tui/internal/render/respond.go
+++ /dev/null
@@ -1,18 +0,0 @@
-package render
-
-import "strings"
-
-// ---------------------------------------------------------------------------
-// Direct replies (respond_renderer.py)
-// ---------------------------------------------------------------------------
-
-// renderRespondToUser shows the reply as the agent's own prose, since
-// respond_to_user carries the message the user is meant to read.
-func renderRespondToUser(args map[string]any) string {
- var b strings.Builder
- if message := StringValue(args["message"]); message != "" {
- b.WriteString(renderAssistantMarkdown(message) + "\n\n")
- }
- b.WriteString(Col(Gray).Render("○ ") + Dim().Render("waiting for your reply"))
- return b.String()
-}
diff --git a/strix/interface/tui/internal/render/wait_user.go b/strix/interface/tui/internal/render/wait_user.go
new file mode 100644
index 00000000..2e5cbcc0
--- /dev/null
+++ b/strix/interface/tui/internal/render/wait_user.go
@@ -0,0 +1,25 @@
+package render
+
+import "strings"
+
+// ---------------------------------------------------------------------------
+// Handing the turn to the user
+// ---------------------------------------------------------------------------
+
+// renderWaitForUser marks the agent parked for the user's reply. The call
+// carries no text: whatever the agent had to say was already shown as its
+// own prose.
+func renderWaitForUser() string {
+ return Col(Gray).Render("○ ") + Dim().Render("waiting for your reply")
+}
+
+// renderRespondToUser renders the retired respond_to_user call from recorded
+// runs, whose message argument was the reply the user meant to read.
+func renderRespondToUser(args map[string]any) string {
+ var b strings.Builder
+ if message := StringValue(args["message"]); message != "" {
+ b.WriteString(renderAssistantMarkdown(message) + "\n\n")
+ }
+ b.WriteString(renderWaitForUser())
+ return b.String()
+}
diff --git a/strix/interface/viewer/frontend/src/components/live/tool-renderers/RespondRenderer.tsx b/strix/interface/viewer/frontend/src/components/live/tool-renderers/RespondRenderer.tsx
deleted file mode 100644
index e963a35e..00000000
--- a/strix/interface/viewer/frontend/src/components/live/tool-renderers/RespondRenderer.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-"use client";
-
-import type { ToolRendererProps } from "@/types/events";
-import Markdown from "./Markdown";
-
-/**
- * `respond_to_user` carries the message the user is meant to read, so it renders
- * as the agent's own prose rather than as a tool call.
- */
-export default function RespondRenderer({ args }: ToolRendererProps) {
- const message = (args.message as string) ?? "";
- if (!message) return null;
-
- return (
- <div>
- <Markdown text={message} />
- <div className="mt-1.5 text-[#888] text-[13px]">waiting for your reply</div>
- </div>
- );
-}
diff --git a/strix/interface/viewer/frontend/src/components/live/tool-renderers/WaitForUserRenderer.tsx b/strix/interface/viewer/frontend/src/components/live/tool-renderers/WaitForUserRenderer.tsx
new file mode 100644
index 00000000..b4d3f847
--- /dev/null
+++ b/strix/interface/viewer/frontend/src/components/live/tool-renderers/WaitForUserRenderer.tsx
@@ -0,0 +1,22 @@
+"use client";
+
+import type { ToolRendererProps } from "@/types/events";
+import Markdown from "./Markdown";
+
+/**
+ * `wait_for_user` hands the turn to the user and carries no text: whatever the
+ * agent had to say was already shown as its own prose. Recorded runs still hold
+ * `respond_to_user` calls, whose `message` argument was the reply itself.
+ */
+export default function WaitForUserRenderer({ args }: ToolRendererProps) {
+ const message = typeof args.message === "string" ? args.message : "";
+
+ return (
+ <div>
+ {message && <Markdown text={message} />}
+ <div className={message ? "mt-1.5 text-[#888] text-[13px]" : "text-[#888] text-[13px]"}>
+ waiting for your reply
+ </div>
+ </div>
+ );
+}
diff --git a/strix/interface/viewer/frontend/src/components/live/tool-renderers/index.ts b/strix/interface/viewer/frontend/src/components/live/tool-renderers/index.ts
index 071a333b..487ba8bd 100644
--- a/strix/interface/viewer/frontend/src/components/live/tool-renderers/index.ts
+++ b/strix/interface/viewer/frontend/src/components/live/tool-renderers/index.ts
@@ -25,7 +25,7 @@ import NotesRenderer from "./NotesRenderer";
import TodoRenderer from "./TodoRenderer";
import FallbackRenderer from "./FallbackRenderer";
import LoadSkillRenderer from "./LoadSkillRenderer";
-import RespondRenderer from "./RespondRenderer";
+import WaitForUserRenderer from "./WaitForUserRenderer";
import CoverageRenderer from "./CoverageRenderer";
import ThreatModelRenderer from "./ThreatModelRenderer";
import McpRenderer from "./McpRenderer";
@@ -122,7 +122,7 @@ const CATEGORY_TOOLS: Record<ToolCategory, readonly string[]> = {
agents: ["create_agent", "agent_finish", "send_message_to_agent", "wait_for_agents", "view_agent_graph", "stop_agent"],
search: ["web_search"],
// scan_start_info / subagent_start_info are strix-app synthetic events; finish_scan is the engine's
- lifecycle: ["scan_start_info", "subagent_start_info", "finish_scan", "respond_to_user"],
+ lifecycle: ["scan_start_info", "subagent_start_info", "finish_scan", "wait_for_user", "respond_to_user"],
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"],
@@ -147,7 +147,8 @@ const TOOL_CATEGORY: Record<string, ToolCategory> = Object.fromEntries(
*/
const RENDERER_OVERRIDES: Partial<Record<string, ComponentType<ToolRendererProps>>> = {
finish_scan: FinishRenderer,
- respond_to_user: RespondRenderer,
+ wait_for_user: WaitForUserRenderer,
+ respond_to_user: WaitForUserRenderer,
apply_patch: ApplyPatchRenderer,
view_image: ViewImageRenderer,
list_reports: ReportListRenderer,
@@ -163,6 +164,7 @@ const ICON_OVERRIDES: Partial<Record<string, ToolIconMeta>> = {
agent_finish: { icon: Flag, color: "text-cyan-400" },
send_message_to_agent: { icon: MessageCircle, color: "text-cyan-400" },
wait_for_agents: { icon: MessageCircle, color: "text-cyan-400" },
+ wait_for_user: { icon: MessageCircle, color: "text-emerald-400" },
respond_to_user: { icon: MessageCircle, color: "text-emerald-400" },
view_agent_graph: { icon: Eye, color: "text-cyan-400" },
stop_agent: { icon: Ban, color: "text-red-400" },
diff --git a/strix/interface/viewer/static/assets/index-DbPDzbcJ.js b/strix/interface/viewer/static/assets/index-B1JzV4Vu.js
similarity index 75%
rename from strix/interface/viewer/static/assets/index-DbPDzbcJ.js
rename to strix/interface/viewer/static/assets/index-B1JzV4Vu.js
index 5d395f7e..a54671b3 100644
--- a/strix/interface/viewer/static/assets/index-DbPDzbcJ.js
+++ b/strix/interface/viewer/static/assets/index-B1JzV4Vu.js
@@ -1,4 +1,4 @@
-(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 Mo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hh={exports:{}},Xl={};/**
+(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 Mo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mh={exports:{}},Xl={};/**
* @license React
* react-jsx-runtime.production.js
*
@@ -6,7 +6,7 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
- */var J0;function jk(){if(J0)return Xl;J0=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 Xl.Fragment=t,Xl.jsx=r,Xl.jsxs=r,Xl}var ey;function Dk(){return ey||(ey=1,hh.exports=jk()),hh.exports}var m=Dk(),mh={exports:{}},Ve={};/**
+ */var J0;function Dk(){if(J0)return Xl;J0=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 Xl.Fragment=t,Xl.jsx=r,Xl.jsxs=r,Xl}var ey;function Lk(){return ey||(ey=1,mh.exports=Dk()),mh.exports}var m=Lk(),ph={exports:{}},Ve={};/**
* @license React
* react.production.js
*
@@ -14,7 +14,7 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
- */var ty;function Lk(){if(ty)return Ve;ty=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"),h=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.iterator;function y(L){return L===null||typeof L!="object"?null:(L=b&&L[b]||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,F,D){this.props=L,this.context=F,this.refs=S,this.updater=D||_}w.prototype.isReactComponent={},w.prototype.setState=function(L,F){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,F,"setState")},w.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function C(){}C.prototype=w.prototype;function E(L,F,D){this.props=L,this.context=F,this.refs=S,this.updater=D||_}var A=E.prototype=new C;A.constructor=E,N(A,w.prototype),A.isPureReactComponent=!0;var B=Array.isArray;function R(){}var H={H:null,A:null,T:null,S:null},z=Object.prototype.hasOwnProperty;function Y(L,F,D){var V=D.ref;return{$$typeof:e,type:L,key:F,ref:V!==void 0?V:null,props:D}}function j(L,F){return Y(L.type,F,L.props)}function I(L){return typeof L=="object"&&L!==null&&L.$$typeof===e}function Z(L){var F={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(D){return F[D]})}var P=/\/+/g;function k(L,F){return typeof L=="object"&&L!==null&&L.key!=null?Z(""+L.key):F.toString(36)}function $(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(F){L.status==="pending"&&(L.status="fulfilled",L.value=F)},function(F){L.status==="pending"&&(L.status="rejected",L.reason=F)})),L.status){case"fulfilled":return L.value;case"rejected":throw L.reason}}throw L}function O(L,F,D,V,q){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 p:return J=L._init,O(J(L._payload),F,D,V,q)}}if(J)return q=q(L),J=V===""?"."+k(L,0):V,B(q)?(D="",J!=null&&(D=J.replace(P,"$&/")+"/"),O(q,F,D,"",function(oe){return oe})):q!=null&&(I(q)&&(q=j(q,D+(q.key==null||L&&L.key===q.key?"":(""+q.key).replace(P,"$&/")+"/")+J)),F.push(q)),1;J=0;var W=V===""?".":V+":";if(B(L))for(var te=0;te<L.length;te++)V=L[te],Q=W+k(V,te),J+=O(V,F,D,Q,q);else if(te=y(L),typeof te=="function")for(L=te.call(L),te=0;!(V=L.next()).done;)V=V.value,Q=W+k(V,te++),J+=O(V,F,D,Q,q);else if(Q==="object"){if(typeof L.then=="function")return O($(L),F,D,V,q);throw F=String(L),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return J}function U(L,F,D){if(L==null)return L;var V=[],q=0;return O(L,V,"","",function(Q){return F.call(D,Q,q++)}),V}function K(L){if(L._status===-1){var F=L._result;F=F(),F.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=F)}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 F=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(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",L);return}console.error(L)},M={map:U,forEach:function(L,F,D){U(L,function(){F.apply(this,arguments)},D)},count:function(L){var F=0;return U(L,function(){F++}),F},toArray:function(L){return U(L,function(F){return F})||[]},only:function(L){if(!I(L))throw Error("React.Children.only expected to receive a single React element child.");return L}};return Ve.Activity=g,Ve.Children=M,Ve.Component=w,Ve.Fragment=r,Ve.Profiler=s,Ve.PureComponent=E,Ve.StrictMode=a,Ve.Suspense=h,Ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,Ve.__COMPILER_RUNTIME={__proto__:null,c:function(L){return H.H.useMemoCache(L)}},Ve.cache=function(L){return function(){return L.apply(null,arguments)}},Ve.cacheSignal=function(){return null},Ve.cloneElement=function(L,F,D){if(L==null)throw Error("The argument must be a React element, but you passed "+L+".");var V=N({},L.props),q=L.key;if(F!=null)for(Q in F.key!==void 0&&(q=""+F.key),F)!z.call(F,Q)||Q==="key"||Q==="__self"||Q==="__source"||Q==="ref"&&F.ref===void 0||(V[Q]=F[Q]);var Q=arguments.length-2;if(Q===1)V.children=D;else if(1<Q){for(var J=Array(Q),W=0;W<Q;W++)J[W]=arguments[W+2];V.children=J}return Y(L.type,q,V)},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,F,D){var V,q={},Q=null;if(F!=null)for(V in F.key!==void 0&&(Q=""+F.key),F)z.call(F,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(q[V]=F[V]);var J=arguments.length-2;if(J===1)q.children=D;else if(1<J){for(var W=Array(J),te=0;te<J;te++)W[te]=arguments[te+2];q.children=W}if(L&&L.defaultProps)for(V in J=L.defaultProps,J)q[V]===void 0&&(q[V]=J[V]);return Y(L,Q,q)},Ve.createRef=function(){return{current:null}},Ve.forwardRef=function(L){return{$$typeof:d,render:L}},Ve.isValidElement=I,Ve.lazy=function(L){return{$$typeof:p,_payload:{_status:-1,_result:L},_init:K}},Ve.memo=function(L,F){return{$$typeof:f,type:L,compare:F===void 0?null:F}},Ve.startTransition=function(L){var F=H.T,D={};H.T=D;try{var V=L(),q=H.S;q!==null&&q(D,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(R,X)}catch(Q){X(Q)}finally{F!==null&&D.types!==null&&(F.types=D.types),H.T=F}},Ve.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},Ve.use=function(L){return H.H.use(L)},Ve.useActionState=function(L,F,D){return H.H.useActionState(L,F,D)},Ve.useCallback=function(L,F){return H.H.useCallback(L,F)},Ve.useContext=function(L){return H.H.useContext(L)},Ve.useDebugValue=function(){},Ve.useDeferredValue=function(L,F){return H.H.useDeferredValue(L,F)},Ve.useEffect=function(L,F){return H.H.useEffect(L,F)},Ve.useEffectEvent=function(L){return H.H.useEffectEvent(L)},Ve.useId=function(){return H.H.useId()},Ve.useImperativeHandle=function(L,F,D){return H.H.useImperativeHandle(L,F,D)},Ve.useInsertionEffect=function(L,F){return H.H.useInsertionEffect(L,F)},Ve.useLayoutEffect=function(L,F){return H.H.useLayoutEffect(L,F)},Ve.useMemo=function(L,F){return H.H.useMemo(L,F)},Ve.useOptimistic=function(L,F){return H.H.useOptimistic(L,F)},Ve.useReducer=function(L,F,D){return H.H.useReducer(L,F,D)},Ve.useRef=function(L){return H.H.useRef(L)},Ve.useState=function(L){return H.H.useState(L)},Ve.useSyncExternalStore=function(L,F,D){return H.H.useSyncExternalStore(L,F,D)},Ve.useTransition=function(){return H.H.useTransition()},Ve.version="19.2.7",Ve}var ny;function Oo(){return ny||(ny=1,mh.exports=Lk()),mh.exports}var ee=Oo();const fa=Mo(ee);var ph={exports:{}},Kl={},gh={exports:{}},xh={};/**
+ */var ty;function zk(){if(ty)return Ve;ty=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"),h=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.iterator;function y(L){return L===null||typeof L!="object"?null:(L=b&&L[b]||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,F,D){this.props=L,this.context=F,this.refs=S,this.updater=D||_}w.prototype.isReactComponent={},w.prototype.setState=function(L,F){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,F,"setState")},w.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function C(){}C.prototype=w.prototype;function E(L,F,D){this.props=L,this.context=F,this.refs=S,this.updater=D||_}var A=E.prototype=new C;A.constructor=E,N(A,w.prototype),A.isPureReactComponent=!0;var B=Array.isArray;function R(){}var H={H:null,A:null,T:null,S:null},z=Object.prototype.hasOwnProperty;function Y(L,F,D){var V=D.ref;return{$$typeof:e,type:L,key:F,ref:V!==void 0?V:null,props:D}}function j(L,F){return Y(L.type,F,L.props)}function I(L){return typeof L=="object"&&L!==null&&L.$$typeof===e}function Z(L){var F={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(D){return F[D]})}var P=/\/+/g;function k(L,F){return typeof L=="object"&&L!==null&&L.key!=null?Z(""+L.key):F.toString(36)}function $(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(F){L.status==="pending"&&(L.status="fulfilled",L.value=F)},function(F){L.status==="pending"&&(L.status="rejected",L.reason=F)})),L.status){case"fulfilled":return L.value;case"rejected":throw L.reason}}throw L}function O(L,F,D,V,q){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 p:return J=L._init,O(J(L._payload),F,D,V,q)}}if(J)return q=q(L),J=V===""?"."+k(L,0):V,B(q)?(D="",J!=null&&(D=J.replace(P,"$&/")+"/"),O(q,F,D,"",function(oe){return oe})):q!=null&&(I(q)&&(q=j(q,D+(q.key==null||L&&L.key===q.key?"":(""+q.key).replace(P,"$&/")+"/")+J)),F.push(q)),1;J=0;var W=V===""?".":V+":";if(B(L))for(var te=0;te<L.length;te++)V=L[te],Q=W+k(V,te),J+=O(V,F,D,Q,q);else if(te=y(L),typeof te=="function")for(L=te.call(L),te=0;!(V=L.next()).done;)V=V.value,Q=W+k(V,te++),J+=O(V,F,D,Q,q);else if(Q==="object"){if(typeof L.then=="function")return O($(L),F,D,V,q);throw F=String(L),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return J}function U(L,F,D){if(L==null)return L;var V=[],q=0;return O(L,V,"","",function(Q){return F.call(D,Q,q++)}),V}function K(L){if(L._status===-1){var F=L._result;F=F(),F.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=F)}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 F=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(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",L);return}console.error(L)},M={map:U,forEach:function(L,F,D){U(L,function(){F.apply(this,arguments)},D)},count:function(L){var F=0;return U(L,function(){F++}),F},toArray:function(L){return U(L,function(F){return F})||[]},only:function(L){if(!I(L))throw Error("React.Children.only expected to receive a single React element child.");return L}};return Ve.Activity=g,Ve.Children=M,Ve.Component=w,Ve.Fragment=r,Ve.Profiler=s,Ve.PureComponent=E,Ve.StrictMode=a,Ve.Suspense=h,Ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,Ve.__COMPILER_RUNTIME={__proto__:null,c:function(L){return H.H.useMemoCache(L)}},Ve.cache=function(L){return function(){return L.apply(null,arguments)}},Ve.cacheSignal=function(){return null},Ve.cloneElement=function(L,F,D){if(L==null)throw Error("The argument must be a React element, but you passed "+L+".");var V=N({},L.props),q=L.key;if(F!=null)for(Q in F.key!==void 0&&(q=""+F.key),F)!z.call(F,Q)||Q==="key"||Q==="__self"||Q==="__source"||Q==="ref"&&F.ref===void 0||(V[Q]=F[Q]);var Q=arguments.length-2;if(Q===1)V.children=D;else if(1<Q){for(var J=Array(Q),W=0;W<Q;W++)J[W]=arguments[W+2];V.children=J}return Y(L.type,q,V)},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,F,D){var V,q={},Q=null;if(F!=null)for(V in F.key!==void 0&&(Q=""+F.key),F)z.call(F,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(q[V]=F[V]);var J=arguments.length-2;if(J===1)q.children=D;else if(1<J){for(var W=Array(J),te=0;te<J;te++)W[te]=arguments[te+2];q.children=W}if(L&&L.defaultProps)for(V in J=L.defaultProps,J)q[V]===void 0&&(q[V]=J[V]);return Y(L,Q,q)},Ve.createRef=function(){return{current:null}},Ve.forwardRef=function(L){return{$$typeof:d,render:L}},Ve.isValidElement=I,Ve.lazy=function(L){return{$$typeof:p,_payload:{_status:-1,_result:L},_init:K}},Ve.memo=function(L,F){return{$$typeof:f,type:L,compare:F===void 0?null:F}},Ve.startTransition=function(L){var F=H.T,D={};H.T=D;try{var V=L(),q=H.S;q!==null&&q(D,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(R,X)}catch(Q){X(Q)}finally{F!==null&&D.types!==null&&(F.types=D.types),H.T=F}},Ve.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},Ve.use=function(L){return H.H.use(L)},Ve.useActionState=function(L,F,D){return H.H.useActionState(L,F,D)},Ve.useCallback=function(L,F){return H.H.useCallback(L,F)},Ve.useContext=function(L){return H.H.useContext(L)},Ve.useDebugValue=function(){},Ve.useDeferredValue=function(L,F){return H.H.useDeferredValue(L,F)},Ve.useEffect=function(L,F){return H.H.useEffect(L,F)},Ve.useEffectEvent=function(L){return H.H.useEffectEvent(L)},Ve.useId=function(){return H.H.useId()},Ve.useImperativeHandle=function(L,F,D){return H.H.useImperativeHandle(L,F,D)},Ve.useInsertionEffect=function(L,F){return H.H.useInsertionEffect(L,F)},Ve.useLayoutEffect=function(L,F){return H.H.useLayoutEffect(L,F)},Ve.useMemo=function(L,F){return H.H.useMemo(L,F)},Ve.useOptimistic=function(L,F){return H.H.useOptimistic(L,F)},Ve.useReducer=function(L,F,D){return H.H.useReducer(L,F,D)},Ve.useRef=function(L){return H.H.useRef(L)},Ve.useState=function(L){return H.H.useState(L)},Ve.useSyncExternalStore=function(L,F,D){return H.H.useSyncExternalStore(L,F,D)},Ve.useTransition=function(){return H.H.useTransition()},Ve.version="19.2.7",Ve}var ny;function Oo(){return ny||(ny=1,ph.exports=zk()),ph.exports}var ee=Oo();const fa=Mo(ee);var gh={exports:{}},Kl={},xh={exports:{}},bh={};/**
* @license React
* scheduler.production.js
*
@@ -22,7 +22,7 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
- */var ry;function zk(){return ry||(ry=1,(function(e){function t(O,U){var K=O.length;O.push(U);e:for(;0<K;){var X=K-1>>>1,M=O[X];if(0<s(M,U))O[X]=U,O[K]=M,K=X;else break e}}function r(O){return O.length===0?null:O[0]}function a(O){if(O.length===0)return null;var U=O[0],K=O.pop();if(K!==U){O[0]=K;e:for(var X=0,M=O.length,L=M>>>1;X<L;){var F=2*(X+1)-1,D=O[F],V=F+1,q=O[V];if(0>s(D,K))V<M&&0>s(q,D)?(O[X]=q,O[V]=K,X=V):(O[X]=D,O[F]=K,X=F);else if(V<M&&0>s(q,K))O[X]=q,O[V]=K,X=V;else break e}}return U}function s(O,U){var K=O.sortIndex-U.sortIndex;return K!==0?K:O.id-U.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 h=[],f=[],p=1,g=null,b=3,y=!1,_=!1,N=!1,S=!1,w=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function A(O){for(var U=r(f);U!==null;){if(U.callback===null)a(f);else if(U.startTime<=O)a(f),U.sortIndex=U.expirationTime,t(h,U);else break;U=r(f)}}function B(O){if(N=!1,A(O),!_)if(r(h)!==null)_=!0,R||(R=!0,Z());else{var U=r(f);U!==null&&$(B,U.startTime-O)}}var R=!1,H=-1,z=5,Y=-1;function j(){return S?!0:!(e.unstable_now()-Y<z)}function I(){if(S=!1,R){var O=e.unstable_now();Y=O;var U=!0;try{e:{_=!1,N&&(N=!1,C(H),H=-1),y=!0;var K=b;try{t:{for(A(O),g=r(h);g!==null&&!(g.expirationTime>O&&j());){var X=g.callback;if(typeof X=="function"){g.callback=null,b=g.priorityLevel;var M=X(g.expirationTime<=O);if(O=e.unstable_now(),typeof M=="function"){g.callback=M,A(O),U=!0;break t}g===r(h)&&a(h),A(O)}else a(h);g=r(h)}if(g!==null)U=!0;else{var L=r(f);L!==null&&$(B,L.startTime-O),U=!1}}break e}finally{g=null,b=K,y=!1}U=void 0}}finally{U?Z():R=!1}}}var Z;if(typeof E=="function")Z=function(){E(I)};else if(typeof MessageChannel<"u"){var P=new MessageChannel,k=P.port2;P.port1.onmessage=I,Z=function(){k.postMessage(null)}}else Z=function(){w(I,0)};function $(O,U){H=w(function(){O(e.unstable_now())},U)}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"):z=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(O){switch(b){case 1:case 2:case 3:var U=3;break;default:U=b}var K=b;b=U;try{return O()}finally{b=K}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(O,U){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var K=b;b=O;try{return U()}finally{b=K}},e.unstable_scheduleCallback=function(O,U,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 M=-1;break;case 2:M=250;break;case 5:M=1073741823;break;case 4:M=1e4;break;default:M=5e3}return M=K+M,O={id:p++,callback:U,priorityLevel:O,startTime:K,expirationTime:M,sortIndex:-1},K>X?(O.sortIndex=K,t(f,O),r(h)===null&&O===r(f)&&(N?(C(H),H=-1):N=!0,$(B,K-X))):(O.sortIndex=M,t(h,O),_||y||(_=!0,R||(R=!0,Z()))),O},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(O){var U=b;return function(){var K=b;b=U;try{return O.apply(this,arguments)}finally{b=K}}}})(xh)),xh}var iy;function Ik(){return iy||(iy=1,gh.exports=zk()),gh.exports}var bh={exports:{}},Tn={};/**
+ */var ry;function Ik(){return ry||(ry=1,(function(e){function t(O,U){var K=O.length;O.push(U);e:for(;0<K;){var X=K-1>>>1,M=O[X];if(0<s(M,U))O[X]=U,O[K]=M,K=X;else break e}}function r(O){return O.length===0?null:O[0]}function a(O){if(O.length===0)return null;var U=O[0],K=O.pop();if(K!==U){O[0]=K;e:for(var X=0,M=O.length,L=M>>>1;X<L;){var F=2*(X+1)-1,D=O[F],V=F+1,q=O[V];if(0>s(D,K))V<M&&0>s(q,D)?(O[X]=q,O[V]=K,X=V):(O[X]=D,O[F]=K,X=F);else if(V<M&&0>s(q,K))O[X]=q,O[V]=K,X=V;else break e}}return U}function s(O,U){var K=O.sortIndex-U.sortIndex;return K!==0?K:O.id-U.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 h=[],f=[],p=1,g=null,b=3,y=!1,_=!1,N=!1,S=!1,w=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function A(O){for(var U=r(f);U!==null;){if(U.callback===null)a(f);else if(U.startTime<=O)a(f),U.sortIndex=U.expirationTime,t(h,U);else break;U=r(f)}}function B(O){if(N=!1,A(O),!_)if(r(h)!==null)_=!0,R||(R=!0,Z());else{var U=r(f);U!==null&&$(B,U.startTime-O)}}var R=!1,H=-1,z=5,Y=-1;function j(){return S?!0:!(e.unstable_now()-Y<z)}function I(){if(S=!1,R){var O=e.unstable_now();Y=O;var U=!0;try{e:{_=!1,N&&(N=!1,C(H),H=-1),y=!0;var K=b;try{t:{for(A(O),g=r(h);g!==null&&!(g.expirationTime>O&&j());){var X=g.callback;if(typeof X=="function"){g.callback=null,b=g.priorityLevel;var M=X(g.expirationTime<=O);if(O=e.unstable_now(),typeof M=="function"){g.callback=M,A(O),U=!0;break t}g===r(h)&&a(h),A(O)}else a(h);g=r(h)}if(g!==null)U=!0;else{var L=r(f);L!==null&&$(B,L.startTime-O),U=!1}}break e}finally{g=null,b=K,y=!1}U=void 0}}finally{U?Z():R=!1}}}var Z;if(typeof E=="function")Z=function(){E(I)};else if(typeof MessageChannel<"u"){var P=new MessageChannel,k=P.port2;P.port1.onmessage=I,Z=function(){k.postMessage(null)}}else Z=function(){w(I,0)};function $(O,U){H=w(function(){O(e.unstable_now())},U)}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"):z=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(O){switch(b){case 1:case 2:case 3:var U=3;break;default:U=b}var K=b;b=U;try{return O()}finally{b=K}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(O,U){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var K=b;b=O;try{return U()}finally{b=K}},e.unstable_scheduleCallback=function(O,U,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 M=-1;break;case 2:M=250;break;case 5:M=1073741823;break;case 4:M=1e4;break;default:M=5e3}return M=K+M,O={id:p++,callback:U,priorityLevel:O,startTime:K,expirationTime:M,sortIndex:-1},K>X?(O.sortIndex=K,t(f,O),r(h)===null&&O===r(f)&&(N?(C(H),H=-1):N=!0,$(B,K-X))):(O.sortIndex=M,t(h,O),_||y||(_=!0,R||(R=!0,Z()))),O},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(O){var U=b;return function(){var K=b;b=U;try{return O.apply(this,arguments)}finally{b=K}}}})(bh)),bh}var iy;function Bk(){return iy||(iy=1,xh.exports=Ik()),xh.exports}var yh={exports:{}},Tn={};/**
* @license React
* react-dom.production.js
*
@@ -30,7 +30,7 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
- */var ay;function Bk(){if(ay)return Tn;ay=1;var e=Oo();function t(h){var f="https://react.dev/errors/"+h;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)f+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+h+"; visit "+f+" 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(h,f,p){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:g==null?null:""+g,children:h,containerInfo:f,implementation:p}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(h,f){if(h==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return Tn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Tn.createPortal=function(h,f){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return o(h,f,null,p)},Tn.flushSync=function(h){var f=c.T,p=a.p;try{if(c.T=null,a.p=2,h)return h()}finally{c.T=f,a.p=p,a.d.f()}},Tn.preconnect=function(h,f){typeof h=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,a.d.C(h,f))},Tn.prefetchDNS=function(h){typeof h=="string"&&a.d.D(h)},Tn.preinit=function(h,f){if(typeof h=="string"&&f&&typeof f.as=="string"){var p=f.as,g=d(p,f.crossOrigin),b=typeof f.integrity=="string"?f.integrity:void 0,y=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;p==="style"?a.d.S(h,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:g,integrity:b,fetchPriority:y}):p==="script"&&a.d.X(h,{crossOrigin:g,integrity:b,fetchPriority:y,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},Tn.preinitModule=function(h,f){if(typeof h=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var p=d(f.as,f.crossOrigin);a.d.M(h,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&a.d.M(h)},Tn.preload=function(h,f){if(typeof h=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var p=f.as,g=d(p,f.crossOrigin);a.d.L(h,p,{crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},Tn.preloadModule=function(h,f){if(typeof h=="string")if(f){var p=d(f.as,f.crossOrigin);a.d.m(h,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else a.d.m(h)},Tn.requestFormReset=function(h){a.d.r(h)},Tn.unstable_batchedUpdates=function(h,f){return h(f)},Tn.useFormState=function(h,f,p){return c.H.useFormState(h,f,p)},Tn.useFormStatus=function(){return c.H.useHostTransitionStatus()},Tn.version="19.2.7",Tn}var sy;function z_(){if(sy)return bh.exports;sy=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(),bh.exports=Bk(),bh.exports}/**
+ */var ay;function Uk(){if(ay)return Tn;ay=1;var e=Oo();function t(h){var f="https://react.dev/errors/"+h;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)f+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+h+"; visit "+f+" 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(h,f,p){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:g==null?null:""+g,children:h,containerInfo:f,implementation:p}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(h,f){if(h==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return Tn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Tn.createPortal=function(h,f){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return o(h,f,null,p)},Tn.flushSync=function(h){var f=c.T,p=a.p;try{if(c.T=null,a.p=2,h)return h()}finally{c.T=f,a.p=p,a.d.f()}},Tn.preconnect=function(h,f){typeof h=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,a.d.C(h,f))},Tn.prefetchDNS=function(h){typeof h=="string"&&a.d.D(h)},Tn.preinit=function(h,f){if(typeof h=="string"&&f&&typeof f.as=="string"){var p=f.as,g=d(p,f.crossOrigin),b=typeof f.integrity=="string"?f.integrity:void 0,y=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;p==="style"?a.d.S(h,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:g,integrity:b,fetchPriority:y}):p==="script"&&a.d.X(h,{crossOrigin:g,integrity:b,fetchPriority:y,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},Tn.preinitModule=function(h,f){if(typeof h=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var p=d(f.as,f.crossOrigin);a.d.M(h,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&a.d.M(h)},Tn.preload=function(h,f){if(typeof h=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var p=f.as,g=d(p,f.crossOrigin);a.d.L(h,p,{crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},Tn.preloadModule=function(h,f){if(typeof h=="string")if(f){var p=d(f.as,f.crossOrigin);a.d.m(h,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else a.d.m(h)},Tn.requestFormReset=function(h){a.d.r(h)},Tn.unstable_batchedUpdates=function(h,f){return h(f)},Tn.useFormState=function(h,f,p){return c.H.useFormState(h,f,p)},Tn.useFormStatus=function(){return c.H.useHostTransitionStatus()},Tn.version="19.2.7",Tn}var sy;function I_(){if(sy)return yh.exports;sy=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(),yh.exports=Uk(),yh.exports}/**
* @license React
* react-dom-client.production.js
*
@@ -38,432 +38,432 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
- */var ly;function Uk(){if(ly)return Kl;ly=1;var e=Ik(),t=Oo(),r=z_();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 h(n){if(o(n)!==n)throw Error(a(188))}function f(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 x=l.return;if(x===null)break;var v=x.alternate;if(v===null){if(u=x.return,u!==null){l=u;continue}break}if(x.child===v.child){for(v=x.child;v;){if(v===l)return h(x),n;if(v===u)return h(x),i;v=v.sibling}throw Error(a(188))}if(l.return!==u.return)l=x,u=v;else{for(var T=!1,G=x.child;G;){if(G===l){T=!0,l=x,u=v;break}if(G===u){T=!0,u=x,l=v;break}G=G.sibling}if(!T){for(G=v.child;G;){if(G===l){T=!0,l=v,u=x;break}if(G===u){T=!0,u=v,l=x;break}G=G.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:i}function p(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n;for(n=n.child;n!==null;){if(i=p(n),i!==null)return i;n=n.sibling}return null}var g=Object.assign,b=Symbol.for("react.element"),y=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"),C=Symbol.for("react.consumer"),E=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),j=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function Z(n){return n===null||typeof n!="object"?null:(n=I&&n[I]||n["@@iterator"],typeof n=="function"?n:null)}var P=Symbol.for("react.client.reference");function k(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===P?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 B:return"Suspense";case R:return"SuspenseList";case Y:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case _:return"Portal";case E:return n.displayName||"Context";case C:return(n._context.displayName||"Context")+".Consumer";case A:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case H:return i=n.displayName||null,i!==null?i:k(n.type)||"Memo";case z:i=n._payload,n=n._init;try{return k(n(i))}catch{}}return null}var $=Array.isArray,O=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},X=[],M=-1;function L(n){return{current:n}}function F(n){0>M||(n.current=X[M],X[M]=null,M--)}function D(n,i){M++,X[M]=n.current,n.current=i}var V=L(null),q=L(null),Q=L(null),J=L(null);function W(n,i){switch(D(Q,i),D(q,n),D(V,null),i.nodeType){case 9:case 11:n=(n=i.documentElement)&&(n=n.namespaceURI)?w0(n):0;break;default:if(n=i.tagName,i=i.namespaceURI)i=w0(i),n=E0(i,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}F(V),D(V,n)}function te(){F(V),F(q),F(Q)}function oe(n){n.memoizedState!==null&&D(J,n);var i=V.current,l=E0(i,n.type);i!==l&&(D(q,n),D(V,l))}function fe(n){q.current===n&&(F(V),F(q)),J.current===n&&(F(J),Fl._currentValue=K)}var xe,we;function Ne(n){if(xe===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);xe=i&&i[1]||"",we=-1<l.stack.indexOf(`
+ */var ly;function Hk(){if(ly)return Kl;ly=1;var e=Bk(),t=Oo(),r=I_();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 h(n){if(o(n)!==n)throw Error(a(188))}function f(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 x=l.return;if(x===null)break;var v=x.alternate;if(v===null){if(u=x.return,u!==null){l=u;continue}break}if(x.child===v.child){for(v=x.child;v;){if(v===l)return h(x),n;if(v===u)return h(x),i;v=v.sibling}throw Error(a(188))}if(l.return!==u.return)l=x,u=v;else{for(var T=!1,G=x.child;G;){if(G===l){T=!0,l=x,u=v;break}if(G===u){T=!0,u=x,l=v;break}G=G.sibling}if(!T){for(G=v.child;G;){if(G===l){T=!0,l=v,u=x;break}if(G===u){T=!0,u=v,l=x;break}G=G.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:i}function p(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n;for(n=n.child;n!==null;){if(i=p(n),i!==null)return i;n=n.sibling}return null}var g=Object.assign,b=Symbol.for("react.element"),y=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"),C=Symbol.for("react.consumer"),E=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),j=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function Z(n){return n===null||typeof n!="object"?null:(n=I&&n[I]||n["@@iterator"],typeof n=="function"?n:null)}var P=Symbol.for("react.client.reference");function k(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===P?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 B:return"Suspense";case R:return"SuspenseList";case Y:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case _:return"Portal";case E:return n.displayName||"Context";case C:return(n._context.displayName||"Context")+".Consumer";case A:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case H:return i=n.displayName||null,i!==null?i:k(n.type)||"Memo";case z:i=n._payload,n=n._init;try{return k(n(i))}catch{}}return null}var $=Array.isArray,O=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},X=[],M=-1;function L(n){return{current:n}}function F(n){0>M||(n.current=X[M],X[M]=null,M--)}function D(n,i){M++,X[M]=n.current,n.current=i}var V=L(null),q=L(null),Q=L(null),J=L(null);function W(n,i){switch(D(Q,i),D(q,n),D(V,null),i.nodeType){case 9:case 11:n=(n=i.documentElement)&&(n=n.namespaceURI)?w0(n):0;break;default:if(n=i.tagName,i=i.namespaceURI)i=w0(i),n=E0(i,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}F(V),D(V,n)}function te(){F(V),F(q),F(Q)}function oe(n){n.memoizedState!==null&&D(J,n);var i=V.current,l=E0(i,n.type);i!==l&&(D(q,n),D(V,l))}function fe(n){q.current===n&&(F(V),F(q)),J.current===n&&(F(J),Fl._currentValue=K)}var xe,we;function Ne(n){if(xe===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);xe=i&&i[1]||"",we=-1<l.stack.indexOf(`
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+xe+n+we}var De=!1;function $e(n,i){if(!n||De)return"";De=!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 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 x=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");x&&x.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=u.DetermineComponentFrameRoot(),T=v[0],G=v[1];if(T&&G){var ne=T.split(`
`),le=G.split(`
`);for(x=u=0;u<ne.length&&!ne[u].includes("DetermineComponentFrameRoot");)u++;for(;x<le.length&&!le[x].includes("DetermineComponentFrameRoot");)x++;if(u===ne.length||x===le.length)for(u=ne.length-1,x=le.length-1;1<=u&&0<=x&&ne[u]!==le[x];)x--;for(;1<=u&&0<=x;u--,x--)if(ne[u]!==le[x]){if(u!==1||x!==1)do if(u--,x--,0>x||ne[u]!==le[x]){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<=x);break}}}finally{De=!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 Xt=Object.prototype.hasOwnProperty,Ft=e.unstable_scheduleCallback,Kt=e.unstable_cancelCallback,Yn=e.unstable_shouldYield,Nn=e.unstable_requestPaint,ct=e.unstable_now,It=e.unstable_getCurrentPriorityLevel,ue=e.unstable_ImmediatePriority,be=e.unstable_UserBlockingPriority,Oe=e.unstable_NormalPriority,Fe=e.unstable_LowPriority,Ze=e.unstable_IdlePriority,cn=e.log,Sn=e.unstable_setDisableYieldValue,Zt=null,At=null;function Jt(n){if(typeof cn=="function"&&Sn(n),At&&typeof At.setStrictMode=="function")try{At.setStrictMode(Zt,n)}catch{}}var ut=Math.clz32?Math.clz32:Si,In=Math.log,un=Math.LN2;function Si(n){return n>>>=0,n===0?32:31-(In(n)/un|0)|0}var nt=256,Xn=262144,On=4194304;function mn(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 x=0,v=n.suspendedLanes,T=n.pingedLanes;n=n.warmLanes;var G=u&134217727;return G!==0?(u=G&~v,u!==0?x=mn(u):(T&=G,T!==0?x=mn(T):l||(l=G&~n,l!==0&&(x=mn(l))))):(G=u&~v,G!==0?x=mn(G):T!==0?x=mn(T):l||(l=u&~n,l!==0&&(x=mn(l)))),x===0?0:i!==0&&i!==x&&(i&v)===0&&(v=x&-x,l=i&-i,v>=l||v===32&&(l&4194048)!==0)?i:x}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=On;return On<<=1,(On&62914560)===0&&(On=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 Me(n,i,l,u,x,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 G=n.entanglements,ne=n.expirationTimes,le=n.hiddenUpdates;for(l=T&~l;0<l;){var he=31-ut(l),ge=1<<he;G[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&&x===0&&n.tag!==0&&(n.suspendedLanes|=v&~(T&~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),x=1<<u;x&i|n[u]&i&&(n[u]|=i),l&=~x}}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 vr(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function ki(){var n=U.p;return n!==0?n:(n=window.event,n===void 0?32:V0(n.type))}function Ci(n,i){var l=U.p;try{return U.p=n,i()}finally{U.p=l}}var lr=Math.random().toString(36).slice(2),Ut="__reactFiber$"+lr,pn="__reactProps$"+lr,_r="__reactContainer$"+lr,Ti="__reactEvents$"+lr,ga="__reactListeners$"+lr,Ai="__reactHandles$"+lr,ts="__reactResources$"+lr,Wr="__reactMarker$"+lr;function xa(n){delete n[Ut],delete n[pn],delete n[Ti],delete n[ga],delete n[Ai]}function bn(n){var i=n[Ut];if(i)return i;for(var l=n.parentNode;l;){if(i=l[_r]||l[Ut]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(n=M0(n);n!==null;){if(l=n[Ut])return l;n=M0(n)}return i}n=l,l=n.parentNode}return null}function wr(n){if(n=n[Ut]||n[_r]){var i=n.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return n}return null}function Er(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n.stateNode;throw Error(a(33))}function Br(n){var i=n[ts];return i||(i=n[ts]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Gt(n){n[Wr]=!0}var ns=new Set,Jr={};function Nr(n,i){ye(n,i),ye(n+"Capture",i)}function ye(n,i){for(Jr[n]=i,n=0;n<i.length;n++)ns.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 Xt.call(ft,n)?!0:Xt.call(Qe,n)?!1:Le.test(n)?ft[n]=!0:(Qe[n]=!0,!1)}function gn(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 Rn(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 kn(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 jn(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function rs(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 x=u.get,v=u.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return x.call(this)},set:function(T){l=""+T,v.call(this,T)}}),Object.defineProperty(n,i,{enumerable:u.enumerable}),{getValue:function(){return l},setValue:function(T){l=""+T},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function Mi(n){if(!n._valueTracker){var i=jn(n)?"checked":"value";n._valueTracker=rs(n,i,""+n[i])}}function Ur(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var l=i.getValue(),u="";return n&&(u=jn(n)?n.checked?"true":"false":n.value),n=u,n!==l?(i.setValue(n),!0):!1}function Oi(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 is=/[\n"\\]/g;function Cn(n){return n.replace(is,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function ba(n,i,l,u,x,v,T,G){n.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?n.type=T:n.removeAttribute("type"),i!=null?T==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+_t(i)):n.value!==""+_t(i)&&(n.value=""+_t(i)):T!=="submit"&&T!=="reset"||n.removeAttribute("value"),i!=null?Ri(n,T,_t(i)):l!=null?Ri(n,T,_t(l)):u!=null&&n.removeAttribute("value"),x==null&&v!=null&&(n.defaultChecked=!!v),x!=null&&(n.checked=x&&typeof x!="function"&&typeof x!="symbol"),G!=null&&typeof G!="function"&&typeof G!="symbol"&&typeof G!="boolean"?n.name=""+_t(G):n.removeAttribute("name")}function Sr(n,i,l,u,x,v,T,G){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)){Mi(n);return}l=l!=null?""+_t(l):"",i=i!=null?""+_t(i):l,G||i===n.value||(n.value=i),n.defaultValue=i}u=u??x,u=typeof u!="function"&&typeof u!="symbol"&&!!u,n.checked=G?n.checked:!!u,n.defaultChecked=!!u,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(n.name=T),Mi(n)}function Ri(n,i,l){i==="number"&&Oi(n.ownerDocument)===n||n.defaultValue===""+l||(n.defaultValue=""+l)}function dn(n,i,l,u){if(n=n.options,i){i={};for(var x=0;x<l.length;x++)i["$"+l[x]]=!0;for(l=0;l<n.length;l++)x=i.hasOwnProperty("$"+n[l].value),n[l].selected!==x&&(n[l].selected=x),x&&u&&(n[l].defaultSelected=!0)}else{for(l=""+_t(l),i=null,x=0;x<n.length;x++){if(n[x].value===l){n[x].selected=!0,u&&(n[x].defaultSelected=!0);return}i!==null||n[x].disabled||(i=n[x])}i!==null&&(i.selected=!0)}}function ya(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 as(n,i,l,u){if(i==null){if(u!=null){if(l!=null)throw Error(a(92));if($(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),Mi(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 Po=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 en(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||Po.has(i)?i==="float"?n.cssFloat=l:n[i]=(""+l).trim():n[i]=l+"px"}function xt(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 x in i)u=i[x],i.hasOwnProperty(x)&&l[x]!==u&&en(n,x,u)}else for(var v in i)i.hasOwnProperty(v)&&en(n,v,i[v])}function ji(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"]]),al=/^[\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 al.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 or(n){var i=wr(n);if(i&&(n=i.stateNode)){var l=n[pn]||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="'+Cn(""+i)+'"][type="radio"]'),i=0;i<l.length;i++){var u=l[i];if(u!==n&&u.form===n.form){var x=u[pn]||null;if(!x)throw Error(a(90));ba(u,x.value,x.defaultValue,x.defaultValue,x.checked,x.defaultChecked,x.type,x.name)}}for(i=0;i<l.length;i++)u=l[i],u.form===n.form&&Ur(u)}break e;case"textarea":ya(n,l.value,l.defaultValue);break e;case"select":i=l.value,i!=null&&dn(n,!!l.multiple,i,!1)}}}var sl=!1;function Fo(n,i,l){if(sl)return n(i,l);sl=!0;try{var u=n(i);return u}finally{if(sl=!1,(rt!==null||$t!==null)&&(Oc(),rt&&(i=rt,n=$t,$t=rt=null,or(i),n)))for(i=0;i<n.length;i++)or(n[i])}}function ll(n,i){var l=n.stateNode;if(l===null)return null;var u=l[pn]||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"),fd=!1;if(ti)try{var ol={};Object.defineProperty(ol,"passive",{get:function(){fd=!0}}),window.addEventListener("test",ol,ol),window.removeEventListener("test",ol,ol)}catch{fd=!1}var Li=null,hd=null,Go=null;function Eg(){if(Go)return Go;var n,i=hd,l=i.length,u,x="value"in Li?Li.value:Li.textContent,v=x.length;for(n=0;n<l&&i[n]===x[n];n++);var T=l-n;for(u=1;u<=T&&i[l-u]===x[v-u];u++);return Go=x.slice(n,1<u?1-u:void 0)}function Vo(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 Yo(){return!0}function Ng(){return!1}function Bn(n){function i(l,u,x,v,T){this._reactName=l,this._targetInst=x,this.type=u,this.nativeEvent=v,this.target=T,this.currentTarget=null;for(var G in n)n.hasOwnProperty(G)&&(l=n[G],this[G]=l?l(v):v[G]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?Yo:Ng,this.isPropagationStopped=Ng,this}return g(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=Yo)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Yo)},persist:function(){},isPersistent:Yo}),i}var va={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xo=Bn(va),cl=g({},va,{view:0,detail:0}),O2=Bn(cl),md,pd,ul,Ko=g({},cl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xd,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!==ul&&(ul&&n.type==="mousemove"?(md=n.screenX-ul.screenX,pd=n.screenY-ul.screenY):pd=md=0,ul=n),md)},movementY:function(n){return"movementY"in n?n.movementY:pd}}),Sg=Bn(Ko),R2=g({},Ko,{dataTransfer:0}),j2=Bn(R2),D2=g({},cl,{relatedTarget:0}),gd=Bn(D2),L2=g({},va,{animationName:0,elapsedTime:0,pseudoElement:0}),z2=Bn(L2),I2=g({},va,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),B2=Bn(I2),U2=g({},va,{data:0}),kg=Bn(U2),H2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$2={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"},q2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function P2(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=q2[n])?!!i[n]:!1}function xd(){return P2}var F2=g({},cl,{key:function(n){if(n.key){var i=H2[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=Vo(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?$2[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xd,charCode:function(n){return n.type==="keypress"?Vo(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Vo(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),G2=Bn(F2),V2=g({},Ko,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cg=Bn(V2),Y2=g({},cl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xd}),X2=Bn(Y2),K2=g({},va,{propertyName:0,elapsedTime:0,pseudoElement:0}),Z2=Bn(K2),Q2=g({},Ko,{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}),W2=Bn(Q2),J2=g({},va,{newState:0,oldState:0}),eS=Bn(J2),tS=[9,13,27,32],bd=ti&&"CompositionEvent"in window,dl=null;ti&&"documentMode"in document&&(dl=document.documentMode);var nS=ti&&"TextEvent"in window&&!dl,Tg=ti&&(!bd||dl&&8<dl&&11>=dl),Ag=" ",Mg=!1;function Og(n,i){switch(n){case"keyup":return tS.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rg(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var ss=!1;function rS(n,i){switch(n){case"compositionend":return Rg(i);case"keypress":return i.which!==32?null:(Mg=!0,Ag);case"textInput":return n=i.data,n===Ag&&Mg?null:n;default:return null}}function iS(n,i){if(ss)return n==="compositionend"||!bd&&Og(n,i)?(n=Eg(),Go=hd=Li=null,ss=!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 Tg&&i.locale!=="ko"?null:i.data;default:return null}}var aS={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 jg(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!aS[n.type]:i==="textarea"}function Dg(n,i,l,u){rt?$t?$t.push(u):$t=[u]:rt=u,i=Bc(i,"onChange"),0<i.length&&(l=new Xo("onChange","change",null,l,u),n.push({event:l,listeners:i}))}var fl=null,hl=null;function sS(n){g0(n,0)}function Zo(n){var i=Er(n);if(Ur(i))return n}function Lg(n,i){if(n==="change")return i}var zg=!1;if(ti){var yd;if(ti){var vd="oninput"in document;if(!vd){var Ig=document.createElement("div");Ig.setAttribute("oninput","return;"),vd=typeof Ig.oninput=="function"}yd=vd}else yd=!1;zg=yd&&(!document.documentMode||9<document.documentMode)}function Bg(){fl&&(fl.detachEvent("onpropertychange",Ug),hl=fl=null)}function Ug(n){if(n.propertyName==="value"&&Zo(hl)){var i=[];Dg(i,hl,n,Ye(n)),Fo(sS,i)}}function lS(n,i,l){n==="focusin"?(Bg(),fl=i,hl=l,fl.attachEvent("onpropertychange",Ug)):n==="focusout"&&Bg()}function oS(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Zo(hl)}function cS(n,i){if(n==="click")return Zo(i)}function uS(n,i){if(n==="input"||n==="change")return Zo(i)}function dS(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var Kn=typeof Object.is=="function"?Object.is:dS;function ml(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 x=l[u];if(!Xt.call(i,x)||!Kn(n[x],i[x]))return!1}return!0}function Hg(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function $g(n,i){var l=Hg(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=Hg(l)}}function qg(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?qg(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function Pg(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var i=Oi(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=Oi(n.document)}return i}function _d(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 fS=ti&&"documentMode"in document&&11>=document.documentMode,ls=null,wd=null,pl=null,Ed=!1;function Fg(n,i,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ed||ls==null||ls!==Oi(u)||(u=ls,"selectionStart"in u&&_d(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}),pl&&ml(pl,u)||(pl=u,u=Bc(wd,"onSelect"),0<u.length&&(i=new Xo("onSelect","select",null,i,l),n.push({event:i,listeners:u}),i.target=ls)))}function _a(n,i){var l={};return l[n.toLowerCase()]=i.toLowerCase(),l["Webkit"+n]="webkit"+i,l["Moz"+n]="moz"+i,l}var os={animationend:_a("Animation","AnimationEnd"),animationiteration:_a("Animation","AnimationIteration"),animationstart:_a("Animation","AnimationStart"),transitionrun:_a("Transition","TransitionRun"),transitionstart:_a("Transition","TransitionStart"),transitioncancel:_a("Transition","TransitionCancel"),transitionend:_a("Transition","TransitionEnd")},Nd={},Gg={};ti&&(Gg=document.createElement("div").style,"AnimationEvent"in window||(delete os.animationend.animation,delete os.animationiteration.animation,delete os.animationstart.animation),"TransitionEvent"in window||delete os.transitionend.transition);function wa(n){if(Nd[n])return Nd[n];if(!os[n])return n;var i=os[n],l;for(l in i)if(i.hasOwnProperty(l)&&l in Gg)return Nd[n]=i[l];return n}var Vg=wa("animationend"),Yg=wa("animationiteration"),Xg=wa("animationstart"),hS=wa("transitionrun"),mS=wa("transitionstart"),pS=wa("transitioncancel"),Kg=wa("transitionend"),Zg=new Map,Sd="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(" ");Sd.push("scrollEnd");function kr(n,i){Zg.set(n,i),Nr(i,[n])}var Qo=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)},cr=[],cs=0,kd=0;function Wo(){for(var n=cs,i=kd=cs=0;i<n;){var l=cr[i];cr[i++]=null;var u=cr[i];cr[i++]=null;var x=cr[i];cr[i++]=null;var v=cr[i];if(cr[i++]=null,u!==null&&x!==null){var T=u.pending;T===null?x.next=x:(x.next=T.next,T.next=x),u.pending=x}v!==0&&Qg(l,x,v)}}function Jo(n,i,l,u){cr[cs++]=n,cr[cs++]=i,cr[cs++]=l,cr[cs++]=u,kd|=u,n.lanes|=u,n=n.alternate,n!==null&&(n.lanes|=u)}function Cd(n,i,l,u){return Jo(n,i,l,u),ec(n)}function Ea(n,i){return Jo(n,null,null,i),ec(n)}function Qg(n,i,l){n.lanes|=l;var u=n.alternate;u!==null&&(u.lanes|=l);for(var x=!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||(x=!0)),n=v,v=v.return;return n.tag===3?(v=n.stateNode,x&&i!==null&&(x=31-ut(l),n=v.hiddenUpdates,u=n[x],u===null?n[x]=[i]:u.push(i),i.lane=l|536870912),v):null}function ec(n){if(50<Il)throw Il=0,If=null,Error(a(185));for(var i=n.return;i!==null;)n=i,i=n.return;return n.tag===3?n.stateNode:null}var us={};function gS(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 gS(n,i,l,u)}function Td(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 Wg(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 tc(n,i,l,u,x,v){var T=0;if(u=n,typeof n=="function")Td(n)&&(T=1);else if(typeof n=="string")T=_k(n,l,V.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case Y:return n=Zn(31,l,i,x),n.elementType=Y,n.lanes=v,n;case N:return Na(l.children,x,v,i);case S:T=8,x|=24;break;case w:return n=Zn(12,l,i,x|2),n.elementType=w,n.lanes=v,n;case B:return n=Zn(13,l,i,x),n.elementType=B,n.lanes=v,n;case R:return n=Zn(19,l,i,x),n.elementType=R,n.lanes=v,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case E:T=10;break e;case C:T=9;break e;case A:T=11;break e;case H:T=14;break e;case z:T=16,u=null;break e}T=29,l=Error(a(130,n===null?"null":typeof n,"")),u=null}return i=Zn(T,l,i,x),i.elementType=n,i.type=u,i.lanes=v,i}function Na(n,i,l,u){return n=Zn(7,n,u,i),n.lanes=l,n}function Ad(n,i,l){return n=Zn(6,n,null,i),n.lanes=l,n}function Jg(n){var i=Zn(18,null,null,0);return i.stateNode=n,i}function Md(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 ex=new WeakMap;function ur(n,i){if(typeof n=="object"&&n!==null){var l=ex.get(n);return l!==void 0?l:(i={value:n,source:i,stack:Rt(i)},ex.set(n,i),i)}return{value:n,source:i,stack:Rt(i)}}var ds=[],fs=0,nc=null,gl=0,dr=[],fr=0,zi=null,Hr=1,$r="";function ri(n,i){ds[fs++]=gl,ds[fs++]=nc,nc=n,gl=i}function tx(n,i,l){dr[fr++]=Hr,dr[fr++]=$r,dr[fr++]=zi,zi=n;var u=Hr;n=$r;var x=32-ut(u)-1;u&=~(1<<x),l+=1;var v=32-ut(i)+x;if(30<v){var T=x-x%5;v=(u&(1<<T)-1).toString(32),u>>=T,x-=T,Hr=1<<32-ut(i)+x|l<<x|u,$r=v+n}else Hr=1<<v|l<<x|u,$r=n}function Od(n){n.return!==null&&(ri(n,1),tx(n,1,0))}function Rd(n){for(;n===nc;)nc=ds[--fs],ds[fs]=null,gl=ds[--fs],ds[fs]=null;for(;n===zi;)zi=dr[--fr],dr[fr]=null,$r=dr[--fr],dr[fr]=null,Hr=dr[--fr],dr[fr]=null}function nx(n,i){dr[fr++]=Hr,dr[fr++]=$r,dr[fr++]=zi,Hr=i.id,$r=i.overflow,zi=n}var yn=null,jt=null,lt=!1,Ii=null,hr=!1,jd=Error(a(519));function Bi(n){var i=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw xl(ur(i,n)),jd}function rx(n){var i=n.stateNode,l=n.type,u=n.memoizedProps;switch(i[Ut]=n,i[pn]=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<Ul.length;l++)et(Ul[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),Sr(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),as(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||v0(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||Bi(n,!0)}function ix(n){for(yn=n.return;yn;)switch(yn.tag){case 5:case 31:case 13:hr=!1;return;case 27:case 3:hr=!0;return;default:yn=yn.return}}function hs(n){if(n!==yn)return!1;if(!lt)return ix(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")||Wf(n.type,n.memoizedProps)),l=!l),l&&jt&&Bi(n),ix(n),i===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(317));jt=A0(n)}else if(i===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(317));jt=A0(n)}else i===27?(i=jt,Wi(n.type)?(n=rh,rh=null,jt=n):jt=i):jt=yn?pr(n.stateNode.nextSibling):null;return!0}function Sa(){jt=yn=null,lt=!1}function Dd(){var n=Ii;return n!==null&&(qn===null?qn=n:qn.push.apply(qn,n),Ii=null),n}function xl(n){Ii===null?Ii=[n]:Ii.push(n)}var Ld=L(null),ka=null,ii=null;function Ui(n,i,l){D(Ld,i._currentValue),i._currentValue=l}function ai(n){n._currentValue=Ld.current,F(Ld)}function zd(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 Id(n,i,l,u){var x=n.child;for(x!==null&&(x.return=n);x!==null;){var v=x.dependencies;if(v!==null){var T=x.child;v=v.firstContext;e:for(;v!==null;){var G=v;v=x;for(var ne=0;ne<i.length;ne++)if(G.context===i[ne]){v.lanes|=l,G=v.alternate,G!==null&&(G.lanes|=l),zd(v.return,l,n),u||(T=null);break e}v=G.next}}else if(x.tag===18){if(T=x.return,T===null)throw Error(a(341));T.lanes|=l,v=T.alternate,v!==null&&(v.lanes|=l),zd(T,l,n),T=null}else T=x.child;if(T!==null)T.return=x;else for(T=x;T!==null;){if(T===n){T=null;break}if(x=T.sibling,x!==null){x.return=T.return,T=x;break}T=T.return}x=T}}function ms(n,i,l,u){n=null;for(var x=i,v=!1;x!==null;){if(!v){if((x.flags&524288)!==0)v=!0;else if((x.flags&262144)!==0)break}if(x.tag===10){var T=x.alternate;if(T===null)throw Error(a(387));if(T=T.memoizedProps,T!==null){var G=x.type;Kn(x.pendingProps.value,T.value)||(n!==null?n.push(G):n=[G])}}else if(x===J.current){if(T=x.alternate,T===null)throw Error(a(387));T.memoizedState.memoizedState!==x.memoizedState.memoizedState&&(n!==null?n.push(Fl):n=[Fl])}x=x.return}n!==null&&Id(i,n,l,u),i.flags|=262144}function rc(n){for(n=n.firstContext;n!==null;){if(!Kn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Ca(n){ka=n,ii=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function vn(n){return ax(ka,n)}function ic(n,i){return ka===null&&Ca(n),ax(n,i)}function ax(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 xS=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()})}},bS=e.unstable_scheduleCallback,yS=e.unstable_NormalPriority,tn={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Bd(){return{controller:new xS,data:new Map,refCount:0}}function bl(n){n.refCount--,n.refCount===0&&bS(yS,function(){n.controller.abort()})}var yl=null,Ud=0,ps=0,gs=null;function vS(n,i){if(yl===null){var l=yl=[];Ud=0,ps=Pf(),gs={status:"pending",value:void 0,then:function(u){l.push(u)}}}return Ud++,i.then(sx,sx),i}function sx(){if(--Ud===0&&yl!==null){gs!==null&&(gs.status="fulfilled");var n=yl;yl=null,ps=0,gs=null;for(var i=0;i<n.length;i++)(0,n[i])()}}function _S(n,i){var l=[],u={status:"pending",value:null,reason:null,then:function(x){l.push(x)}};return n.then(function(){u.status="fulfilled",u.value=i;for(var x=0;x<l.length;x++)(0,l[x])(i)},function(x){for(u.status="rejected",u.reason=x,x=0;x<l.length;x++)(0,l[x])(void 0)}),u}var lx=O.S;O.S=function(n,i){Fb=ct(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&vS(n,i),lx!==null&&lx(n,i)};var Ta=L(null);function Hd(){var n=Ta.current;return n!==null?n:kt.pooledCache}function ac(n,i){i===null?D(Ta,Ta.current):D(Ta,i.pool)}function ox(){var n=Hd();return n===null?null:{parent:tn._currentValue,pool:n}}var xs=Error(a(460)),$d=Error(a(474)),sc=Error(a(542)),lc={then:function(){}};function cx(n){return n=n.status,n==="fulfilled"||n==="rejected"}function ux(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,fx(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 x=i;x.status="fulfilled",x.value=u}},function(u){if(i.status==="pending"){var x=i;x.status="rejected",x.reason=u}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,fx(n),n}throw Ma=i,xs}}function Aa(n){try{var i=n._init;return i(n._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Ma=l,xs):l}}var Ma=null;function dx(){if(Ma===null)throw Error(a(459));var n=Ma;return Ma=null,n}function fx(n){if(n===xs||n===sc)throw Error(a(483))}var bs=null,vl=0;function oc(n){var i=vl;return vl+=1,bs===null&&(bs=[]),ux(bs,n,i)}function _l(n,i){i=i.props.ref,n.ref=i!==void 0?i:null}function cc(n,i){throw i.$$typeof===b?Error(a(525)):(n=Object.prototype.toString.call(i),Error(a(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n)))}function hx(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 x(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 T(ae){return n&&ae.alternate===null&&(ae.flags|=67108866),ae}function G(ae,ie,se,pe){return ie===null||ie.tag!==6?(ie=Ad(se,ae.mode,pe),ie.return=ae,ie):(ie=x(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===z&&Aa(Ie)===ie.type)?(ie=x(ie,se.props),_l(ie,se),ie.return=ae,ie):(ie=tc(se.type,se.key,se.props,null,ae.mode,pe),_l(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=Md(se,ae.mode,pe),ie.return=ae,ie):(ie=x(ie,se.children||[]),ie.return=ae,ie)}function he(ae,ie,se,pe,Ie){return ie===null||ie.tag!==7?(ie=Na(se,ae.mode,pe,Ie),ie.return=ae,ie):(ie=x(ie,se),ie.return=ae,ie)}function ge(ae,ie,se){if(typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint")return ie=Ad(""+ie,ae.mode,se),ie.return=ae,ie;if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case y:return se=tc(ie.type,ie.key,ie.props,null,ae.mode,se),_l(se,ie),se.return=ae,se;case _:return ie=Md(ie,ae.mode,se),ie.return=ae,ie;case z:return ie=Aa(ie),ge(ae,ie,se)}if($(ie)||Z(ie))return ie=Na(ie,ae.mode,se,null),ie.return=ae,ie;if(typeof ie.then=="function")return ge(ae,oc(ie),se);if(ie.$$typeof===E)return ge(ae,ic(ae,ie),se);cc(ae,ie)}return null}function ce(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:G(ae,ie,""+se,pe);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case y:return se.key===Ie?ne(ae,ie,se,pe):null;case _:return se.key===Ie?le(ae,ie,se,pe):null;case z:return se=Aa(se),ce(ae,ie,se,pe)}if($(se)||Z(se))return Ie!==null?null:he(ae,ie,se,pe,null);if(typeof se.then=="function")return ce(ae,ie,oc(se),pe);if(se.$$typeof===E)return ce(ae,ie,ic(ae,se),pe);cc(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,G(ie,ae,""+pe,Ie);if(typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case y: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 z:return pe=Aa(pe),de(ae,ie,se,pe,Ie)}if($(pe)||Z(pe))return ae=ae.get(se)||null,he(ie,ae,pe,Ie,null);if(typeof pe.then=="function")return de(ae,ie,se,oc(pe),Ie);if(pe.$$typeof===E)return de(ae,ie,se,ic(ie,pe),Ie);cc(ie,pe)}return null}function Ae(ae,ie,se,pe){for(var Ie=null,ht=null,je=ie,Ke=ie=0,at=null;je!==null&&Ke<se.length;Ke++){je.index>Ke?(at=je,je=null):at=je.sibling;var mt=ce(ae,je,se[Ke],pe);if(mt===null){je===null&&(je=at);break}n&&je&&mt.alternate===null&&i(ae,je),ie=v(mt,ie,Ke),ht===null?Ie=mt:ht.sibling=mt,ht=mt,je=at}if(Ke===se.length)return l(ae,je),lt&&ri(ae,Ke),Ie;if(je===null){for(;Ke<se.length;Ke++)je=ge(ae,se[Ke],pe),je!==null&&(ie=v(je,ie,Ke),ht===null?Ie=je:ht.sibling=je,ht=je);return lt&&ri(ae,Ke),Ie}for(je=u(je);Ke<se.length;Ke++)at=de(je,ae,Ke,se[Ke],pe),at!==null&&(n&&at.alternate!==null&&je.delete(at.key===null?Ke:at.key),ie=v(at,ie,Ke),ht===null?Ie=at:ht.sibling=at,ht=at);return n&&je.forEach(function(ra){return i(ae,ra)}),lt&&ri(ae,Ke),Ie}function He(ae,ie,se,pe){if(se==null)throw Error(a(151));for(var Ie=null,ht=null,je=ie,Ke=ie=0,at=null,mt=se.next();je!==null&&!mt.done;Ke++,mt=se.next()){je.index>Ke?(at=je,je=null):at=je.sibling;var ra=ce(ae,je,mt.value,pe);if(ra===null){je===null&&(je=at);break}n&&je&&ra.alternate===null&&i(ae,je),ie=v(ra,ie,Ke),ht===null?Ie=ra:ht.sibling=ra,ht=ra,je=at}if(mt.done)return l(ae,je),lt&&ri(ae,Ke),Ie;if(je===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(je=u(je);!mt.done;Ke++,mt=se.next())mt=de(je,ae,Ke,mt.value,pe),mt!==null&&(n&&mt.alternate!==null&&je.delete(mt.key===null?Ke:mt.key),ie=v(mt,ie,Ke),ht===null?Ie=mt:ht.sibling=mt,ht=mt);return n&&je.forEach(function(Rk){return i(ae,Rk)}),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 y: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=x(ie,se.props.children),pe.return=ae,ae=pe;break e}}else if(ie.elementType===Ie||typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===z&&Aa(Ie)===ie.type){l(ae,ie.sibling),pe=x(ie,se.props),_l(pe,se),pe.return=ae,ae=pe;break e}l(ae,ie);break}else i(ae,ie);ie=ie.sibling}se.type===N?(pe=Na(se.props.children,ae.mode,pe,se.key),pe.return=ae,ae=pe):(pe=tc(se.type,se.key,se.props,null,ae.mode,pe),_l(pe,se),pe.return=ae,ae=pe)}return T(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=x(ie,se.children||[]),pe.return=ae,ae=pe;break e}else{l(ae,ie);break}else i(ae,ie);ie=ie.sibling}pe=Md(se,ae.mode,pe),pe.return=ae,ae=pe}return T(ae);case z:return se=Aa(se),Nt(ae,ie,se,pe)}if($(se))return Ae(ae,ie,se,pe);if(Z(se)){if(Ie=Z(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,oc(se),pe);if(se.$$typeof===E)return Nt(ae,ie,ic(ae,se),pe);cc(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=x(ie,se),pe.return=ae,ae=pe):(l(ae,ie),pe=Ad(se,ae.mode,pe),pe.return=ae,ae=pe),T(ae)):l(ae,ie)}return function(ae,ie,se,pe){try{vl=0;var Ie=Nt(ae,ie,se,pe);return bs=null,Ie}catch(je){if(je===xs||je===sc)throw je;var ht=Zn(29,je,null,ae.mode);return ht.lanes=pe,ht.return=ae,ht}finally{}}}var Oa=hx(!0),mx=hx(!1),Hi=!1;function qd(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Pd(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 $i(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function qi(n,i,l){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,(pt&2)!==0){var x=u.pending;return x===null?i.next=i:(i.next=x.next,x.next=i),u.pending=i,i=ec(n),Qg(n,null,l),i}return Jo(n,u,i,l),ec(n)}function wl(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 Fd(n,i){var l=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var x=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?x=v=T:v=v.next=T,l=l.next}while(l!==null);v===null?x=v=i:v=v.next=i}else x=v=i;l={baseState:u.baseState,firstBaseUpdate:x,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 Gd=!1;function El(){if(Gd){var n=gs;if(n!==null)throw n}}function Nl(n,i,l,u){Gd=!1;var x=n.updateQueue;Hi=!1;var v=x.firstBaseUpdate,T=x.lastBaseUpdate,G=x.shared.pending;if(G!==null){x.shared.pending=null;var ne=G,le=ne.next;ne.next=null,T===null?v=le:T.next=le,T=ne;var he=n.alternate;he!==null&&(he=he.updateQueue,G=he.lastBaseUpdate,G!==T&&(G===null?he.firstBaseUpdate=le:G.next=le,he.lastBaseUpdate=ne))}if(v!==null){var ge=x.baseState;T=0,he=le=ne=null,G=v;do{var ce=G.lane&-536870913,de=ce!==G.lane;if(de?(it&ce)===ce:(u&ce)===ce){ce!==0&&ce===ps&&(Gd=!0),he!==null&&(he=he.next={lane:0,tag:G.tag,payload:G.payload,callback:null,next:null});e:{var Ae=n,He=G;ce=i;var Nt=l;switch(He.tag){case 1:if(Ae=He.payload,typeof Ae=="function"){ge=Ae.call(Nt,ge,ce);break e}ge=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=He.payload,ce=typeof Ae=="function"?Ae.call(Nt,ge,ce):Ae,ce==null)break e;ge=g({},ge,ce);break e;case 2:Hi=!0}}ce=G.callback,ce!==null&&(n.flags|=64,de&&(n.flags|=8192),de=x.callbacks,de===null?x.callbacks=[ce]:de.push(ce))}else de={lane:ce,tag:G.tag,payload:G.payload,callback:G.callback,next:null},he===null?(le=he=de,ne=ge):he=he.next=de,T|=ce;if(G=G.next,G===null){if(G=x.shared.pending,G===null)break;de=G,G=de.next,de.next=null,x.lastBaseUpdate=de,x.shared.pending=null}}while(!0);he===null&&(ne=ge),x.baseState=ne,x.firstBaseUpdate=le,x.lastBaseUpdate=he,v===null&&(x.shared.lanes=0),Yi|=T,n.lanes=T,n.memoizedState=ge}}function px(n,i){if(typeof n!="function")throw Error(a(191,n));n.call(i)}function gx(n,i){var l=n.callbacks;if(l!==null)for(n.callbacks=null,n=0;n<l.length;n++)px(l[n],i)}var ys=L(null),uc=L(0);function xx(n,i){n=mi,D(uc,n),D(ys,i),mi=n|i.baseLanes}function Vd(){D(uc,mi),D(ys,ys.current)}function Yd(){mi=uc.current,F(ys),F(uc)}var Qn=L(null),mr=null;function Pi(n){var i=n.alternate;D(Qt,Qt.current&1),D(Qn,n),mr===null&&(i===null||ys.current!==null||i.memoizedState!==null)&&(mr=n)}function Xd(n){D(Qt,Qt.current),D(Qn,n),mr===null&&(mr=n)}function bx(n){n.tag===22?(D(Qt,Qt.current),D(Qn,n),mr===null&&(mr=n)):Fi()}function Fi(){D(Qt,Qt.current),D(Qn,Qn.current)}function Wn(n){F(Qn),mr===n&&(mr=null),F(Qt)}var Qt=L(0);function dc(n){for(var i=n;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||th(l)||nh(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,nn=null,fc=!1,vs=!1,Ra=!1,hc=0,Sl=0,_s=null,wS=0;function Vt(){throw Error(a(321))}function Kd(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 Zd(n,i,l,u,x,v){return si=v,Xe=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,O.H=n===null||n.memoizedState===null?tb:ff,Ra=!1,v=l(u,x),Ra=!1,vs&&(v=vx(i,l,u,x)),yx(n),v}function yx(n){O.H=Tl;var i=wt!==null&&wt.next!==null;if(si=0,nn=wt=Xe=null,fc=!1,Sl=0,_s=null,i)throw Error(a(300));n===null||rn||(n=n.dependencies,n!==null&&rc(n)&&(rn=!0))}function vx(n,i,l,u){Xe=n;var x=0;do{if(vs&&(_s=null),Sl=0,vs=!1,25<=x)throw Error(a(301));if(x+=1,nn=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=nb,v=i(l,u)}while(vs);return v}function ES(){var n=O.H,i=n.useState()[0];return i=typeof i.then=="function"?kl(i):i,n=n.useState()[0],(wt!==null?wt.memoizedState:null)!==n&&(Xe.flags|=1024),i}function Qd(){var n=hc!==0;return hc=0,n}function Wd(n,i,l){i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~l}function Jd(n){if(fc){for(n=n.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}fc=!1}si=0,nn=wt=Xe=null,vs=!1,Sl=hc=0,_s=null}function Dn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nn===null?Xe.memoizedState=nn=n:nn=nn.next=n,nn}function Wt(){if(wt===null){var n=Xe.alternate;n=n!==null?n.memoizedState:null}else n=wt.next;var i=nn===null?Xe.memoizedState:nn.next;if(i!==null)nn=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},nn===null?Xe.memoizedState=nn=n:nn=nn.next=n}return nn}function mc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function kl(n){var i=Sl;return Sl+=1,_s===null&&(_s=[]),n=ux(_s,n,i),i=Xe,(nn===null?i.memoizedState:nn.next)===null&&(i=i.alternate,O.H=i===null||i.memoizedState===null?tb:ff),n}function pc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return kl(n);if(n.$$typeof===E)return vn(n)}throw Error(a(438,String(n)))}function ef(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(x){return x.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),l===null&&(l=mc(),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]=j;return i.index++,l}function li(n,i){return typeof i=="function"?i(n):i}function gc(n){var i=Wt();return tf(i,wt,n)}function tf(n,i,l){var u=n.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=l;var x=n.baseQueue,v=u.pending;if(v!==null){if(x!==null){var T=x.next;x.next=v.next,v.next=T}i.baseQueue=x=v,u.pending=null}if(v=n.baseState,x===null)n.memoizedState=v;else{i=x.next;var G=T=null,ne=null,le=i,he=!1;do{var ge=le.lane&-536870913;if(ge!==le.lane?(it&ge)===ge:(si&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===ps&&(he=!0);else if((si&ce)===ce){le=le.next,ce===ps&&(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?(G=ne=ge,T=v):ne=ne.next=ge,Xe.lanes|=ce,Yi|=ce;ge=le.action,Ra&&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?(G=ne=ce,T=v):ne=ne.next=ce,Xe.lanes|=ge,Yi|=ge;le=le.next}while(le!==null&&le!==i);if(ne===null?T=v:ne.next=G,!Kn(v,n.memoizedState)&&(rn=!0,he&&(l=gs,l!==null)))throw l;n.memoizedState=v,n.baseState=T,n.baseQueue=ne,u.lastRenderedState=v}return x===null&&(u.lanes=0),[n.memoizedState,u.dispatch]}function nf(n){var i=Wt(),l=i.queue;if(l===null)throw Error(a(311));l.lastRenderedReducer=n;var u=l.dispatch,x=l.pending,v=i.memoizedState;if(x!==null){l.pending=null;var T=x=x.next;do v=n(v,T.action),T=T.next;while(T!==x);Kn(v,i.memoizedState)||(rn=!0),i.memoizedState=v,i.baseQueue===null&&(i.baseState=v),l.lastRenderedState=v}return[v,u]}function _x(n,i,l){var u=Xe,x=Wt(),v=lt;if(v){if(l===void 0)throw Error(a(407));l=l()}else l=i();var T=!Kn((wt||x).memoizedState,l);if(T&&(x.memoizedState=l,rn=!0),x=x.queue,sf(Nx.bind(null,u,x,n),[n]),x.getSnapshot!==i||T||nn!==null&&nn.memoizedState.tag&1){if(u.flags|=2048,ws(9,{destroy:void 0},Ex.bind(null,u,x,l,i),null),kt===null)throw Error(a(349));v||(si&127)!==0||wx(u,i,l)}return l}function wx(n,i,l){n.flags|=16384,n={getSnapshot:i,value:l},i=Xe.updateQueue,i===null?(i=mc(),Xe.updateQueue=i,i.stores=[n]):(l=i.stores,l===null?i.stores=[n]:l.push(n))}function Ex(n,i,l,u){i.value=l,i.getSnapshot=u,Sx(i)&&kx(n)}function Nx(n,i,l){return l(function(){Sx(i)&&kx(n)})}function Sx(n){var i=n.getSnapshot;n=n.value;try{var l=i();return!Kn(n,l)}catch{return!0}}function kx(n){var i=Ea(n,2);i!==null&&Pn(i,n,2)}function rf(n){var i=Dn();if(typeof n=="function"){var l=n;if(n=l(),Ra){Jt(!0);try{l()}finally{Jt(!1)}}}return i.memoizedState=i.baseState=n,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:li,lastRenderedState:n},i}function Cx(n,i,l,u){return n.baseState=l,tf(n,wt,typeof u=="function"?u:li)}function NS(n,i,l,u,x){if(yc(n))throw Error(a(485));if(n=i.action,n!==null){var v={payload:x,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=i.pending,l===null?(v.next=i.pending=v,Tx(i,v)):(v.next=l.next,i.pending=l.next=v)}}function Tx(n,i){var l=i.action,u=i.payload,x=n.state;if(i.isTransition){var v=O.T,T={};O.T=T;try{var G=l(x,u),ne=O.S;ne!==null&&ne(T,G),Ax(n,i,G)}catch(le){af(n,i,le)}finally{v!==null&&T.types!==null&&(v.types=T.types),O.T=v}}else try{v=l(x,u),Ax(n,i,v)}catch(le){af(n,i,le)}}function Ax(n,i,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(u){Mx(n,i,u)},function(u){return af(n,i,u)}):Mx(n,i,l)}function Mx(n,i,l){i.status="fulfilled",i.value=l,Ox(i),n.state=l,i=n.pending,i!==null&&(l=i.next,l===i?n.pending=null:(l=l.next,i.next=l,Tx(n,l)))}function af(n,i,l){var u=n.pending;if(n.pending=null,u!==null){u=u.next;do i.status="rejected",i.reason=l,Ox(i),i=i.next;while(i!==u)}n.action=null}function Ox(n){n=n.listeners;for(var i=0;i<n.length;i++)(0,n[i])()}function Rx(n,i){return i}function jx(n,i){if(lt){var l=kt.formState;if(l!==null){e:{var u=Xe;if(lt){if(jt){t:{for(var x=jt,v=hr;x.nodeType!==8;){if(!v){x=null;break t}if(x=pr(x.nextSibling),x===null){x=null;break t}}v=x.data,x=v==="F!"||v==="F"?x:null}if(x){jt=pr(x.nextSibling),u=x.data==="F!";break e}}Bi(u)}u=!1}u&&(i=l[0])}}return l=Dn(),l.memoizedState=l.baseState=i,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rx,lastRenderedState:i},l.queue=u,l=Wx.bind(null,Xe,u),u.dispatch=l,u=rf(!1),v=df.bind(null,Xe,!1,u.queue),u=Dn(),x={state:i,dispatch:null,action:n,pending:null},u.queue=x,l=NS.bind(null,Xe,x,v,l),x.dispatch=l,u.memoizedState=n,[i,l,!1]}function Dx(n){var i=Wt();return Lx(i,wt,n)}function Lx(n,i,l){if(i=tf(n,i,Rx)[0],n=gc(li)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var u=kl(i)}catch(T){throw T===xs?sc:T}else u=i;i=Wt();var x=i.queue,v=x.dispatch;return l!==i.memoizedState&&(Xe.flags|=2048,ws(9,{destroy:void 0},SS.bind(null,x,l),null)),[u,v,n]}function SS(n,i){n.action=i}function zx(n){var i=Wt(),l=wt;if(l!==null)return Lx(i,l,n);Wt(),i=i.memoizedState,l=Wt();var u=l.queue.dispatch;return l.memoizedState=n,[i,u,!1]}function ws(n,i,l,u){return n={tag:n,create:l,deps:u,inst:i,next:null},i=Xe.updateQueue,i===null&&(i=mc(),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 Ix(){return Wt().memoizedState}function xc(n,i,l,u){var x=Dn();Xe.flags|=n,x.memoizedState=ws(1|i,{destroy:void 0},l,u===void 0?null:u)}function bc(n,i,l,u){var x=Wt();u=u===void 0?null:u;var v=x.memoizedState.inst;wt!==null&&u!==null&&Kd(u,wt.memoizedState.deps)?x.memoizedState=ws(i,v,l,u):(Xe.flags|=n,x.memoizedState=ws(1|i,v,l,u))}function Bx(n,i){xc(8390656,8,n,i)}function sf(n,i){bc(2048,8,n,i)}function kS(n){Xe.flags|=4;var i=Xe.updateQueue;if(i===null)i=mc(),Xe.updateQueue=i,i.events=[n];else{var l=i.events;l===null?i.events=[n]:l.push(n)}}function Ux(n){var i=Wt().memoizedState;return kS({ref:i,nextImpl:n}),function(){if((pt&2)!==0)throw Error(a(440));return i.impl.apply(void 0,arguments)}}function Hx(n,i){return bc(4,2,n,i)}function $x(n,i){return bc(4,4,n,i)}function qx(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 Px(n,i,l){l=l!=null?l.concat([n]):null,bc(4,4,qx.bind(null,i,n),l)}function lf(){}function Fx(n,i){var l=Wt();i=i===void 0?null:i;var u=l.memoizedState;return i!==null&&Kd(i,u[1])?u[0]:(l.memoizedState=[n,i],n)}function Gx(n,i){var l=Wt();i=i===void 0?null:i;var u=l.memoizedState;if(i!==null&&Kd(i,u[1]))return u[0];if(u=n(),Ra){Jt(!0);try{n()}finally{Jt(!1)}}return l.memoizedState=[u,i],u}function of(n,i,l){return l===void 0||(si&1073741824)!==0&&(it&261930)===0?n.memoizedState=i:(n.memoizedState=l,n=Vb(),Xe.lanes|=n,Yi|=n,l)}function Vx(n,i,l,u){return Kn(l,i)?l:ys.current!==null?(n=of(n,l,u),Kn(n,i)||(rn=!0),n):(si&42)===0||(si&1073741824)!==0&&(it&261930)===0?(rn=!0,n.memoizedState=l):(n=Vb(),Xe.lanes|=n,Yi|=n,i)}function Yx(n,i,l,u,x){var v=U.p;U.p=v!==0&&8>v?v:8;var T=O.T,G={};O.T=G,df(n,!1,i,l);try{var ne=x(),le=O.S;if(le!==null&&le(G,ne),ne!==null&&typeof ne=="object"&&typeof ne.then=="function"){var he=_S(ne,u);Cl(n,i,he,tr(n))}else Cl(n,i,u,tr(n))}catch(ge){Cl(n,i,{then:function(){},status:"rejected",reason:ge},tr())}finally{U.p=v,T!==null&&G.types!==null&&(T.types=G.types),O.T=T}}function CS(){}function cf(n,i,l,u){if(n.tag!==5)throw Error(a(476));var x=Xx(n).queue;Yx(n,x,i,K,l===null?CS:function(){return Kx(n),l(u)})}function Xx(n){var i=n.memoizedState;if(i!==null)return i;i={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:li,lastRenderedState:K},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 Kx(n){var i=Xx(n);i.next===null&&(i=n.alternate.memoizedState),Cl(n,i.next.queue,{},tr())}function uf(){return vn(Fl)}function Zx(){return Wt().memoizedState}function Qx(){return Wt().memoizedState}function TS(n){for(var i=n.return;i!==null;){switch(i.tag){case 24:case 3:var l=tr();n=$i(l);var u=qi(i,n,l);u!==null&&(Pn(u,i,l),wl(u,i,l)),i={cache:Bd()},n.payload=i;return}i=i.return}}function AS(n,i,l){var u=tr();l={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},yc(n)?Jx(i,l):(l=Cd(n,i,l,u),l!==null&&(Pn(l,n,u),eb(l,i,u)))}function Wx(n,i,l){var u=tr();Cl(n,i,l,u)}function Cl(n,i,l,u){var x={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(yc(n))Jx(i,x);else{var v=n.alternate;if(n.lanes===0&&(v===null||v.lanes===0)&&(v=i.lastRenderedReducer,v!==null))try{var T=i.lastRenderedState,G=v(T,l);if(x.hasEagerState=!0,x.eagerState=G,Kn(G,T))return Jo(n,i,x,0),kt===null&&Wo(),!1}catch{}finally{}if(l=Cd(n,i,x,u),l!==null)return Pn(l,n,u),eb(l,i,u),!0}return!1}function df(n,i,l,u){if(u={lane:2,revertLane:Pf(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},yc(n)){if(i)throw Error(a(479))}else i=Cd(n,l,u,2),i!==null&&Pn(i,n,2)}function yc(n){var i=n.alternate;return n===Xe||i!==null&&i===Xe}function Jx(n,i){vs=fc=!0;var l=n.pending;l===null?i.next=i:(i.next=l.next,l.next=i),n.pending=i}function eb(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:vn,use:pc,useCallback:Vt,useContext:Vt,useEffect:Vt,useImperativeHandle:Vt,useLayoutEffect:Vt,useInsertionEffect:Vt,useMemo:Vt,useReducer:Vt,useRef:Vt,useState:Vt,useDebugValue:Vt,useDeferredValue:Vt,useTransition:Vt,useSyncExternalStore:Vt,useId:Vt,useHostTransitionStatus:Vt,useFormState:Vt,useActionState:Vt,useOptimistic:Vt,useMemoCache:Vt,useCacheRefresh:Vt};Tl.useEffectEvent=Vt;var tb={readContext:vn,use:pc,useCallback:function(n,i){return Dn().memoizedState=[n,i===void 0?null:i],n},useContext:vn,useEffect:Bx,useImperativeHandle:function(n,i,l){l=l!=null?l.concat([n]):null,xc(4194308,4,qx.bind(null,i,n),l)},useLayoutEffect:function(n,i){return xc(4194308,4,n,i)},useInsertionEffect:function(n,i){xc(4,2,n,i)},useMemo:function(n,i){var l=Dn();i=i===void 0?null:i;var u=n();if(Ra){Jt(!0);try{n()}finally{Jt(!1)}}return l.memoizedState=[u,i],u},useReducer:function(n,i,l){var u=Dn();if(l!==void 0){var x=l(i);if(Ra){Jt(!0);try{l(i)}finally{Jt(!1)}}}else x=i;return u.memoizedState=u.baseState=x,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:x},u.queue=n,n=n.dispatch=AS.bind(null,Xe,n),[u.memoizedState,n]},useRef:function(n){var i=Dn();return n={current:n},i.memoizedState=n},useState:function(n){n=rf(n);var i=n.queue,l=Wx.bind(null,Xe,i);return i.dispatch=l,[n.memoizedState,l]},useDebugValue:lf,useDeferredValue:function(n,i){var l=Dn();return of(l,n,i)},useTransition:function(){var n=rf(!1);return n=Yx.bind(null,Xe,n.queue,!0,!1),Dn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,i,l){var u=Xe,x=Dn();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||wx(u,i,l)}x.memoizedState=l;var v={value:l,getSnapshot:i};return x.queue=v,Bx(Nx.bind(null,u,v,n),[n]),u.flags|=2048,ws(9,{destroy:void 0},Ex.bind(null,u,v,l,i),null),l},useId:function(){var n=Dn(),i=kt.identifierPrefix;if(lt){var l=$r,u=Hr;l=(u&~(1<<32-ut(u)-1)).toString(32)+l,i="_"+i+"R_"+l,l=hc++,0<l&&(i+="H"+l.toString(32)),i+="_"}else l=wS++,i="_"+i+"r_"+l.toString(32)+"_";return n.memoizedState=i},useHostTransitionStatus:uf,useFormState:jx,useActionState:jx,useOptimistic:function(n){var i=Dn();i.memoizedState=i.baseState=n;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=l,i=df.bind(null,Xe,!0,l),l.dispatch=i,[n,i]},useMemoCache:ef,useCacheRefresh:function(){return Dn().memoizedState=TS.bind(null,Xe)},useEffectEvent:function(n){var i=Dn(),l={impl:n};return i.memoizedState=l,function(){if((pt&2)!==0)throw Error(a(440));return l.impl.apply(void 0,arguments)}}},ff={readContext:vn,use:pc,useCallback:Fx,useContext:vn,useEffect:sf,useImperativeHandle:Px,useInsertionEffect:Hx,useLayoutEffect:$x,useMemo:Gx,useReducer:gc,useRef:Ix,useState:function(){return gc(li)},useDebugValue:lf,useDeferredValue:function(n,i){var l=Wt();return Vx(l,wt.memoizedState,n,i)},useTransition:function(){var n=gc(li)[0],i=Wt().memoizedState;return[typeof n=="boolean"?n:kl(n),i]},useSyncExternalStore:_x,useId:Zx,useHostTransitionStatus:uf,useFormState:Dx,useActionState:Dx,useOptimistic:function(n,i){var l=Wt();return Cx(l,wt,n,i)},useMemoCache:ef,useCacheRefresh:Qx};ff.useEffectEvent=Ux;var nb={readContext:vn,use:pc,useCallback:Fx,useContext:vn,useEffect:sf,useImperativeHandle:Px,useInsertionEffect:Hx,useLayoutEffect:$x,useMemo:Gx,useReducer:nf,useRef:Ix,useState:function(){return nf(li)},useDebugValue:lf,useDeferredValue:function(n,i){var l=Wt();return wt===null?of(l,n,i):Vx(l,wt.memoizedState,n,i)},useTransition:function(){var n=nf(li)[0],i=Wt().memoizedState;return[typeof n=="boolean"?n:kl(n),i]},useSyncExternalStore:_x,useId:Zx,useHostTransitionStatus:uf,useFormState:zx,useActionState:zx,useOptimistic:function(n,i){var l=Wt();return wt!==null?Cx(l,wt,n,i):(l.baseState=n,[n,l.queue.dispatch])},useMemoCache:ef,useCacheRefresh:Qx};nb.useEffectEvent=Ux;function hf(n,i,l,u){i=n.memoizedState,l=l(u,i),l=l==null?i:g({},i,l),n.memoizedState=l,n.lanes===0&&(n.updateQueue.baseState=l)}var mf={enqueueSetState:function(n,i,l){n=n._reactInternals;var u=tr(),x=$i(u);x.payload=i,l!=null&&(x.callback=l),i=qi(n,x,u),i!==null&&(Pn(i,n,u),wl(i,n,u))},enqueueReplaceState:function(n,i,l){n=n._reactInternals;var u=tr(),x=$i(u);x.tag=1,x.payload=i,l!=null&&(x.callback=l),i=qi(n,x,u),i!==null&&(Pn(i,n,u),wl(i,n,u))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var l=tr(),u=$i(l);u.tag=2,i!=null&&(u.callback=i),i=qi(n,u,l),i!==null&&(Pn(i,n,l),wl(i,n,l))}};function rb(n,i,l,u,x,v,T){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(u,v,T):i.prototype&&i.prototype.isPureReactComponent?!ml(l,u)||!ml(x,v):!0}function ib(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&&mf.enqueueReplaceState(i,i.state,null)}function ja(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=g({},l));for(var x in n)l[x]===void 0&&(l[x]=n[x])}return l}function ab(n){Qo(n)}function sb(n){console.error(n)}function lb(n){Qo(n)}function vc(n,i){try{var l=n.onUncaughtError;l(i.value,{componentStack:i.stack})}catch(u){setTimeout(function(){throw u})}}function ob(n,i,l){try{var u=n.onCaughtError;u(l.value,{componentStack:l.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(x){setTimeout(function(){throw x})}}function pf(n,i,l){return l=$i(l),l.tag=3,l.payload={element:null},l.callback=function(){vc(n,i)},l}function cb(n){return n=$i(n),n.tag=3,n}function ub(n,i,l,u){var x=l.type.getDerivedStateFromError;if(typeof x=="function"){var v=u.value;n.payload=function(){return x(v)},n.callback=function(){ob(i,l,u)}}var T=l.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(n.callback=function(){ob(i,l,u),typeof x!="function"&&(Xi===null?Xi=new Set([this]):Xi.add(this));var G=u.stack;this.componentDidCatch(u.value,{componentStack:G!==null?G:""})})}function MS(n,i,l,u,x){if(l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(i=l.alternate,i!==null&&ms(i,l,x,!0),l=Qn.current,l!==null){switch(l.tag){case 31:case 13:return mr===null?Rc():l.alternate===null&&Yt===0&&(Yt=3),l.flags&=-257,l.flags|=65536,l.lanes=x,u===lc?l.flags|=16384:(i=l.updateQueue,i===null?l.updateQueue=new Set([u]):i.add(u),Hf(n,u,x)),!1;case 22:return l.flags|=65536,u===lc?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)),Hf(n,u,x)),!1}throw Error(a(435,l.tag))}return Hf(n,u,x),Rc(),!1}if(lt)return i=Qn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=x,u!==jd&&(n=Error(a(422),{cause:u}),xl(ur(n,l)))):(u!==jd&&(i=Error(a(423),{cause:u}),xl(ur(i,l))),n=n.current.alternate,n.flags|=65536,x&=-x,n.lanes|=x,u=ur(u,l),x=pf(n.stateNode,u,x),Fd(n,x),Yt!==4&&(Yt=2)),!1;var v=Error(a(520),{cause:u});if(v=ur(v,l),zl===null?zl=[v]:zl.push(v),Yt!==4&&(Yt=2),i===null)return!0;u=ur(u,l),l=i;do{switch(l.tag){case 3:return l.flags|=65536,n=x&-x,l.lanes|=n,n=pf(l.stateNode,u,n),Fd(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"&&(Xi===null||!Xi.has(v))))return l.flags|=65536,x&=-x,l.lanes|=x,x=cb(x),ub(x,n,l,u),Fd(l,x),!1}l=l.return}while(l!==null);return!1}var gf=Error(a(461)),rn=!1;function _n(n,i,l,u){i.child=n===null?mx(i,null,l,u):Oa(i,n.child,l,u)}function db(n,i,l,u,x){l=l.render;var v=i.ref;if("ref"in u){var T={};for(var G in u)G!=="ref"&&(T[G]=u[G])}else T=u;return Ca(i),u=Zd(n,i,l,T,v,x),G=Qd(),n!==null&&!rn?(Wd(n,i,x),oi(n,i,x)):(lt&&G&&Od(i),i.flags|=1,_n(n,i,u,x),i.child)}function fb(n,i,l,u,x){if(n===null){var v=l.type;return typeof v=="function"&&!Td(v)&&v.defaultProps===void 0&&l.compare===null?(i.tag=15,i.type=v,hb(n,i,v,u,x)):(n=tc(l.type,null,u,i,i.mode,x),n.ref=i.ref,n.return=i,i.child=n)}if(v=n.child,!Nf(n,x)){var T=v.memoizedProps;if(l=l.compare,l=l!==null?l:ml,l(T,u)&&n.ref===i.ref)return oi(n,i,x)}return i.flags|=1,n=ni(v,u),n.ref=i.ref,n.return=i,i.child=n}function hb(n,i,l,u,x){if(n!==null){var v=n.memoizedProps;if(ml(v,u)&&n.ref===i.ref)if(rn=!1,i.pendingProps=u=v,Nf(n,x))(n.flags&131072)!==0&&(rn=!0);else return i.lanes=n.lanes,oi(n,i,x)}return xf(n,i,l,u,x)}function mb(n,i,l,u){var x=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,x=0;u!==null;)x=x|u.lanes|u.childLanes,u=u.sibling;u=x&~v}else u=0,i.child=null;return pb(n,i,v,l,u)}if((l&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},n!==null&&ac(i,v!==null?v.cachePool:null),v!==null?xx(i,v):Vd(),bx(i);else return u=i.lanes=536870912,pb(n,i,v!==null?v.baseLanes|l:l,l,u)}else v!==null?(ac(i,v.cachePool),xx(i,v),Fi(),i.memoizedState=null):(n!==null&&ac(i,null),Vd(),Fi());return _n(n,i,x,l),i.child}function Al(n,i){return n!==null&&n.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function pb(n,i,l,u,x){var v=Hd();return v=v===null?null:{parent:tn._currentValue,pool:v},i.memoizedState={baseLanes:l,cachePool:v},n!==null&&ac(i,null),Vd(),bx(i),n!==null&&ms(n,i,u,!0),i.childLanes=x,null}function _c(n,i){return i=Ec({mode:i.mode,children:i.children},n.mode),i.ref=n.ref,n.child=i,i.return=n,i}function gb(n,i,l){return Oa(i,n.child,null,l),n=_c(i,i.pendingProps),n.flags|=2,Wn(i),i.memoizedState=null,n}function OS(n,i,l){var u=i.pendingProps,x=(i.flags&128)!==0;if(i.flags&=-129,n===null){if(lt){if(u.mode==="hidden")return n=_c(i,u),i.lanes=536870912,Al(null,n);if(Xd(i),(n=jt)?(n=T0(n,hr),n=n!==null&&n.data==="&"?n:null,n!==null&&(i.memoizedState={dehydrated:n,treeContext:zi!==null?{id:Hr,overflow:$r}:null,retryLane:536870912,hydrationErrors:null},l=Jg(n),l.return=i,i.child=l,yn=i,jt=null)):n=null,n===null)throw Bi(i);return i.lanes=536870912,null}return _c(i,u)}var v=n.memoizedState;if(v!==null){var T=v.dehydrated;if(Xd(i),x)if(i.flags&256)i.flags&=-257,i=gb(n,i,l);else if(i.memoizedState!==null)i.child=n.child,i.flags|=128,i=null;else throw Error(a(558));else if(rn||ms(n,i,l,!1),x=(l&n.childLanes)!==0,rn||x){if(u=kt,u!==null&&(T=Bt(u,l),T!==0&&T!==v.retryLane))throw v.retryLane=T,Ea(n,T),Pn(u,n,T),gf;Rc(),i=gb(n,i,l)}else n=v.treeContext,jt=pr(T.nextSibling),yn=i,lt=!0,Ii=null,hr=!1,n!==null&&nx(i,n),i=_c(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 wc(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 xf(n,i,l,u,x){return Ca(i),l=Zd(n,i,l,u,void 0,x),u=Qd(),n!==null&&!rn?(Wd(n,i,x),oi(n,i,x)):(lt&&u&&Od(i),i.flags|=1,_n(n,i,l,x),i.child)}function xb(n,i,l,u,x,v){return Ca(i),i.updateQueue=null,l=vx(i,u,l,x),yx(n),u=Qd(),n!==null&&!rn?(Wd(n,i,v),oi(n,i,v)):(lt&&u&&Od(i),i.flags|=1,_n(n,i,l,v),i.child)}function bb(n,i,l,u,x){if(Ca(i),i.stateNode===null){var v=us,T=l.contextType;typeof T=="object"&&T!==null&&(v=vn(T)),v=new l(u,v),i.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=mf,i.stateNode=v,v._reactInternals=i,v=i.stateNode,v.props=u,v.state=i.memoizedState,v.refs={},qd(i),T=l.contextType,v.context=typeof T=="object"&&T!==null?vn(T):us,v.state=i.memoizedState,T=l.getDerivedStateFromProps,typeof T=="function"&&(hf(i,l,T,u),v.state=i.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&&mf.enqueueReplaceState(v,v.state,null),Nl(i,u,v,x),El(),v.state=i.memoizedState),typeof v.componentDidMount=="function"&&(i.flags|=4194308),u=!0}else if(n===null){v=i.stateNode;var G=i.memoizedProps,ne=ja(l,G);v.props=ne;var le=v.context,he=l.contextType;T=us,typeof he=="object"&&he!==null&&(T=vn(he));var ge=l.getDerivedStateFromProps;he=typeof ge=="function"||typeof v.getSnapshotBeforeUpdate=="function",G=i.pendingProps!==G,he||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(G||le!==T)&&ib(i,v,u,T),Hi=!1;var ce=i.memoizedState;v.state=ce,Nl(i,u,v,x),El(),le=i.memoizedState,G||ce!==le||Hi?(typeof ge=="function"&&(hf(i,l,ge,u),le=i.memoizedState),(ne=Hi||rb(i,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"&&(i.flags|=4194308)):(typeof v.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=u,i.memoizedState=le),v.props=u,v.state=le,v.context=T,u=ne):(typeof v.componentDidMount=="function"&&(i.flags|=4194308),u=!1)}else{v=i.stateNode,Pd(n,i),T=i.memoizedProps,he=ja(l,T),v.props=he,ge=i.pendingProps,ce=v.context,le=l.contextType,ne=us,typeof le=="object"&&le!==null&&(ne=vn(le)),G=l.getDerivedStateFromProps,(le=typeof G=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(T!==ge||ce!==ne)&&ib(i,v,u,ne),Hi=!1,ce=i.memoizedState,v.state=ce,Nl(i,u,v,x),El();var de=i.memoizedState;T!==ge||ce!==de||Hi||n!==null&&n.dependencies!==null&&rc(n.dependencies)?(typeof G=="function"&&(hf(i,l,G,u),de=i.memoizedState),(he=Hi||rb(i,l,he,u,ce,de,ne)||n!==null&&n.dependencies!==null&&rc(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"||T===n.memoizedProps&&ce===n.memoizedState||(i.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&ce===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"||T===n.memoizedProps&&ce===n.memoizedState||(i.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&ce===n.memoizedState||(i.flags|=1024),u=!1)}return v=u,wc(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=Oa(i,n.child,null,x),i.child=Oa(i,null,l,x)):_n(n,i,l,x),i.memoizedState=v.state,n=i.child):n=oi(n,i,x),n}function yb(n,i,l,u){return Sa(),i.flags|=256,_n(n,i,l,u),i.child}var bf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function yf(n){return{baseLanes:n,cachePool:ox()}}function vf(n,i,l){return n=n!==null?n.childLanes&~l:0,i&&(n|=er),n}function vb(n,i,l){var u=i.pendingProps,x=!1,v=(i.flags&128)!==0,T;if((T=v)||(T=n!==null&&n.memoizedState===null?!1:(Qt.current&2)!==0),T&&(x=!0,i.flags&=-129),T=(i.flags&32)!==0,i.flags&=-33,n===null){if(lt){if(x?Pi(i):Fi(),(n=jt)?(n=T0(n,hr),n=n!==null&&n.data!=="&"?n:null,n!==null&&(i.memoizedState={dehydrated:n,treeContext:zi!==null?{id:Hr,overflow:$r}:null,retryLane:536870912,hydrationErrors:null},l=Jg(n),l.return=i,i.child=l,yn=i,jt=null)):n=null,n===null)throw Bi(i);return nh(n)?i.lanes=32:i.lanes=536870912,null}var G=u.children;return u=u.fallback,x?(Fi(),x=i.mode,G=Ec({mode:"hidden",children:G},x),u=Na(u,x,l,null),G.return=i,u.return=i,G.sibling=u,i.child=G,u=i.child,u.memoizedState=yf(l),u.childLanes=vf(n,T,l),i.memoizedState=bf,Al(null,u)):(Pi(i),_f(i,G))}var ne=n.memoizedState;if(ne!==null&&(G=ne.dehydrated,G!==null)){if(v)i.flags&256?(Pi(i),i.flags&=-257,i=wf(n,i,l)):i.memoizedState!==null?(Fi(),i.child=n.child,i.flags|=128,i=null):(Fi(),G=u.fallback,x=i.mode,u=Ec({mode:"visible",children:u.children},x),G=Na(G,x,l,null),G.flags|=2,u.return=i,G.return=i,u.sibling=G,i.child=u,Oa(i,n.child,null,l),u=i.child,u.memoizedState=yf(l),u.childLanes=vf(n,T,l),i.memoizedState=bf,i=Al(null,u));else if(Pi(i),nh(G)){if(T=G.nextSibling&&G.nextSibling.dataset,T)var le=T.dgst;T=le,u=Error(a(419)),u.stack="",u.digest=T,xl({value:u,source:null,stack:null}),i=wf(n,i,l)}else if(rn||ms(n,i,l,!1),T=(l&n.childLanes)!==0,rn||T){if(T=kt,T!==null&&(u=Bt(T,l),u!==0&&u!==ne.retryLane))throw ne.retryLane=u,Ea(n,u),Pn(T,n,u),gf;th(G)||Rc(),i=wf(n,i,l)}else th(G)?(i.flags|=192,i.child=n.child,i=null):(n=ne.treeContext,jt=pr(G.nextSibling),yn=i,lt=!0,Ii=null,hr=!1,n!==null&&nx(i,n),i=_f(i,u.children),i.flags|=4096);return i}return x?(Fi(),G=u.fallback,x=i.mode,ne=n.child,le=ne.sibling,u=ni(ne,{mode:"hidden",children:u.children}),u.subtreeFlags=ne.subtreeFlags&65011712,le!==null?G=ni(le,G):(G=Na(G,x,l,null),G.flags|=2),G.return=i,u.return=i,u.sibling=G,i.child=u,Al(null,u),u=i.child,G=n.child.memoizedState,G===null?G=yf(l):(x=G.cachePool,x!==null?(ne=tn._currentValue,x=x.parent!==ne?{parent:ne,pool:ne}:x):x=ox(),G={baseLanes:G.baseLanes|l,cachePool:x}),u.memoizedState=G,u.childLanes=vf(n,T,l),i.memoizedState=bf,Al(n.child,u)):(Pi(i),l=n.child,n=l.sibling,l=ni(l,{mode:"visible",children:u.children}),l.return=i,l.sibling=null,n!==null&&(T=i.deletions,T===null?(i.deletions=[n],i.flags|=16):T.push(n)),i.child=l,i.memoizedState=null,l)}function _f(n,i){return i=Ec({mode:"visible",children:i},n.mode),i.return=n,n.child=i}function Ec(n,i){return n=Zn(22,n,null,i),n.lanes=0,n}function wf(n,i,l){return Oa(i,n.child,null,l),n=_f(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function _b(n,i,l){n.lanes|=i;var u=n.alternate;u!==null&&(u.lanes|=i),zd(n.return,i,l)}function Ef(n,i,l,u,x,v){var T=n.memoizedState;T===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:x,treeForkCount:v}:(T.isBackwards=i,T.rendering=null,T.renderingStartTime=0,T.last=u,T.tail=l,T.tailMode=x,T.treeForkCount=v)}function wb(n,i,l){var u=i.pendingProps,x=u.revealOrder,v=u.tail;u=u.children;var T=Qt.current,G=(T&2)!==0;if(G?(T=T&1|2,i.flags|=128):T&=1,D(Qt,T),_n(n,i,u,l),u=lt?gl:0,!G&&n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&_b(n,l,i);else if(n.tag===19)_b(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(x){case"forwards":for(l=i.child,x=null;l!==null;)n=l.alternate,n!==null&&dc(n)===null&&(x=l),l=l.sibling;l=x,l===null?(x=i.child,i.child=null):(x=l.sibling,l.sibling=null),Ef(i,!1,x,l,v,u);break;case"backwards":case"unstable_legacy-backwards":for(l=null,x=i.child,i.child=null;x!==null;){if(n=x.alternate,n!==null&&dc(n)===null){i.child=x;break}n=x.sibling,x.sibling=l,l=x,x=n}Ef(i,!0,l,null,v,u);break;case"together":Ef(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),Yi|=i.lanes,(l&i.childLanes)===0)if(n!==null){if(ms(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 Nf(n,i){return(n.lanes&i)!==0?!0:(n=n.dependencies,!!(n!==null&&rc(n)))}function RS(n,i,l){switch(i.tag){case 3:W(i,i.stateNode.containerInfo),Ui(i,tn,n.memoizedState.cache),Sa();break;case 27:case 5:oe(i);break;case 4:W(i,i.stateNode.containerInfo);break;case 10:Ui(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,Xd(i),null;break;case 13:var u=i.memoizedState;if(u!==null)return u.dehydrated!==null?(Pi(i),i.flags|=128,null):(l&i.child.childLanes)!==0?vb(n,i,l):(Pi(i),n=oi(n,i,l),n!==null?n.sibling:null);Pi(i);break;case 19:var x=(n.flags&128)!==0;if(u=(l&i.childLanes)!==0,u||(ms(n,i,l,!1),u=(l&i.childLanes)!==0),x){if(u)return wb(n,i,l);i.flags|=128}if(x=i.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),D(Qt,Qt.current),u)break;return null;case 22:return i.lanes=0,mb(n,i,l,i.pendingProps);case 24:Ui(i,tn,n.memoizedState.cache)}return oi(n,i,l)}function Eb(n,i,l){if(n!==null)if(n.memoizedProps!==i.pendingProps)rn=!0;else{if(!Nf(n,l)&&(i.flags&128)===0)return rn=!1,RS(n,i,l);rn=(n.flags&131072)!==0}else rn=!1,lt&&(i.flags&1048576)!==0&&tx(i,gl,i.index);switch(i.lanes=0,i.tag){case 16:e:{var u=i.pendingProps;if(n=Aa(i.elementType),i.type=n,typeof n=="function")Td(n)?(u=ja(n,u),i.tag=1,i=bb(null,i,n,u,l)):(i.tag=0,i=xf(null,i,n,u,l));else{if(n!=null){var x=n.$$typeof;if(x===A){i.tag=11,i=db(null,i,n,u,l);break e}else if(x===H){i.tag=14,i=fb(null,i,n,u,l);break e}}throw i=k(n)||n,Error(a(306,i,""))}}return i;case 0:return xf(n,i,i.type,i.pendingProps,l);case 1:return u=i.type,x=ja(u,i.pendingProps),bb(n,i,u,x,l);case 3:e:{if(W(i,i.stateNode.containerInfo),n===null)throw Error(a(387));u=i.pendingProps;var v=i.memoizedState;x=v.element,Pd(n,i),Nl(i,u,null,l);var T=i.memoizedState;if(u=T.cache,Ui(i,tn,u),u!==v.cache&&Id(i,[tn],l,!0),El(),u=T.element,v.isDehydrated)if(v={element:u,isDehydrated:!1,cache:T.cache},i.updateQueue.baseState=v,i.memoizedState=v,i.flags&256){i=yb(n,i,u,l);break e}else if(u!==x){x=ur(Error(a(424)),i),xl(x),i=yb(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(jt=pr(n.firstChild),yn=i,lt=!0,Ii=null,hr=!0,l=mx(i,null,u,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Sa(),u===x){i=oi(n,i,l);break e}_n(n,i,u,l)}i=i.child}return i;case 26:return wc(n,i),n===null?(l=D0(i.type,null,i.pendingProps,null))?i.memoizedState=l:lt||(l=i.type,n=i.pendingProps,u=Uc(Q.current).createElement(l),u[Ut]=i,u[pn]=n,wn(u,l,n),Gt(u),i.stateNode=u):i.memoizedState=D0(i.type,n.memoizedProps,i.pendingProps,n.memoizedState),null;case 27:return oe(i),n===null&&lt&&(u=i.stateNode=O0(i.type,i.pendingProps,Q.current),yn=i,hr=!0,x=jt,Wi(i.type)?(rh=x,jt=pr(u.firstChild)):jt=x),_n(n,i,i.pendingProps.children,l),wc(n,i),n===null&&(i.flags|=4194304),i.child;case 5:return n===null&&lt&&((x=u=jt)&&(u=ok(u,i.type,i.pendingProps,hr),u!==null?(i.stateNode=u,yn=i,jt=pr(u.firstChild),hr=!1,x=!0):x=!1),x||Bi(i)),oe(i),x=i.type,v=i.pendingProps,T=n!==null?n.memoizedProps:null,u=v.children,Wf(x,v)?u=null:T!==null&&Wf(x,T)&&(i.flags|=32),i.memoizedState!==null&&(x=Zd(n,i,ES,null,null,l),Fl._currentValue=x),wc(n,i),_n(n,i,u,l),i.child;case 6:return n===null&&lt&&((n=l=jt)&&(l=ck(l,i.pendingProps,hr),l!==null?(i.stateNode=l,yn=i,jt=null,n=!0):n=!1),n||Bi(i)),null;case 13:return vb(n,i,l);case 4:return W(i,i.stateNode.containerInfo),u=i.pendingProps,n===null?i.child=Oa(i,null,u,l):_n(n,i,u,l),i.child;case 11:return db(n,i,i.type,i.pendingProps,l);case 7:return _n(n,i,i.pendingProps,l),i.child;case 8:return _n(n,i,i.pendingProps.children,l),i.child;case 12:return _n(n,i,i.pendingProps.children,l),i.child;case 10:return u=i.pendingProps,Ui(i,i.type,u.value),_n(n,i,u.children,l),i.child;case 9:return x=i.type._context,u=i.pendingProps.children,Ca(i),x=vn(x),u=u(x),i.flags|=1,_n(n,i,u,l),i.child;case 14:return fb(n,i,i.type,i.pendingProps,l);case 15:return hb(n,i,i.type,i.pendingProps,l);case 19:return wb(n,i,l);case 31:return OS(n,i,l);case 22:return mb(n,i,l,i.pendingProps);case 24:return Ca(i),u=vn(tn),n===null?(x=Hd(),x===null&&(x=kt,v=Bd(),x.pooledCache=v,v.refCount++,v!==null&&(x.pooledCacheLanes|=l),x=v),i.memoizedState={parent:u,cache:x},qd(i),Ui(i,tn,x)):((n.lanes&l)!==0&&(Pd(n,i),Nl(i,null,null,l),El()),x=n.memoizedState,v=i.memoizedState,x.parent!==u?(x={parent:u,cache:u},i.memoizedState=x,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=x),Ui(i,tn,u)):(u=v.cache,Ui(i,tn,u),u!==x.cache&&Id(i,[tn],l,!0))),_n(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 Sf(n,i,l,u,x){if((i=(n.mode&32)!==0)&&(i=!1),i){if(n.flags|=16777216,(x&335544128)===x)if(n.stateNode.complete)n.flags|=8192;else if(Zb())n.flags|=8192;else throw Ma=lc,$d}else n.flags&=-16777217}function Nb(n,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!U0(i))if(Zb())n.flags|=8192;else throw Ma=lc,$d}function Nc(n,i){i!==null&&(n.flags|=4),n.flags&16384&&(i=n.tag!==22?Pe():536870912,n.lanes|=i,ks|=i)}function Ml(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 Dt(n){var i=n.alternate!==null&&n.alternate.child===n.child,l=0,u=0;if(i)for(var x=n.child;x!==null;)l|=x.lanes|x.childLanes,u|=x.subtreeFlags&65011712,u|=x.flags&65011712,x.return=n,x=x.sibling;else for(x=n.child;x!==null;)l|=x.lanes|x.childLanes,u|=x.subtreeFlags,u|=x.flags,x.return=n,x=x.sibling;return n.subtreeFlags|=u,n.childLanes=l,i}function jS(n,i,l){var u=i.pendingProps;switch(Rd(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dt(i),null;case 1:return Dt(i),null;case 3:return l=i.stateNode,u=null,n!==null&&(u=n.memoizedState.cache),i.memoizedState.cache!==u&&(i.flags|=2048),ai(tn),te(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(n===null||n.child===null)&&(hs(i)?ci(i):n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Dd())),Dt(i),null;case 26:var x=i.type,v=i.memoizedState;return n===null?(ci(i),v!==null?(Dt(i),Nb(i,v)):(Dt(i),Sf(i,x,null,u,l))):v?v!==n.memoizedState?(ci(i),Dt(i),Nb(i,v)):(Dt(i),i.flags&=-16777217):(n=n.memoizedProps,n!==u&&ci(i),Dt(i),Sf(i,x,n,u,l)),null;case 27:if(fe(i),l=Q.current,x=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==u&&ci(i);else{if(!u){if(i.stateNode===null)throw Error(a(166));return Dt(i),null}n=V.current,hs(i)?rx(i):(n=O0(x,u,l),i.stateNode=n,ci(i))}return Dt(i),null;case 5:if(fe(i),x=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==u&&ci(i);else{if(!u){if(i.stateNode===null)throw Error(a(166));return Dt(i),null}if(v=V.current,hs(i))rx(i);else{var T=Uc(Q.current);switch(v){case 1:v=T.createElementNS("http://www.w3.org/2000/svg",x);break;case 2:v=T.createElementNS("http://www.w3.org/1998/Math/MathML",x);break;default:switch(x){case"svg":v=T.createElementNS("http://www.w3.org/2000/svg",x);break;case"math":v=T.createElementNS("http://www.w3.org/1998/Math/MathML",x);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(x,{is:u.is}):T.createElement(x)}}v[Ut]=i,v[pn]=u;e:for(T=i.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===i)break e;for(;T.sibling===null;){if(T.return===null||T.return===i)break e;T=T.return}T.sibling.return=T.return,T=T.sibling}i.stateNode=v;e:switch(wn(v,x,u),x){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 Dt(i),Sf(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,hs(i)){if(n=i.stateNode,l=i.memoizedProps,u=null,x=yn,x!==null)switch(x.tag){case 27:case 5:u=x.memoizedProps}n[Ut]=i,n=!!(n.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||v0(n.nodeValue,l)),n||Bi(i,!0)}else n=Uc(n).createTextNode(u),n[Ut]=i,i.stateNode=n}return Dt(i),null;case 31:if(l=i.memoizedState,n===null||n.memoizedState!==null){if(u=hs(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 Sa(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Dt(i),n=!1}else l=Dd(),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 Dt(i),null;case 13:if(u=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(x=hs(i),u!==null&&u.dehydrated!==null){if(n===null){if(!x)throw Error(a(318));if(x=i.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(a(317));x[Ut]=i}else Sa(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Dt(i),x=!1}else x=Dd(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=x),x=!0;if(!x)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,x=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(x=u.alternate.memoizedState.cachePool.pool),v=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(v=u.memoizedState.cachePool.pool),v!==x&&(u.flags|=2048)),l!==n&&l&&(i.child.flags|=8192),Nc(i,i.updateQueue),Dt(i),null);case 4:return te(),n===null&&Yf(i.stateNode.containerInfo),Dt(i),null;case 10:return ai(i.type),Dt(i),null;case 19:if(F(Qt),u=i.memoizedState,u===null)return Dt(i),null;if(x=(i.flags&128)!==0,v=u.rendering,v===null)if(x)Ml(u,!1);else{if(Yt!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(v=dc(n),v!==null){for(i.flags|=128,Ml(u,!1),n=v.updateQueue,i.updateQueue=n,Nc(i,n),i.subtreeFlags=0,n=l,l=i.child;l!==null;)Wg(l,n),l=l.sibling;return D(Qt,Qt.current&1|2),lt&&ri(i,u.treeForkCount),i.child}n=n.sibling}u.tail!==null&&ct()>Ac&&(i.flags|=128,x=!0,Ml(u,!1),i.lanes=4194304)}else{if(!x)if(n=dc(v),n!==null){if(i.flags|=128,x=!0,n=n.updateQueue,i.updateQueue=n,Nc(i,n),Ml(u,!0),u.tail===null&&u.tailMode==="hidden"&&!v.alternate&&!lt)return Dt(i),null}else 2*ct()-u.renderingStartTime>Ac&&l!==536870912&&(i.flags|=128,x=!0,Ml(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=Qt.current,D(Qt,x?l&1|2:l&1),lt&&ri(i,u.treeForkCount),n):(Dt(i),null);case 22:case 23:return Wn(i),Yd(),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&&(Dt(i),i.subtreeFlags&6&&(i.flags|=8192)):Dt(i),l=i.updateQueue,l!==null&&Nc(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&&F(Ta),null;case 24:return l=null,n!==null&&(l=n.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),ai(tn),Dt(i),null;case 25:return null;case 30:return null}throw Error(a(156,i.tag))}function DS(n,i){switch(Rd(i),i.tag){case 1:return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return ai(tn),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));Sa()}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));Sa()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return F(Qt),null;case 4:return te(),null;case 10:return ai(i.type),null;case 22:case 23:return Wn(i),Yd(),n!==null&&F(Ta),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 24:return ai(tn),null;case 25:return null;default:return null}}function Sb(n,i){switch(Rd(i),i.tag){case 3:ai(tn),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:F(Qt);break;case 10:ai(i.type);break;case 22:case 23:Wn(i),Yd(),n!==null&&F(Ta);break;case 24:ai(tn)}}function Ol(n,i){try{var l=i.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var x=u.next;l=x;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!==x)}}catch(G){yt(i,i.return,G)}}function Gi(n,i,l){try{var u=i.updateQueue,x=u!==null?u.lastEffect:null;if(x!==null){var v=x.next;u=v;do{if((u.tag&n)===n){var T=u.inst,G=T.destroy;if(G!==void 0){T.destroy=void 0,x=i;var ne=l,le=G;try{le()}catch(he){yt(x,ne,he)}}}u=u.next}while(u!==v)}}catch(he){yt(i,i.return,he)}}function kb(n){var i=n.updateQueue;if(i!==null){var l=n.stateNode;try{gx(i,l)}catch(u){yt(n,n.return,u)}}}function Cb(n,i,l){l.props=ja(n.type,n.memoizedProps),l.state=n.memoizedState;try{l.componentWillUnmount()}catch(u){yt(n,i,u)}}function Rl(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(x){yt(n,i,x)}}function qr(n,i){var l=n.ref,u=n.refCleanup;if(l!==null)if(typeof u=="function")try{u()}catch(x){yt(n,i,x)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(x){yt(n,i,x)}else l.current=null}function Tb(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(x){yt(n,n.return,x)}}function kf(n,i,l){try{var u=n.stateNode;nk(u,n.type,l,i),u[pn]=i}catch(x){yt(n,n.return,x)}}function Ab(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Wi(n.type)||n.tag===4}function Cf(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Ab(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&&Wi(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 Tf(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&&Wi(n.type)&&(l=n.stateNode,i=null),n=n.child,n!==null))for(Tf(n,i,l),n=n.sibling;n!==null;)Tf(n,i,l),n=n.sibling}function Sc(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&&Wi(n.type)&&(l=n.stateNode),n=n.child,n!==null))for(Sc(n,i,l),n=n.sibling;n!==null;)Sc(n,i,l),n=n.sibling}function Mb(n){var i=n.stateNode,l=n.memoizedProps;try{for(var u=n.type,x=i.attributes;x.length;)i.removeAttributeNode(x[0]);wn(i,u,l),i[Ut]=n,i[pn]=l}catch(v){yt(n,n.return,v)}}var ui=!1,an=!1,Af=!1,Ob=typeof WeakSet=="function"?WeakSet:Set,xn=null;function LS(n,i){if(n=n.containerInfo,Zf=Vc,n=Pg(n),_d(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 x=u.anchorOffset,v=u.focusNode;u=u.focusOffset;try{l.nodeType,v.nodeType}catch{l=null;break e}var T=0,G=-1,ne=-1,le=0,he=0,ge=n,ce=null;t:for(;;){for(var de;ge!==l||x!==0&&ge.nodeType!==3||(G=T+x),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===x&&(G=T),ce===v&&++he===u&&(ne=T),(de=ge.nextSibling)!==null)break;ge=ce,ce=ge.parentNode}ge=de}l=G===-1||ne===-1?null:{start:G,end:ne}}else l=null}l=l||{start:0,end:0}}else l=null;for(Qf={focusedElem:n,selectionRange:l},Vc=!1,xn=i;xn!==null;)if(i=xn,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,xn=n;else for(;xn!==null;){switch(i=xn,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++)x=n[l],x.ref.impl=x.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&v!==null){n=void 0,l=i,x=v.memoizedProps,v=v.memoizedState,u=l.stateNode;try{var Ae=ja(l.type,x);n=u.getSnapshotBeforeUpdate(Ae,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)eh(n);else if(l===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":eh(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,xn=n;break}xn=i.return}}function Rb(n,i,l){var u=l.flags;switch(l.tag){case 0:case 11:case 15:fi(n,l),u&4&&Ol(5,l);break;case 1:if(fi(n,l),u&4)if(n=l.stateNode,i===null)try{n.componentDidMount()}catch(T){yt(l,l.return,T)}else{var x=ja(l.type,i.memoizedProps);i=i.memoizedState;try{n.componentDidUpdate(x,i,n.__reactInternalSnapshotBeforeUpdate)}catch(T){yt(l,l.return,T)}}u&64&&kb(l),u&512&&Rl(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{gx(n,i)}catch(T){yt(l,l.return,T)}}break;case 27:i===null&&u&4&&Mb(l);case 26:case 5:fi(n,l),i===null&&u&4&&Tb(l),u&512&&Rl(l,l.return);break;case 12:fi(n,l);break;case 31:fi(n,l),u&4&&Lb(n,l);break;case 13:fi(n,l),u&4&&zb(n,l),u&64&&(n=l.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(l=FS.bind(null,l),uk(n,l))));break;case 22:if(u=l.memoizedState!==null||ui,!u){i=i!==null&&i.memoizedState!==null||an,x=ui;var v=an;ui=u,(an=i)&&!v?hi(n,l,(l.subtreeFlags&8772)!==0):fi(n,l),ui=x,an=v}break;case 30:break;default:fi(n,l)}}function jb(n){var i=n.alternate;i!==null&&(n.alternate=null,jb(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&xa(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,Un=!1;function di(n,i,l){for(l=l.child;l!==null;)Db(n,i,l),l=l.sibling}function Db(n,i,l){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(Zt,l)}catch{}switch(l.tag){case 26:an||qr(l,i),di(n,i,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:an||qr(l,i);var u=zt,x=Un;Wi(l.type)&&(zt=l.stateNode,Un=!1),di(n,i,l),$l(l.stateNode),zt=u,Un=x;break;case 5:an||qr(l,i);case 6:if(u=zt,x=Un,zt=null,di(n,i,l),zt=u,Un=x,zt!==null)if(Un)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&&(Un?(n=zt,k0(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,l.stateNode),Ds(n)):k0(zt,l.stateNode));break;case 4:u=zt,x=Un,zt=l.stateNode.containerInfo,Un=!0,di(n,i,l),zt=u,Un=x;break;case 0:case 11:case 14:case 15:Gi(2,l,i),an||Gi(4,l,i),di(n,i,l);break;case 1:an||(qr(l,i),u=l.stateNode,typeof u.componentWillUnmount=="function"&&Cb(l,i,u)),di(n,i,l);break;case 21:di(n,i,l);break;case 22:an=(u=an)||l.memoizedState!==null,di(n,i,l),an=u;break;default:di(n,i,l)}}function Lb(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{Ds(n)}catch(l){yt(i,i.return,l)}}}function zb(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Ds(n)}catch(l){yt(i,i.return,l)}}function zS(n){switch(n.tag){case 31:case 13:case 19:var i=n.stateNode;return i===null&&(i=n.stateNode=new Ob),i;case 22:return n=n.stateNode,i=n._retryCache,i===null&&(i=n._retryCache=new Ob),i;default:throw Error(a(435,n.tag))}}function kc(n,i){var l=zS(n);i.forEach(function(u){if(!l.has(u)){l.add(u);var x=GS.bind(null,n,u);u.then(x,x)}})}function Hn(n,i){var l=i.deletions;if(l!==null)for(var u=0;u<l.length;u++){var x=l[u],v=n,T=i,G=T;e:for(;G!==null;){switch(G.tag){case 27:if(Wi(G.type)){zt=G.stateNode,Un=!1;break e}break;case 5:zt=G.stateNode,Un=!1;break e;case 3:case 4:zt=G.stateNode.containerInfo,Un=!0;break e}G=G.return}if(zt===null)throw Error(a(160));Db(v,T,x),zt=null,Un=!1,v=x.alternate,v!==null&&(v.return=null),x.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)Ib(i,n),i=i.sibling}var Cr=null;function Ib(n,i){var l=n.alternate,u=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:Hn(i,n),$n(n),u&4&&(Gi(3,n,n.return),Ol(3,n),Gi(5,n,n.return));break;case 1:Hn(i,n),$n(n),u&512&&(an||l===null||qr(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 x=Cr;if(Hn(i,n),$n(n),u&512&&(an||l===null||qr(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,x=x.ownerDocument||x;t:switch(u){case"title":v=x.getElementsByTagName("title")[0],(!v||v[Wr]||v[Ut]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=x.createElement(u),x.head.insertBefore(v,x.querySelector("head > title"))),wn(v,u,l),v[Ut]=n,Gt(v),u=v;break e;case"link":var T=I0("link","href",x).get(u+(l.href||""));if(T){for(var G=0;G<T.length;G++)if(v=T[G],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(G,1);break t}}v=x.createElement(u),wn(v,u,l),x.head.appendChild(v);break;case"meta":if(T=I0("meta","content",x).get(u+(l.content||""))){for(G=0;G<T.length;G++)if(v=T[G],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(G,1);break t}}v=x.createElement(u),wn(v,u,l),x.head.appendChild(v);break;default:throw Error(a(468,u))}v[Ut]=n,Gt(v),u=v}n.stateNode=u}else B0(x,n.type,n.stateNode);else n.stateNode=z0(x,u,n.memoizedProps);else v!==u?(v===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):v.count--,u===null?B0(x,n.type,n.stateNode):z0(x,u,n.memoizedProps)):u===null&&n.stateNode!==null&&kf(n,n.memoizedProps,l.memoizedProps)}break;case 27:Hn(i,n),$n(n),u&512&&(an||l===null||qr(l,l.return)),l!==null&&u&4&&kf(n,n.memoizedProps,l.memoizedProps);break;case 5:if(Hn(i,n),$n(n),u&512&&(an||l===null||qr(l,l.return)),n.flags&32){x=n.stateNode;try{qe(x,"")}catch(Ae){yt(n,n.return,Ae)}}u&4&&n.stateNode!=null&&(x=n.memoizedProps,kf(n,x,l!==null?l.memoizedProps:x)),u&1024&&(Af=!0);break;case 6:if(Hn(i,n),$n(n),u&4){if(n.stateNode===null)throw Error(a(162));u=n.memoizedProps,l=n.stateNode;try{l.nodeValue=u}catch(Ae){yt(n,n.return,Ae)}}break;case 3:if(qc=null,x=Cr,Cr=Hc(i.containerInfo),Hn(i,n),Cr=x,$n(n),u&4&&l!==null&&l.memoizedState.isDehydrated)try{Ds(i.containerInfo)}catch(Ae){yt(n,n.return,Ae)}Af&&(Af=!1,Bb(n));break;case 4:u=Cr,Cr=Hc(n.stateNode.containerInfo),Hn(i,n),$n(n),Cr=u;break;case 12:Hn(i,n),$n(n);break;case 31:Hn(i,n),$n(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,kc(n,u)));break;case 13:Hn(i,n),$n(n),n.child.flags&8192&&n.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Tc=ct()),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,kc(n,u)));break;case 22:x=n.memoizedState!==null;var ne=l!==null&&l.memoizedState!==null,le=ui,he=an;if(ui=le||x,an=he||ne,Hn(i,n),an=he,ui=le,$n(n),u&8192)e:for(i=n.stateNode,i._visibility=x?i._visibility&-2:i._visibility|1,x&&(l===null||ne||ui||an||Da(n)),l=null,i=n;;){if(i.tag===5||i.tag===26){if(l===null){ne=l=i;try{if(v=ne.stateNode,x)T=v.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none";else{G=ne.stateNode;var ge=ne.memoizedProps.style,ce=ge!=null&&ge.hasOwnProperty("display")?ge.display:null;G.style.display=ce==null||typeof ce=="boolean"?"":(""+ce).trim()}}catch(Ae){yt(ne,ne.return,Ae)}}}else if(i.tag===6){if(l===null){ne=i;try{ne.stateNode.nodeValue=x?"":ne.memoizedProps}catch(Ae){yt(ne,ne.return,Ae)}}}else if(i.tag===18){if(l===null){ne=i;try{var de=ne.stateNode;x?C0(de,!0):C0(ne.stateNode,!1)}catch(Ae){yt(ne,ne.return,Ae)}}}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,kc(n,l))));break;case 19:Hn(i,n),$n(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,kc(n,u)));break;case 30:break;case 21:break;default:Hn(i,n),$n(n)}}function $n(n){var i=n.flags;if(i&2){try{for(var l,u=n.return;u!==null;){if(Ab(u)){l=u;break}u=u.return}if(l==null)throw Error(a(160));switch(l.tag){case 27:var x=l.stateNode,v=Cf(n);Sc(n,v,x);break;case 5:var T=l.stateNode;l.flags&32&&(qe(T,""),l.flags&=-33);var G=Cf(n);Sc(n,G,T);break;case 3:case 4:var ne=l.stateNode.containerInfo,le=Cf(n);Tf(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 Bb(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var i=n;Bb(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;)Rb(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:Gi(4,i,i.return),Da(i);break;case 1:qr(i,i.return);var l=i.stateNode;typeof l.componentWillUnmount=="function"&&Cb(i,i.return,l),Da(i);break;case 27:$l(i.stateNode);case 26:case 5:qr(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,x=n,v=i,T=v.flags;switch(v.tag){case 0:case 11:case 15:hi(x,v,l),Ol(4,v);break;case 1:if(hi(x,v,l),u=v,x=u.stateNode,typeof x.componentDidMount=="function")try{x.componentDidMount()}catch(le){yt(u,u.return,le)}if(u=v,x=u.updateQueue,x!==null){var G=u.stateNode;try{var ne=x.shared.hiddenCallbacks;if(ne!==null)for(x.shared.hiddenCallbacks=null,x=0;x<ne.length;x++)px(ne[x],G)}catch(le){yt(u,u.return,le)}}l&&T&64&&kb(v),Rl(v,v.return);break;case 27:Mb(v);case 26:case 5:hi(x,v,l),l&&u===null&&T&4&&Tb(v),Rl(v,v.return);break;case 12:hi(x,v,l);break;case 31:hi(x,v,l),l&&T&4&&Lb(x,v);break;case 13:hi(x,v,l),l&&T&4&&zb(x,v);break;case 22:v.memoizedState===null&&hi(x,v,l),Rl(v,v.return);break;case 30:break;default:hi(x,v,l)}i=i.sibling}}function Mf(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 Of(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 Tr(n,i,l,u){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)Ub(n,i,l,u),i=i.sibling}function Ub(n,i,l,u){var x=i.flags;switch(i.tag){case 0:case 11:case 15:Tr(n,i,l,u),x&2048&&Ol(9,i);break;case 1:Tr(n,i,l,u);break;case 3:Tr(n,i,l,u),x&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(x&2048){Tr(n,i,l,u),n=i.stateNode;try{var v=i.memoizedProps,T=v.id,G=v.onPostCommit;typeof G=="function"&&G(T,i.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(ne){yt(i,i.return,ne)}}else Tr(n,i,l,u);break;case 31:Tr(n,i,l,u);break;case 13:Tr(n,i,l,u);break;case 23:break;case 22:v=i.stateNode,T=i.alternate,i.memoizedState!==null?v._visibility&2?Tr(n,i,l,u):jl(n,i):v._visibility&2?Tr(n,i,l,u):(v._visibility|=2,Es(n,i,l,u,(i.subtreeFlags&10256)!==0||!1)),x&2048&&Mf(T,i);break;case 24:Tr(n,i,l,u),x&2048&&Of(i.alternate,i);break;default:Tr(n,i,l,u)}}function Es(n,i,l,u,x){for(x=x&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var v=n,T=i,G=l,ne=u,le=T.flags;switch(T.tag){case 0:case 11:case 15:Es(v,T,G,ne,x),Ol(8,T);break;case 23:break;case 22:var he=T.stateNode;T.memoizedState!==null?he._visibility&2?Es(v,T,G,ne,x):jl(v,T):(he._visibility|=2,Es(v,T,G,ne,x)),x&&le&2048&&Mf(T.alternate,T);break;case 24:Es(v,T,G,ne,x),x&&le&2048&&Of(T.alternate,T);break;default:Es(v,T,G,ne,x)}i=i.sibling}}function jl(n,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var l=n,u=i,x=u.flags;switch(u.tag){case 22:jl(l,u),x&2048&&Mf(u.alternate,u);break;case 24:jl(l,u),x&2048&&Of(u.alternate,u);break;default:jl(l,u)}i=i.sibling}}var Dl=8192;function Ns(n,i,l){if(n.subtreeFlags&Dl)for(n=n.child;n!==null;)Hb(n,i,l),n=n.sibling}function Hb(n,i,l){switch(n.tag){case 26:Ns(n,i,l),n.flags&Dl&&n.memoizedState!==null&&wk(l,Cr,n.memoizedState,n.memoizedProps);break;case 5:Ns(n,i,l);break;case 3:case 4:var u=Cr;Cr=Hc(n.stateNode.containerInfo),Ns(n,i,l),Cr=u;break;case 22:n.memoizedState===null&&(u=n.alternate,u!==null&&u.memoizedState!==null?(u=Dl,Dl=16777216,Ns(n,i,l),Dl=u):Ns(n,i,l));break;default:Ns(n,i,l)}}function $b(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 Ll(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];xn=u,Pb(u,n)}$b(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)qb(n),n=n.sibling}function qb(n){switch(n.tag){case 0:case 11:case 15:Ll(n),n.flags&2048&&Gi(9,n,n.return);break;case 3:Ll(n);break;case 12:Ll(n);break;case 22:var i=n.stateNode;n.memoizedState!==null&&i._visibility&2&&(n.return===null||n.return.tag!==13)?(i._visibility&=-3,Cc(n)):Ll(n);break;default:Ll(n)}}function Cc(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];xn=u,Pb(u,n)}$b(n)}for(n=n.child;n!==null;){switch(i=n,i.tag){case 0:case 11:case 15:Gi(8,i,i.return),Cc(i);break;case 22:l=i.stateNode,l._visibility&2&&(l._visibility&=-3,Cc(i));break;default:Cc(i)}n=n.sibling}}function Pb(n,i){for(;xn!==null;){var l=xn;switch(l.tag){case 0:case 11:case 15:Gi(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,xn=u;else e:for(l=n;xn!==null;){u=xn;var x=u.sibling,v=u.return;if(jb(u),u===l){xn=null;break e}if(x!==null){x.return=v,xn=x;break e}xn=v}}}var IS={getCacheForType:function(n){var i=vn(tn),l=i.data.get(n);return l===void 0&&(l=n(),i.data.set(n,l)),l},cacheSignal:function(){return vn(tn).controller.signal}},BS=typeof WeakMap=="function"?WeakMap:Map,pt=0,kt=null,Je=null,it=0,bt=0,Jn=null,Vi=!1,Ss=!1,Rf=!1,mi=0,Yt=0,Yi=0,La=0,jf=0,er=0,ks=0,zl=null,qn=null,Df=!1,Tc=0,Fb=0,Ac=1/0,Mc=null,Xi=null,fn=0,Ki=null,Cs=null,pi=0,Lf=0,zf=null,Gb=null,Il=0,If=null;function tr(){return(pt&2)!==0&&it!==0?it&-it:O.T!==null?Pf():ki()}function Vb(){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 Pn(n,i,l){(n===kt&&(bt===2||bt===9)||n.cancelPendingCommit!==null)&&(Ts(n,0),Zi(n,it,er,!1)),gt(n,l),((pt&2)===0||n!==kt)&&(n===kt&&((pt&2)===0&&(La|=l),Yt===4&&Zi(n,it,er,!1)),Pr(n))}function Yb(n,i,l){if((pt&6)!==0)throw Error(a(327));var u=!l&&(i&127)===0&&(i&n.expiredLanes)===0||me(n,i),x=u?$S(n,i):Uf(n,i,!0),v=u;do{if(x===0){Ss&&!u&&Zi(n,i,0,!1);break}else{if(l=n.current.alternate,v&&!US(l)){x=Uf(n,i,!1),v=!1;continue}if(x===2){if(v=i,n.errorRecoveryDisabledLanes&v)var T=0;else T=n.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){i=T;e:{var G=n;x=zl;var ne=G.current.memoizedState.isDehydrated;if(ne&&(Ts(G,T).flags|=256),T=Uf(G,T,!1),T!==2){if(Rf&&!ne){G.errorRecoveryDisabledLanes|=v,La|=v,x=4;break e}v=qn,qn=x,v!==null&&(qn===null?qn=v:qn.push.apply(qn,v))}x=T}if(v=!1,x!==2)continue}}if(x===1){Ts(n,0),Zi(n,i,0,!0);break}e:{switch(u=n,v=x,v){case 0:case 1:throw Error(a(345));case 4:if((i&4194048)!==i)break;case 6:Zi(u,i,er,!Vi);break e;case 2:qn=null;break;case 3:case 5:break;default:throw Error(a(329))}if((i&62914560)===i&&(x=Tc+300-ct(),10<x)){if(Zi(u,i,er,!Vi),re(u,0,!0)!==0)break e;pi=i,u.timeoutHandle=N0(Xb.bind(null,u,l,qn,Mc,Df,i,er,La,ks,Vi,v,"Throttled",-0,0),x);break e}Xb(u,l,qn,Mc,Df,i,er,La,ks,Vi,v,null,-0,0)}}break}while(!0);Pr(n)}function Xb(n,i,l,u,x,v,T,G,ne,le,he,ge,ce,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},Hb(i,v,ge);var Ae=(v&62914560)===v?Tc-ct():(v&4194048)===v?Fb-ct():0;if(Ae=Ek(ge,Ae),Ae!==null){pi=v,n.cancelPendingCommit=Ae(n0.bind(null,n,i,v,l,u,x,T,G,ne,he,ge,null,ce,de)),Zi(n,v,T,!le);return}}n0(n,i,v,l,u,x,T,G,ne)}function US(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 x=l[u],v=x.getSnapshot;x=x.value;try{if(!Kn(v(),x))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 Zi(n,i,l,u){i&=~jf,i&=~La,n.suspendedLanes|=i,n.pingedLanes&=~i,u&&(n.warmLanes|=i),u=n.expirationTimes;for(var x=i;0<x;){var v=31-ut(x),T=1<<v;u[v]=-1,x&=~T}l!==0&&Se(n,l,i)}function Oc(){return(pt&6)===0?(Bl(0),!1):!0}function Bf(){if(Je!==null){if(bt===0)var n=Je.return;else n=Je,ii=ka=null,Jd(n),bs=null,vl=0,n=Je;for(;n!==null;)Sb(n.alternate,n),n=n.return;Je=null}}function Ts(n,i){var l=n.timeoutHandle;l!==-1&&(n.timeoutHandle=-1,ak(l)),l=n.cancelPendingCommit,l!==null&&(n.cancelPendingCommit=null,l()),pi=0,Bf(),kt=n,Je=l=ni(n.current,null),it=i,bt=0,Jn=null,Vi=!1,Ss=me(n,i),Rf=!1,ks=er=jf=La=Yi=Yt=0,qn=zl=null,Df=!1,(i&8)!==0&&(i|=i&32);var u=n.entangledLanes;if(u!==0)for(n=n.entanglements,u&=i;0<u;){var x=31-ut(u),v=1<<x;i|=n[x],u&=~v}return mi=i,Wo(),l}function Kb(n,i){Xe=null,O.H=Tl,i===xs||i===sc?(i=dx(),bt=3):i===$d?(i=dx(),bt=4):bt=i===gf?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Jn=i,Je===null&&(Yt=1,vc(n,ur(i,n.current)))}function Zb(){var n=Qn.current;return n===null?!0:(it&4194048)===it?mr===null:(it&62914560)===it||(it&536870912)!==0?n===mr:!1}function Qb(){var n=O.H;return O.H=Tl,n===null?Tl:n}function Wb(){var n=O.A;return O.A=IS,n}function Rc(){Yt=4,Vi||(it&4194048)!==it&&Qn.current!==null||(Ss=!0),(Yi&134217727)===0&&(La&134217727)===0||kt===null||Zi(kt,it,er,!1)}function Uf(n,i,l){var u=pt;pt|=2;var x=Qb(),v=Wb();(kt!==n||it!==i)&&(Mc=null,Ts(n,i)),i=!1;var T=Yt;e:do try{if(bt!==0&&Je!==null){var G=Je,ne=Jn;switch(bt){case 8:Bf(),T=6;break e;case 3:case 2:case 9:case 6:Qn.current===null&&(i=!0);var le=bt;if(bt=0,Jn=null,As(n,G,ne,le),l&&Ss){T=0;break e}break;default:le=bt,bt=0,Jn=null,As(n,G,ne,le)}}HS(),T=Yt;break}catch(he){Kb(n,he)}while(!0);return i&&n.shellSuspendCounter++,ii=ka=null,pt=u,O.H=x,O.A=v,Je===null&&(kt=null,it=0,Wo()),T}function HS(){for(;Je!==null;)Jb(Je)}function $S(n,i){var l=pt;pt|=2;var u=Qb(),x=Wb();kt!==n||it!==i?(Mc=null,Ac=ct()+500,Ts(n,i)):Ss=me(n,i);e:do try{if(bt!==0&&Je!==null){i=Je;var v=Jn;t:switch(bt){case 1:bt=0,Jn=null,As(n,i,v,1);break;case 2:case 9:if(cx(v)){bt=0,Jn=null,e0(i);break}i=function(){bt!==2&&bt!==9||kt!==n||(bt=7),Pr(n)},v.then(i,i);break e;case 3:bt=7;break e;case 4:bt=5;break e;case 7:cx(v)?(bt=0,Jn=null,e0(i)):(bt=0,Jn=null,As(n,i,v,7));break;case 5:var T=null;switch(Je.tag){case 26:T=Je.memoizedState;case 5:case 27:var G=Je;if(T?U0(T):G.stateNode.complete){bt=0,Jn=null;var ne=G.sibling;if(ne!==null)Je=ne;else{var le=G.return;le!==null?(Je=le,jc(le)):Je=null}break t}}bt=0,Jn=null,As(n,i,v,5);break;case 6:bt=0,Jn=null,As(n,i,v,6);break;case 8:Bf(),Yt=6;break e;default:throw Error(a(462))}}qS();break}catch(he){Kb(n,he)}while(!0);return ii=ka=null,O.H=u,O.A=x,pt=l,Je!==null?0:(kt=null,it=0,Wo(),Yt)}function qS(){for(;Je!==null&&!Yn();)Jb(Je)}function Jb(n){var i=Eb(n.alternate,n,mi);n.memoizedProps=n.pendingProps,i===null?jc(n):Je=i}function e0(n){var i=n,l=i.alternate;switch(i.tag){case 15:case 0:i=xb(l,i,i.pendingProps,i.type,void 0,it);break;case 11:i=xb(l,i,i.pendingProps,i.type.render,i.ref,it);break;case 5:Jd(i);default:Sb(l,i),i=Je=Wg(i,mi),i=Eb(l,i,mi)}n.memoizedProps=n.pendingProps,i===null?jc(n):Je=i}function As(n,i,l,u){ii=ka=null,Jd(i),bs=null,vl=0;var x=i.return;try{if(MS(n,x,i,l,it)){Yt=1,vc(n,ur(l,n.current)),Je=null;return}}catch(v){if(x!==null)throw Je=x,v;Yt=1,vc(n,ur(l,n.current)),Je=null;return}i.flags&32768?(lt||u===1?n=!0:Ss||(it&536870912)!==0?n=!1:(Vi=n=!0,(u===2||u===9||u===3||u===6)&&(u=Qn.current,u!==null&&u.tag===13&&(u.flags|=16384))),t0(i,n)):jc(i)}function jc(n){var i=n;do{if((i.flags&32768)!==0){t0(i,Vi);return}n=i.return;var l=jS(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);Yt===0&&(Yt=5)}function t0(n,i){do{var l=DS(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);Yt=6,Je=null}function n0(n,i,l,u,x,v,T,G,ne){n.cancelPendingCommit=null;do Dc();while(fn!==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|=kd,Me(n,l,v,T,G,ne),n===kt&&(Je=kt=null,it=0),Cs=i,Ki=n,pi=l,Lf=v,zf=x,Gb=u,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,VS(Oe,function(){return l0(),null})):(n.callbackNode=null,n.callbackPriority=0),u=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||u){u=O.T,O.T=null,x=U.p,U.p=2,T=pt,pt|=4;try{LS(n,i,l)}finally{pt=T,U.p=x,O.T=u}}fn=1,r0(),i0(),a0()}}function r0(){if(fn===1){fn=0;var n=Ki,i=Cs,l=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||l){l=O.T,O.T=null;var u=U.p;U.p=2;var x=pt;pt|=4;try{Ib(i,n);var v=Qf,T=Pg(n.containerInfo),G=v.focusedElem,ne=v.selectionRange;if(T!==G&&G&&G.ownerDocument&&qg(G.ownerDocument.documentElement,G)){if(ne!==null&&_d(G)){var le=ne.start,he=ne.end;if(he===void 0&&(he=le),"selectionStart"in G)G.selectionStart=le,G.selectionEnd=Math.min(he,G.value.length);else{var ge=G.ownerDocument||document,ce=ge&&ge.defaultView||window;if(ce.getSelection){var de=ce.getSelection(),Ae=G.textContent.length,He=Math.min(ne.start,Ae),Nt=ne.end===void 0?He:Math.min(ne.end,Ae);!de.extend&&He>Nt&&(T=Nt,Nt=He,He=T);var ae=$g(G,He),ie=$g(G,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=G;de=de.parentNode;)de.nodeType===1&&ge.push({element:de,left:de.scrollLeft,top:de.scrollTop});for(typeof G.focus=="function"&&G.focus(),G=0;G<ge.length;G++){var pe=ge[G];pe.element.scrollLeft=pe.left,pe.element.scrollTop=pe.top}}Vc=!!Zf,Qf=Zf=null}finally{pt=x,U.p=u,O.T=l}}n.current=i,fn=2}}function i0(){if(fn===2){fn=0;var n=Ki,i=Cs,l=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||l){l=O.T,O.T=null;var u=U.p;U.p=2;var x=pt;pt|=4;try{Rb(n,i.alternate,i)}finally{pt=x,U.p=u,O.T=l}}fn=3}}function a0(){if(fn===4||fn===3){fn=0,Nn();var n=Ki,i=Cs,l=pi,u=Gb;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?fn=5:(fn=0,Cs=Ki=null,s0(n,n.pendingLanes));var x=n.pendingLanes;if(x===0&&(Xi=null),vr(l),i=i.stateNode,At&&typeof At.onCommitFiberRoot=="function")try{At.onCommitFiberRoot(Zt,i,void 0,(i.current.flags&128)===128)}catch{}if(u!==null){i=O.T,x=U.p,U.p=2,O.T=null;try{for(var v=n.onRecoverableError,T=0;T<u.length;T++){var G=u[T];v(G.value,{componentStack:G.stack})}}finally{O.T=i,U.p=x}}(pi&3)!==0&&Dc(),Pr(n),x=n.pendingLanes,(l&261930)!==0&&(x&42)!==0?n===If?Il++:(Il=0,If=n):Il=0,Bl(0)}}function s0(n,i){(n.pooledCacheLanes&=i)===0&&(i=n.pooledCache,i!=null&&(n.pooledCache=null,bl(i)))}function Dc(){return r0(),i0(),a0(),l0()}function l0(){if(fn!==5)return!1;var n=Ki,i=Lf;Lf=0;var l=vr(pi),u=O.T,x=U.p;try{U.p=32>l?32:l,O.T=null,l=zf,zf=null;var v=Ki,T=pi;if(fn=0,Cs=Ki=null,pi=0,(pt&6)!==0)throw Error(a(331));var G=pt;if(pt|=4,qb(v.current),Ub(v,v.current,T,l),pt=G,Bl(0,!1),At&&typeof At.onPostCommitFiberRoot=="function")try{At.onPostCommitFiberRoot(Zt,v)}catch{}return!0}finally{U.p=x,O.T=u,s0(n,i)}}function o0(n,i,l){i=ur(l,i),i=pf(n.stateNode,i,2),n=qi(n,i,2),n!==null&&(gt(n,2),Pr(n))}function yt(n,i,l){if(n.tag===3)o0(n,n,l);else for(;i!==null;){if(i.tag===3){o0(i,n,l);break}else if(i.tag===1){var u=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Xi===null||!Xi.has(u))){n=ur(l,n),l=cb(2),u=qi(i,l,2),u!==null&&(ub(l,u,i,n),gt(u,2),Pr(u));break}}i=i.return}}function Hf(n,i,l){var u=n.pingCache;if(u===null){u=n.pingCache=new BS;var x=new Set;u.set(i,x)}else x=u.get(i),x===void 0&&(x=new Set,u.set(i,x));x.has(l)||(Rf=!0,x.add(l),n=PS.bind(null,n,i,l),i.then(n,n))}function PS(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&&(Yt===4||Yt===3&&(it&62914560)===it&&300>ct()-Tc?(pt&2)===0&&Ts(n,0):jf|=l,ks===it&&(ks=0)),Pr(n)}function c0(n,i){i===0&&(i=Pe()),n=Ea(n,i),n!==null&&(gt(n,i),Pr(n))}function FS(n){var i=n.memoizedState,l=0;i!==null&&(l=i.retryLane),c0(n,l)}function GS(n,i){var l=0;switch(n.tag){case 31:case 13:var u=n.stateNode,x=n.memoizedState;x!==null&&(l=x.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),c0(n,l)}function VS(n,i){return Ft(n,i)}var Lc=null,Ms=null,$f=!1,zc=!1,qf=!1,Qi=0;function Pr(n){n!==Ms&&n.next===null&&(Ms===null?Lc=Ms=n:Ms=Ms.next=n),zc=!0,$f||($f=!0,XS())}function Bl(n,i){if(!qf&&zc){qf=!0;do for(var l=!1,u=Lc;u!==null;){if(n!==0){var x=u.pendingLanes;if(x===0)var v=0;else{var T=u.suspendedLanes,G=u.pingedLanes;v=(1<<31-ut(42|n)+1)-1,v&=x&~(T&~G),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(l=!0,h0(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,h0(u,v));u=u.next}while(l);qf=!1}}function YS(){u0()}function u0(){zc=$f=!1;var n=0;Qi!==0&&ik()&&(n=Qi);for(var i=ct(),l=null,u=Lc;u!==null;){var x=u.next,v=d0(u,i);v===0?(u.next=null,l===null?Lc=x:l.next=x,x===null&&(Ms=l)):(l=u,(n!==0||(v&3)!==0)&&(zc=!0)),u=x}fn!==0&&fn!==5||Bl(n),Qi!==0&&(Qi=0)}function d0(n,i){for(var l=n.suspendedLanes,u=n.pingedLanes,x=n.expirationTimes,v=n.pendingLanes&-62914561;0<v;){var T=31-ut(v),G=1<<T,ne=x[T];ne===-1?((G&l)===0||(G&u)!==0)&&(x[T]=Ee(G,i)):ne<=i&&(n.expiredLanes|=G),v&=~G}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&&(bt===2||bt===9)||n.cancelPendingCommit!==null)return u!==null&&u!==null&&Kt(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&&Kt(u),vr(l)){case 2:case 8:l=be;break;case 32:l=Oe;break;case 268435456:l=Ze;break;default:l=Oe}return u=f0.bind(null,n),l=Ft(l,u),n.callbackPriority=i,n.callbackNode=l,i}return u!==null&&u!==null&&Kt(u),n.callbackPriority=2,n.callbackNode=null,2}function f0(n,i){if(fn!==0&&fn!==5)return n.callbackNode=null,n.callbackPriority=0,null;var l=n.callbackNode;if(Dc()&&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:(Yb(n,u,i),d0(n,ct()),n.callbackNode!=null&&n.callbackNode===l?f0.bind(null,n):null)}function h0(n,i){if(Dc())return null;Yb(n,i,!0)}function XS(){sk(function(){(pt&6)!==0?Ft(ue,YS):u0()})}function Pf(){if(Qi===0){var n=ps;n===0&&(n=nt,nt<<=1,(nt&261888)===0&&(nt=256)),Qi=n}return Qi}function m0(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Di(""+n)}function p0(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 KS(n,i,l,u,x){if(i==="submit"&&l&&l.stateNode===x){var v=m0((x[pn]||null).action),T=u.submitter;T&&(i=(i=T[pn]||null)?m0(i.formAction):T.getAttribute("formAction"),i!==null&&(v=i,T=null));var G=new Xo("action","action",null,u,x);n.push({event:G,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Qi!==0){var ne=T?p0(x,T):new FormData(x);cf(l,{pending:!0,data:ne,method:x.method,action:v},null,ne)}}else typeof v=="function"&&(G.preventDefault(),ne=T?p0(x,T):new FormData(x),cf(l,{pending:!0,data:ne,method:x.method,action:v},v,ne))},currentTarget:x}]})}}for(var Ff=0;Ff<Sd.length;Ff++){var Gf=Sd[Ff],ZS=Gf.toLowerCase(),QS=Gf[0].toUpperCase()+Gf.slice(1);kr(ZS,"on"+QS)}kr(Vg,"onAnimationEnd"),kr(Yg,"onAnimationIteration"),kr(Xg,"onAnimationStart"),kr("dblclick","onDoubleClick"),kr("focusin","onFocus"),kr("focusout","onBlur"),kr(hS,"onTransitionRun"),kr(mS,"onTransitionStart"),kr(pS,"onTransitionCancel"),kr(Kg,"onTransitionEnd"),ye("onMouseEnter",["mouseout","mouseover"]),ye("onMouseLeave",["mouseout","mouseover"]),ye("onPointerEnter",["pointerout","pointerover"]),ye("onPointerLeave",["pointerout","pointerover"]),Nr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Nr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Nr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Nr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Nr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Nr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ul="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(" "),WS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ul));function g0(n,i){i=(i&4)!==0;for(var l=0;l<n.length;l++){var u=n[l],x=u.event;u=u.listeners;e:{var v=void 0;if(i)for(var T=u.length-1;0<=T;T--){var G=u[T],ne=G.instance,le=G.currentTarget;if(G=G.listener,ne!==v&&x.isPropagationStopped())break e;v=G,x.currentTarget=le;try{v(x)}catch(he){Qo(he)}x.currentTarget=null,v=ne}else for(T=0;T<u.length;T++){if(G=u[T],ne=G.instance,le=G.currentTarget,G=G.listener,ne!==v&&x.isPropagationStopped())break e;v=G,x.currentTarget=le;try{v(x)}catch(he){Qo(he)}x.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)||(x0(i,n,2,!1),l.add(u))}function Vf(n,i,l){var u=0;i&&(u|=4),x0(l,n,u,i)}var Ic="_reactListening"+Math.random().toString(36).slice(2);function Yf(n){if(!n[Ic]){n[Ic]=!0,ns.forEach(function(l){l!=="selectionchange"&&(WS.has(l)||Vf(l,!1,n),Vf(l,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[Ic]||(i[Ic]=!0,Vf("selectionchange",!1,i))}}function x0(n,i,l,u){switch(V0(i)){case 2:var x=kk;break;case 8:x=Ck;break;default:x=oh}l=x.bind(null,i,l,n),x=void 0,!fd||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(x=!0),u?x!==void 0?n.addEventListener(i,l,{capture:!0,passive:x}):n.addEventListener(i,l,!0):x!==void 0?n.addEventListener(i,l,{passive:x}):n.addEventListener(i,l,!1)}function Xf(n,i,l,u,x){var v=u;if((i&1)===0&&(i&2)===0&&u!==null)e:for(;;){if(u===null)return;var T=u.tag;if(T===3||T===4){var G=u.stateNode.containerInfo;if(G===x)break;if(T===4)for(T=u.return;T!==null;){var ne=T.tag;if((ne===3||ne===4)&&T.stateNode.containerInfo===x)return;T=T.return}for(;G!==null;){if(T=bn(G),T===null)return;if(ne=T.tag,ne===5||ne===6||ne===26||ne===27){u=v=T;continue e}G=G.parentNode}}u=u.return}Fo(function(){var le=v,he=Ye(l),ge=[];e:{var ce=Zg.get(n);if(ce!==void 0){var de=Xo,Ae=n;switch(n){case"keypress":if(Vo(l)===0)break e;case"keydown":case"keyup":de=G2;break;case"focusin":Ae="focus",de=gd;break;case"focusout":Ae="blur",de=gd;break;case"beforeblur":case"afterblur":de=gd;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=Sg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":de=j2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":de=X2;break;case Vg:case Yg:case Xg:de=z2;break;case Kg:de=Z2;break;case"scroll":case"scrollend":de=O2;break;case"wheel":de=W2;break;case"copy":case"cut":case"paste":de=B2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":de=Cg;break;case"toggle":case"beforetoggle":de=eS}var He=(i&4)!==0,Nt=!He&&(n==="scroll"||n==="scrollend"),ae=He?ce!==null?ce+"Capture":null:ce;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=ll(ie,ae),pe!=null&&He.push(Hl(ie,pe,se))),Nt)break;ie=ie.return}0<He.length&&(ce=new de(ce,Ae,null,l,he),ge.push({event:ce,listeners:He}))}}if((i&7)===0){e:{if(ce=n==="mouseover"||n==="pointerover",de=n==="mouseout"||n==="pointerout",ce&&l!==Re&&(Ae=l.relatedTarget||l.fromElement)&&(bn(Ae)||Ae[_r]))break e;if((de||ce)&&(ce=he.window===he?he:(ce=he.ownerDocument)?ce.defaultView||ce.parentWindow:window,de?(Ae=l.relatedTarget||l.toElement,de=le,Ae=Ae?bn(Ae):null,Ae!==null&&(Nt=o(Ae),He=Ae.tag,Ae!==Nt||He!==5&&He!==27&&He!==6)&&(Ae=null)):(de=null,Ae=le),de!==Ae)){if(He=Sg,pe="onMouseLeave",ae="onMouseEnter",ie="mouse",(n==="pointerout"||n==="pointerover")&&(He=Cg,pe="onPointerLeave",ae="onPointerEnter",ie="pointer"),Nt=de==null?ce:Er(de),se=Ae==null?ce:Er(Ae),ce=new He(pe,ie+"leave",de,l,he),ce.target=Nt,ce.relatedTarget=se,pe=null,bn(he)===le&&(He=new He(ae,ie+"enter",Ae,l,he),He.target=se,He.relatedTarget=Nt,pe=He),Nt=pe,de&&Ae)t:{for(He=JS,ae=de,ie=Ae,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&&b0(ge,ce,de,He,!1),Ae!==null&&Nt!==null&&b0(ge,Nt,Ae,He,!0)}}e:{if(ce=le?Er(le):window,de=ce.nodeName&&ce.nodeName.toLowerCase(),de==="select"||de==="input"&&ce.type==="file")var ht=Lg;else if(jg(ce))if(zg)ht=uS;else{ht=oS;var je=lS}else de=ce.nodeName,!de||de.toLowerCase()!=="input"||ce.type!=="checkbox"&&ce.type!=="radio"?le&&ji(le.elementType)&&(ht=Lg):ht=cS;if(ht&&(ht=ht(n,le))){Dg(ge,ht,l,he);break e}je&&je(n,ce,le),n==="focusout"&&le&&ce.type==="number"&&le.memoizedProps.value!=null&&Ri(ce,"number",ce.value)}switch(je=le?Er(le):window,n){case"focusin":(jg(je)||je.contentEditable==="true")&&(ls=je,wd=le,pl=null);break;case"focusout":pl=wd=ls=null;break;case"mousedown":Ed=!0;break;case"contextmenu":case"mouseup":case"dragend":Ed=!1,Fg(ge,l,he);break;case"selectionchange":if(fS)break;case"keydown":case"keyup":Fg(ge,l,he)}var Ke;if(bd)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 ss?Og(n,l)&&(at="onCompositionEnd"):n==="keydown"&&l.keyCode===229&&(at="onCompositionStart");at&&(Tg&&l.locale!=="ko"&&(ss||at!=="onCompositionStart"?at==="onCompositionEnd"&&ss&&(Ke=Eg()):(Li=he,hd="value"in Li?Li.value:Li.textContent,ss=!0)),je=Bc(le,at),0<je.length&&(at=new kg(at,n,null,l,he),ge.push({event:at,listeners:je}),Ke?at.data=Ke:(Ke=Rg(l),Ke!==null&&(at.data=Ke)))),(Ke=nS?rS(n,l):iS(n,l))&&(at=Bc(le,"onBeforeInput"),0<at.length&&(je=new kg("onBeforeInput","beforeinput",null,l,he),ge.push({event:je,listeners:at}),je.data=Ke)),KS(ge,n,le,l,he)}g0(ge,i)})}function Hl(n,i,l){return{instance:n,listener:i,currentTarget:l}}function Bc(n,i){for(var l=i+"Capture",u=[];n!==null;){var x=n,v=x.stateNode;if(x=x.tag,x!==5&&x!==26&&x!==27||v===null||(x=ll(n,l),x!=null&&u.unshift(Hl(n,x,v)),x=ll(n,i),x!=null&&u.push(Hl(n,x,v))),n.tag===3)return u;n=n.return}return[]}function JS(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function b0(n,i,l,u,x){for(var v=i._reactName,T=[];l!==null&&l!==u;){var G=l,ne=G.alternate,le=G.stateNode;if(G=G.tag,ne!==null&&ne===u)break;G!==5&&G!==26&&G!==27||le===null||(ne=le,x?(le=ll(l,v),le!=null&&T.unshift(Hl(l,le,ne))):x||(le=ll(l,v),le!=null&&T.push(Hl(l,le,ne)))),l=l.return}T.length!==0&&n.push({event:i,listeners:T})}var ek=/\r\n?/g,tk=/\u0000|\uFFFD/g;function y0(n){return(typeof n=="string"?n:""+n).replace(ek,`
-`).replace(tk,"")}function v0(n,i){return i=y0(i),y0(n)===i}function Et(n,i,l,u,x,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":Rn(n,"class",u);break;case"tabIndex":Rn(n,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Rn(n,l,u);break;case"style":xt(n,u,v);break;case"data":if(i!=="object"){Rn(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",x.name,x,null),Et(n,i,"formEncType",x.formEncType,x,null),Et(n,i,"formMethod",x.formMethod,x,null),Et(n,i,"formTarget",x.formTarget,x,null)):(Et(n,i,"encType",x.encType,x,null),Et(n,i,"method",x.method,x,null),Et(n,i,"target",x.target,x,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(x.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),gn(n,"popover",u);break;case"xlinkActuate":kn(n,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":kn(n,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":kn(n,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":kn(n,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":kn(n,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":kn(n,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":kn(n,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":kn(n,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":kn(n,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":gn(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,gn(n,l,u))}}function Kf(n,i,l,u,x,v){switch(l){case"style":xt(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(x.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"&&(x=l.endsWith("Capture"),i=l.slice(2,x?l.length-7:void 0),v=n[pn]||null,v=v!=null?v[l]:null,typeof v=="function"&&n.removeEventListener(i,v,x),typeof u=="function")){typeof v!="function"&&v!==null&&(l in n?n[l]=null:n.hasAttribute(l)&&n.removeAttribute(l)),n.addEventListener(i,u,x);break e}l in n?n[l]=u:u===!0?n.setAttribute(l,""):gn(n,l,u)}}}function wn(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,x=!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":x=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:Et(n,i,v,T,l,null)}}x&&Et(n,i,"srcSet",l.srcSet,l,null),u&&Et(n,i,"src",l.src,l,null);return;case"input":et("invalid",n);var G=v=T=x=null,ne=null,le=null;for(u in l)if(l.hasOwnProperty(u)){var he=l[u];if(he!=null)switch(u){case"name":x=he;break;case"type":T=he;break;case"checked":ne=he;break;case"defaultChecked":le=he;break;case"value":v=he;break;case"defaultValue":G=he;break;case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(a(137,i));break;default:Et(n,i,u,he,l,null)}}Sr(n,v,G,ne,le,T,x,!1);return;case"select":et("invalid",n),u=T=v=null;for(x in l)if(l.hasOwnProperty(x)&&(G=l[x],G!=null))switch(x){case"value":v=G;break;case"defaultValue":T=G;break;case"multiple":u=G;default:Et(n,i,x,G,l,null)}i=v,l=T,n.multiple=!!u,i!=null?dn(n,!!u,i,!1):l!=null&&dn(n,!!u,l,!0);return;case"textarea":et("invalid",n),v=x=u=null;for(T in l)if(l.hasOwnProperty(T)&&(G=l[T],G!=null))switch(T){case"value":u=G;break;case"defaultValue":x=G;break;case"children":v=G;break;case"dangerouslySetInnerHTML":if(G!=null)throw Error(a(91));break;default:Et(n,i,T,G,l,null)}as(n,u,x,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<Ul.length;u++)et(Ul[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(ji(i)){for(he in l)l.hasOwnProperty(he)&&(u=l[he],u!==void 0&&Kf(n,i,he,u,l,void 0));return}}for(G in l)l.hasOwnProperty(G)&&(u=l[G],u!=null&&Et(n,i,G,u,l,null))}function nk(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 x=null,v=null,T=null,G=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 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":x=de;break;case"checked":le=de;break;case"defaultChecked":he=de;break;case"value":T=de;break;case"defaultValue":G=de;break;case"children":case"dangerouslySetInnerHTML":if(de!=null)throw Error(a(137,i));break;default:de!==ge&&Et(n,i,ce,de,u,ge)}}ba(n,T,G,ne,le,he,v,x);return;case"select":de=T=G=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,i,v,null,u,ne)}for(x in u)if(v=u[x],ne=l[x],u.hasOwnProperty(x)&&(v!=null||ne!=null))switch(x){case"value":ce=v;break;case"defaultValue":G=v;break;case"multiple":T=v;default:v!==ne&&Et(n,i,x,v,u,ne)}i=G,l=T,u=de,ce!=null?dn(n,!!l,ce,!1):!!u!=!!l&&(i!=null?dn(n,!!l,i,!0):dn(n,!!l,l?[]:"",!1));return;case"textarea":de=ce=null;for(G in l)if(x=l[G],l.hasOwnProperty(G)&&x!=null&&!u.hasOwnProperty(G))switch(G){case"value":break;case"children":break;default:Et(n,i,G,null,u,x)}for(T in u)if(x=u[T],v=l[T],u.hasOwnProperty(T)&&(x!=null||v!=null))switch(T){case"value":ce=x;break;case"defaultValue":de=x;break;case"children":break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(a(91));break;default:x!==v&&Et(n,i,T,x,u,v)}ya(n,ce,de);return;case"option":for(var Ae in l)if(ce=l[Ae],l.hasOwnProperty(Ae)&&ce!=null&&!u.hasOwnProperty(Ae))switch(Ae){case"selected":n.selected=!1;break;default:Et(n,i,Ae,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,i,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,i,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,i));break;default:Et(n,i,le,ce,u,de)}return;default:if(ji(i)){for(var Nt in l)ce=l[Nt],l.hasOwnProperty(Nt)&&ce!==void 0&&!u.hasOwnProperty(Nt)&&Kf(n,i,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||Kf(n,i,he,ce,u,de);return}}for(var ae in l)ce=l[ae],l.hasOwnProperty(ae)&&ce!=null&&!u.hasOwnProperty(ae)&&Et(n,i,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,i,ge,ce,u,de)}function _0(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function rk(){if(typeof performance.getEntriesByType=="function"){for(var n=0,i=0,l=performance.getEntriesByType("resource"),u=0;u<l.length;u++){var x=l[u],v=x.transferSize,T=x.initiatorType,G=x.duration;if(v&&G&&_0(T)){for(T=0,G=x.responseEnd,u+=1;u<l.length;u++){var ne=l[u],le=ne.startTime;if(le>G)break;var he=ne.transferSize,ge=ne.initiatorType;he&&_0(ge)&&(ne=ne.responseEnd,T+=he*(ne<G?1:(G-le)/(ne-le)))}if(--u,i+=8*(v+T)/(x.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 Zf=null,Qf=null;function Uc(n){return n.nodeType===9?n:n.ownerDocument}function w0(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 E0(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 Wf(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 Jf=null;function ik(){var n=window.event;return n&&n.type==="popstate"?n===Jf?!1:(Jf=n,!0):(Jf=null,!1)}var N0=typeof setTimeout=="function"?setTimeout:void 0,ak=typeof clearTimeout=="function"?clearTimeout:void 0,S0=typeof Promise=="function"?Promise:void 0,sk=typeof queueMicrotask=="function"?queueMicrotask:typeof S0<"u"?function(n){return S0.resolve(null).then(n).catch(lk)}:N0;function lk(n){setTimeout(function(){throw n})}function Wi(n){return n==="head"}function k0(n,i){var l=i,u=0;do{var x=l.nextSibling;if(n.removeChild(l),x&&x.nodeType===8)if(l=x.data,l==="/$"||l==="/&"){if(u===0){n.removeChild(x),Ds(i);return}u--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")u++;else if(l==="html")$l(n.ownerDocument.documentElement);else if(l==="head"){l=n.ownerDocument.head,$l(l);for(var v=l.firstChild;v;){var T=v.nextSibling,G=v.nodeName;v[Wr]||G==="SCRIPT"||G==="STYLE"||G==="LINK"&&v.rel.toLowerCase()==="stylesheet"||l.removeChild(v),v=T}}else l==="body"&&$l(n.ownerDocument.body);l=x}while(l);Ds(i)}function C0(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 eh(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":eh(l),xa(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}n.removeChild(l)}}function ok(n,i,l,u){for(;n.nodeType===1;){var x=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!==x.rel||n.getAttribute("href")!==(x.href==null||x.href===""?null:x.href)||n.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin)||n.getAttribute("title")!==(x.title==null?null:x.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(v=n.getAttribute("src"),(v!==(x.src==null?null:x.src)||n.getAttribute("type")!==(x.type==null?null:x.type)||n.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin))&&v&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(i==="input"&&n.type==="hidden"){var v=x.name==null?null:""+x.name;if(x.type==="hidden"&&n.getAttribute("name")===v)return n}else return n;if(n=pr(n.nextSibling),n===null)break}return null}function ck(n,i,l){if(i==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!l||(n=pr(n.nextSibling),n===null))return null;return n}function T0(n,i){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!i||(n=pr(n.nextSibling),n===null))return null;return n}function th(n){return n.data==="$?"||n.data==="$~"}function nh(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function uk(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 pr(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 rh=null;function A0(n){n=n.nextSibling;for(var i=0;n;){if(n.nodeType===8){var l=n.data;if(l==="/$"||l==="/&"){if(i===0)return pr(n.nextSibling);i--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||i++}n=n.nextSibling}return null}function M0(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 O0(n,i,l){switch(i=Uc(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 $l(n){for(var i=n.attributes;i.length;)n.removeAttributeNode(i[0]);xa(n)}var gr=new Map,R0=new Set;function Hc(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var gi=U.d;U.d={f:dk,r:fk,D:hk,C:mk,L:pk,m:gk,X:bk,S:xk,M:yk};function dk(){var n=gi.f(),i=Oc();return n||i}function fk(n){var i=wr(n);i!==null&&i.tag===5&&i.type==="form"?Kx(i):gi.r(n)}var Os=typeof document>"u"?null:document;function j0(n,i,l){var u=Os;if(u&&typeof i=="string"&&i){var x=Cn(i);x='link[rel="'+n+'"][href="'+x+'"]',typeof l=="string"&&(x+='[crossorigin="'+l+'"]'),R0.has(x)||(R0.add(x),n={rel:n,crossOrigin:l,href:i},u.querySelector(x)===null&&(i=u.createElement("link"),wn(i,"link",n),Gt(i),u.head.appendChild(i)))}}function hk(n){gi.D(n),j0("dns-prefetch",n,null)}function mk(n,i){gi.C(n,i),j0("preconnect",n,i)}function pk(n,i,l){gi.L(n,i,l);var u=Os;if(u&&n&&i){var x='link[rel="preload"][as="'+Cn(i)+'"]';i==="image"&&l&&l.imageSrcSet?(x+='[imagesrcset="'+Cn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(x+='[imagesizes="'+Cn(l.imageSizes)+'"]')):x+='[href="'+Cn(n)+'"]';var v=x;switch(i){case"style":v=Rs(n);break;case"script":v=js(n)}gr.has(v)||(n=g({rel:"preload",href:i==="image"&&l&&l.imageSrcSet?void 0:n,as:i},l),gr.set(v,n),u.querySelector(x)!==null||i==="style"&&u.querySelector(ql(v))||i==="script"&&u.querySelector(Pl(v))||(i=u.createElement("link"),wn(i,"link",n),Gt(i),u.head.appendChild(i)))}}function gk(n,i){gi.m(n,i);var l=Os;if(l&&n){var u=i&&typeof i.as=="string"?i.as:"script",x='link[rel="modulepreload"][as="'+Cn(u)+'"][href="'+Cn(n)+'"]',v=x;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=js(n)}if(!gr.has(v)&&(n=g({rel:"modulepreload",href:n},i),gr.set(v,n),l.querySelector(x)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Pl(v)))return}u=l.createElement("link"),wn(u,"link",n),Gt(u),l.head.appendChild(u)}}}function xk(n,i,l){gi.S(n,i,l);var u=Os;if(u&&n){var x=Br(u).hoistableStyles,v=Rs(n);i=i||"default";var T=x.get(v);if(!T){var G={loading:0,preload:null};if(T=u.querySelector(ql(v)))G.loading=5;else{n=g({rel:"stylesheet",href:n,"data-precedence":i},l),(l=gr.get(v))&&ih(n,l);var ne=T=u.createElement("link");Gt(ne),wn(ne,"link",n),ne._p=new Promise(function(le,he){ne.onload=le,ne.onerror=he}),ne.addEventListener("load",function(){G.loading|=1}),ne.addEventListener("error",function(){G.loading|=2}),G.loading|=4,$c(T,i,u)}T={type:"stylesheet",instance:T,count:1,state:G},x.set(v,T)}}}function bk(n,i){gi.X(n,i);var l=Os;if(l&&n){var u=Br(l).hoistableScripts,x=js(n),v=u.get(x);v||(v=l.querySelector(Pl(x)),v||(n=g({src:n,async:!0},i),(i=gr.get(x))&&ah(n,i),v=l.createElement("script"),Gt(v),wn(v,"link",n),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(x,v))}}function yk(n,i){gi.M(n,i);var l=Os;if(l&&n){var u=Br(l).hoistableScripts,x=js(n),v=u.get(x);v||(v=l.querySelector(Pl(x)),v||(n=g({src:n,async:!0,type:"module"},i),(i=gr.get(x))&&ah(n,i),v=l.createElement("script"),Gt(v),wn(v,"link",n),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(x,v))}}function D0(n,i,l,u){var x=(x=Q.current)?Hc(x):null;if(!x)throw Error(a(446));switch(n){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(i=Rs(l.href),l=Br(x).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=Rs(l.href);var v=Br(x).hoistableStyles,T=v.get(n);if(T||(x=x.ownerDocument||x,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(n,T),(v=x.querySelector(ql(n)))&&!v._p&&(T.instance=v,T.state.loading=5),gr.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},gr.set(n,l),v||vk(x,n,l,T.state))),i&&u===null)throw Error(a(528,""));return T}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=js(l),l=Br(x).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 Rs(n){return'href="'+Cn(n)+'"'}function ql(n){return'link[rel="stylesheet"]['+n+"]"}function L0(n){return g({},n,{"data-precedence":n.precedence,precedence:null})}function vk(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}),wn(i,"link",l),Gt(i),n.head.appendChild(i))}function js(n){return'[src="'+Cn(n)+'"]'}function Pl(n){return"script[async]"+n}function z0(n,i,l){if(i.count++,i.instance===null)switch(i.type){case"style":var u=n.querySelector('style[data-href~="'+Cn(l.href)+'"]');if(u)return i.instance=u,Gt(u),u;var x=g({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return u=(n.ownerDocument||n).createElement("style"),Gt(u),wn(u,"style",x),$c(u,l.precedence,n),i.instance=u;case"stylesheet":x=Rs(l.href);var v=n.querySelector(ql(x));if(v)return i.state.loading|=4,i.instance=v,Gt(v),v;u=L0(l),(x=gr.get(x))&&ih(u,x),v=(n.ownerDocument||n).createElement("link"),Gt(v);var T=v;return T._p=new Promise(function(G,ne){T.onload=G,T.onerror=ne}),wn(v,"link",u),i.state.loading|=4,$c(v,l.precedence,n),i.instance=v;case"script":return v=js(l.src),(x=n.querySelector(Pl(v)))?(i.instance=x,Gt(x),x):(u=l,(x=gr.get(v))&&(u=g({},l),ah(u,x)),n=n.ownerDocument||n,x=n.createElement("script"),Gt(x),wn(x,"link",u),n.head.appendChild(x),i.instance=x);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,$c(u,l.precedence,n));return i.instance}function $c(n,i,l){for(var u=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),x=u.length?u[u.length-1]:null,v=x,T=0;T<u.length;T++){var G=u[T];if(G.dataset.precedence===i)v=G;else if(v!==x)break}v?v.parentNode.insertBefore(n,v.nextSibling):(i=l.nodeType===9?l.head:l,i.insertBefore(n,i.firstChild))}function ih(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.title==null&&(n.title=i.title)}function ah(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.integrity==null&&(n.integrity=i.integrity)}var qc=null;function I0(n,i,l){if(qc===null){var u=new Map,x=qc=new Map;x.set(l,u)}else x=qc,u=x.get(l),u||(u=new Map,x.set(l,u));if(u.has(n))return u;for(u.set(n,null),l=l.getElementsByTagName(n),x=0;x<l.length;x++){var v=l[x];if(!(v[Wr]||v[Ut]||n==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var T=v.getAttribute(i)||"";T=n+T;var G=u.get(T);G?G.push(v):u.set(T,[v])}}return u}function B0(n,i,l){n=n.ownerDocument||n,n.head.insertBefore(l,i==="title"?n.querySelector("head > title"):null)}function _k(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 U0(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function wk(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 x=Rs(u.href),v=i.querySelector(ql(x));if(v){i=v._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(n.count++,n=Pc.bind(n),i.then(n,n)),l.state.loading|=4,l.instance=v,Gt(v);return}v=i.ownerDocument||i,u=L0(u),(x=gr.get(x))&&ih(u,x),v=v.createElement("link"),Gt(v);var T=v;T._p=new Promise(function(G,ne){T.onload=G,T.onerror=ne}),wn(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=Pc.bind(n),i.addEventListener("load",l),i.addEventListener("error",l))}}var sh=0;function Ek(n,i){return n.stylesheets&&n.count===0&&Gc(n,n.stylesheets),0<n.count||0<n.imgCount?function(l){var u=setTimeout(function(){if(n.stylesheets&&Gc(n,n.stylesheets),n.unsuspend){var v=n.unsuspend;n.unsuspend=null,v()}},6e4+i);0<n.imgBytes&&sh===0&&(sh=62500*rk());var x=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Gc(n,n.stylesheets),n.unsuspend)){var v=n.unsuspend;n.unsuspend=null,v()}},(n.imgBytes>sh?50:800)+i);return n.unsuspend=l,function(){n.unsuspend=null,clearTimeout(u),clearTimeout(x)}}:null}function Pc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Gc(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Fc=null;function Gc(n,i){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Fc=new Map,i.forEach(Nk,n),Fc=null,Pc.call(n))}function Nk(n,i){if(!(i.state.loading&4)){var l=Fc.get(n);if(l)var u=l.get(null);else{l=new Map,Fc.set(n,l);for(var x=n.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<x.length;v++){var T=x[v];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(l.set(T.dataset.precedence,T),u=T)}u&&l.set(null,u)}x=i.instance,T=x.getAttribute("data-precedence"),v=l.get(T)||u,v===u&&l.set(null,x),l.set(T,x),this.count++,u=Pc.bind(this),x.addEventListener("load",u),x.addEventListener("error",u),v?v.parentNode.insertBefore(x,v.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(x,n.firstChild)),i.state.loading|=4}}var Fl={$$typeof:E,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function Sk(n,i,l,u,x,v,T,G,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=x,this.onCaughtError=v,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ne,this.incompleteTransitions=new Map}function H0(n,i,l,u,x,v,T,G,ne,le,he,ge){return n=new Sk(n,i,l,T,ne,le,he,ge,G),i=1,v===!0&&(i|=24),v=Zn(3,null,null,i),n.current=v,v.stateNode=n,i=Bd(),i.refCount++,n.pooledCache=i,i.refCount++,v.memoizedState={element:u,isDehydrated:l,cache:i},qd(v),n}function $0(n){return n?(n=us,n):us}function q0(n,i,l,u,x,v){x=$0(x),u.context===null?u.context=x:u.pendingContext=x,u=$i(i),u.payload={element:l},v=v===void 0?null:v,v!==null&&(u.callback=v),l=qi(n,u,i),l!==null&&(Pn(l,n,i),wl(l,n,i))}function P0(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var l=n.retryLane;n.retryLane=l!==0&&l<i?l:i}}function lh(n,i){P0(n,i),(n=n.alternate)&&P0(n,i)}function F0(n){if(n.tag===13||n.tag===31){var i=Ea(n,67108864);i!==null&&Pn(i,n,67108864),lh(n,67108864)}}function G0(n){if(n.tag===13||n.tag===31){var i=tr();i=Mt(i);var l=Ea(n,i);l!==null&&Pn(l,n,i),lh(n,i)}}var Vc=!0;function kk(n,i,l,u){var x=O.T;O.T=null;var v=U.p;try{U.p=2,oh(n,i,l,u)}finally{U.p=v,O.T=x}}function Ck(n,i,l,u){var x=O.T;O.T=null;var v=U.p;try{U.p=8,oh(n,i,l,u)}finally{U.p=v,O.T=x}}function oh(n,i,l,u){if(Vc){var x=ch(u);if(x===null)Xf(n,i,u,Yc,l),Y0(n,u);else if(Ak(x,n,i,l,u))u.stopPropagation();else if(Y0(n,u),i&4&&-1<Tk.indexOf(n)){for(;x!==null;){var v=wr(x);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var T=mn(v.pendingLanes);if(T!==0){var G=v;for(G.pendingLanes|=2,G.entangledLanes|=2;T;){var ne=1<<31-ut(T);G.entanglements[1]|=ne,T&=~ne}Pr(v),(pt&6)===0&&(Ac=ct()+500,Bl(0))}}break;case 31:case 13:G=Ea(v,2),G!==null&&Pn(G,v,2),Oc(),lh(v,2)}if(v=ch(u),v===null&&Xf(n,i,u,Yc,l),v===x)break;x=v}x!==null&&u.stopPropagation()}else Xf(n,i,u,null,l)}}function ch(n){return n=Ye(n),uh(n)}var Yc=null;function uh(n){if(Yc=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 Yc=n,null}function V0(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 be:return 8;case Oe:case Fe:return 32;case Ze:return 268435456;default:return 32}default:return 32}}var dh=!1,Ji=null,ea=null,ta=null,Gl=new Map,Vl=new Map,na=[],Tk="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 Y0(n,i){switch(n){case"focusin":case"focusout":Ji=null;break;case"dragenter":case"dragleave":ea=null;break;case"mouseover":case"mouseout":ta=null;break;case"pointerover":case"pointerout":Gl.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vl.delete(i.pointerId)}}function Yl(n,i,l,u,x,v){return n===null||n.nativeEvent!==v?(n={blockedOn:i,domEventName:l,eventSystemFlags:u,nativeEvent:v,targetContainers:[x]},i!==null&&(i=wr(i),i!==null&&F0(i)),n):(n.eventSystemFlags|=u,i=n.targetContainers,x!==null&&i.indexOf(x)===-1&&i.push(x),n)}function Ak(n,i,l,u,x){switch(i){case"focusin":return Ji=Yl(Ji,n,i,l,u,x),!0;case"dragenter":return ea=Yl(ea,n,i,l,u,x),!0;case"mouseover":return ta=Yl(ta,n,i,l,u,x),!0;case"pointerover":var v=x.pointerId;return Gl.set(v,Yl(Gl.get(v)||null,n,i,l,u,x)),!0;case"gotpointercapture":return v=x.pointerId,Vl.set(v,Yl(Vl.get(v)||null,n,i,l,u,x)),!0}return!1}function X0(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,Ci(n.priority,function(){G0(l)});return}}else if(i===31){if(i=d(l),i!==null){n.blockedOn=i,Ci(n.priority,function(){G0(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 Xc(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var l=ch(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=wr(l),i!==null&&F0(i),n.blockedOn=l,!1;i.shift()}return!0}function K0(n,i,l){Xc(n)&&l.delete(i)}function Mk(){dh=!1,Ji!==null&&Xc(Ji)&&(Ji=null),ea!==null&&Xc(ea)&&(ea=null),ta!==null&&Xc(ta)&&(ta=null),Gl.forEach(K0),Vl.forEach(K0)}function Kc(n,i){n.blockedOn===i&&(n.blockedOn=null,dh||(dh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Mk)))}var Zc=null;function Z0(n){Zc!==n&&(Zc=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Zc===n&&(Zc=null);for(var i=0;i<n.length;i+=3){var l=n[i],u=n[i+1],x=n[i+2];if(typeof u!="function"){if(uh(u||l)===null)continue;break}var v=wr(l);v!==null&&(n.splice(i,3),i-=3,cf(v,{pending:!0,data:x,method:l.method,action:u},u,x))}}))}function Ds(n){function i(ne){return Kc(ne,n)}Ji!==null&&Kc(Ji,n),ea!==null&&Kc(ea,n),ta!==null&&Kc(ta,n),Gl.forEach(i),Vl.forEach(i);for(var l=0;l<na.length;l++){var u=na[l];u.blockedOn===n&&(u.blockedOn=null)}for(;0<na.length&&(l=na[0],l.blockedOn===null);)X0(l),l.blockedOn===null&&na.shift();if(l=(n.ownerDocument||n).$$reactFormReplay,l!=null)for(u=0;u<l.length;u+=3){var x=l[u],v=l[u+1],T=x[pn]||null;if(typeof v=="function")T||Z0(l);else if(T){var G=null;if(v&&v.hasAttribute("formAction")){if(x=v,T=v[pn]||null)G=T.formAction;else if(uh(x)!==null)continue}else G=T.action;typeof G=="function"?l[u+1]=G:(l.splice(u,3),u-=3),Z0(l)}}}function Q0(){function n(v){v.canIntercept&&v.info==="react-transition"&&v.intercept({handler:function(){return new Promise(function(T){return x=T})},focusReset:"manual",scroll:"manual"})}function i(){x!==null&&(x(),x=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,x=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),x!==null&&(x(),x=null)}}}function fh(n){this._internalRoot=n}Qc.prototype.render=fh.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(a(409));var l=i.current,u=tr();q0(l,u,n,i,null,null)},Qc.prototype.unmount=fh.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;q0(n.current,2,null,n,null,null),Oc(),i[_r]=null}};function Qc(n){this._internalRoot=n}Qc.prototype.unstable_scheduleHydration=function(n){if(n){var i=ki();n={blockedOn:null,target:n,priority:i};for(var l=0;l<na.length&&i!==0&&i<na[l].priority;l++);na.splice(l,0,n),l===0&&X0(n)}};var W0=t.version;if(W0!=="19.2.7")throw Error(a(527,W0,"19.2.7"));U.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=f(i),n=n!==null?p(n):null,n=n===null?null:n.stateNode,n};var Ok={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wc.isDisabled&&Wc.supportsFiber)try{Zt=Wc.inject(Ok),At=Wc}catch{}}return Kl.createRoot=function(n,i){if(!s(n))throw Error(a(299));var l=!1,u="",x=ab,v=sb,T=lb;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(x=i.onUncaughtError),i.onCaughtError!==void 0&&(v=i.onCaughtError),i.onRecoverableError!==void 0&&(T=i.onRecoverableError)),i=H0(n,1,!1,null,null,l,u,null,x,v,T,Q0),n[_r]=i.current,Yf(n),new fh(i)},Kl.hydrateRoot=function(n,i,l){if(!s(n))throw Error(a(299));var u=!1,x="",v=ab,T=sb,G=lb,ne=null;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(x=l.identifierPrefix),l.onUncaughtError!==void 0&&(v=l.onUncaughtError),l.onCaughtError!==void 0&&(T=l.onCaughtError),l.onRecoverableError!==void 0&&(G=l.onRecoverableError),l.formState!==void 0&&(ne=l.formState)),i=H0(n,1,!0,i,l??null,u,x,ne,v,T,G,Q0),i.context=$0(null),l=i.current,u=tr(),u=Mt(u),x=$i(u),x.callback=null,qi(l,x,u),l=u,i.current.lanes=l,gt(i,l),Pr(i),n[_r]=i.current,Yf(n),new Qc(i)},Kl.version="19.2.7",Kl}var oy;function Hk(){if(oy)return ph.exports;oy=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(),ph.exports=Uk(),ph.exports}var $k=Hk();/**
+`+u.stack}}var Xt=Object.prototype.hasOwnProperty,Ft=e.unstable_scheduleCallback,Kt=e.unstable_cancelCallback,Yn=e.unstable_shouldYield,Nn=e.unstable_requestPaint,ct=e.unstable_now,It=e.unstable_getCurrentPriorityLevel,ue=e.unstable_ImmediatePriority,be=e.unstable_UserBlockingPriority,Oe=e.unstable_NormalPriority,Fe=e.unstable_LowPriority,Ze=e.unstable_IdlePriority,cn=e.log,Sn=e.unstable_setDisableYieldValue,Zt=null,At=null;function Jt(n){if(typeof cn=="function"&&Sn(n),At&&typeof At.setStrictMode=="function")try{At.setStrictMode(Zt,n)}catch{}}var ut=Math.clz32?Math.clz32:Si,In=Math.log,un=Math.LN2;function Si(n){return n>>>=0,n===0?32:31-(In(n)/un|0)|0}var nt=256,Xn=262144,On=4194304;function mn(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 x=0,v=n.suspendedLanes,T=n.pingedLanes;n=n.warmLanes;var G=u&134217727;return G!==0?(u=G&~v,u!==0?x=mn(u):(T&=G,T!==0?x=mn(T):l||(l=G&~n,l!==0&&(x=mn(l))))):(G=u&~v,G!==0?x=mn(G):T!==0?x=mn(T):l||(l=u&~n,l!==0&&(x=mn(l)))),x===0?0:i!==0&&i!==x&&(i&v)===0&&(v=x&-x,l=i&-i,v>=l||v===32&&(l&4194048)!==0)?i:x}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=On;return On<<=1,(On&62914560)===0&&(On=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 Me(n,i,l,u,x,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 G=n.entanglements,ne=n.expirationTimes,le=n.hiddenUpdates;for(l=T&~l;0<l;){var he=31-ut(l),ge=1<<he;G[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&&x===0&&n.tag!==0&&(n.suspendedLanes|=v&~(T&~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),x=1<<u;x&i|n[u]&i&&(n[u]|=i),l&=~x}}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 vr(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function ki(){var n=U.p;return n!==0?n:(n=window.event,n===void 0?32:V0(n.type))}function Ci(n,i){var l=U.p;try{return U.p=n,i()}finally{U.p=l}}var lr=Math.random().toString(36).slice(2),Ut="__reactFiber$"+lr,pn="__reactProps$"+lr,_r="__reactContainer$"+lr,Ti="__reactEvents$"+lr,ga="__reactListeners$"+lr,Ai="__reactHandles$"+lr,ts="__reactResources$"+lr,Wr="__reactMarker$"+lr;function xa(n){delete n[Ut],delete n[pn],delete n[Ti],delete n[ga],delete n[Ai]}function bn(n){var i=n[Ut];if(i)return i;for(var l=n.parentNode;l;){if(i=l[_r]||l[Ut]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(n=M0(n);n!==null;){if(l=n[Ut])return l;n=M0(n)}return i}n=l,l=n.parentNode}return null}function wr(n){if(n=n[Ut]||n[_r]){var i=n.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return n}return null}function Er(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n.stateNode;throw Error(a(33))}function Br(n){var i=n[ts];return i||(i=n[ts]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Gt(n){n[Wr]=!0}var ns=new Set,Jr={};function Nr(n,i){ye(n,i),ye(n+"Capture",i)}function ye(n,i){for(Jr[n]=i,n=0;n<i.length;n++)ns.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 Xt.call(ft,n)?!0:Xt.call(Qe,n)?!1:Le.test(n)?ft[n]=!0:(Qe[n]=!0,!1)}function gn(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 Rn(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 kn(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 jn(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function rs(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 x=u.get,v=u.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return x.call(this)},set:function(T){l=""+T,v.call(this,T)}}),Object.defineProperty(n,i,{enumerable:u.enumerable}),{getValue:function(){return l},setValue:function(T){l=""+T},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function Mi(n){if(!n._valueTracker){var i=jn(n)?"checked":"value";n._valueTracker=rs(n,i,""+n[i])}}function Ur(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var l=i.getValue(),u="";return n&&(u=jn(n)?n.checked?"true":"false":n.value),n=u,n!==l?(i.setValue(n),!0):!1}function Oi(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 is=/[\n"\\]/g;function Cn(n){return n.replace(is,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function ba(n,i,l,u,x,v,T,G){n.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?n.type=T:n.removeAttribute("type"),i!=null?T==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+_t(i)):n.value!==""+_t(i)&&(n.value=""+_t(i)):T!=="submit"&&T!=="reset"||n.removeAttribute("value"),i!=null?Ri(n,T,_t(i)):l!=null?Ri(n,T,_t(l)):u!=null&&n.removeAttribute("value"),x==null&&v!=null&&(n.defaultChecked=!!v),x!=null&&(n.checked=x&&typeof x!="function"&&typeof x!="symbol"),G!=null&&typeof G!="function"&&typeof G!="symbol"&&typeof G!="boolean"?n.name=""+_t(G):n.removeAttribute("name")}function Sr(n,i,l,u,x,v,T,G){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)){Mi(n);return}l=l!=null?""+_t(l):"",i=i!=null?""+_t(i):l,G||i===n.value||(n.value=i),n.defaultValue=i}u=u??x,u=typeof u!="function"&&typeof u!="symbol"&&!!u,n.checked=G?n.checked:!!u,n.defaultChecked=!!u,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(n.name=T),Mi(n)}function Ri(n,i,l){i==="number"&&Oi(n.ownerDocument)===n||n.defaultValue===""+l||(n.defaultValue=""+l)}function dn(n,i,l,u){if(n=n.options,i){i={};for(var x=0;x<l.length;x++)i["$"+l[x]]=!0;for(l=0;l<n.length;l++)x=i.hasOwnProperty("$"+n[l].value),n[l].selected!==x&&(n[l].selected=x),x&&u&&(n[l].defaultSelected=!0)}else{for(l=""+_t(l),i=null,x=0;x<n.length;x++){if(n[x].value===l){n[x].selected=!0,u&&(n[x].defaultSelected=!0);return}i!==null||n[x].disabled||(i=n[x])}i!==null&&(i.selected=!0)}}function ya(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 as(n,i,l,u){if(i==null){if(u!=null){if(l!=null)throw Error(a(92));if($(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),Mi(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 Po=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 en(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||Po.has(i)?i==="float"?n.cssFloat=l:n[i]=(""+l).trim():n[i]=l+"px"}function xt(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 x in i)u=i[x],i.hasOwnProperty(x)&&l[x]!==u&&en(n,x,u)}else for(var v in i)i.hasOwnProperty(v)&&en(n,v,i[v])}function ji(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"]]),al=/^[\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 al.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 or(n){var i=wr(n);if(i&&(n=i.stateNode)){var l=n[pn]||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="'+Cn(""+i)+'"][type="radio"]'),i=0;i<l.length;i++){var u=l[i];if(u!==n&&u.form===n.form){var x=u[pn]||null;if(!x)throw Error(a(90));ba(u,x.value,x.defaultValue,x.defaultValue,x.checked,x.defaultChecked,x.type,x.name)}}for(i=0;i<l.length;i++)u=l[i],u.form===n.form&&Ur(u)}break e;case"textarea":ya(n,l.value,l.defaultValue);break e;case"select":i=l.value,i!=null&&dn(n,!!l.multiple,i,!1)}}}var sl=!1;function Fo(n,i,l){if(sl)return n(i,l);sl=!0;try{var u=n(i);return u}finally{if(sl=!1,(rt!==null||$t!==null)&&(Oc(),rt&&(i=rt,n=$t,$t=rt=null,or(i),n)))for(i=0;i<n.length;i++)or(n[i])}}function ll(n,i){var l=n.stateNode;if(l===null)return null;var u=l[pn]||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"),hd=!1;if(ti)try{var ol={};Object.defineProperty(ol,"passive",{get:function(){hd=!0}}),window.addEventListener("test",ol,ol),window.removeEventListener("test",ol,ol)}catch{hd=!1}var Li=null,md=null,Go=null;function Eg(){if(Go)return Go;var n,i=md,l=i.length,u,x="value"in Li?Li.value:Li.textContent,v=x.length;for(n=0;n<l&&i[n]===x[n];n++);var T=l-n;for(u=1;u<=T&&i[l-u]===x[v-u];u++);return Go=x.slice(n,1<u?1-u:void 0)}function Vo(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 Yo(){return!0}function Ng(){return!1}function Bn(n){function i(l,u,x,v,T){this._reactName=l,this._targetInst=x,this.type=u,this.nativeEvent=v,this.target=T,this.currentTarget=null;for(var G in n)n.hasOwnProperty(G)&&(l=n[G],this[G]=l?l(v):v[G]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?Yo:Ng,this.isPropagationStopped=Ng,this}return g(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=Yo)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Yo)},persist:function(){},isPersistent:Yo}),i}var va={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xo=Bn(va),cl=g({},va,{view:0,detail:0}),R2=Bn(cl),pd,gd,ul,Ko=g({},cl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bd,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!==ul&&(ul&&n.type==="mousemove"?(pd=n.screenX-ul.screenX,gd=n.screenY-ul.screenY):gd=pd=0,ul=n),pd)},movementY:function(n){return"movementY"in n?n.movementY:gd}}),Sg=Bn(Ko),j2=g({},Ko,{dataTransfer:0}),D2=Bn(j2),L2=g({},cl,{relatedTarget:0}),xd=Bn(L2),z2=g({},va,{animationName:0,elapsedTime:0,pseudoElement:0}),I2=Bn(z2),B2=g({},va,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),U2=Bn(B2),H2=g({},va,{data:0}),kg=Bn(H2),$2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},q2={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"},P2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function F2(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=P2[n])?!!i[n]:!1}function bd(){return F2}var G2=g({},cl,{key:function(n){if(n.key){var i=$2[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=Vo(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?q2[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bd,charCode:function(n){return n.type==="keypress"?Vo(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Vo(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),V2=Bn(G2),Y2=g({},Ko,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cg=Bn(Y2),X2=g({},cl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bd}),K2=Bn(X2),Z2=g({},va,{propertyName:0,elapsedTime:0,pseudoElement:0}),Q2=Bn(Z2),W2=g({},Ko,{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}),J2=Bn(W2),eS=g({},va,{newState:0,oldState:0}),tS=Bn(eS),nS=[9,13,27,32],yd=ti&&"CompositionEvent"in window,dl=null;ti&&"documentMode"in document&&(dl=document.documentMode);var rS=ti&&"TextEvent"in window&&!dl,Tg=ti&&(!yd||dl&&8<dl&&11>=dl),Ag=" ",Mg=!1;function Og(n,i){switch(n){case"keyup":return nS.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rg(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var ss=!1;function iS(n,i){switch(n){case"compositionend":return Rg(i);case"keypress":return i.which!==32?null:(Mg=!0,Ag);case"textInput":return n=i.data,n===Ag&&Mg?null:n;default:return null}}function aS(n,i){if(ss)return n==="compositionend"||!yd&&Og(n,i)?(n=Eg(),Go=md=Li=null,ss=!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 Tg&&i.locale!=="ko"?null:i.data;default:return null}}var sS={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 jg(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!sS[n.type]:i==="textarea"}function Dg(n,i,l,u){rt?$t?$t.push(u):$t=[u]:rt=u,i=Bc(i,"onChange"),0<i.length&&(l=new Xo("onChange","change",null,l,u),n.push({event:l,listeners:i}))}var fl=null,hl=null;function lS(n){g0(n,0)}function Zo(n){var i=Er(n);if(Ur(i))return n}function Lg(n,i){if(n==="change")return i}var zg=!1;if(ti){var vd;if(ti){var _d="oninput"in document;if(!_d){var Ig=document.createElement("div");Ig.setAttribute("oninput","return;"),_d=typeof Ig.oninput=="function"}vd=_d}else vd=!1;zg=vd&&(!document.documentMode||9<document.documentMode)}function Bg(){fl&&(fl.detachEvent("onpropertychange",Ug),hl=fl=null)}function Ug(n){if(n.propertyName==="value"&&Zo(hl)){var i=[];Dg(i,hl,n,Ye(n)),Fo(lS,i)}}function oS(n,i,l){n==="focusin"?(Bg(),fl=i,hl=l,fl.attachEvent("onpropertychange",Ug)):n==="focusout"&&Bg()}function cS(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Zo(hl)}function uS(n,i){if(n==="click")return Zo(i)}function dS(n,i){if(n==="input"||n==="change")return Zo(i)}function fS(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var Kn=typeof Object.is=="function"?Object.is:fS;function ml(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 x=l[u];if(!Xt.call(i,x)||!Kn(n[x],i[x]))return!1}return!0}function Hg(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function $g(n,i){var l=Hg(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=Hg(l)}}function qg(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?qg(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function Pg(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var i=Oi(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=Oi(n.document)}return i}function wd(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 hS=ti&&"documentMode"in document&&11>=document.documentMode,ls=null,Ed=null,pl=null,Nd=!1;function Fg(n,i,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Nd||ls==null||ls!==Oi(u)||(u=ls,"selectionStart"in u&&wd(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}),pl&&ml(pl,u)||(pl=u,u=Bc(Ed,"onSelect"),0<u.length&&(i=new Xo("onSelect","select",null,i,l),n.push({event:i,listeners:u}),i.target=ls)))}function _a(n,i){var l={};return l[n.toLowerCase()]=i.toLowerCase(),l["Webkit"+n]="webkit"+i,l["Moz"+n]="moz"+i,l}var os={animationend:_a("Animation","AnimationEnd"),animationiteration:_a("Animation","AnimationIteration"),animationstart:_a("Animation","AnimationStart"),transitionrun:_a("Transition","TransitionRun"),transitionstart:_a("Transition","TransitionStart"),transitioncancel:_a("Transition","TransitionCancel"),transitionend:_a("Transition","TransitionEnd")},Sd={},Gg={};ti&&(Gg=document.createElement("div").style,"AnimationEvent"in window||(delete os.animationend.animation,delete os.animationiteration.animation,delete os.animationstart.animation),"TransitionEvent"in window||delete os.transitionend.transition);function wa(n){if(Sd[n])return Sd[n];if(!os[n])return n;var i=os[n],l;for(l in i)if(i.hasOwnProperty(l)&&l in Gg)return Sd[n]=i[l];return n}var Vg=wa("animationend"),Yg=wa("animationiteration"),Xg=wa("animationstart"),mS=wa("transitionrun"),pS=wa("transitionstart"),gS=wa("transitioncancel"),Kg=wa("transitionend"),Zg=new Map,kd="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(" ");kd.push("scrollEnd");function kr(n,i){Zg.set(n,i),Nr(i,[n])}var Qo=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)},cr=[],cs=0,Cd=0;function Wo(){for(var n=cs,i=Cd=cs=0;i<n;){var l=cr[i];cr[i++]=null;var u=cr[i];cr[i++]=null;var x=cr[i];cr[i++]=null;var v=cr[i];if(cr[i++]=null,u!==null&&x!==null){var T=u.pending;T===null?x.next=x:(x.next=T.next,T.next=x),u.pending=x}v!==0&&Qg(l,x,v)}}function Jo(n,i,l,u){cr[cs++]=n,cr[cs++]=i,cr[cs++]=l,cr[cs++]=u,Cd|=u,n.lanes|=u,n=n.alternate,n!==null&&(n.lanes|=u)}function Td(n,i,l,u){return Jo(n,i,l,u),ec(n)}function Ea(n,i){return Jo(n,null,null,i),ec(n)}function Qg(n,i,l){n.lanes|=l;var u=n.alternate;u!==null&&(u.lanes|=l);for(var x=!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||(x=!0)),n=v,v=v.return;return n.tag===3?(v=n.stateNode,x&&i!==null&&(x=31-ut(l),n=v.hiddenUpdates,u=n[x],u===null?n[x]=[i]:u.push(i),i.lane=l|536870912),v):null}function ec(n){if(50<Il)throw Il=0,Bf=null,Error(a(185));for(var i=n.return;i!==null;)n=i,i=n.return;return n.tag===3?n.stateNode:null}var us={};function xS(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 xS(n,i,l,u)}function Ad(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 Wg(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 tc(n,i,l,u,x,v){var T=0;if(u=n,typeof n=="function")Ad(n)&&(T=1);else if(typeof n=="string")T=wk(n,l,V.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case Y:return n=Zn(31,l,i,x),n.elementType=Y,n.lanes=v,n;case N:return Na(l.children,x,v,i);case S:T=8,x|=24;break;case w:return n=Zn(12,l,i,x|2),n.elementType=w,n.lanes=v,n;case B:return n=Zn(13,l,i,x),n.elementType=B,n.lanes=v,n;case R:return n=Zn(19,l,i,x),n.elementType=R,n.lanes=v,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case E:T=10;break e;case C:T=9;break e;case A:T=11;break e;case H:T=14;break e;case z:T=16,u=null;break e}T=29,l=Error(a(130,n===null?"null":typeof n,"")),u=null}return i=Zn(T,l,i,x),i.elementType=n,i.type=u,i.lanes=v,i}function Na(n,i,l,u){return n=Zn(7,n,u,i),n.lanes=l,n}function Md(n,i,l){return n=Zn(6,n,null,i),n.lanes=l,n}function Jg(n){var i=Zn(18,null,null,0);return i.stateNode=n,i}function Od(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 ex=new WeakMap;function ur(n,i){if(typeof n=="object"&&n!==null){var l=ex.get(n);return l!==void 0?l:(i={value:n,source:i,stack:Rt(i)},ex.set(n,i),i)}return{value:n,source:i,stack:Rt(i)}}var ds=[],fs=0,nc=null,gl=0,dr=[],fr=0,zi=null,Hr=1,$r="";function ri(n,i){ds[fs++]=gl,ds[fs++]=nc,nc=n,gl=i}function tx(n,i,l){dr[fr++]=Hr,dr[fr++]=$r,dr[fr++]=zi,zi=n;var u=Hr;n=$r;var x=32-ut(u)-1;u&=~(1<<x),l+=1;var v=32-ut(i)+x;if(30<v){var T=x-x%5;v=(u&(1<<T)-1).toString(32),u>>=T,x-=T,Hr=1<<32-ut(i)+x|l<<x|u,$r=v+n}else Hr=1<<v|l<<x|u,$r=n}function Rd(n){n.return!==null&&(ri(n,1),tx(n,1,0))}function jd(n){for(;n===nc;)nc=ds[--fs],ds[fs]=null,gl=ds[--fs],ds[fs]=null;for(;n===zi;)zi=dr[--fr],dr[fr]=null,$r=dr[--fr],dr[fr]=null,Hr=dr[--fr],dr[fr]=null}function nx(n,i){dr[fr++]=Hr,dr[fr++]=$r,dr[fr++]=zi,Hr=i.id,$r=i.overflow,zi=n}var yn=null,jt=null,lt=!1,Ii=null,hr=!1,Dd=Error(a(519));function Bi(n){var i=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw xl(ur(i,n)),Dd}function rx(n){var i=n.stateNode,l=n.type,u=n.memoizedProps;switch(i[Ut]=n,i[pn]=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<Ul.length;l++)et(Ul[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),Sr(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),as(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||v0(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||Bi(n,!0)}function ix(n){for(yn=n.return;yn;)switch(yn.tag){case 5:case 31:case 13:hr=!1;return;case 27:case 3:hr=!0;return;default:yn=yn.return}}function hs(n){if(n!==yn)return!1;if(!lt)return ix(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")||Jf(n.type,n.memoizedProps)),l=!l),l&&jt&&Bi(n),ix(n),i===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(317));jt=A0(n)}else if(i===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(317));jt=A0(n)}else i===27?(i=jt,Wi(n.type)?(n=ih,ih=null,jt=n):jt=i):jt=yn?pr(n.stateNode.nextSibling):null;return!0}function Sa(){jt=yn=null,lt=!1}function Ld(){var n=Ii;return n!==null&&(qn===null?qn=n:qn.push.apply(qn,n),Ii=null),n}function xl(n){Ii===null?Ii=[n]:Ii.push(n)}var zd=L(null),ka=null,ii=null;function Ui(n,i,l){D(zd,i._currentValue),i._currentValue=l}function ai(n){n._currentValue=zd.current,F(zd)}function Id(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 Bd(n,i,l,u){var x=n.child;for(x!==null&&(x.return=n);x!==null;){var v=x.dependencies;if(v!==null){var T=x.child;v=v.firstContext;e:for(;v!==null;){var G=v;v=x;for(var ne=0;ne<i.length;ne++)if(G.context===i[ne]){v.lanes|=l,G=v.alternate,G!==null&&(G.lanes|=l),Id(v.return,l,n),u||(T=null);break e}v=G.next}}else if(x.tag===18){if(T=x.return,T===null)throw Error(a(341));T.lanes|=l,v=T.alternate,v!==null&&(v.lanes|=l),Id(T,l,n),T=null}else T=x.child;if(T!==null)T.return=x;else for(T=x;T!==null;){if(T===n){T=null;break}if(x=T.sibling,x!==null){x.return=T.return,T=x;break}T=T.return}x=T}}function ms(n,i,l,u){n=null;for(var x=i,v=!1;x!==null;){if(!v){if((x.flags&524288)!==0)v=!0;else if((x.flags&262144)!==0)break}if(x.tag===10){var T=x.alternate;if(T===null)throw Error(a(387));if(T=T.memoizedProps,T!==null){var G=x.type;Kn(x.pendingProps.value,T.value)||(n!==null?n.push(G):n=[G])}}else if(x===J.current){if(T=x.alternate,T===null)throw Error(a(387));T.memoizedState.memoizedState!==x.memoizedState.memoizedState&&(n!==null?n.push(Fl):n=[Fl])}x=x.return}n!==null&&Bd(i,n,l,u),i.flags|=262144}function rc(n){for(n=n.firstContext;n!==null;){if(!Kn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Ca(n){ka=n,ii=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function vn(n){return ax(ka,n)}function ic(n,i){return ka===null&&Ca(n),ax(n,i)}function ax(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 bS=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()})}},yS=e.unstable_scheduleCallback,vS=e.unstable_NormalPriority,tn={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ud(){return{controller:new bS,data:new Map,refCount:0}}function bl(n){n.refCount--,n.refCount===0&&yS(vS,function(){n.controller.abort()})}var yl=null,Hd=0,ps=0,gs=null;function _S(n,i){if(yl===null){var l=yl=[];Hd=0,ps=Ff(),gs={status:"pending",value:void 0,then:function(u){l.push(u)}}}return Hd++,i.then(sx,sx),i}function sx(){if(--Hd===0&&yl!==null){gs!==null&&(gs.status="fulfilled");var n=yl;yl=null,ps=0,gs=null;for(var i=0;i<n.length;i++)(0,n[i])()}}function wS(n,i){var l=[],u={status:"pending",value:null,reason:null,then:function(x){l.push(x)}};return n.then(function(){u.status="fulfilled",u.value=i;for(var x=0;x<l.length;x++)(0,l[x])(i)},function(x){for(u.status="rejected",u.reason=x,x=0;x<l.length;x++)(0,l[x])(void 0)}),u}var lx=O.S;O.S=function(n,i){Fb=ct(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&_S(n,i),lx!==null&&lx(n,i)};var Ta=L(null);function $d(){var n=Ta.current;return n!==null?n:kt.pooledCache}function ac(n,i){i===null?D(Ta,Ta.current):D(Ta,i.pool)}function ox(){var n=$d();return n===null?null:{parent:tn._currentValue,pool:n}}var xs=Error(a(460)),qd=Error(a(474)),sc=Error(a(542)),lc={then:function(){}};function cx(n){return n=n.status,n==="fulfilled"||n==="rejected"}function ux(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,fx(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 x=i;x.status="fulfilled",x.value=u}},function(u){if(i.status==="pending"){var x=i;x.status="rejected",x.reason=u}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,fx(n),n}throw Ma=i,xs}}function Aa(n){try{var i=n._init;return i(n._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Ma=l,xs):l}}var Ma=null;function dx(){if(Ma===null)throw Error(a(459));var n=Ma;return Ma=null,n}function fx(n){if(n===xs||n===sc)throw Error(a(483))}var bs=null,vl=0;function oc(n){var i=vl;return vl+=1,bs===null&&(bs=[]),ux(bs,n,i)}function _l(n,i){i=i.props.ref,n.ref=i!==void 0?i:null}function cc(n,i){throw i.$$typeof===b?Error(a(525)):(n=Object.prototype.toString.call(i),Error(a(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n)))}function hx(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 x(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 T(ae){return n&&ae.alternate===null&&(ae.flags|=67108866),ae}function G(ae,ie,se,pe){return ie===null||ie.tag!==6?(ie=Md(se,ae.mode,pe),ie.return=ae,ie):(ie=x(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===z&&Aa(Ie)===ie.type)?(ie=x(ie,se.props),_l(ie,se),ie.return=ae,ie):(ie=tc(se.type,se.key,se.props,null,ae.mode,pe),_l(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=Od(se,ae.mode,pe),ie.return=ae,ie):(ie=x(ie,se.children||[]),ie.return=ae,ie)}function he(ae,ie,se,pe,Ie){return ie===null||ie.tag!==7?(ie=Na(se,ae.mode,pe,Ie),ie.return=ae,ie):(ie=x(ie,se),ie.return=ae,ie)}function ge(ae,ie,se){if(typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint")return ie=Md(""+ie,ae.mode,se),ie.return=ae,ie;if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case y:return se=tc(ie.type,ie.key,ie.props,null,ae.mode,se),_l(se,ie),se.return=ae,se;case _:return ie=Od(ie,ae.mode,se),ie.return=ae,ie;case z:return ie=Aa(ie),ge(ae,ie,se)}if($(ie)||Z(ie))return ie=Na(ie,ae.mode,se,null),ie.return=ae,ie;if(typeof ie.then=="function")return ge(ae,oc(ie),se);if(ie.$$typeof===E)return ge(ae,ic(ae,ie),se);cc(ae,ie)}return null}function ce(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:G(ae,ie,""+se,pe);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case y:return se.key===Ie?ne(ae,ie,se,pe):null;case _:return se.key===Ie?le(ae,ie,se,pe):null;case z:return se=Aa(se),ce(ae,ie,se,pe)}if($(se)||Z(se))return Ie!==null?null:he(ae,ie,se,pe,null);if(typeof se.then=="function")return ce(ae,ie,oc(se),pe);if(se.$$typeof===E)return ce(ae,ie,ic(ae,se),pe);cc(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,G(ie,ae,""+pe,Ie);if(typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case y: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 z:return pe=Aa(pe),de(ae,ie,se,pe,Ie)}if($(pe)||Z(pe))return ae=ae.get(se)||null,he(ie,ae,pe,Ie,null);if(typeof pe.then=="function")return de(ae,ie,se,oc(pe),Ie);if(pe.$$typeof===E)return de(ae,ie,se,ic(ie,pe),Ie);cc(ie,pe)}return null}function Ae(ae,ie,se,pe){for(var Ie=null,ht=null,je=ie,Ke=ie=0,at=null;je!==null&&Ke<se.length;Ke++){je.index>Ke?(at=je,je=null):at=je.sibling;var mt=ce(ae,je,se[Ke],pe);if(mt===null){je===null&&(je=at);break}n&&je&&mt.alternate===null&&i(ae,je),ie=v(mt,ie,Ke),ht===null?Ie=mt:ht.sibling=mt,ht=mt,je=at}if(Ke===se.length)return l(ae,je),lt&&ri(ae,Ke),Ie;if(je===null){for(;Ke<se.length;Ke++)je=ge(ae,se[Ke],pe),je!==null&&(ie=v(je,ie,Ke),ht===null?Ie=je:ht.sibling=je,ht=je);return lt&&ri(ae,Ke),Ie}for(je=u(je);Ke<se.length;Ke++)at=de(je,ae,Ke,se[Ke],pe),at!==null&&(n&&at.alternate!==null&&je.delete(at.key===null?Ke:at.key),ie=v(at,ie,Ke),ht===null?Ie=at:ht.sibling=at,ht=at);return n&&je.forEach(function(ra){return i(ae,ra)}),lt&&ri(ae,Ke),Ie}function He(ae,ie,se,pe){if(se==null)throw Error(a(151));for(var Ie=null,ht=null,je=ie,Ke=ie=0,at=null,mt=se.next();je!==null&&!mt.done;Ke++,mt=se.next()){je.index>Ke?(at=je,je=null):at=je.sibling;var ra=ce(ae,je,mt.value,pe);if(ra===null){je===null&&(je=at);break}n&&je&&ra.alternate===null&&i(ae,je),ie=v(ra,ie,Ke),ht===null?Ie=ra:ht.sibling=ra,ht=ra,je=at}if(mt.done)return l(ae,je),lt&&ri(ae,Ke),Ie;if(je===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(je=u(je);!mt.done;Ke++,mt=se.next())mt=de(je,ae,Ke,mt.value,pe),mt!==null&&(n&&mt.alternate!==null&&je.delete(mt.key===null?Ke:mt.key),ie=v(mt,ie,Ke),ht===null?Ie=mt:ht.sibling=mt,ht=mt);return n&&je.forEach(function(jk){return i(ae,jk)}),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 y: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=x(ie,se.props.children),pe.return=ae,ae=pe;break e}}else if(ie.elementType===Ie||typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===z&&Aa(Ie)===ie.type){l(ae,ie.sibling),pe=x(ie,se.props),_l(pe,se),pe.return=ae,ae=pe;break e}l(ae,ie);break}else i(ae,ie);ie=ie.sibling}se.type===N?(pe=Na(se.props.children,ae.mode,pe,se.key),pe.return=ae,ae=pe):(pe=tc(se.type,se.key,se.props,null,ae.mode,pe),_l(pe,se),pe.return=ae,ae=pe)}return T(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=x(ie,se.children||[]),pe.return=ae,ae=pe;break e}else{l(ae,ie);break}else i(ae,ie);ie=ie.sibling}pe=Od(se,ae.mode,pe),pe.return=ae,ae=pe}return T(ae);case z:return se=Aa(se),Nt(ae,ie,se,pe)}if($(se))return Ae(ae,ie,se,pe);if(Z(se)){if(Ie=Z(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,oc(se),pe);if(se.$$typeof===E)return Nt(ae,ie,ic(ae,se),pe);cc(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=x(ie,se),pe.return=ae,ae=pe):(l(ae,ie),pe=Md(se,ae.mode,pe),pe.return=ae,ae=pe),T(ae)):l(ae,ie)}return function(ae,ie,se,pe){try{vl=0;var Ie=Nt(ae,ie,se,pe);return bs=null,Ie}catch(je){if(je===xs||je===sc)throw je;var ht=Zn(29,je,null,ae.mode);return ht.lanes=pe,ht.return=ae,ht}finally{}}}var Oa=hx(!0),mx=hx(!1),Hi=!1;function Pd(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Fd(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 $i(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function qi(n,i,l){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,(pt&2)!==0){var x=u.pending;return x===null?i.next=i:(i.next=x.next,x.next=i),u.pending=i,i=ec(n),Qg(n,null,l),i}return Jo(n,u,i,l),ec(n)}function wl(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 Gd(n,i){var l=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var x=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?x=v=T:v=v.next=T,l=l.next}while(l!==null);v===null?x=v=i:v=v.next=i}else x=v=i;l={baseState:u.baseState,firstBaseUpdate:x,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 Vd=!1;function El(){if(Vd){var n=gs;if(n!==null)throw n}}function Nl(n,i,l,u){Vd=!1;var x=n.updateQueue;Hi=!1;var v=x.firstBaseUpdate,T=x.lastBaseUpdate,G=x.shared.pending;if(G!==null){x.shared.pending=null;var ne=G,le=ne.next;ne.next=null,T===null?v=le:T.next=le,T=ne;var he=n.alternate;he!==null&&(he=he.updateQueue,G=he.lastBaseUpdate,G!==T&&(G===null?he.firstBaseUpdate=le:G.next=le,he.lastBaseUpdate=ne))}if(v!==null){var ge=x.baseState;T=0,he=le=ne=null,G=v;do{var ce=G.lane&-536870913,de=ce!==G.lane;if(de?(it&ce)===ce:(u&ce)===ce){ce!==0&&ce===ps&&(Vd=!0),he!==null&&(he=he.next={lane:0,tag:G.tag,payload:G.payload,callback:null,next:null});e:{var Ae=n,He=G;ce=i;var Nt=l;switch(He.tag){case 1:if(Ae=He.payload,typeof Ae=="function"){ge=Ae.call(Nt,ge,ce);break e}ge=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=He.payload,ce=typeof Ae=="function"?Ae.call(Nt,ge,ce):Ae,ce==null)break e;ge=g({},ge,ce);break e;case 2:Hi=!0}}ce=G.callback,ce!==null&&(n.flags|=64,de&&(n.flags|=8192),de=x.callbacks,de===null?x.callbacks=[ce]:de.push(ce))}else de={lane:ce,tag:G.tag,payload:G.payload,callback:G.callback,next:null},he===null?(le=he=de,ne=ge):he=he.next=de,T|=ce;if(G=G.next,G===null){if(G=x.shared.pending,G===null)break;de=G,G=de.next,de.next=null,x.lastBaseUpdate=de,x.shared.pending=null}}while(!0);he===null&&(ne=ge),x.baseState=ne,x.firstBaseUpdate=le,x.lastBaseUpdate=he,v===null&&(x.shared.lanes=0),Yi|=T,n.lanes=T,n.memoizedState=ge}}function px(n,i){if(typeof n!="function")throw Error(a(191,n));n.call(i)}function gx(n,i){var l=n.callbacks;if(l!==null)for(n.callbacks=null,n=0;n<l.length;n++)px(l[n],i)}var ys=L(null),uc=L(0);function xx(n,i){n=mi,D(uc,n),D(ys,i),mi=n|i.baseLanes}function Yd(){D(uc,mi),D(ys,ys.current)}function Xd(){mi=uc.current,F(ys),F(uc)}var Qn=L(null),mr=null;function Pi(n){var i=n.alternate;D(Qt,Qt.current&1),D(Qn,n),mr===null&&(i===null||ys.current!==null||i.memoizedState!==null)&&(mr=n)}function Kd(n){D(Qt,Qt.current),D(Qn,n),mr===null&&(mr=n)}function bx(n){n.tag===22?(D(Qt,Qt.current),D(Qn,n),mr===null&&(mr=n)):Fi()}function Fi(){D(Qt,Qt.current),D(Qn,Qn.current)}function Wn(n){F(Qn),mr===n&&(mr=null),F(Qt)}var Qt=L(0);function dc(n){for(var i=n;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||nh(l)||rh(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,nn=null,fc=!1,vs=!1,Ra=!1,hc=0,Sl=0,_s=null,ES=0;function Vt(){throw Error(a(321))}function Zd(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 Qd(n,i,l,u,x,v){return si=v,Xe=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,O.H=n===null||n.memoizedState===null?tb:hf,Ra=!1,v=l(u,x),Ra=!1,vs&&(v=vx(i,l,u,x)),yx(n),v}function yx(n){O.H=Tl;var i=wt!==null&&wt.next!==null;if(si=0,nn=wt=Xe=null,fc=!1,Sl=0,_s=null,i)throw Error(a(300));n===null||rn||(n=n.dependencies,n!==null&&rc(n)&&(rn=!0))}function vx(n,i,l,u){Xe=n;var x=0;do{if(vs&&(_s=null),Sl=0,vs=!1,25<=x)throw Error(a(301));if(x+=1,nn=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=nb,v=i(l,u)}while(vs);return v}function NS(){var n=O.H,i=n.useState()[0];return i=typeof i.then=="function"?kl(i):i,n=n.useState()[0],(wt!==null?wt.memoizedState:null)!==n&&(Xe.flags|=1024),i}function Wd(){var n=hc!==0;return hc=0,n}function Jd(n,i,l){i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~l}function ef(n){if(fc){for(n=n.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}fc=!1}si=0,nn=wt=Xe=null,vs=!1,Sl=hc=0,_s=null}function Dn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nn===null?Xe.memoizedState=nn=n:nn=nn.next=n,nn}function Wt(){if(wt===null){var n=Xe.alternate;n=n!==null?n.memoizedState:null}else n=wt.next;var i=nn===null?Xe.memoizedState:nn.next;if(i!==null)nn=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},nn===null?Xe.memoizedState=nn=n:nn=nn.next=n}return nn}function mc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function kl(n){var i=Sl;return Sl+=1,_s===null&&(_s=[]),n=ux(_s,n,i),i=Xe,(nn===null?i.memoizedState:nn.next)===null&&(i=i.alternate,O.H=i===null||i.memoizedState===null?tb:hf),n}function pc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return kl(n);if(n.$$typeof===E)return vn(n)}throw Error(a(438,String(n)))}function tf(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(x){return x.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),l===null&&(l=mc(),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]=j;return i.index++,l}function li(n,i){return typeof i=="function"?i(n):i}function gc(n){var i=Wt();return nf(i,wt,n)}function nf(n,i,l){var u=n.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=l;var x=n.baseQueue,v=u.pending;if(v!==null){if(x!==null){var T=x.next;x.next=v.next,v.next=T}i.baseQueue=x=v,u.pending=null}if(v=n.baseState,x===null)n.memoizedState=v;else{i=x.next;var G=T=null,ne=null,le=i,he=!1;do{var ge=le.lane&-536870913;if(ge!==le.lane?(it&ge)===ge:(si&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===ps&&(he=!0);else if((si&ce)===ce){le=le.next,ce===ps&&(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?(G=ne=ge,T=v):ne=ne.next=ge,Xe.lanes|=ce,Yi|=ce;ge=le.action,Ra&&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?(G=ne=ce,T=v):ne=ne.next=ce,Xe.lanes|=ge,Yi|=ge;le=le.next}while(le!==null&&le!==i);if(ne===null?T=v:ne.next=G,!Kn(v,n.memoizedState)&&(rn=!0,he&&(l=gs,l!==null)))throw l;n.memoizedState=v,n.baseState=T,n.baseQueue=ne,u.lastRenderedState=v}return x===null&&(u.lanes=0),[n.memoizedState,u.dispatch]}function rf(n){var i=Wt(),l=i.queue;if(l===null)throw Error(a(311));l.lastRenderedReducer=n;var u=l.dispatch,x=l.pending,v=i.memoizedState;if(x!==null){l.pending=null;var T=x=x.next;do v=n(v,T.action),T=T.next;while(T!==x);Kn(v,i.memoizedState)||(rn=!0),i.memoizedState=v,i.baseQueue===null&&(i.baseState=v),l.lastRenderedState=v}return[v,u]}function _x(n,i,l){var u=Xe,x=Wt(),v=lt;if(v){if(l===void 0)throw Error(a(407));l=l()}else l=i();var T=!Kn((wt||x).memoizedState,l);if(T&&(x.memoizedState=l,rn=!0),x=x.queue,lf(Nx.bind(null,u,x,n),[n]),x.getSnapshot!==i||T||nn!==null&&nn.memoizedState.tag&1){if(u.flags|=2048,ws(9,{destroy:void 0},Ex.bind(null,u,x,l,i),null),kt===null)throw Error(a(349));v||(si&127)!==0||wx(u,i,l)}return l}function wx(n,i,l){n.flags|=16384,n={getSnapshot:i,value:l},i=Xe.updateQueue,i===null?(i=mc(),Xe.updateQueue=i,i.stores=[n]):(l=i.stores,l===null?i.stores=[n]:l.push(n))}function Ex(n,i,l,u){i.value=l,i.getSnapshot=u,Sx(i)&&kx(n)}function Nx(n,i,l){return l(function(){Sx(i)&&kx(n)})}function Sx(n){var i=n.getSnapshot;n=n.value;try{var l=i();return!Kn(n,l)}catch{return!0}}function kx(n){var i=Ea(n,2);i!==null&&Pn(i,n,2)}function af(n){var i=Dn();if(typeof n=="function"){var l=n;if(n=l(),Ra){Jt(!0);try{l()}finally{Jt(!1)}}}return i.memoizedState=i.baseState=n,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:li,lastRenderedState:n},i}function Cx(n,i,l,u){return n.baseState=l,nf(n,wt,typeof u=="function"?u:li)}function SS(n,i,l,u,x){if(yc(n))throw Error(a(485));if(n=i.action,n!==null){var v={payload:x,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=i.pending,l===null?(v.next=i.pending=v,Tx(i,v)):(v.next=l.next,i.pending=l.next=v)}}function Tx(n,i){var l=i.action,u=i.payload,x=n.state;if(i.isTransition){var v=O.T,T={};O.T=T;try{var G=l(x,u),ne=O.S;ne!==null&&ne(T,G),Ax(n,i,G)}catch(le){sf(n,i,le)}finally{v!==null&&T.types!==null&&(v.types=T.types),O.T=v}}else try{v=l(x,u),Ax(n,i,v)}catch(le){sf(n,i,le)}}function Ax(n,i,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(u){Mx(n,i,u)},function(u){return sf(n,i,u)}):Mx(n,i,l)}function Mx(n,i,l){i.status="fulfilled",i.value=l,Ox(i),n.state=l,i=n.pending,i!==null&&(l=i.next,l===i?n.pending=null:(l=l.next,i.next=l,Tx(n,l)))}function sf(n,i,l){var u=n.pending;if(n.pending=null,u!==null){u=u.next;do i.status="rejected",i.reason=l,Ox(i),i=i.next;while(i!==u)}n.action=null}function Ox(n){n=n.listeners;for(var i=0;i<n.length;i++)(0,n[i])()}function Rx(n,i){return i}function jx(n,i){if(lt){var l=kt.formState;if(l!==null){e:{var u=Xe;if(lt){if(jt){t:{for(var x=jt,v=hr;x.nodeType!==8;){if(!v){x=null;break t}if(x=pr(x.nextSibling),x===null){x=null;break t}}v=x.data,x=v==="F!"||v==="F"?x:null}if(x){jt=pr(x.nextSibling),u=x.data==="F!";break e}}Bi(u)}u=!1}u&&(i=l[0])}}return l=Dn(),l.memoizedState=l.baseState=i,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rx,lastRenderedState:i},l.queue=u,l=Wx.bind(null,Xe,u),u.dispatch=l,u=af(!1),v=ff.bind(null,Xe,!1,u.queue),u=Dn(),x={state:i,dispatch:null,action:n,pending:null},u.queue=x,l=SS.bind(null,Xe,x,v,l),x.dispatch=l,u.memoizedState=n,[i,l,!1]}function Dx(n){var i=Wt();return Lx(i,wt,n)}function Lx(n,i,l){if(i=nf(n,i,Rx)[0],n=gc(li)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var u=kl(i)}catch(T){throw T===xs?sc:T}else u=i;i=Wt();var x=i.queue,v=x.dispatch;return l!==i.memoizedState&&(Xe.flags|=2048,ws(9,{destroy:void 0},kS.bind(null,x,l),null)),[u,v,n]}function kS(n,i){n.action=i}function zx(n){var i=Wt(),l=wt;if(l!==null)return Lx(i,l,n);Wt(),i=i.memoizedState,l=Wt();var u=l.queue.dispatch;return l.memoizedState=n,[i,u,!1]}function ws(n,i,l,u){return n={tag:n,create:l,deps:u,inst:i,next:null},i=Xe.updateQueue,i===null&&(i=mc(),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 Ix(){return Wt().memoizedState}function xc(n,i,l,u){var x=Dn();Xe.flags|=n,x.memoizedState=ws(1|i,{destroy:void 0},l,u===void 0?null:u)}function bc(n,i,l,u){var x=Wt();u=u===void 0?null:u;var v=x.memoizedState.inst;wt!==null&&u!==null&&Zd(u,wt.memoizedState.deps)?x.memoizedState=ws(i,v,l,u):(Xe.flags|=n,x.memoizedState=ws(1|i,v,l,u))}function Bx(n,i){xc(8390656,8,n,i)}function lf(n,i){bc(2048,8,n,i)}function CS(n){Xe.flags|=4;var i=Xe.updateQueue;if(i===null)i=mc(),Xe.updateQueue=i,i.events=[n];else{var l=i.events;l===null?i.events=[n]:l.push(n)}}function Ux(n){var i=Wt().memoizedState;return CS({ref:i,nextImpl:n}),function(){if((pt&2)!==0)throw Error(a(440));return i.impl.apply(void 0,arguments)}}function Hx(n,i){return bc(4,2,n,i)}function $x(n,i){return bc(4,4,n,i)}function qx(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 Px(n,i,l){l=l!=null?l.concat([n]):null,bc(4,4,qx.bind(null,i,n),l)}function of(){}function Fx(n,i){var l=Wt();i=i===void 0?null:i;var u=l.memoizedState;return i!==null&&Zd(i,u[1])?u[0]:(l.memoizedState=[n,i],n)}function Gx(n,i){var l=Wt();i=i===void 0?null:i;var u=l.memoizedState;if(i!==null&&Zd(i,u[1]))return u[0];if(u=n(),Ra){Jt(!0);try{n()}finally{Jt(!1)}}return l.memoizedState=[u,i],u}function cf(n,i,l){return l===void 0||(si&1073741824)!==0&&(it&261930)===0?n.memoizedState=i:(n.memoizedState=l,n=Vb(),Xe.lanes|=n,Yi|=n,l)}function Vx(n,i,l,u){return Kn(l,i)?l:ys.current!==null?(n=cf(n,l,u),Kn(n,i)||(rn=!0),n):(si&42)===0||(si&1073741824)!==0&&(it&261930)===0?(rn=!0,n.memoizedState=l):(n=Vb(),Xe.lanes|=n,Yi|=n,i)}function Yx(n,i,l,u,x){var v=U.p;U.p=v!==0&&8>v?v:8;var T=O.T,G={};O.T=G,ff(n,!1,i,l);try{var ne=x(),le=O.S;if(le!==null&&le(G,ne),ne!==null&&typeof ne=="object"&&typeof ne.then=="function"){var he=wS(ne,u);Cl(n,i,he,tr(n))}else Cl(n,i,u,tr(n))}catch(ge){Cl(n,i,{then:function(){},status:"rejected",reason:ge},tr())}finally{U.p=v,T!==null&&G.types!==null&&(T.types=G.types),O.T=T}}function TS(){}function uf(n,i,l,u){if(n.tag!==5)throw Error(a(476));var x=Xx(n).queue;Yx(n,x,i,K,l===null?TS:function(){return Kx(n),l(u)})}function Xx(n){var i=n.memoizedState;if(i!==null)return i;i={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:li,lastRenderedState:K},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 Kx(n){var i=Xx(n);i.next===null&&(i=n.alternate.memoizedState),Cl(n,i.next.queue,{},tr())}function df(){return vn(Fl)}function Zx(){return Wt().memoizedState}function Qx(){return Wt().memoizedState}function AS(n){for(var i=n.return;i!==null;){switch(i.tag){case 24:case 3:var l=tr();n=$i(l);var u=qi(i,n,l);u!==null&&(Pn(u,i,l),wl(u,i,l)),i={cache:Ud()},n.payload=i;return}i=i.return}}function MS(n,i,l){var u=tr();l={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},yc(n)?Jx(i,l):(l=Td(n,i,l,u),l!==null&&(Pn(l,n,u),eb(l,i,u)))}function Wx(n,i,l){var u=tr();Cl(n,i,l,u)}function Cl(n,i,l,u){var x={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(yc(n))Jx(i,x);else{var v=n.alternate;if(n.lanes===0&&(v===null||v.lanes===0)&&(v=i.lastRenderedReducer,v!==null))try{var T=i.lastRenderedState,G=v(T,l);if(x.hasEagerState=!0,x.eagerState=G,Kn(G,T))return Jo(n,i,x,0),kt===null&&Wo(),!1}catch{}finally{}if(l=Td(n,i,x,u),l!==null)return Pn(l,n,u),eb(l,i,u),!0}return!1}function ff(n,i,l,u){if(u={lane:2,revertLane:Ff(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},yc(n)){if(i)throw Error(a(479))}else i=Td(n,l,u,2),i!==null&&Pn(i,n,2)}function yc(n){var i=n.alternate;return n===Xe||i!==null&&i===Xe}function Jx(n,i){vs=fc=!0;var l=n.pending;l===null?i.next=i:(i.next=l.next,l.next=i),n.pending=i}function eb(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:vn,use:pc,useCallback:Vt,useContext:Vt,useEffect:Vt,useImperativeHandle:Vt,useLayoutEffect:Vt,useInsertionEffect:Vt,useMemo:Vt,useReducer:Vt,useRef:Vt,useState:Vt,useDebugValue:Vt,useDeferredValue:Vt,useTransition:Vt,useSyncExternalStore:Vt,useId:Vt,useHostTransitionStatus:Vt,useFormState:Vt,useActionState:Vt,useOptimistic:Vt,useMemoCache:Vt,useCacheRefresh:Vt};Tl.useEffectEvent=Vt;var tb={readContext:vn,use:pc,useCallback:function(n,i){return Dn().memoizedState=[n,i===void 0?null:i],n},useContext:vn,useEffect:Bx,useImperativeHandle:function(n,i,l){l=l!=null?l.concat([n]):null,xc(4194308,4,qx.bind(null,i,n),l)},useLayoutEffect:function(n,i){return xc(4194308,4,n,i)},useInsertionEffect:function(n,i){xc(4,2,n,i)},useMemo:function(n,i){var l=Dn();i=i===void 0?null:i;var u=n();if(Ra){Jt(!0);try{n()}finally{Jt(!1)}}return l.memoizedState=[u,i],u},useReducer:function(n,i,l){var u=Dn();if(l!==void 0){var x=l(i);if(Ra){Jt(!0);try{l(i)}finally{Jt(!1)}}}else x=i;return u.memoizedState=u.baseState=x,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:x},u.queue=n,n=n.dispatch=MS.bind(null,Xe,n),[u.memoizedState,n]},useRef:function(n){var i=Dn();return n={current:n},i.memoizedState=n},useState:function(n){n=af(n);var i=n.queue,l=Wx.bind(null,Xe,i);return i.dispatch=l,[n.memoizedState,l]},useDebugValue:of,useDeferredValue:function(n,i){var l=Dn();return cf(l,n,i)},useTransition:function(){var n=af(!1);return n=Yx.bind(null,Xe,n.queue,!0,!1),Dn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,i,l){var u=Xe,x=Dn();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||wx(u,i,l)}x.memoizedState=l;var v={value:l,getSnapshot:i};return x.queue=v,Bx(Nx.bind(null,u,v,n),[n]),u.flags|=2048,ws(9,{destroy:void 0},Ex.bind(null,u,v,l,i),null),l},useId:function(){var n=Dn(),i=kt.identifierPrefix;if(lt){var l=$r,u=Hr;l=(u&~(1<<32-ut(u)-1)).toString(32)+l,i="_"+i+"R_"+l,l=hc++,0<l&&(i+="H"+l.toString(32)),i+="_"}else l=ES++,i="_"+i+"r_"+l.toString(32)+"_";return n.memoizedState=i},useHostTransitionStatus:df,useFormState:jx,useActionState:jx,useOptimistic:function(n){var i=Dn();i.memoizedState=i.baseState=n;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=l,i=ff.bind(null,Xe,!0,l),l.dispatch=i,[n,i]},useMemoCache:tf,useCacheRefresh:function(){return Dn().memoizedState=AS.bind(null,Xe)},useEffectEvent:function(n){var i=Dn(),l={impl:n};return i.memoizedState=l,function(){if((pt&2)!==0)throw Error(a(440));return l.impl.apply(void 0,arguments)}}},hf={readContext:vn,use:pc,useCallback:Fx,useContext:vn,useEffect:lf,useImperativeHandle:Px,useInsertionEffect:Hx,useLayoutEffect:$x,useMemo:Gx,useReducer:gc,useRef:Ix,useState:function(){return gc(li)},useDebugValue:of,useDeferredValue:function(n,i){var l=Wt();return Vx(l,wt.memoizedState,n,i)},useTransition:function(){var n=gc(li)[0],i=Wt().memoizedState;return[typeof n=="boolean"?n:kl(n),i]},useSyncExternalStore:_x,useId:Zx,useHostTransitionStatus:df,useFormState:Dx,useActionState:Dx,useOptimistic:function(n,i){var l=Wt();return Cx(l,wt,n,i)},useMemoCache:tf,useCacheRefresh:Qx};hf.useEffectEvent=Ux;var nb={readContext:vn,use:pc,useCallback:Fx,useContext:vn,useEffect:lf,useImperativeHandle:Px,useInsertionEffect:Hx,useLayoutEffect:$x,useMemo:Gx,useReducer:rf,useRef:Ix,useState:function(){return rf(li)},useDebugValue:of,useDeferredValue:function(n,i){var l=Wt();return wt===null?cf(l,n,i):Vx(l,wt.memoizedState,n,i)},useTransition:function(){var n=rf(li)[0],i=Wt().memoizedState;return[typeof n=="boolean"?n:kl(n),i]},useSyncExternalStore:_x,useId:Zx,useHostTransitionStatus:df,useFormState:zx,useActionState:zx,useOptimistic:function(n,i){var l=Wt();return wt!==null?Cx(l,wt,n,i):(l.baseState=n,[n,l.queue.dispatch])},useMemoCache:tf,useCacheRefresh:Qx};nb.useEffectEvent=Ux;function mf(n,i,l,u){i=n.memoizedState,l=l(u,i),l=l==null?i:g({},i,l),n.memoizedState=l,n.lanes===0&&(n.updateQueue.baseState=l)}var pf={enqueueSetState:function(n,i,l){n=n._reactInternals;var u=tr(),x=$i(u);x.payload=i,l!=null&&(x.callback=l),i=qi(n,x,u),i!==null&&(Pn(i,n,u),wl(i,n,u))},enqueueReplaceState:function(n,i,l){n=n._reactInternals;var u=tr(),x=$i(u);x.tag=1,x.payload=i,l!=null&&(x.callback=l),i=qi(n,x,u),i!==null&&(Pn(i,n,u),wl(i,n,u))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var l=tr(),u=$i(l);u.tag=2,i!=null&&(u.callback=i),i=qi(n,u,l),i!==null&&(Pn(i,n,l),wl(i,n,l))}};function rb(n,i,l,u,x,v,T){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(u,v,T):i.prototype&&i.prototype.isPureReactComponent?!ml(l,u)||!ml(x,v):!0}function ib(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&&pf.enqueueReplaceState(i,i.state,null)}function ja(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=g({},l));for(var x in n)l[x]===void 0&&(l[x]=n[x])}return l}function ab(n){Qo(n)}function sb(n){console.error(n)}function lb(n){Qo(n)}function vc(n,i){try{var l=n.onUncaughtError;l(i.value,{componentStack:i.stack})}catch(u){setTimeout(function(){throw u})}}function ob(n,i,l){try{var u=n.onCaughtError;u(l.value,{componentStack:l.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(x){setTimeout(function(){throw x})}}function gf(n,i,l){return l=$i(l),l.tag=3,l.payload={element:null},l.callback=function(){vc(n,i)},l}function cb(n){return n=$i(n),n.tag=3,n}function ub(n,i,l,u){var x=l.type.getDerivedStateFromError;if(typeof x=="function"){var v=u.value;n.payload=function(){return x(v)},n.callback=function(){ob(i,l,u)}}var T=l.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(n.callback=function(){ob(i,l,u),typeof x!="function"&&(Xi===null?Xi=new Set([this]):Xi.add(this));var G=u.stack;this.componentDidCatch(u.value,{componentStack:G!==null?G:""})})}function OS(n,i,l,u,x){if(l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(i=l.alternate,i!==null&&ms(i,l,x,!0),l=Qn.current,l!==null){switch(l.tag){case 31:case 13:return mr===null?Rc():l.alternate===null&&Yt===0&&(Yt=3),l.flags&=-257,l.flags|=65536,l.lanes=x,u===lc?l.flags|=16384:(i=l.updateQueue,i===null?l.updateQueue=new Set([u]):i.add(u),$f(n,u,x)),!1;case 22:return l.flags|=65536,u===lc?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)),$f(n,u,x)),!1}throw Error(a(435,l.tag))}return $f(n,u,x),Rc(),!1}if(lt)return i=Qn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=x,u!==Dd&&(n=Error(a(422),{cause:u}),xl(ur(n,l)))):(u!==Dd&&(i=Error(a(423),{cause:u}),xl(ur(i,l))),n=n.current.alternate,n.flags|=65536,x&=-x,n.lanes|=x,u=ur(u,l),x=gf(n.stateNode,u,x),Gd(n,x),Yt!==4&&(Yt=2)),!1;var v=Error(a(520),{cause:u});if(v=ur(v,l),zl===null?zl=[v]:zl.push(v),Yt!==4&&(Yt=2),i===null)return!0;u=ur(u,l),l=i;do{switch(l.tag){case 3:return l.flags|=65536,n=x&-x,l.lanes|=n,n=gf(l.stateNode,u,n),Gd(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"&&(Xi===null||!Xi.has(v))))return l.flags|=65536,x&=-x,l.lanes|=x,x=cb(x),ub(x,n,l,u),Gd(l,x),!1}l=l.return}while(l!==null);return!1}var xf=Error(a(461)),rn=!1;function _n(n,i,l,u){i.child=n===null?mx(i,null,l,u):Oa(i,n.child,l,u)}function db(n,i,l,u,x){l=l.render;var v=i.ref;if("ref"in u){var T={};for(var G in u)G!=="ref"&&(T[G]=u[G])}else T=u;return Ca(i),u=Qd(n,i,l,T,v,x),G=Wd(),n!==null&&!rn?(Jd(n,i,x),oi(n,i,x)):(lt&&G&&Rd(i),i.flags|=1,_n(n,i,u,x),i.child)}function fb(n,i,l,u,x){if(n===null){var v=l.type;return typeof v=="function"&&!Ad(v)&&v.defaultProps===void 0&&l.compare===null?(i.tag=15,i.type=v,hb(n,i,v,u,x)):(n=tc(l.type,null,u,i,i.mode,x),n.ref=i.ref,n.return=i,i.child=n)}if(v=n.child,!Sf(n,x)){var T=v.memoizedProps;if(l=l.compare,l=l!==null?l:ml,l(T,u)&&n.ref===i.ref)return oi(n,i,x)}return i.flags|=1,n=ni(v,u),n.ref=i.ref,n.return=i,i.child=n}function hb(n,i,l,u,x){if(n!==null){var v=n.memoizedProps;if(ml(v,u)&&n.ref===i.ref)if(rn=!1,i.pendingProps=u=v,Sf(n,x))(n.flags&131072)!==0&&(rn=!0);else return i.lanes=n.lanes,oi(n,i,x)}return bf(n,i,l,u,x)}function mb(n,i,l,u){var x=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,x=0;u!==null;)x=x|u.lanes|u.childLanes,u=u.sibling;u=x&~v}else u=0,i.child=null;return pb(n,i,v,l,u)}if((l&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},n!==null&&ac(i,v!==null?v.cachePool:null),v!==null?xx(i,v):Yd(),bx(i);else return u=i.lanes=536870912,pb(n,i,v!==null?v.baseLanes|l:l,l,u)}else v!==null?(ac(i,v.cachePool),xx(i,v),Fi(),i.memoizedState=null):(n!==null&&ac(i,null),Yd(),Fi());return _n(n,i,x,l),i.child}function Al(n,i){return n!==null&&n.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function pb(n,i,l,u,x){var v=$d();return v=v===null?null:{parent:tn._currentValue,pool:v},i.memoizedState={baseLanes:l,cachePool:v},n!==null&&ac(i,null),Yd(),bx(i),n!==null&&ms(n,i,u,!0),i.childLanes=x,null}function _c(n,i){return i=Ec({mode:i.mode,children:i.children},n.mode),i.ref=n.ref,n.child=i,i.return=n,i}function gb(n,i,l){return Oa(i,n.child,null,l),n=_c(i,i.pendingProps),n.flags|=2,Wn(i),i.memoizedState=null,n}function RS(n,i,l){var u=i.pendingProps,x=(i.flags&128)!==0;if(i.flags&=-129,n===null){if(lt){if(u.mode==="hidden")return n=_c(i,u),i.lanes=536870912,Al(null,n);if(Kd(i),(n=jt)?(n=T0(n,hr),n=n!==null&&n.data==="&"?n:null,n!==null&&(i.memoizedState={dehydrated:n,treeContext:zi!==null?{id:Hr,overflow:$r}:null,retryLane:536870912,hydrationErrors:null},l=Jg(n),l.return=i,i.child=l,yn=i,jt=null)):n=null,n===null)throw Bi(i);return i.lanes=536870912,null}return _c(i,u)}var v=n.memoizedState;if(v!==null){var T=v.dehydrated;if(Kd(i),x)if(i.flags&256)i.flags&=-257,i=gb(n,i,l);else if(i.memoizedState!==null)i.child=n.child,i.flags|=128,i=null;else throw Error(a(558));else if(rn||ms(n,i,l,!1),x=(l&n.childLanes)!==0,rn||x){if(u=kt,u!==null&&(T=Bt(u,l),T!==0&&T!==v.retryLane))throw v.retryLane=T,Ea(n,T),Pn(u,n,T),xf;Rc(),i=gb(n,i,l)}else n=v.treeContext,jt=pr(T.nextSibling),yn=i,lt=!0,Ii=null,hr=!1,n!==null&&nx(i,n),i=_c(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 wc(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 bf(n,i,l,u,x){return Ca(i),l=Qd(n,i,l,u,void 0,x),u=Wd(),n!==null&&!rn?(Jd(n,i,x),oi(n,i,x)):(lt&&u&&Rd(i),i.flags|=1,_n(n,i,l,x),i.child)}function xb(n,i,l,u,x,v){return Ca(i),i.updateQueue=null,l=vx(i,u,l,x),yx(n),u=Wd(),n!==null&&!rn?(Jd(n,i,v),oi(n,i,v)):(lt&&u&&Rd(i),i.flags|=1,_n(n,i,l,v),i.child)}function bb(n,i,l,u,x){if(Ca(i),i.stateNode===null){var v=us,T=l.contextType;typeof T=="object"&&T!==null&&(v=vn(T)),v=new l(u,v),i.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=pf,i.stateNode=v,v._reactInternals=i,v=i.stateNode,v.props=u,v.state=i.memoizedState,v.refs={},Pd(i),T=l.contextType,v.context=typeof T=="object"&&T!==null?vn(T):us,v.state=i.memoizedState,T=l.getDerivedStateFromProps,typeof T=="function"&&(mf(i,l,T,u),v.state=i.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&&pf.enqueueReplaceState(v,v.state,null),Nl(i,u,v,x),El(),v.state=i.memoizedState),typeof v.componentDidMount=="function"&&(i.flags|=4194308),u=!0}else if(n===null){v=i.stateNode;var G=i.memoizedProps,ne=ja(l,G);v.props=ne;var le=v.context,he=l.contextType;T=us,typeof he=="object"&&he!==null&&(T=vn(he));var ge=l.getDerivedStateFromProps;he=typeof ge=="function"||typeof v.getSnapshotBeforeUpdate=="function",G=i.pendingProps!==G,he||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(G||le!==T)&&ib(i,v,u,T),Hi=!1;var ce=i.memoizedState;v.state=ce,Nl(i,u,v,x),El(),le=i.memoizedState,G||ce!==le||Hi?(typeof ge=="function"&&(mf(i,l,ge,u),le=i.memoizedState),(ne=Hi||rb(i,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"&&(i.flags|=4194308)):(typeof v.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=u,i.memoizedState=le),v.props=u,v.state=le,v.context=T,u=ne):(typeof v.componentDidMount=="function"&&(i.flags|=4194308),u=!1)}else{v=i.stateNode,Fd(n,i),T=i.memoizedProps,he=ja(l,T),v.props=he,ge=i.pendingProps,ce=v.context,le=l.contextType,ne=us,typeof le=="object"&&le!==null&&(ne=vn(le)),G=l.getDerivedStateFromProps,(le=typeof G=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(T!==ge||ce!==ne)&&ib(i,v,u,ne),Hi=!1,ce=i.memoizedState,v.state=ce,Nl(i,u,v,x),El();var de=i.memoizedState;T!==ge||ce!==de||Hi||n!==null&&n.dependencies!==null&&rc(n.dependencies)?(typeof G=="function"&&(mf(i,l,G,u),de=i.memoizedState),(he=Hi||rb(i,l,he,u,ce,de,ne)||n!==null&&n.dependencies!==null&&rc(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"||T===n.memoizedProps&&ce===n.memoizedState||(i.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&ce===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"||T===n.memoizedProps&&ce===n.memoizedState||(i.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&ce===n.memoizedState||(i.flags|=1024),u=!1)}return v=u,wc(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=Oa(i,n.child,null,x),i.child=Oa(i,null,l,x)):_n(n,i,l,x),i.memoizedState=v.state,n=i.child):n=oi(n,i,x),n}function yb(n,i,l,u){return Sa(),i.flags|=256,_n(n,i,l,u),i.child}var yf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vf(n){return{baseLanes:n,cachePool:ox()}}function _f(n,i,l){return n=n!==null?n.childLanes&~l:0,i&&(n|=er),n}function vb(n,i,l){var u=i.pendingProps,x=!1,v=(i.flags&128)!==0,T;if((T=v)||(T=n!==null&&n.memoizedState===null?!1:(Qt.current&2)!==0),T&&(x=!0,i.flags&=-129),T=(i.flags&32)!==0,i.flags&=-33,n===null){if(lt){if(x?Pi(i):Fi(),(n=jt)?(n=T0(n,hr),n=n!==null&&n.data!=="&"?n:null,n!==null&&(i.memoizedState={dehydrated:n,treeContext:zi!==null?{id:Hr,overflow:$r}:null,retryLane:536870912,hydrationErrors:null},l=Jg(n),l.return=i,i.child=l,yn=i,jt=null)):n=null,n===null)throw Bi(i);return rh(n)?i.lanes=32:i.lanes=536870912,null}var G=u.children;return u=u.fallback,x?(Fi(),x=i.mode,G=Ec({mode:"hidden",children:G},x),u=Na(u,x,l,null),G.return=i,u.return=i,G.sibling=u,i.child=G,u=i.child,u.memoizedState=vf(l),u.childLanes=_f(n,T,l),i.memoizedState=yf,Al(null,u)):(Pi(i),wf(i,G))}var ne=n.memoizedState;if(ne!==null&&(G=ne.dehydrated,G!==null)){if(v)i.flags&256?(Pi(i),i.flags&=-257,i=Ef(n,i,l)):i.memoizedState!==null?(Fi(),i.child=n.child,i.flags|=128,i=null):(Fi(),G=u.fallback,x=i.mode,u=Ec({mode:"visible",children:u.children},x),G=Na(G,x,l,null),G.flags|=2,u.return=i,G.return=i,u.sibling=G,i.child=u,Oa(i,n.child,null,l),u=i.child,u.memoizedState=vf(l),u.childLanes=_f(n,T,l),i.memoizedState=yf,i=Al(null,u));else if(Pi(i),rh(G)){if(T=G.nextSibling&&G.nextSibling.dataset,T)var le=T.dgst;T=le,u=Error(a(419)),u.stack="",u.digest=T,xl({value:u,source:null,stack:null}),i=Ef(n,i,l)}else if(rn||ms(n,i,l,!1),T=(l&n.childLanes)!==0,rn||T){if(T=kt,T!==null&&(u=Bt(T,l),u!==0&&u!==ne.retryLane))throw ne.retryLane=u,Ea(n,u),Pn(T,n,u),xf;nh(G)||Rc(),i=Ef(n,i,l)}else nh(G)?(i.flags|=192,i.child=n.child,i=null):(n=ne.treeContext,jt=pr(G.nextSibling),yn=i,lt=!0,Ii=null,hr=!1,n!==null&&nx(i,n),i=wf(i,u.children),i.flags|=4096);return i}return x?(Fi(),G=u.fallback,x=i.mode,ne=n.child,le=ne.sibling,u=ni(ne,{mode:"hidden",children:u.children}),u.subtreeFlags=ne.subtreeFlags&65011712,le!==null?G=ni(le,G):(G=Na(G,x,l,null),G.flags|=2),G.return=i,u.return=i,u.sibling=G,i.child=u,Al(null,u),u=i.child,G=n.child.memoizedState,G===null?G=vf(l):(x=G.cachePool,x!==null?(ne=tn._currentValue,x=x.parent!==ne?{parent:ne,pool:ne}:x):x=ox(),G={baseLanes:G.baseLanes|l,cachePool:x}),u.memoizedState=G,u.childLanes=_f(n,T,l),i.memoizedState=yf,Al(n.child,u)):(Pi(i),l=n.child,n=l.sibling,l=ni(l,{mode:"visible",children:u.children}),l.return=i,l.sibling=null,n!==null&&(T=i.deletions,T===null?(i.deletions=[n],i.flags|=16):T.push(n)),i.child=l,i.memoizedState=null,l)}function wf(n,i){return i=Ec({mode:"visible",children:i},n.mode),i.return=n,n.child=i}function Ec(n,i){return n=Zn(22,n,null,i),n.lanes=0,n}function Ef(n,i,l){return Oa(i,n.child,null,l),n=wf(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function _b(n,i,l){n.lanes|=i;var u=n.alternate;u!==null&&(u.lanes|=i),Id(n.return,i,l)}function Nf(n,i,l,u,x,v){var T=n.memoizedState;T===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:x,treeForkCount:v}:(T.isBackwards=i,T.rendering=null,T.renderingStartTime=0,T.last=u,T.tail=l,T.tailMode=x,T.treeForkCount=v)}function wb(n,i,l){var u=i.pendingProps,x=u.revealOrder,v=u.tail;u=u.children;var T=Qt.current,G=(T&2)!==0;if(G?(T=T&1|2,i.flags|=128):T&=1,D(Qt,T),_n(n,i,u,l),u=lt?gl:0,!G&&n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&_b(n,l,i);else if(n.tag===19)_b(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(x){case"forwards":for(l=i.child,x=null;l!==null;)n=l.alternate,n!==null&&dc(n)===null&&(x=l),l=l.sibling;l=x,l===null?(x=i.child,i.child=null):(x=l.sibling,l.sibling=null),Nf(i,!1,x,l,v,u);break;case"backwards":case"unstable_legacy-backwards":for(l=null,x=i.child,i.child=null;x!==null;){if(n=x.alternate,n!==null&&dc(n)===null){i.child=x;break}n=x.sibling,x.sibling=l,l=x,x=n}Nf(i,!0,l,null,v,u);break;case"together":Nf(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),Yi|=i.lanes,(l&i.childLanes)===0)if(n!==null){if(ms(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 Sf(n,i){return(n.lanes&i)!==0?!0:(n=n.dependencies,!!(n!==null&&rc(n)))}function jS(n,i,l){switch(i.tag){case 3:W(i,i.stateNode.containerInfo),Ui(i,tn,n.memoizedState.cache),Sa();break;case 27:case 5:oe(i);break;case 4:W(i,i.stateNode.containerInfo);break;case 10:Ui(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,Kd(i),null;break;case 13:var u=i.memoizedState;if(u!==null)return u.dehydrated!==null?(Pi(i),i.flags|=128,null):(l&i.child.childLanes)!==0?vb(n,i,l):(Pi(i),n=oi(n,i,l),n!==null?n.sibling:null);Pi(i);break;case 19:var x=(n.flags&128)!==0;if(u=(l&i.childLanes)!==0,u||(ms(n,i,l,!1),u=(l&i.childLanes)!==0),x){if(u)return wb(n,i,l);i.flags|=128}if(x=i.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),D(Qt,Qt.current),u)break;return null;case 22:return i.lanes=0,mb(n,i,l,i.pendingProps);case 24:Ui(i,tn,n.memoizedState.cache)}return oi(n,i,l)}function Eb(n,i,l){if(n!==null)if(n.memoizedProps!==i.pendingProps)rn=!0;else{if(!Sf(n,l)&&(i.flags&128)===0)return rn=!1,jS(n,i,l);rn=(n.flags&131072)!==0}else rn=!1,lt&&(i.flags&1048576)!==0&&tx(i,gl,i.index);switch(i.lanes=0,i.tag){case 16:e:{var u=i.pendingProps;if(n=Aa(i.elementType),i.type=n,typeof n=="function")Ad(n)?(u=ja(n,u),i.tag=1,i=bb(null,i,n,u,l)):(i.tag=0,i=bf(null,i,n,u,l));else{if(n!=null){var x=n.$$typeof;if(x===A){i.tag=11,i=db(null,i,n,u,l);break e}else if(x===H){i.tag=14,i=fb(null,i,n,u,l);break e}}throw i=k(n)||n,Error(a(306,i,""))}}return i;case 0:return bf(n,i,i.type,i.pendingProps,l);case 1:return u=i.type,x=ja(u,i.pendingProps),bb(n,i,u,x,l);case 3:e:{if(W(i,i.stateNode.containerInfo),n===null)throw Error(a(387));u=i.pendingProps;var v=i.memoizedState;x=v.element,Fd(n,i),Nl(i,u,null,l);var T=i.memoizedState;if(u=T.cache,Ui(i,tn,u),u!==v.cache&&Bd(i,[tn],l,!0),El(),u=T.element,v.isDehydrated)if(v={element:u,isDehydrated:!1,cache:T.cache},i.updateQueue.baseState=v,i.memoizedState=v,i.flags&256){i=yb(n,i,u,l);break e}else if(u!==x){x=ur(Error(a(424)),i),xl(x),i=yb(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(jt=pr(n.firstChild),yn=i,lt=!0,Ii=null,hr=!0,l=mx(i,null,u,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Sa(),u===x){i=oi(n,i,l);break e}_n(n,i,u,l)}i=i.child}return i;case 26:return wc(n,i),n===null?(l=D0(i.type,null,i.pendingProps,null))?i.memoizedState=l:lt||(l=i.type,n=i.pendingProps,u=Uc(Q.current).createElement(l),u[Ut]=i,u[pn]=n,wn(u,l,n),Gt(u),i.stateNode=u):i.memoizedState=D0(i.type,n.memoizedProps,i.pendingProps,n.memoizedState),null;case 27:return oe(i),n===null&&lt&&(u=i.stateNode=O0(i.type,i.pendingProps,Q.current),yn=i,hr=!0,x=jt,Wi(i.type)?(ih=x,jt=pr(u.firstChild)):jt=x),_n(n,i,i.pendingProps.children,l),wc(n,i),n===null&&(i.flags|=4194304),i.child;case 5:return n===null&&lt&&((x=u=jt)&&(u=ck(u,i.type,i.pendingProps,hr),u!==null?(i.stateNode=u,yn=i,jt=pr(u.firstChild),hr=!1,x=!0):x=!1),x||Bi(i)),oe(i),x=i.type,v=i.pendingProps,T=n!==null?n.memoizedProps:null,u=v.children,Jf(x,v)?u=null:T!==null&&Jf(x,T)&&(i.flags|=32),i.memoizedState!==null&&(x=Qd(n,i,NS,null,null,l),Fl._currentValue=x),wc(n,i),_n(n,i,u,l),i.child;case 6:return n===null&&lt&&((n=l=jt)&&(l=uk(l,i.pendingProps,hr),l!==null?(i.stateNode=l,yn=i,jt=null,n=!0):n=!1),n||Bi(i)),null;case 13:return vb(n,i,l);case 4:return W(i,i.stateNode.containerInfo),u=i.pendingProps,n===null?i.child=Oa(i,null,u,l):_n(n,i,u,l),i.child;case 11:return db(n,i,i.type,i.pendingProps,l);case 7:return _n(n,i,i.pendingProps,l),i.child;case 8:return _n(n,i,i.pendingProps.children,l),i.child;case 12:return _n(n,i,i.pendingProps.children,l),i.child;case 10:return u=i.pendingProps,Ui(i,i.type,u.value),_n(n,i,u.children,l),i.child;case 9:return x=i.type._context,u=i.pendingProps.children,Ca(i),x=vn(x),u=u(x),i.flags|=1,_n(n,i,u,l),i.child;case 14:return fb(n,i,i.type,i.pendingProps,l);case 15:return hb(n,i,i.type,i.pendingProps,l);case 19:return wb(n,i,l);case 31:return RS(n,i,l);case 22:return mb(n,i,l,i.pendingProps);case 24:return Ca(i),u=vn(tn),n===null?(x=$d(),x===null&&(x=kt,v=Ud(),x.pooledCache=v,v.refCount++,v!==null&&(x.pooledCacheLanes|=l),x=v),i.memoizedState={parent:u,cache:x},Pd(i),Ui(i,tn,x)):((n.lanes&l)!==0&&(Fd(n,i),Nl(i,null,null,l),El()),x=n.memoizedState,v=i.memoizedState,x.parent!==u?(x={parent:u,cache:u},i.memoizedState=x,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=x),Ui(i,tn,u)):(u=v.cache,Ui(i,tn,u),u!==x.cache&&Bd(i,[tn],l,!0))),_n(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 kf(n,i,l,u,x){if((i=(n.mode&32)!==0)&&(i=!1),i){if(n.flags|=16777216,(x&335544128)===x)if(n.stateNode.complete)n.flags|=8192;else if(Zb())n.flags|=8192;else throw Ma=lc,qd}else n.flags&=-16777217}function Nb(n,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!U0(i))if(Zb())n.flags|=8192;else throw Ma=lc,qd}function Nc(n,i){i!==null&&(n.flags|=4),n.flags&16384&&(i=n.tag!==22?Pe():536870912,n.lanes|=i,ks|=i)}function Ml(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 Dt(n){var i=n.alternate!==null&&n.alternate.child===n.child,l=0,u=0;if(i)for(var x=n.child;x!==null;)l|=x.lanes|x.childLanes,u|=x.subtreeFlags&65011712,u|=x.flags&65011712,x.return=n,x=x.sibling;else for(x=n.child;x!==null;)l|=x.lanes|x.childLanes,u|=x.subtreeFlags,u|=x.flags,x.return=n,x=x.sibling;return n.subtreeFlags|=u,n.childLanes=l,i}function DS(n,i,l){var u=i.pendingProps;switch(jd(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dt(i),null;case 1:return Dt(i),null;case 3:return l=i.stateNode,u=null,n!==null&&(u=n.memoizedState.cache),i.memoizedState.cache!==u&&(i.flags|=2048),ai(tn),te(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(n===null||n.child===null)&&(hs(i)?ci(i):n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Ld())),Dt(i),null;case 26:var x=i.type,v=i.memoizedState;return n===null?(ci(i),v!==null?(Dt(i),Nb(i,v)):(Dt(i),kf(i,x,null,u,l))):v?v!==n.memoizedState?(ci(i),Dt(i),Nb(i,v)):(Dt(i),i.flags&=-16777217):(n=n.memoizedProps,n!==u&&ci(i),Dt(i),kf(i,x,n,u,l)),null;case 27:if(fe(i),l=Q.current,x=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==u&&ci(i);else{if(!u){if(i.stateNode===null)throw Error(a(166));return Dt(i),null}n=V.current,hs(i)?rx(i):(n=O0(x,u,l),i.stateNode=n,ci(i))}return Dt(i),null;case 5:if(fe(i),x=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==u&&ci(i);else{if(!u){if(i.stateNode===null)throw Error(a(166));return Dt(i),null}if(v=V.current,hs(i))rx(i);else{var T=Uc(Q.current);switch(v){case 1:v=T.createElementNS("http://www.w3.org/2000/svg",x);break;case 2:v=T.createElementNS("http://www.w3.org/1998/Math/MathML",x);break;default:switch(x){case"svg":v=T.createElementNS("http://www.w3.org/2000/svg",x);break;case"math":v=T.createElementNS("http://www.w3.org/1998/Math/MathML",x);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(x,{is:u.is}):T.createElement(x)}}v[Ut]=i,v[pn]=u;e:for(T=i.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===i)break e;for(;T.sibling===null;){if(T.return===null||T.return===i)break e;T=T.return}T.sibling.return=T.return,T=T.sibling}i.stateNode=v;e:switch(wn(v,x,u),x){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 Dt(i),kf(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,hs(i)){if(n=i.stateNode,l=i.memoizedProps,u=null,x=yn,x!==null)switch(x.tag){case 27:case 5:u=x.memoizedProps}n[Ut]=i,n=!!(n.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||v0(n.nodeValue,l)),n||Bi(i,!0)}else n=Uc(n).createTextNode(u),n[Ut]=i,i.stateNode=n}return Dt(i),null;case 31:if(l=i.memoizedState,n===null||n.memoizedState!==null){if(u=hs(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 Sa(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Dt(i),n=!1}else l=Ld(),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 Dt(i),null;case 13:if(u=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(x=hs(i),u!==null&&u.dehydrated!==null){if(n===null){if(!x)throw Error(a(318));if(x=i.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(a(317));x[Ut]=i}else Sa(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Dt(i),x=!1}else x=Ld(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=x),x=!0;if(!x)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,x=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(x=u.alternate.memoizedState.cachePool.pool),v=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(v=u.memoizedState.cachePool.pool),v!==x&&(u.flags|=2048)),l!==n&&l&&(i.child.flags|=8192),Nc(i,i.updateQueue),Dt(i),null);case 4:return te(),n===null&&Xf(i.stateNode.containerInfo),Dt(i),null;case 10:return ai(i.type),Dt(i),null;case 19:if(F(Qt),u=i.memoizedState,u===null)return Dt(i),null;if(x=(i.flags&128)!==0,v=u.rendering,v===null)if(x)Ml(u,!1);else{if(Yt!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(v=dc(n),v!==null){for(i.flags|=128,Ml(u,!1),n=v.updateQueue,i.updateQueue=n,Nc(i,n),i.subtreeFlags=0,n=l,l=i.child;l!==null;)Wg(l,n),l=l.sibling;return D(Qt,Qt.current&1|2),lt&&ri(i,u.treeForkCount),i.child}n=n.sibling}u.tail!==null&&ct()>Ac&&(i.flags|=128,x=!0,Ml(u,!1),i.lanes=4194304)}else{if(!x)if(n=dc(v),n!==null){if(i.flags|=128,x=!0,n=n.updateQueue,i.updateQueue=n,Nc(i,n),Ml(u,!0),u.tail===null&&u.tailMode==="hidden"&&!v.alternate&&!lt)return Dt(i),null}else 2*ct()-u.renderingStartTime>Ac&&l!==536870912&&(i.flags|=128,x=!0,Ml(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=Qt.current,D(Qt,x?l&1|2:l&1),lt&&ri(i,u.treeForkCount),n):(Dt(i),null);case 22:case 23:return Wn(i),Xd(),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&&(Dt(i),i.subtreeFlags&6&&(i.flags|=8192)):Dt(i),l=i.updateQueue,l!==null&&Nc(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&&F(Ta),null;case 24:return l=null,n!==null&&(l=n.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),ai(tn),Dt(i),null;case 25:return null;case 30:return null}throw Error(a(156,i.tag))}function LS(n,i){switch(jd(i),i.tag){case 1:return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return ai(tn),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));Sa()}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));Sa()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return F(Qt),null;case 4:return te(),null;case 10:return ai(i.type),null;case 22:case 23:return Wn(i),Xd(),n!==null&&F(Ta),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 24:return ai(tn),null;case 25:return null;default:return null}}function Sb(n,i){switch(jd(i),i.tag){case 3:ai(tn),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:F(Qt);break;case 10:ai(i.type);break;case 22:case 23:Wn(i),Xd(),n!==null&&F(Ta);break;case 24:ai(tn)}}function Ol(n,i){try{var l=i.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var x=u.next;l=x;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!==x)}}catch(G){yt(i,i.return,G)}}function Gi(n,i,l){try{var u=i.updateQueue,x=u!==null?u.lastEffect:null;if(x!==null){var v=x.next;u=v;do{if((u.tag&n)===n){var T=u.inst,G=T.destroy;if(G!==void 0){T.destroy=void 0,x=i;var ne=l,le=G;try{le()}catch(he){yt(x,ne,he)}}}u=u.next}while(u!==v)}}catch(he){yt(i,i.return,he)}}function kb(n){var i=n.updateQueue;if(i!==null){var l=n.stateNode;try{gx(i,l)}catch(u){yt(n,n.return,u)}}}function Cb(n,i,l){l.props=ja(n.type,n.memoizedProps),l.state=n.memoizedState;try{l.componentWillUnmount()}catch(u){yt(n,i,u)}}function Rl(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(x){yt(n,i,x)}}function qr(n,i){var l=n.ref,u=n.refCleanup;if(l!==null)if(typeof u=="function")try{u()}catch(x){yt(n,i,x)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(x){yt(n,i,x)}else l.current=null}function Tb(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(x){yt(n,n.return,x)}}function Cf(n,i,l){try{var u=n.stateNode;rk(u,n.type,l,i),u[pn]=i}catch(x){yt(n,n.return,x)}}function Ab(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Wi(n.type)||n.tag===4}function Tf(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Ab(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&&Wi(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 Af(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&&Wi(n.type)&&(l=n.stateNode,i=null),n=n.child,n!==null))for(Af(n,i,l),n=n.sibling;n!==null;)Af(n,i,l),n=n.sibling}function Sc(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&&Wi(n.type)&&(l=n.stateNode),n=n.child,n!==null))for(Sc(n,i,l),n=n.sibling;n!==null;)Sc(n,i,l),n=n.sibling}function Mb(n){var i=n.stateNode,l=n.memoizedProps;try{for(var u=n.type,x=i.attributes;x.length;)i.removeAttributeNode(x[0]);wn(i,u,l),i[Ut]=n,i[pn]=l}catch(v){yt(n,n.return,v)}}var ui=!1,an=!1,Mf=!1,Ob=typeof WeakSet=="function"?WeakSet:Set,xn=null;function zS(n,i){if(n=n.containerInfo,Qf=Vc,n=Pg(n),wd(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 x=u.anchorOffset,v=u.focusNode;u=u.focusOffset;try{l.nodeType,v.nodeType}catch{l=null;break e}var T=0,G=-1,ne=-1,le=0,he=0,ge=n,ce=null;t:for(;;){for(var de;ge!==l||x!==0&&ge.nodeType!==3||(G=T+x),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===x&&(G=T),ce===v&&++he===u&&(ne=T),(de=ge.nextSibling)!==null)break;ge=ce,ce=ge.parentNode}ge=de}l=G===-1||ne===-1?null:{start:G,end:ne}}else l=null}l=l||{start:0,end:0}}else l=null;for(Wf={focusedElem:n,selectionRange:l},Vc=!1,xn=i;xn!==null;)if(i=xn,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,xn=n;else for(;xn!==null;){switch(i=xn,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++)x=n[l],x.ref.impl=x.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&v!==null){n=void 0,l=i,x=v.memoizedProps,v=v.memoizedState,u=l.stateNode;try{var Ae=ja(l.type,x);n=u.getSnapshotBeforeUpdate(Ae,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)th(n);else if(l===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":th(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,xn=n;break}xn=i.return}}function Rb(n,i,l){var u=l.flags;switch(l.tag){case 0:case 11:case 15:fi(n,l),u&4&&Ol(5,l);break;case 1:if(fi(n,l),u&4)if(n=l.stateNode,i===null)try{n.componentDidMount()}catch(T){yt(l,l.return,T)}else{var x=ja(l.type,i.memoizedProps);i=i.memoizedState;try{n.componentDidUpdate(x,i,n.__reactInternalSnapshotBeforeUpdate)}catch(T){yt(l,l.return,T)}}u&64&&kb(l),u&512&&Rl(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{gx(n,i)}catch(T){yt(l,l.return,T)}}break;case 27:i===null&&u&4&&Mb(l);case 26:case 5:fi(n,l),i===null&&u&4&&Tb(l),u&512&&Rl(l,l.return);break;case 12:fi(n,l);break;case 31:fi(n,l),u&4&&Lb(n,l);break;case 13:fi(n,l),u&4&&zb(n,l),u&64&&(n=l.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(l=GS.bind(null,l),dk(n,l))));break;case 22:if(u=l.memoizedState!==null||ui,!u){i=i!==null&&i.memoizedState!==null||an,x=ui;var v=an;ui=u,(an=i)&&!v?hi(n,l,(l.subtreeFlags&8772)!==0):fi(n,l),ui=x,an=v}break;case 30:break;default:fi(n,l)}}function jb(n){var i=n.alternate;i!==null&&(n.alternate=null,jb(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&xa(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,Un=!1;function di(n,i,l){for(l=l.child;l!==null;)Db(n,i,l),l=l.sibling}function Db(n,i,l){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(Zt,l)}catch{}switch(l.tag){case 26:an||qr(l,i),di(n,i,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:an||qr(l,i);var u=zt,x=Un;Wi(l.type)&&(zt=l.stateNode,Un=!1),di(n,i,l),$l(l.stateNode),zt=u,Un=x;break;case 5:an||qr(l,i);case 6:if(u=zt,x=Un,zt=null,di(n,i,l),zt=u,Un=x,zt!==null)if(Un)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&&(Un?(n=zt,k0(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,l.stateNode),Ds(n)):k0(zt,l.stateNode));break;case 4:u=zt,x=Un,zt=l.stateNode.containerInfo,Un=!0,di(n,i,l),zt=u,Un=x;break;case 0:case 11:case 14:case 15:Gi(2,l,i),an||Gi(4,l,i),di(n,i,l);break;case 1:an||(qr(l,i),u=l.stateNode,typeof u.componentWillUnmount=="function"&&Cb(l,i,u)),di(n,i,l);break;case 21:di(n,i,l);break;case 22:an=(u=an)||l.memoizedState!==null,di(n,i,l),an=u;break;default:di(n,i,l)}}function Lb(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{Ds(n)}catch(l){yt(i,i.return,l)}}}function zb(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Ds(n)}catch(l){yt(i,i.return,l)}}function IS(n){switch(n.tag){case 31:case 13:case 19:var i=n.stateNode;return i===null&&(i=n.stateNode=new Ob),i;case 22:return n=n.stateNode,i=n._retryCache,i===null&&(i=n._retryCache=new Ob),i;default:throw Error(a(435,n.tag))}}function kc(n,i){var l=IS(n);i.forEach(function(u){if(!l.has(u)){l.add(u);var x=VS.bind(null,n,u);u.then(x,x)}})}function Hn(n,i){var l=i.deletions;if(l!==null)for(var u=0;u<l.length;u++){var x=l[u],v=n,T=i,G=T;e:for(;G!==null;){switch(G.tag){case 27:if(Wi(G.type)){zt=G.stateNode,Un=!1;break e}break;case 5:zt=G.stateNode,Un=!1;break e;case 3:case 4:zt=G.stateNode.containerInfo,Un=!0;break e}G=G.return}if(zt===null)throw Error(a(160));Db(v,T,x),zt=null,Un=!1,v=x.alternate,v!==null&&(v.return=null),x.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)Ib(i,n),i=i.sibling}var Cr=null;function Ib(n,i){var l=n.alternate,u=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:Hn(i,n),$n(n),u&4&&(Gi(3,n,n.return),Ol(3,n),Gi(5,n,n.return));break;case 1:Hn(i,n),$n(n),u&512&&(an||l===null||qr(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 x=Cr;if(Hn(i,n),$n(n),u&512&&(an||l===null||qr(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,x=x.ownerDocument||x;t:switch(u){case"title":v=x.getElementsByTagName("title")[0],(!v||v[Wr]||v[Ut]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=x.createElement(u),x.head.insertBefore(v,x.querySelector("head > title"))),wn(v,u,l),v[Ut]=n,Gt(v),u=v;break e;case"link":var T=I0("link","href",x).get(u+(l.href||""));if(T){for(var G=0;G<T.length;G++)if(v=T[G],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(G,1);break t}}v=x.createElement(u),wn(v,u,l),x.head.appendChild(v);break;case"meta":if(T=I0("meta","content",x).get(u+(l.content||""))){for(G=0;G<T.length;G++)if(v=T[G],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(G,1);break t}}v=x.createElement(u),wn(v,u,l),x.head.appendChild(v);break;default:throw Error(a(468,u))}v[Ut]=n,Gt(v),u=v}n.stateNode=u}else B0(x,n.type,n.stateNode);else n.stateNode=z0(x,u,n.memoizedProps);else v!==u?(v===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):v.count--,u===null?B0(x,n.type,n.stateNode):z0(x,u,n.memoizedProps)):u===null&&n.stateNode!==null&&Cf(n,n.memoizedProps,l.memoizedProps)}break;case 27:Hn(i,n),$n(n),u&512&&(an||l===null||qr(l,l.return)),l!==null&&u&4&&Cf(n,n.memoizedProps,l.memoizedProps);break;case 5:if(Hn(i,n),$n(n),u&512&&(an||l===null||qr(l,l.return)),n.flags&32){x=n.stateNode;try{qe(x,"")}catch(Ae){yt(n,n.return,Ae)}}u&4&&n.stateNode!=null&&(x=n.memoizedProps,Cf(n,x,l!==null?l.memoizedProps:x)),u&1024&&(Mf=!0);break;case 6:if(Hn(i,n),$n(n),u&4){if(n.stateNode===null)throw Error(a(162));u=n.memoizedProps,l=n.stateNode;try{l.nodeValue=u}catch(Ae){yt(n,n.return,Ae)}}break;case 3:if(qc=null,x=Cr,Cr=Hc(i.containerInfo),Hn(i,n),Cr=x,$n(n),u&4&&l!==null&&l.memoizedState.isDehydrated)try{Ds(i.containerInfo)}catch(Ae){yt(n,n.return,Ae)}Mf&&(Mf=!1,Bb(n));break;case 4:u=Cr,Cr=Hc(n.stateNode.containerInfo),Hn(i,n),$n(n),Cr=u;break;case 12:Hn(i,n),$n(n);break;case 31:Hn(i,n),$n(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,kc(n,u)));break;case 13:Hn(i,n),$n(n),n.child.flags&8192&&n.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Tc=ct()),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,kc(n,u)));break;case 22:x=n.memoizedState!==null;var ne=l!==null&&l.memoizedState!==null,le=ui,he=an;if(ui=le||x,an=he||ne,Hn(i,n),an=he,ui=le,$n(n),u&8192)e:for(i=n.stateNode,i._visibility=x?i._visibility&-2:i._visibility|1,x&&(l===null||ne||ui||an||Da(n)),l=null,i=n;;){if(i.tag===5||i.tag===26){if(l===null){ne=l=i;try{if(v=ne.stateNode,x)T=v.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none";else{G=ne.stateNode;var ge=ne.memoizedProps.style,ce=ge!=null&&ge.hasOwnProperty("display")?ge.display:null;G.style.display=ce==null||typeof ce=="boolean"?"":(""+ce).trim()}}catch(Ae){yt(ne,ne.return,Ae)}}}else if(i.tag===6){if(l===null){ne=i;try{ne.stateNode.nodeValue=x?"":ne.memoizedProps}catch(Ae){yt(ne,ne.return,Ae)}}}else if(i.tag===18){if(l===null){ne=i;try{var de=ne.stateNode;x?C0(de,!0):C0(ne.stateNode,!1)}catch(Ae){yt(ne,ne.return,Ae)}}}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,kc(n,l))));break;case 19:Hn(i,n),$n(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,kc(n,u)));break;case 30:break;case 21:break;default:Hn(i,n),$n(n)}}function $n(n){var i=n.flags;if(i&2){try{for(var l,u=n.return;u!==null;){if(Ab(u)){l=u;break}u=u.return}if(l==null)throw Error(a(160));switch(l.tag){case 27:var x=l.stateNode,v=Tf(n);Sc(n,v,x);break;case 5:var T=l.stateNode;l.flags&32&&(qe(T,""),l.flags&=-33);var G=Tf(n);Sc(n,G,T);break;case 3:case 4:var ne=l.stateNode.containerInfo,le=Tf(n);Af(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 Bb(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var i=n;Bb(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;)Rb(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:Gi(4,i,i.return),Da(i);break;case 1:qr(i,i.return);var l=i.stateNode;typeof l.componentWillUnmount=="function"&&Cb(i,i.return,l),Da(i);break;case 27:$l(i.stateNode);case 26:case 5:qr(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,x=n,v=i,T=v.flags;switch(v.tag){case 0:case 11:case 15:hi(x,v,l),Ol(4,v);break;case 1:if(hi(x,v,l),u=v,x=u.stateNode,typeof x.componentDidMount=="function")try{x.componentDidMount()}catch(le){yt(u,u.return,le)}if(u=v,x=u.updateQueue,x!==null){var G=u.stateNode;try{var ne=x.shared.hiddenCallbacks;if(ne!==null)for(x.shared.hiddenCallbacks=null,x=0;x<ne.length;x++)px(ne[x],G)}catch(le){yt(u,u.return,le)}}l&&T&64&&kb(v),Rl(v,v.return);break;case 27:Mb(v);case 26:case 5:hi(x,v,l),l&&u===null&&T&4&&Tb(v),Rl(v,v.return);break;case 12:hi(x,v,l);break;case 31:hi(x,v,l),l&&T&4&&Lb(x,v);break;case 13:hi(x,v,l),l&&T&4&&zb(x,v);break;case 22:v.memoizedState===null&&hi(x,v,l),Rl(v,v.return);break;case 30:break;default:hi(x,v,l)}i=i.sibling}}function Of(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 Rf(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 Tr(n,i,l,u){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)Ub(n,i,l,u),i=i.sibling}function Ub(n,i,l,u){var x=i.flags;switch(i.tag){case 0:case 11:case 15:Tr(n,i,l,u),x&2048&&Ol(9,i);break;case 1:Tr(n,i,l,u);break;case 3:Tr(n,i,l,u),x&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(x&2048){Tr(n,i,l,u),n=i.stateNode;try{var v=i.memoizedProps,T=v.id,G=v.onPostCommit;typeof G=="function"&&G(T,i.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(ne){yt(i,i.return,ne)}}else Tr(n,i,l,u);break;case 31:Tr(n,i,l,u);break;case 13:Tr(n,i,l,u);break;case 23:break;case 22:v=i.stateNode,T=i.alternate,i.memoizedState!==null?v._visibility&2?Tr(n,i,l,u):jl(n,i):v._visibility&2?Tr(n,i,l,u):(v._visibility|=2,Es(n,i,l,u,(i.subtreeFlags&10256)!==0||!1)),x&2048&&Of(T,i);break;case 24:Tr(n,i,l,u),x&2048&&Rf(i.alternate,i);break;default:Tr(n,i,l,u)}}function Es(n,i,l,u,x){for(x=x&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var v=n,T=i,G=l,ne=u,le=T.flags;switch(T.tag){case 0:case 11:case 15:Es(v,T,G,ne,x),Ol(8,T);break;case 23:break;case 22:var he=T.stateNode;T.memoizedState!==null?he._visibility&2?Es(v,T,G,ne,x):jl(v,T):(he._visibility|=2,Es(v,T,G,ne,x)),x&&le&2048&&Of(T.alternate,T);break;case 24:Es(v,T,G,ne,x),x&&le&2048&&Rf(T.alternate,T);break;default:Es(v,T,G,ne,x)}i=i.sibling}}function jl(n,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var l=n,u=i,x=u.flags;switch(u.tag){case 22:jl(l,u),x&2048&&Of(u.alternate,u);break;case 24:jl(l,u),x&2048&&Rf(u.alternate,u);break;default:jl(l,u)}i=i.sibling}}var Dl=8192;function Ns(n,i,l){if(n.subtreeFlags&Dl)for(n=n.child;n!==null;)Hb(n,i,l),n=n.sibling}function Hb(n,i,l){switch(n.tag){case 26:Ns(n,i,l),n.flags&Dl&&n.memoizedState!==null&&Ek(l,Cr,n.memoizedState,n.memoizedProps);break;case 5:Ns(n,i,l);break;case 3:case 4:var u=Cr;Cr=Hc(n.stateNode.containerInfo),Ns(n,i,l),Cr=u;break;case 22:n.memoizedState===null&&(u=n.alternate,u!==null&&u.memoizedState!==null?(u=Dl,Dl=16777216,Ns(n,i,l),Dl=u):Ns(n,i,l));break;default:Ns(n,i,l)}}function $b(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 Ll(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];xn=u,Pb(u,n)}$b(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)qb(n),n=n.sibling}function qb(n){switch(n.tag){case 0:case 11:case 15:Ll(n),n.flags&2048&&Gi(9,n,n.return);break;case 3:Ll(n);break;case 12:Ll(n);break;case 22:var i=n.stateNode;n.memoizedState!==null&&i._visibility&2&&(n.return===null||n.return.tag!==13)?(i._visibility&=-3,Cc(n)):Ll(n);break;default:Ll(n)}}function Cc(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];xn=u,Pb(u,n)}$b(n)}for(n=n.child;n!==null;){switch(i=n,i.tag){case 0:case 11:case 15:Gi(8,i,i.return),Cc(i);break;case 22:l=i.stateNode,l._visibility&2&&(l._visibility&=-3,Cc(i));break;default:Cc(i)}n=n.sibling}}function Pb(n,i){for(;xn!==null;){var l=xn;switch(l.tag){case 0:case 11:case 15:Gi(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,xn=u;else e:for(l=n;xn!==null;){u=xn;var x=u.sibling,v=u.return;if(jb(u),u===l){xn=null;break e}if(x!==null){x.return=v,xn=x;break e}xn=v}}}var BS={getCacheForType:function(n){var i=vn(tn),l=i.data.get(n);return l===void 0&&(l=n(),i.data.set(n,l)),l},cacheSignal:function(){return vn(tn).controller.signal}},US=typeof WeakMap=="function"?WeakMap:Map,pt=0,kt=null,Je=null,it=0,bt=0,Jn=null,Vi=!1,Ss=!1,jf=!1,mi=0,Yt=0,Yi=0,La=0,Df=0,er=0,ks=0,zl=null,qn=null,Lf=!1,Tc=0,Fb=0,Ac=1/0,Mc=null,Xi=null,fn=0,Ki=null,Cs=null,pi=0,zf=0,If=null,Gb=null,Il=0,Bf=null;function tr(){return(pt&2)!==0&&it!==0?it&-it:O.T!==null?Ff():ki()}function Vb(){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 Pn(n,i,l){(n===kt&&(bt===2||bt===9)||n.cancelPendingCommit!==null)&&(Ts(n,0),Zi(n,it,er,!1)),gt(n,l),((pt&2)===0||n!==kt)&&(n===kt&&((pt&2)===0&&(La|=l),Yt===4&&Zi(n,it,er,!1)),Pr(n))}function Yb(n,i,l){if((pt&6)!==0)throw Error(a(327));var u=!l&&(i&127)===0&&(i&n.expiredLanes)===0||me(n,i),x=u?qS(n,i):Hf(n,i,!0),v=u;do{if(x===0){Ss&&!u&&Zi(n,i,0,!1);break}else{if(l=n.current.alternate,v&&!HS(l)){x=Hf(n,i,!1),v=!1;continue}if(x===2){if(v=i,n.errorRecoveryDisabledLanes&v)var T=0;else T=n.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){i=T;e:{var G=n;x=zl;var ne=G.current.memoizedState.isDehydrated;if(ne&&(Ts(G,T).flags|=256),T=Hf(G,T,!1),T!==2){if(jf&&!ne){G.errorRecoveryDisabledLanes|=v,La|=v,x=4;break e}v=qn,qn=x,v!==null&&(qn===null?qn=v:qn.push.apply(qn,v))}x=T}if(v=!1,x!==2)continue}}if(x===1){Ts(n,0),Zi(n,i,0,!0);break}e:{switch(u=n,v=x,v){case 0:case 1:throw Error(a(345));case 4:if((i&4194048)!==i)break;case 6:Zi(u,i,er,!Vi);break e;case 2:qn=null;break;case 3:case 5:break;default:throw Error(a(329))}if((i&62914560)===i&&(x=Tc+300-ct(),10<x)){if(Zi(u,i,er,!Vi),re(u,0,!0)!==0)break e;pi=i,u.timeoutHandle=N0(Xb.bind(null,u,l,qn,Mc,Lf,i,er,La,ks,Vi,v,"Throttled",-0,0),x);break e}Xb(u,l,qn,Mc,Lf,i,er,La,ks,Vi,v,null,-0,0)}}break}while(!0);Pr(n)}function Xb(n,i,l,u,x,v,T,G,ne,le,he,ge,ce,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},Hb(i,v,ge);var Ae=(v&62914560)===v?Tc-ct():(v&4194048)===v?Fb-ct():0;if(Ae=Nk(ge,Ae),Ae!==null){pi=v,n.cancelPendingCommit=Ae(n0.bind(null,n,i,v,l,u,x,T,G,ne,he,ge,null,ce,de)),Zi(n,v,T,!le);return}}n0(n,i,v,l,u,x,T,G,ne)}function HS(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 x=l[u],v=x.getSnapshot;x=x.value;try{if(!Kn(v(),x))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 Zi(n,i,l,u){i&=~Df,i&=~La,n.suspendedLanes|=i,n.pingedLanes&=~i,u&&(n.warmLanes|=i),u=n.expirationTimes;for(var x=i;0<x;){var v=31-ut(x),T=1<<v;u[v]=-1,x&=~T}l!==0&&Se(n,l,i)}function Oc(){return(pt&6)===0?(Bl(0),!1):!0}function Uf(){if(Je!==null){if(bt===0)var n=Je.return;else n=Je,ii=ka=null,ef(n),bs=null,vl=0,n=Je;for(;n!==null;)Sb(n.alternate,n),n=n.return;Je=null}}function Ts(n,i){var l=n.timeoutHandle;l!==-1&&(n.timeoutHandle=-1,sk(l)),l=n.cancelPendingCommit,l!==null&&(n.cancelPendingCommit=null,l()),pi=0,Uf(),kt=n,Je=l=ni(n.current,null),it=i,bt=0,Jn=null,Vi=!1,Ss=me(n,i),jf=!1,ks=er=Df=La=Yi=Yt=0,qn=zl=null,Lf=!1,(i&8)!==0&&(i|=i&32);var u=n.entangledLanes;if(u!==0)for(n=n.entanglements,u&=i;0<u;){var x=31-ut(u),v=1<<x;i|=n[x],u&=~v}return mi=i,Wo(),l}function Kb(n,i){Xe=null,O.H=Tl,i===xs||i===sc?(i=dx(),bt=3):i===qd?(i=dx(),bt=4):bt=i===xf?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Jn=i,Je===null&&(Yt=1,vc(n,ur(i,n.current)))}function Zb(){var n=Qn.current;return n===null?!0:(it&4194048)===it?mr===null:(it&62914560)===it||(it&536870912)!==0?n===mr:!1}function Qb(){var n=O.H;return O.H=Tl,n===null?Tl:n}function Wb(){var n=O.A;return O.A=BS,n}function Rc(){Yt=4,Vi||(it&4194048)!==it&&Qn.current!==null||(Ss=!0),(Yi&134217727)===0&&(La&134217727)===0||kt===null||Zi(kt,it,er,!1)}function Hf(n,i,l){var u=pt;pt|=2;var x=Qb(),v=Wb();(kt!==n||it!==i)&&(Mc=null,Ts(n,i)),i=!1;var T=Yt;e:do try{if(bt!==0&&Je!==null){var G=Je,ne=Jn;switch(bt){case 8:Uf(),T=6;break e;case 3:case 2:case 9:case 6:Qn.current===null&&(i=!0);var le=bt;if(bt=0,Jn=null,As(n,G,ne,le),l&&Ss){T=0;break e}break;default:le=bt,bt=0,Jn=null,As(n,G,ne,le)}}$S(),T=Yt;break}catch(he){Kb(n,he)}while(!0);return i&&n.shellSuspendCounter++,ii=ka=null,pt=u,O.H=x,O.A=v,Je===null&&(kt=null,it=0,Wo()),T}function $S(){for(;Je!==null;)Jb(Je)}function qS(n,i){var l=pt;pt|=2;var u=Qb(),x=Wb();kt!==n||it!==i?(Mc=null,Ac=ct()+500,Ts(n,i)):Ss=me(n,i);e:do try{if(bt!==0&&Je!==null){i=Je;var v=Jn;t:switch(bt){case 1:bt=0,Jn=null,As(n,i,v,1);break;case 2:case 9:if(cx(v)){bt=0,Jn=null,e0(i);break}i=function(){bt!==2&&bt!==9||kt!==n||(bt=7),Pr(n)},v.then(i,i);break e;case 3:bt=7;break e;case 4:bt=5;break e;case 7:cx(v)?(bt=0,Jn=null,e0(i)):(bt=0,Jn=null,As(n,i,v,7));break;case 5:var T=null;switch(Je.tag){case 26:T=Je.memoizedState;case 5:case 27:var G=Je;if(T?U0(T):G.stateNode.complete){bt=0,Jn=null;var ne=G.sibling;if(ne!==null)Je=ne;else{var le=G.return;le!==null?(Je=le,jc(le)):Je=null}break t}}bt=0,Jn=null,As(n,i,v,5);break;case 6:bt=0,Jn=null,As(n,i,v,6);break;case 8:Uf(),Yt=6;break e;default:throw Error(a(462))}}PS();break}catch(he){Kb(n,he)}while(!0);return ii=ka=null,O.H=u,O.A=x,pt=l,Je!==null?0:(kt=null,it=0,Wo(),Yt)}function PS(){for(;Je!==null&&!Yn();)Jb(Je)}function Jb(n){var i=Eb(n.alternate,n,mi);n.memoizedProps=n.pendingProps,i===null?jc(n):Je=i}function e0(n){var i=n,l=i.alternate;switch(i.tag){case 15:case 0:i=xb(l,i,i.pendingProps,i.type,void 0,it);break;case 11:i=xb(l,i,i.pendingProps,i.type.render,i.ref,it);break;case 5:ef(i);default:Sb(l,i),i=Je=Wg(i,mi),i=Eb(l,i,mi)}n.memoizedProps=n.pendingProps,i===null?jc(n):Je=i}function As(n,i,l,u){ii=ka=null,ef(i),bs=null,vl=0;var x=i.return;try{if(OS(n,x,i,l,it)){Yt=1,vc(n,ur(l,n.current)),Je=null;return}}catch(v){if(x!==null)throw Je=x,v;Yt=1,vc(n,ur(l,n.current)),Je=null;return}i.flags&32768?(lt||u===1?n=!0:Ss||(it&536870912)!==0?n=!1:(Vi=n=!0,(u===2||u===9||u===3||u===6)&&(u=Qn.current,u!==null&&u.tag===13&&(u.flags|=16384))),t0(i,n)):jc(i)}function jc(n){var i=n;do{if((i.flags&32768)!==0){t0(i,Vi);return}n=i.return;var l=DS(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);Yt===0&&(Yt=5)}function t0(n,i){do{var l=LS(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);Yt=6,Je=null}function n0(n,i,l,u,x,v,T,G,ne){n.cancelPendingCommit=null;do Dc();while(fn!==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|=Cd,Me(n,l,v,T,G,ne),n===kt&&(Je=kt=null,it=0),Cs=i,Ki=n,pi=l,zf=v,If=x,Gb=u,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,YS(Oe,function(){return l0(),null})):(n.callbackNode=null,n.callbackPriority=0),u=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||u){u=O.T,O.T=null,x=U.p,U.p=2,T=pt,pt|=4;try{zS(n,i,l)}finally{pt=T,U.p=x,O.T=u}}fn=1,r0(),i0(),a0()}}function r0(){if(fn===1){fn=0;var n=Ki,i=Cs,l=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||l){l=O.T,O.T=null;var u=U.p;U.p=2;var x=pt;pt|=4;try{Ib(i,n);var v=Wf,T=Pg(n.containerInfo),G=v.focusedElem,ne=v.selectionRange;if(T!==G&&G&&G.ownerDocument&&qg(G.ownerDocument.documentElement,G)){if(ne!==null&&wd(G)){var le=ne.start,he=ne.end;if(he===void 0&&(he=le),"selectionStart"in G)G.selectionStart=le,G.selectionEnd=Math.min(he,G.value.length);else{var ge=G.ownerDocument||document,ce=ge&&ge.defaultView||window;if(ce.getSelection){var de=ce.getSelection(),Ae=G.textContent.length,He=Math.min(ne.start,Ae),Nt=ne.end===void 0?He:Math.min(ne.end,Ae);!de.extend&&He>Nt&&(T=Nt,Nt=He,He=T);var ae=$g(G,He),ie=$g(G,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=G;de=de.parentNode;)de.nodeType===1&&ge.push({element:de,left:de.scrollLeft,top:de.scrollTop});for(typeof G.focus=="function"&&G.focus(),G=0;G<ge.length;G++){var pe=ge[G];pe.element.scrollLeft=pe.left,pe.element.scrollTop=pe.top}}Vc=!!Qf,Wf=Qf=null}finally{pt=x,U.p=u,O.T=l}}n.current=i,fn=2}}function i0(){if(fn===2){fn=0;var n=Ki,i=Cs,l=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||l){l=O.T,O.T=null;var u=U.p;U.p=2;var x=pt;pt|=4;try{Rb(n,i.alternate,i)}finally{pt=x,U.p=u,O.T=l}}fn=3}}function a0(){if(fn===4||fn===3){fn=0,Nn();var n=Ki,i=Cs,l=pi,u=Gb;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?fn=5:(fn=0,Cs=Ki=null,s0(n,n.pendingLanes));var x=n.pendingLanes;if(x===0&&(Xi=null),vr(l),i=i.stateNode,At&&typeof At.onCommitFiberRoot=="function")try{At.onCommitFiberRoot(Zt,i,void 0,(i.current.flags&128)===128)}catch{}if(u!==null){i=O.T,x=U.p,U.p=2,O.T=null;try{for(var v=n.onRecoverableError,T=0;T<u.length;T++){var G=u[T];v(G.value,{componentStack:G.stack})}}finally{O.T=i,U.p=x}}(pi&3)!==0&&Dc(),Pr(n),x=n.pendingLanes,(l&261930)!==0&&(x&42)!==0?n===Bf?Il++:(Il=0,Bf=n):Il=0,Bl(0)}}function s0(n,i){(n.pooledCacheLanes&=i)===0&&(i=n.pooledCache,i!=null&&(n.pooledCache=null,bl(i)))}function Dc(){return r0(),i0(),a0(),l0()}function l0(){if(fn!==5)return!1;var n=Ki,i=zf;zf=0;var l=vr(pi),u=O.T,x=U.p;try{U.p=32>l?32:l,O.T=null,l=If,If=null;var v=Ki,T=pi;if(fn=0,Cs=Ki=null,pi=0,(pt&6)!==0)throw Error(a(331));var G=pt;if(pt|=4,qb(v.current),Ub(v,v.current,T,l),pt=G,Bl(0,!1),At&&typeof At.onPostCommitFiberRoot=="function")try{At.onPostCommitFiberRoot(Zt,v)}catch{}return!0}finally{U.p=x,O.T=u,s0(n,i)}}function o0(n,i,l){i=ur(l,i),i=gf(n.stateNode,i,2),n=qi(n,i,2),n!==null&&(gt(n,2),Pr(n))}function yt(n,i,l){if(n.tag===3)o0(n,n,l);else for(;i!==null;){if(i.tag===3){o0(i,n,l);break}else if(i.tag===1){var u=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Xi===null||!Xi.has(u))){n=ur(l,n),l=cb(2),u=qi(i,l,2),u!==null&&(ub(l,u,i,n),gt(u,2),Pr(u));break}}i=i.return}}function $f(n,i,l){var u=n.pingCache;if(u===null){u=n.pingCache=new US;var x=new Set;u.set(i,x)}else x=u.get(i),x===void 0&&(x=new Set,u.set(i,x));x.has(l)||(jf=!0,x.add(l),n=FS.bind(null,n,i,l),i.then(n,n))}function FS(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&&(Yt===4||Yt===3&&(it&62914560)===it&&300>ct()-Tc?(pt&2)===0&&Ts(n,0):Df|=l,ks===it&&(ks=0)),Pr(n)}function c0(n,i){i===0&&(i=Pe()),n=Ea(n,i),n!==null&&(gt(n,i),Pr(n))}function GS(n){var i=n.memoizedState,l=0;i!==null&&(l=i.retryLane),c0(n,l)}function VS(n,i){var l=0;switch(n.tag){case 31:case 13:var u=n.stateNode,x=n.memoizedState;x!==null&&(l=x.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),c0(n,l)}function YS(n,i){return Ft(n,i)}var Lc=null,Ms=null,qf=!1,zc=!1,Pf=!1,Qi=0;function Pr(n){n!==Ms&&n.next===null&&(Ms===null?Lc=Ms=n:Ms=Ms.next=n),zc=!0,qf||(qf=!0,KS())}function Bl(n,i){if(!Pf&&zc){Pf=!0;do for(var l=!1,u=Lc;u!==null;){if(n!==0){var x=u.pendingLanes;if(x===0)var v=0;else{var T=u.suspendedLanes,G=u.pingedLanes;v=(1<<31-ut(42|n)+1)-1,v&=x&~(T&~G),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(l=!0,h0(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,h0(u,v));u=u.next}while(l);Pf=!1}}function XS(){u0()}function u0(){zc=qf=!1;var n=0;Qi!==0&&ak()&&(n=Qi);for(var i=ct(),l=null,u=Lc;u!==null;){var x=u.next,v=d0(u,i);v===0?(u.next=null,l===null?Lc=x:l.next=x,x===null&&(Ms=l)):(l=u,(n!==0||(v&3)!==0)&&(zc=!0)),u=x}fn!==0&&fn!==5||Bl(n),Qi!==0&&(Qi=0)}function d0(n,i){for(var l=n.suspendedLanes,u=n.pingedLanes,x=n.expirationTimes,v=n.pendingLanes&-62914561;0<v;){var T=31-ut(v),G=1<<T,ne=x[T];ne===-1?((G&l)===0||(G&u)!==0)&&(x[T]=Ee(G,i)):ne<=i&&(n.expiredLanes|=G),v&=~G}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&&(bt===2||bt===9)||n.cancelPendingCommit!==null)return u!==null&&u!==null&&Kt(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&&Kt(u),vr(l)){case 2:case 8:l=be;break;case 32:l=Oe;break;case 268435456:l=Ze;break;default:l=Oe}return u=f0.bind(null,n),l=Ft(l,u),n.callbackPriority=i,n.callbackNode=l,i}return u!==null&&u!==null&&Kt(u),n.callbackPriority=2,n.callbackNode=null,2}function f0(n,i){if(fn!==0&&fn!==5)return n.callbackNode=null,n.callbackPriority=0,null;var l=n.callbackNode;if(Dc()&&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:(Yb(n,u,i),d0(n,ct()),n.callbackNode!=null&&n.callbackNode===l?f0.bind(null,n):null)}function h0(n,i){if(Dc())return null;Yb(n,i,!0)}function KS(){lk(function(){(pt&6)!==0?Ft(ue,XS):u0()})}function Ff(){if(Qi===0){var n=ps;n===0&&(n=nt,nt<<=1,(nt&261888)===0&&(nt=256)),Qi=n}return Qi}function m0(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Di(""+n)}function p0(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 ZS(n,i,l,u,x){if(i==="submit"&&l&&l.stateNode===x){var v=m0((x[pn]||null).action),T=u.submitter;T&&(i=(i=T[pn]||null)?m0(i.formAction):T.getAttribute("formAction"),i!==null&&(v=i,T=null));var G=new Xo("action","action",null,u,x);n.push({event:G,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Qi!==0){var ne=T?p0(x,T):new FormData(x);uf(l,{pending:!0,data:ne,method:x.method,action:v},null,ne)}}else typeof v=="function"&&(G.preventDefault(),ne=T?p0(x,T):new FormData(x),uf(l,{pending:!0,data:ne,method:x.method,action:v},v,ne))},currentTarget:x}]})}}for(var Gf=0;Gf<kd.length;Gf++){var Vf=kd[Gf],QS=Vf.toLowerCase(),WS=Vf[0].toUpperCase()+Vf.slice(1);kr(QS,"on"+WS)}kr(Vg,"onAnimationEnd"),kr(Yg,"onAnimationIteration"),kr(Xg,"onAnimationStart"),kr("dblclick","onDoubleClick"),kr("focusin","onFocus"),kr("focusout","onBlur"),kr(mS,"onTransitionRun"),kr(pS,"onTransitionStart"),kr(gS,"onTransitionCancel"),kr(Kg,"onTransitionEnd"),ye("onMouseEnter",["mouseout","mouseover"]),ye("onMouseLeave",["mouseout","mouseover"]),ye("onPointerEnter",["pointerout","pointerover"]),ye("onPointerLeave",["pointerout","pointerover"]),Nr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Nr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Nr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Nr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Nr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Nr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ul="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(" "),JS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ul));function g0(n,i){i=(i&4)!==0;for(var l=0;l<n.length;l++){var u=n[l],x=u.event;u=u.listeners;e:{var v=void 0;if(i)for(var T=u.length-1;0<=T;T--){var G=u[T],ne=G.instance,le=G.currentTarget;if(G=G.listener,ne!==v&&x.isPropagationStopped())break e;v=G,x.currentTarget=le;try{v(x)}catch(he){Qo(he)}x.currentTarget=null,v=ne}else for(T=0;T<u.length;T++){if(G=u[T],ne=G.instance,le=G.currentTarget,G=G.listener,ne!==v&&x.isPropagationStopped())break e;v=G,x.currentTarget=le;try{v(x)}catch(he){Qo(he)}x.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)||(x0(i,n,2,!1),l.add(u))}function Yf(n,i,l){var u=0;i&&(u|=4),x0(l,n,u,i)}var Ic="_reactListening"+Math.random().toString(36).slice(2);function Xf(n){if(!n[Ic]){n[Ic]=!0,ns.forEach(function(l){l!=="selectionchange"&&(JS.has(l)||Yf(l,!1,n),Yf(l,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[Ic]||(i[Ic]=!0,Yf("selectionchange",!1,i))}}function x0(n,i,l,u){switch(V0(i)){case 2:var x=Ck;break;case 8:x=Tk;break;default:x=ch}l=x.bind(null,i,l,n),x=void 0,!hd||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(x=!0),u?x!==void 0?n.addEventListener(i,l,{capture:!0,passive:x}):n.addEventListener(i,l,!0):x!==void 0?n.addEventListener(i,l,{passive:x}):n.addEventListener(i,l,!1)}function Kf(n,i,l,u,x){var v=u;if((i&1)===0&&(i&2)===0&&u!==null)e:for(;;){if(u===null)return;var T=u.tag;if(T===3||T===4){var G=u.stateNode.containerInfo;if(G===x)break;if(T===4)for(T=u.return;T!==null;){var ne=T.tag;if((ne===3||ne===4)&&T.stateNode.containerInfo===x)return;T=T.return}for(;G!==null;){if(T=bn(G),T===null)return;if(ne=T.tag,ne===5||ne===6||ne===26||ne===27){u=v=T;continue e}G=G.parentNode}}u=u.return}Fo(function(){var le=v,he=Ye(l),ge=[];e:{var ce=Zg.get(n);if(ce!==void 0){var de=Xo,Ae=n;switch(n){case"keypress":if(Vo(l)===0)break e;case"keydown":case"keyup":de=V2;break;case"focusin":Ae="focus",de=xd;break;case"focusout":Ae="blur",de=xd;break;case"beforeblur":case"afterblur":de=xd;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=Sg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":de=D2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":de=K2;break;case Vg:case Yg:case Xg:de=I2;break;case Kg:de=Q2;break;case"scroll":case"scrollend":de=R2;break;case"wheel":de=J2;break;case"copy":case"cut":case"paste":de=U2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":de=Cg;break;case"toggle":case"beforetoggle":de=tS}var He=(i&4)!==0,Nt=!He&&(n==="scroll"||n==="scrollend"),ae=He?ce!==null?ce+"Capture":null:ce;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=ll(ie,ae),pe!=null&&He.push(Hl(ie,pe,se))),Nt)break;ie=ie.return}0<He.length&&(ce=new de(ce,Ae,null,l,he),ge.push({event:ce,listeners:He}))}}if((i&7)===0){e:{if(ce=n==="mouseover"||n==="pointerover",de=n==="mouseout"||n==="pointerout",ce&&l!==Re&&(Ae=l.relatedTarget||l.fromElement)&&(bn(Ae)||Ae[_r]))break e;if((de||ce)&&(ce=he.window===he?he:(ce=he.ownerDocument)?ce.defaultView||ce.parentWindow:window,de?(Ae=l.relatedTarget||l.toElement,de=le,Ae=Ae?bn(Ae):null,Ae!==null&&(Nt=o(Ae),He=Ae.tag,Ae!==Nt||He!==5&&He!==27&&He!==6)&&(Ae=null)):(de=null,Ae=le),de!==Ae)){if(He=Sg,pe="onMouseLeave",ae="onMouseEnter",ie="mouse",(n==="pointerout"||n==="pointerover")&&(He=Cg,pe="onPointerLeave",ae="onPointerEnter",ie="pointer"),Nt=de==null?ce:Er(de),se=Ae==null?ce:Er(Ae),ce=new He(pe,ie+"leave",de,l,he),ce.target=Nt,ce.relatedTarget=se,pe=null,bn(he)===le&&(He=new He(ae,ie+"enter",Ae,l,he),He.target=se,He.relatedTarget=Nt,pe=He),Nt=pe,de&&Ae)t:{for(He=ek,ae=de,ie=Ae,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&&b0(ge,ce,de,He,!1),Ae!==null&&Nt!==null&&b0(ge,Nt,Ae,He,!0)}}e:{if(ce=le?Er(le):window,de=ce.nodeName&&ce.nodeName.toLowerCase(),de==="select"||de==="input"&&ce.type==="file")var ht=Lg;else if(jg(ce))if(zg)ht=dS;else{ht=cS;var je=oS}else de=ce.nodeName,!de||de.toLowerCase()!=="input"||ce.type!=="checkbox"&&ce.type!=="radio"?le&&ji(le.elementType)&&(ht=Lg):ht=uS;if(ht&&(ht=ht(n,le))){Dg(ge,ht,l,he);break e}je&&je(n,ce,le),n==="focusout"&&le&&ce.type==="number"&&le.memoizedProps.value!=null&&Ri(ce,"number",ce.value)}switch(je=le?Er(le):window,n){case"focusin":(jg(je)||je.contentEditable==="true")&&(ls=je,Ed=le,pl=null);break;case"focusout":pl=Ed=ls=null;break;case"mousedown":Nd=!0;break;case"contextmenu":case"mouseup":case"dragend":Nd=!1,Fg(ge,l,he);break;case"selectionchange":if(hS)break;case"keydown":case"keyup":Fg(ge,l,he)}var Ke;if(yd)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 ss?Og(n,l)&&(at="onCompositionEnd"):n==="keydown"&&l.keyCode===229&&(at="onCompositionStart");at&&(Tg&&l.locale!=="ko"&&(ss||at!=="onCompositionStart"?at==="onCompositionEnd"&&ss&&(Ke=Eg()):(Li=he,md="value"in Li?Li.value:Li.textContent,ss=!0)),je=Bc(le,at),0<je.length&&(at=new kg(at,n,null,l,he),ge.push({event:at,listeners:je}),Ke?at.data=Ke:(Ke=Rg(l),Ke!==null&&(at.data=Ke)))),(Ke=rS?iS(n,l):aS(n,l))&&(at=Bc(le,"onBeforeInput"),0<at.length&&(je=new kg("onBeforeInput","beforeinput",null,l,he),ge.push({event:je,listeners:at}),je.data=Ke)),ZS(ge,n,le,l,he)}g0(ge,i)})}function Hl(n,i,l){return{instance:n,listener:i,currentTarget:l}}function Bc(n,i){for(var l=i+"Capture",u=[];n!==null;){var x=n,v=x.stateNode;if(x=x.tag,x!==5&&x!==26&&x!==27||v===null||(x=ll(n,l),x!=null&&u.unshift(Hl(n,x,v)),x=ll(n,i),x!=null&&u.push(Hl(n,x,v))),n.tag===3)return u;n=n.return}return[]}function ek(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function b0(n,i,l,u,x){for(var v=i._reactName,T=[];l!==null&&l!==u;){var G=l,ne=G.alternate,le=G.stateNode;if(G=G.tag,ne!==null&&ne===u)break;G!==5&&G!==26&&G!==27||le===null||(ne=le,x?(le=ll(l,v),le!=null&&T.unshift(Hl(l,le,ne))):x||(le=ll(l,v),le!=null&&T.push(Hl(l,le,ne)))),l=l.return}T.length!==0&&n.push({event:i,listeners:T})}var tk=/\r\n?/g,nk=/\u0000|\uFFFD/g;function y0(n){return(typeof n=="string"?n:""+n).replace(tk,`
+`).replace(nk,"")}function v0(n,i){return i=y0(i),y0(n)===i}function Et(n,i,l,u,x,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":Rn(n,"class",u);break;case"tabIndex":Rn(n,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Rn(n,l,u);break;case"style":xt(n,u,v);break;case"data":if(i!=="object"){Rn(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",x.name,x,null),Et(n,i,"formEncType",x.formEncType,x,null),Et(n,i,"formMethod",x.formMethod,x,null),Et(n,i,"formTarget",x.formTarget,x,null)):(Et(n,i,"encType",x.encType,x,null),Et(n,i,"method",x.method,x,null),Et(n,i,"target",x.target,x,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(x.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),gn(n,"popover",u);break;case"xlinkActuate":kn(n,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":kn(n,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":kn(n,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":kn(n,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":kn(n,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":kn(n,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":kn(n,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":kn(n,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":kn(n,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":gn(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,gn(n,l,u))}}function Zf(n,i,l,u,x,v){switch(l){case"style":xt(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(x.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"&&(x=l.endsWith("Capture"),i=l.slice(2,x?l.length-7:void 0),v=n[pn]||null,v=v!=null?v[l]:null,typeof v=="function"&&n.removeEventListener(i,v,x),typeof u=="function")){typeof v!="function"&&v!==null&&(l in n?n[l]=null:n.hasAttribute(l)&&n.removeAttribute(l)),n.addEventListener(i,u,x);break e}l in n?n[l]=u:u===!0?n.setAttribute(l,""):gn(n,l,u)}}}function wn(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,x=!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":x=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:Et(n,i,v,T,l,null)}}x&&Et(n,i,"srcSet",l.srcSet,l,null),u&&Et(n,i,"src",l.src,l,null);return;case"input":et("invalid",n);var G=v=T=x=null,ne=null,le=null;for(u in l)if(l.hasOwnProperty(u)){var he=l[u];if(he!=null)switch(u){case"name":x=he;break;case"type":T=he;break;case"checked":ne=he;break;case"defaultChecked":le=he;break;case"value":v=he;break;case"defaultValue":G=he;break;case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(a(137,i));break;default:Et(n,i,u,he,l,null)}}Sr(n,v,G,ne,le,T,x,!1);return;case"select":et("invalid",n),u=T=v=null;for(x in l)if(l.hasOwnProperty(x)&&(G=l[x],G!=null))switch(x){case"value":v=G;break;case"defaultValue":T=G;break;case"multiple":u=G;default:Et(n,i,x,G,l,null)}i=v,l=T,n.multiple=!!u,i!=null?dn(n,!!u,i,!1):l!=null&&dn(n,!!u,l,!0);return;case"textarea":et("invalid",n),v=x=u=null;for(T in l)if(l.hasOwnProperty(T)&&(G=l[T],G!=null))switch(T){case"value":u=G;break;case"defaultValue":x=G;break;case"children":v=G;break;case"dangerouslySetInnerHTML":if(G!=null)throw Error(a(91));break;default:Et(n,i,T,G,l,null)}as(n,u,x,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<Ul.length;u++)et(Ul[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(ji(i)){for(he in l)l.hasOwnProperty(he)&&(u=l[he],u!==void 0&&Zf(n,i,he,u,l,void 0));return}}for(G in l)l.hasOwnProperty(G)&&(u=l[G],u!=null&&Et(n,i,G,u,l,null))}function rk(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 x=null,v=null,T=null,G=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 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":x=de;break;case"checked":le=de;break;case"defaultChecked":he=de;break;case"value":T=de;break;case"defaultValue":G=de;break;case"children":case"dangerouslySetInnerHTML":if(de!=null)throw Error(a(137,i));break;default:de!==ge&&Et(n,i,ce,de,u,ge)}}ba(n,T,G,ne,le,he,v,x);return;case"select":de=T=G=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,i,v,null,u,ne)}for(x in u)if(v=u[x],ne=l[x],u.hasOwnProperty(x)&&(v!=null||ne!=null))switch(x){case"value":ce=v;break;case"defaultValue":G=v;break;case"multiple":T=v;default:v!==ne&&Et(n,i,x,v,u,ne)}i=G,l=T,u=de,ce!=null?dn(n,!!l,ce,!1):!!u!=!!l&&(i!=null?dn(n,!!l,i,!0):dn(n,!!l,l?[]:"",!1));return;case"textarea":de=ce=null;for(G in l)if(x=l[G],l.hasOwnProperty(G)&&x!=null&&!u.hasOwnProperty(G))switch(G){case"value":break;case"children":break;default:Et(n,i,G,null,u,x)}for(T in u)if(x=u[T],v=l[T],u.hasOwnProperty(T)&&(x!=null||v!=null))switch(T){case"value":ce=x;break;case"defaultValue":de=x;break;case"children":break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(a(91));break;default:x!==v&&Et(n,i,T,x,u,v)}ya(n,ce,de);return;case"option":for(var Ae in l)if(ce=l[Ae],l.hasOwnProperty(Ae)&&ce!=null&&!u.hasOwnProperty(Ae))switch(Ae){case"selected":n.selected=!1;break;default:Et(n,i,Ae,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,i,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,i,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,i));break;default:Et(n,i,le,ce,u,de)}return;default:if(ji(i)){for(var Nt in l)ce=l[Nt],l.hasOwnProperty(Nt)&&ce!==void 0&&!u.hasOwnProperty(Nt)&&Zf(n,i,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||Zf(n,i,he,ce,u,de);return}}for(var ae in l)ce=l[ae],l.hasOwnProperty(ae)&&ce!=null&&!u.hasOwnProperty(ae)&&Et(n,i,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,i,ge,ce,u,de)}function _0(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ik(){if(typeof performance.getEntriesByType=="function"){for(var n=0,i=0,l=performance.getEntriesByType("resource"),u=0;u<l.length;u++){var x=l[u],v=x.transferSize,T=x.initiatorType,G=x.duration;if(v&&G&&_0(T)){for(T=0,G=x.responseEnd,u+=1;u<l.length;u++){var ne=l[u],le=ne.startTime;if(le>G)break;var he=ne.transferSize,ge=ne.initiatorType;he&&_0(ge)&&(ne=ne.responseEnd,T+=he*(ne<G?1:(G-le)/(ne-le)))}if(--u,i+=8*(v+T)/(x.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 Qf=null,Wf=null;function Uc(n){return n.nodeType===9?n:n.ownerDocument}function w0(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 E0(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 Jf(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 eh=null;function ak(){var n=window.event;return n&&n.type==="popstate"?n===eh?!1:(eh=n,!0):(eh=null,!1)}var N0=typeof setTimeout=="function"?setTimeout:void 0,sk=typeof clearTimeout=="function"?clearTimeout:void 0,S0=typeof Promise=="function"?Promise:void 0,lk=typeof queueMicrotask=="function"?queueMicrotask:typeof S0<"u"?function(n){return S0.resolve(null).then(n).catch(ok)}:N0;function ok(n){setTimeout(function(){throw n})}function Wi(n){return n==="head"}function k0(n,i){var l=i,u=0;do{var x=l.nextSibling;if(n.removeChild(l),x&&x.nodeType===8)if(l=x.data,l==="/$"||l==="/&"){if(u===0){n.removeChild(x),Ds(i);return}u--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")u++;else if(l==="html")$l(n.ownerDocument.documentElement);else if(l==="head"){l=n.ownerDocument.head,$l(l);for(var v=l.firstChild;v;){var T=v.nextSibling,G=v.nodeName;v[Wr]||G==="SCRIPT"||G==="STYLE"||G==="LINK"&&v.rel.toLowerCase()==="stylesheet"||l.removeChild(v),v=T}}else l==="body"&&$l(n.ownerDocument.body);l=x}while(l);Ds(i)}function C0(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 th(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":th(l),xa(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}n.removeChild(l)}}function ck(n,i,l,u){for(;n.nodeType===1;){var x=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!==x.rel||n.getAttribute("href")!==(x.href==null||x.href===""?null:x.href)||n.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin)||n.getAttribute("title")!==(x.title==null?null:x.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(v=n.getAttribute("src"),(v!==(x.src==null?null:x.src)||n.getAttribute("type")!==(x.type==null?null:x.type)||n.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin))&&v&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(i==="input"&&n.type==="hidden"){var v=x.name==null?null:""+x.name;if(x.type==="hidden"&&n.getAttribute("name")===v)return n}else return n;if(n=pr(n.nextSibling),n===null)break}return null}function uk(n,i,l){if(i==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!l||(n=pr(n.nextSibling),n===null))return null;return n}function T0(n,i){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!i||(n=pr(n.nextSibling),n===null))return null;return n}function nh(n){return n.data==="$?"||n.data==="$~"}function rh(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function dk(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 pr(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 ih=null;function A0(n){n=n.nextSibling;for(var i=0;n;){if(n.nodeType===8){var l=n.data;if(l==="/$"||l==="/&"){if(i===0)return pr(n.nextSibling);i--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||i++}n=n.nextSibling}return null}function M0(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 O0(n,i,l){switch(i=Uc(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 $l(n){for(var i=n.attributes;i.length;)n.removeAttributeNode(i[0]);xa(n)}var gr=new Map,R0=new Set;function Hc(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var gi=U.d;U.d={f:fk,r:hk,D:mk,C:pk,L:gk,m:xk,X:yk,S:bk,M:vk};function fk(){var n=gi.f(),i=Oc();return n||i}function hk(n){var i=wr(n);i!==null&&i.tag===5&&i.type==="form"?Kx(i):gi.r(n)}var Os=typeof document>"u"?null:document;function j0(n,i,l){var u=Os;if(u&&typeof i=="string"&&i){var x=Cn(i);x='link[rel="'+n+'"][href="'+x+'"]',typeof l=="string"&&(x+='[crossorigin="'+l+'"]'),R0.has(x)||(R0.add(x),n={rel:n,crossOrigin:l,href:i},u.querySelector(x)===null&&(i=u.createElement("link"),wn(i,"link",n),Gt(i),u.head.appendChild(i)))}}function mk(n){gi.D(n),j0("dns-prefetch",n,null)}function pk(n,i){gi.C(n,i),j0("preconnect",n,i)}function gk(n,i,l){gi.L(n,i,l);var u=Os;if(u&&n&&i){var x='link[rel="preload"][as="'+Cn(i)+'"]';i==="image"&&l&&l.imageSrcSet?(x+='[imagesrcset="'+Cn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(x+='[imagesizes="'+Cn(l.imageSizes)+'"]')):x+='[href="'+Cn(n)+'"]';var v=x;switch(i){case"style":v=Rs(n);break;case"script":v=js(n)}gr.has(v)||(n=g({rel:"preload",href:i==="image"&&l&&l.imageSrcSet?void 0:n,as:i},l),gr.set(v,n),u.querySelector(x)!==null||i==="style"&&u.querySelector(ql(v))||i==="script"&&u.querySelector(Pl(v))||(i=u.createElement("link"),wn(i,"link",n),Gt(i),u.head.appendChild(i)))}}function xk(n,i){gi.m(n,i);var l=Os;if(l&&n){var u=i&&typeof i.as=="string"?i.as:"script",x='link[rel="modulepreload"][as="'+Cn(u)+'"][href="'+Cn(n)+'"]',v=x;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=js(n)}if(!gr.has(v)&&(n=g({rel:"modulepreload",href:n},i),gr.set(v,n),l.querySelector(x)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Pl(v)))return}u=l.createElement("link"),wn(u,"link",n),Gt(u),l.head.appendChild(u)}}}function bk(n,i,l){gi.S(n,i,l);var u=Os;if(u&&n){var x=Br(u).hoistableStyles,v=Rs(n);i=i||"default";var T=x.get(v);if(!T){var G={loading:0,preload:null};if(T=u.querySelector(ql(v)))G.loading=5;else{n=g({rel:"stylesheet",href:n,"data-precedence":i},l),(l=gr.get(v))&&ah(n,l);var ne=T=u.createElement("link");Gt(ne),wn(ne,"link",n),ne._p=new Promise(function(le,he){ne.onload=le,ne.onerror=he}),ne.addEventListener("load",function(){G.loading|=1}),ne.addEventListener("error",function(){G.loading|=2}),G.loading|=4,$c(T,i,u)}T={type:"stylesheet",instance:T,count:1,state:G},x.set(v,T)}}}function yk(n,i){gi.X(n,i);var l=Os;if(l&&n){var u=Br(l).hoistableScripts,x=js(n),v=u.get(x);v||(v=l.querySelector(Pl(x)),v||(n=g({src:n,async:!0},i),(i=gr.get(x))&&sh(n,i),v=l.createElement("script"),Gt(v),wn(v,"link",n),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(x,v))}}function vk(n,i){gi.M(n,i);var l=Os;if(l&&n){var u=Br(l).hoistableScripts,x=js(n),v=u.get(x);v||(v=l.querySelector(Pl(x)),v||(n=g({src:n,async:!0,type:"module"},i),(i=gr.get(x))&&sh(n,i),v=l.createElement("script"),Gt(v),wn(v,"link",n),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(x,v))}}function D0(n,i,l,u){var x=(x=Q.current)?Hc(x):null;if(!x)throw Error(a(446));switch(n){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(i=Rs(l.href),l=Br(x).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=Rs(l.href);var v=Br(x).hoistableStyles,T=v.get(n);if(T||(x=x.ownerDocument||x,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(n,T),(v=x.querySelector(ql(n)))&&!v._p&&(T.instance=v,T.state.loading=5),gr.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},gr.set(n,l),v||_k(x,n,l,T.state))),i&&u===null)throw Error(a(528,""));return T}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=js(l),l=Br(x).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 Rs(n){return'href="'+Cn(n)+'"'}function ql(n){return'link[rel="stylesheet"]['+n+"]"}function L0(n){return g({},n,{"data-precedence":n.precedence,precedence:null})}function _k(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}),wn(i,"link",l),Gt(i),n.head.appendChild(i))}function js(n){return'[src="'+Cn(n)+'"]'}function Pl(n){return"script[async]"+n}function z0(n,i,l){if(i.count++,i.instance===null)switch(i.type){case"style":var u=n.querySelector('style[data-href~="'+Cn(l.href)+'"]');if(u)return i.instance=u,Gt(u),u;var x=g({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return u=(n.ownerDocument||n).createElement("style"),Gt(u),wn(u,"style",x),$c(u,l.precedence,n),i.instance=u;case"stylesheet":x=Rs(l.href);var v=n.querySelector(ql(x));if(v)return i.state.loading|=4,i.instance=v,Gt(v),v;u=L0(l),(x=gr.get(x))&&ah(u,x),v=(n.ownerDocument||n).createElement("link"),Gt(v);var T=v;return T._p=new Promise(function(G,ne){T.onload=G,T.onerror=ne}),wn(v,"link",u),i.state.loading|=4,$c(v,l.precedence,n),i.instance=v;case"script":return v=js(l.src),(x=n.querySelector(Pl(v)))?(i.instance=x,Gt(x),x):(u=l,(x=gr.get(v))&&(u=g({},l),sh(u,x)),n=n.ownerDocument||n,x=n.createElement("script"),Gt(x),wn(x,"link",u),n.head.appendChild(x),i.instance=x);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,$c(u,l.precedence,n));return i.instance}function $c(n,i,l){for(var u=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),x=u.length?u[u.length-1]:null,v=x,T=0;T<u.length;T++){var G=u[T];if(G.dataset.precedence===i)v=G;else if(v!==x)break}v?v.parentNode.insertBefore(n,v.nextSibling):(i=l.nodeType===9?l.head:l,i.insertBefore(n,i.firstChild))}function ah(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.title==null&&(n.title=i.title)}function sh(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.integrity==null&&(n.integrity=i.integrity)}var qc=null;function I0(n,i,l){if(qc===null){var u=new Map,x=qc=new Map;x.set(l,u)}else x=qc,u=x.get(l),u||(u=new Map,x.set(l,u));if(u.has(n))return u;for(u.set(n,null),l=l.getElementsByTagName(n),x=0;x<l.length;x++){var v=l[x];if(!(v[Wr]||v[Ut]||n==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var T=v.getAttribute(i)||"";T=n+T;var G=u.get(T);G?G.push(v):u.set(T,[v])}}return u}function B0(n,i,l){n=n.ownerDocument||n,n.head.insertBefore(l,i==="title"?n.querySelector("head > title"):null)}function wk(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 U0(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function Ek(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 x=Rs(u.href),v=i.querySelector(ql(x));if(v){i=v._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(n.count++,n=Pc.bind(n),i.then(n,n)),l.state.loading|=4,l.instance=v,Gt(v);return}v=i.ownerDocument||i,u=L0(u),(x=gr.get(x))&&ah(u,x),v=v.createElement("link"),Gt(v);var T=v;T._p=new Promise(function(G,ne){T.onload=G,T.onerror=ne}),wn(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=Pc.bind(n),i.addEventListener("load",l),i.addEventListener("error",l))}}var lh=0;function Nk(n,i){return n.stylesheets&&n.count===0&&Gc(n,n.stylesheets),0<n.count||0<n.imgCount?function(l){var u=setTimeout(function(){if(n.stylesheets&&Gc(n,n.stylesheets),n.unsuspend){var v=n.unsuspend;n.unsuspend=null,v()}},6e4+i);0<n.imgBytes&&lh===0&&(lh=62500*ik());var x=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Gc(n,n.stylesheets),n.unsuspend)){var v=n.unsuspend;n.unsuspend=null,v()}},(n.imgBytes>lh?50:800)+i);return n.unsuspend=l,function(){n.unsuspend=null,clearTimeout(u),clearTimeout(x)}}:null}function Pc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Gc(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Fc=null;function Gc(n,i){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Fc=new Map,i.forEach(Sk,n),Fc=null,Pc.call(n))}function Sk(n,i){if(!(i.state.loading&4)){var l=Fc.get(n);if(l)var u=l.get(null);else{l=new Map,Fc.set(n,l);for(var x=n.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<x.length;v++){var T=x[v];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(l.set(T.dataset.precedence,T),u=T)}u&&l.set(null,u)}x=i.instance,T=x.getAttribute("data-precedence"),v=l.get(T)||u,v===u&&l.set(null,x),l.set(T,x),this.count++,u=Pc.bind(this),x.addEventListener("load",u),x.addEventListener("error",u),v?v.parentNode.insertBefore(x,v.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(x,n.firstChild)),i.state.loading|=4}}var Fl={$$typeof:E,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function kk(n,i,l,u,x,v,T,G,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=x,this.onCaughtError=v,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ne,this.incompleteTransitions=new Map}function H0(n,i,l,u,x,v,T,G,ne,le,he,ge){return n=new kk(n,i,l,T,ne,le,he,ge,G),i=1,v===!0&&(i|=24),v=Zn(3,null,null,i),n.current=v,v.stateNode=n,i=Ud(),i.refCount++,n.pooledCache=i,i.refCount++,v.memoizedState={element:u,isDehydrated:l,cache:i},Pd(v),n}function $0(n){return n?(n=us,n):us}function q0(n,i,l,u,x,v){x=$0(x),u.context===null?u.context=x:u.pendingContext=x,u=$i(i),u.payload={element:l},v=v===void 0?null:v,v!==null&&(u.callback=v),l=qi(n,u,i),l!==null&&(Pn(l,n,i),wl(l,n,i))}function P0(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var l=n.retryLane;n.retryLane=l!==0&&l<i?l:i}}function oh(n,i){P0(n,i),(n=n.alternate)&&P0(n,i)}function F0(n){if(n.tag===13||n.tag===31){var i=Ea(n,67108864);i!==null&&Pn(i,n,67108864),oh(n,67108864)}}function G0(n){if(n.tag===13||n.tag===31){var i=tr();i=Mt(i);var l=Ea(n,i);l!==null&&Pn(l,n,i),oh(n,i)}}var Vc=!0;function Ck(n,i,l,u){var x=O.T;O.T=null;var v=U.p;try{U.p=2,ch(n,i,l,u)}finally{U.p=v,O.T=x}}function Tk(n,i,l,u){var x=O.T;O.T=null;var v=U.p;try{U.p=8,ch(n,i,l,u)}finally{U.p=v,O.T=x}}function ch(n,i,l,u){if(Vc){var x=uh(u);if(x===null)Kf(n,i,u,Yc,l),Y0(n,u);else if(Mk(x,n,i,l,u))u.stopPropagation();else if(Y0(n,u),i&4&&-1<Ak.indexOf(n)){for(;x!==null;){var v=wr(x);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var T=mn(v.pendingLanes);if(T!==0){var G=v;for(G.pendingLanes|=2,G.entangledLanes|=2;T;){var ne=1<<31-ut(T);G.entanglements[1]|=ne,T&=~ne}Pr(v),(pt&6)===0&&(Ac=ct()+500,Bl(0))}}break;case 31:case 13:G=Ea(v,2),G!==null&&Pn(G,v,2),Oc(),oh(v,2)}if(v=uh(u),v===null&&Kf(n,i,u,Yc,l),v===x)break;x=v}x!==null&&u.stopPropagation()}else Kf(n,i,u,null,l)}}function uh(n){return n=Ye(n),dh(n)}var Yc=null;function dh(n){if(Yc=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 Yc=n,null}function V0(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 be:return 8;case Oe:case Fe:return 32;case Ze:return 268435456;default:return 32}default:return 32}}var fh=!1,Ji=null,ea=null,ta=null,Gl=new Map,Vl=new Map,na=[],Ak="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 Y0(n,i){switch(n){case"focusin":case"focusout":Ji=null;break;case"dragenter":case"dragleave":ea=null;break;case"mouseover":case"mouseout":ta=null;break;case"pointerover":case"pointerout":Gl.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vl.delete(i.pointerId)}}function Yl(n,i,l,u,x,v){return n===null||n.nativeEvent!==v?(n={blockedOn:i,domEventName:l,eventSystemFlags:u,nativeEvent:v,targetContainers:[x]},i!==null&&(i=wr(i),i!==null&&F0(i)),n):(n.eventSystemFlags|=u,i=n.targetContainers,x!==null&&i.indexOf(x)===-1&&i.push(x),n)}function Mk(n,i,l,u,x){switch(i){case"focusin":return Ji=Yl(Ji,n,i,l,u,x),!0;case"dragenter":return ea=Yl(ea,n,i,l,u,x),!0;case"mouseover":return ta=Yl(ta,n,i,l,u,x),!0;case"pointerover":var v=x.pointerId;return Gl.set(v,Yl(Gl.get(v)||null,n,i,l,u,x)),!0;case"gotpointercapture":return v=x.pointerId,Vl.set(v,Yl(Vl.get(v)||null,n,i,l,u,x)),!0}return!1}function X0(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,Ci(n.priority,function(){G0(l)});return}}else if(i===31){if(i=d(l),i!==null){n.blockedOn=i,Ci(n.priority,function(){G0(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 Xc(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var l=uh(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=wr(l),i!==null&&F0(i),n.blockedOn=l,!1;i.shift()}return!0}function K0(n,i,l){Xc(n)&&l.delete(i)}function Ok(){fh=!1,Ji!==null&&Xc(Ji)&&(Ji=null),ea!==null&&Xc(ea)&&(ea=null),ta!==null&&Xc(ta)&&(ta=null),Gl.forEach(K0),Vl.forEach(K0)}function Kc(n,i){n.blockedOn===i&&(n.blockedOn=null,fh||(fh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Ok)))}var Zc=null;function Z0(n){Zc!==n&&(Zc=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Zc===n&&(Zc=null);for(var i=0;i<n.length;i+=3){var l=n[i],u=n[i+1],x=n[i+2];if(typeof u!="function"){if(dh(u||l)===null)continue;break}var v=wr(l);v!==null&&(n.splice(i,3),i-=3,uf(v,{pending:!0,data:x,method:l.method,action:u},u,x))}}))}function Ds(n){function i(ne){return Kc(ne,n)}Ji!==null&&Kc(Ji,n),ea!==null&&Kc(ea,n),ta!==null&&Kc(ta,n),Gl.forEach(i),Vl.forEach(i);for(var l=0;l<na.length;l++){var u=na[l];u.blockedOn===n&&(u.blockedOn=null)}for(;0<na.length&&(l=na[0],l.blockedOn===null);)X0(l),l.blockedOn===null&&na.shift();if(l=(n.ownerDocument||n).$$reactFormReplay,l!=null)for(u=0;u<l.length;u+=3){var x=l[u],v=l[u+1],T=x[pn]||null;if(typeof v=="function")T||Z0(l);else if(T){var G=null;if(v&&v.hasAttribute("formAction")){if(x=v,T=v[pn]||null)G=T.formAction;else if(dh(x)!==null)continue}else G=T.action;typeof G=="function"?l[u+1]=G:(l.splice(u,3),u-=3),Z0(l)}}}function Q0(){function n(v){v.canIntercept&&v.info==="react-transition"&&v.intercept({handler:function(){return new Promise(function(T){return x=T})},focusReset:"manual",scroll:"manual"})}function i(){x!==null&&(x(),x=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,x=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),x!==null&&(x(),x=null)}}}function hh(n){this._internalRoot=n}Qc.prototype.render=hh.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(a(409));var l=i.current,u=tr();q0(l,u,n,i,null,null)},Qc.prototype.unmount=hh.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;q0(n.current,2,null,n,null,null),Oc(),i[_r]=null}};function Qc(n){this._internalRoot=n}Qc.prototype.unstable_scheduleHydration=function(n){if(n){var i=ki();n={blockedOn:null,target:n,priority:i};for(var l=0;l<na.length&&i!==0&&i<na[l].priority;l++);na.splice(l,0,n),l===0&&X0(n)}};var W0=t.version;if(W0!=="19.2.7")throw Error(a(527,W0,"19.2.7"));U.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=f(i),n=n!==null?p(n):null,n=n===null?null:n.stateNode,n};var Rk={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wc.isDisabled&&Wc.supportsFiber)try{Zt=Wc.inject(Rk),At=Wc}catch{}}return Kl.createRoot=function(n,i){if(!s(n))throw Error(a(299));var l=!1,u="",x=ab,v=sb,T=lb;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(x=i.onUncaughtError),i.onCaughtError!==void 0&&(v=i.onCaughtError),i.onRecoverableError!==void 0&&(T=i.onRecoverableError)),i=H0(n,1,!1,null,null,l,u,null,x,v,T,Q0),n[_r]=i.current,Xf(n),new hh(i)},Kl.hydrateRoot=function(n,i,l){if(!s(n))throw Error(a(299));var u=!1,x="",v=ab,T=sb,G=lb,ne=null;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(x=l.identifierPrefix),l.onUncaughtError!==void 0&&(v=l.onUncaughtError),l.onCaughtError!==void 0&&(T=l.onCaughtError),l.onRecoverableError!==void 0&&(G=l.onRecoverableError),l.formState!==void 0&&(ne=l.formState)),i=H0(n,1,!0,i,l??null,u,x,ne,v,T,G,Q0),i.context=$0(null),l=i.current,u=tr(),u=Mt(u),x=$i(u),x.callback=null,qi(l,x,u),l=u,i.current.lanes=l,gt(i,l),Pr(i),n[_r]=i.current,Xf(n),new Qc(i)},Kl.version="19.2.7",Kl}var oy;function $k(){if(oy)return gh.exports;oy=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(),gh.exports=Hk(),gh.exports}var qk=$k();/**
* @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 I_=(...e)=>e.filter((t,r,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===r).join(" ").trim();/**
+ */const B_=(...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 qk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
+ */const Pk=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 Pk=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,a)=>a?a.toUpperCase():r.toLowerCase());/**
+ */const Fk=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 cy=e=>{const t=Pk(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
+ */const cy=e=>{const t=Fk(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 Fk={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"};/**
+ */var Gk={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 Gk=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/**
+ */const Vk=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 Vk=ee.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:s="",children:o,iconNode:c,...d},h)=>ee.createElement("svg",{ref:h,...Fk,width:t,height:t,stroke:e,strokeWidth:a?Number(r)*24/Number(t):r,className:I_("lucide",s),...!o&&!Gk(d)&&{"aria-hidden":"true"},...d},[...c.map(([f,p])=>ee.createElement(f,p)),...Array.isArray(o)?o:[o]]));/**
+ */const Yk=ee.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:s="",children:o,iconNode:c,...d},h)=>ee.createElement("svg",{ref:h,...Gk,width:t,height:t,stroke:e,strokeWidth:a?Number(r)*24/Number(t):r,className:B_("lucide",s),...!o&&!Vk(d)&&{"aria-hidden":"true"},...d},[...c.map(([f,p])=>ee.createElement(f,p)),...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 Ce=(e,t)=>{const r=ee.forwardRef(({className:a,...s},o)=>ee.createElement(Vk,{ref:o,iconNode:t,className:I_(`lucide-${qk(cy(e))}`,`lucide-${e}`,a),...s}));return r.displayName=cy(e),r};/**
+ */const Ce=(e,t)=>{const r=ee.forwardRef(({className:a,...s},o)=>ee.createElement(Yk,{ref:o,iconNode:t,className:B_(`lucide-${Pk(cy(e))}`,`lucide-${e}`,a),...s}));return r.displayName=cy(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 Yk=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Ep=Ce("arrow-left",Yk);/**
+ */const Xk=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Ep=Ce("arrow-left",Xk);/**
* @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 Xk=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],B_=Ce("arrow-up-right",Xk);/**
+ */const Kk=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],U_=Ce("arrow-up-right",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 Kk=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Zk=Ce("arrow-up",Kk);/**
+ */const Zk=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Qk=Ce("arrow-up",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=[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],U_=Ce("ban",Qk);/**
+ */const Wk=[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],H_=Ce("ban",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 Wk=[["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"}]],Jk=Ce("bell-off",Wk);/**
+ */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"}]],eC=Ce("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 eC=[["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"}]],Ro=Ce("bot",eC);/**
+ */const tC=[["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"}]],Ro=Ce("bot",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 tC=[["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"}]],H_=Ce("brain",tC);/**
+ */const nC=[["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"}]],$_=Ce("brain",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 nC=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],$_=Ce("building-2",nC);/**
+ */const rC=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],q_=Ce("building-2",rC);/**
* @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 rC=[["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"}]],iC=Ce("calendar-clock",rC);/**
+ */const iC=[["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"}]],aC=Ce("calendar-clock",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:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],sC=Ce("check-check",aC);/**
+ */const sC=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],lC=Ce("check-check",sC);/**
* @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:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Vs=Ce("check",lC);/**
+ */const oC=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Vs=Ce("check",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 oC=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],po=Ce("chevron-down",oC);/**
+ */const cC=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],po=Ce("chevron-down",cC);/**
* @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 cC=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],uC=Ce("chevron-right",cC);/**
+ */const uC=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],dC=Ce("chevron-right",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 dC=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],q_=Ce("chevron-up",dC);/**
+ */const fC=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],P_=Ce("chevron-up",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 fC=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],hC=Ce("chevrons-up-down",fC);/**
+ */const hC=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],mC=Ce("chevrons-up-down",hC);/**
* @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=[["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"}]],Gu=Ce("circle-alert",mC);/**
+ */const pC=[["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"}]],Vu=Ce("circle-alert",pC);/**
* @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 pC=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],P_=Ce("circle-check-big",pC);/**
+ */const gC=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],F_=Ce("circle-check-big",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 gC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Nu=Ce("circle-check",gC);/**
+ */const xC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Su=Ce("circle-check",xC);/**
* @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=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],bC=Ce("circle-dot",xC);/**
+ */const bC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],yC=Ce("circle-dot",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 yC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],vC=Ce("circle-question-mark",yC);/**
+ */const vC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],_C=Ce("circle-question-mark",vC);/**
* @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 _C=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]],wC=Ce("circle-slash",_C);/**
+ */const wC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]],EC=Ce("circle-slash",wC);/**
* @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 EC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],F_=Ce("circle",EC);/**
+ */const NC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],G_=Ce("circle",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 NC=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],G_=Ce("clipboard-list",NC);/**
+ */const SC=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],V_=Ce("clipboard-list",SC);/**
* @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 SC=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],V_=Ce("clock",SC);/**
+ */const kC=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Y_=Ce("clock",kC);/**
* @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 kC=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],CC=Ce("code",kC);/**
+ */const CC=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],TC=Ce("code",CC);/**
* @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=[["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"}]],go=Ce("copy",TC);/**
+ */const AC=[["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"}]],go=Ce("copy",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 AC=[["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"}]],Vu=Ce("crosshair",AC);/**
+ */const MC=[["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"}]],Yu=Ce("crosshair",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 MC=[["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"}]],uy=Ce("external-link",MC);/**
+ */const OC=[["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"}]],uy=Ce("external-link",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 OC=[["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"}]],RC=Ce("eye",OC);/**
+ */const RC=[["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"}]],jC=Ce("eye",RC);/**
* @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 jC=[["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"}]],DC=Ce("file-text",jC);/**
+ */const DC=[["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"}]],LC=Ce("file-text",DC);/**
* @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:"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"}]],Y_=Ce("flag",LC);/**
+ */const zC=[["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"}]],X_=Ce("flag",zC);/**
* @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 zC=[["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"}]],IC=Ce("git-merge",zC);/**
+ */const IC=[["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"}]],BC=Ce("git-merge",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 BC=[["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"}]],UC=Ce("git-pull-request",BC);/**
+ */const UC=[["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"}]],HC=Ce("git-pull-request",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 HC=[["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"}]],$C=Ce("github",HC);/**
+ */const $C=[["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"}]],qC=Ce("github",$C);/**
* @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 qC=[["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"}]],PC=Ce("gitlab",qC);/**
+ */const PC=[["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"}]],FC=Ce("gitlab",PC);/**
* @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=[["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"}]],X_=Ce("globe",FC);/**
+ */const GC=[["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"}]],K_=Ce("globe",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 GC=[["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"}]],Ys=Ce("history",GC);/**
+ */const VC=[["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"}]],Ys=Ce("history",VC);/**
* @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 VC=[["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"}]],YC=Ce("image",VC);/**
+ */const YC=[["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"}]],XC=Ce("image",YC);/**
* @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=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],KC=Ce("info",XC);/**
+ */const KC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],ZC=Ce("info",KC);/**
* @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 ZC=[["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"}]],QC=Ce("list-todo",ZC);/**
+ */const QC=[["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"}]],WC=Ce("list-todo",QC);/**
* @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 WC=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ps=Ce("loader-circle",WC);/**
+ */const JC=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ps=Ce("loader-circle",JC);/**
* @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 JC=[["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"}]],eT=Ce("lock",JC);/**
+ */const eT=[["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"}]],tT=Ce("lock",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 tT=[["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"}]],nT=Ce("log-out",tT);/**
+ */const nT=[["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"}]],rT=Ce("log-out",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:"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"}]],Np=Ce("mail",rT);/**
+ */const iT=[["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"}]],Np=Ce("mail",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 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"}]],yh=Ce("message-circle",iT);/**
+ */const aT=[["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"}]],Jc=Ce("message-circle",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 aT=[["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"}]],sT=Ce("pencil",aT);/**
+ */const sT=[["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"}]],lT=Ce("pencil",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 lT=[["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"}]],K_=Ce("plug",lT);/**
+ */const oT=[["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"}]],Z_=Ce("plug",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 oT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Z_=Ce("plus",oT);/**
+ */const cT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Q_=Ce("plus",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 cT=[["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"}]],uT=Ce("radar",cT);/**
+ */const uT=[["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"}]],dT=Ce("radar",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:"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"}]],fT=Ce("refresh-cw",dT);/**
+ */const fT=[["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"}]],hT=Ce("refresh-cw",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 hT=[["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"}]],Q_=Ce("rocket",hT);/**
+ */const mT=[["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"}]],W_=Ce("rocket",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 mT=[["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"}]],pT=Ce("rotate-ccw",mT);/**
+ */const pT=[["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"}]],gT=Ce("rotate-ccw",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:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],xT=Ce("save",gT);/**
+ */const xT=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],bT=Ce("save",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 bT=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],yT=Ce("search",bT);/**
+ */const yT=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],vT=Ce("search",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:"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"}]],_T=Ce("shield-alert",vT);/**
+ */const _T=[["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"}]],wT=Ce("shield-alert",_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 wT=[["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"}]],W_=Ce("shield-check",wT);/**
+ */const ET=[["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"}]],J_=Ce("shield-check",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 ET=[["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"}]],NT=Ce("shield",ET);/**
+ */const NT=[["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"}]],ST=Ce("shield",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 ST=[["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"}]],Fm=Ce("sparkles",ST);/**
+ */const kT=[["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"}]],Fm=Ce("sparkles",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 kT=[["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"}]],CT=Ce("sticky-note",kT);/**
+ */const CT=[["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"}]],TT=Ce("sticky-note",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 TT=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],J_=Ce("terminal",TT);/**
+ */const AT=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],ew=Ce("terminal",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 AT=[["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"}]],MT=Ce("trash-2",AT);/**
+ */const MT=[["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"}]],OT=Ce("trash-2",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=[["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"}]],Sp=Ce("triangle-alert",OT);/**
+ */const RT=[["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"}]],Sp=Ce("triangle-alert",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 RT=[["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"}]],jT=Ce("users",RT);/**
+ */const jT=[["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"}]],DT=Ce("users",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 DT=[["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"}]],LT=Ce("wand-sparkles",DT);/**
+ */const LT=[["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"}]],zT=Ce("wand-sparkles",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:"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"}]],Gm=Ce("wrench",zT);/**
+ */const IT=[["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"}]],Gm=Ce("wrench",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 IT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],kp=Ce("x",IT);/**
+ */const BT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],kp=Ce("x",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 BT=[["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"}]],UT=Ce("zap",BT),HT={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"}},$T={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"}},ew={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 Jc(e){return e.original_severity!=null&&e.original_severity!==e.severity}const qT={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 PT(e){var r;if(!e)return null;const t=(r=e.split(".").pop())==null?void 0:r.toLowerCase();return t&&qT[t]||null}function Cp(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 Tp(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 Yu="https://app.strix.ai/api/auth/signup",Ap="https://strix.ai/demo",FT="https://strix.ai/pricing",GT="ref=oss_viewer&utm_source=oss_viewer&utm_medium=local_viewer&utm_campaign=oss_viewer";function _i(e,t){const r=e.includes("?")?"&":"?";return`${e}${r}${GT}&utm_content=${encodeURIComponent(t)}`}function Mr(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 yr(e,t){Mr("cta_clicked",{cta:e,surface:t})}function tw(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=tw(e[t]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function VT(){for(var e,t,r=0,a="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=tw(e))&&(a&&(a+=" "),a+=t);return a}const YT=(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},XT=(e,t)=>({classGroupId:e,validator:t}),nw=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Su="-",dy=[],KT="arbitrary..",ZT=e=>{const t=WT(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return QT(c);const d=c.split(Su),h=d[0]===""&&d.length>1?1:0;return rw(d,h,t)},getConflictingClassGroupIds:(c,d)=>{if(d){const h=a[c],f=r[c];return h?f?YT(f,h):h:f||dy}return r[c]||dy}}},rw=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const s=e[t],o=r.nextPart.get(s);if(o){const f=rw(e,t+1,o);if(f)return f}const c=r.validators;if(c===null)return;const d=t===0?e.join(Su):e.slice(t).join(Su),h=c.length;for(let f=0;f<h;f++){const p=c[f];if(p.validator(d))return p.classGroupId}},QT=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?KT+a:void 0})(),WT=e=>{const{theme:t,classGroups:r}=e;return JT(r,t)},JT=(e,t)=>{const r=nw();for(const a in e){const s=e[a];Mp(s,r,a,t)}return r},Mp=(e,t,r,a)=>{const s=e.length;for(let o=0;o<s;o++){const c=e[o];eA(c,t,r,a)}},eA=(e,t,r,a)=>{if(typeof e=="string"){tA(e,t,r);return}if(typeof e=="function"){nA(e,t,r,a);return}rA(e,t,r,a)},tA=(e,t,r)=>{const a=e===""?t:iw(t,e);a.classGroupId=r},nA=(e,t,r,a)=>{if(iA(e)){Mp(e(a),t,r,a);return}t.validators===null&&(t.validators=[]),t.validators.push(XT(r,e))},rA=(e,t,r,a)=>{const s=Object.entries(e),o=s.length;for(let c=0;c<o;c++){const[d,h]=s[c];Mp(h,iw(t,d),r,a)}},iw=(e,t)=>{let r=e;const a=t.split(Su),s=a.length;for(let o=0;o<s;o++){const c=a[o];let d=r.nextPart.get(c);d||(d=nw(),r.nextPart.set(c,d)),r=d}return r},iA=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,aA=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)}}},Vm="!",fy=":",sA=[],hy=(e,t,r,a,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:a,isExternal:s}),lA=e=>{const{prefix:t,experimentalParseClassName:r}=e;let a=s=>{const o=[];let c=0,d=0,h=0,f;const p=s.length;for(let N=0;N<p;N++){const S=s[N];if(c===0&&d===0){if(S===fy){o.push(s.slice(h,N)),h=N+1;continue}if(S==="/"){f=N;continue}}S==="["?c++:S==="]"?c--:S==="("?d++:S===")"&&d--}const g=o.length===0?s:s.slice(h);let b=g,y=!1;g.endsWith(Vm)?(b=g.slice(0,-1),y=!0):g.startsWith(Vm)&&(b=g.slice(1),y=!0);const _=f&&f>h?f-h:void 0;return hy(o,y,b,_)};if(t){const s=t+fy,o=a;a=c=>c.startsWith(s)?o(c.slice(s.length)):hy(sA,!1,c,void 0,!0)}if(r){const s=a;a=o=>r({className:o,parseClassName:s})}return a},oA=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]==="[",h=t.has(c);d||h?(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}},cA=e=>({cache:aA(e.cacheSize),parseClassName:lA(e),sortModifiers:oA(e),postfixLookupClassGroupIds:uA(e),...ZT(e)}),uA=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},dA=/\s+/,fA=(e,t)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:s,sortModifiers:o,postfixLookupClassGroupIds:c}=t,d=[],h=e.trim().split(dA);let f="";for(let p=h.length-1;p>=0;p-=1){const g=h[p],{isExternal:b,modifiers:y,hasImportantModifier:_,baseClassName:N,maybePostfixModifierPosition:S}=r(g);if(b){f=g+(f.length>0?" "+f:f);continue}let w=!!S,C;if(w){const H=N.substring(0,S);C=a(H);const z=C&&c[C]?a(N):void 0;z&&z!==C&&(C=z,w=!1)}else C=a(N);if(!C){if(!w){f=g+(f.length>0?" "+f:f);continue}if(C=a(N),!C){f=g+(f.length>0?" "+f:f);continue}w=!1}const E=y.length===0?"":y.length===1?y[0]:o(y).join(":"),A=_?E+Vm:E,B=A+C;if(d.indexOf(B)>-1)continue;d.push(B);const R=s(C,w);for(let H=0;H<R.length;++H){const z=R[H];d.push(A+z)}f=g+(f.length>0?" "+f:f)}return f},hA=(...e)=>{let t=0,r,a,s="";for(;t<e.length;)(r=e[t++])&&(a=aw(r))&&(s&&(s+=" "),s+=a);return s},aw=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=aw(e[a]))&&(r&&(r+=" "),r+=t);return r},mA=(e,...t)=>{let r,a,s,o;const c=h=>{const f=t.reduce((p,g)=>g(p),e());return r=cA(f),a=r.cache.get,s=r.cache.set,o=d,d(h)},d=h=>{const f=a(h);if(f)return f;const p=fA(h,r);return s(h,p),p};return o=c,(...h)=>o(hA(...h))},pA=[],hn=e=>{const t=r=>r[e]||pA;return t.isThemeGetter=!0,t},sw=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,lw=/^\((?:(\w[\w-]*):)?(.+)\)$/i,gA=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,xA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,bA=/\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$/,yA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_A=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ia=e=>gA.test(e),We=e=>!!e&&!Number.isNaN(Number(e)),Fr=e=>!!e&&Number.isInteger(Number(e)),vh=e=>e.endsWith("%")&&We(e.slice(0,-1)),xi=e=>xA.test(e),ow=()=>!0,wA=e=>bA.test(e)&&!yA.test(e),Op=()=>!1,EA=e=>vA.test(e),NA=e=>_A.test(e),SA=e=>!ke(e)&&!Te(e),kA=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)),CA=e=>ma(e,dw,Op),ke=e=>sw.test(e),za=e=>ma(e,fw,wA),my=e=>ma(e,LA,We),TA=e=>ma(e,mw,ow),AA=e=>ma(e,hw,Op),py=e=>ma(e,cw,Op),MA=e=>ma(e,uw,NA),eu=e=>ma(e,pw,EA),Te=e=>lw.test(e),Zl=e=>Wa(e,fw),OA=e=>Wa(e,hw),gy=e=>Wa(e,cw),RA=e=>Wa(e,dw),jA=e=>Wa(e,uw),tu=e=>Wa(e,pw,!0),DA=e=>Wa(e,mw,!0),ma=(e,t,r)=>{const a=sw.exec(e);return a?a[1]?t(a[1]):r(a[2]):!1},Wa=(e,t,r=!1)=>{const a=lw.exec(e);return a?a[1]?t(a[1]):r:!1},cw=e=>e==="position"||e==="percentage",uw=e=>e==="image"||e==="url",dw=e=>e==="length"||e==="size"||e==="bg-size",fw=e=>e==="length",LA=e=>e==="number",hw=e=>e==="family-name",mw=e=>e==="number"||e==="weight",pw=e=>e==="shadow",zA=()=>{const e=hn("color"),t=hn("font"),r=hn("text"),a=hn("font-weight"),s=hn("tracking"),o=hn("leading"),c=hn("breakpoint"),d=hn("container"),h=hn("spacing"),f=hn("radius"),p=hn("shadow"),g=hn("inset-shadow"),b=hn("text-shadow"),y=hn("drop-shadow"),_=hn("blur"),N=hn("perspective"),S=hn("aspect"),w=hn("ease"),C=hn("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...A(),Te,ke],R=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],z=()=>[Te,ke,h],Y=()=>[ia,"full","auto",...z()],j=()=>[Fr,"none","subgrid",Te,ke],I=()=>["auto",{span:["full",Fr,Te,ke]},Fr,Te,ke],Z=()=>[Fr,"auto",Te,ke],P=()=>["auto","min","max","fr",Te,ke],k=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],$=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...z()],U=()=>[ia,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...z()],K=()=>[ia,"screen","full","dvw","lvw","svw","min","max","fit",...z()],X=()=>[ia,"screen","full","lh","dvh","lvh","svh","min","max","fit",...z()],M=()=>[e,Te,ke],L=()=>[...A(),gy,py,{position:[Te,ke]}],F=()=>["no-repeat",{repeat:["","x","y","space","round"]}],D=()=>["auto","cover","contain",RA,CA,{size:[Te,ke]}],V=()=>[vh,Zl,za],q=()=>["","none","full",f,Te,ke],Q=()=>["",We,Zl,za],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,vh,gy,py],oe=()=>["","none",_,Te,ke],fe=()=>["none",We,Te,ke],xe=()=>["none",We,Te,ke],we=()=>[We,Te,ke],Ne=()=>[ia,"full",...z()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[xi],breakpoint:[xi],color:[ow],container:[xi],"drop-shadow":[xi],ease:["in","out","in-out"],font:[SA],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[xi],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[xi],shadow:[xi],spacing:["px",We],text:[xi],"text-shadow":[xi],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ia,ke,Te,S]}],container:["container"],"container-type":[{"@container":["","normal","size",Te,ke]}],"container-named":[kA],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:B()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Y()}],"inset-x":[{"inset-x":Y()}],"inset-y":[{"inset-y":Y()}],start:[{"inset-s":Y(),start:Y()}],end:[{"inset-e":Y(),end:Y()}],"inset-bs":[{"inset-bs":Y()}],"inset-be":[{"inset-be":Y()}],top:[{top:Y()}],right:[{right:Y()}],bottom:[{bottom:Y()}],left:[{left:Y()}],visibility:["visible","invisible","collapse"],z:[{z:[Fr,"auto",Te,ke]}],basis:[{basis:[ia,"full","auto",d,...z()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[We,ia,"auto","initial","none",ke]}],grow:[{grow:["",We,Te,ke]}],shrink:[{shrink:["",We,Te,ke]}],order:[{order:[Fr,"first","last","none",Te,ke]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":P()}],"auto-rows":[{"auto-rows":P()}],gap:[{gap:z()}],"gap-x":[{"gap-x":z()}],"gap-y":[{"gap-y":z()}],"justify-content":[{justify:[...k(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...k()]}],"align-items":[{items:[...$(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...$(),{baseline:["","last"]}]}],"place-content":[{"place-content":k()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:z()}],px:[{px:z()}],py:[{py:z()}],ps:[{ps:z()}],pe:[{pe:z()}],pbs:[{pbs:z()}],pbe:[{pbe:z()}],pt:[{pt:z()}],pr:[{pr:z()}],pb:[{pb:z()}],pl:[{pl:z()}],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":z()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":z()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],"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",...U()]}],"min-w":[{"min-w":[d,"screen","none",...U()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",r,Zl,za]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,DA,TA]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vh,ke]}],"font-family":[{font:[OA,AA,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,my]}],leading:[{leading:[o,...z()]}],"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:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[We,"from-font","auto",Te,za]}],"text-decoration-color":[{decoration:M()}],"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:z()}],"tab-size":[{tab:[Fr,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:L()}],"bg-repeat":[{bg:F()}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Fr,Te,ke],radial:["",Te,ke],conic:[Fr,Te,ke]},jA,MA]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:V()}],"gradient-via-pos":[{via:V()}],"gradient-to-pos":[{to:V()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:q()}],"rounded-s":[{"rounded-s":q()}],"rounded-e":[{"rounded-e":q()}],"rounded-t":[{"rounded-t":q()}],"rounded-r":[{"rounded-r":q()}],"rounded-b":[{"rounded-b":q()}],"rounded-l":[{"rounded-l":q()}],"rounded-ss":[{"rounded-ss":q()}],"rounded-se":[{"rounded-se":q()}],"rounded-ee":[{"rounded-ee":q()}],"rounded-es":[{"rounded-es":q()}],"rounded-tl":[{"rounded-tl":q()}],"rounded-tr":[{"rounded-tr":q()}],"rounded-br":[{"rounded-br":q()}],"rounded-bl":[{"rounded-bl":q()}],"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:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-bs":[{"border-bs":M()}],"border-color-be":[{"border-be":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[We,Te,ke]}],"outline-w":[{outline:["",We,Zl,za]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",p,tu,eu]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",g,tu,eu]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[We,za]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",b,tu,eu]}],"text-shadow-color":[{"text-shadow":M()}],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":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"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":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"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":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"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":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"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":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"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":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"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":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"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":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"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":A()}],"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":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:F()}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Te,ke]}],filter:[{filter:["","none",Te,ke]}],blur:[{blur:oe()}],brightness:[{brightness:[We,Te,ke]}],contrast:[{contrast:[We,Te,ke]}],"drop-shadow":[{"drop-shadow":["","none",y,tu,eu]}],"drop-shadow-color":[{"drop-shadow":M()}],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":oe()}],"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":z()}],"border-spacing-x":[{"border-spacing-x":z()}],"border-spacing-y":[{"border-spacing-y":z()}],"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",C,Te,ke]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,Te,ke]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:fe()}],"rotate-x":[{"rotate-x":fe()}],"rotate-y":[{"rotate-y":fe()}],"rotate-z":[{"rotate-z":fe()}],scale:[{scale:xe()}],"scale-x":[{"scale-x":xe()}],"scale-y":[{"scale-y":xe()}],"scale-z":[{"scale-z":xe()}],"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:B()}],"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:[Fr,Te,ke]}],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"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":M()}],"scrollbar-track-color":[{"scrollbar-track":M()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mbs":[{"scroll-mbs":z()}],"scroll-mbe":[{"scroll-mbe":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pbs":[{"scroll-pbs":z()}],"scroll-pbe":[{"scroll-pbe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"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",...M()]}],"stroke-w":[{stroke:[We,Zl,za,my]}],stroke:[{stroke:["none",...M()]}],"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"]}},IA=mA(zA);function br(...e){return IA(VT(e))}function BA(e){return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}function Ym(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`:BA(e)}function UA(e){return`STRIX-${e}`}function Ls(e){return new Intl.NumberFormat("en-US").format(e)}function HA(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,qA=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,PA={};function xy(e,t){return(PA.jsx?qA:$A).test(e)}const FA=/[ \t\n\f\r]/g;function GA(e){return typeof e=="object"?e.type==="text"?by(e.value):!1:by(e)}function by(e){return e.replace(FA,"")===""}class jo{constructor(t,r,a){this.normal=r,this.property=t,a&&(this.space=a)}}jo.prototype.normal={};jo.prototype.property={};jo.prototype.space=void 0;function gw(e,t){const r={},a={};for(const s of e)Object.assign(r,s.property),Object.assign(a,s.normal);return new jo(r,a,t)}function Xm(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 VA=0;const Ge=Ja(),sn=Ja(),Km=Ja(),ve=Ja(),Ct=Ja(),qa=Ja(),rr=Ja();function Ja(){return 2**++VA}const Zm=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ge,booleanish:sn,commaOrSpaceSeparated:rr,commaSeparated:qa,number:ve,overloadedBoolean:Km,spaceSeparated:Ct},Symbol.toStringTag,{value:"Module"})),_h=Object.keys(Zm);class Rp extends Vn{constructor(t,r,a,s){let o=-1;if(super(t,r),yy(this,"space",s),typeof a=="number")for(;++o<_h.length;){const c=_h[o];yy(this,_h[o],(a&Zm[c])===Zm[c])}}}Rp.prototype.defined=!0;function yy(e,t,r){r&&(e[t]=r)}function nl(e){const t={},r={};for(const[a,s]of Object.entries(e.properties)){const o=new Rp(a,e.transform(e.attributes||{},a),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(o.mustUseProperty=!0),t[a]=o,r[Xm(a)]=a,r[Xm(o.attribute)]=a}return new jo(t,r,e.space)}const xw=nl({properties:{ariaActiveDescendant:null,ariaAtomic:sn,ariaAutoComplete:null,ariaBusy:sn,ariaChecked:sn,ariaColCount:ve,ariaColIndex:ve,ariaColSpan:ve,ariaControls:Ct,ariaCurrent:null,ariaDescribedBy:Ct,ariaDetails:null,ariaDisabled:sn,ariaDropEffect:Ct,ariaErrorMessage:null,ariaExpanded:sn,ariaFlowTo:Ct,ariaGrabbed:sn,ariaHasPopup:null,ariaHidden:sn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ct,ariaLevel:ve,ariaLive:null,ariaModal:sn,ariaMultiLine:sn,ariaMultiSelectable:sn,ariaOrientation:null,ariaOwns:Ct,ariaPlaceholder:null,ariaPosInSet:ve,ariaPressed:sn,ariaReadOnly:sn,ariaRelevant:null,ariaRequired:sn,ariaRoleDescription:Ct,ariaRowCount:ve,ariaRowIndex:ve,ariaRowSpan:ve,ariaSelected:sn,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 bw(e,t){return t in e?e[t]:t}function yw(e,t){return bw(e,t.toLowerCase())}const YA=nl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:qa,acceptCharset:Ct,accessKey:Ct,action:null,allow:null,allowFullScreen:Ge,allowPaymentRequest:Ge,allowUserMedia:Ge,alpha:Ge,alt:null,as:null,async:Ge,autoCapitalize:null,autoComplete:Ct,autoFocus:Ge,autoPlay:Ge,blocking:Ct,capture:null,charSet:null,checked:Ge,cite:null,className:Ct,closedBy:null,colorSpace:null,cols:ve,colSpan:ve,command:null,commandFor:null,content:null,contentEditable:sn,controls:Ge,controlsList:Ct,coords:ve|qa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ge,defer:Ge,dir:null,dirName:null,disabled:Ge,download:Km,draggable:sn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ge,formTarget:null,headers:Ct,height:ve,hidden:Km,high:ve,href:null,hrefLang:null,htmlFor:Ct,httpEquiv:Ct,id:null,imageSizes:null,imageSrcSet:null,inert:Ge,inputMode:null,integrity:null,is:null,isMap:Ge,itemId:null,itemProp:Ct,itemRef:Ct,itemScope:Ge,itemType:Ct,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:Ct,placeholder:null,playsInline:Ge,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ge,referrerPolicy:null,rel:Ct,required:Ge,reversed:Ge,rows:ve,rowSpan:ve,sandbox:Ct,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:sn,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:sn,width:ve,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ct,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:sn,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:qa,part:Ct,prefix:null,property:null,results:ve,security:null,unselectable:null},space:"html",transform:yw}),XA=nl({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:rr,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:Ct,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:qa,g2:qa,glyphName:qa,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:rr,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:Ct,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ve,pointsAtY:ve,pointsAtZ:ve,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:rr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:rr,rev:rr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:rr,requiredFeatures:rr,requiredFonts:rr,requiredFormats:rr,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:rr,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:rr,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:rr,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:bw}),vw=nl({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()}}),_w=nl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:yw}),ww=nl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),KA={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"},ZA=/[A-Z]/g,vy=/-[a-z]/g,QA=/^data[-\w.:]+$/i;function WA(e,t){const r=Xm(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"&&QA.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(vy,eM);a="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!vy.test(o)){let c=o.replace(ZA,JA);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}s=Rp}return new s(a,t)}function JA(e){return"-"+e.toLowerCase()}function eM(e){return e.charAt(1).toUpperCase()}const tM=gw([xw,YA,vw,_w,ww],"html"),jp=gw([xw,XA,vw,_w,ww],"svg");function nM(e){return e.join(" ").trim()}var zs={},wh,_y;function rM(){if(_y)return wh;_y=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,h=`
-`,f="/",p="*",g="",b="comment",y="declaration";function _(S,w){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];w=w||{};var C=1,E=1;function A(k){var $=k.match(t);$&&(C+=$.length);var O=k.lastIndexOf(h);E=~O?k.length-O:E+k.length}function B(){var k={line:C,column:E};return function($){return $.position=new R(k),Y(),$}}function R(k){this.start=k,this.end={line:C,column:E},this.source=w.source}R.prototype.content=S;function H(k){var $=new Error(w.source+":"+C+":"+E+": "+k);if($.reason=k,$.filename=w.source,$.line=C,$.column=E,$.source=S,!w.silent)throw $}function z(k){var $=k.exec(S);if($){var O=$[0];return A(O),S=S.slice(O.length),$}}function Y(){z(r)}function j(k){var $;for(k=k||[];$=I();)$!==!1&&k.push($);return k}function I(){var k=B();if(!(f!=S.charAt(0)||p!=S.charAt(1))){for(var $=2;g!=S.charAt($)&&(p!=S.charAt($)||f!=S.charAt($+1));)++$;if($+=2,g===S.charAt($-1))return H("End of comment missing");var O=S.slice(2,$-2);return E+=2,A(O),S=S.slice($),E+=2,k({type:b,comment:O})}}function Z(){var k=B(),$=z(a);if($){if(I(),!z(s))return H("property missing ':'");var O=z(o),U=k({type:y,property:N($[0].replace(e,g)),value:O?N(O[0].replace(e,g)):g});return z(c),U}}function P(){var k=[];j(k);for(var $;$=Z();)$!==!1&&(k.push($),j(k));return k}return Y(),P()}function N(S){return S?S.replace(d,g):g}return wh=_,wh}var wy;function iM(){if(wy)return zs;wy=1;var e=zs&&zs.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(zs,"__esModule",{value:!0}),zs.default=r;const t=e(rM());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(h=>{if(h.type!=="declaration")return;const{property:f,value:p}=h;d?s(f,p,h):p&&(o=o||{},o[f]=p)}),o}return zs}var Ql={},Ey;function aM(){if(Ey)return Ql;Ey=1,Object.defineProperty(Ql,"__esModule",{value:!0}),Ql.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,o=function(f){return!f||r.test(f)||e.test(f)},c=function(f,p){return p.toUpperCase()},d=function(f,p){return"".concat(p,"-")},h=function(f,p){return p===void 0&&(p={}),o(f)?f:(f=f.toLowerCase(),p.reactCompat?f=f.replace(s,d):f=f.replace(a,d),f.replace(t,c))};return Ql.camelCase=h,Ql}var Wl,Ny;function sM(){if(Ny)return Wl;Ny=1;var e=Wl&&Wl.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(iM()),r=aM();function a(s,o){var c={};return!s||typeof s!="string"||(0,t.default)(s,function(d,h){d&&h&&(c[(0,r.camelCase)(d,o)]=h)}),c}return a.default=a,Wl=a,Wl}var lM=sM();const oM=Mo(lM),Ew=Nw("end"),Dp=Nw("start");function Nw(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 cM(e){const t=Dp(e),r=Ew(e);if(t&&r)return{start:t,end:r}}function oo(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Sy(e.position):"start"in e||"end"in e?Sy(e):"line"in e||"column"in e?Qm(e):""}function Qm(e){return ky(e&&e.line)+":"+ky(e&&e.column)}function Sy(e){return Qm(e&&e.start)+"-"+Qm(e&&e.end)}function ky(e){return e&&typeof e=="number"?e:1}class Mn 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 h=a.indexOf(":");h===-1?o.ruleId=a:(o.source=a.slice(0,h),o.ruleId=a.slice(h+1))}if(!o.place&&o.ancestors&&o.ancestors){const h=o.ancestors[o.ancestors.length-1];h&&(o.place=h.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=oo(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}}Mn.prototype.file="";Mn.prototype.name="";Mn.prototype.reason="";Mn.prototype.message="";Mn.prototype.stack="";Mn.prototype.column=void 0;Mn.prototype.line=void 0;Mn.prototype.ancestors=void 0;Mn.prototype.cause=void 0;Mn.prototype.fatal=void 0;Mn.prototype.place=void 0;Mn.prototype.ruleId=void 0;Mn.prototype.source=void 0;const Lp={}.hasOwnProperty,uM=new Map,dM=/[A-Z]/g,fM=new Set(["table","tbody","thead","tfoot","tr"]),hM=new Set(["td","th"]),Sw="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function mM(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=wM(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=_M(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"?jp:tM,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=kw(s,e,void 0);return o&&typeof o!="string"?o:s.create(e,s.Fragment,{children:o||void 0},void 0)}function kw(e,t,r){if(t.type==="element")return pM(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return gM(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return bM(e,t,r);if(t.type==="mdxjsEsm")return xM(e,t);if(t.type==="root")return yM(e,t,r);if(t.type==="text")return vM(e,t)}function pM(e,t,r){const a=e.schema;let s=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(s=jp,e.schema=s),e.ancestors.push(t);const o=Tw(e,t.tagName,!1),c=EM(e,t);let d=Ip(e,t);return fM.has(t.tagName)&&(d=d.filter(function(h){return typeof h=="string"?!GA(h):!0})),Cw(e,c,o,t),zp(c,d),e.ancestors.pop(),e.schema=a,e.create(t,o,c,r)}function gM(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)}xo(e,t.position)}function xM(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);xo(e,t.position)}function bM(e,t,r){const a=e.schema;let s=a;t.name==="svg"&&a.space==="html"&&(s=jp,e.schema=s),e.ancestors.push(t);const o=t.name===null?e.Fragment:Tw(e,t.name,!0),c=NM(e,t),d=Ip(e,t);return Cw(e,c,o,t),zp(c,d),e.ancestors.pop(),e.schema=a,e.create(t,o,c,r)}function yM(e,t,r){const a={};return zp(a,Ip(e,t)),e.create(t,e.Fragment,a,r)}function vM(e,t){return t.value}function Cw(e,t,r,a){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=a)}function zp(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function _M(e,t,r){return a;function a(s,o,c,d){const f=Array.isArray(c.children)?r:t;return d?f(o,c,d):f(o,c)}}function wM(e,t){return r;function r(a,s,o,c){const d=Array.isArray(o.children),h=Dp(a);return t(s,o,c,d,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function EM(e,t){const r={};let a,s;for(s in t.properties)if(s!=="children"&&Lp.call(t.properties,s)){const o=SM(e,s,t.properties[s]);if(o){const[c,d]=o;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&hM.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 NM(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 xo(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 xo(e,t.position);else o=a.value===null?!0:a.value;r[s]=o}return r}function Ip(e,t){const r=[];let a=-1;const s=e.passKeys?new Map:uM;for(;++a<t.children.length;){const o=t.children[a];let c;if(e.passKeys){const h=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(h){const f=s.get(h)||0;c=h+"-"+f,s.set(h,f+1)}}const d=kw(e,o,c);d!==void 0&&r.push(d)}return r}function SM(e,t,r){const a=WA(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=a.commaSeparated?HA(r):nM(r)),a.property==="style"){let s=typeof r=="object"?r:kM(e,String(r));return e.stylePropertyNameCase==="css"&&(s=CM(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&a.space?KA[a.property]||a.property:a.attribute,r]}}function kM(e,t){try{return oM(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const a=r,s=new Mn("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=Sw+"#cannot-parse-style-attribute",s}}function Tw(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=xy(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=xy(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(a.type==="Literal"){const s=a.value;return Lp.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(a);xo(e)}function xo(e,t){const r=new Mn("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=Sw+"#cannot-handle-mdx-estrees-without-createevaluater",r}function CM(e){const t={};let r;for(r in e)Lp.call(e,r)&&(t[TM(r)]=e[r]);return t}function TM(e){let t=e.replace(dM,AM);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function AM(e){return"-"+e.toLowerCase()}const Eh={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 Bp(e,t){const r=MM,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Aw(e,a,s)}function Aw(e,t,r){if(OM(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 Cy(e.children,t,r)}return Array.isArray(e)?Cy(e,t,r):""}function Cy(e,t,r){const a=[];let s=-1;for(;++s<e.length;)a[s]=Aw(e[s],t,r);return a.join("")}function OM(e){return!!(e&&typeof e=="object")}const Ty=document.createElement("i");function Up(e){const t="&"+e+";";Ty.innerHTML=t;const r=Ty.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function ar(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 xr(e,t){return e.length>0?(ar(e,e.length,0,t),e):t}const Ay={}.hasOwnProperty;function Mw(e){const t={};let r=-1;for(;++r<e.length;)RM(t,e[r]);return t}function RM(e,t){let r;for(r in t){const s=(Ay.call(e,r)?e[r]:void 0)||(e[r]={}),o=t[r];let c;if(o)for(c in o){Ay.call(s,c)||(s[c]=[]);const d=o[c];jM(s[c],Array.isArray(d)?d:d?[d]:[])}}}function jM(e,t){let r=-1;const a=[];for(;++r<t.length;)(t[r].add==="after"?e:a).push(t[r]);ar(e,0,0,a)}function Ow(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 Ln=pa(/[A-Za-z]/),An=pa(/[\dA-Za-z]/),DM=pa(/[#-'*+\--9=?A-Z^-~]/);function ku(e){return e!==null&&(e<32||e===127)}const Wm=pa(/\d/),LM=pa(/[\dA-Fa-f]/),zM=pa(/[!-/:-@[-`{-~]/);function Be(e){return e!==null&&e<-2}function Tt(e){return e!==null&&(e<0||e===32)}function tt(e){return e===-2||e===-1||e===32}const Xu=pa(new RegExp("\\p{P}|\\p{S}","u")),Va=pa(/\s/);function pa(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function rl(e){const t=[];let r=-1,a=0,s=0;for(;++r<e.length;){const o=e.charCodeAt(r);let c="";if(o===37&&An(e.charCodeAt(r+1))&&An(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(h){return tt(h)?(e.enter(r),d(h)):t(h)}function d(h){return tt(h)&&o++<s?(e.consume(h),d):(e.exit(r),t(h))}}const IM={tokenize:BM};function BM(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 h=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=h),r=h,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 UM={tokenize:HM},My={tokenize:$M};function HM(e){const t=this,r=[];let a=0,s,o,c;return d;function d(E){if(a<r.length){const A=r[a];return t.containerState=A[1],e.attempt(A[0].continuation,h,f)(E)}return f(E)}function h(E){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&C();const A=t.events.length;let B=A,R;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){R=t.events[B][1].end;break}w(a);let H=A;for(;H<t.events.length;)t.events[H][1].end={...R},H++;return ar(t.events,B+1,0,t.events.slice(A)),t.events.length=H,f(E)}return d(E)}function f(E){if(a===r.length){if(!s)return b(E);if(s.currentConstruct&&s.currentConstruct.concrete)return _(E);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(My,p,g)(E)}function p(E){return s&&C(),w(a),b(E)}function g(E){return t.parser.lazy[t.now().line]=a!==r.length,c=t.now().offset,_(E)}function b(E){return t.containerState={},e.attempt(My,y,_)(E)}function y(E){return a++,r.push([t.currentConstruct,t.containerState]),b(E)}function _(E){if(E===null){s&&C(),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,A){const B=t.sliceStream(E);if(A&&B.push(null),E.previous=o,o&&(o.next=E),o=E,s.defineSkip(E.start),s.write(B),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 H=t.events.length;let z=H,Y,j;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){if(Y){j=t.events[z][1].end;break}Y=!0}for(w(a),R=H;R<t.events.length;)t.events[R][1].end={...j},R++;ar(t.events,z+1,0,t.events.slice(H)),t.events.length=R}}function w(E){let A=r.length;for(;A-- >E;){const B=r[A];t.containerState=B[1],B[0].exit.call(t,e)}r.length=E}function C(){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 Xs(e){if(e===null||Tt(e)||Va(e))return 1;if(Xu(e))return 2}function Ku(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 Jm={name:"attention",resolveAll:qM,tokenize:PM};function qM(e,t){let r=-1,a,s,o,c,d,h,f,p;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;h=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 g={...e[a][1].end},b={...e[r][1].start};Oy(g,-h),Oy(b,h),c={type:h>1?"strongSequence":"emphasisSequence",start:g,end:{...e[a][1].end}},d={type:h>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:b},o={type:h>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[r][1].start}},s={type:h>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},e[a][1].end={...c.start},e[r][1].start={...d.end},f=[],e[a][1].end.offset-e[a][1].start.offset&&(f=xr(f,[["enter",e[a][1],t],["exit",e[a][1],t]])),f=xr(f,[["enter",s,t],["enter",c,t],["exit",c,t],["enter",o,t]]),f=xr(f,Ku(t.parser.constructs.insideSpan.null,e.slice(a+1,r),t)),f=xr(f,[["exit",o,t],["enter",d,t],["exit",d,t],["exit",s,t]]),e[r][1].end.offset-e[r][1].start.offset?(p=2,f=xr(f,[["enter",e[r][1],t],["exit",e[r][1],t]])):p=0,ar(e,a-1,r-a+3,f),r=a+f.length-p-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function PM(e,t){const r=this.parser.constructs.attentionMarkers.null,a=this.previous,s=Xs(a);let o;return c;function c(h){return o=h,e.enter("attentionSequence"),d(h)}function d(h){if(h===o)return e.consume(h),d;const f=e.exit("attentionSequence"),p=Xs(h),g=!p||p===2&&s||r.includes(h),b=!s||s===2&&p||r.includes(a);return f._open=!!(o===42?g:g&&(s||!b)),f._close=!!(o===42?b:b&&(p||!g)),t(h)}}function Oy(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const FM={name:"autolink",tokenize:GM};function GM(e,t,r){let a=0;return s;function s(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(y){return Ln(y)?(e.consume(y),c):y===64?r(y):f(y)}function c(y){return y===43||y===45||y===46||An(y)?(a=1,d(y)):f(y)}function d(y){return y===58?(e.consume(y),a=0,h):(y===43||y===45||y===46||An(y))&&a++<32?(e.consume(y),d):(a=0,f(y))}function h(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):y===null||y===32||y===60||ku(y)?r(y):(e.consume(y),h)}function f(y){return y===64?(e.consume(y),p):DM(y)?(e.consume(y),f):r(y)}function p(y){return An(y)?g(y):r(y)}function g(y){return y===46?(e.consume(y),a=0,p):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):b(y)}function b(y){if((y===45||An(y))&&a++<63){const _=y===45?b:g;return e.consume(y),_}return r(y)}}const Do={partial:!0,tokenize:VM};function VM(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 Rw={continuation:{tokenize:XM},exit:KM,name:"blockQuote",tokenize:YM};function YM(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 XM(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(Rw,t,r)(c)}}function KM(e){e.exit("blockQuote")}const jw={name:"characterEscape",tokenize:ZM};function ZM(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 zM(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(o)}}const Dw={name:"characterReference",tokenize:QM};function QM(e,t,r){const a=this;let s=0,o,c;return d;function d(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),h}function h(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),o=31,c=An,p(g))}function f(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,c=LM,p):(e.enter("characterReferenceValue"),o=7,c=Wm,p(g))}function p(g){if(g===59&&s){const b=e.exit("characterReferenceValue");return c===An&&!Up(a.sliceSerialize(b))?r(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return c(g)&&s++<o?(e.consume(g),p):r(g)}}const Ry={partial:!0,tokenize:JM},jy={concrete:!0,name:"codeFenced",tokenize:WM};function WM(e,t,r){const a=this,s={partial:!0,tokenize:B};let o=0,c=0,d;return h;function h(R){return f(R)}function f(R){const H=a.events[a.events.length-1];return o=H&&H[1].type==="linePrefix"?H[2].sliceSerialize(H[1],!0).length:0,d=R,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(R)}function p(R){return R===d?(c++,e.consume(R),p):c<3?r(R):(e.exit("codeFencedFenceSequence"),tt(R)?ot(e,g,"whitespace")(R):g(R))}function g(R){return R===null||Be(R)?(e.exit("codeFencedFence"),a.interrupt?t(R):e.check(Ry,N,A)(R)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(R))}function b(R){return R===null||Be(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(R)):tt(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ot(e,y,"whitespace")(R)):R===96&&R===d?r(R):(e.consume(R),b)}function y(R){return R===null||Be(R)?g(R):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),_(R))}function _(R){return R===null||Be(R)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(R)):R===96&&R===d?r(R):(e.consume(R),_)}function N(R){return e.attempt(s,A,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,C,"linePrefix",o+1)(R):C(R)}function C(R){return R===null||Be(R)?e.check(Ry,N,A)(R):(e.enter("codeFlowValue"),E(R))}function E(R){return R===null||Be(R)?(e.exit("codeFlowValue"),C(R)):(e.consume(R),E)}function A(R){return e.exit("codeFenced"),t(R)}function B(R,H,z){let Y=0;return j;function j($){return R.enter("lineEnding"),R.consume($),R.exit("lineEnding"),I}function I($){return R.enter("codeFencedFence"),tt($)?ot(R,Z,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):Z($)}function Z($){return $===d?(R.enter("codeFencedFenceSequence"),P($)):z($)}function P($){return $===d?(Y++,R.consume($),P):Y>=c?(R.exit("codeFencedFenceSequence"),tt($)?ot(R,k,"whitespace")($):k($)):z($)}function k($){return $===null||Be($)?(R.exit("codeFencedFence"),H($)):z($)}}}function JM(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 Nh={name:"codeIndented",tokenize:t5},e5={partial:!0,tokenize:n5};function t5(e,t,r){const a=this;return s;function s(f){return e.enter("codeIndented"),ot(e,o,"linePrefix",5)(f)}function o(f){const p=a.events[a.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?c(f):r(f)}function c(f){return f===null?h(f):Be(f)?e.attempt(e5,c,h)(f):(e.enter("codeFlowValue"),d(f))}function d(f){return f===null||Be(f)?(e.exit("codeFlowValue"),c(f)):(e.consume(f),d)}function h(f){return e.exit("codeIndented"),t(f)}}function n5(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 r5={name:"codeText",previous:a5,resolve:i5,tokenize:s5};function i5(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 a5(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function s5(e,t,r){let a=0,s,o;return c;function c(g){return e.enter("codeText"),e.enter("codeTextSequence"),d(g)}function d(g){return g===96?(e.consume(g),a++,d):(e.exit("codeTextSequence"),h(g))}function h(g){return g===null?r(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),h):g===96?(o=e.enter("codeTextSequence"),s=0,p(g)):Be(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),h):(e.enter("codeTextData"),f(g))}function f(g){return g===null||g===32||g===96||Be(g)?(e.exit("codeTextData"),h(g)):(e.consume(g),f)}function p(g){return g===96?(e.consume(g),s++,p):s===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(o.type="codeTextData",f(g))}}class l5{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&&Jl(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),Jl(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Jl(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);Jl(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Jl(this.left,r.reverse())}}}function Jl(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 Lw(e){const t={};let r=-1,a,s,o,c,d,h,f;const p=new l5(e);for(;++r<p.length;){for(;r in t;)r=t[r];if(a=p.get(r),r&&a[1].type==="chunkFlow"&&p.get(r-1)[1].type==="listItemPrefix"&&(h=a[1]._tokenizer.events,o=0,o<h.length&&h[o][1].type==="lineEndingBlank"&&(o+=2),o<h.length&&h[o][1].type==="content"))for(;++o<h.length&&h[o][1].type!=="content";)h[o][1].type==="chunkText"&&(h[o][1]._isInFirstContentOfListItem=!0,o++);if(a[0]==="enter")a[1].contentType&&(Object.assign(t,o5(p,r)),r=t[r],f=!0);else if(a[1]._container){for(o=r,s=void 0;o--;)if(c=p.get(o),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(p.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={...p.get(s)[1].start},d=p.slice(s,r),d.unshift(a),p.splice(s,r-s+1,d))}}return ar(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!f}function o5(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,h=[],f={};let p,g,b=-1,y=r,_=0,N=0;const S=[N];for(;y;){for(;e.get(++s)[1]!==y;);o.push(s),y._tokenizer||(p=a.sliceStream(y),y.next||p.push(null),g&&c.defineSkip(y.start),y._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(p),y._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=y,y=y.next}for(y=r;++b<d.length;)d[b][0]==="exit"&&d[b-1][0]==="enter"&&d[b][1].type===d[b-1][1].type&&d[b][1].start.line!==d[b][1].end.line&&(N=b+1,S.push(N),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(c.events=[],y?(y._tokenizer=void 0,y.previous=void 0):S.pop(),b=S.length;b--;){const w=d.slice(S[b],S[b+1]),C=o.pop();h.push([C,C+w.length-1]),e.splice(C,2,w)}for(h.reverse(),b=-1;++b<h.length;)f[_+h[b][0]]=_+h[b][1],_+=h[b][1]-h[b][0]-1;return f}const c5={resolve:d5,tokenize:f5},u5={partial:!0,tokenize:h5};function d5(e){return Lw(e),e}function f5(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(u5,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 h5(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 zw(e,t,r,a,s,o,c,d,h){const f=h||Number.POSITIVE_INFINITY;let p=0;return g;function g(w){return w===60?(e.enter(a),e.enter(s),e.enter(o),e.consume(w),e.exit(o),b):w===null||w===32||w===41||ku(w)?r(w):(e.enter(a),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),N(w))}function b(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"}),y(w))}function y(w){return w===62?(e.exit("chunkString"),e.exit(d),b(w)):w===null||w===60||Be(w)?r(w):(e.consume(w),w===92?_:y)}function _(w){return w===60||w===62||w===92?(e.consume(w),y):y(w)}function N(w){return!p&&(w===null||w===41||Tt(w))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(a),t(w)):p<f&&w===40?(e.consume(w),p++,N):w===41?(e.consume(w),p--,N):w===null||w===32||w===40||ku(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 Iw(e,t,r,a,s,o){const c=this;let d=0,h;return f;function f(y){return e.enter(a),e.enter(s),e.consume(y),e.exit(s),e.enter(o),p}function p(y){return d>999||y===null||y===91||y===93&&!h||y===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?r(y):y===93?(e.exit(o),e.enter(s),e.consume(y),e.exit(s),e.exit(a),t):Be(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),g(y))}function g(y){return y===null||y===91||y===93||Be(y)||d++>999?(e.exit("chunkString"),p(y)):(e.consume(y),h||(h=!tt(y)),y===92?b:g)}function b(y){return y===91||y===92||y===93?(e.consume(y),d++,g):g(y)}}function Bw(e,t,r,a,s,o){let c;return d;function d(b){return b===34||b===39||b===40?(e.enter(a),e.enter(s),e.consume(b),e.exit(s),c=b===40?41:b,h):r(b)}function h(b){return b===c?(e.enter(s),e.consume(b),e.exit(s),e.exit(a),t):(e.enter(o),f(b))}function f(b){return b===c?(e.exit(o),h(c)):b===null?r(b):Be(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),ot(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===c||b===null||Be(b)?(e.exit("chunkString"),f(b)):(e.consume(b),b===92?g:p)}function g(b){return b===c||b===92?(e.consume(b),p):p(b)}}function co(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 m5={name:"definition",tokenize:g5},p5={partial:!0,tokenize:x5};function g5(e,t,r){const a=this;let s;return o;function o(y){return e.enter("definition"),c(y)}function c(y){return Iw.call(a,e,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function d(y){return s=Dr(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),h):r(y)}function h(y){return Tt(y)?co(e,f)(y):f(y)}function f(y){return zw(e,p,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function p(y){return e.attempt(p5,g,g)(y)}function g(y){return tt(y)?ot(e,b,"whitespace")(y):b(y)}function b(y){return y===null||Be(y)?(e.exit("definition"),a.parser.defined.push(s),t(y)):r(y)}}function x5(e,t,r){return a;function a(d){return Tt(d)?co(e,s)(d):r(d)}function s(d){return Bw(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 b5={name:"hardBreakEscape",tokenize:y5};function y5(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 v5={name:"headingAtx",resolve:_5,tokenize:w5};function _5(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"},ar(e,a,r-a+1,[["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t]])),e}function w5(e,t,r){let a=0;return s;function s(p){return e.enter("atxHeading"),o(p)}function o(p){return e.enter("atxHeadingSequence"),c(p)}function c(p){return p===35&&a++<6?(e.consume(p),c):p===null||Tt(p)?(e.exit("atxHeadingSequence"),d(p)):r(p)}function d(p){return p===35?(e.enter("atxHeadingSequence"),h(p)):p===null||Be(p)?(e.exit("atxHeading"),t(p)):tt(p)?ot(e,d,"whitespace")(p):(e.enter("atxHeadingText"),f(p))}function h(p){return p===35?(e.consume(p),h):(e.exit("atxHeadingSequence"),d(p))}function f(p){return p===null||p===35||Tt(p)?(e.exit("atxHeadingText"),d(p)):(e.consume(p),f)}}const E5=["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"],Dy=["pre","script","style","textarea"],N5={concrete:!0,name:"htmlFlow",resolveTo:C5,tokenize:T5},S5={partial:!0,tokenize:M5},k5={partial:!0,tokenize:A5};function C5(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 T5(e,t,r){const a=this;let s,o,c,d,h;return f;function f(D){return p(D)}function p(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),g}function g(D){return D===33?(e.consume(D),b):D===47?(e.consume(D),o=!0,N):D===63?(e.consume(D),s=3,a.interrupt?t:M):Ln(D)?(e.consume(D),c=String.fromCharCode(D),S):r(D)}function b(D){return D===45?(e.consume(D),s=2,y):D===91?(e.consume(D),s=5,d=0,_):Ln(D)?(e.consume(D),s=4,a.interrupt?t:M):r(D)}function y(D){return D===45?(e.consume(D),a.interrupt?t:M):r(D)}function _(D){const V="CDATA[";return D===V.charCodeAt(d++)?(e.consume(D),d===V.length?a.interrupt?t:Z:_):r(D)}function N(D){return Ln(D)?(e.consume(D),c=String.fromCharCode(D),S):r(D)}function S(D){if(D===null||D===47||D===62||Tt(D)){const V=D===47,q=c.toLowerCase();return!V&&!o&&Dy.includes(q)?(s=1,a.interrupt?t(D):Z(D)):E5.includes(c.toLowerCase())?(s=6,V?(e.consume(D),w):a.interrupt?t(D):Z(D)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(D):o?C(D):E(D))}return D===45||An(D)?(e.consume(D),c+=String.fromCharCode(D),S):r(D)}function w(D){return D===62?(e.consume(D),a.interrupt?t:Z):r(D)}function C(D){return tt(D)?(e.consume(D),C):j(D)}function E(D){return D===47?(e.consume(D),j):D===58||D===95||Ln(D)?(e.consume(D),A):tt(D)?(e.consume(D),E):j(D)}function A(D){return D===45||D===46||D===58||D===95||An(D)?(e.consume(D),A):B(D)}function B(D){return D===61?(e.consume(D),R):tt(D)?(e.consume(D),B):E(D)}function R(D){return D===null||D===60||D===61||D===62||D===96?r(D):D===34||D===39?(e.consume(D),h=D,H):tt(D)?(e.consume(D),R):z(D)}function H(D){return D===h?(e.consume(D),h=null,Y):D===null||Be(D)?r(D):(e.consume(D),H)}function z(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||Tt(D)?B(D):(e.consume(D),z)}function Y(D){return D===47||D===62||tt(D)?E(D):r(D)}function j(D){return D===62?(e.consume(D),I):r(D)}function I(D){return D===null||Be(D)?Z(D):tt(D)?(e.consume(D),I):r(D)}function Z(D){return D===45&&s===2?(e.consume(D),O):D===60&&s===1?(e.consume(D),U):D===62&&s===4?(e.consume(D),L):D===63&&s===3?(e.consume(D),M):D===93&&s===5?(e.consume(D),X):Be(D)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(S5,F,P)(D)):D===null||Be(D)?(e.exit("htmlFlowData"),P(D)):(e.consume(D),Z)}function P(D){return e.check(k5,k,F)(D)}function k(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),$}function $(D){return D===null||Be(D)?P(D):(e.enter("htmlFlowData"),Z(D))}function O(D){return D===45?(e.consume(D),M):Z(D)}function U(D){return D===47?(e.consume(D),c="",K):Z(D)}function K(D){if(D===62){const V=c.toLowerCase();return Dy.includes(V)?(e.consume(D),L):Z(D)}return Ln(D)&&c.length<8?(e.consume(D),c+=String.fromCharCode(D),K):Z(D)}function X(D){return D===93?(e.consume(D),M):Z(D)}function M(D){return D===62?(e.consume(D),L):D===45&&s===2?(e.consume(D),M):Z(D)}function L(D){return D===null||Be(D)?(e.exit("htmlFlowData"),F(D)):(e.consume(D),L)}function F(D){return e.exit("htmlFlow"),t(D)}}function A5(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 M5(e,t,r){return a;function a(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(Do,t,r)}}const O5={name:"htmlText",tokenize:R5};function R5(e,t,r){const a=this;let s,o,c;return d;function d(M){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(M),h}function h(M){return M===33?(e.consume(M),f):M===47?(e.consume(M),B):M===63?(e.consume(M),E):Ln(M)?(e.consume(M),z):r(M)}function f(M){return M===45?(e.consume(M),p):M===91?(e.consume(M),o=0,_):Ln(M)?(e.consume(M),C):r(M)}function p(M){return M===45?(e.consume(M),y):r(M)}function g(M){return M===null?r(M):M===45?(e.consume(M),b):Be(M)?(c=g,U(M)):(e.consume(M),g)}function b(M){return M===45?(e.consume(M),y):g(M)}function y(M){return M===62?O(M):M===45?b(M):g(M)}function _(M){const L="CDATA[";return M===L.charCodeAt(o++)?(e.consume(M),o===L.length?N:_):r(M)}function N(M){return M===null?r(M):M===93?(e.consume(M),S):Be(M)?(c=N,U(M)):(e.consume(M),N)}function S(M){return M===93?(e.consume(M),w):N(M)}function w(M){return M===62?O(M):M===93?(e.consume(M),w):N(M)}function C(M){return M===null||M===62?O(M):Be(M)?(c=C,U(M)):(e.consume(M),C)}function E(M){return M===null?r(M):M===63?(e.consume(M),A):Be(M)?(c=E,U(M)):(e.consume(M),E)}function A(M){return M===62?O(M):E(M)}function B(M){return Ln(M)?(e.consume(M),R):r(M)}function R(M){return M===45||An(M)?(e.consume(M),R):H(M)}function H(M){return Be(M)?(c=H,U(M)):tt(M)?(e.consume(M),H):O(M)}function z(M){return M===45||An(M)?(e.consume(M),z):M===47||M===62||Tt(M)?Y(M):r(M)}function Y(M){return M===47?(e.consume(M),O):M===58||M===95||Ln(M)?(e.consume(M),j):Be(M)?(c=Y,U(M)):tt(M)?(e.consume(M),Y):O(M)}function j(M){return M===45||M===46||M===58||M===95||An(M)?(e.consume(M),j):I(M)}function I(M){return M===61?(e.consume(M),Z):Be(M)?(c=I,U(M)):tt(M)?(e.consume(M),I):Y(M)}function Z(M){return M===null||M===60||M===61||M===62||M===96?r(M):M===34||M===39?(e.consume(M),s=M,P):Be(M)?(c=Z,U(M)):tt(M)?(e.consume(M),Z):(e.consume(M),k)}function P(M){return M===s?(e.consume(M),s=void 0,$):M===null?r(M):Be(M)?(c=P,U(M)):(e.consume(M),P)}function k(M){return M===null||M===34||M===39||M===60||M===61||M===96?r(M):M===47||M===62||Tt(M)?Y(M):(e.consume(M),k)}function $(M){return M===47||M===62||Tt(M)?Y(M):r(M)}function O(M){return M===62?(e.consume(M),e.exit("htmlTextData"),e.exit("htmlText"),t):r(M)}function U(M){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),K}function K(M){return tt(M)?ot(e,X,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):X(M)}function X(M){return e.enter("htmlTextData"),c(M)}}const Hp={name:"labelEnd",resolveAll:z5,resolveTo:I5,tokenize:B5},j5={tokenize:U5},D5={tokenize:H5},L5={tokenize:$5};function z5(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&&ar(e,0,e.length,r),e}function I5(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 h={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},f={type:"label",start:{...e[o][1].start},end:{...e[c][1].end}},p={type:"labelText",start:{...e[o+a+2][1].end},end:{...e[c-2][1].start}};return d=[["enter",h,t],["enter",f,t]],d=xr(d,e.slice(o+1,o+a+3)),d=xr(d,[["enter",p,t]]),d=xr(d,Ku(t.parser.constructs.insideSpan.null,e.slice(o+a+4,c-3),t)),d=xr(d,[["exit",p,t],e[c-2],e[c-1],["exit",f,t]]),d=xr(d,e.slice(c+1)),d=xr(d,[["exit",h,t]]),ar(e,o,e.length,d),e}function B5(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(b){return o?o._inactive?g(b):(c=a.parser.defined.includes(Dr(a.sliceSerialize({start:o.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),h):r(b)}function h(b){return b===40?e.attempt(j5,p,c?p:g)(b):b===91?e.attempt(D5,p,c?f:g)(b):c?p(b):g(b)}function f(b){return e.attempt(L5,p,g)(b)}function p(b){return t(b)}function g(b){return o._balanced=!0,r(b)}}function U5(e,t,r){return a;function a(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),s}function s(g){return Tt(g)?co(e,o)(g):o(g)}function o(g){return g===41?p(g):zw(e,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return Tt(g)?co(e,h)(g):p(g)}function d(g){return r(g)}function h(g){return g===34||g===39||g===40?Bw(e,f,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):p(g)}function f(g){return Tt(g)?co(e,p)(g):p(g)}function p(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),t):r(g)}}function H5(e,t,r){const a=this;return s;function s(d){return Iw.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 q5={name:"labelStartImage",resolveAll:Hp.resolveAll,tokenize:P5};function P5(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 F5={name:"labelStartLink",resolveAll:Hp.resolveAll,tokenize:G5};function G5(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 Sh={name:"lineEnding",tokenize:V5};function V5(e,t){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ot(e,t,"linePrefix")}}const bu={name:"thematicBreak",tokenize:Y5};function Y5(e,t,r){let a=0,s;return o;function o(f){return e.enter("thematicBreak"),c(f)}function c(f){return s=f,d(f)}function d(f){return f===s?(e.enter("thematicBreakSequence"),h(f)):a>=3&&(f===null||Be(f))?(e.exit("thematicBreak"),t(f)):r(f)}function h(f){return f===s?(e.consume(f),a++,h):(e.exit("thematicBreakSequence"),tt(f)?ot(e,d,"whitespace")(f):d(f))}}const Fn={continuation:{tokenize:Q5},exit:J5,name:"list",tokenize:Z5},X5={partial:!0,tokenize:eO},K5={partial:!0,tokenize:W5};function Z5(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(y){const _=a.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!a.containerState.marker||y===a.containerState.marker:Wm(y)){if(a.containerState.type||(a.containerState.type=_,e.enter(_,{_container:!0})),_==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(bu,r,f)(y):f(y);if(!a.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(y)}return r(y)}function h(y){return Wm(y)&&++c<10?(e.consume(y),h):(!a.interrupt||c<2)&&(a.containerState.marker?y===a.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),f(y)):r(y)}function f(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||y,e.check(Do,a.interrupt?r:p,e.attempt(X5,b,g))}function p(y){return a.containerState.initialBlankLine=!0,o++,b(y)}function g(y){return tt(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),b):r(y)}function b(y){return a.containerState.size=o+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function Q5(e,t,r){const a=this;return a.containerState._closeFlow=void 0,e.check(Do,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(K5,t,c)(d))}function c(d){return a.containerState._closeFlow=!0,a.interrupt=void 0,ot(e,e.attempt(Fn,t,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function W5(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 J5(e){e.exit(this.containerState.type)}function eO(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 Ly={name:"setextUnderline",resolveTo:tO,tokenize:nO};function tO(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 nO(e,t,r){const a=this;let s;return o;function o(f){let p=a.events.length,g;for(;p--;)if(a.events[p][1].type!=="lineEnding"&&a.events[p][1].type!=="linePrefix"&&a.events[p][1].type!=="content"){g=a.events[p][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||g)?(e.enter("setextHeadingLine"),s=f,c(f)):r(f)}function c(f){return e.enter("setextHeadingLineSequence"),d(f)}function d(f){return f===s?(e.consume(f),d):(e.exit("setextHeadingLineSequence"),tt(f)?ot(e,h,"lineSuffix")(f):h(f))}function h(f){return f===null||Be(f)?(e.exit("setextHeadingLine"),t(f)):r(f)}}const rO={tokenize:iO};function iO(e){const t=this,r=e.attempt(Do,a,e.attempt(this.parser.constructs.flowInitial,s,ot(e,e.attempt(this.parser.constructs.flow,s,e.attempt(c5,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 aO={resolveAll:Hw()},sO=Uw("string"),lO=Uw("text");function Uw(e){return{resolveAll:Hw(e==="text"?oO: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(p){return f(p)?o(p):d(p)}function d(p){if(p===null){r.consume(p);return}return r.enter("data"),r.consume(p),h}function h(p){return f(p)?(r.exit("data"),o(p)):(r.consume(p),h)}function f(p){if(p===null)return!0;const g=s[p];let b=-1;if(g)for(;++b<g.length;){const y=g[b];if(!y.previous||y.previous.call(a,a.previous))return!0}return!1}}}function Hw(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 oO(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,h;for(;o--;){const f=s[o];if(typeof f=="string"){for(c=f.length;f.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(f===-2)h=!0,d++;else if(f!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(d=0),d){const f={type:r===e.length||h||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={...f.start},a.start.offset===a.end.offset?Object.assign(a,f):(e.splice(r,0,["enter",f,t],["exit",f,t]),r+=2)}r++}return e}const cO={42:Fn,43:Fn,45:Fn,48:Fn,49:Fn,50:Fn,51:Fn,52:Fn,53:Fn,54:Fn,55:Fn,56:Fn,57:Fn,62:Rw},uO={91:m5},dO={[-2]:Nh,[-1]:Nh,32:Nh},fO={35:v5,42:bu,45:[Ly,bu],60:N5,61:Ly,95:bu,96:jy,126:jy},hO={38:Dw,92:jw},mO={[-5]:Sh,[-4]:Sh,[-3]:Sh,33:q5,38:Dw,42:Jm,60:[FM,O5],91:F5,92:[b5,jw],93:Hp,95:Jm,96:r5},pO={null:[Jm,aO]},gO={null:[42,95]},xO={null:[]},bO=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:gO,contentInitial:uO,disable:xO,document:cO,flow:fO,flowInitial:dO,insideSpan:pO,string:hO,text:mO},Symbol.toStringTag,{value:"Module"}));function yO(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 h={attempt:H(B),check:H(R),consume:C,enter:E,exit:A,interrupt:H(R,{interrupt:!0})},f={code:null,containerState:{},defineSkip:N,events:[],now:_,parser:e,previous:null,sliceSerialize:b,sliceStream:y,write:g};let p=t.tokenize.call(f,h);return t.resolveAll&&o.push(t),f;function g(I){return c=xr(c,I),S(),c[c.length-1]!==null?[]:(z(t,0),f.events=Ku(o,f.events,f),f.events)}function b(I,Z){return _O(y(I),Z)}function y(I){return vO(c,I)}function _(){const{_bufferIndex:I,_index:Z,line:P,column:k,offset:$}=a;return{_bufferIndex:I,_index:Z,line:P,column:k,offset:$}}function N(I){s[I.line]=I.column,j()}function S(){let I;for(;a._index<c.length;){const Z=c[a._index];if(typeof Z=="string")for(I=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===I&&a._bufferIndex<Z.length;)w(Z.charCodeAt(a._bufferIndex));else w(Z)}}function w(I){p=p(I)}function C(I){Be(I)?(a.line++,a.column=1,a.offset+=I===-3?2:1,j()):I!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===c[a._index].length&&(a._bufferIndex=-1,a._index++)),f.previous=I}function E(I,Z){const P=Z||{};return P.type=I,P.start=_(),f.events.push(["enter",P,f]),d.push(P),P}function A(I){const Z=d.pop();return Z.end=_(),f.events.push(["exit",Z,f]),Z}function B(I,Z){z(I,Z.from)}function R(I,Z){Z.restore()}function H(I,Z){return P;function P(k,$,O){let U,K,X,M;return Array.isArray(k)?F(k):"tokenize"in k?F([k]):L(k);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 F(fe)(W)}}function F(Q){return U=Q,K=0,Q.length===0?O:D(Q[K])}function D(Q){return J;function J(W){return M=Y(),X=Q,Q.partial||(f.currentConstruct=Q),Q.name&&f.parser.constructs.disable.null.includes(Q.name)?q():Q.tokenize.call(Z?Object.assign(Object.create(f),Z):f,h,V,q)(W)}}function V(Q){return I(X,M),$}function q(Q){return M.restore(),++K<U.length?D(U[K]):O}}}function z(I,Z){I.resolveAll&&!o.includes(I)&&o.push(I),I.resolve&&ar(f.events,Z,f.events.length-Z,I.resolve(f.events.slice(Z),f)),I.resolveTo&&(f.events=I.resolveTo(f.events,f))}function Y(){const I=_(),Z=f.previous,P=f.currentConstruct,k=f.events.length,$=Array.from(d);return{from:k,restore:O};function O(){a=I,f.previous=Z,f.currentConstruct=P,f.events.length=k,d=$,j()}}function j(){a.line in s&&a.column<2&&(a.column=s[a.line],a.offset+=s[a.line]-1)}}function vO(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 _O(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=`
+ */const UT=[["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"}]],HT=Ce("zap",UT),$T={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"}},qT={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"}},tw={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 eu(e){return e.original_severity!=null&&e.original_severity!==e.severity}const PT={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 FT(e){var r;if(!e)return null;const t=(r=e.split(".").pop())==null?void 0:r.toLowerCase();return t&&PT[t]||null}function Cp(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 Tp(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 Xu="https://app.strix.ai/api/auth/signup",Ap="https://strix.ai/demo",GT="https://strix.ai/pricing",VT="ref=oss_viewer&utm_source=oss_viewer&utm_medium=local_viewer&utm_campaign=oss_viewer";function _i(e,t){const r=e.includes("?")?"&":"?";return`${e}${r}${VT}&utm_content=${encodeURIComponent(t)}`}function Mr(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 yr(e,t){Mr("cta_clicked",{cta:e,surface:t})}function nw(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=nw(e[t]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function YT(){for(var e,t,r=0,a="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=nw(e))&&(a&&(a+=" "),a+=t);return a}const XT=(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},KT=(e,t)=>({classGroupId:e,validator:t}),rw=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),ku="-",dy=[],ZT="arbitrary..",QT=e=>{const t=JT(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return WT(c);const d=c.split(ku),h=d[0]===""&&d.length>1?1:0;return iw(d,h,t)},getConflictingClassGroupIds:(c,d)=>{if(d){const h=a[c],f=r[c];return h?f?XT(f,h):h:f||dy}return r[c]||dy}}},iw=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const s=e[t],o=r.nextPart.get(s);if(o){const f=iw(e,t+1,o);if(f)return f}const c=r.validators;if(c===null)return;const d=t===0?e.join(ku):e.slice(t).join(ku),h=c.length;for(let f=0;f<h;f++){const p=c[f];if(p.validator(d))return p.classGroupId}},WT=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?ZT+a:void 0})(),JT=e=>{const{theme:t,classGroups:r}=e;return eA(r,t)},eA=(e,t)=>{const r=rw();for(const a in e){const s=e[a];Mp(s,r,a,t)}return r},Mp=(e,t,r,a)=>{const s=e.length;for(let o=0;o<s;o++){const c=e[o];tA(c,t,r,a)}},tA=(e,t,r,a)=>{if(typeof e=="string"){nA(e,t,r);return}if(typeof e=="function"){rA(e,t,r,a);return}iA(e,t,r,a)},nA=(e,t,r)=>{const a=e===""?t:aw(t,e);a.classGroupId=r},rA=(e,t,r,a)=>{if(aA(e)){Mp(e(a),t,r,a);return}t.validators===null&&(t.validators=[]),t.validators.push(KT(r,e))},iA=(e,t,r,a)=>{const s=Object.entries(e),o=s.length;for(let c=0;c<o;c++){const[d,h]=s[c];Mp(h,aw(t,d),r,a)}},aw=(e,t)=>{let r=e;const a=t.split(ku),s=a.length;for(let o=0;o<s;o++){const c=a[o];let d=r.nextPart.get(c);d||(d=rw(),r.nextPart.set(c,d)),r=d}return r},aA=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,sA=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)}}},Vm="!",fy=":",lA=[],hy=(e,t,r,a,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:a,isExternal:s}),oA=e=>{const{prefix:t,experimentalParseClassName:r}=e;let a=s=>{const o=[];let c=0,d=0,h=0,f;const p=s.length;for(let N=0;N<p;N++){const S=s[N];if(c===0&&d===0){if(S===fy){o.push(s.slice(h,N)),h=N+1;continue}if(S==="/"){f=N;continue}}S==="["?c++:S==="]"?c--:S==="("?d++:S===")"&&d--}const g=o.length===0?s:s.slice(h);let b=g,y=!1;g.endsWith(Vm)?(b=g.slice(0,-1),y=!0):g.startsWith(Vm)&&(b=g.slice(1),y=!0);const _=f&&f>h?f-h:void 0;return hy(o,y,b,_)};if(t){const s=t+fy,o=a;a=c=>c.startsWith(s)?o(c.slice(s.length)):hy(lA,!1,c,void 0,!0)}if(r){const s=a;a=o=>r({className:o,parseClassName:s})}return a},cA=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]==="[",h=t.has(c);d||h?(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}},uA=e=>({cache:sA(e.cacheSize),parseClassName:oA(e),sortModifiers:cA(e),postfixLookupClassGroupIds:dA(e),...QT(e)}),dA=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},fA=/\s+/,hA=(e,t)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:s,sortModifiers:o,postfixLookupClassGroupIds:c}=t,d=[],h=e.trim().split(fA);let f="";for(let p=h.length-1;p>=0;p-=1){const g=h[p],{isExternal:b,modifiers:y,hasImportantModifier:_,baseClassName:N,maybePostfixModifierPosition:S}=r(g);if(b){f=g+(f.length>0?" "+f:f);continue}let w=!!S,C;if(w){const H=N.substring(0,S);C=a(H);const z=C&&c[C]?a(N):void 0;z&&z!==C&&(C=z,w=!1)}else C=a(N);if(!C){if(!w){f=g+(f.length>0?" "+f:f);continue}if(C=a(N),!C){f=g+(f.length>0?" "+f:f);continue}w=!1}const E=y.length===0?"":y.length===1?y[0]:o(y).join(":"),A=_?E+Vm:E,B=A+C;if(d.indexOf(B)>-1)continue;d.push(B);const R=s(C,w);for(let H=0;H<R.length;++H){const z=R[H];d.push(A+z)}f=g+(f.length>0?" "+f:f)}return f},mA=(...e)=>{let t=0,r,a,s="";for(;t<e.length;)(r=e[t++])&&(a=sw(r))&&(s&&(s+=" "),s+=a);return s},sw=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=sw(e[a]))&&(r&&(r+=" "),r+=t);return r},pA=(e,...t)=>{let r,a,s,o;const c=h=>{const f=t.reduce((p,g)=>g(p),e());return r=uA(f),a=r.cache.get,s=r.cache.set,o=d,d(h)},d=h=>{const f=a(h);if(f)return f;const p=hA(h,r);return s(h,p),p};return o=c,(...h)=>o(mA(...h))},gA=[],hn=e=>{const t=r=>r[e]||gA;return t.isThemeGetter=!0,t},lw=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ow=/^\((?:(\w[\w-]*):)?(.+)\)$/i,xA=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,bA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yA=/\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$/,vA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,_A=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,wA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ia=e=>xA.test(e),We=e=>!!e&&!Number.isNaN(Number(e)),Fr=e=>!!e&&Number.isInteger(Number(e)),vh=e=>e.endsWith("%")&&We(e.slice(0,-1)),xi=e=>bA.test(e),cw=()=>!0,EA=e=>yA.test(e)&&!vA.test(e),Op=()=>!1,NA=e=>_A.test(e),SA=e=>wA.test(e),kA=e=>!ke(e)&&!Te(e),CA=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)),TA=e=>ma(e,fw,Op),ke=e=>lw.test(e),za=e=>ma(e,hw,EA),my=e=>ma(e,zA,We),AA=e=>ma(e,pw,cw),MA=e=>ma(e,mw,Op),py=e=>ma(e,uw,Op),OA=e=>ma(e,dw,SA),tu=e=>ma(e,gw,NA),Te=e=>ow.test(e),Zl=e=>Wa(e,hw),RA=e=>Wa(e,mw),gy=e=>Wa(e,uw),jA=e=>Wa(e,fw),DA=e=>Wa(e,dw),nu=e=>Wa(e,gw,!0),LA=e=>Wa(e,pw,!0),ma=(e,t,r)=>{const a=lw.exec(e);return a?a[1]?t(a[1]):r(a[2]):!1},Wa=(e,t,r=!1)=>{const a=ow.exec(e);return a?a[1]?t(a[1]):r:!1},uw=e=>e==="position"||e==="percentage",dw=e=>e==="image"||e==="url",fw=e=>e==="length"||e==="size"||e==="bg-size",hw=e=>e==="length",zA=e=>e==="number",mw=e=>e==="family-name",pw=e=>e==="number"||e==="weight",gw=e=>e==="shadow",IA=()=>{const e=hn("color"),t=hn("font"),r=hn("text"),a=hn("font-weight"),s=hn("tracking"),o=hn("leading"),c=hn("breakpoint"),d=hn("container"),h=hn("spacing"),f=hn("radius"),p=hn("shadow"),g=hn("inset-shadow"),b=hn("text-shadow"),y=hn("drop-shadow"),_=hn("blur"),N=hn("perspective"),S=hn("aspect"),w=hn("ease"),C=hn("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...A(),Te,ke],R=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],z=()=>[Te,ke,h],Y=()=>[ia,"full","auto",...z()],j=()=>[Fr,"none","subgrid",Te,ke],I=()=>["auto",{span:["full",Fr,Te,ke]},Fr,Te,ke],Z=()=>[Fr,"auto",Te,ke],P=()=>["auto","min","max","fr",Te,ke],k=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],$=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...z()],U=()=>[ia,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...z()],K=()=>[ia,"screen","full","dvw","lvw","svw","min","max","fit",...z()],X=()=>[ia,"screen","full","lh","dvh","lvh","svh","min","max","fit",...z()],M=()=>[e,Te,ke],L=()=>[...A(),gy,py,{position:[Te,ke]}],F=()=>["no-repeat",{repeat:["","x","y","space","round"]}],D=()=>["auto","cover","contain",jA,TA,{size:[Te,ke]}],V=()=>[vh,Zl,za],q=()=>["","none","full",f,Te,ke],Q=()=>["",We,Zl,za],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,vh,gy,py],oe=()=>["","none",_,Te,ke],fe=()=>["none",We,Te,ke],xe=()=>["none",We,Te,ke],we=()=>[We,Te,ke],Ne=()=>[ia,"full",...z()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[xi],breakpoint:[xi],color:[cw],container:[xi],"drop-shadow":[xi],ease:["in","out","in-out"],font:[kA],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[xi],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[xi],shadow:[xi],spacing:["px",We],text:[xi],"text-shadow":[xi],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ia,ke,Te,S]}],container:["container"],"container-type":[{"@container":["","normal","size",Te,ke]}],"container-named":[CA],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:B()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Y()}],"inset-x":[{"inset-x":Y()}],"inset-y":[{"inset-y":Y()}],start:[{"inset-s":Y(),start:Y()}],end:[{"inset-e":Y(),end:Y()}],"inset-bs":[{"inset-bs":Y()}],"inset-be":[{"inset-be":Y()}],top:[{top:Y()}],right:[{right:Y()}],bottom:[{bottom:Y()}],left:[{left:Y()}],visibility:["visible","invisible","collapse"],z:[{z:[Fr,"auto",Te,ke]}],basis:[{basis:[ia,"full","auto",d,...z()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[We,ia,"auto","initial","none",ke]}],grow:[{grow:["",We,Te,ke]}],shrink:[{shrink:["",We,Te,ke]}],order:[{order:[Fr,"first","last","none",Te,ke]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":P()}],"auto-rows":[{"auto-rows":P()}],gap:[{gap:z()}],"gap-x":[{"gap-x":z()}],"gap-y":[{"gap-y":z()}],"justify-content":[{justify:[...k(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...k()]}],"align-items":[{items:[...$(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...$(),{baseline:["","last"]}]}],"place-content":[{"place-content":k()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:z()}],px:[{px:z()}],py:[{py:z()}],ps:[{ps:z()}],pe:[{pe:z()}],pbs:[{pbs:z()}],pbe:[{pbe:z()}],pt:[{pt:z()}],pr:[{pr:z()}],pb:[{pb:z()}],pl:[{pl:z()}],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":z()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":z()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],"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",...U()]}],"min-w":[{"min-w":[d,"screen","none",...U()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",r,Zl,za]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,LA,AA]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vh,ke]}],"font-family":[{font:[RA,MA,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,my]}],leading:[{leading:[o,...z()]}],"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:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[We,"from-font","auto",Te,za]}],"text-decoration-color":[{decoration:M()}],"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:z()}],"tab-size":[{tab:[Fr,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:L()}],"bg-repeat":[{bg:F()}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Fr,Te,ke],radial:["",Te,ke],conic:[Fr,Te,ke]},DA,OA]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:V()}],"gradient-via-pos":[{via:V()}],"gradient-to-pos":[{to:V()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:q()}],"rounded-s":[{"rounded-s":q()}],"rounded-e":[{"rounded-e":q()}],"rounded-t":[{"rounded-t":q()}],"rounded-r":[{"rounded-r":q()}],"rounded-b":[{"rounded-b":q()}],"rounded-l":[{"rounded-l":q()}],"rounded-ss":[{"rounded-ss":q()}],"rounded-se":[{"rounded-se":q()}],"rounded-ee":[{"rounded-ee":q()}],"rounded-es":[{"rounded-es":q()}],"rounded-tl":[{"rounded-tl":q()}],"rounded-tr":[{"rounded-tr":q()}],"rounded-br":[{"rounded-br":q()}],"rounded-bl":[{"rounded-bl":q()}],"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:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-bs":[{"border-bs":M()}],"border-color-be":[{"border-be":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[We,Te,ke]}],"outline-w":[{outline:["",We,Zl,za]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",p,nu,tu]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",g,nu,tu]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[We,za]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",b,nu,tu]}],"text-shadow-color":[{"text-shadow":M()}],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":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"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":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"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":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"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":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"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":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"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":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"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":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"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":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"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":A()}],"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":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:F()}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Te,ke]}],filter:[{filter:["","none",Te,ke]}],blur:[{blur:oe()}],brightness:[{brightness:[We,Te,ke]}],contrast:[{contrast:[We,Te,ke]}],"drop-shadow":[{"drop-shadow":["","none",y,nu,tu]}],"drop-shadow-color":[{"drop-shadow":M()}],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":oe()}],"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":z()}],"border-spacing-x":[{"border-spacing-x":z()}],"border-spacing-y":[{"border-spacing-y":z()}],"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",C,Te,ke]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,Te,ke]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:fe()}],"rotate-x":[{"rotate-x":fe()}],"rotate-y":[{"rotate-y":fe()}],"rotate-z":[{"rotate-z":fe()}],scale:[{scale:xe()}],"scale-x":[{"scale-x":xe()}],"scale-y":[{"scale-y":xe()}],"scale-z":[{"scale-z":xe()}],"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:B()}],"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:[Fr,Te,ke]}],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"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":M()}],"scrollbar-track-color":[{"scrollbar-track":M()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mbs":[{"scroll-mbs":z()}],"scroll-mbe":[{"scroll-mbe":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pbs":[{"scroll-pbs":z()}],"scroll-pbe":[{"scroll-pbe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"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",...M()]}],"stroke-w":[{stroke:[We,Zl,za,my]}],stroke:[{stroke:["none",...M()]}],"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=pA(IA);function br(...e){return BA(YT(e))}function UA(e){return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}function Ym(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`:UA(e)}function HA(e){return`STRIX-${e}`}function Ls(e){return new Intl.NumberFormat("en-US").format(e)}function $A(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const qA=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,PA=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,FA={};function xy(e,t){return(FA.jsx?PA:qA).test(e)}const GA=/[ \t\n\f\r]/g;function VA(e){return typeof e=="object"?e.type==="text"?by(e.value):!1:by(e)}function by(e){return e.replace(GA,"")===""}class jo{constructor(t,r,a){this.normal=r,this.property=t,a&&(this.space=a)}}jo.prototype.normal={};jo.prototype.property={};jo.prototype.space=void 0;function xw(e,t){const r={},a={};for(const s of e)Object.assign(r,s.property),Object.assign(a,s.normal);return new jo(r,a,t)}function Xm(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 YA=0;const Ge=Ja(),sn=Ja(),Km=Ja(),ve=Ja(),Ct=Ja(),qa=Ja(),rr=Ja();function Ja(){return 2**++YA}const Zm=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ge,booleanish:sn,commaOrSpaceSeparated:rr,commaSeparated:qa,number:ve,overloadedBoolean:Km,spaceSeparated:Ct},Symbol.toStringTag,{value:"Module"})),_h=Object.keys(Zm);class Rp extends Vn{constructor(t,r,a,s){let o=-1;if(super(t,r),yy(this,"space",s),typeof a=="number")for(;++o<_h.length;){const c=_h[o];yy(this,_h[o],(a&Zm[c])===Zm[c])}}}Rp.prototype.defined=!0;function yy(e,t,r){r&&(e[t]=r)}function nl(e){const t={},r={};for(const[a,s]of Object.entries(e.properties)){const o=new Rp(a,e.transform(e.attributes||{},a),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(o.mustUseProperty=!0),t[a]=o,r[Xm(a)]=a,r[Xm(o.attribute)]=a}return new jo(t,r,e.space)}const bw=nl({properties:{ariaActiveDescendant:null,ariaAtomic:sn,ariaAutoComplete:null,ariaBusy:sn,ariaChecked:sn,ariaColCount:ve,ariaColIndex:ve,ariaColSpan:ve,ariaControls:Ct,ariaCurrent:null,ariaDescribedBy:Ct,ariaDetails:null,ariaDisabled:sn,ariaDropEffect:Ct,ariaErrorMessage:null,ariaExpanded:sn,ariaFlowTo:Ct,ariaGrabbed:sn,ariaHasPopup:null,ariaHidden:sn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ct,ariaLevel:ve,ariaLive:null,ariaModal:sn,ariaMultiLine:sn,ariaMultiSelectable:sn,ariaOrientation:null,ariaOwns:Ct,ariaPlaceholder:null,ariaPosInSet:ve,ariaPressed:sn,ariaReadOnly:sn,ariaRelevant:null,ariaRequired:sn,ariaRoleDescription:Ct,ariaRowCount:ve,ariaRowIndex:ve,ariaRowSpan:ve,ariaSelected:sn,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 yw(e,t){return t in e?e[t]:t}function vw(e,t){return yw(e,t.toLowerCase())}const XA=nl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:qa,acceptCharset:Ct,accessKey:Ct,action:null,allow:null,allowFullScreen:Ge,allowPaymentRequest:Ge,allowUserMedia:Ge,alpha:Ge,alt:null,as:null,async:Ge,autoCapitalize:null,autoComplete:Ct,autoFocus:Ge,autoPlay:Ge,blocking:Ct,capture:null,charSet:null,checked:Ge,cite:null,className:Ct,closedBy:null,colorSpace:null,cols:ve,colSpan:ve,command:null,commandFor:null,content:null,contentEditable:sn,controls:Ge,controlsList:Ct,coords:ve|qa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ge,defer:Ge,dir:null,dirName:null,disabled:Ge,download:Km,draggable:sn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ge,formTarget:null,headers:Ct,height:ve,hidden:Km,high:ve,href:null,hrefLang:null,htmlFor:Ct,httpEquiv:Ct,id:null,imageSizes:null,imageSrcSet:null,inert:Ge,inputMode:null,integrity:null,is:null,isMap:Ge,itemId:null,itemProp:Ct,itemRef:Ct,itemScope:Ge,itemType:Ct,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:Ct,placeholder:null,playsInline:Ge,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ge,referrerPolicy:null,rel:Ct,required:Ge,reversed:Ge,rows:ve,rowSpan:ve,sandbox:Ct,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:sn,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:sn,width:ve,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ct,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:sn,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:qa,part:Ct,prefix:null,property:null,results:ve,security:null,unselectable:null},space:"html",transform:vw}),KA=nl({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:rr,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:Ct,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:qa,g2:qa,glyphName:qa,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:rr,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:Ct,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ve,pointsAtY:ve,pointsAtZ:ve,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:rr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:rr,rev:rr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:rr,requiredFeatures:rr,requiredFonts:rr,requiredFormats:rr,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:rr,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:rr,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:rr,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:yw}),_w=nl({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()}}),ww=nl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:vw}),Ew=nl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ZA={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"},QA=/[A-Z]/g,vy=/-[a-z]/g,WA=/^data[-\w.:]+$/i;function JA(e,t){const r=Xm(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"&&WA.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(vy,tM);a="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!vy.test(o)){let c=o.replace(QA,eM);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}s=Rp}return new s(a,t)}function eM(e){return"-"+e.toLowerCase()}function tM(e){return e.charAt(1).toUpperCase()}const nM=xw([bw,XA,_w,ww,Ew],"html"),jp=xw([bw,KA,_w,ww,Ew],"svg");function rM(e){return e.join(" ").trim()}var zs={},wh,_y;function iM(){if(_y)return wh;_y=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,h=`
+`,f="/",p="*",g="",b="comment",y="declaration";function _(S,w){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];w=w||{};var C=1,E=1;function A(k){var $=k.match(t);$&&(C+=$.length);var O=k.lastIndexOf(h);E=~O?k.length-O:E+k.length}function B(){var k={line:C,column:E};return function($){return $.position=new R(k),Y(),$}}function R(k){this.start=k,this.end={line:C,column:E},this.source=w.source}R.prototype.content=S;function H(k){var $=new Error(w.source+":"+C+":"+E+": "+k);if($.reason=k,$.filename=w.source,$.line=C,$.column=E,$.source=S,!w.silent)throw $}function z(k){var $=k.exec(S);if($){var O=$[0];return A(O),S=S.slice(O.length),$}}function Y(){z(r)}function j(k){var $;for(k=k||[];$=I();)$!==!1&&k.push($);return k}function I(){var k=B();if(!(f!=S.charAt(0)||p!=S.charAt(1))){for(var $=2;g!=S.charAt($)&&(p!=S.charAt($)||f!=S.charAt($+1));)++$;if($+=2,g===S.charAt($-1))return H("End of comment missing");var O=S.slice(2,$-2);return E+=2,A(O),S=S.slice($),E+=2,k({type:b,comment:O})}}function Z(){var k=B(),$=z(a);if($){if(I(),!z(s))return H("property missing ':'");var O=z(o),U=k({type:y,property:N($[0].replace(e,g)),value:O?N(O[0].replace(e,g)):g});return z(c),U}}function P(){var k=[];j(k);for(var $;$=Z();)$!==!1&&(k.push($),j(k));return k}return Y(),P()}function N(S){return S?S.replace(d,g):g}return wh=_,wh}var wy;function aM(){if(wy)return zs;wy=1;var e=zs&&zs.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(zs,"__esModule",{value:!0}),zs.default=r;const t=e(iM());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(h=>{if(h.type!=="declaration")return;const{property:f,value:p}=h;d?s(f,p,h):p&&(o=o||{},o[f]=p)}),o}return zs}var Ql={},Ey;function sM(){if(Ey)return Ql;Ey=1,Object.defineProperty(Ql,"__esModule",{value:!0}),Ql.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,o=function(f){return!f||r.test(f)||e.test(f)},c=function(f,p){return p.toUpperCase()},d=function(f,p){return"".concat(p,"-")},h=function(f,p){return p===void 0&&(p={}),o(f)?f:(f=f.toLowerCase(),p.reactCompat?f=f.replace(s,d):f=f.replace(a,d),f.replace(t,c))};return Ql.camelCase=h,Ql}var Wl,Ny;function lM(){if(Ny)return Wl;Ny=1;var e=Wl&&Wl.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(aM()),r=sM();function a(s,o){var c={};return!s||typeof s!="string"||(0,t.default)(s,function(d,h){d&&h&&(c[(0,r.camelCase)(d,o)]=h)}),c}return a.default=a,Wl=a,Wl}var oM=lM();const cM=Mo(oM),Nw=Sw("end"),Dp=Sw("start");function Sw(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 uM(e){const t=Dp(e),r=Nw(e);if(t&&r)return{start:t,end:r}}function oo(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Sy(e.position):"start"in e||"end"in e?Sy(e):"line"in e||"column"in e?Qm(e):""}function Qm(e){return ky(e&&e.line)+":"+ky(e&&e.column)}function Sy(e){return Qm(e&&e.start)+"-"+Qm(e&&e.end)}function ky(e){return e&&typeof e=="number"?e:1}class Mn 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 h=a.indexOf(":");h===-1?o.ruleId=a:(o.source=a.slice(0,h),o.ruleId=a.slice(h+1))}if(!o.place&&o.ancestors&&o.ancestors){const h=o.ancestors[o.ancestors.length-1];h&&(o.place=h.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=oo(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}}Mn.prototype.file="";Mn.prototype.name="";Mn.prototype.reason="";Mn.prototype.message="";Mn.prototype.stack="";Mn.prototype.column=void 0;Mn.prototype.line=void 0;Mn.prototype.ancestors=void 0;Mn.prototype.cause=void 0;Mn.prototype.fatal=void 0;Mn.prototype.place=void 0;Mn.prototype.ruleId=void 0;Mn.prototype.source=void 0;const Lp={}.hasOwnProperty,dM=new Map,fM=/[A-Z]/g,hM=new Set(["table","tbody","thead","tfoot","tr"]),mM=new Set(["td","th"]),kw="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function pM(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=EM(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=wM(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"?jp:nM,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 gM(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return xM(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return yM(e,t,r);if(t.type==="mdxjsEsm")return bM(e,t);if(t.type==="root")return vM(e,t,r);if(t.type==="text")return _M(e,t)}function gM(e,t,r){const a=e.schema;let s=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(s=jp,e.schema=s),e.ancestors.push(t);const o=Aw(e,t.tagName,!1),c=NM(e,t);let d=Ip(e,t);return hM.has(t.tagName)&&(d=d.filter(function(h){return typeof h=="string"?!VA(h):!0})),Tw(e,c,o,t),zp(c,d),e.ancestors.pop(),e.schema=a,e.create(t,o,c,r)}function xM(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)}xo(e,t.position)}function bM(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);xo(e,t.position)}function yM(e,t,r){const a=e.schema;let s=a;t.name==="svg"&&a.space==="html"&&(s=jp,e.schema=s),e.ancestors.push(t);const o=t.name===null?e.Fragment:Aw(e,t.name,!0),c=SM(e,t),d=Ip(e,t);return Tw(e,c,o,t),zp(c,d),e.ancestors.pop(),e.schema=a,e.create(t,o,c,r)}function vM(e,t,r){const a={};return zp(a,Ip(e,t)),e.create(t,e.Fragment,a,r)}function _M(e,t){return t.value}function Tw(e,t,r,a){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=a)}function zp(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function wM(e,t,r){return a;function a(s,o,c,d){const f=Array.isArray(c.children)?r:t;return d?f(o,c,d):f(o,c)}}function EM(e,t){return r;function r(a,s,o,c){const d=Array.isArray(o.children),h=Dp(a);return t(s,o,c,d,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function NM(e,t){const r={};let a,s;for(s in t.properties)if(s!=="children"&&Lp.call(t.properties,s)){const o=kM(e,s,t.properties[s]);if(o){const[c,d]=o;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&mM.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 SM(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 xo(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 xo(e,t.position);else o=a.value===null?!0:a.value;r[s]=o}return r}function Ip(e,t){const r=[];let a=-1;const s=e.passKeys?new Map:dM;for(;++a<t.children.length;){const o=t.children[a];let c;if(e.passKeys){const h=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(h){const f=s.get(h)||0;c=h+"-"+f,s.set(h,f+1)}}const d=Cw(e,o,c);d!==void 0&&r.push(d)}return r}function kM(e,t,r){const a=JA(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=a.commaSeparated?$A(r):rM(r)),a.property==="style"){let s=typeof r=="object"?r:CM(e,String(r));return e.stylePropertyNameCase==="css"&&(s=TM(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&a.space?ZA[a.property]||a.property:a.attribute,r]}}function CM(e,t){try{return cM(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const a=r,s=new Mn("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=kw+"#cannot-parse-style-attribute",s}}function Aw(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=xy(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=xy(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(a.type==="Literal"){const s=a.value;return Lp.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(a);xo(e)}function xo(e,t){const r=new Mn("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=kw+"#cannot-handle-mdx-estrees-without-createevaluater",r}function TM(e){const t={};let r;for(r in e)Lp.call(e,r)&&(t[AM(r)]=e[r]);return t}function AM(e){let t=e.replace(fM,MM);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function MM(e){return"-"+e.toLowerCase()}const Eh={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"]},OM={};function Bp(e,t){const r=OM,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Mw(e,a,s)}function Mw(e,t,r){if(RM(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 Cy(e.children,t,r)}return Array.isArray(e)?Cy(e,t,r):""}function Cy(e,t,r){const a=[];let s=-1;for(;++s<e.length;)a[s]=Mw(e[s],t,r);return a.join("")}function RM(e){return!!(e&&typeof e=="object")}const Ty=document.createElement("i");function Up(e){const t="&"+e+";";Ty.innerHTML=t;const r=Ty.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function ar(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 xr(e,t){return e.length>0?(ar(e,e.length,0,t),e):t}const Ay={}.hasOwnProperty;function Ow(e){const t={};let r=-1;for(;++r<e.length;)jM(t,e[r]);return t}function jM(e,t){let r;for(r in t){const s=(Ay.call(e,r)?e[r]:void 0)||(e[r]={}),o=t[r];let c;if(o)for(c in o){Ay.call(s,c)||(s[c]=[]);const d=o[c];DM(s[c],Array.isArray(d)?d:d?[d]:[])}}}function DM(e,t){let r=-1;const a=[];for(;++r<t.length;)(t[r].add==="after"?e:a).push(t[r]);ar(e,0,0,a)}function Rw(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 Ln=pa(/[A-Za-z]/),An=pa(/[\dA-Za-z]/),LM=pa(/[#-'*+\--9=?A-Z^-~]/);function Cu(e){return e!==null&&(e<32||e===127)}const Wm=pa(/\d/),zM=pa(/[\dA-Fa-f]/),IM=pa(/[!-/:-@[-`{-~]/);function Be(e){return e!==null&&e<-2}function Tt(e){return e!==null&&(e<0||e===32)}function tt(e){return e===-2||e===-1||e===32}const Ku=pa(new RegExp("\\p{P}|\\p{S}","u")),Va=pa(/\s/);function pa(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function rl(e){const t=[];let r=-1,a=0,s=0;for(;++r<e.length;){const o=e.charCodeAt(r);let c="";if(o===37&&An(e.charCodeAt(r+1))&&An(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(h){return tt(h)?(e.enter(r),d(h)):t(h)}function d(h){return tt(h)&&o++<s?(e.consume(h),d):(e.exit(r),t(h))}}const BM={tokenize:UM};function UM(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 h=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=h),r=h,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 HM={tokenize:$M},My={tokenize:qM};function $M(e){const t=this,r=[];let a=0,s,o,c;return d;function d(E){if(a<r.length){const A=r[a];return t.containerState=A[1],e.attempt(A[0].continuation,h,f)(E)}return f(E)}function h(E){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&C();const A=t.events.length;let B=A,R;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){R=t.events[B][1].end;break}w(a);let H=A;for(;H<t.events.length;)t.events[H][1].end={...R},H++;return ar(t.events,B+1,0,t.events.slice(A)),t.events.length=H,f(E)}return d(E)}function f(E){if(a===r.length){if(!s)return b(E);if(s.currentConstruct&&s.currentConstruct.concrete)return _(E);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(My,p,g)(E)}function p(E){return s&&C(),w(a),b(E)}function g(E){return t.parser.lazy[t.now().line]=a!==r.length,c=t.now().offset,_(E)}function b(E){return t.containerState={},e.attempt(My,y,_)(E)}function y(E){return a++,r.push([t.currentConstruct,t.containerState]),b(E)}function _(E){if(E===null){s&&C(),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,A){const B=t.sliceStream(E);if(A&&B.push(null),E.previous=o,o&&(o.next=E),o=E,s.defineSkip(E.start),s.write(B),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 H=t.events.length;let z=H,Y,j;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){if(Y){j=t.events[z][1].end;break}Y=!0}for(w(a),R=H;R<t.events.length;)t.events[R][1].end={...j},R++;ar(t.events,z+1,0,t.events.slice(H)),t.events.length=R}}function w(E){let A=r.length;for(;A-- >E;){const B=r[A];t.containerState=B[1],B[0].exit.call(t,e)}r.length=E}function C(){s.write([null]),o=void 0,s=void 0,t.containerState._closeFlow=void 0}}function qM(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 Xs(e){if(e===null||Tt(e)||Va(e))return 1;if(Ku(e))return 2}function Zu(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 Jm={name:"attention",resolveAll:PM,tokenize:FM};function PM(e,t){let r=-1,a,s,o,c,d,h,f,p;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;h=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 g={...e[a][1].end},b={...e[r][1].start};Oy(g,-h),Oy(b,h),c={type:h>1?"strongSequence":"emphasisSequence",start:g,end:{...e[a][1].end}},d={type:h>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:b},o={type:h>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[r][1].start}},s={type:h>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},e[a][1].end={...c.start},e[r][1].start={...d.end},f=[],e[a][1].end.offset-e[a][1].start.offset&&(f=xr(f,[["enter",e[a][1],t],["exit",e[a][1],t]])),f=xr(f,[["enter",s,t],["enter",c,t],["exit",c,t],["enter",o,t]]),f=xr(f,Zu(t.parser.constructs.insideSpan.null,e.slice(a+1,r),t)),f=xr(f,[["exit",o,t],["enter",d,t],["exit",d,t],["exit",s,t]]),e[r][1].end.offset-e[r][1].start.offset?(p=2,f=xr(f,[["enter",e[r][1],t],["exit",e[r][1],t]])):p=0,ar(e,a-1,r-a+3,f),r=a+f.length-p-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function FM(e,t){const r=this.parser.constructs.attentionMarkers.null,a=this.previous,s=Xs(a);let o;return c;function c(h){return o=h,e.enter("attentionSequence"),d(h)}function d(h){if(h===o)return e.consume(h),d;const f=e.exit("attentionSequence"),p=Xs(h),g=!p||p===2&&s||r.includes(h),b=!s||s===2&&p||r.includes(a);return f._open=!!(o===42?g:g&&(s||!b)),f._close=!!(o===42?b:b&&(p||!g)),t(h)}}function Oy(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const GM={name:"autolink",tokenize:VM};function VM(e,t,r){let a=0;return s;function s(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(y){return Ln(y)?(e.consume(y),c):y===64?r(y):f(y)}function c(y){return y===43||y===45||y===46||An(y)?(a=1,d(y)):f(y)}function d(y){return y===58?(e.consume(y),a=0,h):(y===43||y===45||y===46||An(y))&&a++<32?(e.consume(y),d):(a=0,f(y))}function h(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):y===null||y===32||y===60||Cu(y)?r(y):(e.consume(y),h)}function f(y){return y===64?(e.consume(y),p):LM(y)?(e.consume(y),f):r(y)}function p(y){return An(y)?g(y):r(y)}function g(y){return y===46?(e.consume(y),a=0,p):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):b(y)}function b(y){if((y===45||An(y))&&a++<63){const _=y===45?b:g;return e.consume(y),_}return r(y)}}const Do={partial:!0,tokenize:YM};function YM(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 jw={continuation:{tokenize:KM},exit:ZM,name:"blockQuote",tokenize:XM};function XM(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 KM(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(jw,t,r)(c)}}function ZM(e){e.exit("blockQuote")}const Dw={name:"characterEscape",tokenize:QM};function QM(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 IM(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(o)}}const Lw={name:"characterReference",tokenize:WM};function WM(e,t,r){const a=this;let s=0,o,c;return d;function d(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),h}function h(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),o=31,c=An,p(g))}function f(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,c=zM,p):(e.enter("characterReferenceValue"),o=7,c=Wm,p(g))}function p(g){if(g===59&&s){const b=e.exit("characterReferenceValue");return c===An&&!Up(a.sliceSerialize(b))?r(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return c(g)&&s++<o?(e.consume(g),p):r(g)}}const Ry={partial:!0,tokenize:e5},jy={concrete:!0,name:"codeFenced",tokenize:JM};function JM(e,t,r){const a=this,s={partial:!0,tokenize:B};let o=0,c=0,d;return h;function h(R){return f(R)}function f(R){const H=a.events[a.events.length-1];return o=H&&H[1].type==="linePrefix"?H[2].sliceSerialize(H[1],!0).length:0,d=R,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(R)}function p(R){return R===d?(c++,e.consume(R),p):c<3?r(R):(e.exit("codeFencedFenceSequence"),tt(R)?ot(e,g,"whitespace")(R):g(R))}function g(R){return R===null||Be(R)?(e.exit("codeFencedFence"),a.interrupt?t(R):e.check(Ry,N,A)(R)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(R))}function b(R){return R===null||Be(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(R)):tt(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ot(e,y,"whitespace")(R)):R===96&&R===d?r(R):(e.consume(R),b)}function y(R){return R===null||Be(R)?g(R):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),_(R))}function _(R){return R===null||Be(R)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(R)):R===96&&R===d?r(R):(e.consume(R),_)}function N(R){return e.attempt(s,A,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,C,"linePrefix",o+1)(R):C(R)}function C(R){return R===null||Be(R)?e.check(Ry,N,A)(R):(e.enter("codeFlowValue"),E(R))}function E(R){return R===null||Be(R)?(e.exit("codeFlowValue"),C(R)):(e.consume(R),E)}function A(R){return e.exit("codeFenced"),t(R)}function B(R,H,z){let Y=0;return j;function j($){return R.enter("lineEnding"),R.consume($),R.exit("lineEnding"),I}function I($){return R.enter("codeFencedFence"),tt($)?ot(R,Z,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):Z($)}function Z($){return $===d?(R.enter("codeFencedFenceSequence"),P($)):z($)}function P($){return $===d?(Y++,R.consume($),P):Y>=c?(R.exit("codeFencedFenceSequence"),tt($)?ot(R,k,"whitespace")($):k($)):z($)}function k($){return $===null||Be($)?(R.exit("codeFencedFence"),H($)):z($)}}}function e5(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 Nh={name:"codeIndented",tokenize:n5},t5={partial:!0,tokenize:r5};function n5(e,t,r){const a=this;return s;function s(f){return e.enter("codeIndented"),ot(e,o,"linePrefix",5)(f)}function o(f){const p=a.events[a.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?c(f):r(f)}function c(f){return f===null?h(f):Be(f)?e.attempt(t5,c,h)(f):(e.enter("codeFlowValue"),d(f))}function d(f){return f===null||Be(f)?(e.exit("codeFlowValue"),c(f)):(e.consume(f),d)}function h(f){return e.exit("codeIndented"),t(f)}}function r5(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 i5={name:"codeText",previous:s5,resolve:a5,tokenize:l5};function a5(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 s5(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function l5(e,t,r){let a=0,s,o;return c;function c(g){return e.enter("codeText"),e.enter("codeTextSequence"),d(g)}function d(g){return g===96?(e.consume(g),a++,d):(e.exit("codeTextSequence"),h(g))}function h(g){return g===null?r(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),h):g===96?(o=e.enter("codeTextSequence"),s=0,p(g)):Be(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),h):(e.enter("codeTextData"),f(g))}function f(g){return g===null||g===32||g===96||Be(g)?(e.exit("codeTextData"),h(g)):(e.consume(g),f)}function p(g){return g===96?(e.consume(g),s++,p):s===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(o.type="codeTextData",f(g))}}class o5{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&&Jl(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),Jl(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Jl(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);Jl(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Jl(this.left,r.reverse())}}}function Jl(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 zw(e){const t={};let r=-1,a,s,o,c,d,h,f;const p=new o5(e);for(;++r<p.length;){for(;r in t;)r=t[r];if(a=p.get(r),r&&a[1].type==="chunkFlow"&&p.get(r-1)[1].type==="listItemPrefix"&&(h=a[1]._tokenizer.events,o=0,o<h.length&&h[o][1].type==="lineEndingBlank"&&(o+=2),o<h.length&&h[o][1].type==="content"))for(;++o<h.length&&h[o][1].type!=="content";)h[o][1].type==="chunkText"&&(h[o][1]._isInFirstContentOfListItem=!0,o++);if(a[0]==="enter")a[1].contentType&&(Object.assign(t,c5(p,r)),r=t[r],f=!0);else if(a[1]._container){for(o=r,s=void 0;o--;)if(c=p.get(o),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(p.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={...p.get(s)[1].start},d=p.slice(s,r),d.unshift(a),p.splice(s,r-s+1,d))}}return ar(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!f}function c5(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,h=[],f={};let p,g,b=-1,y=r,_=0,N=0;const S=[N];for(;y;){for(;e.get(++s)[1]!==y;);o.push(s),y._tokenizer||(p=a.sliceStream(y),y.next||p.push(null),g&&c.defineSkip(y.start),y._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(p),y._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=y,y=y.next}for(y=r;++b<d.length;)d[b][0]==="exit"&&d[b-1][0]==="enter"&&d[b][1].type===d[b-1][1].type&&d[b][1].start.line!==d[b][1].end.line&&(N=b+1,S.push(N),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(c.events=[],y?(y._tokenizer=void 0,y.previous=void 0):S.pop(),b=S.length;b--;){const w=d.slice(S[b],S[b+1]),C=o.pop();h.push([C,C+w.length-1]),e.splice(C,2,w)}for(h.reverse(),b=-1;++b<h.length;)f[_+h[b][0]]=_+h[b][1],_+=h[b][1]-h[b][0]-1;return f}const u5={resolve:f5,tokenize:h5},d5={partial:!0,tokenize:m5};function f5(e){return zw(e),e}function h5(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(d5,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 m5(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 Iw(e,t,r,a,s,o,c,d,h){const f=h||Number.POSITIVE_INFINITY;let p=0;return g;function g(w){return w===60?(e.enter(a),e.enter(s),e.enter(o),e.consume(w),e.exit(o),b):w===null||w===32||w===41||Cu(w)?r(w):(e.enter(a),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),N(w))}function b(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"}),y(w))}function y(w){return w===62?(e.exit("chunkString"),e.exit(d),b(w)):w===null||w===60||Be(w)?r(w):(e.consume(w),w===92?_:y)}function _(w){return w===60||w===62||w===92?(e.consume(w),y):y(w)}function N(w){return!p&&(w===null||w===41||Tt(w))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(a),t(w)):p<f&&w===40?(e.consume(w),p++,N):w===41?(e.consume(w),p--,N):w===null||w===32||w===40||Cu(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 Bw(e,t,r,a,s,o){const c=this;let d=0,h;return f;function f(y){return e.enter(a),e.enter(s),e.consume(y),e.exit(s),e.enter(o),p}function p(y){return d>999||y===null||y===91||y===93&&!h||y===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?r(y):y===93?(e.exit(o),e.enter(s),e.consume(y),e.exit(s),e.exit(a),t):Be(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),g(y))}function g(y){return y===null||y===91||y===93||Be(y)||d++>999?(e.exit("chunkString"),p(y)):(e.consume(y),h||(h=!tt(y)),y===92?b:g)}function b(y){return y===91||y===92||y===93?(e.consume(y),d++,g):g(y)}}function Uw(e,t,r,a,s,o){let c;return d;function d(b){return b===34||b===39||b===40?(e.enter(a),e.enter(s),e.consume(b),e.exit(s),c=b===40?41:b,h):r(b)}function h(b){return b===c?(e.enter(s),e.consume(b),e.exit(s),e.exit(a),t):(e.enter(o),f(b))}function f(b){return b===c?(e.exit(o),h(c)):b===null?r(b):Be(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),ot(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===c||b===null||Be(b)?(e.exit("chunkString"),f(b)):(e.consume(b),b===92?g:p)}function g(b){return b===c||b===92?(e.consume(b),p):p(b)}}function co(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 p5={name:"definition",tokenize:x5},g5={partial:!0,tokenize:b5};function x5(e,t,r){const a=this;let s;return o;function o(y){return e.enter("definition"),c(y)}function c(y){return Bw.call(a,e,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function d(y){return s=Dr(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),h):r(y)}function h(y){return Tt(y)?co(e,f)(y):f(y)}function f(y){return Iw(e,p,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function p(y){return e.attempt(g5,g,g)(y)}function g(y){return tt(y)?ot(e,b,"whitespace")(y):b(y)}function b(y){return y===null||Be(y)?(e.exit("definition"),a.parser.defined.push(s),t(y)):r(y)}}function b5(e,t,r){return a;function a(d){return Tt(d)?co(e,s)(d):r(d)}function s(d){return Uw(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 y5={name:"hardBreakEscape",tokenize:v5};function v5(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 _5={name:"headingAtx",resolve:w5,tokenize:E5};function w5(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"},ar(e,a,r-a+1,[["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t]])),e}function E5(e,t,r){let a=0;return s;function s(p){return e.enter("atxHeading"),o(p)}function o(p){return e.enter("atxHeadingSequence"),c(p)}function c(p){return p===35&&a++<6?(e.consume(p),c):p===null||Tt(p)?(e.exit("atxHeadingSequence"),d(p)):r(p)}function d(p){return p===35?(e.enter("atxHeadingSequence"),h(p)):p===null||Be(p)?(e.exit("atxHeading"),t(p)):tt(p)?ot(e,d,"whitespace")(p):(e.enter("atxHeadingText"),f(p))}function h(p){return p===35?(e.consume(p),h):(e.exit("atxHeadingSequence"),d(p))}function f(p){return p===null||p===35||Tt(p)?(e.exit("atxHeadingText"),d(p)):(e.consume(p),f)}}const N5=["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"],Dy=["pre","script","style","textarea"],S5={concrete:!0,name:"htmlFlow",resolveTo:T5,tokenize:A5},k5={partial:!0,tokenize:O5},C5={partial:!0,tokenize:M5};function T5(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 A5(e,t,r){const a=this;let s,o,c,d,h;return f;function f(D){return p(D)}function p(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),g}function g(D){return D===33?(e.consume(D),b):D===47?(e.consume(D),o=!0,N):D===63?(e.consume(D),s=3,a.interrupt?t:M):Ln(D)?(e.consume(D),c=String.fromCharCode(D),S):r(D)}function b(D){return D===45?(e.consume(D),s=2,y):D===91?(e.consume(D),s=5,d=0,_):Ln(D)?(e.consume(D),s=4,a.interrupt?t:M):r(D)}function y(D){return D===45?(e.consume(D),a.interrupt?t:M):r(D)}function _(D){const V="CDATA[";return D===V.charCodeAt(d++)?(e.consume(D),d===V.length?a.interrupt?t:Z:_):r(D)}function N(D){return Ln(D)?(e.consume(D),c=String.fromCharCode(D),S):r(D)}function S(D){if(D===null||D===47||D===62||Tt(D)){const V=D===47,q=c.toLowerCase();return!V&&!o&&Dy.includes(q)?(s=1,a.interrupt?t(D):Z(D)):N5.includes(c.toLowerCase())?(s=6,V?(e.consume(D),w):a.interrupt?t(D):Z(D)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(D):o?C(D):E(D))}return D===45||An(D)?(e.consume(D),c+=String.fromCharCode(D),S):r(D)}function w(D){return D===62?(e.consume(D),a.interrupt?t:Z):r(D)}function C(D){return tt(D)?(e.consume(D),C):j(D)}function E(D){return D===47?(e.consume(D),j):D===58||D===95||Ln(D)?(e.consume(D),A):tt(D)?(e.consume(D),E):j(D)}function A(D){return D===45||D===46||D===58||D===95||An(D)?(e.consume(D),A):B(D)}function B(D){return D===61?(e.consume(D),R):tt(D)?(e.consume(D),B):E(D)}function R(D){return D===null||D===60||D===61||D===62||D===96?r(D):D===34||D===39?(e.consume(D),h=D,H):tt(D)?(e.consume(D),R):z(D)}function H(D){return D===h?(e.consume(D),h=null,Y):D===null||Be(D)?r(D):(e.consume(D),H)}function z(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||Tt(D)?B(D):(e.consume(D),z)}function Y(D){return D===47||D===62||tt(D)?E(D):r(D)}function j(D){return D===62?(e.consume(D),I):r(D)}function I(D){return D===null||Be(D)?Z(D):tt(D)?(e.consume(D),I):r(D)}function Z(D){return D===45&&s===2?(e.consume(D),O):D===60&&s===1?(e.consume(D),U):D===62&&s===4?(e.consume(D),L):D===63&&s===3?(e.consume(D),M):D===93&&s===5?(e.consume(D),X):Be(D)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(k5,F,P)(D)):D===null||Be(D)?(e.exit("htmlFlowData"),P(D)):(e.consume(D),Z)}function P(D){return e.check(C5,k,F)(D)}function k(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),$}function $(D){return D===null||Be(D)?P(D):(e.enter("htmlFlowData"),Z(D))}function O(D){return D===45?(e.consume(D),M):Z(D)}function U(D){return D===47?(e.consume(D),c="",K):Z(D)}function K(D){if(D===62){const V=c.toLowerCase();return Dy.includes(V)?(e.consume(D),L):Z(D)}return Ln(D)&&c.length<8?(e.consume(D),c+=String.fromCharCode(D),K):Z(D)}function X(D){return D===93?(e.consume(D),M):Z(D)}function M(D){return D===62?(e.consume(D),L):D===45&&s===2?(e.consume(D),M):Z(D)}function L(D){return D===null||Be(D)?(e.exit("htmlFlowData"),F(D)):(e.consume(D),L)}function F(D){return e.exit("htmlFlow"),t(D)}}function M5(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 O5(e,t,r){return a;function a(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(Do,t,r)}}const R5={name:"htmlText",tokenize:j5};function j5(e,t,r){const a=this;let s,o,c;return d;function d(M){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(M),h}function h(M){return M===33?(e.consume(M),f):M===47?(e.consume(M),B):M===63?(e.consume(M),E):Ln(M)?(e.consume(M),z):r(M)}function f(M){return M===45?(e.consume(M),p):M===91?(e.consume(M),o=0,_):Ln(M)?(e.consume(M),C):r(M)}function p(M){return M===45?(e.consume(M),y):r(M)}function g(M){return M===null?r(M):M===45?(e.consume(M),b):Be(M)?(c=g,U(M)):(e.consume(M),g)}function b(M){return M===45?(e.consume(M),y):g(M)}function y(M){return M===62?O(M):M===45?b(M):g(M)}function _(M){const L="CDATA[";return M===L.charCodeAt(o++)?(e.consume(M),o===L.length?N:_):r(M)}function N(M){return M===null?r(M):M===93?(e.consume(M),S):Be(M)?(c=N,U(M)):(e.consume(M),N)}function S(M){return M===93?(e.consume(M),w):N(M)}function w(M){return M===62?O(M):M===93?(e.consume(M),w):N(M)}function C(M){return M===null||M===62?O(M):Be(M)?(c=C,U(M)):(e.consume(M),C)}function E(M){return M===null?r(M):M===63?(e.consume(M),A):Be(M)?(c=E,U(M)):(e.consume(M),E)}function A(M){return M===62?O(M):E(M)}function B(M){return Ln(M)?(e.consume(M),R):r(M)}function R(M){return M===45||An(M)?(e.consume(M),R):H(M)}function H(M){return Be(M)?(c=H,U(M)):tt(M)?(e.consume(M),H):O(M)}function z(M){return M===45||An(M)?(e.consume(M),z):M===47||M===62||Tt(M)?Y(M):r(M)}function Y(M){return M===47?(e.consume(M),O):M===58||M===95||Ln(M)?(e.consume(M),j):Be(M)?(c=Y,U(M)):tt(M)?(e.consume(M),Y):O(M)}function j(M){return M===45||M===46||M===58||M===95||An(M)?(e.consume(M),j):I(M)}function I(M){return M===61?(e.consume(M),Z):Be(M)?(c=I,U(M)):tt(M)?(e.consume(M),I):Y(M)}function Z(M){return M===null||M===60||M===61||M===62||M===96?r(M):M===34||M===39?(e.consume(M),s=M,P):Be(M)?(c=Z,U(M)):tt(M)?(e.consume(M),Z):(e.consume(M),k)}function P(M){return M===s?(e.consume(M),s=void 0,$):M===null?r(M):Be(M)?(c=P,U(M)):(e.consume(M),P)}function k(M){return M===null||M===34||M===39||M===60||M===61||M===96?r(M):M===47||M===62||Tt(M)?Y(M):(e.consume(M),k)}function $(M){return M===47||M===62||Tt(M)?Y(M):r(M)}function O(M){return M===62?(e.consume(M),e.exit("htmlTextData"),e.exit("htmlText"),t):r(M)}function U(M){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),K}function K(M){return tt(M)?ot(e,X,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):X(M)}function X(M){return e.enter("htmlTextData"),c(M)}}const Hp={name:"labelEnd",resolveAll:I5,resolveTo:B5,tokenize:U5},D5={tokenize:H5},L5={tokenize:$5},z5={tokenize:q5};function I5(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&&ar(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 h={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},f={type:"label",start:{...e[o][1].start},end:{...e[c][1].end}},p={type:"labelText",start:{...e[o+a+2][1].end},end:{...e[c-2][1].start}};return d=[["enter",h,t],["enter",f,t]],d=xr(d,e.slice(o+1,o+a+3)),d=xr(d,[["enter",p,t]]),d=xr(d,Zu(t.parser.constructs.insideSpan.null,e.slice(o+a+4,c-3),t)),d=xr(d,[["exit",p,t],e[c-2],e[c-1],["exit",f,t]]),d=xr(d,e.slice(c+1)),d=xr(d,[["exit",h,t]]),ar(e,o,e.length,d),e}function U5(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(b){return o?o._inactive?g(b):(c=a.parser.defined.includes(Dr(a.sliceSerialize({start:o.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),h):r(b)}function h(b){return b===40?e.attempt(D5,p,c?p:g)(b):b===91?e.attempt(L5,p,c?f:g)(b):c?p(b):g(b)}function f(b){return e.attempt(z5,p,g)(b)}function p(b){return t(b)}function g(b){return o._balanced=!0,r(b)}}function H5(e,t,r){return a;function a(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),s}function s(g){return Tt(g)?co(e,o)(g):o(g)}function o(g){return g===41?p(g):Iw(e,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return Tt(g)?co(e,h)(g):p(g)}function d(g){return r(g)}function h(g){return g===34||g===39||g===40?Uw(e,f,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):p(g)}function f(g){return Tt(g)?co(e,p)(g):p(g)}function p(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),t):r(g)}}function $5(e,t,r){const a=this;return s;function s(d){return Bw.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 q5(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 P5={name:"labelStartImage",resolveAll:Hp.resolveAll,tokenize:F5};function F5(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 G5={name:"labelStartLink",resolveAll:Hp.resolveAll,tokenize:V5};function V5(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 Sh={name:"lineEnding",tokenize:Y5};function Y5(e,t){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ot(e,t,"linePrefix")}}const yu={name:"thematicBreak",tokenize:X5};function X5(e,t,r){let a=0,s;return o;function o(f){return e.enter("thematicBreak"),c(f)}function c(f){return s=f,d(f)}function d(f){return f===s?(e.enter("thematicBreakSequence"),h(f)):a>=3&&(f===null||Be(f))?(e.exit("thematicBreak"),t(f)):r(f)}function h(f){return f===s?(e.consume(f),a++,h):(e.exit("thematicBreakSequence"),tt(f)?ot(e,d,"whitespace")(f):d(f))}}const Fn={continuation:{tokenize:W5},exit:eO,name:"list",tokenize:Q5},K5={partial:!0,tokenize:tO},Z5={partial:!0,tokenize:J5};function Q5(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(y){const _=a.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!a.containerState.marker||y===a.containerState.marker:Wm(y)){if(a.containerState.type||(a.containerState.type=_,e.enter(_,{_container:!0})),_==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(yu,r,f)(y):f(y);if(!a.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(y)}return r(y)}function h(y){return Wm(y)&&++c<10?(e.consume(y),h):(!a.interrupt||c<2)&&(a.containerState.marker?y===a.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),f(y)):r(y)}function f(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||y,e.check(Do,a.interrupt?r:p,e.attempt(K5,b,g))}function p(y){return a.containerState.initialBlankLine=!0,o++,b(y)}function g(y){return tt(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),b):r(y)}function b(y){return a.containerState.size=o+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function W5(e,t,r){const a=this;return a.containerState._closeFlow=void 0,e.check(Do,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(Z5,t,c)(d))}function c(d){return a.containerState._closeFlow=!0,a.interrupt=void 0,ot(e,e.attempt(Fn,t,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function J5(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 eO(e){e.exit(this.containerState.type)}function tO(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 Ly={name:"setextUnderline",resolveTo:nO,tokenize:rO};function nO(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 rO(e,t,r){const a=this;let s;return o;function o(f){let p=a.events.length,g;for(;p--;)if(a.events[p][1].type!=="lineEnding"&&a.events[p][1].type!=="linePrefix"&&a.events[p][1].type!=="content"){g=a.events[p][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||g)?(e.enter("setextHeadingLine"),s=f,c(f)):r(f)}function c(f){return e.enter("setextHeadingLineSequence"),d(f)}function d(f){return f===s?(e.consume(f),d):(e.exit("setextHeadingLineSequence"),tt(f)?ot(e,h,"lineSuffix")(f):h(f))}function h(f){return f===null||Be(f)?(e.exit("setextHeadingLine"),t(f)):r(f)}}const iO={tokenize:aO};function aO(e){const t=this,r=e.attempt(Do,a,e.attempt(this.parser.constructs.flowInitial,s,ot(e,e.attempt(this.parser.constructs.flow,s,e.attempt(u5,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 sO={resolveAll:$w()},lO=Hw("string"),oO=Hw("text");function Hw(e){return{resolveAll:$w(e==="text"?cO: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(p){return f(p)?o(p):d(p)}function d(p){if(p===null){r.consume(p);return}return r.enter("data"),r.consume(p),h}function h(p){return f(p)?(r.exit("data"),o(p)):(r.consume(p),h)}function f(p){if(p===null)return!0;const g=s[p];let b=-1;if(g)for(;++b<g.length;){const y=g[b];if(!y.previous||y.previous.call(a,a.previous))return!0}return!1}}}function $w(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 cO(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,h;for(;o--;){const f=s[o];if(typeof f=="string"){for(c=f.length;f.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(f===-2)h=!0,d++;else if(f!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(d=0),d){const f={type:r===e.length||h||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={...f.start},a.start.offset===a.end.offset?Object.assign(a,f):(e.splice(r,0,["enter",f,t],["exit",f,t]),r+=2)}r++}return e}const uO={42:Fn,43:Fn,45:Fn,48:Fn,49:Fn,50:Fn,51:Fn,52:Fn,53:Fn,54:Fn,55:Fn,56:Fn,57:Fn,62:jw},dO={91:p5},fO={[-2]:Nh,[-1]:Nh,32:Nh},hO={35:_5,42:yu,45:[Ly,yu],60:S5,61:Ly,95:yu,96:jy,126:jy},mO={38:Lw,92:Dw},pO={[-5]:Sh,[-4]:Sh,[-3]:Sh,33:P5,38:Lw,42:Jm,60:[GM,R5],91:G5,92:[y5,Dw],93:Hp,95:Jm,96:i5},gO={null:[Jm,sO]},xO={null:[42,95]},bO={null:[]},yO=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:xO,contentInitial:dO,disable:bO,document:uO,flow:hO,flowInitial:fO,insideSpan:gO,string:mO,text:pO},Symbol.toStringTag,{value:"Module"}));function vO(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 h={attempt:H(B),check:H(R),consume:C,enter:E,exit:A,interrupt:H(R,{interrupt:!0})},f={code:null,containerState:{},defineSkip:N,events:[],now:_,parser:e,previous:null,sliceSerialize:b,sliceStream:y,write:g};let p=t.tokenize.call(f,h);return t.resolveAll&&o.push(t),f;function g(I){return c=xr(c,I),S(),c[c.length-1]!==null?[]:(z(t,0),f.events=Zu(o,f.events,f),f.events)}function b(I,Z){return wO(y(I),Z)}function y(I){return _O(c,I)}function _(){const{_bufferIndex:I,_index:Z,line:P,column:k,offset:$}=a;return{_bufferIndex:I,_index:Z,line:P,column:k,offset:$}}function N(I){s[I.line]=I.column,j()}function S(){let I;for(;a._index<c.length;){const Z=c[a._index];if(typeof Z=="string")for(I=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===I&&a._bufferIndex<Z.length;)w(Z.charCodeAt(a._bufferIndex));else w(Z)}}function w(I){p=p(I)}function C(I){Be(I)?(a.line++,a.column=1,a.offset+=I===-3?2:1,j()):I!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===c[a._index].length&&(a._bufferIndex=-1,a._index++)),f.previous=I}function E(I,Z){const P=Z||{};return P.type=I,P.start=_(),f.events.push(["enter",P,f]),d.push(P),P}function A(I){const Z=d.pop();return Z.end=_(),f.events.push(["exit",Z,f]),Z}function B(I,Z){z(I,Z.from)}function R(I,Z){Z.restore()}function H(I,Z){return P;function P(k,$,O){let U,K,X,M;return Array.isArray(k)?F(k):"tokenize"in k?F([k]):L(k);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 F(fe)(W)}}function F(Q){return U=Q,K=0,Q.length===0?O:D(Q[K])}function D(Q){return J;function J(W){return M=Y(),X=Q,Q.partial||(f.currentConstruct=Q),Q.name&&f.parser.constructs.disable.null.includes(Q.name)?q():Q.tokenize.call(Z?Object.assign(Object.create(f),Z):f,h,V,q)(W)}}function V(Q){return I(X,M),$}function q(Q){return M.restore(),++K<U.length?D(U[K]):O}}}function z(I,Z){I.resolveAll&&!o.includes(I)&&o.push(I),I.resolve&&ar(f.events,Z,f.events.length-Z,I.resolve(f.events.slice(Z),f)),I.resolveTo&&(f.events=I.resolveTo(f.events,f))}function Y(){const I=_(),Z=f.previous,P=f.currentConstruct,k=f.events.length,$=Array.from(d);return{from:k,restore:O};function O(){a=I,f.previous=Z,f.currentConstruct=P,f.events.length=k,d=$,j()}}function j(){a.line in s&&a.column<2&&(a.column=s[a.line],a.offset+=s[a.line]-1)}}function _O(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 wO(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 wO(e){const a={constructs:Mw([bO,...(e||{}).extensions||[]]),content:s(IM),defined:[],document:s(UM),flow:s(rO),lazy:{},string:s(sO),text:s(lO)};return a;function s(o){return c;function c(d){return yO(a,o,d)}}}function EO(e){for(;!Lw(e););return e}const zy=/[\0\t\n\r]/g;function NO(){let e=1,t="",r=!0,a;return s;function s(o,c,d){const h=[];let f,p,g,b,y;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(c||void 0).decode(o)),g=0,t="",r&&(o.charCodeAt(0)===65279&&g++,r=void 0);g<o.length;){if(zy.lastIndex=g,f=zy.exec(o),b=f&&f.index!==void 0?f.index:o.length,y=o.charCodeAt(b),!f){t=o.slice(g);break}if(y===10&&g===b&&a)h.push(-3),a=void 0;else switch(a&&(h.push(-5),a=void 0),g<b&&(h.push(o.slice(g,b)),e+=b-g),y){case 0:{h.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,h.push(-2);e++<p;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:a=!0,e=1}g=b+1}return d&&(a&&h.push(-5),t&&h.push(t),h.push(null)),h}}const SO=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function kO(e){return e.replace(SO,CO)}function CO(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),o=s===120||s===88;return Ow(r.slice(o?2:1),o?16:10)}return Up(r)||e}const $w={}.hasOwnProperty;function TO(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),AO(r)(EO(wO(r).document().write(NO()(e,t,!0))))}function AO(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Xt),autolinkProtocol:Y,autolinkEmail:Y,atxHeading:o(De),blockQuote:o(oe),characterEscape:Y,characterReference:Y,codeFenced:o(fe),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:o(fe,c),codeText:o(xe,c),codeTextData:Y,data:Y,codeFlowValue:Y,definition:o(we),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:o(Ne),hardBreakEscape:o($e),hardBreakTrailing:o($e),htmlFlow:o(st,c),htmlFlowData:Y,htmlText:o(st,c),htmlTextData:Y,image:o(Rt),label:c,link:o(Xt),listItem:o(Kt),listItemValue:b,listOrdered:o(Ft,g),listUnordered:o(Ft),paragraph:o(Yn),reference:D,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:o(De),strong:o(Nn),thematicBreak:o(It)},exit:{atxHeading:h(),atxHeadingSequence:B,autolink:h(),autolinkEmail:te,autolinkProtocol:W,blockQuote:h(),characterEscapeValue:j,characterReferenceMarkerHexadecimal:q,characterReferenceMarkerNumeric:q,characterReferenceValue:Q,characterReference:J,codeFenced:h(S),codeFencedFence:N,codeFencedFenceInfo:y,codeFencedFenceMeta:_,codeFlowValue:j,codeIndented:h(w),codeText:h($),codeTextData:j,data:j,definition:h(),definitionDestinationString:A,definitionLabelString:C,definitionTitleString:E,emphasis:h(),hardBreakEscape:h(Z),hardBreakTrailing:h(Z),htmlFlow:h(P),htmlFlowData:j,htmlText:h(k),htmlTextData:j,image:h(U),label:X,labelText:K,lineEnding:I,link:h(O),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:V,resourceDestinationString:M,resourceTitleString:L,resource:F,setextHeading:h(z),setextHeadingLineSequence:H,setextHeadingText:R,strong:h(),thematicBreak:h()}};qw(t,(e||{}).mdastExtensions||[]);const r={};return a;function a(ue){let be={type:"root",children:[]};const Oe={stack:[be],tokenStack:[],config:t,enter:d,exit:f,buffer:c,resume:p,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 cn=Fe.pop();Ze=s(ue,cn,Ze)}for(Ze=-1;++Ze<ue.length;){const cn=t[ue[Ze][0]];$w.call(cn,ue[Ze][1].type)&&cn[ue[Ze][1].type].call(Object.assign({sliceSerialize:ue[Ze][2].sliceSerialize},Oe),ue[Ze][1])}if(Oe.tokenStack.length>0){const cn=Oe.tokenStack[Oe.tokenStack.length-1];(cn[1]||Iy).call(Oe,void 0,cn[0])}for(be.position={start:aa(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:aa(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},Ze=-1;++Ze<t.transforms.length;)be=t.transforms[Ze](be)||be;return be}function s(ue,be,Oe){let Fe=be-1,Ze=-1,cn=!1,Sn,Zt,At,Jt;for(;++Fe<=Oe;){const ut=ue[Fe];switch(ut[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ut[0]==="enter"?Ze++:Ze--,Jt=void 0;break}case"lineEndingBlank":{ut[0]==="enter"&&(Sn&&!Jt&&!Ze&&!At&&(At=Fe),Jt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Jt=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(Sn){let In=Fe;for(Zt=void 0;In--;){const un=ue[In];if(un[1].type==="lineEnding"||un[1].type==="lineEndingBlank"){if(un[0]==="exit")continue;Zt&&(ue[Zt][1].type="lineEndingBlank",cn=!0),un[1].type="lineEnding",Zt=In}else if(!(un[1].type==="linePrefix"||un[1].type==="blockQuotePrefix"||un[1].type==="blockQuotePrefixWhitespace"||un[1].type==="blockQuoteMarker"||un[1].type==="listItemIndent"))break}At&&(!Zt||At<Zt)&&(Sn._spread=!0),Sn.end=Object.assign({},Zt?ue[Zt][1].start:ut[1].end),ue.splice(Zt||Fe,0,["exit",Sn,ut[2]]),Fe++,Oe++}if(ut[1].type==="listItemPrefix"){const In={type:"listItem",_spread:!1,start:Object.assign({},ut[1].start),end:void 0};Sn=In,ue.splice(Fe,0,["enter",In,ut[2]]),Fe++,Oe++,At=void 0,Jt=!0}}}return ue[be][1]._spread=cn,Oe}function o(ue,be){return Oe;function Oe(Fe){d.call(this,ue(Fe),Fe),be&&be.call(this,Fe)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(ue,be,Oe){this.stack[this.stack.length-1].children.push(ue),this.stack.push(ue),this.tokenStack.push([be,Oe||void 0]),ue.position={start:aa(be.start),end:void 0}}function h(ue){return be;function be(Oe){ue&&ue.call(this,Oe),f.call(this,Oe)}}function f(ue,be){const Oe=this.stack.pop(),Fe=this.tokenStack.pop();if(Fe)Fe[0].type!==ue.type&&(be?be.call(this,ue,Fe[0]):(Fe[1]||Iy).call(this,ue,Fe[0]));else throw new Error("Cannot close `"+ue.type+"` ("+oo({start:ue.start,end:ue.end})+"): it’s not open");Oe.position.end=aa(ue.end)}function p(){return Bp(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function b(ue){if(this.data.expectingFirstListItemValue){const be=this.stack[this.stack.length-2];be.start=Number.parseInt(this.sliceSerialize(ue),10),this.data.expectingFirstListItemValue=void 0}}function y(){const ue=this.resume(),be=this.stack[this.stack.length-1];be.lang=ue}function _(){const ue=this.resume(),be=this.stack[this.stack.length-1];be.meta=ue}function N(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const ue=this.resume(),be=this.stack[this.stack.length-1];be.value=ue.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const ue=this.resume(),be=this.stack[this.stack.length-1];be.value=ue.replace(/(\r?\n|\r)$/g,"")}function C(ue){const be=this.resume(),Oe=this.stack[this.stack.length-1];Oe.label=be,Oe.identifier=Dr(this.sliceSerialize(ue)).toLowerCase()}function E(){const ue=this.resume(),be=this.stack[this.stack.length-1];be.title=ue}function A(){const ue=this.resume(),be=this.stack[this.stack.length-1];be.url=ue}function B(ue){const be=this.stack[this.stack.length-1];if(!be.depth){const Oe=this.sliceSerialize(ue).length;be.depth=Oe}}function R(){this.data.setextHeadingSlurpLineEnding=!0}function H(ue){const be=this.stack[this.stack.length-1];be.depth=this.sliceSerialize(ue).codePointAt(0)===61?1:2}function z(){this.data.setextHeadingSlurpLineEnding=void 0}function Y(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:aa(ue.start),end:void 0},Oe.push(Fe)),this.stack.push(Fe)}function j(ue){const be=this.stack.pop();be.value+=this.sliceSerialize(ue),be.position.end=aa(ue.end)}function I(ue){const be=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Oe=be.children[be.children.length-1];Oe.position.end=aa(ue.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(be.type)&&(Y.call(this,ue),j.call(this,ue))}function Z(){this.data.atHardBreak=!0}function P(){const ue=this.resume(),be=this.stack[this.stack.length-1];be.value=ue}function k(){const ue=this.resume(),be=this.stack[this.stack.length-1];be.value=ue}function $(){const ue=this.resume(),be=this.stack[this.stack.length-1];be.value=ue}function O(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const be=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=be,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function U(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const be=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=be,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function K(ue){const be=this.sliceSerialize(ue),Oe=this.stack[this.stack.length-2];Oe.label=kO(be),Oe.identifier=Dr(be).toLowerCase()}function X(){const ue=this.stack[this.stack.length-1],be=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=be}function M(){const ue=this.resume(),be=this.stack[this.stack.length-1];be.url=ue}function L(){const ue=this.resume(),be=this.stack[this.stack.length-1];be.title=ue}function F(){this.data.inReference=void 0}function D(){this.data.referenceType="collapsed"}function V(ue){const be=this.resume(),Oe=this.stack[this.stack.length-1];Oe.label=be,Oe.identifier=Dr(this.sliceSerialize(ue)).toLowerCase(),this.data.referenceType="full"}function q(ue){this.data.characterReferenceType=ue.type}function Q(ue){const be=this.sliceSerialize(ue),Oe=this.data.characterReferenceType;let Fe;Oe?(Fe=Ow(be,Oe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Fe=Up(be);const Ze=this.stack[this.stack.length-1];Ze.value+=Fe}function J(ue){const be=this.stack.pop();be.position.end=aa(ue.end)}function W(ue){j.call(this,ue);const be=this.stack[this.stack.length-1];be.url=this.sliceSerialize(ue)}function te(ue){j.call(this,ue);const be=this.stack[this.stack.length-1];be.url="mailto:"+this.sliceSerialize(ue)}function oe(){return{type:"blockquote",children:[]}}function fe(){return{type:"code",lang:null,meta:null,value:""}}function xe(){return{type:"inlineCode",value:""}}function we(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ne(){return{type:"emphasis",children:[]}}function De(){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 Xt(){return{type:"link",title:null,url:"",children:[]}}function Ft(ue){return{type:"list",ordered:ue.type==="listOrdered",start:null,spread:ue._spread,children:[]}}function Kt(ue){return{type:"listItem",spread:ue._spread,checked:null,children:[]}}function Yn(){return{type:"paragraph",children:[]}}function Nn(){return{type:"strong",children:[]}}function ct(){return{type:"text",value:""}}function It(){return{type:"thematicBreak"}}}function aa(e){return{line:e.line,column:e.column,offset:e.offset}}function qw(e,t){let r=-1;for(;++r<t.length;){const a=t[r];Array.isArray(a)?qw(e,a):MO(e,a)}}function MO(e,t){let r;for(r in t)if($w.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 Iy(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+oo({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+oo({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+oo({start:t.start,end:t.end})+") is still open")}function OO(e){const t=this;t.parser=r;function r(a){return TO(a,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function RO(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 jO(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
-`}]}function DO(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 LO(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function zO(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function IO(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),s=rl(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 h={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,h);const f={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(t,f),e.applyData(t,f)}function BO(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 UO(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Pw(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 HO(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return Pw(e,t);const s={src:rl(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:rl(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 qO(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 PO(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return Pw(e,t);const s={href:rl(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 FO(e,t){const r={href:rl(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 GO(e,t,r){const a=e.all(t),s=r?VO(r):Fw(t),o={},c=[];if(typeof t.checked=="boolean"){const p=a[0];let g;p&&p.type==="element"&&p.tagName==="p"?g=p:(g={type:"element",tagName:"p",properties:{},children:[]},a.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.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 p=a[d];(s||d!==0||p.type!=="element"||p.tagName!=="p")&&c.push({type:"text",value:`
+`;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 EO(e){const a={constructs:Ow([yO,...(e||{}).extensions||[]]),content:s(BM),defined:[],document:s(HM),flow:s(iO),lazy:{},string:s(lO),text:s(oO)};return a;function s(o){return c;function c(d){return vO(a,o,d)}}}function NO(e){for(;!zw(e););return e}const zy=/[\0\t\n\r]/g;function SO(){let e=1,t="",r=!0,a;return s;function s(o,c,d){const h=[];let f,p,g,b,y;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(c||void 0).decode(o)),g=0,t="",r&&(o.charCodeAt(0)===65279&&g++,r=void 0);g<o.length;){if(zy.lastIndex=g,f=zy.exec(o),b=f&&f.index!==void 0?f.index:o.length,y=o.charCodeAt(b),!f){t=o.slice(g);break}if(y===10&&g===b&&a)h.push(-3),a=void 0;else switch(a&&(h.push(-5),a=void 0),g<b&&(h.push(o.slice(g,b)),e+=b-g),y){case 0:{h.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,h.push(-2);e++<p;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:a=!0,e=1}g=b+1}return d&&(a&&h.push(-5),t&&h.push(t),h.push(null)),h}}const kO=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function CO(e){return e.replace(kO,TO)}function TO(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),o=s===120||s===88;return Rw(r.slice(o?2:1),o?16:10)}return Up(r)||e}const qw={}.hasOwnProperty;function AO(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),MO(r)(NO(EO(r).document().write(SO()(e,t,!0))))}function MO(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Xt),autolinkProtocol:Y,autolinkEmail:Y,atxHeading:o(De),blockQuote:o(oe),characterEscape:Y,characterReference:Y,codeFenced:o(fe),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:o(fe,c),codeText:o(xe,c),codeTextData:Y,data:Y,codeFlowValue:Y,definition:o(we),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:o(Ne),hardBreakEscape:o($e),hardBreakTrailing:o($e),htmlFlow:o(st,c),htmlFlowData:Y,htmlText:o(st,c),htmlTextData:Y,image:o(Rt),label:c,link:o(Xt),listItem:o(Kt),listItemValue:b,listOrdered:o(Ft,g),listUnordered:o(Ft),paragraph:o(Yn),reference:D,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:o(De),strong:o(Nn),thematicBreak:o(It)},exit:{atxHeading:h(),atxHeadingSequence:B,autolink:h(),autolinkEmail:te,autolinkProtocol:W,blockQuote:h(),characterEscapeValue:j,characterReferenceMarkerHexadecimal:q,characterReferenceMarkerNumeric:q,characterReferenceValue:Q,characterReference:J,codeFenced:h(S),codeFencedFence:N,codeFencedFenceInfo:y,codeFencedFenceMeta:_,codeFlowValue:j,codeIndented:h(w),codeText:h($),codeTextData:j,data:j,definition:h(),definitionDestinationString:A,definitionLabelString:C,definitionTitleString:E,emphasis:h(),hardBreakEscape:h(Z),hardBreakTrailing:h(Z),htmlFlow:h(P),htmlFlowData:j,htmlText:h(k),htmlTextData:j,image:h(U),label:X,labelText:K,lineEnding:I,link:h(O),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:V,resourceDestinationString:M,resourceTitleString:L,resource:F,setextHeading:h(z),setextHeadingLineSequence:H,setextHeadingText:R,strong:h(),thematicBreak:h()}};Pw(t,(e||{}).mdastExtensions||[]);const r={};return a;function a(ue){let be={type:"root",children:[]};const Oe={stack:[be],tokenStack:[],config:t,enter:d,exit:f,buffer:c,resume:p,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 cn=Fe.pop();Ze=s(ue,cn,Ze)}for(Ze=-1;++Ze<ue.length;){const cn=t[ue[Ze][0]];qw.call(cn,ue[Ze][1].type)&&cn[ue[Ze][1].type].call(Object.assign({sliceSerialize:ue[Ze][2].sliceSerialize},Oe),ue[Ze][1])}if(Oe.tokenStack.length>0){const cn=Oe.tokenStack[Oe.tokenStack.length-1];(cn[1]||Iy).call(Oe,void 0,cn[0])}for(be.position={start:aa(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:aa(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},Ze=-1;++Ze<t.transforms.length;)be=t.transforms[Ze](be)||be;return be}function s(ue,be,Oe){let Fe=be-1,Ze=-1,cn=!1,Sn,Zt,At,Jt;for(;++Fe<=Oe;){const ut=ue[Fe];switch(ut[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ut[0]==="enter"?Ze++:Ze--,Jt=void 0;break}case"lineEndingBlank":{ut[0]==="enter"&&(Sn&&!Jt&&!Ze&&!At&&(At=Fe),Jt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Jt=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(Sn){let In=Fe;for(Zt=void 0;In--;){const un=ue[In];if(un[1].type==="lineEnding"||un[1].type==="lineEndingBlank"){if(un[0]==="exit")continue;Zt&&(ue[Zt][1].type="lineEndingBlank",cn=!0),un[1].type="lineEnding",Zt=In}else if(!(un[1].type==="linePrefix"||un[1].type==="blockQuotePrefix"||un[1].type==="blockQuotePrefixWhitespace"||un[1].type==="blockQuoteMarker"||un[1].type==="listItemIndent"))break}At&&(!Zt||At<Zt)&&(Sn._spread=!0),Sn.end=Object.assign({},Zt?ue[Zt][1].start:ut[1].end),ue.splice(Zt||Fe,0,["exit",Sn,ut[2]]),Fe++,Oe++}if(ut[1].type==="listItemPrefix"){const In={type:"listItem",_spread:!1,start:Object.assign({},ut[1].start),end:void 0};Sn=In,ue.splice(Fe,0,["enter",In,ut[2]]),Fe++,Oe++,At=void 0,Jt=!0}}}return ue[be][1]._spread=cn,Oe}function o(ue,be){return Oe;function Oe(Fe){d.call(this,ue(Fe),Fe),be&&be.call(this,Fe)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(ue,be,Oe){this.stack[this.stack.length-1].children.push(ue),this.stack.push(ue),this.tokenStack.push([be,Oe||void 0]),ue.position={start:aa(be.start),end:void 0}}function h(ue){return be;function be(Oe){ue&&ue.call(this,Oe),f.call(this,Oe)}}function f(ue,be){const Oe=this.stack.pop(),Fe=this.tokenStack.pop();if(Fe)Fe[0].type!==ue.type&&(be?be.call(this,ue,Fe[0]):(Fe[1]||Iy).call(this,ue,Fe[0]));else throw new Error("Cannot close `"+ue.type+"` ("+oo({start:ue.start,end:ue.end})+"): it’s not open");Oe.position.end=aa(ue.end)}function p(){return Bp(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function b(ue){if(this.data.expectingFirstListItemValue){const be=this.stack[this.stack.length-2];be.start=Number.parseInt(this.sliceSerialize(ue),10),this.data.expectingFirstListItemValue=void 0}}function y(){const ue=this.resume(),be=this.stack[this.stack.length-1];be.lang=ue}function _(){const ue=this.resume(),be=this.stack[this.stack.length-1];be.meta=ue}function N(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const ue=this.resume(),be=this.stack[this.stack.length-1];be.value=ue.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const ue=this.resume(),be=this.stack[this.stack.length-1];be.value=ue.replace(/(\r?\n|\r)$/g,"")}function C(ue){const be=this.resume(),Oe=this.stack[this.stack.length-1];Oe.label=be,Oe.identifier=Dr(this.sliceSerialize(ue)).toLowerCase()}function E(){const ue=this.resume(),be=this.stack[this.stack.length-1];be.title=ue}function A(){const ue=this.resume(),be=this.stack[this.stack.length-1];be.url=ue}function B(ue){const be=this.stack[this.stack.length-1];if(!be.depth){const Oe=this.sliceSerialize(ue).length;be.depth=Oe}}function R(){this.data.setextHeadingSlurpLineEnding=!0}function H(ue){const be=this.stack[this.stack.length-1];be.depth=this.sliceSerialize(ue).codePointAt(0)===61?1:2}function z(){this.data.setextHeadingSlurpLineEnding=void 0}function Y(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:aa(ue.start),end:void 0},Oe.push(Fe)),this.stack.push(Fe)}function j(ue){const be=this.stack.pop();be.value+=this.sliceSerialize(ue),be.position.end=aa(ue.end)}function I(ue){const be=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Oe=be.children[be.children.length-1];Oe.position.end=aa(ue.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(be.type)&&(Y.call(this,ue),j.call(this,ue))}function Z(){this.data.atHardBreak=!0}function P(){const ue=this.resume(),be=this.stack[this.stack.length-1];be.value=ue}function k(){const ue=this.resume(),be=this.stack[this.stack.length-1];be.value=ue}function $(){const ue=this.resume(),be=this.stack[this.stack.length-1];be.value=ue}function O(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const be=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=be,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function U(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const be=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=be,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function K(ue){const be=this.sliceSerialize(ue),Oe=this.stack[this.stack.length-2];Oe.label=CO(be),Oe.identifier=Dr(be).toLowerCase()}function X(){const ue=this.stack[this.stack.length-1],be=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=be}function M(){const ue=this.resume(),be=this.stack[this.stack.length-1];be.url=ue}function L(){const ue=this.resume(),be=this.stack[this.stack.length-1];be.title=ue}function F(){this.data.inReference=void 0}function D(){this.data.referenceType="collapsed"}function V(ue){const be=this.resume(),Oe=this.stack[this.stack.length-1];Oe.label=be,Oe.identifier=Dr(this.sliceSerialize(ue)).toLowerCase(),this.data.referenceType="full"}function q(ue){this.data.characterReferenceType=ue.type}function Q(ue){const be=this.sliceSerialize(ue),Oe=this.data.characterReferenceType;let Fe;Oe?(Fe=Rw(be,Oe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Fe=Up(be);const Ze=this.stack[this.stack.length-1];Ze.value+=Fe}function J(ue){const be=this.stack.pop();be.position.end=aa(ue.end)}function W(ue){j.call(this,ue);const be=this.stack[this.stack.length-1];be.url=this.sliceSerialize(ue)}function te(ue){j.call(this,ue);const be=this.stack[this.stack.length-1];be.url="mailto:"+this.sliceSerialize(ue)}function oe(){return{type:"blockquote",children:[]}}function fe(){return{type:"code",lang:null,meta:null,value:""}}function xe(){return{type:"inlineCode",value:""}}function we(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ne(){return{type:"emphasis",children:[]}}function De(){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 Xt(){return{type:"link",title:null,url:"",children:[]}}function Ft(ue){return{type:"list",ordered:ue.type==="listOrdered",start:null,spread:ue._spread,children:[]}}function Kt(ue){return{type:"listItem",spread:ue._spread,checked:null,children:[]}}function Yn(){return{type:"paragraph",children:[]}}function Nn(){return{type:"strong",children:[]}}function ct(){return{type:"text",value:""}}function It(){return{type:"thematicBreak"}}}function aa(e){return{line:e.line,column:e.column,offset:e.offset}}function Pw(e,t){let r=-1;for(;++r<t.length;){const a=t[r];Array.isArray(a)?Pw(e,a):OO(e,a)}}function OO(e,t){let r;for(r in t)if(qw.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 Iy(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+oo({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+oo({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+oo({start:t.start,end:t.end})+") is still open")}function RO(e){const t=this;t.parser=r;function r(a){return AO(a,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function jO(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 DO(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
+`}]}function LO(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 zO(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function IO(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=rl(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 h={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,h);const f={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(t,f),e.applyData(t,f)}function UO(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 HO(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Fw(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 $O(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return Fw(e,t);const s={src:rl(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 qO(e,t){const r={src:rl(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 PO(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 FO(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return Fw(e,t);const s={href:rl(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 GO(e,t){const r={href:rl(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 VO(e,t,r){const a=e.all(t),s=r?YO(r):Gw(t),o={},c=[];if(typeof t.checked=="boolean"){const p=a[0];let g;p&&p.type==="element"&&p.tagName==="p"?g=p:(g={type:"element",tagName:"p",properties:{},children:[]},a.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.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 p=a[d];(s||d!==0||p.type!=="element"||p.tagName!=="p")&&c.push({type:"text",value:`
`}),p.type==="element"&&p.tagName==="p"&&!s?c.push(...p.children):c.push(p)}const h=a[a.length-1];h&&(s||h.type!=="element"||h.tagName!=="p")&&c.push({type:"text",value:`
-`});const f={type:"element",tagName:"li",properties:o,children:c};return e.patch(t,f),e.applyData(t,f)}function VO(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=Fw(r[a])}return t}function Fw(e){const t=e.spread;return t??e.children.length>1}function YO(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 XO(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function KO(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function ZO(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function QO(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=Dp(t.children[1]),h=Ew(t.children[t.children.length-1]);d&&h&&(c.position={start:d,end:h}),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 WO(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 h=-1;const f=[];for(;++h<d;){const g=t.children[h],b={},y=c?c[h]:void 0;y&&(b.align=y);let _={type:"element",tagName:o,properties:b,children:[]};g&&(_.children=e.all(g),e.patch(g,_),_=e.applyData(g,_)),f.push(_)}const p={type:"element",tagName:"tr",properties:{},children:e.wrap(f,!0)};return e.patch(t,p),e.applyData(t,p)}function JO(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const By=9,Uy=32;function eR(e){const t=String(e),r=/\r?\n|\r/g;let a=r.exec(t),s=0;const o=[];for(;a;)o.push(Hy(t.slice(s,a.index),s>0,!0),a[0]),s=a.index+a[0].length,a=r.exec(t);return o.push(Hy(t.slice(s),s>0,!1)),o.join("")}function Hy(e,t,r){let a=0,s=e.length;if(t){let o=e.codePointAt(a);for(;o===By||o===Uy;)a++,o=e.codePointAt(a)}if(r){let o=e.codePointAt(s-1);for(;o===By||o===Uy;)s--,o=e.codePointAt(s-1)}return s>a?e.slice(a,s):""}function tR(e,t){const r={type:"text",value:eR(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function nR(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const rR={blockquote:RO,break:jO,code:DO,delete:LO,emphasis:zO,footnoteReference:IO,heading:BO,html:UO,imageReference:HO,image:$O,inlineCode:qO,linkReference:PO,link:FO,listItem:GO,list:YO,paragraph:XO,root:KO,strong:ZO,table:QO,tableCell:JO,tableRow:WO,text:tR,thematicBreak:nR,toml:nu,yaml:nu,definition:nu,footnoteDefinition:nu};function nu(){}const Gw=-1,Zu=0,uo=1,Cu=2,$p=3,qp=4,Pp=5,Fp=6,Vw=7,Yw=8,Xw=typeof self=="object"?self:globalThis,$y=(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 Xw[e](t)},iR=(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 Zu:case Gw:return r(c,s);case uo:{const d=r([],s);for(const h of c)d.push(a(h));return d}case Cu:{const d=r({},s);for(const[h,f]of c)d[a(h)]=a(f);return d}case $p:return r(new Date(c),s);case qp:{const{source:d,flags:h}=c;return r(new RegExp(d,h),s)}case Pp:{const d=r(new Map,s);for(const[h,f]of c)d.set(a(h),a(f));return d}case Fp:{const d=r(new Set,s);for(const h of c)d.add(a(h));return d}case Vw:{const{name:d,message:h}=c;return r(typeof Xw[d]=="function"?$y(d,h):new Error(h),s)}case Yw: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($y(o,c),s)};return a},qy=e=>iR(new Map,e)(0),Ua="",{toString:aR}={},{keys:sR}=Object,eo=e=>{const t=typeof e;if(t!=="object"||!e)return[Zu,t];const r=aR.call(e).slice(8,-1);switch(r){case"Array":return[uo,Ua];case"Object":return[Cu,Ua];case"Date":return[$p,Ua];case"RegExp":return[qp,Ua];case"Map":return[Pp,Ua];case"Set":return[Fp,Ua];case"DataView":return[uo,r]}return r.includes("Array")?[uo,r]:e instanceof Error?[Vw,e.name||"Error"]:[Cu,r]},ru=([e,t])=>e===Zu&&(t==="function"||t==="symbol"),lR=(e,t,r,a)=>{const s=(c,d)=>{const h=a.push(c)-1;return r.set(d,h),h},o=c=>{if(r.has(c))return r.get(c);let[d,h]=eo(c);switch(d){case Zu:{let p=c;switch(h){case"bigint":d=Yw,p=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);p=null;break;case"undefined":return s([Gw],c)}return s([d,p],c)}case uo:{if(h){let b=c;return h==="DataView"?b=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(b=new Uint8Array(c)),s([h,[...b]],c)}const p=[],g=s([d,p],c);for(const b of c)p.push(o(b));return g}case Cu:{if(h)switch(h){case"BigInt":return s([h,c.toString()],c);case"Boolean":case"Number":case"String":return s([h,c.valueOf()],c)}if(t&&"toJSON"in c)return o(c.toJSON());const p=[],g=s([d,p],c);for(const b of sR(c))(e||!ru(eo(c[b])))&&p.push([o(b),o(c[b])]);return g}case $p:return s([d,isNaN(c.getTime())?Ua:c.toISOString()],c);case qp:{const{source:p,flags:g}=c;return s([d,{source:p,flags:g}],c)}case Pp:{const p=[],g=s([d,p],c);for(const[b,y]of c)(e||!(ru(eo(b))||ru(eo(y))))&&p.push([o(b),o(y)]);return g}case Fp:{const p=[],g=s([d,p],c);for(const b of c)(e||!ru(eo(b)))&&p.push(o(b));return g}}const{message:f}=c;return s([d,{name:h,message:f}],c)};return o},Py=(e,{json:t,lossy:r}={})=>{const a=[];return lR(!(t||r),!!t,new Map,a)(e),a},Tu=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?qy(Py(e,t)):structuredClone(e):(e,t)=>qy(Py(e,t));function oR(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 cR(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function uR(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||oR,a=e.options.footnoteBackLabel||cR,s=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let h=-1;for(;++h<e.footnoteOrder.length;){const f=e.footnoteById.get(e.footnoteOrder[h]);if(!f)continue;const p=e.all(f),g=String(f.identifier).toUpperCase(),b=rl(g.toLowerCase());let y=0;const _=[],N=e.footnoteCounts.get(g);for(;N!==void 0&&++y<=N;){_.length>0&&_.push({type:"text",value:" "});let C=typeof r=="string"?r:r(h,y);typeof C=="string"&&(C={type:"text",value:C}),_.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+b+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(h,y),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const S=p[p.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const C=S.children[S.children.length-1];C&&C.type==="text"?C.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(..._)}else p.push(..._);const w={type:"element",tagName:"li",properties:{id:t+"fn-"+b},children:e.wrap(p,!0)};e.patch(f,w),d.push(w)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Tu(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
+`});const f={type:"element",tagName:"li",properties:o,children:c};return e.patch(t,f),e.applyData(t,f)}function YO(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=Gw(r[a])}return t}function Gw(e){const t=e.spread;return t??e.children.length>1}function XO(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 KO(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ZO(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function QO(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function WO(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=Dp(t.children[1]),h=Nw(t.children[t.children.length-1]);d&&h&&(c.position={start:d,end:h}),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 JO(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 h=-1;const f=[];for(;++h<d;){const g=t.children[h],b={},y=c?c[h]:void 0;y&&(b.align=y);let _={type:"element",tagName:o,properties:b,children:[]};g&&(_.children=e.all(g),e.patch(g,_),_=e.applyData(g,_)),f.push(_)}const p={type:"element",tagName:"tr",properties:{},children:e.wrap(f,!0)};return e.patch(t,p),e.applyData(t,p)}function eR(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const By=9,Uy=32;function tR(e){const t=String(e),r=/\r?\n|\r/g;let a=r.exec(t),s=0;const o=[];for(;a;)o.push(Hy(t.slice(s,a.index),s>0,!0),a[0]),s=a.index+a[0].length,a=r.exec(t);return o.push(Hy(t.slice(s),s>0,!1)),o.join("")}function Hy(e,t,r){let a=0,s=e.length;if(t){let o=e.codePointAt(a);for(;o===By||o===Uy;)a++,o=e.codePointAt(a)}if(r){let o=e.codePointAt(s-1);for(;o===By||o===Uy;)s--,o=e.codePointAt(s-1)}return s>a?e.slice(a,s):""}function nR(e,t){const r={type:"text",value:tR(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function rR(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const iR={blockquote:jO,break:DO,code:LO,delete:zO,emphasis:IO,footnoteReference:BO,heading:UO,html:HO,imageReference:$O,image:qO,inlineCode:PO,linkReference:FO,link:GO,listItem:VO,list:XO,paragraph:KO,root:ZO,strong:QO,table:WO,tableCell:eR,tableRow:JO,text:nR,thematicBreak:rR,toml:ru,yaml:ru,definition:ru,footnoteDefinition:ru};function ru(){}const Vw=-1,Qu=0,uo=1,Tu=2,$p=3,qp=4,Pp=5,Fp=6,Yw=7,Xw=8,Kw=typeof self=="object"?self:globalThis,$y=(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 Kw[e](t)},aR=(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 Qu:case Vw:return r(c,s);case uo:{const d=r([],s);for(const h of c)d.push(a(h));return d}case Tu:{const d=r({},s);for(const[h,f]of c)d[a(h)]=a(f);return d}case $p:return r(new Date(c),s);case qp:{const{source:d,flags:h}=c;return r(new RegExp(d,h),s)}case Pp:{const d=r(new Map,s);for(const[h,f]of c)d.set(a(h),a(f));return d}case Fp:{const d=r(new Set,s);for(const h of c)d.add(a(h));return d}case Yw:{const{name:d,message:h}=c;return r(typeof Kw[d]=="function"?$y(d,h):new Error(h),s)}case Xw: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($y(o,c),s)};return a},qy=e=>aR(new Map,e)(0),Ua="",{toString:sR}={},{keys:lR}=Object,eo=e=>{const t=typeof e;if(t!=="object"||!e)return[Qu,t];const r=sR.call(e).slice(8,-1);switch(r){case"Array":return[uo,Ua];case"Object":return[Tu,Ua];case"Date":return[$p,Ua];case"RegExp":return[qp,Ua];case"Map":return[Pp,Ua];case"Set":return[Fp,Ua];case"DataView":return[uo,r]}return r.includes("Array")?[uo,r]:e instanceof Error?[Yw,e.name||"Error"]:[Tu,r]},iu=([e,t])=>e===Qu&&(t==="function"||t==="symbol"),oR=(e,t,r,a)=>{const s=(c,d)=>{const h=a.push(c)-1;return r.set(d,h),h},o=c=>{if(r.has(c))return r.get(c);let[d,h]=eo(c);switch(d){case Qu:{let p=c;switch(h){case"bigint":d=Xw,p=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);p=null;break;case"undefined":return s([Vw],c)}return s([d,p],c)}case uo:{if(h){let b=c;return h==="DataView"?b=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(b=new Uint8Array(c)),s([h,[...b]],c)}const p=[],g=s([d,p],c);for(const b of c)p.push(o(b));return g}case Tu:{if(h)switch(h){case"BigInt":return s([h,c.toString()],c);case"Boolean":case"Number":case"String":return s([h,c.valueOf()],c)}if(t&&"toJSON"in c)return o(c.toJSON());const p=[],g=s([d,p],c);for(const b of lR(c))(e||!iu(eo(c[b])))&&p.push([o(b),o(c[b])]);return g}case $p:return s([d,isNaN(c.getTime())?Ua:c.toISOString()],c);case qp:{const{source:p,flags:g}=c;return s([d,{source:p,flags:g}],c)}case Pp:{const p=[],g=s([d,p],c);for(const[b,y]of c)(e||!(iu(eo(b))||iu(eo(y))))&&p.push([o(b),o(y)]);return g}case Fp:{const p=[],g=s([d,p],c);for(const b of c)(e||!iu(eo(b)))&&p.push(o(b));return g}}const{message:f}=c;return s([d,{name:h,message:f}],c)};return o},Py=(e,{json:t,lossy:r}={})=>{const a=[];return oR(!(t||r),!!t,new Map,a)(e),a},Au=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?qy(Py(e,t)):structuredClone(e):(e,t)=>qy(Py(e,t));function cR(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 uR(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function dR(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||cR,a=e.options.footnoteBackLabel||uR,s=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let h=-1;for(;++h<e.footnoteOrder.length;){const f=e.footnoteById.get(e.footnoteOrder[h]);if(!f)continue;const p=e.all(f),g=String(f.identifier).toUpperCase(),b=rl(g.toLowerCase());let y=0;const _=[],N=e.footnoteCounts.get(g);for(;N!==void 0&&++y<=N;){_.length>0&&_.push({type:"text",value:" "});let C=typeof r=="string"?r:r(h,y);typeof C=="string"&&(C={type:"text",value:C}),_.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+b+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(h,y),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const S=p[p.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const C=S.children[S.children.length-1];C&&C.type==="text"?C.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(..._)}else p.push(..._);const w={type:"element",tagName:"li",properties:{id:t+"fn-"+b},children:e.wrap(p,!0)};e.patch(f,w),d.push(w)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Au(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 Qu=(function(e){if(e==null)return mR;if(typeof e=="function")return Wu(e);if(typeof e=="object")return Array.isArray(e)?dR(e):fR(e);if(typeof e=="string")return hR(e);throw new Error("Expected function, string, or object as test")});function dR(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Qu(e[r]);return Wu(a);function a(...s){let o=-1;for(;++o<t.length;)if(t[o].apply(this,s))return!0;return!1}}function fR(e){const t=e;return Wu(r);function r(a){const s=a;let o;for(o in e)if(s[o]!==t[o])return!1;return!0}}function hR(e){return Wu(t);function t(r){return r&&r.type===e}}function Wu(e){return t;function t(r,a,s){return!!(pR(r)&&e.call(this,r,typeof a=="number"?a:void 0,s||void 0))}}function mR(){return!0}function pR(e){return e!==null&&typeof e=="object"&&"type"in e}const Kw=[],gR=!0,ep=!1,xR="skip";function Zw(e,t,r,a){let s;typeof t=="function"&&typeof r!="function"?(a=r,r=t):s=t;const o=Qu(s),c=a?-1:1;d(e,void 0,[])();function d(h,f,p){const g=h&&typeof h=="object"?h:{};if(typeof g.type=="string"){const y=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(h.type+(y?"<"+y+">":""))+")"})}return b;function b(){let y=Kw,_,N,S;if((!t||o(h,f,p[p.length-1]||void 0))&&(y=bR(r(h,p)),y[0]===ep))return y;if("children"in h&&h.children){const w=h;if(w.children&&y[0]!==xR)for(N=(a?w.children.length:-1)+c,S=p.concat(w);N>-1&&N<w.children.length;){const C=w.children[N];if(_=d(C,N,S)(),_[0]===ep)return _;N=typeof _[1]=="number"?_[1]:N+c}}return y}}}function bR(e){return Array.isArray(e)?e:typeof e=="number"?[gR,e]:e==null?Kw:[e]}function Gp(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),Zw(e,o,d,s);function d(h,f){const p=f[f.length-1],g=p?p.children.indexOf(h):void 0;return c(h,g,p)}}const tp={}.hasOwnProperty,yR={};function vR(e,t){const r=t||yR,a=new Map,s=new Map,o=new Map,c={...rR,...r.handlers},d={all:f,applyData:wR,definitionById:a,footnoteById:s,footnoteCounts:o,footnoteOrder:[],handlers:c,one:h,options:r,patch:_R,wrap:NR};return Gp(e,function(p){if(p.type==="definition"||p.type==="footnoteDefinition"){const g=p.type==="definition"?a:s,b=String(p.identifier).toUpperCase();g.has(b)||g.set(b,p)}}),d;function h(p,g){const b=p.type,y=d.handlers[b];if(tp.call(d.handlers,b)&&y)return y(d,p,g);if(d.options.passThrough&&d.options.passThrough.includes(b)){if("children"in p){const{children:N,...S}=p,w=Tu(S);return w.children=d.all(p),w}return Tu(p)}return(d.options.unknownHandler||ER)(d,p,g)}function f(p){const g=[];if("children"in p){const b=p.children;let y=-1;for(;++y<b.length;){const _=d.one(b[y],p);if(_){if(y&&b[y-1].type==="break"&&(!Array.isArray(_)&&_.type==="text"&&(_.value=Fy(_.value)),!Array.isArray(_)&&_.type==="element")){const N=_.children[0];N&&N.type==="text"&&(N.value=Fy(N.value))}Array.isArray(_)?g.push(..._):g.push(_)}}}return g}}function _R(e,t){e.position&&(t.position=cM(e))}function wR(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,Tu(o)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function ER(e,t){const r=t.data||{},a="value"in t&&!(tp.call(r,"hProperties")||tp.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 NR(e,t){const r=[];let a=-1;for(t&&r.push({type:"text",value:`
+`}]}}const Wu=(function(e){if(e==null)return pR;if(typeof e=="function")return Ju(e);if(typeof e=="object")return Array.isArray(e)?fR(e):hR(e);if(typeof e=="string")return mR(e);throw new Error("Expected function, string, or object as test")});function fR(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Wu(e[r]);return Ju(a);function a(...s){let o=-1;for(;++o<t.length;)if(t[o].apply(this,s))return!0;return!1}}function hR(e){const t=e;return Ju(r);function r(a){const s=a;let o;for(o in e)if(s[o]!==t[o])return!1;return!0}}function mR(e){return Ju(t);function t(r){return r&&r.type===e}}function Ju(e){return t;function t(r,a,s){return!!(gR(r)&&e.call(this,r,typeof a=="number"?a:void 0,s||void 0))}}function pR(){return!0}function gR(e){return e!==null&&typeof e=="object"&&"type"in e}const Zw=[],xR=!0,ep=!1,bR="skip";function Qw(e,t,r,a){let s;typeof t=="function"&&typeof r!="function"?(a=r,r=t):s=t;const o=Wu(s),c=a?-1:1;d(e,void 0,[])();function d(h,f,p){const g=h&&typeof h=="object"?h:{};if(typeof g.type=="string"){const y=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(h.type+(y?"<"+y+">":""))+")"})}return b;function b(){let y=Zw,_,N,S;if((!t||o(h,f,p[p.length-1]||void 0))&&(y=yR(r(h,p)),y[0]===ep))return y;if("children"in h&&h.children){const w=h;if(w.children&&y[0]!==bR)for(N=(a?w.children.length:-1)+c,S=p.concat(w);N>-1&&N<w.children.length;){const C=w.children[N];if(_=d(C,N,S)(),_[0]===ep)return _;N=typeof _[1]=="number"?_[1]:N+c}}return y}}}function yR(e){return Array.isArray(e)?e:typeof e=="number"?[xR,e]:e==null?Zw:[e]}function Gp(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),Qw(e,o,d,s);function d(h,f){const p=f[f.length-1],g=p?p.children.indexOf(h):void 0;return c(h,g,p)}}const tp={}.hasOwnProperty,vR={};function _R(e,t){const r=t||vR,a=new Map,s=new Map,o=new Map,c={...iR,...r.handlers},d={all:f,applyData:ER,definitionById:a,footnoteById:s,footnoteCounts:o,footnoteOrder:[],handlers:c,one:h,options:r,patch:wR,wrap:SR};return Gp(e,function(p){if(p.type==="definition"||p.type==="footnoteDefinition"){const g=p.type==="definition"?a:s,b=String(p.identifier).toUpperCase();g.has(b)||g.set(b,p)}}),d;function h(p,g){const b=p.type,y=d.handlers[b];if(tp.call(d.handlers,b)&&y)return y(d,p,g);if(d.options.passThrough&&d.options.passThrough.includes(b)){if("children"in p){const{children:N,...S}=p,w=Au(S);return w.children=d.all(p),w}return Au(p)}return(d.options.unknownHandler||NR)(d,p,g)}function f(p){const g=[];if("children"in p){const b=p.children;let y=-1;for(;++y<b.length;){const _=d.one(b[y],p);if(_){if(y&&b[y-1].type==="break"&&(!Array.isArray(_)&&_.type==="text"&&(_.value=Fy(_.value)),!Array.isArray(_)&&_.type==="element")){const N=_.children[0];N&&N.type==="text"&&(N.value=Fy(N.value))}Array.isArray(_)?g.push(..._):g.push(_)}}}return g}}function wR(e,t){e.position&&(t.position=uM(e))}function ER(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,Au(o)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function NR(e,t){const r=t.data||{},a="value"in t&&!(tp.call(r,"hProperties")||tp.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 SR(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 Fy(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Gy(e,t){const r=vR(e,t),a=r.one(e,void 0),s=uR(r),o=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return s&&o.children.push({type:"text",value:`
-`},s),o}function SR(e,t){return e&&"run"in e?async function(r,a){const s=Gy(r,{file:a,...t});await e.run(s,a)}:function(r,a){return Gy(r,{file:a,...e||t})}}function Vy(e){if(e)throw e}var kh,Yy;function kR(){if(Yy)return kh;Yy=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(f){return typeof Array.isArray=="function"?Array.isArray(f):t.call(f)==="[object Array]"},o=function(f){if(!f||t.call(f)!=="[object Object]")return!1;var p=e.call(f,"constructor"),g=f.constructor&&f.constructor.prototype&&e.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!p&&!g)return!1;var b;for(b in f);return typeof b>"u"||e.call(f,b)},c=function(f,p){r&&p.name==="__proto__"?r(f,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):f[p.name]=p.newValue},d=function(f,p){if(p==="__proto__")if(e.call(f,p)){if(a)return a(f,p).value}else return;return f[p]};return kh=function h(){var f,p,g,b,y,_,N=arguments[0],S=1,w=arguments.length,C=!1;for(typeof N=="boolean"&&(C=N,N=arguments[1]||{},S=2),(N==null||typeof N!="object"&&typeof N!="function")&&(N={});S<w;++S)if(f=arguments[S],f!=null)for(p in f)g=d(N,p),b=d(f,p),N!==b&&(C&&b&&(o(b)||(y=s(b)))?(y?(y=!1,_=g&&s(g)?g:[]):_=g&&o(g)?g:{},c(N,{name:p,newValue:h(C,_,b)})):typeof b<"u"&&c(N,{name:p,newValue:b}));return N},kh}var CR=kR();const Ch=Mo(CR);function np(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 TR(){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(h,...f){const p=e[++o];let g=-1;if(h){c(h);return}for(;++g<s.length;)(f[g]===null||f[g]===void 0)&&(f[g]=s[g]);s=f,p?AR(p,d)(...f):c(null,...f)}}function a(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),t}}function AR(e,t){let r;return a;function a(...c){const d=e.length>c.length;let h;d&&c.push(s);try{h=e.apply(this,c)}catch(f){const p=f;if(d&&r)throw p;return s(p)}d||(h&&h.then&&typeof h.then=="function"?h.then(o,s):h instanceof Error?s(h):o(h))}function s(c,...d){r||(r=!0,t(c,...d))}function o(c){s(null,c)}}const Gr={basename:MR,dirname:OR,extname:RR,join:jR,sep:"/"};function MR(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Lo(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 OR(e){if(Lo(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 RR(e){Lo(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 jR(...e){let t=-1,r;for(;++t<e.length;)Lo(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":DR(r)}function DR(e){Lo(e);const t=e.codePointAt(0)===47;let r=LR(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function LR(e,t){let r="",a=0,s=-1,o=0,c=-1,d,h;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(h=r.lastIndexOf("/"),h!==r.length-1){h<0?(r="",a=0):(r=r.slice(0,h),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 Lo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const zR={cwd:IR};function IR(){return"/"}function rp(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function BR(e){if(typeof e=="string")e=new URL(e);else if(!rp(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 UR(e)}function UR(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 Th=["history","path","basename","stem","extname","dirname"];class Qw{constructor(t){let r;t?rp(t)?r={path:t}:typeof t=="string"||HR(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":zR.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<Th.length;){const o=Th[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)Th.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?Gr.basename(this.path):void 0}set basename(t){Mh(t,"basename"),Ah(t,"basename"),this.path=Gr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Gr.dirname(this.path):void 0}set dirname(t){Xy(this.basename,"dirname"),this.path=Gr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Gr.extname(this.path):void 0}set extname(t){if(Ah(t,"extname"),Xy(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=Gr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){rp(t)&&(t=BR(t)),Mh(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Gr.basename(this.path,this.extname):void 0}set stem(t){Mh(t,"stem"),Ah(t,"stem"),this.path=Gr.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 Mn(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 Ah(e,t){if(e&&e.includes(Gr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Gr.sep+"`")}function Mh(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Xy(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function HR(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}),qR={}.hasOwnProperty;class Vp 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=TR()}copy(){const t=new Vp;let r=-1;for(;++r<this.attachers.length;){const a=this.attachers[r];t.use(...a)}return t.data(Ch(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(jh("data",this.frozen),this.namespace[t]=r,this):qR.call(this.namespace,t)&&this.namespace[t]||void 0:t?(jh("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=iu(t),a=this.parser||this.Parser;return Oh("parse",a),a(String(r),r)}process(t,r){const a=this;return this.freeze(),Oh("process",this.parser||this.Parser),Rh("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(o,c){const d=iu(t),h=a.parse(d);a.run(h,d,function(p,g,b){if(p||!g||!b)return f(p);const y=g,_=a.stringify(y,b);GR(_)?b.value=_:b.result=_,f(p,b)});function f(p,g){p||!g?c(p):o?o(g):r(void 0,g)}}}processSync(t){let r=!1,a;return this.freeze(),Oh("processSync",this.parser||this.Parser),Rh("processSync",this.compiler||this.Compiler),this.process(t,s),Zy("processSync","process",r),a;function s(o,c){r=!0,Vy(o),a=c}}run(t,r,a){Ky(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 h=iu(r);s.run(t,h,f);function f(p,g,b){const y=g||t;p?d(p):c?c(y):a(void 0,y,b)}}}runSync(t,r){let a=!1,s;return this.run(t,r,o),Zy("runSync","run",a),s;function o(c,d){Vy(c),s=d,a=!0}}stringify(t,r){this.freeze();const a=iu(r),s=this.compiler||this.Compiler;return Rh("stringify",s),Ky(t),s(t,a)}use(t,...r){const a=this.attachers,s=this.namespace;if(jh("use",this.frozen),t!=null)if(typeof t=="function")h(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(f){if(typeof f=="function")h(f,[]);else if(typeof f=="object")if(Array.isArray(f)){const[p,...g]=f;h(p,g)}else c(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function c(f){if(!("plugins"in f)&&!("settings"in f))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(f.plugins),f.settings&&(s.settings=Ch(!0,s.settings,f.settings))}function d(f){let p=-1;if(f!=null)if(Array.isArray(f))for(;++p<f.length;){const g=f[p];o(g)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function h(f,p){let g=-1,b=-1;for(;++g<a.length;)if(a[g][0]===f){b=g;break}if(b===-1)a.push([f,...p]);else if(p.length>0){let[y,..._]=p;const N=a[b][1];np(N)&&np(y)&&(y=Ch(!0,N,y)),a[b]=[f,y,..._]}}}}const PR=new Vp().freeze();function Oh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Rh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function jh(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 Ky(e){if(!np(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Zy(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function iu(e){return FR(e)?e:new Qw(e)}function FR(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function GR(e){return typeof e=="string"||VR(e)}function VR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const YR="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Qy=[],Wy={allowDangerousHtml:!0},XR=/^(https?|ircs?|mailto|xmpp)$/i,KR=[{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 Yp(e){const t=ZR(e),r=QR(e);return WR(t.runSync(t.parse(r),r),e)}function ZR(e){const t=e.rehypePlugins||Qy,r=e.remarkPlugins||Qy,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Wy}:Wy;return PR().use(OO).use(r).use(SR,a).use(t)}function QR(e){const t=e.children||"",r=new Qw;return typeof t=="string"&&(r.value=t),r}function WR(e,t){const r=t.allowedElements,a=t.allowElement,s=t.components,o=t.disallowedElements,c=t.skipHtml,d=t.unwrapDisallowed,h=t.urlTransform||JR;for(const p of KR)Object.hasOwn(t,p.from)&&(""+p.from+(p.to?"use `"+p.to+"` instead":"remove it")+YR+p.id,void 0);return Gp(e,f),mM(e,{Fragment:m.Fragment,components:s,ignoreInvalidStyle:!0,jsx:m.jsx,jsxs:m.jsxs,passKeys:!0,passNode:!0});function f(p,g,b){if(p.type==="raw"&&b&&typeof g=="number")return c?b.children.splice(g,1):b.children[g]={type:"text",value:p.value},g;if(p.type==="element"){let y;for(y in Eh)if(Object.hasOwn(Eh,y)&&Object.hasOwn(p.properties,y)){const _=p.properties[y],N=Eh[y];(N===null||N.includes(p.tagName))&&(p.properties[y]=h(String(_||""),y,p))}}if(p.type==="element"){let y=r?!r.includes(p.tagName):o?o.includes(p.tagName):!1;if(!y&&a&&typeof g=="number"&&(y=!a(p,g,b)),y&&b&&typeof g=="number")return d&&p.children?b.children.splice(g,1,...p.children):b.children.splice(g,1),g}}}function JR(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||XR.test(e.slice(0,t))?e:""}function Jy(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 e3(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function t3(e,t,r){const s=Qu((r||{}).ignore||[]),o=n3(t);let c=-1;for(;++c<o.length;)Zw(e,"text",d);function d(f,p){let g=-1,b;for(;++g<p.length;){const y=p[g],_=b?b.children:void 0;if(s(y,_?_.indexOf(y):void 0,b))return;b=y}if(b)return h(f,p)}function h(f,p){const g=p[p.length-1],b=o[c][0],y=o[c][1];let _=0;const S=g.children.indexOf(f);let w=!1,C=[];b.lastIndex=0;let E=b.exec(f.value);for(;E;){const A=E.index,B={index:E.index,input:E.input,stack:[...p,f]};let R=y(...E,B);if(typeof R=="string"&&(R=R.length>0?{type:"text",value:R}:void 0),R===!1?b.lastIndex=A+1:(_!==A&&C.push({type:"text",value:f.value.slice(_,A)}),Array.isArray(R)?C.push(...R):R&&C.push(R),_=A+E[0].length,w=!0),!b.global)break;E=b.exec(f.value)}return w?(_<f.value.length&&C.push({type:"text",value:f.value.slice(_)}),g.children.splice(S,1,...C)):C=[f],S+C.length}}function n3(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([r3(s[0]),i3(s[1])])}return t}function r3(e){return typeof e=="string"?new RegExp(e3(e),"g"):e}function i3(e){return typeof e=="function"?e:function(){return e}}const Dh="phrasing",Lh=["autolink","link","image","label"];function a3(){return{transforms:[f3],enter:{literalAutolink:l3,literalAutolinkEmail:zh,literalAutolinkHttp:zh,literalAutolinkWww:zh},exit:{literalAutolink:d3,literalAutolinkEmail:u3,literalAutolinkHttp:o3,literalAutolinkWww:c3}}}function s3(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Dh,notInConstruct:Lh},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Dh,notInConstruct:Lh},{character:":",before:"[ps]",after:"\\/",inConstruct:Dh,notInConstruct:Lh}]}}function l3(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function zh(e){this.config.enter.autolinkProtocol.call(this,e)}function o3(e){this.config.exit.autolinkProtocol.call(this,e)}function c3(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 u3(e){this.config.exit.autolinkEmail.call(this,e)}function d3(e){this.exit(e)}function f3(e){t3(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,h3],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),m3]],{ignore:["link","linkReference"]})}function h3(e,t,r,a,s){let o="";if(!Ww(s)||(/^w/i.test(t)&&(r=t+r,t="",o="http://"),!p3(r)))return!1;const c=g3(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 m3(e,t,r,a){return!Ww(a,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function p3(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 g3(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=Jy(e,"(");let o=Jy(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 Ww(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Va(r)||Xu(r))&&(!t||r!==47)}Jw.peek=S3;function x3(){this.buffer()}function b3(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function y3(){this.buffer()}function v3(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function _3(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 w3(e){this.exit(e)}function E3(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 S3(){return"["}function Jw(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 k3(){return{enter:{gfmFootnoteCallString:x3,gfmFootnoteCall:b3,gfmFootnoteDefinitionLabelString:y3,gfmFootnoteDefinition:v3},exit:{gfmFootnoteCallString:_3,gfmFootnoteCall:w3,gfmFootnoteDefinitionLabelString:E3,gfmFootnoteDefinition:N3}}}function C3(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:Jw},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(a,s,o,c){const d=o.createTracker(c);let h=d.move("[^");const f=o.enter("footnoteDefinition"),p=o.enter("label");return h+=d.move(o.safe(o.associationId(a),{before:h,after:"]"})),p(),h+=d.move("]:"),a.children&&a.children.length>0&&(d.shift(4),h+=d.move((t?`
-`:" ")+o.indentLines(o.containerFlow(a,d.current()),t?eE:T3))),f(),h}}function T3(e,t,r){return t===0?e:eE(e,t,r)}function eE(e,t,r){return(r?"":" ")+e}const A3=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];tE.peek=D3;function M3(){return{canContainEols:["delete"],enter:{strikethrough:R3},exit:{strikethrough:j3}}}function O3(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:A3}],handlers:{delete:tE}}}function R3(e){this.enter({type:"delete",children:[]},e)}function j3(e){this.exit(e)}function tE(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 D3(){return"~"}function L3(e){return e.length}function z3(e,t){const r=t||{},a=(r.align||[]).concat(),s=r.stringLength||L3,o=[],c=[],d=[],h=[];let f=0,p=-1;for(;++p<e.length;){const N=[],S=[];let w=-1;for(e[p].length>f&&(f=e[p].length);++w<e[p].length;){const C=I3(e[p][w]);if(r.alignDelimiters!==!1){const E=s(C);S[w]=E,(h[w]===void 0||E>h[w])&&(h[w]=E)}N.push(C)}c[p]=N,d[p]=S}let g=-1;if(typeof a=="object"&&"length"in a)for(;++g<f;)o[g]=ev(a[g]);else{const N=ev(a);for(;++g<f;)o[g]=N}g=-1;const b=[],y=[];for(;++g<f;){const N=o[g];let S="",w="";N===99?(S=":",w=":"):N===108?S=":":N===114&&(w=":");let C=r.alignDelimiters===!1?1:Math.max(1,h[g]-S.length-w.length);const E=S+"-".repeat(C)+w;r.alignDelimiters!==!1&&(C=S.length+C+w.length,C>h[g]&&(h[g]=C),y[g]=C),b[g]=E}c.splice(1,0,b),d.splice(1,0,y),p=-1;const _=[];for(;++p<c.length;){const N=c[p],S=d[p];g=-1;const w=[];for(;++g<f;){const C=N[g]||"";let E="",A="";if(r.alignDelimiters!==!1){const B=h[g]-(S[g]||0),R=o[g];R===114?E=" ".repeat(B):R===99?B%2?(E=" ".repeat(B/2+.5),A=" ".repeat(B/2-.5)):(E=" ".repeat(B/2),A=E):A=" ".repeat(B)}r.delimiterStart!==!1&&!g&&w.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&C==="")&&(r.delimiterStart!==!1||g)&&w.push(" "),r.alignDelimiters!==!1&&w.push(E),w.push(C),r.alignDelimiters!==!1&&w.push(A),r.padding!==!1&&w.push(" "),(r.delimiterEnd!==!1||g!==f-1)&&w.push("|")}_.push(r.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return _.join(`
-`)}function I3(e){return e==null?"":String(e)}function ev(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 B3(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()),U3);return s(),c}function U3(e,t,r){return">"+(r?"":" ")+e}function H3(e,t){return tv(e,t.inConstruct,!0)&&!tv(e,t.notInConstruct,!1)}function tv(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 nv(e,t,r,a){let s=-1;for(;++s<r.unsafe.length;)if(r.unsafe[s].character===`
-`&&H3(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 q3(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 P3(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 F3(e,t,r,a){const s=P3(r),o=e.value||"",c=s==="`"?"GraveAccent":"Tilde";if(q3(e,r)){const g=r.enter("codeIndented"),b=r.indentLines(o,G3);return g(),b}const d=r.createTracker(a),h=s.repeat(Math.max($3(o,s)+1,3)),f=r.enter("codeFenced");let p=d.move(h);if(e.lang){const g=r.enter(`codeFencedLang${c}`);p+=d.move(r.safe(e.lang,{before:p,after:" ",encode:["`"],...d.current()})),g()}if(e.lang&&e.meta){const g=r.enter(`codeFencedMeta${c}`);p+=d.move(" "),p+=d.move(r.safe(e.meta,{before:p,after:`
+`}),r}function Fy(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Gy(e,t){const r=_R(e,t),a=r.one(e,void 0),s=dR(r),o=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return s&&o.children.push({type:"text",value:`
+`},s),o}function kR(e,t){return e&&"run"in e?async function(r,a){const s=Gy(r,{file:a,...t});await e.run(s,a)}:function(r,a){return Gy(r,{file:a,...e||t})}}function Vy(e){if(e)throw e}var kh,Yy;function CR(){if(Yy)return kh;Yy=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(f){return typeof Array.isArray=="function"?Array.isArray(f):t.call(f)==="[object Array]"},o=function(f){if(!f||t.call(f)!=="[object Object]")return!1;var p=e.call(f,"constructor"),g=f.constructor&&f.constructor.prototype&&e.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!p&&!g)return!1;var b;for(b in f);return typeof b>"u"||e.call(f,b)},c=function(f,p){r&&p.name==="__proto__"?r(f,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):f[p.name]=p.newValue},d=function(f,p){if(p==="__proto__")if(e.call(f,p)){if(a)return a(f,p).value}else return;return f[p]};return kh=function h(){var f,p,g,b,y,_,N=arguments[0],S=1,w=arguments.length,C=!1;for(typeof N=="boolean"&&(C=N,N=arguments[1]||{},S=2),(N==null||typeof N!="object"&&typeof N!="function")&&(N={});S<w;++S)if(f=arguments[S],f!=null)for(p in f)g=d(N,p),b=d(f,p),N!==b&&(C&&b&&(o(b)||(y=s(b)))?(y?(y=!1,_=g&&s(g)?g:[]):_=g&&o(g)?g:{},c(N,{name:p,newValue:h(C,_,b)})):typeof b<"u"&&c(N,{name:p,newValue:b}));return N},kh}var TR=CR();const Ch=Mo(TR);function np(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 AR(){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(h,...f){const p=e[++o];let g=-1;if(h){c(h);return}for(;++g<s.length;)(f[g]===null||f[g]===void 0)&&(f[g]=s[g]);s=f,p?MR(p,d)(...f):c(null,...f)}}function a(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),t}}function MR(e,t){let r;return a;function a(...c){const d=e.length>c.length;let h;d&&c.push(s);try{h=e.apply(this,c)}catch(f){const p=f;if(d&&r)throw p;return s(p)}d||(h&&h.then&&typeof h.then=="function"?h.then(o,s):h instanceof Error?s(h):o(h))}function s(c,...d){r||(r=!0,t(c,...d))}function o(c){s(null,c)}}const Gr={basename:OR,dirname:RR,extname:jR,join:DR,sep:"/"};function OR(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Lo(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 RR(e){if(Lo(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 jR(e){Lo(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 DR(...e){let t=-1,r;for(;++t<e.length;)Lo(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":LR(r)}function LR(e){Lo(e);const t=e.codePointAt(0)===47;let r=zR(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function zR(e,t){let r="",a=0,s=-1,o=0,c=-1,d,h;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(h=r.lastIndexOf("/"),h!==r.length-1){h<0?(r="",a=0):(r=r.slice(0,h),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 Lo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const IR={cwd:BR};function BR(){return"/"}function rp(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function UR(e){if(typeof e=="string")e=new URL(e);else if(!rp(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 HR(e)}function HR(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 Th=["history","path","basename","stem","extname","dirname"];class Ww{constructor(t){let r;t?rp(t)?r={path:t}:typeof t=="string"||$R(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":IR.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<Th.length;){const o=Th[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)Th.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?Gr.basename(this.path):void 0}set basename(t){Mh(t,"basename"),Ah(t,"basename"),this.path=Gr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Gr.dirname(this.path):void 0}set dirname(t){Xy(this.basename,"dirname"),this.path=Gr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Gr.extname(this.path):void 0}set extname(t){if(Ah(t,"extname"),Xy(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=Gr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){rp(t)&&(t=UR(t)),Mh(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Gr.basename(this.path,this.extname):void 0}set stem(t){Mh(t,"stem"),Ah(t,"stem"),this.path=Gr.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 Mn(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 Ah(e,t){if(e&&e.includes(Gr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Gr.sep+"`")}function Mh(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Xy(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function $R(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const qR=(function(e){const a=this.constructor.prototype,s=a[e],o=function(){return s.apply(o,arguments)};return Object.setPrototypeOf(o,a),o}),PR={}.hasOwnProperty;class Vp extends qR{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=AR()}copy(){const t=new Vp;let r=-1;for(;++r<this.attachers.length;){const a=this.attachers[r];t.use(...a)}return t.data(Ch(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(jh("data",this.frozen),this.namespace[t]=r,this):PR.call(this.namespace,t)&&this.namespace[t]||void 0:t?(jh("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=au(t),a=this.parser||this.Parser;return Oh("parse",a),a(String(r),r)}process(t,r){const a=this;return this.freeze(),Oh("process",this.parser||this.Parser),Rh("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(o,c){const d=au(t),h=a.parse(d);a.run(h,d,function(p,g,b){if(p||!g||!b)return f(p);const y=g,_=a.stringify(y,b);VR(_)?b.value=_:b.result=_,f(p,b)});function f(p,g){p||!g?c(p):o?o(g):r(void 0,g)}}}processSync(t){let r=!1,a;return this.freeze(),Oh("processSync",this.parser||this.Parser),Rh("processSync",this.compiler||this.Compiler),this.process(t,s),Zy("processSync","process",r),a;function s(o,c){r=!0,Vy(o),a=c}}run(t,r,a){Ky(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 h=au(r);s.run(t,h,f);function f(p,g,b){const y=g||t;p?d(p):c?c(y):a(void 0,y,b)}}}runSync(t,r){let a=!1,s;return this.run(t,r,o),Zy("runSync","run",a),s;function o(c,d){Vy(c),s=d,a=!0}}stringify(t,r){this.freeze();const a=au(r),s=this.compiler||this.Compiler;return Rh("stringify",s),Ky(t),s(t,a)}use(t,...r){const a=this.attachers,s=this.namespace;if(jh("use",this.frozen),t!=null)if(typeof t=="function")h(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(f){if(typeof f=="function")h(f,[]);else if(typeof f=="object")if(Array.isArray(f)){const[p,...g]=f;h(p,g)}else c(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function c(f){if(!("plugins"in f)&&!("settings"in f))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(f.plugins),f.settings&&(s.settings=Ch(!0,s.settings,f.settings))}function d(f){let p=-1;if(f!=null)if(Array.isArray(f))for(;++p<f.length;){const g=f[p];o(g)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function h(f,p){let g=-1,b=-1;for(;++g<a.length;)if(a[g][0]===f){b=g;break}if(b===-1)a.push([f,...p]);else if(p.length>0){let[y,..._]=p;const N=a[b][1];np(N)&&np(y)&&(y=Ch(!0,N,y)),a[b]=[f,y,..._]}}}}const FR=new Vp().freeze();function Oh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Rh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function jh(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 Ky(e){if(!np(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Zy(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function au(e){return GR(e)?e:new Ww(e)}function GR(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function VR(e){return typeof e=="string"||YR(e)}function YR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const XR="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Qy=[],Wy={allowDangerousHtml:!0},KR=/^(https?|ircs?|mailto|xmpp)$/i,ZR=[{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 Yp(e){const t=QR(e),r=WR(e);return JR(t.runSync(t.parse(r),r),e)}function QR(e){const t=e.rehypePlugins||Qy,r=e.remarkPlugins||Qy,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Wy}:Wy;return FR().use(RO).use(r).use(kR,a).use(t)}function WR(e){const t=e.children||"",r=new Ww;return typeof t=="string"&&(r.value=t),r}function JR(e,t){const r=t.allowedElements,a=t.allowElement,s=t.components,o=t.disallowedElements,c=t.skipHtml,d=t.unwrapDisallowed,h=t.urlTransform||e3;for(const p of ZR)Object.hasOwn(t,p.from)&&(""+p.from+(p.to?"use `"+p.to+"` instead":"remove it")+XR+p.id,void 0);return Gp(e,f),pM(e,{Fragment:m.Fragment,components:s,ignoreInvalidStyle:!0,jsx:m.jsx,jsxs:m.jsxs,passKeys:!0,passNode:!0});function f(p,g,b){if(p.type==="raw"&&b&&typeof g=="number")return c?b.children.splice(g,1):b.children[g]={type:"text",value:p.value},g;if(p.type==="element"){let y;for(y in Eh)if(Object.hasOwn(Eh,y)&&Object.hasOwn(p.properties,y)){const _=p.properties[y],N=Eh[y];(N===null||N.includes(p.tagName))&&(p.properties[y]=h(String(_||""),y,p))}}if(p.type==="element"){let y=r?!r.includes(p.tagName):o?o.includes(p.tagName):!1;if(!y&&a&&typeof g=="number"&&(y=!a(p,g,b)),y&&b&&typeof g=="number")return d&&p.children?b.children.splice(g,1,...p.children):b.children.splice(g,1),g}}}function e3(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||KR.test(e.slice(0,t))?e:""}function Jy(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 t3(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function n3(e,t,r){const s=Wu((r||{}).ignore||[]),o=r3(t);let c=-1;for(;++c<o.length;)Qw(e,"text",d);function d(f,p){let g=-1,b;for(;++g<p.length;){const y=p[g],_=b?b.children:void 0;if(s(y,_?_.indexOf(y):void 0,b))return;b=y}if(b)return h(f,p)}function h(f,p){const g=p[p.length-1],b=o[c][0],y=o[c][1];let _=0;const S=g.children.indexOf(f);let w=!1,C=[];b.lastIndex=0;let E=b.exec(f.value);for(;E;){const A=E.index,B={index:E.index,input:E.input,stack:[...p,f]};let R=y(...E,B);if(typeof R=="string"&&(R=R.length>0?{type:"text",value:R}:void 0),R===!1?b.lastIndex=A+1:(_!==A&&C.push({type:"text",value:f.value.slice(_,A)}),Array.isArray(R)?C.push(...R):R&&C.push(R),_=A+E[0].length,w=!0),!b.global)break;E=b.exec(f.value)}return w?(_<f.value.length&&C.push({type:"text",value:f.value.slice(_)}),g.children.splice(S,1,...C)):C=[f],S+C.length}}function r3(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([i3(s[0]),a3(s[1])])}return t}function i3(e){return typeof e=="string"?new RegExp(t3(e),"g"):e}function a3(e){return typeof e=="function"?e:function(){return e}}const Dh="phrasing",Lh=["autolink","link","image","label"];function s3(){return{transforms:[h3],enter:{literalAutolink:o3,literalAutolinkEmail:zh,literalAutolinkHttp:zh,literalAutolinkWww:zh},exit:{literalAutolink:f3,literalAutolinkEmail:d3,literalAutolinkHttp:c3,literalAutolinkWww:u3}}}function l3(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Dh,notInConstruct:Lh},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Dh,notInConstruct:Lh},{character:":",before:"[ps]",after:"\\/",inConstruct:Dh,notInConstruct:Lh}]}}function o3(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function zh(e){this.config.enter.autolinkProtocol.call(this,e)}function c3(e){this.config.exit.autolinkProtocol.call(this,e)}function u3(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 d3(e){this.config.exit.autolinkEmail.call(this,e)}function f3(e){this.exit(e)}function h3(e){n3(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,m3],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),p3]],{ignore:["link","linkReference"]})}function m3(e,t,r,a,s){let o="";if(!Jw(s)||(/^w/i.test(t)&&(r=t+r,t="",o="http://"),!g3(r)))return!1;const c=x3(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 p3(e,t,r,a){return!Jw(a,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function g3(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 x3(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=Jy(e,"(");let o=Jy(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 Jw(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Va(r)||Ku(r))&&(!t||r!==47)}eE.peek=k3;function b3(){this.buffer()}function y3(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function v3(){this.buffer()}function _3(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function w3(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 E3(e){this.exit(e)}function N3(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 S3(e){this.exit(e)}function k3(){return"["}function eE(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 C3(){return{enter:{gfmFootnoteCallString:b3,gfmFootnoteCall:y3,gfmFootnoteDefinitionLabelString:v3,gfmFootnoteDefinition:_3},exit:{gfmFootnoteCallString:w3,gfmFootnoteCall:E3,gfmFootnoteDefinitionLabelString:N3,gfmFootnoteDefinition:S3}}}function T3(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:eE},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(a,s,o,c){const d=o.createTracker(c);let h=d.move("[^");const f=o.enter("footnoteDefinition"),p=o.enter("label");return h+=d.move(o.safe(o.associationId(a),{before:h,after:"]"})),p(),h+=d.move("]:"),a.children&&a.children.length>0&&(d.shift(4),h+=d.move((t?`
+`:" ")+o.indentLines(o.containerFlow(a,d.current()),t?tE:A3))),f(),h}}function A3(e,t,r){return t===0?e:tE(e,t,r)}function tE(e,t,r){return(r?"":" ")+e}const M3=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];nE.peek=L3;function O3(){return{canContainEols:["delete"],enter:{strikethrough:j3},exit:{strikethrough:D3}}}function R3(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:M3}],handlers:{delete:nE}}}function j3(e){this.enter({type:"delete",children:[]},e)}function D3(e){this.exit(e)}function nE(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 L3(){return"~"}function z3(e){return e.length}function I3(e,t){const r=t||{},a=(r.align||[]).concat(),s=r.stringLength||z3,o=[],c=[],d=[],h=[];let f=0,p=-1;for(;++p<e.length;){const N=[],S=[];let w=-1;for(e[p].length>f&&(f=e[p].length);++w<e[p].length;){const C=B3(e[p][w]);if(r.alignDelimiters!==!1){const E=s(C);S[w]=E,(h[w]===void 0||E>h[w])&&(h[w]=E)}N.push(C)}c[p]=N,d[p]=S}let g=-1;if(typeof a=="object"&&"length"in a)for(;++g<f;)o[g]=ev(a[g]);else{const N=ev(a);for(;++g<f;)o[g]=N}g=-1;const b=[],y=[];for(;++g<f;){const N=o[g];let S="",w="";N===99?(S=":",w=":"):N===108?S=":":N===114&&(w=":");let C=r.alignDelimiters===!1?1:Math.max(1,h[g]-S.length-w.length);const E=S+"-".repeat(C)+w;r.alignDelimiters!==!1&&(C=S.length+C+w.length,C>h[g]&&(h[g]=C),y[g]=C),b[g]=E}c.splice(1,0,b),d.splice(1,0,y),p=-1;const _=[];for(;++p<c.length;){const N=c[p],S=d[p];g=-1;const w=[];for(;++g<f;){const C=N[g]||"";let E="",A="";if(r.alignDelimiters!==!1){const B=h[g]-(S[g]||0),R=o[g];R===114?E=" ".repeat(B):R===99?B%2?(E=" ".repeat(B/2+.5),A=" ".repeat(B/2-.5)):(E=" ".repeat(B/2),A=E):A=" ".repeat(B)}r.delimiterStart!==!1&&!g&&w.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&C==="")&&(r.delimiterStart!==!1||g)&&w.push(" "),r.alignDelimiters!==!1&&w.push(E),w.push(C),r.alignDelimiters!==!1&&w.push(A),r.padding!==!1&&w.push(" "),(r.delimiterEnd!==!1||g!==f-1)&&w.push("|")}_.push(r.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return _.join(`
+`)}function B3(e){return e==null?"":String(e)}function ev(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 U3(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()),H3);return s(),c}function H3(e,t,r){return">"+(r?"":" ")+e}function $3(e,t){return tv(e,t.inConstruct,!0)&&!tv(e,t.notInConstruct,!1)}function tv(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 nv(e,t,r,a){let s=-1;for(;++s<r.unsafe.length;)if(r.unsafe[s].character===`
+`&&$3(r.stack,r.unsafe[s]))return/[ \t]/.test(a.before)?"":" ";return`\\
+`}function q3(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 P3(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 F3(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 G3(e,t,r,a){const s=F3(r),o=e.value||"",c=s==="`"?"GraveAccent":"Tilde";if(P3(e,r)){const g=r.enter("codeIndented"),b=r.indentLines(o,V3);return g(),b}const d=r.createTracker(a),h=s.repeat(Math.max(q3(o,s)+1,3)),f=r.enter("codeFenced");let p=d.move(h);if(e.lang){const g=r.enter(`codeFencedLang${c}`);p+=d.move(r.safe(e.lang,{before:p,after:" ",encode:["`"],...d.current()})),g()}if(e.lang&&e.meta){const g=r.enter(`codeFencedMeta${c}`);p+=d.move(" "),p+=d.move(r.safe(e.meta,{before:p,after:`
`,encode:["`"],...d.current()})),g()}return p+=d.move(`
`),o&&(p+=d.move(o+`
-`)),p+=d.move(h),f(),p}function G3(e,t,r){return(r?"":" ")+e}function Xp(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 V3(e,t,r,a){const s=Xp(r),o=s==='"'?"Quote":"Apostrophe",c=r.enter("definition");let d=r.enter("label");const h=r.createTracker(a);let f=h.move("[");return f+=h.move(r.safe(r.associationId(e),{before:f,after:"]",...h.current()})),f+=h.move("]: "),d(),!e.url||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),f+=h.move("<"),f+=h.move(r.safe(e.url,{before:f,after:">",...h.current()})),f+=h.move(">")):(d=r.enter("destinationRaw"),f+=h.move(r.safe(e.url,{before:f,after:e.title?" ":`
-`,...h.current()}))),d(),e.title&&(d=r.enter(`title${o}`),f+=h.move(" "+s),f+=h.move(r.safe(e.title,{before:f,after:s,...h.current()})),f+=h.move(s),d()),c(),f}function Y3(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 bo(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Au(e,t,r){const a=Xs(e),s=Xs(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}}nE.peek=X3;function nE(e,t,r,a){const s=Y3(r),o=r.enter("emphasis"),c=r.createTracker(a),d=c.move(s);let h=c.move(r.containerPhrasing(e,{after:s,before:d,...c.current()}));const f=h.charCodeAt(0),p=Au(a.before.charCodeAt(a.before.length-1),f,s);p.inside&&(h=bo(f)+h.slice(1));const g=h.charCodeAt(h.length-1),b=Au(a.after.charCodeAt(0),g,s);b.inside&&(h=h.slice(0,-1)+bo(g));const y=c.move(s);return o(),r.attentionEncodeSurroundingInfo={after:b.outside,before:p.outside},d+h+y}function X3(e,t,r){return r.options.emphasis||"*"}function K3(e,t){let r=!1;return Gp(e,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return r=!0,ep}),!!((!e.depth||e.depth<3)&&Bp(e)&&(t.options.setext||r))}function Z3(e,t,r,a){const s=Math.max(Math.min(6,e.depth||1),1),o=r.createTracker(a);if(K3(e,r)){const p=r.enter("headingSetext"),g=r.enter("phrasing"),b=r.containerPhrasing(e,{...o.current(),before:`
+`)),p+=d.move(h),f(),p}function V3(e,t,r){return(r?"":" ")+e}function Xp(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 Y3(e,t,r,a){const s=Xp(r),o=s==='"'?"Quote":"Apostrophe",c=r.enter("definition");let d=r.enter("label");const h=r.createTracker(a);let f=h.move("[");return f+=h.move(r.safe(r.associationId(e),{before:f,after:"]",...h.current()})),f+=h.move("]: "),d(),!e.url||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),f+=h.move("<"),f+=h.move(r.safe(e.url,{before:f,after:">",...h.current()})),f+=h.move(">")):(d=r.enter("destinationRaw"),f+=h.move(r.safe(e.url,{before:f,after:e.title?" ":`
+`,...h.current()}))),d(),e.title&&(d=r.enter(`title${o}`),f+=h.move(" "+s),f+=h.move(r.safe(e.title,{before:f,after:s,...h.current()})),f+=h.move(s),d()),c(),f}function X3(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 bo(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Mu(e,t,r){const a=Xs(e),s=Xs(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}}rE.peek=K3;function rE(e,t,r,a){const s=X3(r),o=r.enter("emphasis"),c=r.createTracker(a),d=c.move(s);let h=c.move(r.containerPhrasing(e,{after:s,before:d,...c.current()}));const f=h.charCodeAt(0),p=Mu(a.before.charCodeAt(a.before.length-1),f,s);p.inside&&(h=bo(f)+h.slice(1));const g=h.charCodeAt(h.length-1),b=Mu(a.after.charCodeAt(0),g,s);b.inside&&(h=h.slice(0,-1)+bo(g));const y=c.move(s);return o(),r.attentionEncodeSurroundingInfo={after:b.outside,before:p.outside},d+h+y}function K3(e,t,r){return r.options.emphasis||"*"}function Z3(e,t){let r=!1;return Gp(e,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return r=!0,ep}),!!((!e.depth||e.depth<3)&&Bp(e)&&(t.options.setext||r))}function Q3(e,t,r,a){const s=Math.max(Math.min(6,e.depth||1),1),o=r.createTracker(a);if(Z3(e,r)){const p=r.enter("headingSetext"),g=r.enter("phrasing"),b=r.containerPhrasing(e,{...o.current(),before:`
`,after:`
`});return g(),p(),b+`
`+(s===1?"=":"-").repeat(b.length-(Math.max(b.lastIndexOf("\r"),b.lastIndexOf(`
`))+1))}const c="#".repeat(s),d=r.enter("headingAtx"),h=r.enter("phrasing");o.move(c+" ");let f=r.containerPhrasing(e,{before:"# ",after:`
-`,...o.current()});return/^[\t ]/.test(f)&&(f=bo(f.charCodeAt(0))+f.slice(1)),f=f?c+" "+f:c,r.options.closeAtx&&(f+=" "+c),h(),d(),f}rE.peek=Q3;function rE(e){return e.value||""}function Q3(){return"<"}iE.peek=W3;function iE(e,t,r,a){const s=Xp(r),o=s==='"'?"Quote":"Apostrophe",c=r.enter("image");let d=r.enter("label");const h=r.createTracker(a);let f=h.move("![");return f+=h.move(r.safe(e.alt,{before:f,after:"]",...h.current()})),f+=h.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),f+=h.move("<"),f+=h.move(r.safe(e.url,{before:f,after:">",...h.current()})),f+=h.move(">")):(d=r.enter("destinationRaw"),f+=h.move(r.safe(e.url,{before:f,after:e.title?" ":")",...h.current()}))),d(),e.title&&(d=r.enter(`title${o}`),f+=h.move(" "+s),f+=h.move(r.safe(e.title,{before:f,after:s,...h.current()})),f+=h.move(s),d()),f+=h.move(")"),c(),f}function W3(){return"!"}aE.peek=J3;function aE(e,t,r,a){const s=e.referenceType,o=r.enter("imageReference");let c=r.enter("label");const d=r.createTracker(a);let h=d.move("![");const f=r.safe(e.alt,{before:h,after:"]",...d.current()});h+=d.move(f+"]["),c();const p=r.stack;r.stack=[],c=r.enter("reference");const g=r.safe(r.associationId(e),{before:h,after:"]",...d.current()});return c(),r.stack=p,o(),s==="full"||!f||f!==g?h+=d.move(g+"]"):s==="shortcut"?h=h.slice(0,-1):h+=d.move("]"),h}function J3(){return"!"}sE.peek=e4;function sE(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 h;if(c.atBreak)for(;h=d.exec(a);){let f=h.index;a.charCodeAt(f)===10&&a.charCodeAt(f-1)===13&&f--,a=a.slice(0,f)+" "+a.slice(h.index+1)}}return s+a+s}function e4(){return"`"}function lE(e,t){const r=Bp(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))}oE.peek=t4;function oE(e,t,r,a){const s=Xp(r),o=s==='"'?"Quote":"Apostrophe",c=r.createTracker(a);let d,h;if(lE(e,r)){const p=r.stack;r.stack=[],d=r.enter("autolink");let g=c.move("<");return g+=c.move(r.containerPhrasing(e,{before:g,after:">",...c.current()})),g+=c.move(">"),d(),r.stack=p,g}d=r.enter("link"),h=r.enter("label");let f=c.move("[");return f+=c.move(r.containerPhrasing(e,{before:f,after:"](",...c.current()})),f+=c.move("]("),h(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(h=r.enter("destinationLiteral"),f+=c.move("<"),f+=c.move(r.safe(e.url,{before:f,after:">",...c.current()})),f+=c.move(">")):(h=r.enter("destinationRaw"),f+=c.move(r.safe(e.url,{before:f,after:e.title?" ":")",...c.current()}))),h(),e.title&&(h=r.enter(`title${o}`),f+=c.move(" "+s),f+=c.move(r.safe(e.title,{before:f,after:s,...c.current()})),f+=c.move(s),h()),f+=c.move(")"),d(),f}function t4(e,t,r){return lE(e,r)?"<":"["}cE.peek=n4;function cE(e,t,r,a){const s=e.referenceType,o=r.enter("linkReference");let c=r.enter("label");const d=r.createTracker(a);let h=d.move("[");const f=r.containerPhrasing(e,{before:h,after:"]",...d.current()});h+=d.move(f+"]["),c();const p=r.stack;r.stack=[],c=r.enter("reference");const g=r.safe(r.associationId(e),{before:h,after:"]",...d.current()});return c(),r.stack=p,o(),s==="full"||!f||f!==g?h+=d.move(g+"]"):s==="shortcut"?h=h.slice(0,-1):h+=d.move("]"),h}function n4(){return"["}function Kp(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 r4(e){const t=Kp(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 i4(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 uE(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 a4(e,t,r,a){const s=r.enter("list"),o=r.bulletCurrent;let c=e.ordered?i4(r):Kp(r);const d=e.ordered?c==="."?")":".":r4(r);let h=t&&r.bulletLastUsed?c===r.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&p&&(!p.children||!p.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&&(h=!0),uE(r)===c&&p){let g=-1;for(;++g<e.children.length;){const b=e.children[g];if(b&&b.type==="listItem"&&b.children&&b.children[0]&&b.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(c=d),r.bulletCurrent=c;const f=r.containerFlow(e,a);return r.bulletLastUsed=c,r.bulletCurrent=o,s(),f}function s4(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 l4(e,t,r,a){const s=s4(r);let o=r.bulletCurrent||Kp(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 h=r.enter("listItem"),f=r.indentLines(r.containerFlow(e,d.current()),p);return h(),f;function p(g,b,y){return b?(y?"":" ".repeat(c))+g:(y?o:o+" ".repeat(c-o.length))+g}}function o4(e,t,r,a){const s=r.enter("paragraph"),o=r.enter("phrasing"),c=r.containerPhrasing(e,a);return o(),s(),c}const c4=Qu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function u4(e,t,r,a){return(e.children.some(function(c){return c4(c)})?r.containerPhrasing:r.containerFlow).call(r,e,a)}function d4(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}dE.peek=f4;function dE(e,t,r,a){const s=d4(r),o=r.enter("strong"),c=r.createTracker(a),d=c.move(s+s);let h=c.move(r.containerPhrasing(e,{after:s,before:d,...c.current()}));const f=h.charCodeAt(0),p=Au(a.before.charCodeAt(a.before.length-1),f,s);p.inside&&(h=bo(f)+h.slice(1));const g=h.charCodeAt(h.length-1),b=Au(a.after.charCodeAt(0),g,s);b.inside&&(h=h.slice(0,-1)+bo(g));const y=c.move(s+s);return o(),r.attentionEncodeSurroundingInfo={after:b.outside,before:p.outside},d+h+y}function f4(e,t,r){return r.options.strong||"*"}function h4(e,t,r,a){return r.safe(e.value,a)}function m4(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 p4(e,t,r){const a=(uE(r)+(r.options.ruleSpaces?" ":"")).repeat(m4(r));return r.options.ruleSpaces?a.slice(0,-1):a}const fE={blockquote:B3,break:nv,code:F3,definition:V3,emphasis:nE,hardBreak:nv,heading:Z3,html:rE,image:iE,imageReference:aE,inlineCode:sE,link:oE,linkReference:cE,list:a4,listItem:l4,paragraph:o4,root:u4,strong:dE,text:h4,thematicBreak:p4};function g4(){return{enter:{table:x4,tableData:rv,tableHeader:rv,tableRow:y4},exit:{codeText:v4,table:b4,tableData:Ih,tableHeader:Ih,tableRow:Ih}}}function x4(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 b4(e){this.exit(e),this.data.inTable=void 0}function y4(e){this.enter({type:"tableRow",children:[]},e)}function Ih(e){this.exit(e)}function rv(e){this.enter({type:"tableCell",children:[]},e)}function v4(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,_4));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function _4(e,t){return t==="|"?t:e}function w4(e){const t=e||{},r=t.tableCellPadding,a=t.tablePipeAlign,s=t.stringLength,o=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
+`,...o.current()});return/^[\t ]/.test(f)&&(f=bo(f.charCodeAt(0))+f.slice(1)),f=f?c+" "+f:c,r.options.closeAtx&&(f+=" "+c),h(),d(),f}iE.peek=W3;function iE(e){return e.value||""}function W3(){return"<"}aE.peek=J3;function aE(e,t,r,a){const s=Xp(r),o=s==='"'?"Quote":"Apostrophe",c=r.enter("image");let d=r.enter("label");const h=r.createTracker(a);let f=h.move("![");return f+=h.move(r.safe(e.alt,{before:f,after:"]",...h.current()})),f+=h.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),f+=h.move("<"),f+=h.move(r.safe(e.url,{before:f,after:">",...h.current()})),f+=h.move(">")):(d=r.enter("destinationRaw"),f+=h.move(r.safe(e.url,{before:f,after:e.title?" ":")",...h.current()}))),d(),e.title&&(d=r.enter(`title${o}`),f+=h.move(" "+s),f+=h.move(r.safe(e.title,{before:f,after:s,...h.current()})),f+=h.move(s),d()),f+=h.move(")"),c(),f}function J3(){return"!"}sE.peek=e4;function sE(e,t,r,a){const s=e.referenceType,o=r.enter("imageReference");let c=r.enter("label");const d=r.createTracker(a);let h=d.move("![");const f=r.safe(e.alt,{before:h,after:"]",...d.current()});h+=d.move(f+"]["),c();const p=r.stack;r.stack=[],c=r.enter("reference");const g=r.safe(r.associationId(e),{before:h,after:"]",...d.current()});return c(),r.stack=p,o(),s==="full"||!f||f!==g?h+=d.move(g+"]"):s==="shortcut"?h=h.slice(0,-1):h+=d.move("]"),h}function e4(){return"!"}lE.peek=t4;function lE(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 h;if(c.atBreak)for(;h=d.exec(a);){let f=h.index;a.charCodeAt(f)===10&&a.charCodeAt(f-1)===13&&f--,a=a.slice(0,f)+" "+a.slice(h.index+1)}}return s+a+s}function t4(){return"`"}function oE(e,t){const r=Bp(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))}cE.peek=n4;function cE(e,t,r,a){const s=Xp(r),o=s==='"'?"Quote":"Apostrophe",c=r.createTracker(a);let d,h;if(oE(e,r)){const p=r.stack;r.stack=[],d=r.enter("autolink");let g=c.move("<");return g+=c.move(r.containerPhrasing(e,{before:g,after:">",...c.current()})),g+=c.move(">"),d(),r.stack=p,g}d=r.enter("link"),h=r.enter("label");let f=c.move("[");return f+=c.move(r.containerPhrasing(e,{before:f,after:"](",...c.current()})),f+=c.move("]("),h(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(h=r.enter("destinationLiteral"),f+=c.move("<"),f+=c.move(r.safe(e.url,{before:f,after:">",...c.current()})),f+=c.move(">")):(h=r.enter("destinationRaw"),f+=c.move(r.safe(e.url,{before:f,after:e.title?" ":")",...c.current()}))),h(),e.title&&(h=r.enter(`title${o}`),f+=c.move(" "+s),f+=c.move(r.safe(e.title,{before:f,after:s,...c.current()})),f+=c.move(s),h()),f+=c.move(")"),d(),f}function n4(e,t,r){return oE(e,r)?"<":"["}uE.peek=r4;function uE(e,t,r,a){const s=e.referenceType,o=r.enter("linkReference");let c=r.enter("label");const d=r.createTracker(a);let h=d.move("[");const f=r.containerPhrasing(e,{before:h,after:"]",...d.current()});h+=d.move(f+"]["),c();const p=r.stack;r.stack=[],c=r.enter("reference");const g=r.safe(r.associationId(e),{before:h,after:"]",...d.current()});return c(),r.stack=p,o(),s==="full"||!f||f!==g?h+=d.move(g+"]"):s==="shortcut"?h=h.slice(0,-1):h+=d.move("]"),h}function r4(){return"["}function Kp(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 i4(e){const t=Kp(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 a4(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 dE(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 s4(e,t,r,a){const s=r.enter("list"),o=r.bulletCurrent;let c=e.ordered?a4(r):Kp(r);const d=e.ordered?c==="."?")":".":i4(r);let h=t&&r.bulletLastUsed?c===r.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&p&&(!p.children||!p.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&&(h=!0),dE(r)===c&&p){let g=-1;for(;++g<e.children.length;){const b=e.children[g];if(b&&b.type==="listItem"&&b.children&&b.children[0]&&b.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(c=d),r.bulletCurrent=c;const f=r.containerFlow(e,a);return r.bulletLastUsed=c,r.bulletCurrent=o,s(),f}function l4(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 o4(e,t,r,a){const s=l4(r);let o=r.bulletCurrent||Kp(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 h=r.enter("listItem"),f=r.indentLines(r.containerFlow(e,d.current()),p);return h(),f;function p(g,b,y){return b?(y?"":" ".repeat(c))+g:(y?o:o+" ".repeat(c-o.length))+g}}function c4(e,t,r,a){const s=r.enter("paragraph"),o=r.enter("phrasing"),c=r.containerPhrasing(e,a);return o(),s(),c}const u4=Wu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function d4(e,t,r,a){return(e.children.some(function(c){return u4(c)})?r.containerPhrasing:r.containerFlow).call(r,e,a)}function f4(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}fE.peek=h4;function fE(e,t,r,a){const s=f4(r),o=r.enter("strong"),c=r.createTracker(a),d=c.move(s+s);let h=c.move(r.containerPhrasing(e,{after:s,before:d,...c.current()}));const f=h.charCodeAt(0),p=Mu(a.before.charCodeAt(a.before.length-1),f,s);p.inside&&(h=bo(f)+h.slice(1));const g=h.charCodeAt(h.length-1),b=Mu(a.after.charCodeAt(0),g,s);b.inside&&(h=h.slice(0,-1)+bo(g));const y=c.move(s+s);return o(),r.attentionEncodeSurroundingInfo={after:b.outside,before:p.outside},d+h+y}function h4(e,t,r){return r.options.strong||"*"}function m4(e,t,r,a){return r.safe(e.value,a)}function p4(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 g4(e,t,r){const a=(dE(r)+(r.options.ruleSpaces?" ":"")).repeat(p4(r));return r.options.ruleSpaces?a.slice(0,-1):a}const hE={blockquote:U3,break:nv,code:G3,definition:Y3,emphasis:rE,hardBreak:nv,heading:Q3,html:iE,image:aE,imageReference:sE,inlineCode:lE,link:cE,linkReference:uE,list:s4,listItem:o4,paragraph:c4,root:d4,strong:fE,text:m4,thematicBreak:g4};function x4(){return{enter:{table:b4,tableData:rv,tableHeader:rv,tableRow:v4},exit:{codeText:_4,table:y4,tableData:Ih,tableHeader:Ih,tableRow:Ih}}}function b4(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 y4(e){this.exit(e),this.data.inTable=void 0}function v4(e){this.enter({type:"tableRow",children:[]},e)}function Ih(e){this.exit(e)}function rv(e){this.enter({type:"tableCell",children:[]},e)}function _4(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,w4));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function w4(e,t){return t==="|"?t:e}function E4(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:b,table:c,tableCell:h,tableRow:d}};function c(y,_,N,S){return f(p(y,N,S),y.align)}function d(y,_,N,S){const w=g(y,N,S),C=f([w]);return C.slice(0,C.indexOf(`
-`))}function h(y,_,N,S){const w=N.enter("tableCell"),C=N.enter("phrasing"),E=N.containerPhrasing(y,{...S,before:o,after:o});return C(),w(),E}function f(y,_){return z3(y,{align:_,alignDelimiters:a,padding:r,stringLength:s})}function p(y,_,N){const S=y.children;let w=-1;const C=[],E=_.enter("table");for(;++w<S.length;)C[w]=g(S[w],_,N);return E(),C}function g(y,_,N){const S=y.children;let w=-1;const C=[],E=_.enter("tableRow");for(;++w<S.length;)C[w]=h(S[w],y,_,N);return E(),C}function b(y,_,N){let S=fE.inlineCode(y,_,N);return N.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function E4(){return{exit:{taskListCheckValueChecked:iv,taskListCheckValueUnchecked:iv,paragraph:S4}}}function N4(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:k4}}}function iv(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function S4(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 k4(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 h=fE.listItem(e,t,r,{...a,...d.current()});return o&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,f)),h;function f(p){return p+c}}function C4(){return[a3(),k3(),M3(),g4(),E4()]}function T4(e){return{extensions:[s3(),C3(e),O3(),w4(e),N4()]}}const A4={tokenize:L4,partial:!0},hE={tokenize:z4,partial:!0},mE={tokenize:I4,partial:!0},pE={tokenize:B4,partial:!0},M4={tokenize:U4,partial:!0},gE={name:"wwwAutolink",tokenize:j4,previous:bE},xE={name:"protocolAutolink",tokenize:D4,previous:yE},Ni={name:"emailAutolink",tokenize:R4,previous:vE},Kr={};function O4(){return{text:Kr}}let Ia=48;for(;Ia<123;)Kr[Ia]=Ni,Ia++,Ia===58?Ia=65:Ia===91&&(Ia=97);Kr[43]=Ni;Kr[45]=Ni;Kr[46]=Ni;Kr[95]=Ni;Kr[72]=[Ni,xE];Kr[104]=[Ni,xE];Kr[87]=[Ni,gE];Kr[119]=[Ni,gE];function R4(e,t,r){const a=this;let s,o;return c;function c(g){return!ip(g)||!vE.call(a,a.previous)||Zp(a.events)?r(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(g))}function d(g){return ip(g)?(e.consume(g),d):g===64?(e.consume(g),h):r(g)}function h(g){return g===46?e.check(M4,p,f)(g):g===45||g===95||An(g)?(o=!0,e.consume(g),h):p(g)}function f(g){return e.consume(g),s=!0,h}function p(g){return o&&s&&Ln(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(g)):r(g)}}function j4(e,t,r){const a=this;return s;function s(c){return c!==87&&c!==119||!bE.call(a,a.previous)||Zp(a.events)?r(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(A4,e.attempt(hE,e.attempt(mE,o),r),r)(c))}function o(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(c)}}function D4(e,t,r){const a=this;let s="",o=!1;return c;function c(g){return(g===72||g===104)&&yE.call(a,a.previous)&&!Zp(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(g),e.consume(g),d):r(g)}function d(g){if(Ln(g)&&s.length<5)return s+=String.fromCodePoint(g),e.consume(g),d;if(g===58){const b=s.toLowerCase();if(b==="http"||b==="https")return e.consume(g),h}return r(g)}function h(g){return g===47?(e.consume(g),o?f:(o=!0,h)):r(g)}function f(g){return g===null||ku(g)||Tt(g)||Va(g)||Xu(g)?r(g):e.attempt(hE,e.attempt(mE,p),r)(g)}function p(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(g)}}function L4(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 z4(e,t,r){let a,s,o;return c;function c(f){return f===46||f===95?e.check(pE,h,d)(f):f===null||Tt(f)||Va(f)||f!==45&&Xu(f)?h(f):(o=!0,e.consume(f),c)}function d(f){return f===95?a=!0:(s=a,a=void 0),e.consume(f),c}function h(f){return s||a||!o?r(f):t(f)}}function I4(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(pE,t,o)(c):c===null||Tt(c)||Va(c)?t(c):(e.consume(c),s)}function o(c){return c===41&&a++,e.consume(c),s}}function B4(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||Tt(d)||Va(d)?t(d):r(d)}function s(d){return d===null||d===40||d===91||Tt(d)||Va(d)?t(d):a(d)}function o(d){return Ln(d)?c(d):r(d)}function c(d){return d===59?(e.consume(d),a):Ln(d)?(e.consume(d),c):r(d)}}function U4(e,t,r){return a;function a(o){return e.consume(o),s}function s(o){return An(o)?r(o):t(o)}}function bE(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Tt(e)}function yE(e){return!Ln(e)}function vE(e){return!(e===47||ip(e))}function ip(e){return e===43||e===45||e===46||e===95||An(e)}function Zp(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 H4={tokenize:X4,partial:!0};function $4(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:G4,continuation:{tokenize:V4},exit:Y4}},text:{91:{name:"gfmFootnoteCall",tokenize:F4},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:q4,resolveTo:P4}}}}function q4(e,t,r){const a=this;let s=a.events.length;const o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c;for(;s--;){const h=a.events[s][1];if(h.type==="labelImage"){c=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return d;function d(h){if(!c||!c._balanced)return r(h);const f=Dr(a.sliceSerialize({start:c.end,end:a.now()}));return f.codePointAt(0)!==94||!o.includes(f.slice(1))?r(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),t(h))}}function P4(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 F4(e,t,r){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let o=0,c;return d;function d(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),h}function h(g){return g!==94?r(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",f)}function f(g){if(o>999||g===93&&!c||g===null||g===91||Tt(g))return r(g);if(g===93){e.exit("chunkString");const b=e.exit("gfmFootnoteCallString");return s.includes(Dr(a.sliceSerialize(b)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(g)}return Tt(g)||(c=!0),o++,e.consume(g),g===92?p:f}function p(g){return g===91||g===92||g===93?(e.consume(g),o++,f):f(g)}}function G4(e,t,r){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let o,c=0,d;return h;function h(_){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionLabelMarker"),f}function f(_){return _===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):r(_)}function p(_){if(c>999||_===93&&!d||_===null||_===91||Tt(_))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"),b}return Tt(_)||(d=!0),c++,e.consume(_),_===92?g:p}function g(_){return _===91||_===92||_===93?(e.consume(_),c++,p):p(_)}function b(_){return _===58?(e.enter("definitionMarker"),e.consume(_),e.exit("definitionMarker"),s.includes(o)||s.push(o),ot(e,y,"gfmFootnoteDefinitionWhitespace")):r(_)}function y(_){return t(_)}}function V4(e,t,r){return e.check(Do,t,e.attempt(H4,t,r))}function Y4(e){e.exit("gfmFootnoteDefinition")}function X4(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 K4(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 h=-1;for(;++h<c.length;)if(c[h][0]==="enter"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._close){let f=h;for(;f--;)if(c[f][0]==="exit"&&c[f][1].type==="strikethroughSequenceTemporary"&&c[f][1]._open&&c[h][1].end.offset-c[h][1].start.offset===c[f][1].end.offset-c[f][1].start.offset){c[h][1].type="strikethroughSequence",c[f][1].type="strikethroughSequence";const p={type:"strikethrough",start:Object.assign({},c[f][1].start),end:Object.assign({},c[h][1].end)},g={type:"strikethroughText",start:Object.assign({},c[f][1].end),end:Object.assign({},c[h][1].start)},b=[["enter",p,d],["enter",c[f][1],d],["exit",c[f][1],d],["enter",g,d]],y=d.parser.constructs.insideSpan.null;y&&ar(b,b.length,0,Ku(y,c.slice(f+1,h),d)),ar(b,b.length,0,[["exit",g,d],["enter",c[h][1],d],["exit",c[h][1],d],["exit",p,d]]),ar(c,f-1,h-f+3,b),h=f+b.length-2;break}}for(h=-1;++h<c.length;)c[h][1].type==="strikethroughSequenceTemporary"&&(c[h][1].type="data");return c}function o(c,d,h){const f=this.previous,p=this.events;let g=0;return b;function b(_){return f===126&&p[p.length-1][1].type!=="characterEscape"?h(_):(c.enter("strikethroughSequenceTemporary"),y(_))}function y(_){const N=Xs(f);if(_===126)return g>1?h(_):(c.consume(_),g++,y);if(g<2&&!r)return h(_);const S=c.exit("strikethroughSequenceTemporary"),w=Xs(_);return S._open=!w||w===2&&!!N,S._close=!N||N===2&&!!w,d(_)}}}class Z4{constructor(){this.map=[]}add(t,r,a){Q4(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 Q4(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 W4(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 J4(){return{flow:{null:{name:"table",tokenize:ej,resolveAll:tj}}}}function ej(e,t,r){const a=this;let s=0,o=0,c;return d;function d(j){let I=a.events.length-1;for(;I>-1;){const k=a.events[I][1].type;if(k==="lineEnding"||k==="linePrefix")I--;else break}const Z=I>-1?a.events[I][1].type:null,P=Z==="tableHead"||Z==="tableRow"?R:h;return P===R&&a.parser.lazy[a.now().line]?r(j):P(j)}function h(j){return e.enter("tableHead"),e.enter("tableRow"),f(j)}function f(j){return j===124||(c=!0,o+=1),p(j)}function p(j){return j===null?r(j):Be(j)?o>1?(o=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),y):r(j):tt(j)?ot(e,p,"whitespace")(j):(o+=1,c&&(c=!1,s+=1),j===124?(e.enter("tableCellDivider"),e.consume(j),e.exit("tableCellDivider"),c=!0,p):(e.enter("data"),g(j)))}function g(j){return j===null||j===124||Tt(j)?(e.exit("data"),p(j)):(e.consume(j),j===92?b:g)}function b(j){return j===92||j===124?(e.consume(j),g):g(j)}function y(j){return a.interrupt=!1,a.parser.lazy[a.now().line]?r(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):B(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)?A(j):B(j)}function w(j){return j===45?(e.enter("tableDelimiterFiller"),C(j)):B(j)}function C(j){return j===45?(e.consume(j),C):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,A,"whitespace")(j):A(j)}function A(j){return j===124?_(j):j===null||Be(j)?!c||s!==o?B(j):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(j)):B(j)}function B(j){return r(j)}function R(j){return e.enter("tableRow"),H(j)}function H(j){return j===124?(e.enter("tableCellDivider"),e.consume(j),e.exit("tableCellDivider"),H):j===null||Be(j)?(e.exit("tableRow"),t(j)):tt(j)?ot(e,H,"whitespace")(j):(e.enter("data"),z(j))}function z(j){return j===null||j===124||Tt(j)?(e.exit("data"),H(j)):(e.consume(j),j===92?Y:z)}function Y(j){return j===92||j===124?(e.consume(j),z):z(j)}}function tj(e,t){let r=-1,a=!0,s=0,o=[0,0,0,0],c=[0,0,0,0],d=!1,h=0,f,p,g;const b=new Z4;for(;++r<e.length;){const y=e[r],_=y[1];y[0]==="enter"?_.type==="tableHead"?(d=!1,h!==0&&(av(b,t,h,f,p),p=void 0,h=0),f={type:"table",start:Object.assign({},_.start),end:Object.assign({},_.end)},b.add(r,0,[["enter",f,t]])):_.type==="tableRow"||_.type==="tableDelimiterRow"?(a=!0,g=void 0,o=[0,0,0,0],c=[0,r+1,0,0],d&&(d=!1,p={type:"tableBody",start:Object.assign({},_.start),end:Object.assign({},_.end)},b.add(r,0,[["enter",p,t]])),s=_.type==="tableDelimiterRow"?2:p?3:1):s&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")?(a=!1,c[2]===0&&(o[1]!==0&&(c[0]=c[1],g=au(b,t,o,s,void 0,g),o=[0,0,0,0]),c[2]=r)):_.type==="tableCellDivider"&&(a?a=!1:(o[1]!==0&&(c[0]=c[1],g=au(b,t,o,s,void 0,g)),o=c,c=[o[1],r,0,0])):_.type==="tableHead"?(d=!0,h=r):_.type==="tableRow"||_.type==="tableDelimiterRow"?(h=r,o[1]!==0?(c[0]=c[1],g=au(b,t,o,s,r,g)):c[1]!==0&&(g=au(b,t,c,s,r,g)),s=0):s&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")&&(c[3]=r)}for(h!==0&&av(b,t,h,f,p),b.consume(t.events),r=-1;++r<t.events.length;){const y=t.events[r];y[0]==="enter"&&y[1].type==="table"&&(y[1]._align=W4(t.events,r))}return e}function au(e,t,r,a,s,o){const c=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",d="tableContent";r[0]!==0&&(o.end=Object.assign({},Hs(t.events,r[0])),e.add(r[0],0,[["exit",o,t]]));const h=Hs(t.events,r[1]);if(o={type:c,start:Object.assign({},h),end:Object.assign({},h)},e.add(r[1],0,[["enter",o,t]]),r[2]!==0){const f=Hs(t.events,r[2]),p=Hs(t.events,r[3]),g={type:d,start:Object.assign({},f),end:Object.assign({},p)};if(e.add(r[2],0,[["enter",g,t]]),a!==2){const b=t.events[r[2]],y=t.events[r[3]];if(b[1].end=Object.assign({},y[1].end),b[1].type="chunkText",b[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",g,t]])}return s!==void 0&&(o.end=Object.assign({},Hs(t.events,s)),e.add(s,0,[["exit",o,t]]),o=void 0),o}function av(e,t,r,a,s){const o=[],c=Hs(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 Hs(e,t){const r=e[t],a=r[0]==="enter"?"start":"end";return r[1][a]}const nj={name:"tasklistCheck",tokenize:ij};function rj(){return{text:{91:nj}}}function ij(e,t,r){const a=this;return s;function s(h){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?r(h):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),o)}function o(h){return Tt(h)?(e.enter("taskListCheckValueUnchecked"),e.consume(h),e.exit("taskListCheckValueUnchecked"),c):h===88||h===120?(e.enter("taskListCheckValueChecked"),e.consume(h),e.exit("taskListCheckValueChecked"),c):r(h)}function c(h){return h===93?(e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),d):r(h)}function d(h){return Be(h)?t(h):tt(h)?e.check({tokenize:aj},t,r)(h):r(h)}}function aj(e,t,r){return ot(e,a,"whitespace");function a(s){return s===null?r(s):t(s)}}function sj(e){return Mw([O4(),$4(),K4(e),J4(),rj()])}const lj={};function Qp(e){const t=this,r=e||lj,a=t.data(),s=a.micromarkExtensions||(a.micromarkExtensions=[]),o=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),c=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);s.push(sj(r)),o.push(C4()),c.push(T4(r))}var Bh,sv;function oj(){if(sv)return Bh;sv=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 h=(re={})=>{const me={children:[]};return Object.assign(me,re),me};class f{constructor(){this.rootNode=h(),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=h({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=>{f._collapse(Ee)}))}}class p extends f{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 g(re){return re?typeof re=="string"?re:re.source:null}function b(re){return N("(?=",re,")")}function y(re){return N("(?:",re,")*")}function _(re){return N("(?:",re,")?")}function N(...re){return re.map(Ee=>g(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=>g(Pe)).join("|")+")"}function C(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 A=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function B(re,{joinWith:me}){let Ee=0;return re.map(Pe=>{Ee+=1;const St=Ee;let gt=g(Pe),Me="";for(;gt.length>0;){const Se=A.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/,H="[a-zA-Z]\\w*",z="[a-zA-Z_]\\w*",Y="\\b\\d+(\\.\\d+)?",j="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",I="\\b(0b[01]+)",Z="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",P=(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)},k={begin:"\\\\[\\s\\S]",relevance:0},$={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[k]},O={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[k]},U={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(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},X=K("//","$"),M=K("/\\*","\\*/"),L=K("#","$"),F={scope:"number",begin:Y,relevance:0},D={scope:"number",begin:j,relevance:0},V={scope:"number",begin:I,relevance:0},q={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[k,{begin:/\[/,end:/\]/,relevance:0,contains:[k]}]},Q={scope:"title",begin:H,relevance:0},J={scope:"title",begin:z,relevance:0},W={begin:"\\.\\s*"+z,relevance:0};var oe=Object.freeze({__proto__:null,APOS_STRING_MODE:$,BACKSLASH_ESCAPE:k,BINARY_NUMBER_MODE:V,BINARY_NUMBER_RE:I,COMMENT:K,C_BLOCK_COMMENT_MODE:M,C_LINE_COMMENT_MODE:X,C_NUMBER_MODE:D,C_NUMBER_RE:j,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:L,IDENT_RE:H,MATCH_NOTHING_RE:R,METHOD_GUARD:W,NUMBER_MODE:F,NUMBER_RE:Y,PHRASAL_WORDS_MODE:U,QUOTE_STRING_MODE:O,REGEXP_MODE:q,RE_STARTERS_RE:Z,SHEBANG:P,TITLE_MODE:Q,UNDERSCORE_IDENT_RE:z,UNDERSCORE_TITLE_MODE:J});function fe(re,me){re.input[re.index-1]==="."&&me.ignoreMatch()}function xe(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 De(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,b(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"],Xt="keyword";function Ft(re,me,Ee=Xt){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,Ft(re[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,Kt(Ue[0],Ue[1])]})}}function Kt(re,me){return me?Number(me):Yn(re)?0:1}function Yn(re){return Rt.includes(re.toLowerCase())}const Nn={},ct=re=>{console.error(re)},It=(re,...me)=>{console.log(`WARN: ${re}`,...me)},ue=(re,me)=>{Nn[`${re}/${me}`]||(console.log(`Deprecated as of ${re}. ${me}`),Nn[`${re}/${me}`]=!0)},be=new Error;function Oe(re,me,{key:Ee}){let Pe=0;const St=re[Ee],gt={},Me={};for(let Se=1;Se<=me.length;Se++)Me[Se+Pe]=St[Se],gt[Se+Pe]=!0,Pe+=C(me[Se-1]);re[Ee]=Me,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: {}"),be;if(typeof re.beginScope!="object"||re.beginScope===null)throw ct("beginScope must be object"),be;Oe(re,re.begin,{key:"beginScope"}),re.begin=B(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: {}"),be;if(typeof re.endScope!="object"||re.endScope===null)throw ct("endScope must be object"),be;Oe(re,re.end,{key:"endScope"}),re.end=B(re.end,{joinWith:""})}}function cn(re){re.scope&&typeof re.scope=="object"&&re.scope!==null&&(re.beginScope=re.scope,delete re.scope)}function Sn(re){cn(re),typeof re.beginScope=="string"&&(re.beginScope={_wrap:re.beginScope}),typeof re.endScope=="string"&&(re.endScope={_wrap:re.endScope}),Fe(re),Ze(re)}function Zt(re){function me(Me,Se){return new RegExp(g(Me),"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+=C(Se)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Se=this.regexes.map(Ue=>Ue[1]);this.matcherRe=me(B(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((vr,ki)=>ki>0&&vr!==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;[xe,De,Sn,st].forEach(Mt=>Mt(Me,Se)),re.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=Ft(Me.keywords,re.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=g(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 Jt(Mt==="self"?Me:Mt)})),Me.contains.forEach(function(Mt){gt(Mt,Ue)}),Me.starts&&gt(Me.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 Jt(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 In extends Error{constructor(me,Ee){super(me),this.name="HTMLInjectionError",this.html=Ee}}const un=r,Si=a,nt=Symbol("nomatch"),Xn=7,On=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?",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:p};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.
+`))}function h(y,_,N,S){const w=N.enter("tableCell"),C=N.enter("phrasing"),E=N.containerPhrasing(y,{...S,before:o,after:o});return C(),w(),E}function f(y,_){return I3(y,{align:_,alignDelimiters:a,padding:r,stringLength:s})}function p(y,_,N){const S=y.children;let w=-1;const C=[],E=_.enter("table");for(;++w<S.length;)C[w]=g(S[w],_,N);return E(),C}function g(y,_,N){const S=y.children;let w=-1;const C=[],E=_.enter("tableRow");for(;++w<S.length;)C[w]=h(S[w],y,_,N);return E(),C}function b(y,_,N){let S=hE.inlineCode(y,_,N);return N.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function N4(){return{exit:{taskListCheckValueChecked:iv,taskListCheckValueUnchecked:iv,paragraph:k4}}}function S4(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:C4}}}function iv(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function k4(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 C4(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 h=hE.listItem(e,t,r,{...a,...d.current()});return o&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,f)),h;function f(p){return p+c}}function T4(){return[s3(),C3(),O3(),x4(),N4()]}function A4(e){return{extensions:[l3(),T3(e),R3(),E4(e),S4()]}}const M4={tokenize:z4,partial:!0},mE={tokenize:I4,partial:!0},pE={tokenize:B4,partial:!0},gE={tokenize:U4,partial:!0},O4={tokenize:H4,partial:!0},xE={name:"wwwAutolink",tokenize:D4,previous:yE},bE={name:"protocolAutolink",tokenize:L4,previous:vE},Ni={name:"emailAutolink",tokenize:j4,previous:_E},Kr={};function R4(){return{text:Kr}}let Ia=48;for(;Ia<123;)Kr[Ia]=Ni,Ia++,Ia===58?Ia=65:Ia===91&&(Ia=97);Kr[43]=Ni;Kr[45]=Ni;Kr[46]=Ni;Kr[95]=Ni;Kr[72]=[Ni,bE];Kr[104]=[Ni,bE];Kr[87]=[Ni,xE];Kr[119]=[Ni,xE];function j4(e,t,r){const a=this;let s,o;return c;function c(g){return!ip(g)||!_E.call(a,a.previous)||Zp(a.events)?r(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(g))}function d(g){return ip(g)?(e.consume(g),d):g===64?(e.consume(g),h):r(g)}function h(g){return g===46?e.check(O4,p,f)(g):g===45||g===95||An(g)?(o=!0,e.consume(g),h):p(g)}function f(g){return e.consume(g),s=!0,h}function p(g){return o&&s&&Ln(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(g)):r(g)}}function D4(e,t,r){const a=this;return s;function s(c){return c!==87&&c!==119||!yE.call(a,a.previous)||Zp(a.events)?r(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(M4,e.attempt(mE,e.attempt(pE,o),r),r)(c))}function o(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(c)}}function L4(e,t,r){const a=this;let s="",o=!1;return c;function c(g){return(g===72||g===104)&&vE.call(a,a.previous)&&!Zp(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(g),e.consume(g),d):r(g)}function d(g){if(Ln(g)&&s.length<5)return s+=String.fromCodePoint(g),e.consume(g),d;if(g===58){const b=s.toLowerCase();if(b==="http"||b==="https")return e.consume(g),h}return r(g)}function h(g){return g===47?(e.consume(g),o?f:(o=!0,h)):r(g)}function f(g){return g===null||Cu(g)||Tt(g)||Va(g)||Ku(g)?r(g):e.attempt(mE,e.attempt(pE,p),r)(g)}function p(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(g)}}function z4(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 I4(e,t,r){let a,s,o;return c;function c(f){return f===46||f===95?e.check(gE,h,d)(f):f===null||Tt(f)||Va(f)||f!==45&&Ku(f)?h(f):(o=!0,e.consume(f),c)}function d(f){return f===95?a=!0:(s=a,a=void 0),e.consume(f),c}function h(f){return s||a||!o?r(f):t(f)}}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(gE,t,o)(c):c===null||Tt(c)||Va(c)?t(c):(e.consume(c),s)}function o(c){return c===41&&a++,e.consume(c),s}}function U4(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||Tt(d)||Va(d)?t(d):r(d)}function s(d){return d===null||d===40||d===91||Tt(d)||Va(d)?t(d):a(d)}function o(d){return Ln(d)?c(d):r(d)}function c(d){return d===59?(e.consume(d),a):Ln(d)?(e.consume(d),c):r(d)}}function H4(e,t,r){return a;function a(o){return e.consume(o),s}function s(o){return An(o)?r(o):t(o)}}function yE(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Tt(e)}function vE(e){return!Ln(e)}function _E(e){return!(e===47||ip(e))}function ip(e){return e===43||e===45||e===46||e===95||An(e)}function Zp(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 $4={tokenize:K4,partial:!0};function q4(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:V4,continuation:{tokenize:Y4},exit:X4}},text:{91:{name:"gfmFootnoteCall",tokenize:G4},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:P4,resolveTo:F4}}}}function P4(e,t,r){const a=this;let s=a.events.length;const o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c;for(;s--;){const h=a.events[s][1];if(h.type==="labelImage"){c=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return d;function d(h){if(!c||!c._balanced)return r(h);const f=Dr(a.sliceSerialize({start:c.end,end:a.now()}));return f.codePointAt(0)!==94||!o.includes(f.slice(1))?r(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),t(h))}}function F4(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 G4(e,t,r){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let o=0,c;return d;function d(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),h}function h(g){return g!==94?r(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",f)}function f(g){if(o>999||g===93&&!c||g===null||g===91||Tt(g))return r(g);if(g===93){e.exit("chunkString");const b=e.exit("gfmFootnoteCallString");return s.includes(Dr(a.sliceSerialize(b)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(g)}return Tt(g)||(c=!0),o++,e.consume(g),g===92?p:f}function p(g){return g===91||g===92||g===93?(e.consume(g),o++,f):f(g)}}function V4(e,t,r){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let o,c=0,d;return h;function h(_){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionLabelMarker"),f}function f(_){return _===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):r(_)}function p(_){if(c>999||_===93&&!d||_===null||_===91||Tt(_))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"),b}return Tt(_)||(d=!0),c++,e.consume(_),_===92?g:p}function g(_){return _===91||_===92||_===93?(e.consume(_),c++,p):p(_)}function b(_){return _===58?(e.enter("definitionMarker"),e.consume(_),e.exit("definitionMarker"),s.includes(o)||s.push(o),ot(e,y,"gfmFootnoteDefinitionWhitespace")):r(_)}function y(_){return t(_)}}function Y4(e,t,r){return e.check(Do,t,e.attempt($4,t,r))}function X4(e){e.exit("gfmFootnoteDefinition")}function K4(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 Z4(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 h=-1;for(;++h<c.length;)if(c[h][0]==="enter"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._close){let f=h;for(;f--;)if(c[f][0]==="exit"&&c[f][1].type==="strikethroughSequenceTemporary"&&c[f][1]._open&&c[h][1].end.offset-c[h][1].start.offset===c[f][1].end.offset-c[f][1].start.offset){c[h][1].type="strikethroughSequence",c[f][1].type="strikethroughSequence";const p={type:"strikethrough",start:Object.assign({},c[f][1].start),end:Object.assign({},c[h][1].end)},g={type:"strikethroughText",start:Object.assign({},c[f][1].end),end:Object.assign({},c[h][1].start)},b=[["enter",p,d],["enter",c[f][1],d],["exit",c[f][1],d],["enter",g,d]],y=d.parser.constructs.insideSpan.null;y&&ar(b,b.length,0,Zu(y,c.slice(f+1,h),d)),ar(b,b.length,0,[["exit",g,d],["enter",c[h][1],d],["exit",c[h][1],d],["exit",p,d]]),ar(c,f-1,h-f+3,b),h=f+b.length-2;break}}for(h=-1;++h<c.length;)c[h][1].type==="strikethroughSequenceTemporary"&&(c[h][1].type="data");return c}function o(c,d,h){const f=this.previous,p=this.events;let g=0;return b;function b(_){return f===126&&p[p.length-1][1].type!=="characterEscape"?h(_):(c.enter("strikethroughSequenceTemporary"),y(_))}function y(_){const N=Xs(f);if(_===126)return g>1?h(_):(c.consume(_),g++,y);if(g<2&&!r)return h(_);const S=c.exit("strikethroughSequenceTemporary"),w=Xs(_);return S._open=!w||w===2&&!!N,S._close=!N||N===2&&!!w,d(_)}}}class Q4{constructor(){this.map=[]}add(t,r,a){W4(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 W4(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 J4(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 ej(){return{flow:{null:{name:"table",tokenize:tj,resolveAll:nj}}}}function tj(e,t,r){const a=this;let s=0,o=0,c;return d;function d(j){let I=a.events.length-1;for(;I>-1;){const k=a.events[I][1].type;if(k==="lineEnding"||k==="linePrefix")I--;else break}const Z=I>-1?a.events[I][1].type:null,P=Z==="tableHead"||Z==="tableRow"?R:h;return P===R&&a.parser.lazy[a.now().line]?r(j):P(j)}function h(j){return e.enter("tableHead"),e.enter("tableRow"),f(j)}function f(j){return j===124||(c=!0,o+=1),p(j)}function p(j){return j===null?r(j):Be(j)?o>1?(o=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),y):r(j):tt(j)?ot(e,p,"whitespace")(j):(o+=1,c&&(c=!1,s+=1),j===124?(e.enter("tableCellDivider"),e.consume(j),e.exit("tableCellDivider"),c=!0,p):(e.enter("data"),g(j)))}function g(j){return j===null||j===124||Tt(j)?(e.exit("data"),p(j)):(e.consume(j),j===92?b:g)}function b(j){return j===92||j===124?(e.consume(j),g):g(j)}function y(j){return a.interrupt=!1,a.parser.lazy[a.now().line]?r(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):B(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)?A(j):B(j)}function w(j){return j===45?(e.enter("tableDelimiterFiller"),C(j)):B(j)}function C(j){return j===45?(e.consume(j),C):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,A,"whitespace")(j):A(j)}function A(j){return j===124?_(j):j===null||Be(j)?!c||s!==o?B(j):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(j)):B(j)}function B(j){return r(j)}function R(j){return e.enter("tableRow"),H(j)}function H(j){return j===124?(e.enter("tableCellDivider"),e.consume(j),e.exit("tableCellDivider"),H):j===null||Be(j)?(e.exit("tableRow"),t(j)):tt(j)?ot(e,H,"whitespace")(j):(e.enter("data"),z(j))}function z(j){return j===null||j===124||Tt(j)?(e.exit("data"),H(j)):(e.consume(j),j===92?Y:z)}function Y(j){return j===92||j===124?(e.consume(j),z):z(j)}}function nj(e,t){let r=-1,a=!0,s=0,o=[0,0,0,0],c=[0,0,0,0],d=!1,h=0,f,p,g;const b=new Q4;for(;++r<e.length;){const y=e[r],_=y[1];y[0]==="enter"?_.type==="tableHead"?(d=!1,h!==0&&(av(b,t,h,f,p),p=void 0,h=0),f={type:"table",start:Object.assign({},_.start),end:Object.assign({},_.end)},b.add(r,0,[["enter",f,t]])):_.type==="tableRow"||_.type==="tableDelimiterRow"?(a=!0,g=void 0,o=[0,0,0,0],c=[0,r+1,0,0],d&&(d=!1,p={type:"tableBody",start:Object.assign({},_.start),end:Object.assign({},_.end)},b.add(r,0,[["enter",p,t]])),s=_.type==="tableDelimiterRow"?2:p?3:1):s&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")?(a=!1,c[2]===0&&(o[1]!==0&&(c[0]=c[1],g=su(b,t,o,s,void 0,g),o=[0,0,0,0]),c[2]=r)):_.type==="tableCellDivider"&&(a?a=!1:(o[1]!==0&&(c[0]=c[1],g=su(b,t,o,s,void 0,g)),o=c,c=[o[1],r,0,0])):_.type==="tableHead"?(d=!0,h=r):_.type==="tableRow"||_.type==="tableDelimiterRow"?(h=r,o[1]!==0?(c[0]=c[1],g=su(b,t,o,s,r,g)):c[1]!==0&&(g=su(b,t,c,s,r,g)),s=0):s&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")&&(c[3]=r)}for(h!==0&&av(b,t,h,f,p),b.consume(t.events),r=-1;++r<t.events.length;){const y=t.events[r];y[0]==="enter"&&y[1].type==="table"&&(y[1]._align=J4(t.events,r))}return e}function su(e,t,r,a,s,o){const c=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",d="tableContent";r[0]!==0&&(o.end=Object.assign({},Hs(t.events,r[0])),e.add(r[0],0,[["exit",o,t]]));const h=Hs(t.events,r[1]);if(o={type:c,start:Object.assign({},h),end:Object.assign({},h)},e.add(r[1],0,[["enter",o,t]]),r[2]!==0){const f=Hs(t.events,r[2]),p=Hs(t.events,r[3]),g={type:d,start:Object.assign({},f),end:Object.assign({},p)};if(e.add(r[2],0,[["enter",g,t]]),a!==2){const b=t.events[r[2]],y=t.events[r[3]];if(b[1].end=Object.assign({},y[1].end),b[1].type="chunkText",b[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",g,t]])}return s!==void 0&&(o.end=Object.assign({},Hs(t.events,s)),e.add(s,0,[["exit",o,t]]),o=void 0),o}function av(e,t,r,a,s){const o=[],c=Hs(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 Hs(e,t){const r=e[t],a=r[0]==="enter"?"start":"end";return r[1][a]}const rj={name:"tasklistCheck",tokenize:aj};function ij(){return{text:{91:rj}}}function aj(e,t,r){const a=this;return s;function s(h){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?r(h):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),o)}function o(h){return Tt(h)?(e.enter("taskListCheckValueUnchecked"),e.consume(h),e.exit("taskListCheckValueUnchecked"),c):h===88||h===120?(e.enter("taskListCheckValueChecked"),e.consume(h),e.exit("taskListCheckValueChecked"),c):r(h)}function c(h){return h===93?(e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),d):r(h)}function d(h){return Be(h)?t(h):tt(h)?e.check({tokenize:sj},t,r)(h):r(h)}}function sj(e,t,r){return ot(e,a,"whitespace");function a(s){return s===null?r(s):t(s)}}function lj(e){return Ow([R4(),q4(),Z4(e),ej(),ij()])}const oj={};function Qp(e){const t=this,r=e||oj,a=t.data(),s=a.micromarkExtensions||(a.micromarkExtensions=[]),o=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),c=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);s.push(lj(r)),o.push(T4()),c.push(A4(r))}var Bh,sv;function cj(){if(sv)return Bh;sv=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 h=(re={})=>{const me={children:[]};return Object.assign(me,re),me};class f{constructor(){this.rootNode=h(),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=h({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=>{f._collapse(Ee)}))}}class p extends f{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 g(re){return re?typeof re=="string"?re:re.source:null}function b(re){return N("(?=",re,")")}function y(re){return N("(?:",re,")*")}function _(re){return N("(?:",re,")?")}function N(...re){return re.map(Ee=>g(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=>g(Pe)).join("|")+")"}function C(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 A=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function B(re,{joinWith:me}){let Ee=0;return re.map(Pe=>{Ee+=1;const St=Ee;let gt=g(Pe),Me="";for(;gt.length>0;){const Se=A.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/,H="[a-zA-Z]\\w*",z="[a-zA-Z_]\\w*",Y="\\b\\d+(\\.\\d+)?",j="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",I="\\b(0b[01]+)",Z="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",P=(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)},k={begin:"\\\\[\\s\\S]",relevance:0},$={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[k]},O={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[k]},U={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(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},X=K("//","$"),M=K("/\\*","\\*/"),L=K("#","$"),F={scope:"number",begin:Y,relevance:0},D={scope:"number",begin:j,relevance:0},V={scope:"number",begin:I,relevance:0},q={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[k,{begin:/\[/,end:/\]/,relevance:0,contains:[k]}]},Q={scope:"title",begin:H,relevance:0},J={scope:"title",begin:z,relevance:0},W={begin:"\\.\\s*"+z,relevance:0};var oe=Object.freeze({__proto__:null,APOS_STRING_MODE:$,BACKSLASH_ESCAPE:k,BINARY_NUMBER_MODE:V,BINARY_NUMBER_RE:I,COMMENT:K,C_BLOCK_COMMENT_MODE:M,C_LINE_COMMENT_MODE:X,C_NUMBER_MODE:D,C_NUMBER_RE:j,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:L,IDENT_RE:H,MATCH_NOTHING_RE:R,METHOD_GUARD:W,NUMBER_MODE:F,NUMBER_RE:Y,PHRASAL_WORDS_MODE:U,QUOTE_STRING_MODE:O,REGEXP_MODE:q,RE_STARTERS_RE:Z,SHEBANG:P,TITLE_MODE:Q,UNDERSCORE_IDENT_RE:z,UNDERSCORE_TITLE_MODE:J});function fe(re,me){re.input[re.index-1]==="."&&me.ignoreMatch()}function xe(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 De(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,b(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"],Xt="keyword";function Ft(re,me,Ee=Xt){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,Ft(re[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,Kt(Ue[0],Ue[1])]})}}function Kt(re,me){return me?Number(me):Yn(re)?0:1}function Yn(re){return Rt.includes(re.toLowerCase())}const Nn={},ct=re=>{console.error(re)},It=(re,...me)=>{console.log(`WARN: ${re}`,...me)},ue=(re,me)=>{Nn[`${re}/${me}`]||(console.log(`Deprecated as of ${re}. ${me}`),Nn[`${re}/${me}`]=!0)},be=new Error;function Oe(re,me,{key:Ee}){let Pe=0;const St=re[Ee],gt={},Me={};for(let Se=1;Se<=me.length;Se++)Me[Se+Pe]=St[Se],gt[Se+Pe]=!0,Pe+=C(me[Se-1]);re[Ee]=Me,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: {}"),be;if(typeof re.beginScope!="object"||re.beginScope===null)throw ct("beginScope must be object"),be;Oe(re,re.begin,{key:"beginScope"}),re.begin=B(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: {}"),be;if(typeof re.endScope!="object"||re.endScope===null)throw ct("endScope must be object"),be;Oe(re,re.end,{key:"endScope"}),re.end=B(re.end,{joinWith:""})}}function cn(re){re.scope&&typeof re.scope=="object"&&re.scope!==null&&(re.beginScope=re.scope,delete re.scope)}function Sn(re){cn(re),typeof re.beginScope=="string"&&(re.beginScope={_wrap:re.beginScope}),typeof re.endScope=="string"&&(re.endScope={_wrap:re.endScope}),Fe(re),Ze(re)}function Zt(re){function me(Me,Se){return new RegExp(g(Me),"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+=C(Se)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Se=this.regexes.map(Ue=>Ue[1]);this.matcherRe=me(B(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((vr,ki)=>ki>0&&vr!==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;[xe,De,Sn,st].forEach(Mt=>Mt(Me,Se)),re.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=Ft(Me.keywords,re.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=g(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 Jt(Mt==="self"?Me:Mt)})),Me.contains.forEach(function(Mt){gt(Mt,Ue)}),Me.starts&&gt(Me.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 Jt(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 In extends Error{constructor(me,Ee){super(me),this.name="HTMLInjectionError",this.html=Ee}}const un=r,Si=a,nt=Symbol("nomatch"),Xn=7,On=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?",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:p};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 gn={code:ft,language:Ht};Jr("before:highlight",gn);const Rn=gn.result?gn.result:vr(gn.language,gn.code,Qe);return Rn.code=gn.code,Jr("after:highlight",Rn),Rn}function vr(ye,Le,Qe,ft){const Ht=Object.create(null);function gn(_e,Re){return _e.keywords[Re]}function Rn(){if(!qe.keywords){en.addText(xt);return}let _e=0;qe.keywordPatternRe.lastIndex=0;let Re=qe.keywordPatternRe.exec(xt),Ye="";for(;Re;){Ye+=xt.substring(_e,Re.index);const rt=dn.case_insensitive?Re[0].toLowerCase():Re[0],$t=gn(qe,rt);if($t){const[or,sl]=$t;if(en.addText(Ye),Ye="",Ht[rt]=(Ht[rt]||0)+1,Ht[rt]<=Xn&&(ji+=sl),or.startsWith("_"))Ye+=Re[0];else{const Fo=dn.classNameAliases[or]||or;jn(Re[0],Fo)}}else Ye+=Re[0];_e=qe.keywordPatternRe.lastIndex,Re=qe.keywordPatternRe.exec(xt)}Ye+=xt.substring(_e),en.addText(Ye)}function kn(){if(xt==="")return;let _e=null;if(typeof qe.subLanguage=="string"){if(!me[qe.subLanguage]){en.addText(xt);return}_e=vr(qe.subLanguage,xt,!0,Po[qe.subLanguage]),Po[qe.subLanguage]=_e._top}else _e=Ci(xt,qe.subLanguage.length?qe.subLanguage:null);qe.relevance>0&&(ji+=_e.relevance),en.__addSublanguage(_e._emitter,_e.language)}function _t(){qe.subLanguage!=null?kn():Rn(),xt=""}function jn(_e,Re){_e!==""&&(en.startScope(Re),en.addText(_e),en.endScope())}function rs(_e,Re){let Ye=1;const rt=Re.length-1;for(;Ye<=rt;){if(!_e._emit[Ye]){Ye++;continue}const $t=dn.classNameAliases[_e[Ye]]||_e[Ye],or=Re[Ye];$t?jn(or,$t):(xt=or,Rn(),xt=""),Ye++}}function Mi(_e,Re){return _e.scope&&typeof _e.scope=="string"&&en.openNode(dn.classNameAliases[_e.scope]||_e.scope),_e.beginScope&&(_e.beginScope._wrap?(jn(xt,dn.classNameAliases[_e.beginScope._wrap]||_e.beginScope._wrap),xt=""):_e.beginScope._multi&&(rs(_e.beginScope,Re),xt="")),qe=Object.create(_e,{parent:{value:qe}}),qe}function Ur(_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 Ur(_e.parent,Re,Ye)}function Oi(_e){return qe.matcher.regexIndex===0?(xt+=_e[0],1):(Di=!0,0)}function is(_e){const Re=_e[0],Ye=_e.rule,rt=new t(Ye),$t=[Ye.__beforeBegin,Ye["on:begin"]];for(const or of $t)if(or&&(or(_e,rt),rt.isMatchIgnored))return Oi(Re);return Ye.skip?xt+=Re:(Ye.excludeBegin&&(xt+=Re),_t(),!Ye.returnBegin&&!Ye.excludeBegin&&(xt=Re)),Mi(Ye,_e),Ye.returnBegin?0:Re.length}function Cn(_e){const Re=_e[0],Ye=Le.substring(_e.index),rt=Ur(qe,_e,Ye);if(!rt)return nt;const $t=qe;qe.endScope&&qe.endScope._wrap?(_t(),jn(Re,qe.endScope._wrap)):qe.endScope&&qe.endScope._multi?(_t(),rs(qe.endScope,_e)):$t.skip?xt+=Re:($t.returnEnd||$t.excludeEnd||(xt+=Re),_t(),$t.excludeEnd&&(xt=Re));do qe.scope&&en.closeNode(),!qe.skip&&!qe.subLanguage&&(ji+=qe.relevance),qe=qe.parent;while(qe!==rt.parent);return rt.starts&&Mi(rt.starts,_e),$t.returnEnd?0:Re.length}function ba(){const _e=[];for(let Re=qe;Re!==dn;Re=Re.parent)Re.scope&&_e.unshift(Re.scope);_e.forEach(Re=>en.openNode(Re))}let Sr={};function Ri(_e,Re){const Ye=Re&&Re[0];if(xt+=_e,Ye==null)return _t(),0;if(Sr.type==="begin"&&Re.type==="end"&&Sr.index===Re.index&&Ye===""){if(xt+=Le.slice(Re.index,Re.index+1),!St){const rt=new Error(`0 width match regex (${ye})`);throw rt.languageName=ye,rt.badRule=Sr.rule,rt}return 1}if(Sr=Re,Re.type==="begin")return is(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=Cn(Re);if(rt!==nt)return rt}if(Re.type==="illegal"&&Ye==="")return xt+=`
-`,1;if(al>1e5&&al>Re.index*3)throw new Error("potential infinite loop, way more iterations than matches");return xt+=Ye,Ye.length}const dn=bn(ye);if(!dn)throw ct(gt.replace("{}",ye)),new Error('Unknown language: "'+ye+'"');const ya=Zt(dn);let as="",qe=ft||ya;const Po={},en=new Se.__emitter(Se);ba();let xt="",ji=0,ei=0,al=0,Di=!1;try{if(dn.__emitTokens)dn.__emitTokens(Le,en);else{for(qe.matcher.considerAll();;){al++,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=Ri(Re,_e);ei=_e.index+Ye}Ri(Le.substring(ei))}return en.finalize(),as=en.toHTML(),{language:ye,value:as,relevance:ji,illegal:!1,_emitter:en,_top:qe}}catch(_e){if(_e.message&&_e.message.includes("Illegal"))return{language:ye,value:un(Le),illegal:!0,relevance:0,_illegalBy:{message:_e.message,index:ei,context:Le.slice(ei-100,ei+100),mode:_e.mode,resultSoFar:as},_emitter:en};if(St)return{language:ye,value:un(Le),illegal:!1,relevance:0,errorRaised:_e,_emitter:en,_top:qe};throw _e}}function ki(ye){const Le={value:un(ye),illegal:!1,relevance:0,_top:Me,_emitter:new Se.__emitter(Se)};return Le._emitter.addText(ye),Le}function Ci(ye,Le){Le=Le||Se.languages||Object.keys(me);const Qe=ki(ye),ft=Le.filter(bn).filter(Er).map(_t=>vr(_t,ye,!1));ft.unshift(Qe);const Ht=ft.sort((_t,jn)=>{if(_t.relevance!==jn.relevance)return jn.relevance-_t.relevance;if(_t.language&&jn.language){if(bn(_t.language).supersetOf===jn.language)return 1;if(bn(jn.language).supersetOf===_t.language)return-1}return 0}),[gn,Rn]=Ht,kn=gn;return kn.secondBest=Rn,kn}function lr(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 In("One of your code blocks includes unescaped HTML.",ye.innerHTML);Le=ye;const ft=Le.textContent,Ht=Qe?Mt(ft,{language:Qe,ignoreIllegals:!0}):Ci(ft);ye.innerHTML=Ht.value,ye.dataset.highlighted="yes",lr(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 pn(ye){Se=Si(Se,ye)}const _r=()=>{Ai(),ue("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Ti(){Ai(),ue("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let ga=!1;function Ai(){function ye(){Ai()}if(document.readyState==="loading"){ga||window.addEventListener("DOMContentLoaded",ye,!1),ga=!0;return}document.querySelectorAll(Se.cssSelector).forEach(Ut)}function ts(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=Me}Qe.name||(Qe.name=ye),me[ye]=Qe,Qe.rawDefinition=Le.bind(null,re),Qe.aliases&&wr(Qe.aliases,{languageName:ye})}function Wr(ye){delete me[ye];for(const Le of Object.keys(Ee))Ee[Le]===ye&&delete Ee[Le]}function xa(){return Object.keys(me)}function bn(ye){return ye=(ye||"").toLowerCase(),me[ye]||me[Ee[ye]]}function wr(ye,{languageName:Le}){typeof ye=="string"&&(ye=[ye]),ye.forEach(Qe=>{Ee[Qe.toLowerCase()]=Le})}function Er(ye){const Le=bn(ye);return Le&&!Le.disableAutodetect}function Br(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 Gt(ye){Br(ye),Pe.push(ye)}function ns(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 Nr(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:Ci,highlightAll:Ai,highlightElement:Ut,highlightBlock:Nr,configure:pn,initHighlighting:_r,initHighlightingOnLoad:Ti,registerLanguage:ts,unregisterLanguage:Wr,listLanguages:xa,getLanguage:bn,registerAliases:wr,autoDetection:Er,inherit:Si,addPlugin:Gt,removePlugin:ns}),re.debugMode=function(){St=!1},re.safeMode=function(){St=!0},re.versionString=ut,re.regex={concat:N,lookahead:b,either:w,optional:_,anyNumberOfTimes:y};for(const ye in oe)typeof oe[ye]=="object"&&e(oe[ye]);return Object.assign(re,oe),re},mn=On({});return mn.newInstance=()=>On({}),Bh=mn,mn.HighlightJS=mn,mn.default=mn,Bh}var Uh,lv;function cj(){if(lv)return Uh;lv=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:/\)/}),h=t.inherit(t.APOS_STRING_MODE,{className:"string"}),f=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),p={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,f,h,d,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[c,d,f,h]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[f]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[p],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[p],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:p}]},{className:"tag",begin:r.concat(/<\//,r.lookahead(r.concat(a,/>/))),contains:[{className:"name",begin:a,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return Uh=e,Uh}var Hh,ov;function uj(){if(ov)return Hh;ov=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"})]}},h={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,a,o]};o.contains.push(h);const f={match:/\\"/},p={className:"string",begin:/'/,end:/'/},g={match:/\\'/},b={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},t.NUMBER_MODE,a]},y=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],_=t.SHEBANG({binary:`(${y.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"],C={match:/(\/[a-z._-]+)+/},E=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],A=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],B=["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,...A,"set","shopt",...B,...R]},contains:[_,t.SHEBANG(),N,b,c,d,C,h,f,p,g,a]}}return Hh=e,Hh}var $h,cv;function dj(){if(cv)return $h;cv=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("<[^<>]+>")+")",h={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},p={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})"/})]},g={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},b={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(p,{className:"string"}),{className:"string",begin:/<.*?>/},a,t.C_BLOCK_COMMENT_MODE]},y={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"},C=[b,h,a,t.C_BLOCK_COMMENT_MODE,g,p],E={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:w,contains:C.concat([{begin:/\(/,end:/\)/,keywords:w,contains:C.concat(["self"]),relevance:0}]),relevance:0},A={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(y,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:[a,t.C_BLOCK_COMMENT_MODE,p,g,h,{begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:["self",a,t.C_BLOCK_COMMENT_MODE,p,g,h]}]},h,a,t.C_BLOCK_COMMENT_MODE,b]};return{name:"C",aliases:["h"],keywords:w,disableAutodetect:!0,illegal:"</",contains:[].concat(E,A,C,[b,{begin:t.IDENT_RE+"::",keywords:w},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},t.TITLE_MODE]}]),exports:{preprocessor:b,strings:p,keywords:w}}}return $h=e,$h}var qh,uv;function fj(){if(uv)return qh;uv=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("<[^<>]+>")+")",h={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},p={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})"/})]},g={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},b={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(p,{className:"string"}),{className:"string",begin:/<.*?>/},a,t.C_BLOCK_COMMENT_MODE]},y={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"],C=["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"],B={type:S,keyword:N,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:w},R={className:"function.dispatch",relevance:0,keywords:{_hint:C},begin:r.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},H=[R,b,h,a,t.C_BLOCK_COMMENT_MODE,g,p],z={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:B,contains:H.concat([{begin:/\(/,end:/\)/,keywords:B,contains:H.concat(["self"]),relevance:0}]),relevance:0},Y={className:"function",begin:"("+d+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:B,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:B,relevance:0},{begin:_,returnBegin:!0,contains:[y],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[p,g]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:B,relevance:0,contains:[a,t.C_BLOCK_COMMENT_MODE,p,g,h,{begin:/\(/,end:/\)/,keywords:B,relevance:0,contains:["self",a,t.C_BLOCK_COMMENT_MODE,p,g,h]}]},h,a,t.C_BLOCK_COMMENT_MODE,b]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:B,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(z,Y,R,H,[b,{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:B,contains:["self",h]},{begin:t.IDENT_RE+"::",keywords:B},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return qh=e,qh}var Ph,dv;function hj(){if(dv)return Ph;dv=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},h=t.inherit(t.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),f={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},p={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},g={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},b=t.inherit(g,{illegal:/\n/}),y={className:"subst",begin:/\{/,end:/\}/,keywords:d},_=t.inherit(y,{illegal:/\n/}),N={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},t.BACKSLASH_ESCAPE,_]},S={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},y]},w=t.inherit(S,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},_]});y.contains=[S,N,g,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,f,t.C_BLOCK_COMMENT_MODE],_.contains=[w,N,b,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,f,t.inherit(t.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const C={variants:[p,S,N,g,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},E={begin:"<",end:">",contains:[{beginKeywords:"in out"},h]},A=t.IDENT_RE+"(<"+t.IDENT_RE+"(\\s*,\\s*"+t.IDENT_RE+")*>)?(\\[\\])?",B={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"}},C,f,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},h,E,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[h,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[h,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:"("+A+"\\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:[C,f,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},B]}}return Ph=e,Ph}var Fh,fv;function mj(){if(fv)return Fh;fv=1;const e=f=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:f.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:[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:f.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 h(f){const p=f.regex,g=e(f),b={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},y="and or not only",_=/@-?\w[\w]*(-\w+)*/,N="[a-zA-Z-][a-zA-Z0-9_-]*",S=[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[g.BLOCK_COMMENT,b,g.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+N,relevance:0},g.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+o.join("|")+")"},{begin:":(:)?("+c.join("|")+")"}]},g.CSS_VARIABLE,{className:"attribute",begin:"\\b("+d.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[g.BLOCK_COMMENT,g.HEXCOLOR,g.IMPORTANT,g.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}]},g.FUNCTION_DISPATCH]},{begin:p.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:_},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:y,attribute:s.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...S,g.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+a.join("|")+")\\b"}]}}return Fh=h,Fh}var Gh,hv;function pj(){if(hv)return Gh;hv=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}]},h=/[A-Za-z][A-Za-z0-9+.-]*/,f={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:r.concat(/\[.+?\]\(/,h,/:\/\/.*?\)/),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}]},p={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},g={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},b=t.inherit(p,{contains:[]}),y=t.inherit(g,{contains:[]});p.contains.push(y),g.contains.push(b);let _=[a,f];return[p,g,b,y].forEach(C=>{C.contains=C.contains.concat(_)}),_=_.concat(p,g),{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,p,g,{className:"quote",begin:"^>\\s+",contains:_,end:"$"},o,s,f,d,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Gh=e,Gh}var Vh,mv;function gj(){if(mv)return Vh;mv=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 Vh=e,Vh}var Yh,pv;function xj(){if(pv)return Yh;pv=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"]},h={className:"doctag",begin:"@[A-Za-z]+"},f={begin:"#<",end:">"},p=[t.COMMENT("#","$",{contains:[h]}),t.COMMENT("^=begin","^=end",{contains:[h],relevance:10}),t.COMMENT("^__END__",t.MATCH_NOTHING_RE)],g={className:"subst",begin:/#\{/,end:/\}/,keywords:d},b={className:"string",contains:[t.BACKSLASH_ESCAPE,g],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,g]})]}]},y="[1-9](_?[0-9])*|0",_="[0-9](_?[0-9])*",N={className:"number",relevance:0,variants:[{begin:`\\b(${y})(\\.(${_}))?([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}]},H=[b,{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:[b,{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,g],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(f,p),relevance:0}].concat(f,p);g.contains=H,S.contains=H;const I=[{begin:/^\s*=>/,starts:{end:"$",contains:H}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:d,contains:H}}];return p.unshift(f),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:d,illegal:/\/\*/,contains:[t.SHEBANG({binary:"ruby"})].concat(I).concat(p).concat(H)}}return Yh=e,Yh}var Xh,gv;function bj(){if(gv)return Xh;gv=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 Xh=e,Xh}var Kh,xv;function yj(){if(xv)return Kh;xv=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 Kh=e,Kh}var Zh,bv;function vj(){if(bv)return Zh;bv=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:"'"}]},h={begin:/\[/,end:/\]/,contains:[s,c,o,d,a,"self"],relevance:0},f=/[A-Za-z0-9_-]+/,p=/"(\\"|[^"])*"/,g=/'[^']*'/,b=r.either(f,p,g),y=r.concat(b,"(\\s*\\.\\s*",b,")*",r.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[s,{className:"section",begin:/\[+/,end:/\]+/},{begin:y,className:"attr",starts:{end:/$/,contains:[s,h,c,o,d,a]}}]}}return Zh=e,Zh}var Qh,yv;function _j(){if(yv)return Qh;yv=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,h){return h===-1?"":c.replace(d,f=>s(c,d,h-1))}function o(c){const d=c.regex,h="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",f=h+s("(?:<"+h+"~~~(?:\\s*,\\s*"+h+"~~~)*>)?",/~~~/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:"@"+h,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+/,h],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[d.concat(/(?!else)/,h),/\s+/,h,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,h],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:["(?:"+f+"\\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 Qh=o,Qh}var Wh,vv;function wj(){if(vv)return Wh;vv=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 h(f){const p=f.regex,g=(J,{after:W})=>{const te="</"+J[0].slice(1);return J.input.indexOf(te,W)!==-1},b=e,y={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===">"&&(g(J,{after:te})||W.ignoreMatch());let fe;const xe=J.input.substring(te);if(fe=xe.match(/^\s*=/)){W.ignoreMatch();return}if((fe=xe.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])*",C=`\\.(${w})`,E="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",A={className:"number",variants:[{begin:`(\\b(${E})((${C})|\\.)?|(${C}))[eE][+-]?(${w})\\b`},{begin:`\\b(${E})\\b((${C})\\b|\\.)?|(${C})\\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},B={className:"subst",begin:"\\$\\{",end:"\\}",keywords:S,contains:[]},R={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,B],subLanguage:"xml"}},H={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,B],subLanguage:"css"}},z={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,B],subLanguage:"graphql"}},Y={className:"string",begin:"`",end:"`",contains:[f.BACKSLASH_ESCAPE,B]},I={className:"comment",variants:[f.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:b+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),f.C_BLOCK_COMMENT_MODE,f.C_LINE_COMMENT_MODE]},Z=[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE,R,H,z,Y,{match:/\$\d+/},A];B.contains=Z.concat({begin:/\{/,end:/\}/,keywords:S,contains:["self"].concat(Z)});const P=[].concat(I,B.contains),k=P.concat([{begin:/(\s*)\(/,end:/\)/,keywords:S,contains:["self"].concat(P)}]),$={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:S,contains:k},O={variants:[{match:[/class/,/\s+/,b,/\s+/,/extends/,/\s+/,p.concat(b,"(",p.concat(/\./,b),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,b],scope:{1:"keyword",3:"title.class"}}]},U={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)['"]/},X={variants:[{match:[/function/,/\s+/,b,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[$],illegal:/%/},M={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function L(J){return p.concat("(?!",J.join("|"),")")}const F={match:p.concat(/\b/,L([...o,"super","import"].map(J=>`${J}\\s*\\(`)),b,p.lookahead(/\s*\(/)),className:"title.function",relevance:0},D={begin:p.concat(/\./,p.lookahead(p.concat(b,/(?![0-9A-Za-z$_(])/))),end:b,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},V={match:[/get|set/,/\s+/,b,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},$]},q="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+f.UNDERSCORE_IDENT_RE+")\\s*=>",Q={match:[/const|var|let/,/\s+/,b,/\s*/,/=\s*/,/(async\s*)?/,p.lookahead(q)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[$]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:S,exports:{PARAMS_CONTAINS:k,CLASS_REFERENCE:U},illegal:/#(?![$_A-z])/,contains:[f.SHEBANG({label:"shebang",binary:"node",relevance:5}),K,f.APOS_STRING_MODE,f.QUOTE_STRING_MODE,R,H,z,Y,I,{match:/\$\d+/},A,U,{scope:"attr",match:b+p.lookahead(":"),relevance:0},Q,{begin:"("+f.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[I,f.REGEXP_MODE,{className:"function",begin:q,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:f.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:S,contains:k}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:y.begin,end:y.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)"+f.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[$,f.inherit(f.TITLE_MODE,{begin:b,className:"title.function"})]},{match:/\.\.\./,relevance:0},D,{match:"\\$"+b,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[$]},F,M,O,V,{match:/\$[(.]/}]}}return Wh=h,Wh}var Jh,_v;function Ej(){if(_v)return Jh;_v=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 Jh=e,Jh}var em,wv;function Nj(){if(wv)return em;wv=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+/}]}},h={className:"symbol",begin:o.UNDERSCORE_IDENT_RE+"@"},f={className:"subst",begin:/\$\{/,end:/\}/,contains:[o.C_NUMBER_MODE]},p={className:"variable",begin:"\\$"+o.UNDERSCORE_IDENT_RE},g={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[p,f]},{begin:"'",end:"'",illegal:/\n/,contains:[o.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[o.BACKSLASH_ESCAPE,p,f]}]};f.contains.push(g);const b={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+o.UNDERSCORE_IDENT_RE+")?"},y={className:"meta",begin:"@"+o.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[o.inherit(g,{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,h,b,y,{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,b,y,g,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},b,y]},g,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
-`},_]}}return em=s,em}var tm,Ev;function Sj(){if(Ev)return tm;Ev=1;const e=p=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:p.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:[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:p.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(),h=o.concat(c).sort().reverse();function f(p){const g=e(p),b=h,y="and or not only",_="[\\w-]+",N="("+_+"|@\\{"+_+"\\})",S=[],w=[],C=function(P){return{className:"string",begin:"~?"+P+".*?"+P}},E=function(P,k,$){return{className:P,begin:k,relevance:$}},A={$pattern:/[a-z-]+/,keyword:y,attribute:s.join(" ")},B={begin:"\\(",end:"\\)",contains:w,keywords:A,relevance:0};w.push(p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE,C("'"),C('"'),g.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},g.HEXCOLOR,B,E("variable","@@?"+_,10),E("variable","@\\{"+_+"\\}"),E("built_in","~?`[^`]*?`"),{className:"attribute",begin:_+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},g.IMPORTANT,{beginKeywords:"and not"},g.FUNCTION_DISPATCH);const R=w.concat({begin:/\{/,end:/\}/,contains:S}),H={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(w)},z={begin:N+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},g.CSS_VARIABLE,{className:"attribute",begin:"\\b("+d.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:w}}]},Y={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:A,returnEnd:!0,contains:w,relevance:0}},j={className:"variable",variants:[{begin:"@"+_+"\\s*:",relevance:15},{begin:"@"+_}],starts:{end:"[;}]",returnEnd:!0,contains:R}},I={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:N,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE,H,E("keyword","all\\b"),E("variable","@\\{"+_+"\\}"),{begin:"\\b("+a.join("|")+")\\b",className:"selector-tag"},g.CSS_NUMBER_MODE,E("selector-tag",N,0),E("selector-id","#"+N),E("selector-class","\\."+N,0),E("selector-tag","&",0),g.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+o.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+c.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:R},{begin:"!important"},g.FUNCTION_DISPATCH]},Z={begin:_+`:(:)?(${b.join("|")})`,returnBegin:!0,contains:[I]};return S.push(p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE,Y,j,Z,z,I,H,g.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:S}}return tm=f,tm}var nm,Nv;function kj(){if(Nv)return nm;Nv=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 nm=e,nm}var rm,Sv;function Cj(){if(Sv)return rm;Sv=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 rm=e,rm}var im,kv;function Tj(){if(kv)return im;kv=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:/\}/},h={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},f={scope:"variable",variants:[{begin:/\$\d/},{begin:r.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[h]},p={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},g=[t.BACKSLASH_ESCAPE,c,f],b=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],y=(S,w,C="\\1")=>{const E=C==="\\1"?C:r.concat(C,w);return r.concat(r.concat("(?:",S,")"),w,/(?:\\.|[^\\\/])*?/,E,/(?:\\.|[^\\\/])*?/,C,s)},_=(S,w,C)=>r.concat(r.concat("(?:",S,")"),w,/(?:\\.|[^\\\/])*?/,C,s),N=[f,t.HASH_COMMENT_MODE,t.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),d,{className:"string",contains:g,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}]},p,{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:y("s|tr|y",r.either(...b,{capture:!0}))},{begin:y("s|tr|y","\\(","\\)")},{begin:y("s|tr|y","\\[","\\]")},{begin:y("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:_("(?:m|qr)?",/\//,/\//)},{begin:_("m|qr",r.either(...b,{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,h]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,h,p]},{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 im=e,im}var am,Cv;function Aj(){if(Cv)return am;Cv=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_]*/,h={"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"]},f={$pattern:a,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:h,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:"("+f.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:f,contains:[t.UNDERSCORE_TITLE_MODE]},{begin:"\\."+t.UNDERSCORE_IDENT_RE,relevance:0}]}}return am=e,am}var sm,Tv;function Mj(){if(Tv)return sm;Tv=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},h={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},f={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},p=t.inherit(t.APOS_STRING_MODE,{illegal:null}),g=t.inherit(t.QUOTE_STRING_MODE,{illegal:null,contains:t.QUOTE_STRING_MODE.contains.concat(f)}),b={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:t.QUOTE_STRING_MODE.contains.concat(f),"on:begin":($,O)=>{O.data._beginMatch=$[1]||$[2]},"on:end":($,O)=>{O.data._beginMatch!==$[1]&&O.ignoreMatch()}},y=t.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),_=`[
-]`,N={scope:"string",variants:[g,p,b,y]},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"],C=["__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"],B={keyword:C,literal:($=>{const O=[];return $.forEach(U=>{O.push(U),U.toLowerCase()===U?O.push(U.toUpperCase()):O.push(U.toLowerCase())}),O})(w),built_in:E},R=$=>$.map(O=>O.replace(/\|\d+$/,"")),H={variants:[{match:[/new/,r.concat(_,"+"),r.concat("(?!",R(E).join("\\b|"),"\\b)"),o],scope:{1:"keyword",4:"title.class"}}]},z=r.concat(s,"\\b(?!\\()"),Y={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),z],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[o,r.concat(/::/,r.lookahead(/(?!class\b)/)),z],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"}}]},j={scope:"attr",match:r.concat(s,r.lookahead(":"),r.lookahead(/(?!::)/))},I={relevance:0,begin:/\(/,end:/\)/,keywords:B,contains:[j,d,Y,t.C_BLOCK_COMMENT_MODE,N,S,H]},Z={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",R(C).join("\\b|"),"|",R(E).join("\\b|"),"\\b)"),s,r.concat(_,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[I]};I.contains.push(Z);const P=[j,Y,t.C_BLOCK_COMMENT_MODE,N,S,H],k={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",...P]},...P,{scope:"meta",variants:[{match:o},{match:c}]}]};return{case_insensitive:!1,keywords:B,contains:[k,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}]}},h,{scope:"variable.language",match:/\$this\b/},d,Z,Y,{match:[/const/,/\s/,s],scope:{1:"keyword",3:"variable.constant"}},H,{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:B,contains:["self",k,d,Y,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 sm=e,sm}var lm,Av;function Oj(){if(Av)return lm;Av=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 lm=e,lm}var om,Mv;function Rj(){if(Mv)return om;Mv=1;function e(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return om=e,om}var cm,Ov;function jj(){if(Ov)return cm;Ov=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"],h={$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"]},f={className:"meta",begin:/^(>>>|\.\.\.) /},p={className:"subst",begin:/\{/,end:/\}/,keywords:h,illegal:/#/},g={begin:/\{\{/,relevance:0},b={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,f],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,f],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,f,g,p]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,f,g,p]},{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,g,p]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,g,p]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},y="[0-9](_?[0-9])*",_=`(\\b(${y}))?\\.(${y})|\\b(${y})\\.`,N=`\\b|${s.join("|")}`,S={className:"number",relevance:0,variants:[{begin:`(\\b(${y})|(${_}))[eE][+-]?(${y})[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(${y})[jJ](?=${N})`}]},w={className:"comment",begin:r.lookahead(/# type:/),end:/$/,keywords:h,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},C={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:["self",f,S,b,t.HASH_COMMENT_MODE]}]};return p.contains=[b,S,f],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:h,illegal:/(<\/|\?)|=>/,contains:[f,S,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},b,w,t.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[C]},{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,C,b]}]}}return cm=e,cm}var um,Rv;function Dj(){if(Rv)return um;Rv=1;function e(t){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return um=e,um}var dm,jv;function Lj(){if(jv)return dm;jv=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 dm=e,dm}var fm,Dv;function zj(){if(Dv)return fm;Dv=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))?",h=["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"],f=["true","false","Some","None","Ok","Err"],p=["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!"],g=["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:g,keyword:h,literal:f,built_in:p},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:p,type:g}},{className:"punctuation",begin:"->"},c]}}return fm=e,fm}var hm,Lv;function Ij(){if(Lv)return hm;Lv=1;const e=f=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:f.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:[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:f.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 h(f){const p=e(f),g=c,b=o,y="@[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:[f.C_LINE_COMMENT_MODE,f.C_BLOCK_COMMENT_MODE,p.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},p.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+a.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+b.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+g.join("|")+")"},S,{begin:/\(/,end:/\)/,contains:[p.CSS_NUMBER_MODE]},p.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:[p.BLOCK_COMMENT,S,p.HEXCOLOR,p.CSS_NUMBER_MODE,f.QUOTE_STRING_MODE,f.APOS_STRING_MODE,p.IMPORTANT,p.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:y,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:_,attribute:s.join(" ")},contains:[{begin:y,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},S,f.QUOTE_STRING_MODE,f.APOS_STRING_MODE,p.HEXCOLOR,p.CSS_NUMBER_MODE]},p.FUNCTION_DISPATCH]}}return hm=h,hm}var mm,zv;function Bj(){if(zv)return mm;zv=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 mm=e,mm}var pm,Iv;function Uj(){if(Iv)return pm;Iv=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"],h=["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"],f=["add","asc","collation","desc","final","first","last","view"],p=["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"],g=["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"],b=["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"],y=["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"],_=g,N=[...p,...f].filter(R=>!g.includes(R)),S={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},w={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},C={match:r.concat(/\b/,r.either(..._),/\s*\(/),relevance:0,keywords:{built_in:_}};function E(R){return r.concat(/\b/,r.either(...R.map(H=>H.replace(/\s+/,"\\s+"))),/\b/)}const A={scope:"keyword",match:E(y),relevance:0};function B(R,{exceptions:H,when:z}={}){const Y=z;return H=H||[],R.map(j=>j.match(/\|\d+$/)||H.includes(j)?j:Y(j)?`${j}|0`:j)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:B(N,{when:R=>R.length<3}),literal:c,type:h,built_in:b},contains:[{scope:"type",match:E(d)},A,C,S,s,o,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,a,w]}}return pm=e,pm}var gm,Bv;function Hj(){if(Bv)return gm;Bv=1;function e(z){return z?typeof z=="string"?z:z.source:null}function t(z){return r("(?=",z,")")}function r(...z){return z.map(j=>e(j)).join("")}function a(z){const Y=z[z.length-1];return typeof Y=="object"&&Y.constructor===Object?(z.splice(z.length-1,1),Y):{}}function s(...z){return"("+(a(z).capture?"":"?:")+z.map(I=>e(I)).join("|")+")"}const o=z=>r(/\b/,z,/\w$/.test(z)?/\b/:/\B/),c=["Protocol","Type"].map(o),d=["init","self"].map(o),h=["Any","Self"],f=["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"],p=["false","nil","true"],g=["assignment","associativity","higherThan","left","lowerThan","none","right"],b=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],y=["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]/),C=s(w,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),E=r(w,C,"*"),A=r(/[A-Z]/,C,"*"),B=["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 H(z){const Y={match:/\s+/,relevance:0},j=z.COMMENT("/\\*","\\*/",{contains:["self"]}),I=[z.C_LINE_COMMENT_MODE,j],Z={match:[/\./,s(...c,...d)],className:{2:"keyword"}},P={match:r(/\./,s(...f)),relevance:0},k=f.filter(nt=>typeof nt=="string").concat(["_|0"]),$=f.filter(nt=>typeof nt!="string").concat(h).map(o),O={variants:[{className:"keyword",match:s(...$,...d)}]},U={$pattern:s(/\b\w+/,/#\w+/),keyword:k.concat(b),literal:p},K=[Z,P,O],X={match:r(/\./,s(...y)),relevance:0},M={className:"built_in",match:r(/\b/,s(...y),/(?=\()/)},L=[X,M],F={match:/->/,relevance:0},D={className:"operator",relevance:0,variants:[{match:S},{match:`\\.(\\.|${N})+`}]},V=[F,D],q="([0-9]_*)+",Q="([0-9a-fA-F]_*)+",J={className:"number",relevance:0,variants:[{match:`\\b(${q})(\\.(${q}))?([eE][+-]?(${q}))?\\b`},{match:`\\b0x(${Q})(\\.(${Q}))?([pP][+-]?(${q}))?\\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)/)}),oe=(nt="")=>({className:"subst",label:"interpol",begin:r(/\\/,nt,/\(/),end:/\)/}),fe=(nt="")=>({begin:r(nt,/"""/),end:r(/"""/,nt),contains:[W(nt),te(nt),oe(nt)]}),xe=(nt="")=>({begin:r(nt,/"/),end:r(/"/,nt),contains:[W(nt),oe(nt)]}),we={className:"string",variants:[fe(),fe("#"),fe("##"),fe("###"),xe(),xe("#"),xe("##"),xe("###")]},Ne=[z.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[z.BACKSLASH_ESCAPE]}],De={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Ne},$e=nt=>{const Xn=r(nt,/\//),On=r(/\//,nt);return{begin:Xn,end:On,contains:[...Ne,{scope:"comment",begin:`#(?!.*${On})`,end:/$/}]}},st={scope:"regexp",variants:[$e("###"),$e("##"),$e("#"),De]},Rt={match:r(/`/,E,/`/)},Xt={className:"variable",match:/\$\d+/},Ft={className:"variable",match:`\\$${C}+`},Kt=[Rt,Xt,Ft],Yn={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:R,contains:[...V,J,we]}]}},Nn={scope:"keyword",match:r(/@/,s(...B),t(s(/\(/,/\s+/)))},ct={scope:"meta",match:r(/@/,E)},It=[Yn,Nn,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)/,C,"+")},{className:"type",match:A,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,t(A)),relevance:0}]},be={begin:/</,end:/>/,keywords:U,contains:[...I,...K,...It,F,ue]};ue.contains.push(be);const Oe={match:r(E,/\s*:/),keywords:"_|0",relevance:0},Fe={begin:/\(/,end:/\)/,relevance:0,keywords:U,contains:["self",Oe,...I,st,...K,...L,...V,J,we,...Kt,...It,ue]},Ze={begin:/</,end:/>/,keywords:"repeat each",contains:[...I,ue]},cn={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}]},Sn={begin:/\(/,end:/\)/,keywords:U,contains:[cn,...I,...K,...V,J,we,...It,ue,Fe],endsParent:!0,illegal:/["']/},Zt={match:[/(func|macro)/,/\s+/,s(Rt.match,E,S)],className:{1:"keyword",3:"title.function"},contains:[Ze,Sn,Y],illegal:[/\[/,/%/]},At={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Ze,Sn,Y],illegal:/\[|%/},Jt={match:[/operator/,/\s+/,S],className:{1:"keyword",3:"title"}},ut={begin:[/precedencegroup/,/\s+/,A],className:{1:"keyword",3:"title"},contains:[ue],keywords:[...g,...p],end:/}/},In={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},un={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},Si={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,E,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:U,contains:[Ze,...K,{begin:/:/,end:/\{/,keywords:U,contains:[{scope:"title.class.inherited",match:A},...K],relevance:0}]};for(const nt of we.variants){const Xn=nt.contains.find(mn=>mn.label==="interpol");Xn.keywords=U;const On=[...K,...L,...V,J,we,...Kt];Xn.contains=[...On,{begin:/\(/,end:/\)/,contains:["self",...On]}]}return{name:"Swift",keywords:U,contains:[...I,Zt,At,In,un,Si,Jt,ut,{beginKeywords:"import",end:/$/,contains:[...I],relevance:0},st,...K,...L,...V,J,we,...Kt,...It,ue,Fe]}}return gm=H,gm}var xm,Uv;function $j(){if(Uv)return xm;Uv=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]},h=t.inherit(d,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),y={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}},y,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},N,S,c,d],C=[...w];return C.pop(),C.push(h),_.contains=C,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:w}}return xm=e,xm}var bm,Hv;function qj(){if(Hv)return bm;Hv=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 h(p){const g=p.regex,b=(W,{after:te})=>{const oe="</"+W[0].slice(1);return W.input.indexOf(oe,te)!==-1},y=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===">"&&(b(W,{after:oe})||te.ignoreMatch());let xe;const we=W.input.substring(oe);if(xe=we.match(/^\s*=/)){te.ignoreMatch();return}if((xe=we.match(/^\s+extends\s+/))&&xe.index===0){te.ignoreMatch();return}}},w={$pattern:e,keyword:t,literal:r,built_in:d,"variable.language":c},C="[0-9](_?[0-9])*",E=`\\.(${C})`,A="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",B={className:"number",variants:[{begin:`(\\b(${A})((${E})|\\.)?|(${E}))[eE][+-]?(${C})\\b`},{begin:`\\b(${A})\\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:[]},H={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,R],subLanguage:"xml"}},z={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,R],subLanguage:"css"}},Y={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,R],subLanguage:"graphql"}},j={className:"string",begin:"`",end:"`",contains:[p.BACKSLASH_ESCAPE,R]},Z={className:"comment",variants:[p.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}]}]}),p.C_BLOCK_COMMENT_MODE,p.C_LINE_COMMENT_MODE]},P=[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,H,z,Y,j,{match:/\$\d+/},B];R.contains=P.concat({begin:/\{/,end:/\}/,keywords:w,contains:["self"].concat(P)});const k=[].concat(Z,R.contains),$=k.concat([{begin:/(\s*)\(/,end:/\)/,keywords:w,contains:["self"].concat(k)}]),O={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:w,contains:$},U={variants:[{match:[/class/,/\s+/,y,/\s+/,/extends/,/\s+/,g.concat(y,"(",g.concat(/\./,y),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,y],scope:{1:"keyword",3:"title.class"}}]},K={relevance:0,match:g.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)['"]/},M={variants:[{match:[/function/,/\s+/,y,/(?=\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 F(W){return g.concat("(?!",W.join("|"),")")}const D={match:g.concat(/\b/,F([...o,"super","import"].map(W=>`${W}\\s*\\(`)),y,g.lookahead(/\s*\(/)),className:"title.function",relevance:0},V={begin:g.concat(/\./,g.lookahead(g.concat(y,/(?![0-9A-Za-z$_(])/))),end:y,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},q={match:[/get|set/,/\s+/,y,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},O]},Q="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+p.UNDERSCORE_IDENT_RE+")\\s*=>",J={match:[/const|var|let/,/\s+/,y,/\s*/,/=\s*/,/(async\s*)?/,g.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:$,CLASS_REFERENCE:K},illegal:/#(?![$_A-z])/,contains:[p.SHEBANG({label:"shebang",binary:"node",relevance:5}),X,p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,H,z,Y,j,Z,{match:/\$\d+/},B,K,{scope:"attr",match:y+g.lookahead(":"),relevance:0},J,{begin:"("+p.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[Z,p.REGEXP_MODE,{className:"function",begin:Q,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:p.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:w,contains:$}]}]},{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"]}]}]},M,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+p.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[O,p.inherit(p.TITLE_MODE,{begin:y,className:"title.function"})]},{match:/\.\.\./,relevance:0},V,{match:"\\$"+y,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[O]},D,L,U,q,{match:/\$[(.]/}]}}function f(p){const g=p.regex,b=h(p),y=e,_=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],N={begin:[/namespace/,/\s+/,p.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},S={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:_},contains:[b.exports.CLASS_REFERENCE]},w={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},C=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],E={$pattern:e,keyword:t.concat(C),literal:r,built_in:d.concat(_),"variable.language":c},A={className:"meta",begin:"@"+y},B=(Y,j,I)=>{const Z=Y.contains.findIndex(P=>P.label===j);if(Z===-1)throw new Error("can not find mode to replace");Y.contains.splice(Z,1,I)};Object.assign(b.keywords,E),b.exports.PARAMS_CONTAINS.push(A);const R=b.contains.find(Y=>Y.scope==="attr"),H=Object.assign({},R,{match:g.concat(y,g.lookahead(/\s*\?:/))});b.exports.PARAMS_CONTAINS.push([b.exports.CLASS_REFERENCE,R,H]),b.contains=b.contains.concat([A,N,S,H]),B(b,"shebang",p.SHEBANG()),B(b,"use_strict",w);const z=b.contains.find(Y=>Y.label==="func.def");return z.relevance=0,Object.assign(b,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),b}return bm=f,bm}var ym,$v;function Pj(){if($v)return ym;$v=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)/,h=/\d{1,2}(:\d{1,2}){1,2}/,f={className:"literal",variants:[{begin:r.concat(/# */,r.either(c,o),/ *#/)},{begin:r.concat(/# */,h,/ *#/)},{begin:r.concat(/# */,d,/ *#/)},{begin:r.concat(/# */,r.either(c,o),/ +/,r.either(d,h),/ *#/)}]},p={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])|[%&])?/}]},g={className:"label",begin:/^\w+:/},b=t.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),y=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,f,p,g,b,y,{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:[y]}]}}return ym=e,ym}var vm,qv;function Fj(){if(qv)return vm;qv=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},h={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/},f={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},p={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,f,p,h]}}return vm=e,vm}var _m,Pv;function Gj(){if(Pv)return _m;Pv=1;var e=oj();return e.registerLanguage("xml",cj()),e.registerLanguage("bash",uj()),e.registerLanguage("c",dj()),e.registerLanguage("cpp",fj()),e.registerLanguage("csharp",hj()),e.registerLanguage("css",mj()),e.registerLanguage("markdown",pj()),e.registerLanguage("diff",gj()),e.registerLanguage("ruby",xj()),e.registerLanguage("go",bj()),e.registerLanguage("graphql",yj()),e.registerLanguage("ini",vj()),e.registerLanguage("java",_j()),e.registerLanguage("javascript",wj()),e.registerLanguage("json",Ej()),e.registerLanguage("kotlin",Nj()),e.registerLanguage("less",Sj()),e.registerLanguage("lua",kj()),e.registerLanguage("makefile",Cj()),e.registerLanguage("perl",Tj()),e.registerLanguage("objectivec",Aj()),e.registerLanguage("php",Mj()),e.registerLanguage("php-template",Oj()),e.registerLanguage("plaintext",Rj()),e.registerLanguage("python",jj()),e.registerLanguage("python-repl",Dj()),e.registerLanguage("r",Lj()),e.registerLanguage("rust",zj()),e.registerLanguage("scss",Ij()),e.registerLanguage("shell",Bj()),e.registerLanguage("sql",Uj()),e.registerLanguage("swift",Hj()),e.registerLanguage("yaml",$j()),e.registerLanguage("typescript",qj()),e.registerLanguage("vbnet",Pj()),e.registerLanguage("wasm",Fj()),e.HighlightJS=e,e.default=e,_m=e,_m}var Vj=Gj();const zn=Mo(Vj);function Yj(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 Xj(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 Kj(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 Zj(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 Qj(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+"$"}]}}zn.registerLanguage("http",Yj);zn.registerLanguage("nginx",Xj);zn.registerLanguage("apache",Kj);zn.registerLanguage("dockerfile",Zj);zn.registerLanguage("properties",Qj);function _E(e,t){try{if(t&&zn.getLanguage(t))return zn.highlight(e,{language:t,ignoreIllegals:!0}).value;const r=zn.highlightAuto(e);return r.language?r.value:zn.highlight(e,{language:"python",ignoreIllegals:!0}).value}catch{return zn.highlight(e,{language:"python",ignoreIllegals:!0}).value}}function wE({className:e,children:t,node:r}){var w,C;const[a,s]=ee.useState(!1),o=String(t).replace(/\n$/,""),c=/language-(\S+)/.exec(e||"");if(!(o.includes(`
-`)||c))return m.jsx("code",{className:`${e||""} bg-white/8 px-1.5 py-0.5 rounded text-[13px]`,children:t});const h=((w=r==null?void 0:r.data)==null?void 0:w.meta)||((C=r==null?void 0:r.properties)==null?void 0:C.metastring)||"",f=/title=["']?([^"'\s}]+)["']?/.exec(h),p=/startLineNumber=(\d+)/.exec(h),g=(f==null?void 0:f[1])||null,b=p?parseInt(p[1],10):1,y=g?p?`${g}:${b}`:g:null,N=_E(o,c==null?void 0:c[1]).split(`
+`,1;if(al>1e5&&al>Re.index*3)throw new Error("potential infinite loop, way more iterations than matches");return xt+=Ye,Ye.length}const dn=bn(ye);if(!dn)throw ct(gt.replace("{}",ye)),new Error('Unknown language: "'+ye+'"');const ya=Zt(dn);let as="",qe=ft||ya;const Po={},en=new Se.__emitter(Se);ba();let xt="",ji=0,ei=0,al=0,Di=!1;try{if(dn.__emitTokens)dn.__emitTokens(Le,en);else{for(qe.matcher.considerAll();;){al++,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=Ri(Re,_e);ei=_e.index+Ye}Ri(Le.substring(ei))}return en.finalize(),as=en.toHTML(),{language:ye,value:as,relevance:ji,illegal:!1,_emitter:en,_top:qe}}catch(_e){if(_e.message&&_e.message.includes("Illegal"))return{language:ye,value:un(Le),illegal:!0,relevance:0,_illegalBy:{message:_e.message,index:ei,context:Le.slice(ei-100,ei+100),mode:_e.mode,resultSoFar:as},_emitter:en};if(St)return{language:ye,value:un(Le),illegal:!1,relevance:0,errorRaised:_e,_emitter:en,_top:qe};throw _e}}function ki(ye){const Le={value:un(ye),illegal:!1,relevance:0,_top:Me,_emitter:new Se.__emitter(Se)};return Le._emitter.addText(ye),Le}function Ci(ye,Le){Le=Le||Se.languages||Object.keys(me);const Qe=ki(ye),ft=Le.filter(bn).filter(Er).map(_t=>vr(_t,ye,!1));ft.unshift(Qe);const Ht=ft.sort((_t,jn)=>{if(_t.relevance!==jn.relevance)return jn.relevance-_t.relevance;if(_t.language&&jn.language){if(bn(_t.language).supersetOf===jn.language)return 1;if(bn(jn.language).supersetOf===_t.language)return-1}return 0}),[gn,Rn]=Ht,kn=gn;return kn.secondBest=Rn,kn}function lr(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 In("One of your code blocks includes unescaped HTML.",ye.innerHTML);Le=ye;const ft=Le.textContent,Ht=Qe?Mt(ft,{language:Qe,ignoreIllegals:!0}):Ci(ft);ye.innerHTML=Ht.value,ye.dataset.highlighted="yes",lr(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 pn(ye){Se=Si(Se,ye)}const _r=()=>{Ai(),ue("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Ti(){Ai(),ue("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let ga=!1;function Ai(){function ye(){Ai()}if(document.readyState==="loading"){ga||window.addEventListener("DOMContentLoaded",ye,!1),ga=!0;return}document.querySelectorAll(Se.cssSelector).forEach(Ut)}function ts(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=Me}Qe.name||(Qe.name=ye),me[ye]=Qe,Qe.rawDefinition=Le.bind(null,re),Qe.aliases&&wr(Qe.aliases,{languageName:ye})}function Wr(ye){delete me[ye];for(const Le of Object.keys(Ee))Ee[Le]===ye&&delete Ee[Le]}function xa(){return Object.keys(me)}function bn(ye){return ye=(ye||"").toLowerCase(),me[ye]||me[Ee[ye]]}function wr(ye,{languageName:Le}){typeof ye=="string"&&(ye=[ye]),ye.forEach(Qe=>{Ee[Qe.toLowerCase()]=Le})}function Er(ye){const Le=bn(ye);return Le&&!Le.disableAutodetect}function Br(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 Gt(ye){Br(ye),Pe.push(ye)}function ns(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 Nr(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:Ci,highlightAll:Ai,highlightElement:Ut,highlightBlock:Nr,configure:pn,initHighlighting:_r,initHighlightingOnLoad:Ti,registerLanguage:ts,unregisterLanguage:Wr,listLanguages:xa,getLanguage:bn,registerAliases:wr,autoDetection:Er,inherit:Si,addPlugin:Gt,removePlugin:ns}),re.debugMode=function(){St=!1},re.safeMode=function(){St=!0},re.versionString=ut,re.regex={concat:N,lookahead:b,either:w,optional:_,anyNumberOfTimes:y};for(const ye in oe)typeof oe[ye]=="object"&&e(oe[ye]);return Object.assign(re,oe),re},mn=On({});return mn.newInstance=()=>On({}),Bh=mn,mn.HighlightJS=mn,mn.default=mn,Bh}var Uh,lv;function uj(){if(lv)return Uh;lv=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:/\)/}),h=t.inherit(t.APOS_STRING_MODE,{className:"string"}),f=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),p={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,f,h,d,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[c,d,f,h]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[f]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[p],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[p],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:p}]},{className:"tag",begin:r.concat(/<\//,r.lookahead(r.concat(a,/>/))),contains:[{className:"name",begin:a,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return Uh=e,Uh}var Hh,ov;function dj(){if(ov)return Hh;ov=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"})]}},h={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,a,o]};o.contains.push(h);const f={match:/\\"/},p={className:"string",begin:/'/,end:/'/},g={match:/\\'/},b={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},t.NUMBER_MODE,a]},y=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],_=t.SHEBANG({binary:`(${y.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"],C={match:/(\/[a-z._-]+)+/},E=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],A=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],B=["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,...A,"set","shopt",...B,...R]},contains:[_,t.SHEBANG(),N,b,c,d,C,h,f,p,g,a]}}return Hh=e,Hh}var $h,cv;function fj(){if(cv)return $h;cv=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("<[^<>]+>")+")",h={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},p={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})"/})]},g={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},b={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(p,{className:"string"}),{className:"string",begin:/<.*?>/},a,t.C_BLOCK_COMMENT_MODE]},y={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"},C=[b,h,a,t.C_BLOCK_COMMENT_MODE,g,p],E={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:w,contains:C.concat([{begin:/\(/,end:/\)/,keywords:w,contains:C.concat(["self"]),relevance:0}]),relevance:0},A={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(y,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:[a,t.C_BLOCK_COMMENT_MODE,p,g,h,{begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:["self",a,t.C_BLOCK_COMMENT_MODE,p,g,h]}]},h,a,t.C_BLOCK_COMMENT_MODE,b]};return{name:"C",aliases:["h"],keywords:w,disableAutodetect:!0,illegal:"</",contains:[].concat(E,A,C,[b,{begin:t.IDENT_RE+"::",keywords:w},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},t.TITLE_MODE]}]),exports:{preprocessor:b,strings:p,keywords:w}}}return $h=e,$h}var qh,uv;function hj(){if(uv)return qh;uv=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("<[^<>]+>")+")",h={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},p={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})"/})]},g={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},b={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(p,{className:"string"}),{className:"string",begin:/<.*?>/},a,t.C_BLOCK_COMMENT_MODE]},y={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"],C=["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"],B={type:S,keyword:N,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:w},R={className:"function.dispatch",relevance:0,keywords:{_hint:C},begin:r.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},H=[R,b,h,a,t.C_BLOCK_COMMENT_MODE,g,p],z={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:B,contains:H.concat([{begin:/\(/,end:/\)/,keywords:B,contains:H.concat(["self"]),relevance:0}]),relevance:0},Y={className:"function",begin:"("+d+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:B,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:B,relevance:0},{begin:_,returnBegin:!0,contains:[y],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[p,g]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:B,relevance:0,contains:[a,t.C_BLOCK_COMMENT_MODE,p,g,h,{begin:/\(/,end:/\)/,keywords:B,relevance:0,contains:["self",a,t.C_BLOCK_COMMENT_MODE,p,g,h]}]},h,a,t.C_BLOCK_COMMENT_MODE,b]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:B,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(z,Y,R,H,[b,{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:B,contains:["self",h]},{begin:t.IDENT_RE+"::",keywords:B},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return qh=e,qh}var Ph,dv;function mj(){if(dv)return Ph;dv=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},h=t.inherit(t.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),f={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},p={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},g={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},b=t.inherit(g,{illegal:/\n/}),y={className:"subst",begin:/\{/,end:/\}/,keywords:d},_=t.inherit(y,{illegal:/\n/}),N={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},t.BACKSLASH_ESCAPE,_]},S={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},y]},w=t.inherit(S,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},_]});y.contains=[S,N,g,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,f,t.C_BLOCK_COMMENT_MODE],_.contains=[w,N,b,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,f,t.inherit(t.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const C={variants:[p,S,N,g,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},E={begin:"<",end:">",contains:[{beginKeywords:"in out"},h]},A=t.IDENT_RE+"(<"+t.IDENT_RE+"(\\s*,\\s*"+t.IDENT_RE+")*>)?(\\[\\])?",B={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"}},C,f,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},h,E,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[h,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[h,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:"("+A+"\\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:[C,f,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},B]}}return Ph=e,Ph}var Fh,fv;function pj(){if(fv)return Fh;fv=1;const e=f=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:f.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:[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:f.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 h(f){const p=f.regex,g=e(f),b={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},y="and or not only",_=/@-?\w[\w]*(-\w+)*/,N="[a-zA-Z-][a-zA-Z0-9_-]*",S=[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[g.BLOCK_COMMENT,b,g.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+N,relevance:0},g.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+o.join("|")+")"},{begin:":(:)?("+c.join("|")+")"}]},g.CSS_VARIABLE,{className:"attribute",begin:"\\b("+d.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[g.BLOCK_COMMENT,g.HEXCOLOR,g.IMPORTANT,g.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}]},g.FUNCTION_DISPATCH]},{begin:p.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:_},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:y,attribute:s.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...S,g.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+a.join("|")+")\\b"}]}}return Fh=h,Fh}var Gh,hv;function gj(){if(hv)return Gh;hv=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}]},h=/[A-Za-z][A-Za-z0-9+.-]*/,f={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:r.concat(/\[.+?\]\(/,h,/:\/\/.*?\)/),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}]},p={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},g={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},b=t.inherit(p,{contains:[]}),y=t.inherit(g,{contains:[]});p.contains.push(y),g.contains.push(b);let _=[a,f];return[p,g,b,y].forEach(C=>{C.contains=C.contains.concat(_)}),_=_.concat(p,g),{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,p,g,{className:"quote",begin:"^>\\s+",contains:_,end:"$"},o,s,f,d,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Gh=e,Gh}var Vh,mv;function xj(){if(mv)return Vh;mv=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 Vh=e,Vh}var Yh,pv;function bj(){if(pv)return Yh;pv=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"]},h={className:"doctag",begin:"@[A-Za-z]+"},f={begin:"#<",end:">"},p=[t.COMMENT("#","$",{contains:[h]}),t.COMMENT("^=begin","^=end",{contains:[h],relevance:10}),t.COMMENT("^__END__",t.MATCH_NOTHING_RE)],g={className:"subst",begin:/#\{/,end:/\}/,keywords:d},b={className:"string",contains:[t.BACKSLASH_ESCAPE,g],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,g]})]}]},y="[1-9](_?[0-9])*|0",_="[0-9](_?[0-9])*",N={className:"number",relevance:0,variants:[{begin:`\\b(${y})(\\.(${_}))?([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}]},H=[b,{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:[b,{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,g],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(f,p),relevance:0}].concat(f,p);g.contains=H,S.contains=H;const I=[{begin:/^\s*=>/,starts:{end:"$",contains:H}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:d,contains:H}}];return p.unshift(f),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:d,illegal:/\/\*/,contains:[t.SHEBANG({binary:"ruby"})].concat(I).concat(p).concat(H)}}return Yh=e,Yh}var Xh,gv;function yj(){if(gv)return Xh;gv=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 Xh=e,Xh}var Kh,xv;function vj(){if(xv)return Kh;xv=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 Kh=e,Kh}var Zh,bv;function _j(){if(bv)return Zh;bv=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:"'"}]},h={begin:/\[/,end:/\]/,contains:[s,c,o,d,a,"self"],relevance:0},f=/[A-Za-z0-9_-]+/,p=/"(\\"|[^"])*"/,g=/'[^']*'/,b=r.either(f,p,g),y=r.concat(b,"(\\s*\\.\\s*",b,")*",r.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[s,{className:"section",begin:/\[+/,end:/\]+/},{begin:y,className:"attr",starts:{end:/$/,contains:[s,h,c,o,d,a]}}]}}return Zh=e,Zh}var Qh,yv;function wj(){if(yv)return Qh;yv=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,h){return h===-1?"":c.replace(d,f=>s(c,d,h-1))}function o(c){const d=c.regex,h="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",f=h+s("(?:<"+h+"~~~(?:\\s*,\\s*"+h+"~~~)*>)?",/~~~/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:"@"+h,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+/,h],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[d.concat(/(?!else)/,h),/\s+/,h,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,h],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:["(?:"+f+"\\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 Qh=o,Qh}var Wh,vv;function Ej(){if(vv)return Wh;vv=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 h(f){const p=f.regex,g=(J,{after:W})=>{const te="</"+J[0].slice(1);return J.input.indexOf(te,W)!==-1},b=e,y={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===">"&&(g(J,{after:te})||W.ignoreMatch());let fe;const xe=J.input.substring(te);if(fe=xe.match(/^\s*=/)){W.ignoreMatch();return}if((fe=xe.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])*",C=`\\.(${w})`,E="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",A={className:"number",variants:[{begin:`(\\b(${E})((${C})|\\.)?|(${C}))[eE][+-]?(${w})\\b`},{begin:`\\b(${E})\\b((${C})\\b|\\.)?|(${C})\\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},B={className:"subst",begin:"\\$\\{",end:"\\}",keywords:S,contains:[]},R={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,B],subLanguage:"xml"}},H={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,B],subLanguage:"css"}},z={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,B],subLanguage:"graphql"}},Y={className:"string",begin:"`",end:"`",contains:[f.BACKSLASH_ESCAPE,B]},I={className:"comment",variants:[f.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:b+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),f.C_BLOCK_COMMENT_MODE,f.C_LINE_COMMENT_MODE]},Z=[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE,R,H,z,Y,{match:/\$\d+/},A];B.contains=Z.concat({begin:/\{/,end:/\}/,keywords:S,contains:["self"].concat(Z)});const P=[].concat(I,B.contains),k=P.concat([{begin:/(\s*)\(/,end:/\)/,keywords:S,contains:["self"].concat(P)}]),$={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:S,contains:k},O={variants:[{match:[/class/,/\s+/,b,/\s+/,/extends/,/\s+/,p.concat(b,"(",p.concat(/\./,b),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,b],scope:{1:"keyword",3:"title.class"}}]},U={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)['"]/},X={variants:[{match:[/function/,/\s+/,b,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[$],illegal:/%/},M={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function L(J){return p.concat("(?!",J.join("|"),")")}const F={match:p.concat(/\b/,L([...o,"super","import"].map(J=>`${J}\\s*\\(`)),b,p.lookahead(/\s*\(/)),className:"title.function",relevance:0},D={begin:p.concat(/\./,p.lookahead(p.concat(b,/(?![0-9A-Za-z$_(])/))),end:b,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},V={match:[/get|set/,/\s+/,b,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},$]},q="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+f.UNDERSCORE_IDENT_RE+")\\s*=>",Q={match:[/const|var|let/,/\s+/,b,/\s*/,/=\s*/,/(async\s*)?/,p.lookahead(q)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[$]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:S,exports:{PARAMS_CONTAINS:k,CLASS_REFERENCE:U},illegal:/#(?![$_A-z])/,contains:[f.SHEBANG({label:"shebang",binary:"node",relevance:5}),K,f.APOS_STRING_MODE,f.QUOTE_STRING_MODE,R,H,z,Y,I,{match:/\$\d+/},A,U,{scope:"attr",match:b+p.lookahead(":"),relevance:0},Q,{begin:"("+f.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[I,f.REGEXP_MODE,{className:"function",begin:q,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:f.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:S,contains:k}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:y.begin,end:y.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)"+f.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[$,f.inherit(f.TITLE_MODE,{begin:b,className:"title.function"})]},{match:/\.\.\./,relevance:0},D,{match:"\\$"+b,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[$]},F,M,O,V,{match:/\$[(.]/}]}}return Wh=h,Wh}var Jh,_v;function Nj(){if(_v)return Jh;_v=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 Jh=e,Jh}var em,wv;function Sj(){if(wv)return em;wv=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+/}]}},h={className:"symbol",begin:o.UNDERSCORE_IDENT_RE+"@"},f={className:"subst",begin:/\$\{/,end:/\}/,contains:[o.C_NUMBER_MODE]},p={className:"variable",begin:"\\$"+o.UNDERSCORE_IDENT_RE},g={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[p,f]},{begin:"'",end:"'",illegal:/\n/,contains:[o.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[o.BACKSLASH_ESCAPE,p,f]}]};f.contains.push(g);const b={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+o.UNDERSCORE_IDENT_RE+")?"},y={className:"meta",begin:"@"+o.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[o.inherit(g,{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,h,b,y,{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,b,y,g,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},b,y]},g,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
+`},_]}}return em=s,em}var tm,Ev;function kj(){if(Ev)return tm;Ev=1;const e=p=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:p.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:[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:p.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(),h=o.concat(c).sort().reverse();function f(p){const g=e(p),b=h,y="and or not only",_="[\\w-]+",N="("+_+"|@\\{"+_+"\\})",S=[],w=[],C=function(P){return{className:"string",begin:"~?"+P+".*?"+P}},E=function(P,k,$){return{className:P,begin:k,relevance:$}},A={$pattern:/[a-z-]+/,keyword:y,attribute:s.join(" ")},B={begin:"\\(",end:"\\)",contains:w,keywords:A,relevance:0};w.push(p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE,C("'"),C('"'),g.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},g.HEXCOLOR,B,E("variable","@@?"+_,10),E("variable","@\\{"+_+"\\}"),E("built_in","~?`[^`]*?`"),{className:"attribute",begin:_+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},g.IMPORTANT,{beginKeywords:"and not"},g.FUNCTION_DISPATCH);const R=w.concat({begin:/\{/,end:/\}/,contains:S}),H={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(w)},z={begin:N+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},g.CSS_VARIABLE,{className:"attribute",begin:"\\b("+d.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:w}}]},Y={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:A,returnEnd:!0,contains:w,relevance:0}},j={className:"variable",variants:[{begin:"@"+_+"\\s*:",relevance:15},{begin:"@"+_}],starts:{end:"[;}]",returnEnd:!0,contains:R}},I={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:N,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE,H,E("keyword","all\\b"),E("variable","@\\{"+_+"\\}"),{begin:"\\b("+a.join("|")+")\\b",className:"selector-tag"},g.CSS_NUMBER_MODE,E("selector-tag",N,0),E("selector-id","#"+N),E("selector-class","\\."+N,0),E("selector-tag","&",0),g.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+o.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+c.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:R},{begin:"!important"},g.FUNCTION_DISPATCH]},Z={begin:_+`:(:)?(${b.join("|")})`,returnBegin:!0,contains:[I]};return S.push(p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE,Y,j,Z,z,I,H,g.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:S}}return tm=f,tm}var nm,Nv;function Cj(){if(Nv)return nm;Nv=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 nm=e,nm}var rm,Sv;function Tj(){if(Sv)return rm;Sv=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 rm=e,rm}var im,kv;function Aj(){if(kv)return im;kv=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:/\}/},h={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},f={scope:"variable",variants:[{begin:/\$\d/},{begin:r.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[h]},p={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},g=[t.BACKSLASH_ESCAPE,c,f],b=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],y=(S,w,C="\\1")=>{const E=C==="\\1"?C:r.concat(C,w);return r.concat(r.concat("(?:",S,")"),w,/(?:\\.|[^\\\/])*?/,E,/(?:\\.|[^\\\/])*?/,C,s)},_=(S,w,C)=>r.concat(r.concat("(?:",S,")"),w,/(?:\\.|[^\\\/])*?/,C,s),N=[f,t.HASH_COMMENT_MODE,t.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),d,{className:"string",contains:g,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}]},p,{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:y("s|tr|y",r.either(...b,{capture:!0}))},{begin:y("s|tr|y","\\(","\\)")},{begin:y("s|tr|y","\\[","\\]")},{begin:y("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:_("(?:m|qr)?",/\//,/\//)},{begin:_("m|qr",r.either(...b,{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,h]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,h,p]},{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 im=e,im}var am,Cv;function Mj(){if(Cv)return am;Cv=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_]*/,h={"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"]},f={$pattern:a,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:h,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:"("+f.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:f,contains:[t.UNDERSCORE_TITLE_MODE]},{begin:"\\."+t.UNDERSCORE_IDENT_RE,relevance:0}]}}return am=e,am}var sm,Tv;function Oj(){if(Tv)return sm;Tv=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},h={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},f={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},p=t.inherit(t.APOS_STRING_MODE,{illegal:null}),g=t.inherit(t.QUOTE_STRING_MODE,{illegal:null,contains:t.QUOTE_STRING_MODE.contains.concat(f)}),b={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:t.QUOTE_STRING_MODE.contains.concat(f),"on:begin":($,O)=>{O.data._beginMatch=$[1]||$[2]},"on:end":($,O)=>{O.data._beginMatch!==$[1]&&O.ignoreMatch()}},y=t.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),_=`[
+]`,N={scope:"string",variants:[g,p,b,y]},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"],C=["__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"],B={keyword:C,literal:($=>{const O=[];return $.forEach(U=>{O.push(U),U.toLowerCase()===U?O.push(U.toUpperCase()):O.push(U.toLowerCase())}),O})(w),built_in:E},R=$=>$.map(O=>O.replace(/\|\d+$/,"")),H={variants:[{match:[/new/,r.concat(_,"+"),r.concat("(?!",R(E).join("\\b|"),"\\b)"),o],scope:{1:"keyword",4:"title.class"}}]},z=r.concat(s,"\\b(?!\\()"),Y={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),z],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[o,r.concat(/::/,r.lookahead(/(?!class\b)/)),z],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"}}]},j={scope:"attr",match:r.concat(s,r.lookahead(":"),r.lookahead(/(?!::)/))},I={relevance:0,begin:/\(/,end:/\)/,keywords:B,contains:[j,d,Y,t.C_BLOCK_COMMENT_MODE,N,S,H]},Z={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",R(C).join("\\b|"),"|",R(E).join("\\b|"),"\\b)"),s,r.concat(_,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[I]};I.contains.push(Z);const P=[j,Y,t.C_BLOCK_COMMENT_MODE,N,S,H],k={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",...P]},...P,{scope:"meta",variants:[{match:o},{match:c}]}]};return{case_insensitive:!1,keywords:B,contains:[k,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}]}},h,{scope:"variable.language",match:/\$this\b/},d,Z,Y,{match:[/const/,/\s/,s],scope:{1:"keyword",3:"variable.constant"}},H,{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:B,contains:["self",k,d,Y,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 sm=e,sm}var lm,Av;function Rj(){if(Av)return lm;Av=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 lm=e,lm}var om,Mv;function jj(){if(Mv)return om;Mv=1;function e(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return om=e,om}var cm,Ov;function Dj(){if(Ov)return cm;Ov=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"],h={$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"]},f={className:"meta",begin:/^(>>>|\.\.\.) /},p={className:"subst",begin:/\{/,end:/\}/,keywords:h,illegal:/#/},g={begin:/\{\{/,relevance:0},b={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,f],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,f],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,f,g,p]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,f,g,p]},{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,g,p]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,g,p]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},y="[0-9](_?[0-9])*",_=`(\\b(${y}))?\\.(${y})|\\b(${y})\\.`,N=`\\b|${s.join("|")}`,S={className:"number",relevance:0,variants:[{begin:`(\\b(${y})|(${_}))[eE][+-]?(${y})[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(${y})[jJ](?=${N})`}]},w={className:"comment",begin:r.lookahead(/# type:/),end:/$/,keywords:h,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},C={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:["self",f,S,b,t.HASH_COMMENT_MODE]}]};return p.contains=[b,S,f],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:h,illegal:/(<\/|\?)|=>/,contains:[f,S,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},b,w,t.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[C]},{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,C,b]}]}}return cm=e,cm}var um,Rv;function Lj(){if(Rv)return um;Rv=1;function e(t){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return um=e,um}var dm,jv;function zj(){if(jv)return dm;jv=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 dm=e,dm}var fm,Dv;function Ij(){if(Dv)return fm;Dv=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))?",h=["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"],f=["true","false","Some","None","Ok","Err"],p=["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!"],g=["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:g,keyword:h,literal:f,built_in:p},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:p,type:g}},{className:"punctuation",begin:"->"},c]}}return fm=e,fm}var hm,Lv;function Bj(){if(Lv)return hm;Lv=1;const e=f=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:f.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:[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:f.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 h(f){const p=e(f),g=c,b=o,y="@[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:[f.C_LINE_COMMENT_MODE,f.C_BLOCK_COMMENT_MODE,p.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},p.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+a.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+b.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+g.join("|")+")"},S,{begin:/\(/,end:/\)/,contains:[p.CSS_NUMBER_MODE]},p.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:[p.BLOCK_COMMENT,S,p.HEXCOLOR,p.CSS_NUMBER_MODE,f.QUOTE_STRING_MODE,f.APOS_STRING_MODE,p.IMPORTANT,p.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:y,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:_,attribute:s.join(" ")},contains:[{begin:y,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},S,f.QUOTE_STRING_MODE,f.APOS_STRING_MODE,p.HEXCOLOR,p.CSS_NUMBER_MODE]},p.FUNCTION_DISPATCH]}}return hm=h,hm}var mm,zv;function Uj(){if(zv)return mm;zv=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 mm=e,mm}var pm,Iv;function Hj(){if(Iv)return pm;Iv=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"],h=["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"],f=["add","asc","collation","desc","final","first","last","view"],p=["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"],g=["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"],b=["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"],y=["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"],_=g,N=[...p,...f].filter(R=>!g.includes(R)),S={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},w={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},C={match:r.concat(/\b/,r.either(..._),/\s*\(/),relevance:0,keywords:{built_in:_}};function E(R){return r.concat(/\b/,r.either(...R.map(H=>H.replace(/\s+/,"\\s+"))),/\b/)}const A={scope:"keyword",match:E(y),relevance:0};function B(R,{exceptions:H,when:z}={}){const Y=z;return H=H||[],R.map(j=>j.match(/\|\d+$/)||H.includes(j)?j:Y(j)?`${j}|0`:j)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:B(N,{when:R=>R.length<3}),literal:c,type:h,built_in:b},contains:[{scope:"type",match:E(d)},A,C,S,s,o,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,a,w]}}return pm=e,pm}var gm,Bv;function $j(){if(Bv)return gm;Bv=1;function e(z){return z?typeof z=="string"?z:z.source:null}function t(z){return r("(?=",z,")")}function r(...z){return z.map(j=>e(j)).join("")}function a(z){const Y=z[z.length-1];return typeof Y=="object"&&Y.constructor===Object?(z.splice(z.length-1,1),Y):{}}function s(...z){return"("+(a(z).capture?"":"?:")+z.map(I=>e(I)).join("|")+")"}const o=z=>r(/\b/,z,/\w$/.test(z)?/\b/:/\B/),c=["Protocol","Type"].map(o),d=["init","self"].map(o),h=["Any","Self"],f=["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"],p=["false","nil","true"],g=["assignment","associativity","higherThan","left","lowerThan","none","right"],b=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],y=["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]/),C=s(w,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),E=r(w,C,"*"),A=r(/[A-Z]/,C,"*"),B=["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 H(z){const Y={match:/\s+/,relevance:0},j=z.COMMENT("/\\*","\\*/",{contains:["self"]}),I=[z.C_LINE_COMMENT_MODE,j],Z={match:[/\./,s(...c,...d)],className:{2:"keyword"}},P={match:r(/\./,s(...f)),relevance:0},k=f.filter(nt=>typeof nt=="string").concat(["_|0"]),$=f.filter(nt=>typeof nt!="string").concat(h).map(o),O={variants:[{className:"keyword",match:s(...$,...d)}]},U={$pattern:s(/\b\w+/,/#\w+/),keyword:k.concat(b),literal:p},K=[Z,P,O],X={match:r(/\./,s(...y)),relevance:0},M={className:"built_in",match:r(/\b/,s(...y),/(?=\()/)},L=[X,M],F={match:/->/,relevance:0},D={className:"operator",relevance:0,variants:[{match:S},{match:`\\.(\\.|${N})+`}]},V=[F,D],q="([0-9]_*)+",Q="([0-9a-fA-F]_*)+",J={className:"number",relevance:0,variants:[{match:`\\b(${q})(\\.(${q}))?([eE][+-]?(${q}))?\\b`},{match:`\\b0x(${Q})(\\.(${Q}))?([pP][+-]?(${q}))?\\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)/)}),oe=(nt="")=>({className:"subst",label:"interpol",begin:r(/\\/,nt,/\(/),end:/\)/}),fe=(nt="")=>({begin:r(nt,/"""/),end:r(/"""/,nt),contains:[W(nt),te(nt),oe(nt)]}),xe=(nt="")=>({begin:r(nt,/"/),end:r(/"/,nt),contains:[W(nt),oe(nt)]}),we={className:"string",variants:[fe(),fe("#"),fe("##"),fe("###"),xe(),xe("#"),xe("##"),xe("###")]},Ne=[z.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[z.BACKSLASH_ESCAPE]}],De={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Ne},$e=nt=>{const Xn=r(nt,/\//),On=r(/\//,nt);return{begin:Xn,end:On,contains:[...Ne,{scope:"comment",begin:`#(?!.*${On})`,end:/$/}]}},st={scope:"regexp",variants:[$e("###"),$e("##"),$e("#"),De]},Rt={match:r(/`/,E,/`/)},Xt={className:"variable",match:/\$\d+/},Ft={className:"variable",match:`\\$${C}+`},Kt=[Rt,Xt,Ft],Yn={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:R,contains:[...V,J,we]}]}},Nn={scope:"keyword",match:r(/@/,s(...B),t(s(/\(/,/\s+/)))},ct={scope:"meta",match:r(/@/,E)},It=[Yn,Nn,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)/,C,"+")},{className:"type",match:A,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,t(A)),relevance:0}]},be={begin:/</,end:/>/,keywords:U,contains:[...I,...K,...It,F,ue]};ue.contains.push(be);const Oe={match:r(E,/\s*:/),keywords:"_|0",relevance:0},Fe={begin:/\(/,end:/\)/,relevance:0,keywords:U,contains:["self",Oe,...I,st,...K,...L,...V,J,we,...Kt,...It,ue]},Ze={begin:/</,end:/>/,keywords:"repeat each",contains:[...I,ue]},cn={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}]},Sn={begin:/\(/,end:/\)/,keywords:U,contains:[cn,...I,...K,...V,J,we,...It,ue,Fe],endsParent:!0,illegal:/["']/},Zt={match:[/(func|macro)/,/\s+/,s(Rt.match,E,S)],className:{1:"keyword",3:"title.function"},contains:[Ze,Sn,Y],illegal:[/\[/,/%/]},At={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Ze,Sn,Y],illegal:/\[|%/},Jt={match:[/operator/,/\s+/,S],className:{1:"keyword",3:"title"}},ut={begin:[/precedencegroup/,/\s+/,A],className:{1:"keyword",3:"title"},contains:[ue],keywords:[...g,...p],end:/}/},In={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},un={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},Si={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,E,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:U,contains:[Ze,...K,{begin:/:/,end:/\{/,keywords:U,contains:[{scope:"title.class.inherited",match:A},...K],relevance:0}]};for(const nt of we.variants){const Xn=nt.contains.find(mn=>mn.label==="interpol");Xn.keywords=U;const On=[...K,...L,...V,J,we,...Kt];Xn.contains=[...On,{begin:/\(/,end:/\)/,contains:["self",...On]}]}return{name:"Swift",keywords:U,contains:[...I,Zt,At,In,un,Si,Jt,ut,{beginKeywords:"import",end:/$/,contains:[...I],relevance:0},st,...K,...L,...V,J,we,...Kt,...It,ue,Fe]}}return gm=H,gm}var xm,Uv;function qj(){if(Uv)return xm;Uv=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]},h=t.inherit(d,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),y={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}},y,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},N,S,c,d],C=[...w];return C.pop(),C.push(h),_.contains=C,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:w}}return xm=e,xm}var bm,Hv;function Pj(){if(Hv)return bm;Hv=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 h(p){const g=p.regex,b=(W,{after:te})=>{const oe="</"+W[0].slice(1);return W.input.indexOf(oe,te)!==-1},y=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===">"&&(b(W,{after:oe})||te.ignoreMatch());let xe;const we=W.input.substring(oe);if(xe=we.match(/^\s*=/)){te.ignoreMatch();return}if((xe=we.match(/^\s+extends\s+/))&&xe.index===0){te.ignoreMatch();return}}},w={$pattern:e,keyword:t,literal:r,built_in:d,"variable.language":c},C="[0-9](_?[0-9])*",E=`\\.(${C})`,A="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",B={className:"number",variants:[{begin:`(\\b(${A})((${E})|\\.)?|(${E}))[eE][+-]?(${C})\\b`},{begin:`\\b(${A})\\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:[]},H={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,R],subLanguage:"xml"}},z={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,R],subLanguage:"css"}},Y={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,R],subLanguage:"graphql"}},j={className:"string",begin:"`",end:"`",contains:[p.BACKSLASH_ESCAPE,R]},Z={className:"comment",variants:[p.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}]}]}),p.C_BLOCK_COMMENT_MODE,p.C_LINE_COMMENT_MODE]},P=[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,H,z,Y,j,{match:/\$\d+/},B];R.contains=P.concat({begin:/\{/,end:/\}/,keywords:w,contains:["self"].concat(P)});const k=[].concat(Z,R.contains),$=k.concat([{begin:/(\s*)\(/,end:/\)/,keywords:w,contains:["self"].concat(k)}]),O={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:w,contains:$},U={variants:[{match:[/class/,/\s+/,y,/\s+/,/extends/,/\s+/,g.concat(y,"(",g.concat(/\./,y),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,y],scope:{1:"keyword",3:"title.class"}}]},K={relevance:0,match:g.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)['"]/},M={variants:[{match:[/function/,/\s+/,y,/(?=\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 F(W){return g.concat("(?!",W.join("|"),")")}const D={match:g.concat(/\b/,F([...o,"super","import"].map(W=>`${W}\\s*\\(`)),y,g.lookahead(/\s*\(/)),className:"title.function",relevance:0},V={begin:g.concat(/\./,g.lookahead(g.concat(y,/(?![0-9A-Za-z$_(])/))),end:y,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},q={match:[/get|set/,/\s+/,y,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},O]},Q="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+p.UNDERSCORE_IDENT_RE+")\\s*=>",J={match:[/const|var|let/,/\s+/,y,/\s*/,/=\s*/,/(async\s*)?/,g.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:$,CLASS_REFERENCE:K},illegal:/#(?![$_A-z])/,contains:[p.SHEBANG({label:"shebang",binary:"node",relevance:5}),X,p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,H,z,Y,j,Z,{match:/\$\d+/},B,K,{scope:"attr",match:y+g.lookahead(":"),relevance:0},J,{begin:"("+p.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[Z,p.REGEXP_MODE,{className:"function",begin:Q,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:p.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:w,contains:$}]}]},{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"]}]}]},M,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+p.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[O,p.inherit(p.TITLE_MODE,{begin:y,className:"title.function"})]},{match:/\.\.\./,relevance:0},V,{match:"\\$"+y,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[O]},D,L,U,q,{match:/\$[(.]/}]}}function f(p){const g=p.regex,b=h(p),y=e,_=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],N={begin:[/namespace/,/\s+/,p.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},S={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:_},contains:[b.exports.CLASS_REFERENCE]},w={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},C=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],E={$pattern:e,keyword:t.concat(C),literal:r,built_in:d.concat(_),"variable.language":c},A={className:"meta",begin:"@"+y},B=(Y,j,I)=>{const Z=Y.contains.findIndex(P=>P.label===j);if(Z===-1)throw new Error("can not find mode to replace");Y.contains.splice(Z,1,I)};Object.assign(b.keywords,E),b.exports.PARAMS_CONTAINS.push(A);const R=b.contains.find(Y=>Y.scope==="attr"),H=Object.assign({},R,{match:g.concat(y,g.lookahead(/\s*\?:/))});b.exports.PARAMS_CONTAINS.push([b.exports.CLASS_REFERENCE,R,H]),b.contains=b.contains.concat([A,N,S,H]),B(b,"shebang",p.SHEBANG()),B(b,"use_strict",w);const z=b.contains.find(Y=>Y.label==="func.def");return z.relevance=0,Object.assign(b,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),b}return bm=f,bm}var ym,$v;function Fj(){if($v)return ym;$v=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)/,h=/\d{1,2}(:\d{1,2}){1,2}/,f={className:"literal",variants:[{begin:r.concat(/# */,r.either(c,o),/ *#/)},{begin:r.concat(/# */,h,/ *#/)},{begin:r.concat(/# */,d,/ *#/)},{begin:r.concat(/# */,r.either(c,o),/ +/,r.either(d,h),/ *#/)}]},p={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])|[%&])?/}]},g={className:"label",begin:/^\w+:/},b=t.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),y=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,f,p,g,b,y,{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:[y]}]}}return ym=e,ym}var vm,qv;function Gj(){if(qv)return vm;qv=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},h={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/},f={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},p={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,f,p,h]}}return vm=e,vm}var _m,Pv;function Vj(){if(Pv)return _m;Pv=1;var e=cj();return e.registerLanguage("xml",uj()),e.registerLanguage("bash",dj()),e.registerLanguage("c",fj()),e.registerLanguage("cpp",hj()),e.registerLanguage("csharp",mj()),e.registerLanguage("css",pj()),e.registerLanguage("markdown",gj()),e.registerLanguage("diff",xj()),e.registerLanguage("ruby",bj()),e.registerLanguage("go",yj()),e.registerLanguage("graphql",vj()),e.registerLanguage("ini",_j()),e.registerLanguage("java",wj()),e.registerLanguage("javascript",Ej()),e.registerLanguage("json",Nj()),e.registerLanguage("kotlin",Sj()),e.registerLanguage("less",kj()),e.registerLanguage("lua",Cj()),e.registerLanguage("makefile",Tj()),e.registerLanguage("perl",Aj()),e.registerLanguage("objectivec",Mj()),e.registerLanguage("php",Oj()),e.registerLanguage("php-template",Rj()),e.registerLanguage("plaintext",jj()),e.registerLanguage("python",Dj()),e.registerLanguage("python-repl",Lj()),e.registerLanguage("r",zj()),e.registerLanguage("rust",Ij()),e.registerLanguage("scss",Bj()),e.registerLanguage("shell",Uj()),e.registerLanguage("sql",Hj()),e.registerLanguage("swift",$j()),e.registerLanguage("yaml",qj()),e.registerLanguage("typescript",Pj()),e.registerLanguage("vbnet",Fj()),e.registerLanguage("wasm",Gj()),e.HighlightJS=e,e.default=e,_m=e,_m}var Yj=Vj();const zn=Mo(Yj);function Xj(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 Kj(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 Zj(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 Qj(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 Wj(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+"$"}]}}zn.registerLanguage("http",Xj);zn.registerLanguage("nginx",Kj);zn.registerLanguage("apache",Zj);zn.registerLanguage("dockerfile",Qj);zn.registerLanguage("properties",Wj);function wE(e,t){try{if(t&&zn.getLanguage(t))return zn.highlight(e,{language:t,ignoreIllegals:!0}).value;const r=zn.highlightAuto(e);return r.language?r.value:zn.highlight(e,{language:"python",ignoreIllegals:!0}).value}catch{return zn.highlight(e,{language:"python",ignoreIllegals:!0}).value}}function EE({className:e,children:t,node:r}){var w,C;const[a,s]=ee.useState(!1),o=String(t).replace(/\n$/,""),c=/language-(\S+)/.exec(e||"");if(!(o.includes(`
+`)||c))return m.jsx("code",{className:`${e||""} bg-white/8 px-1.5 py-0.5 rounded text-[13px]`,children:t});const h=((w=r==null?void 0:r.data)==null?void 0:w.meta)||((C=r==null?void 0:r.properties)==null?void 0:C.metastring)||"",f=/title=["']?([^"'\s}]+)["']?/.exec(h),p=/startLineNumber=(\d+)/.exec(h),g=(f==null?void 0:f[1])||null,b=p?parseInt(p[1],10):1,y=g?p?`${g}:${b}`:g:null,N=wE(o,c==null?void 0:c[1]).split(`
`),S=()=>{Tp(o),s(!0),setTimeout(()=>s(!1),2e3)};return m.jsxs("div",{className:"group/code relative rounded-md border border-[#2a2a2a] my-4 text-[#ddd] overflow-hidden",children:[y?m.jsxs("div",{className:"flex items-stretch",children:[m.jsxs("span",{className:"relative flex items-center text-[13px] text-[#999] font-mono px-4 py-2 border-r border-[#2a2a2a]",children:[y,m.jsx("span",{className:"absolute top-0 inset-x-0 h-0.5 bg-white/60 rounded-full"})]}),m.jsx("div",{className:"flex-1 border-b border-[#2a2a2a]"}),m.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?m.jsx(Vs,{className:"w-3.5 h-3.5 text-emerald-400"}):m.jsx(go,{className:"w-3.5 h-3.5"})})]}):m.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?m.jsx(Vs,{className:"w-3.5 h-3.5 text-emerald-400"}):m.jsx(go,{className:"w-3.5 h-3.5"})}),m.jsx("div",{className:"overflow-auto max-h-[400px]",children:m.jsx("table",{className:"w-full border-collapse font-mono text-[12px] leading-[22px] [font-variant-ligatures:none]",children:m.jsx("tbody",{children:N.map((E,A)=>m.jsxs("tr",{children:[m.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:b+A}),m.jsx("td",{className:"pl-4 pr-4 whitespace-pre",dangerouslySetInnerHTML:{__html:E||`
-`}})]},A))})})})]})}function Wp(){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 Jp={code:wE,pre:({children:e})=>m.jsx(m.Fragment,{children:e})};function ca({title:e,content:t,action:r}){return m.jsxs("section",{children:[(e||r)&&m.jsxs("div",{className:"flex items-center justify-between gap-3 mb-3",children:[e?m.jsx("h2",{className:"text-xl font-semibold text-white",children:e}):m.jsx("span",{}),r]}),m.jsx("div",{className:"prose-markdown",children:m.jsx(Yp,{remarkPlugins:[Qp],rehypePlugins:[Wp],components:Jp,children:t})})]})}class Wj{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)),h=this.removeEmpty(this.tokenize(c,a));return this.diffWithOptionsObj(d,h,a,s)}diffWithOptionsObj(t,r,a,s){var o;const c=C=>{if(C=this.postProcess(C,a),s){setTimeout(function(){s(C)},0);return}else return C},d=r.length,h=t.length;let f=1,p=d+h;a.maxEditLength!=null&&(p=Math.min(p,a.maxEditLength));const g=(o=a.timeout)!==null&&o!==void 0?o:1/0,b=Date.now()+g,y=[{oldPos:-1,lastComponent:void 0}];let _=this.extractCommon(y[0],r,t,0,a);if(y[0].oldPos+1>=h&&_+1>=d)return c(this.buildValues(y[0].lastComponent,r,t));let N=-1/0,S=1/0;const w=()=>{for(let C=Math.max(N,-f);C<=Math.min(S,f);C+=2){let E;const A=y[C-1],B=y[C+1];A&&(y[C-1]=void 0);let R=!1;if(B){const z=B.oldPos-C;R=B&&0<=z&&z<d}const H=A&&A.oldPos+1<h;if(!R&&!H){y[C]=void 0;continue}if(!H||R&&A.oldPos<B.oldPos?E=this.addToPath(B,!0,!1,0,a):E=this.addToPath(A,!1,!0,1,a),_=this.extractCommon(E,r,t,C,a),E.oldPos+1>=h&&_+1>=d)return c(this.buildValues(E.lastComponent,r,t))||!0;y[C]=E,E.oldPos+1>=h&&(S=Math.min(S,C-1)),_+1>=d&&(N=Math.max(N,C+1))}f++};if(s)(function C(){setTimeout(function(){if(f>p||Date.now()>b)return s(void 0);w()||C()},0)})();else for(;f<=p&&Date.now()<=b;){const C=w();if(C)return C}}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 h=t.oldPos,f=h-s,p=0;for(;f+1<c&&h+1<d&&this.equals(a[h+1],r[f+1],o);)f++,h++,p++,o.oneChangePerToken&&(t.lastComponent={count:1,previousComponent:t.lastComponent,added:!1,removed:!1});return p&&!o.oneChangePerToken&&(t.lastComponent={count:p,previousComponent:t.lastComponent,added:!1,removed:!1}),t.oldPos=h,f}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,h=0,f=0;for(;d<c;d++){const p=s[d];if(p.removed)p.value=this.join(a.slice(f,f+p.count)),f+=p.count;else{if(!p.added&&this.useLongestToken){let g=r.slice(h,h+p.count);g=g.map(function(b,y){const _=a[f+y];return _.length>b.length?_:b}),p.value=this.join(g)}else p.value=this.join(r.slice(h,h+p.count));h+=p.count,p.added||(f+=p.count)}}return s}}class Jj extends Wj{constructor(){super(...arguments),this.tokenize=nD}equals(t,r,a){return a.ignoreWhitespace?((!a.newlineIsToken||!t.includes(`
+`}})]},A))})})})]})}function Wp(){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 Jp={code:EE,pre:({children:e})=>m.jsx(m.Fragment,{children:e})};function ca({title:e,content:t,action:r}){return m.jsxs("section",{children:[(e||r)&&m.jsxs("div",{className:"flex items-center justify-between gap-3 mb-3",children:[e?m.jsx("h2",{className:"text-xl font-semibold text-white",children:e}):m.jsx("span",{}),r]}),m.jsx("div",{className:"prose-markdown",children:m.jsx(Yp,{remarkPlugins:[Qp],rehypePlugins:[Wp],components:Jp,children:t})})]})}class Jj{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)),h=this.removeEmpty(this.tokenize(c,a));return this.diffWithOptionsObj(d,h,a,s)}diffWithOptionsObj(t,r,a,s){var o;const c=C=>{if(C=this.postProcess(C,a),s){setTimeout(function(){s(C)},0);return}else return C},d=r.length,h=t.length;let f=1,p=d+h;a.maxEditLength!=null&&(p=Math.min(p,a.maxEditLength));const g=(o=a.timeout)!==null&&o!==void 0?o:1/0,b=Date.now()+g,y=[{oldPos:-1,lastComponent:void 0}];let _=this.extractCommon(y[0],r,t,0,a);if(y[0].oldPos+1>=h&&_+1>=d)return c(this.buildValues(y[0].lastComponent,r,t));let N=-1/0,S=1/0;const w=()=>{for(let C=Math.max(N,-f);C<=Math.min(S,f);C+=2){let E;const A=y[C-1],B=y[C+1];A&&(y[C-1]=void 0);let R=!1;if(B){const z=B.oldPos-C;R=B&&0<=z&&z<d}const H=A&&A.oldPos+1<h;if(!R&&!H){y[C]=void 0;continue}if(!H||R&&A.oldPos<B.oldPos?E=this.addToPath(B,!0,!1,0,a):E=this.addToPath(A,!1,!0,1,a),_=this.extractCommon(E,r,t,C,a),E.oldPos+1>=h&&_+1>=d)return c(this.buildValues(E.lastComponent,r,t))||!0;y[C]=E,E.oldPos+1>=h&&(S=Math.min(S,C-1)),_+1>=d&&(N=Math.max(N,C+1))}f++};if(s)(function C(){setTimeout(function(){if(f>p||Date.now()>b)return s(void 0);w()||C()},0)})();else for(;f<=p&&Date.now()<=b;){const C=w();if(C)return C}}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 h=t.oldPos,f=h-s,p=0;for(;f+1<c&&h+1<d&&this.equals(a[h+1],r[f+1],o);)f++,h++,p++,o.oneChangePerToken&&(t.lastComponent={count:1,previousComponent:t.lastComponent,added:!1,removed:!1});return p&&!o.oneChangePerToken&&(t.lastComponent={count:p,previousComponent:t.lastComponent,added:!1,removed:!1}),t.oldPos=h,f}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,h=0,f=0;for(;d<c;d++){const p=s[d];if(p.removed)p.value=this.join(a.slice(f,f+p.count)),f+=p.count;else{if(!p.added&&this.useLongestToken){let g=r.slice(h,h+p.count);g=g.map(function(b,y){const _=a[f+y];return _.length>b.length?_:b}),p.value=this.join(g)}else p.value=this.join(r.slice(h,h+p.count));h+=p.count,p.added||(f+=p.count)}}return s}}class eD extends Jj{constructor(){super(...arguments),this.tokenize=rD}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 eD=new Jj;function tD(e,t,r){return eD.diff(e,t,r)}function nD(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 rD(e,t){try{return zn.highlight(e,{language:t,ignoreIllegals:!0}).value}catch{return zn.highlightAuto(e).value}}function iD({file:e,startLine:t,endLine:r,before:a,after:s,onCopy:o}){const[c,d]=ee.useState(!1),h=r&&r!==t?`${t}-${r}`:`${t}`,f=PT(e)||"text",p=tD(a,s);let g=t,b=t;const y=p.flatMap(N=>N.value.replace(/\n$/,"").split(`
+`)&&(r=r.slice(0,-1))),super.equals(t,r,a)}}const tD=new eD;function nD(e,t,r){return tD.diff(e,t,r)}function rD(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 zn.highlight(e,{language:t,ignoreIllegals:!0}).value}catch{return zn.highlightAuto(e).value}}function aD({file:e,startLine:t,endLine:r,before:a,after:s,onCopy:o}){const[c,d]=ee.useState(!1),h=r&&r!==t?`${t}-${r}`:`${t}`,f=FT(e)||"text",p=nD(a,s);let g=t,b=t;const y=p.flatMap(N=>N.value.replace(/\n$/,"").split(`
`).map(S=>{const w=S===""?`
-`:f!=="text"?rD(S,f):S.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");let C="",E="";return N.removed?C=String(g++):(N.added||(C=String(g++)),E=String(b++)),{highlighted:w,added:!!N.added,removed:!!N.removed,leftNo:C,rightNo:E}})),_=()=>{Tp(s),d(!0),setTimeout(()=>d(!1),2e3),o==null||o()};return m.jsxs("div",{className:"rounded-md border border-[#2a2a2a] overflow-hidden",children:[m.jsxs("div",{className:"flex items-stretch",children:[m.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,":",h,m.jsx("span",{className:"absolute top-0 inset-x-0 h-0.5 bg-white/60 rounded-full"})]}),m.jsx("div",{className:"flex-1 border-b border-[#2a2a2a]"}),m.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?m.jsx(Vs,{className:"w-3.5 h-3.5 text-emerald-400"}):m.jsx(go,{className:"w-3.5 h-3.5"})})]}),m.jsx("div",{className:"overflow-auto max-h-[400px]",children:m.jsx("table",{className:"w-full border-collapse font-mono text-[12px] leading-[22px] [font-variant-ligatures:none]",children:m.jsx("tbody",{children:y.map((N,S)=>m.jsxs("tr",{className:N.added?"bg-blue-500/[0.12]":N.removed?"bg-red-500/[0.12]":"",children:[m.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}),m.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}),m.jsx("td",{className:"pl-4 pr-4 whitespace-pre",dangerouslySetInnerHTML:{__html:N.highlighted}})]},S))})})})]})}const aD=/^```([^\n`]*)\r?\n([\s\S]*?)\r?\n?```$/;function EE(e){if(!e)return{code:""};const t=aD.exec(e.trim());if(!t)return{code:e};const r=t[1].trim();return{language:(r?r.split(/\s+/)[0]:void 0)||void 0,code:t[2]}}function sD({description:e,scriptCode:t,onCopy:r}){const[a,s]=ee.useState(!1);if(!e&&!t)return null;const{language:o,code:c}=EE(t),d=_E(c,o),h=()=>{c&&(Tp(c),s(!0),setTimeout(()=>s(!1),2e3),r==null||r())};return m.jsxs("section",{children:[m.jsx("h2",{className:"text-xl font-semibold text-white mb-3",children:"Proof of Concept"}),m.jsxs("div",{className:"space-y-4",children:[e&&m.jsx("div",{className:"prose-markdown",children:m.jsx(Yp,{remarkPlugins:[Qp],rehypePlugins:[Wp],components:Jp,children:e})}),c&&m.jsxs("div",{className:"group/poc relative rounded-md border border-[#2a2a2a] overflow-hidden",children:[m.jsxs("div",{className:"flex items-stretch",children:[m.jsxs("span",{className:"relative flex items-center text-[13px] text-[#999] font-mono px-4 py-2 border-r border-[#2a2a2a]",children:["PoC Script",m.jsx("span",{className:"absolute top-0 inset-x-0 h-0.5 bg-white/60 rounded-full"})]}),m.jsx("div",{className:"flex-1 border-b border-[#2a2a2a]"}),m.jsx("button",{onClick:h,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?m.jsx(Vs,{className:"w-3.5 h-3.5 text-emerald-400"}):m.jsx(go,{className:"w-3.5 h-3.5"})})]}),m.jsx("div",{className:"overflow-auto max-h-[400px] px-4 py-3",children:m.jsx("pre",{className:"font-mono text-[12px] leading-[22px] whitespace-pre [font-variant-ligatures:none]",children:m.jsx("code",{dangerouslySetInnerHTML:{__html:d}})})})]})]})]})}function NE(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 yo(e,t){return e?NE(e).display.replace(/\/$/,""):t||"Untitled pentest"}function lD({className:e}){return m.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:e,"aria-hidden":"true",children:m.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 oD({provider:e,className:t}){const r=t??"w-4 h-4";return e==="gitlab"?m.jsx(PC,{className:`${r} text-orange-400`}):e==="bitbucket"?m.jsx(lD,{className:`${r} text-blue-400`}):m.jsx($C,{className:`${r} text-white`})}const cD={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"}},uD={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"}},dD={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]"},fD=[{label:"Exploitability",keys:["attack_vector","attack_complexity","privileges_required","user_interaction"]},{label:"Impact",keys:["scope","confidentiality","integrity","availability"]}];function hD(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 mD({vulnerability:e,statusSlot:t,slackThreadUrl:r}){var R;const{severity:a,cvss:s,cve:o,cwe:c,fix_effort:d,created_at:h,target:f,endpoint:p,method:g,code_locations:b,cvss_breakdown:y,location_meta:_}=e,[N,S]=ee.useState(!0),w=b==null?void 0:b.filter(H=>H.fix_before&&H.fix_after),C=w&&w.length>0,E=f?NE(f):null,A=!!(f||p||g||C),B=y&&Object.values(y).some(H=>H!=null);return m.jsxs("aside",{className:"lg:sticky lg:top-6 lg:max-h-[calc(100vh-3rem)] lg:overflow-y-auto",children:[m.jsx("div",{className:"pb-4",children:m.jsxs("div",{className:"space-y-3",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-xs text-[#aaa]",children:"Severity"}),m.jsxs("div",{className:"flex items-center gap-1.5",children:[m.jsx("div",{className:`w-2 h-2 rounded-full ${Cp(a)}`,"aria-hidden":"true"}),m.jsx("span",{className:"text-sm font-medium capitalize text-white",children:a})]})]}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-xs text-[#aaa]",children:"CVSS Score"}),m.jsx("span",{className:"text-sm font-semibold tabular-nums text-white",children:s!==null?s:"N/A"})]}),o&&m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-xs text-[#aaa]",children:"CVE"}),m.jsx("span",{className:"text-sm text-white font-mono",children:o})]}),c&&c.length>0&&m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-xs text-[#aaa]",children:"CWE"}),m.jsx("span",{className:"text-xs text-white font-mono truncate max-w-[80%] text-right",title:c.join(" · "),children:c.join(" · ")})]}),d&&m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-xs text-[#aaa]",children:"Fix Effort"}),m.jsx("span",{className:`inline-flex items-center px-2 py-0.5 text-[11px] font-medium rounded-full border ${((R=$T[d])==null?void 0:R.color)??"text-[#666]"}`,children:d.charAt(0).toUpperCase()+d.slice(1)})]}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-xs text-[#aaa]",children:"Discovered"}),m.jsxs("div",{className:"flex items-center gap-1.5",children:[m.jsx(V_,{className:"w-3 h-3 text-[#444]","aria-hidden":"true"}),m.jsx("span",{className:"text-sm text-white",children:Ym(h)})]})]}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-xs text-[#aaa]",children:"Status"}),t]})]})}),A&&m.jsxs("div",{className:"border-t border-[#191919] pt-4 pb-4",children:[m.jsx("p",{className:"text-xs font-medium text-[#aaa] mb-2.5",children:"Asset"}),m.jsxs("div",{className:"space-y-2.5",children:[f&&E&&m.jsxs("div",{className:"flex items-center gap-1.5",children:[E.provider?m.jsx("span",{className:"flex-shrink-0 [&_svg]:w-3.5 [&_svg]:h-3.5","aria-hidden":"true",children:m.jsx(oD,{provider:E.provider})}):m.jsx(X_,{className:"w-3.5 h-3.5 text-[#555] flex-shrink-0","aria-hidden":"true"}),E.href?m.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}):m.jsx("span",{className:"text-sm text-white break-words min-w-0",children:E.display})]}),p&&m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-xs text-[#aaa]",children:"Endpoint"}),m.jsx("span",{className:"text-xs text-white font-mono truncate max-w-[75%] text-right",children:p})]}),g&&m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-xs text-[#aaa]",children:"Method"}),m.jsx("span",{className:"text-xs text-white font-mono",children:g})]}),C&&m.jsxs("div",{children:[m.jsx("span",{className:"text-xs text-[#aaa] mb-1.5 block",children:"Locations"}),m.jsx("div",{className:"space-y-0.5",children:w.map((H,z)=>{const Y=`${H.file}:${H.start_line}`,j=_?hD(_.repo_url,_.provider,_.branch,H.file,H.start_line):null;return j?m.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:Y},`loc-${z}`):m.jsx("span",{className:"text-[13px] text-[#888] font-mono break-all block",children:Y},`loc-${z}`)})})]})]})]}),B&&m.jsxs("div",{className:"border-t border-[#191919] pt-4",children:[m.jsxs("button",{onClick:()=>S(!N),className:"flex items-center justify-between w-full mb-2.5 group","aria-expanded":N,children:[m.jsx("span",{className:"text-xs font-medium text-[#aaa]",children:"Risk Assessment"}),m.jsx(po,{className:`w-3.5 h-3.5 text-[#555] group-hover:text-white transition-transform ${N?"":"-rotate-90"}`,"aria-hidden":"true"})]}),m.jsx("div",{className:`space-y-3 ${N?"":"hidden"}`,children:fD.map(H=>{const z=H.keys.filter(Y=>y[Y]!=null);return z.length===0?null:m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[m.jsx("p",{className:"text-[10px] uppercase tracking-wider text-[#444] font-medium",children:H.label}),m.jsx("p",{className:"text-[10px] uppercase tracking-wider text-[#444] font-medium mr-2",children:"Risk"})]}),m.jsx("div",{className:"space-y-1",children:z.map(Y=>{var P,k;const j=y[Y],I=j?((P=uD[Y])==null?void 0:P[j])??"low":"low",Z=j?((k=cD[Y])==null?void 0:k[j])??j:"N/A";return m.jsxs("div",{className:"flex items-center justify-between py-0.5",children:[m.jsx("span",{className:"text-[12px] text-[#aaa]",children:Z}),m.jsx("span",{className:`text-[10px] font-medium px-1.5 py-0.5 rounded border ${dD[I]}`,children:I})]},Y)})})]},H.label)})})]})]})}function Fv(e){return e?Math.floor((Date.now()-new Date(e).getTime())/1e3)<604800?` ${Ym(e)}`:` on ${Ym(e)}`:""}const pD={open:null,in_progress:{icon:V_,label:"Marked as In Progress",iconColor:"text-blue-400"},snoozed:{icon:Jk,label:"Snoozed",iconColor:"text-purple-400"},fixed:{icon:Nu,label:"Marked as Fixed",iconColor:"text-emerald-400"},ignored:{icon:U_,label:"Marked as Ignored",iconColor:"text-[#888]"}},gD=[{label:"Auto-fix & open a PR",slug:"autofix",icon:Gm,requiresCode:!0},{label:"Sync to Jira / Linear",slug:"integrations",icon:IC}];function xD({vulnerability:e}){const t=HT[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"),h=[{id:"fix",label:"Fix",show:!!a},{id:"reproduction",label:"Reproduction",show:s}].filter(f=>f.show);return m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[m.jsxs("div",{className:"min-w-0 flex-1",children:[m.jsxs("div",{className:"mb-2",children:[e.display_number&&m.jsx("span",{className:"text-xs font-mono text-[#555] block mb-1",children:UA(e.display_number)}),m.jsx("h1",{className:"text-2xl font-semibold text-white",children:e.title})]}),m.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[m.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}),m.jsxs("div",{className:`inline-flex items-center gap-1.5 px-3 py-1 text-sm font-semibold rounded-full border ${ew[e.severity]}`,title:Jc(e)?`Adjusted from ${e.original_severity}`:void 0,children:[m.jsx("div",{className:`w-2 h-2 rounded-full ${Cp(e.severity)}`}),m.jsxs("span",{className:"capitalize",children:[e.severity,!Jc(e)&&e.cvss?` ${e.cvss}`:""]}),Jc(e)&&m.jsx(Ys,{className:"w-3 h-3 opacity-70","aria-hidden":"true"})]}),e.cve&&m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"text-[#333]",children:"·"}),m.jsx("span",{className:"text-sm text-[#666] font-mono",children:e.cve})]})]})]}),m.jsx("div",{className:"flex flex-shrink-0 flex-wrap items-center gap-2",children:gD.filter(f=>!f.requiresCode||r).map(f=>{const p=f.icon;return m.jsxs("a",{href:_i(Yu,f.slug),target:"_blank",rel:"noopener noreferrer",onClick:()=>yr(f.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:[m.jsx(p,{className:"h-3.5 w-3.5","aria-hidden":"true"}),f.label]},f.slug)})})]}),e.status!=="open"&&(()=>{const f=pD[e.status];if(!f)return null;const p=f.icon;return m.jsxs("div",{className:"rounded-lg px-4 py-3.5 flex gap-3",style:{border:"1px solid rgba(255,255,255,0.08)"},children:[m.jsx(p,{className:`w-5 h-5 flex-shrink-0 mt-0.5 ${f.iconColor}`,"aria-hidden":"true"}),m.jsxs("div",{className:"min-w-0",children:[m.jsxs("p",{className:"text-sm font-semibold text-white",children:[f.label,Fv(e.status_changed_at)]}),e.status_note&&m.jsxs("p",{className:"text-sm text-[#666] italic mt-1",children:["“",e.status_note,"”"]})]})]})})(),Jc(e)&&m.jsxs("div",{className:"rounded-lg px-4 py-3.5 flex gap-3",style:{border:"1px solid rgba(255,255,255,0.08)"},children:[m.jsx(Ys,{className:"w-5 h-5 flex-shrink-0 mt-0.5 text-orange-400","aria-hidden":"true"}),m.jsxs("div",{className:"min-w-0",children:[m.jsxs("p",{className:"text-sm font-semibold text-white",children:["Severity changed manually from"," ",m.jsx("span",{className:"capitalize",children:e.original_severity}),e.cvss!=null?` (${e.cvss})`:""," to"," ",m.jsx("span",{className:"capitalize",children:e.severity}),Fv(e.severity_changed_at)]}),e.severity_override_reason&&m.jsxs("p",{className:"text-sm text-[#666] italic mt-1",children:["“",e.severity_override_reason,"”"]})]})]}),m.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_340px] gap-8",children:[m.jsxs("div",{className:"min-w-0",children:[m.jsxs("div",{className:"space-y-8",children:[m.jsx(ca,{title:"TL;DR",content:e.description}),e.impact&&m.jsx(ca,{title:"Impact",content:e.impact}),e.technical_analysis&&m.jsx(ca,{title:"Technical Details",content:e.technical_analysis})]}),h.length>0&&m.jsxs("div",{className:"mt-10",children:[m.jsx("div",{className:"border-b border-[#2a2a2a]",children:m.jsx("nav",{className:"flex gap-6","aria-label":"Tabs",children:h.map(f=>m.jsxs("button",{onClick:()=>c(f.id),className:`relative min-w-[80px] text-center pb-3 text-[16px] font-semibold transition-colors ${o===f.id?"text-white":"text-[#666] hover:text-white"}`,"aria-current":o===f.id?"page":void 0,children:[f.label,o===f.id&&m.jsx("span",{className:"absolute bottom-0 inset-x-0 h-0.5 bg-white rounded-full"})]},f.id))})}),a&&m.jsxs("div",{className:`pt-6 space-y-6 ${o==="fix"?"animate-tab-in":"hidden"}`,children:[e.remediation_steps&&m.jsx(ca,{title:"How do I fix it?",content:e.remediation_steps}),r&&e.code_locations.filter(f=>f.fix_before&&f.fix_after).map((f,p)=>m.jsx(iD,{file:f.file,startLine:f.start_line,endLine:f.end_line,before:f.fix_before,after:f.fix_after},`fix-${p}`))]}),s&&m.jsxs("div",{className:`pt-6 space-y-8 ${o==="reproduction"?"animate-tab-in":"hidden"}`,children:[e.assumptions&&m.jsx(ca,{title:"Assumptions",content:e.assumptions}),e.evidence&&m.jsx(ca,{title:"Evidence",content:e.evidence}),m.jsx(sD,{description:e.poc_description,scriptCode:e.poc_script_code})]})]})]}),m.jsx("div",{className:"lg:border-l lg:border-[#2a2a2a] lg:pl-6",children:m.jsx(mD,{vulnerability:e,statusSlot:m.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:[m.jsx("div",{className:`w-1.5 h-1.5 rounded-full ${t.dotColor}`}),t.label]})})})]})]})}const Gv=[{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 bD({findings:e,className:t,unit:r="issues",trailing:a}){return e.total<=0?null:m.jsxs("div",{className:br("space-y-3",t),children:[m.jsxs("div",{className:"flex flex-wrap items-center gap-x-8 gap-y-3",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-2xl font-semibold text-white tabular-nums",children:e.total}),m.jsx("span",{className:"text-sm text-[#666]",children:r})]}),m.jsx("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-2",children:Gv.map(({key:s,label:o,dotClass:c,textClass:d})=>{const h=e[s];return h<=0?null:m.jsxs("div",{className:"flex items-center gap-1.5",children:[m.jsx("div",{className:br("w-2 h-2 rounded-full",c),"aria-hidden":"true"}),m.jsx("span",{className:br("text-sm tabular-nums",d),children:h}),m.jsx("span",{className:"text-xs text-[#555]",children:o})]},s)})}),a?m.jsx("div",{className:"flex items-center gap-2",children:a}):null]}),m.jsx("div",{className:"h-1.5 rounded-full bg-[#222] overflow-hidden flex",children:Gv.map(({key:s,dotClass:o})=>{const c=e[s];return c<=0?null:m.jsx("div",{className:br("h-full",o),style:{width:`${c/e.total*100}%`}},s)})})]})}function on(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=on(e[r]))!==""&&(t+=(t&&" ")+a);else for(let r in e)e[r]&&(t+=(t&&" ")+r);return t}var yD={value:()=>{}};function Ju(){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 yu(r)}function yu(e){this._=e}function vD(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}})}yu.prototype=Ju.prototype={constructor:yu,on:function(e,t){var r=this._,a=vD(e+"",r),s,o=-1,c=a.length;if(arguments.length<2){for(;++o<c;)if((s=(e=a[o]).type)&&(s=_D(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]=Vv(r[s],e.name,t);else if(t==null)for(s in r)r[s]=Vv(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 yu(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 _D(e,t){for(var r=0,a=e.length,s;r<a;++r)if((s=e[r]).name===t)return s.value}function Vv(e,t,r){for(var a=0,s=e.length;a<s;++a)if(e[a].name===t){e[a]=yD,e=e.slice(0,a).concat(e.slice(a+1));break}return r!=null&&e.push({name:t,value:r}),e}var ap="http://www.w3.org/1999/xhtml";const Yv={svg:"http://www.w3.org/2000/svg",xhtml:ap,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ed(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Yv.hasOwnProperty(t)?{space:Yv[t],local:e}:e}function wD(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===ap&&t.documentElement.namespaceURI===ap?t.createElement(e):t.createElementNS(r,e)}}function ED(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function SE(e){var t=ed(e);return(t.local?ED:wD)(t)}function ND(){}function eg(e){return e==null?ND:function(){return this.querySelector(e)}}function SD(e){typeof e!="function"&&(e=eg(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),h,f,p=0;p<c;++p)(h=o[p])&&(f=e.call(h,h.__data__,p,o))&&("__data__"in h&&(f.__data__=h.__data__),d[p]=f);return new sr(a,this._parents)}function kD(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function CD(){return[]}function kE(e){return e==null?CD:function(){return this.querySelectorAll(e)}}function TD(e){return function(){return kD(e.apply(this,arguments))}}function AD(e){typeof e=="function"?e=TD(e):e=kE(e);for(var t=this._groups,r=t.length,a=[],s=[],o=0;o<r;++o)for(var c=t[o],d=c.length,h,f=0;f<d;++f)(h=c[f])&&(a.push(e.call(h,h.__data__,f,c)),s.push(h));return new sr(a,s)}function CE(e){return function(){return this.matches(e)}}function TE(e){return function(t){return t.matches(e)}}var MD=Array.prototype.find;function OD(e){return function(){return MD.call(this.children,e)}}function RD(){return this.firstElementChild}function jD(e){return this.select(e==null?RD:OD(typeof e=="function"?e:TE(e)))}var DD=Array.prototype.filter;function LD(){return Array.from(this.children)}function zD(e){return function(){return DD.call(this.children,e)}}function ID(e){return this.selectAll(e==null?LD:zD(typeof e=="function"?e:TE(e)))}function BD(e){typeof e!="function"&&(e=CE(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]=[],h,f=0;f<c;++f)(h=o[f])&&e.call(h,h.__data__,f,o)&&d.push(h);return new sr(a,this._parents)}function AE(e){return new Array(e.length)}function UD(){return new sr(this._enter||this._groups.map(AE),this._parents)}function Mu(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Mu.prototype={constructor:Mu,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 HD(e){return function(){return e}}function $D(e,t,r,a,s,o){for(var c=0,d,h=t.length,f=o.length;c<f;++c)(d=t[c])?(d.__data__=o[c],a[c]=d):r[c]=new Mu(e,o[c]);for(;c<h;++c)(d=t[c])&&(s[c]=d)}function qD(e,t,r,a,s,o,c){var d,h,f=new Map,p=t.length,g=o.length,b=new Array(p),y;for(d=0;d<p;++d)(h=t[d])&&(b[d]=y=c.call(h,h.__data__,d,t)+"",f.has(y)?s[d]=h:f.set(y,h));for(d=0;d<g;++d)y=c.call(e,o[d],d,o)+"",(h=f.get(y))?(a[d]=h,h.__data__=o[d],f.delete(y)):r[d]=new Mu(e,o[d]);for(d=0;d<p;++d)(h=t[d])&&f.get(b[d])===h&&(s[d]=h)}function PD(e){return e.__data__}function FD(e,t){if(!arguments.length)return Array.from(this,PD);var r=t?qD:$D,a=this._parents,s=this._groups;typeof e!="function"&&(e=HD(e));for(var o=s.length,c=new Array(o),d=new Array(o),h=new Array(o),f=0;f<o;++f){var p=a[f],g=s[f],b=g.length,y=GD(e.call(p,p&&p.__data__,f,a)),_=y.length,N=d[f]=new Array(_),S=c[f]=new Array(_),w=h[f]=new Array(b);r(p,g,N,S,w,y,t);for(var C=0,E=0,A,B;C<_;++C)if(A=N[C]){for(C>=E&&(E=C+1);!(B=S[E])&&++E<_;);A._next=B||null}}return c=new sr(c,a),c._enter=d,c._exit=h,c}function GD(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function VD(){return new sr(this._exit||this._groups.map(AE),this._parents)}function YD(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 XD(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),h=0;h<c;++h)for(var f=r[h],p=a[h],g=f.length,b=d[h]=new Array(g),y,_=0;_<g;++_)(y=f[_]||p[_])&&(b[_]=y);for(;h<s;++h)d[h]=r[h];return new sr(d,this._parents)}function KD(){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 ZD(e){e||(e=QD);function t(g,b){return g&&b?e(g.__data__,b.__data__):!g-!b}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,h=s[o]=new Array(d),f,p=0;p<d;++p)(f=c[p])&&(h[p]=f);h.sort(t)}return new sr(s,this._parents).order()}function QD(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function WD(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function JD(){return Array.from(this)}function eL(){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 tL(){let e=0;for(const t of this)++e;return e}function nL(){return!this.node()}function rL(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 iL(e){return function(){this.removeAttribute(e)}}function aL(e){return function(){this.removeAttributeNS(e.space,e.local)}}function sL(e,t){return function(){this.setAttribute(e,t)}}function lL(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function oL(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function cL(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 uL(e,t){var r=ed(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?aL:iL:typeof t=="function"?r.local?cL:oL:r.local?lL:sL)(r,t))}function ME(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function dL(e){return function(){this.style.removeProperty(e)}}function fL(e,t,r){return function(){this.style.setProperty(e,t,r)}}function hL(e,t,r){return function(){var a=t.apply(this,arguments);a==null?this.style.removeProperty(e):this.style.setProperty(e,a,r)}}function mL(e,t,r){return arguments.length>1?this.each((t==null?dL:typeof t=="function"?hL:fL)(e,t,r??"")):Ks(this.node(),e)}function Ks(e,t){return e.style.getPropertyValue(t)||ME(e).getComputedStyle(e,null).getPropertyValue(t)}function pL(e){return function(){delete this[e]}}function gL(e,t){return function(){this[e]=t}}function xL(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function bL(e,t){return arguments.length>1?this.each((t==null?pL:typeof t=="function"?xL:gL)(e,t)):this.node()[e]}function OE(e){return e.trim().split(/^|\s+/)}function tg(e){return e.classList||new RE(e)}function RE(e){this._node=e,this._names=OE(e.getAttribute("class")||"")}RE.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 jE(e,t){for(var r=tg(e),a=-1,s=t.length;++a<s;)r.add(t[a])}function DE(e,t){for(var r=tg(e),a=-1,s=t.length;++a<s;)r.remove(t[a])}function yL(e){return function(){jE(this,e)}}function vL(e){return function(){DE(this,e)}}function _L(e,t){return function(){(t.apply(this,arguments)?jE:DE)(this,e)}}function wL(e,t){var r=OE(e+"");if(arguments.length<2){for(var a=tg(this.node()),s=-1,o=r.length;++s<o;)if(!a.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?_L:t?yL:vL)(r,t))}function EL(){this.textContent=""}function NL(e){return function(){this.textContent=e}}function SL(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function kL(e){return arguments.length?this.each(e==null?EL:(typeof e=="function"?SL:NL)(e)):this.node().textContent}function CL(){this.innerHTML=""}function TL(e){return function(){this.innerHTML=e}}function AL(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function ML(e){return arguments.length?this.each(e==null?CL:(typeof e=="function"?AL:TL)(e)):this.node().innerHTML}function OL(){this.nextSibling&&this.parentNode.appendChild(this)}function RL(){return this.each(OL)}function jL(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function DL(){return this.each(jL)}function LL(e){var t=typeof e=="function"?e:SE(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function zL(){return null}function IL(e,t){var r=typeof e=="function"?e:SE(e),a=t==null?zL:typeof t=="function"?t:eg(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 UL(){return this.each(BL)}function HL(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function $L(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function qL(e){return this.select(e?$L:HL)}function PL(e){return arguments.length?this.property("__data__",e):this.node().__data__}function FL(e){return function(t){e.call(this,t,this.__data__)}}function GL(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 VL(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 YL(e,t,r){return function(){var a=this.__on,s,o=FL(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 XL(e,t,r){var a=GL(e+""),s,o=a.length,c;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,f=d.length,p;h<f;++h)for(s=0,p=d[h];s<o;++s)if((c=a[s]).type===p.type&&c.name===p.name)return p.value}return}for(d=t?YL:VL,s=0;s<o;++s)this.each(d(a[s],t,r));return this}function LE(e,t,r){var a=ME(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 KL(e,t){return function(){return LE(this,e,t)}}function ZL(e,t){return function(){return LE(this,e,t.apply(this,arguments))}}function QL(e,t){return this.each((typeof t=="function"?ZL:KL)(e,t))}function*WL(){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 zE=[null];function sr(e,t){this._groups=e,this._parents=t}function zo(){return new sr([[document.documentElement]],zE)}function JL(){return this}sr.prototype=zo.prototype={constructor:sr,select:SD,selectAll:AD,selectChild:jD,selectChildren:ID,filter:BD,data:FD,enter:UD,exit:VD,join:YD,merge:XD,selection:JL,order:KD,sort:ZD,call:WD,nodes:JD,node:eL,size:tL,empty:nL,each:rL,attr:uL,style:mL,property:bL,classed:wL,text:kL,html:ML,raise:RL,lower:DL,append:LL,insert:IL,remove:UL,clone:qL,datum:PL,on:XL,dispatch:QL,[Symbol.iterator]:WL};function ir(e){return typeof e=="string"?new sr([[document.querySelector(e)]],[document.documentElement]):new sr([[e]],zE)}function e6(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Ar(e,t){if(e=e6(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 t6={passive:!1},vo={capture:!0,passive:!1};function wm(e){e.stopImmediatePropagation()}function Fs(e){e.preventDefault(),e.stopImmediatePropagation()}function IE(e){var t=e.document.documentElement,r=ir(e).on("dragstart.drag",Fs,vo);"onselectstart"in t?r.on("selectstart.drag",Fs,vo):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function BE(e,t){var r=e.document.documentElement,a=ir(e).on("dragstart.drag",null);t&&(a.on("click.drag",Fs,vo),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 su=e=>()=>e;function sp(e,{sourceEvent:t,subject:r,target:a,identifier:s,active:o,x:c,y:d,dx:h,dy:f,dispatch:p}){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:h,enumerable:!0,configurable:!0},dy:{value:f,enumerable:!0,configurable:!0},_:{value:p}})}sp.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function n6(e){return!e.ctrlKey&&!e.button}function r6(){return this.parentNode}function i6(e,t){return t??{x:e.x,y:e.y}}function a6(){return navigator.maxTouchPoints||"ontouchstart"in this}function UE(){var e=n6,t=r6,r=i6,a=a6,s={},o=Ju("start","drag","end"),c=0,d,h,f,p,g=0;function b(A){A.on("mousedown.drag",y).filter(a).on("touchstart.drag",S).on("touchmove.drag",w,t6).on("touchend.drag touchcancel.drag",C).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(A,B){if(!(p||!e.call(this,A,B))){var R=E(this,t.call(this,A,B),A,B,"mouse");R&&(ir(A.view).on("mousemove.drag",_,vo).on("mouseup.drag",N,vo),IE(A.view),wm(A),f=!1,d=A.clientX,h=A.clientY,R("start",A))}}function _(A){if(Fs(A),!f){var B=A.clientX-d,R=A.clientY-h;f=B*B+R*R>g}s.mouse("drag",A)}function N(A){ir(A.view).on("mousemove.drag mouseup.drag",null),BE(A.view,f),Fs(A),s.mouse("end",A)}function S(A,B){if(e.call(this,A,B)){var R=A.changedTouches,H=t.call(this,A,B),z=R.length,Y,j;for(Y=0;Y<z;++Y)(j=E(this,H,A,B,R[Y].identifier,R[Y]))&&(wm(A),j("start",A,R[Y]))}}function w(A){var B=A.changedTouches,R=B.length,H,z;for(H=0;H<R;++H)(z=s[B[H].identifier])&&(Fs(A),z("drag",A,B[H]))}function C(A){var B=A.changedTouches,R=B.length,H,z;for(p&&clearTimeout(p),p=setTimeout(function(){p=null},500),H=0;H<R;++H)(z=s[B[H].identifier])&&(wm(A),z("end",A,B[H]))}function E(A,B,R,H,z,Y){var j=o.copy(),I=Ar(Y||R,B),Z,P,k;if((k=r.call(A,new sp("beforestart",{sourceEvent:R,target:b,identifier:z,active:c,x:I[0],y:I[1],dx:0,dy:0,dispatch:j}),H))!=null)return Z=k.x-I[0]||0,P=k.y-I[1]||0,function $(O,U,K){var X=I,M;switch(O){case"start":s[z]=$,M=c++;break;case"end":delete s[z],--c;case"drag":I=Ar(K||U,B),M=c;break}j.call(O,A,new sp(O,{sourceEvent:U,subject:k,target:b,identifier:z,active:M,x:I[0]+Z,y:I[1]+P,dx:I[0]-X[0],dy:I[1]-X[1],dispatch:j}),H)}}return b.filter=function(A){return arguments.length?(e=typeof A=="function"?A:su(!!A),b):e},b.container=function(A){return arguments.length?(t=typeof A=="function"?A:su(A),b):t},b.subject=function(A){return arguments.length?(r=typeof A=="function"?A:su(A),b):r},b.touchable=function(A){return arguments.length?(a=typeof A=="function"?A:su(!!A),b):a},b.on=function(){var A=o.on.apply(o,arguments);return A===o?b:A},b.clickDistance=function(A){return arguments.length?(g=(A=+A)*A,b):Math.sqrt(g)},b}function ng(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function HE(e,t){var r=Object.create(e.prototype);for(var a in t)r[a]=t[a];return r}function Io(){}var _o=.7,Ou=1/_o,Gs="\\s*([+-]?\\d+)\\s*",wo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Yr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",s6=/^#([0-9a-f]{3,8})$/,l6=new RegExp(`^rgb\\(${Gs},${Gs},${Gs}\\)$`),o6=new RegExp(`^rgb\\(${Yr},${Yr},${Yr}\\)$`),c6=new RegExp(`^rgba\\(${Gs},${Gs},${Gs},${wo}\\)$`),u6=new RegExp(`^rgba\\(${Yr},${Yr},${Yr},${wo}\\)$`),d6=new RegExp(`^hsl\\(${wo},${Yr},${Yr}\\)$`),f6=new RegExp(`^hsla\\(${wo},${Yr},${Yr},${wo}\\)$`),Xv={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};ng(Io,Ya,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Kv,formatHex:Kv,formatHex8:h6,formatHsl:m6,formatRgb:Zv,toString:Zv});function Kv(){return this.rgb().formatHex()}function h6(){return this.rgb().formatHex8()}function m6(){return $E(this).formatHsl()}function Zv(){return this.rgb().formatRgb()}function Ya(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=s6.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Qv(t):r===3?new Gn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?lu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?lu(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=l6.exec(e))?new Gn(t[1],t[2],t[3],1):(t=o6.exec(e))?new Gn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=c6.exec(e))?lu(t[1],t[2],t[3],t[4]):(t=u6.exec(e))?lu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=d6.exec(e))?e1(t[1],t[2]/100,t[3]/100,1):(t=f6.exec(e))?e1(t[1],t[2]/100,t[3]/100,t[4]):Xv.hasOwnProperty(e)?Qv(Xv[e]):e==="transparent"?new Gn(NaN,NaN,NaN,0):null}function Qv(e){return new Gn(e>>16&255,e>>8&255,e&255,1)}function lu(e,t,r,a){return a<=0&&(e=t=r=NaN),new Gn(e,t,r,a)}function p6(e){return e instanceof Io||(e=Ya(e)),e?(e=e.rgb(),new Gn(e.r,e.g,e.b,e.opacity)):new Gn}function lp(e,t,r,a){return arguments.length===1?p6(e):new Gn(e,t,r,a??1)}function Gn(e,t,r,a){this.r=+e,this.g=+t,this.b=+r,this.opacity=+a}ng(Gn,lp,HE(Io,{brighter(e){return e=e==null?Ou:Math.pow(Ou,e),new Gn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?_o:Math.pow(_o,e),new Gn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Gn(Pa(this.r),Pa(this.g),Pa(this.b),Ru(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:Wv,formatHex:Wv,formatHex8:g6,formatRgb:Jv,toString:Jv}));function Wv(){return`#${$a(this.r)}${$a(this.g)}${$a(this.b)}`}function g6(){return`#${$a(this.r)}${$a(this.g)}${$a(this.b)}${$a((isNaN(this.opacity)?1:this.opacity)*255)}`}function Jv(){const e=Ru(this.opacity);return`${e===1?"rgb(":"rgba("}${Pa(this.r)}, ${Pa(this.g)}, ${Pa(this.b)}${e===1?")":`, ${e})`}`}function Ru(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Pa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function $a(e){return e=Pa(e),(e<16?"0":"")+e.toString(16)}function e1(e,t,r,a){return a<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Or(e,t,r,a)}function $E(e){if(e instanceof Or)return new Or(e.h,e.s,e.l,e.opacity);if(e instanceof Io||(e=Ya(e)),!e)return new Or;if(e instanceof Or)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,h=(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/=h<.5?o+s:2-o-s,c*=60):d=h>0&&h<1?0:c,new Or(c,d,h,e.opacity)}function x6(e,t,r,a){return arguments.length===1?$E(e):new Or(e,t,r,a??1)}function Or(e,t,r,a){this.h=+e,this.s=+t,this.l=+r,this.opacity=+a}ng(Or,x6,HE(Io,{brighter(e){return e=e==null?Ou:Math.pow(Ou,e),new Or(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?_o:Math.pow(_o,e),new Or(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 Gn(Em(e>=240?e-240:e+120,s,a),Em(e,s,a),Em(e<120?e+240:e-120,s,a),this.opacity)},clamp(){return new Or(t1(this.h),ou(this.s),ou(this.l),Ru(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=Ru(this.opacity);return`${e===1?"hsl(":"hsla("}${t1(this.h)}, ${ou(this.s)*100}%, ${ou(this.l)*100}%${e===1?")":`, ${e})`}`}}));function t1(e){return e=(e||0)%360,e<0?e+360:e}function ou(e){return Math.max(0,Math.min(1,e||0))}function Em(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 rg=e=>()=>e;function b6(e,t){return function(r){return e+r*t}}function y6(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 v6(e){return(e=+e)==1?qE:function(t,r){return r-t?y6(t,r,e):rg(isNaN(t)?r:t)}}function qE(e,t){var r=t-e;return r?b6(e,r):rg(isNaN(e)?t:e)}const ju=(function e(t){var r=v6(t);function a(s,o){var c=r((s=lp(s)).r,(o=lp(o)).r),d=r(s.g,o.g),h=r(s.b,o.b),f=qE(s.opacity,o.opacity);return function(p){return s.r=c(p),s.g=d(p),s.b=h(p),s.opacity=f(p),s+""}}return a.gamma=e,a})(1);function _6(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 w6(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function E6(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]=fo(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 N6(e,t){var r=new Date;return e=+e,t=+t,function(a){return r.setTime(e*(1-a)+t*a),r}}function Vr(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function S6(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]=fo(e[s],t[s]):a[s]=t[s];return function(o){for(s in r)a[s]=r[s](o);return a}}var op=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Nm=new RegExp(op.source,"g");function k6(e){return function(){return e}}function C6(e){return function(t){return e(t)+""}}function PE(e,t){var r=op.lastIndex=Nm.lastIndex=0,a,s,o,c=-1,d=[],h=[];for(e=e+"",t=t+"";(a=op.exec(e))&&(s=Nm.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,h.push({i:c,x:Vr(a,s)})),r=Nm.lastIndex;return r<t.length&&(o=t.slice(r),d[c]?d[c]+=o:d[++c]=o),d.length<2?h[0]?C6(h[0].x):k6(t):(t=h.length,function(f){for(var p=0,g;p<t;++p)d[(g=h[p]).i]=g.x(f);return d.join("")})}function fo(e,t){var r=typeof t,a;return t==null||r==="boolean"?rg(t):(r==="number"?Vr:r==="string"?(a=Ya(t))?(t=a,ju):PE:t instanceof Ya?ju:t instanceof Date?N6:w6(t)?_6:Array.isArray(t)?E6:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?S6:Vr)(e,t)}var n1=180/Math.PI,cp={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function FE(e,t,r,a,s,o){var c,d,h;return(c=Math.sqrt(e*e+t*t))&&(e/=c,t/=c),(h=e*r+t*a)&&(r-=e*h,a-=t*h),(d=Math.sqrt(r*r+a*a))&&(r/=d,a/=d,h/=d),e*a<t*r&&(e=-e,t=-t,h=-h,c=-c),{translateX:s,translateY:o,rotate:Math.atan2(t,e)*n1,skewX:Math.atan(h)*n1,scaleX:c,scaleY:d}}var cu;function T6(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?cp:FE(t.a,t.b,t.c,t.d,t.e,t.f)}function A6(e){return e==null||(cu||(cu=document.createElementNS("http://www.w3.org/2000/svg","g")),cu.setAttribute("transform",e),!(e=cu.transform.baseVal.consolidate()))?cp:(e=e.matrix,FE(e.a,e.b,e.c,e.d,e.e,e.f))}function GE(e,t,r,a){function s(f){return f.length?f.pop()+" ":""}function o(f,p,g,b,y,_){if(f!==g||p!==b){var N=y.push("translate(",null,t,null,r);_.push({i:N-4,x:Vr(f,g)},{i:N-2,x:Vr(p,b)})}else(g||b)&&y.push("translate("+g+t+b+r)}function c(f,p,g,b){f!==p?(f-p>180?p+=360:p-f>180&&(f+=360),b.push({i:g.push(s(g)+"rotate(",null,a)-2,x:Vr(f,p)})):p&&g.push(s(g)+"rotate("+p+a)}function d(f,p,g,b){f!==p?b.push({i:g.push(s(g)+"skewX(",null,a)-2,x:Vr(f,p)}):p&&g.push(s(g)+"skewX("+p+a)}function h(f,p,g,b,y,_){if(f!==g||p!==b){var N=y.push(s(y)+"scale(",null,",",null,")");_.push({i:N-4,x:Vr(f,g)},{i:N-2,x:Vr(p,b)})}else(g!==1||b!==1)&&y.push(s(y)+"scale("+g+","+b+")")}return function(f,p){var g=[],b=[];return f=e(f),p=e(p),o(f.translateX,f.translateY,p.translateX,p.translateY,g,b),c(f.rotate,p.rotate,g,b),d(f.skewX,p.skewX,g,b),h(f.scaleX,f.scaleY,p.scaleX,p.scaleY,g,b),f=p=null,function(y){for(var _=-1,N=b.length,S;++_<N;)g[(S=b[_]).i]=S.x(y);return g.join("")}}}var M6=GE(T6,"px, ","px)","deg)"),O6=GE(A6,", ",")",")"),R6=1e-12;function r1(e){return((e=Math.exp(e))+1/e)/2}function j6(e){return((e=Math.exp(e))-1/e)/2}function D6(e){return((e=Math.exp(2*e))-1)/(e+1)}const vu=(function e(t,r,a){function s(o,c){var d=o[0],h=o[1],f=o[2],p=c[0],g=c[1],b=c[2],y=p-d,_=g-h,N=y*y+_*_,S,w;if(N<R6)w=Math.log(b/f)/t,S=function(H){return[d+H*y,h+H*_,f*Math.exp(t*H*w)]};else{var C=Math.sqrt(N),E=(b*b-f*f+a*N)/(2*f*r*C),A=(b*b-f*f-a*N)/(2*b*r*C),B=Math.log(Math.sqrt(E*E+1)-E),R=Math.log(Math.sqrt(A*A+1)-A);w=(R-B)/t,S=function(H){var z=H*w,Y=r1(B),j=f/(r*C)*(Y*D6(t*z+B)-j6(B));return[d+j*y,h+j*_,f*Y/r1(t*z+B)]}}return S.duration=w*1e3*t/Math.SQRT2,S}return s.rho=function(o){var c=Math.max(.001,+o),d=c*c,h=d*d;return e(c,d,h)},s})(Math.SQRT2,2,4);var Zs=0,so=0,to=0,VE=1e3,Du,lo,Lu=0,Xa=0,td=0,Eo=typeof performance=="object"&&performance.now?performance:Date,YE=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ig(){return Xa||(YE(L6),Xa=Eo.now()+td)}function L6(){Xa=0}function zu(){this._call=this._time=this._next=null}zu.prototype=XE.prototype={constructor:zu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?ig():+r)+(t==null?0:+t),!this._next&&lo!==this&&(lo?lo._next=this:Du=this,lo=this),this._call=e,this._time=r,up()},stop:function(){this._call&&(this._call=null,this._time=1/0,up())}};function XE(e,t,r){var a=new zu;return a.restart(e,t,r),a}function z6(){ig(),++Zs;for(var e=Du,t;e;)(t=Xa-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Zs}function i1(){Xa=(Lu=Eo.now())+td,Zs=so=0;try{z6()}finally{Zs=0,B6(),Xa=0}}function I6(){var e=Eo.now(),t=e-Lu;t>VE&&(td-=t,Lu=e)}function B6(){for(var e,t=Du,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:Du=r);lo=e,up(a)}function up(e){if(!Zs){so&&(so=clearTimeout(so));var t=e-Xa;t>24?(e<1/0&&(so=setTimeout(i1,e-Eo.now()-td)),to&&(to=clearInterval(to))):(to||(Lu=Eo.now(),to=setInterval(I6,VE)),Zs=1,YE(i1))}}function a1(e,t,r){var a=new zu;return t=t==null?0:+t,a.restart(s=>{a.stop(),e(s+t)},t,r),a}var U6=Ju("start","end","cancel","interrupt"),H6=[],KE=0,s1=1,dp=2,_u=3,l1=4,fp=5,wu=6;function nd(e,t,r,a,s,o){var c=e.__transition;if(!c)e.__transition={};else if(r in c)return;$6(e,r,{name:t,index:a,group:s,on:U6,tween:H6,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:KE})}function ag(e,t){var r=Ir(e,t);if(r.state>KE)throw new Error("too late; already scheduled");return r}function Zr(e,t){var r=Ir(e,t);if(r.state>_u)throw new Error("too late; already running");return r}function Ir(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function $6(e,t,r){var a=e.__transition,s;a[t]=r,r.timer=XE(o,0,r.time);function o(f){r.state=s1,r.timer.restart(c,r.delay,r.time),r.delay<=f&&c(f-r.delay)}function c(f){var p,g,b,y;if(r.state!==s1)return h();for(p in a)if(y=a[p],y.name===r.name){if(y.state===_u)return a1(c);y.state===l1?(y.state=wu,y.timer.stop(),y.on.call("interrupt",e,e.__data__,y.index,y.group),delete a[p]):+p<t&&(y.state=wu,y.timer.stop(),y.on.call("cancel",e,e.__data__,y.index,y.group),delete a[p])}if(a1(function(){r.state===_u&&(r.state=l1,r.timer.restart(d,r.delay,r.time),d(f))}),r.state=dp,r.on.call("start",e,e.__data__,r.index,r.group),r.state===dp){for(r.state=_u,s=new Array(b=r.tween.length),p=0,g=-1;p<b;++p)(y=r.tween[p].value.call(e,e.__data__,r.index,r.group))&&(s[++g]=y);s.length=g+1}}function d(f){for(var p=f<r.duration?r.ease.call(null,f/r.duration):(r.timer.restart(h),r.state=fp,1),g=-1,b=s.length;++g<b;)s[g].call(e,p);r.state===fp&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=wu,r.timer.stop(),delete a[t];for(var f in a)return;delete e.__transition}}function Eu(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>dp&&a.state<fp,a.state=wu,a.timer.stop(),a.on.call(s?"interrupt":"cancel",e,e.__data__,a.index,a.group),delete r[c]}o&&delete e.__transition}}function q6(e){return this.each(function(){Eu(this,e)})}function P6(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 F6(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},h=0,f=s.length;h<f;++h)if(s[h].name===t){s[h]=d;break}h===f&&s.push(d)}o.tween=s}}function G6(e,t){var r=this._id;if(e+="",arguments.length<2){for(var a=Ir(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?P6:F6)(r,e,t))}function sg(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 Ir(s,a).value[t]}}function ZE(e,t){var r;return(typeof t=="number"?Vr:t instanceof Ya?ju:(r=Ya(t))?(t=r,ju):PE)(e,t)}function V6(e){return function(){this.removeAttribute(e)}}function Y6(e){return function(){this.removeAttributeNS(e.space,e.local)}}function X6(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 K6(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 Z6(e,t,r){var a,s,o;return function(){var c,d=r(this),h;return d==null?void this.removeAttribute(e):(c=this.getAttribute(e),h=d+"",c===h?null:c===a&&h===s?o:(s=h,o=t(a=c,d)))}}function Q6(e,t,r){var a,s,o;return function(){var c,d=r(this),h;return d==null?void this.removeAttributeNS(e.space,e.local):(c=this.getAttributeNS(e.space,e.local),h=d+"",c===h?null:c===a&&h===s?o:(s=h,o=t(a=c,d)))}}function W6(e,t){var r=ed(e),a=r==="transform"?O6:ZE;return this.attrTween(e,typeof t=="function"?(r.local?Q6:Z6)(r,a,sg(this,"attr."+e,t)):t==null?(r.local?Y6:V6)(r):(r.local?K6:X6)(r,a,t))}function J6(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function ez(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function tz(e,t){var r,a;function s(){var o=t.apply(this,arguments);return o!==a&&(r=(a=o)&&ez(e,o)),r}return s._value=t,s}function nz(e,t){var r,a;function s(){var o=t.apply(this,arguments);return o!==a&&(r=(a=o)&&J6(e,o)),r}return s._value=t,s}function rz(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=ed(e);return this.tween(r,(a.local?tz:nz)(a,t))}function iz(e,t){return function(){ag(this,e).delay=+t.apply(this,arguments)}}function az(e,t){return t=+t,function(){ag(this,e).delay=t}}function sz(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?iz:az)(t,e)):Ir(this.node(),t).delay}function lz(e,t){return function(){Zr(this,e).duration=+t.apply(this,arguments)}}function oz(e,t){return t=+t,function(){Zr(this,e).duration=t}}function cz(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?lz:oz)(t,e)):Ir(this.node(),t).duration}function uz(e,t){if(typeof t!="function")throw new Error;return function(){Zr(this,e).ease=t}}function dz(e){var t=this._id;return arguments.length?this.each(uz(t,e)):Ir(this.node(),t).ease}function fz(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Zr(this,e).ease=r}}function hz(e){if(typeof e!="function")throw new Error;return this.each(fz(this._id,e))}function mz(e){typeof e!="function"&&(e=CE(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]=[],h,f=0;f<c;++f)(h=o[f])&&e.call(h,h.__data__,f,o)&&d.push(h);return new wi(a,this._parents,this._name,this._id)}function pz(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 h=t[d],f=r[d],p=h.length,g=c[d]=new Array(p),b,y=0;y<p;++y)(b=h[y]||f[y])&&(g[y]=b);for(;d<a;++d)c[d]=t[d];return new wi(c,this._parents,this._name,this._id)}function gz(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 xz(e,t,r){var a,s,o=gz(t)?ag:Zr;return function(){var c=o(this,e),d=c.on;d!==a&&(s=(a=d).copy()).on(t,r),c.on=s}}function bz(e,t){var r=this._id;return arguments.length<2?Ir(this.node(),r).on.on(e):this.each(xz(r,e,t))}function yz(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function vz(){return this.on("end.remove",yz(this._id))}function _z(e){var t=this._name,r=this._id;typeof e!="function"&&(e=eg(e));for(var a=this._groups,s=a.length,o=new Array(s),c=0;c<s;++c)for(var d=a[c],h=d.length,f=o[c]=new Array(h),p,g,b=0;b<h;++b)(p=d[b])&&(g=e.call(p,p.__data__,b,d))&&("__data__"in p&&(g.__data__=p.__data__),f[b]=g,nd(f[b],t,r,b,f,Ir(p,r)));return new wi(o,this._parents,t,r)}function wz(e){var t=this._name,r=this._id;typeof e!="function"&&(e=kE(e));for(var a=this._groups,s=a.length,o=[],c=[],d=0;d<s;++d)for(var h=a[d],f=h.length,p,g=0;g<f;++g)if(p=h[g]){for(var b=e.call(p,p.__data__,g,h),y,_=Ir(p,r),N=0,S=b.length;N<S;++N)(y=b[N])&&nd(y,t,r,N,b,_);o.push(b),c.push(p)}return new wi(o,c,t,r)}var Ez=zo.prototype.constructor;function Nz(){return new Ez(this._groups,this._parents)}function Sz(e,t){var r,a,s;return function(){var o=Ks(this,e),c=(this.style.removeProperty(e),Ks(this,e));return o===c?null:o===r&&c===a?s:s=t(r=o,a=c)}}function QE(e){return function(){this.style.removeProperty(e)}}function kz(e,t,r){var a,s=r+"",o;return function(){var c=Ks(this,e);return c===s?null:c===a?o:o=t(a=c,r)}}function Cz(e,t,r){var a,s,o;return function(){var c=Ks(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Ks(this,e))),c===h?null:c===a&&h===s?o:(s=h,o=t(a=c,d))}}function Tz(e,t){var r,a,s,o="style."+t,c="end."+o,d;return function(){var h=Zr(this,e),f=h.on,p=h.value[o]==null?d||(d=QE(t)):void 0;(f!==r||s!==p)&&(a=(r=f).copy()).on(c,s=p),h.on=a}}function Az(e,t,r){var a=(e+="")=="transform"?M6:ZE;return t==null?this.styleTween(e,Sz(e,a)).on("end.style."+e,QE(e)):typeof t=="function"?this.styleTween(e,Cz(e,a,sg(this,"style."+e,t))).each(Tz(this._id,e)):this.styleTween(e,kz(e,a,t),r).on("end.style."+e,null)}function Mz(e,t,r){return function(a){this.style.setProperty(e,t.call(this,a),r)}}function Oz(e,t,r){var a,s;function o(){var c=t.apply(this,arguments);return c!==s&&(a=(s=c)&&Mz(e,c,r)),a}return o._value=t,o}function Rz(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,Oz(e,t,r??""))}function jz(e){return function(){this.textContent=e}}function Dz(e){return function(){var t=e(this);this.textContent=t??""}}function Lz(e){return this.tween("text",typeof e=="function"?Dz(sg(this,"text",e)):jz(e==null?"":e+""))}function zz(e){return function(t){this.textContent=e.call(this,t)}}function Iz(e){var t,r;function a(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&zz(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,Iz(e))}function Uz(){for(var e=this._name,t=this._id,r=WE(),a=this._groups,s=a.length,o=0;o<s;++o)for(var c=a[o],d=c.length,h,f=0;f<d;++f)if(h=c[f]){var p=Ir(h,t);nd(h,e,r,f,c,{time:p.time+p.delay+p.duration,delay:0,duration:p.duration,ease:p.ease})}return new wi(a,this._parents,e,r)}function Hz(){var e,t,r=this,a=r._id,s=r.size();return new Promise(function(o,c){var d={value:c},h={value:function(){--s===0&&o()}};r.each(function(){var f=Zr(this,a),p=f.on;p!==e&&(t=(e=p).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),f.on=t}),s===0&&o()})}var $z=0;function wi(e,t,r,a){this._groups=e,this._parents=t,this._name=r,this._id=a}function WE(){return++$z}var bi=zo.prototype;wi.prototype={constructor:wi,select:_z,selectAll:wz,selectChild:bi.selectChild,selectChildren:bi.selectChildren,filter:mz,merge:pz,selection:Nz,transition:Uz,call:bi.call,nodes:bi.nodes,node:bi.node,size:bi.size,empty:bi.empty,each:bi.each,on:bz,attr:W6,attrTween:rz,style:Az,styleTween:Rz,text:Lz,textTween:Bz,remove:vz,tween:G6,delay:sz,duration:cz,ease:dz,easeVarying:hz,end:Hz,[Symbol.iterator]:bi[Symbol.iterator]};function qz(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Pz={time:null,delay:0,duration:250,ease:qz};function Fz(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 Gz(e){var t,r;e instanceof wi?(t=e._id,e=e._name):(t=WE(),(r=Pz).time=ig(),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,h,f=0;f<d;++f)(h=c[f])&&nd(h,e,t,f,c,r||Fz(h,t));return new wi(a,this._parents,e,t)}zo.prototype.interrupt=q6;zo.prototype.transition=Gz;const uu=e=>()=>e;function Vz(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 rd=new vi(1,0,0);JE.prototype=vi.prototype;function JE(e){for(;!e.__zoom;)if(!(e=e.parentNode))return rd;return e.__zoom}function Sm(e){e.stopImmediatePropagation()}function no(e){e.preventDefault(),e.stopImmediatePropagation()}function Yz(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Xz(){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 o1(){return this.__zoom||rd}function Kz(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Zz(){return navigator.maxTouchPoints||"ontouchstart"in this}function Qz(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 eN(){var e=Yz,t=Xz,r=Qz,a=Kz,s=Zz,o=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=vu,f=Ju("start","zoom","end"),p,g,b,y=500,_=150,N=0,S=10;function w(k){k.property("__zoom",o1).on("wheel.zoom",z,{passive:!1}).on("mousedown.zoom",Y).on("dblclick.zoom",j).filter(s).on("touchstart.zoom",I).on("touchmove.zoom",Z).on("touchend.zoom touchcancel.zoom",P).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}w.transform=function(k,$,O,U){var K=k.selection?k.selection():k;K.property("__zoom",o1),k!==K?B(k,$,O,U):K.interrupt().each(function(){R(this,arguments).event(U).start().zoom(null,typeof $=="function"?$.apply(this,arguments):$).end()})},w.scaleBy=function(k,$,O,U){w.scaleTo(k,function(){var K=this.__zoom.k,X=typeof $=="function"?$.apply(this,arguments):$;return K*X},O,U)},w.scaleTo=function(k,$,O,U){w.transform(k,function(){var K=t.apply(this,arguments),X=this.__zoom,M=O==null?A(K):typeof O=="function"?O.apply(this,arguments):O,L=X.invert(M),F=typeof $=="function"?$.apply(this,arguments):$;return r(E(C(X,F),M,L),K,c)},O,U)},w.translateBy=function(k,$,O,U){w.transform(k,function(){return r(this.__zoom.translate(typeof $=="function"?$.apply(this,arguments):$,typeof O=="function"?O.apply(this,arguments):O),t.apply(this,arguments),c)},null,U)},w.translateTo=function(k,$,O,U,K){w.transform(k,function(){var X=t.apply(this,arguments),M=this.__zoom,L=U==null?A(X):typeof U=="function"?U.apply(this,arguments):U;return r(rd.translate(L[0],L[1]).scale(M.k).translate(typeof $=="function"?-$.apply(this,arguments):-$,typeof O=="function"?-O.apply(this,arguments):-O),X,c)},U,K)};function C(k,$){return $=Math.max(o[0],Math.min(o[1],$)),$===k.k?k:new vi($,k.x,k.y)}function E(k,$,O){var U=$[0]-O[0]*k.k,K=$[1]-O[1]*k.k;return U===k.x&&K===k.y?k:new vi(k.k,U,K)}function A(k){return[(+k[0][0]+ +k[1][0])/2,(+k[0][1]+ +k[1][1])/2]}function B(k,$,O,U){k.on("start.zoom",function(){R(this,arguments).event(U).start()}).on("interrupt.zoom end.zoom",function(){R(this,arguments).event(U).end()}).tween("zoom",function(){var K=this,X=arguments,M=R(K,X).event(U),L=t.apply(K,X),F=O==null?A(L):typeof O=="function"?O.apply(K,X):O,D=Math.max(L[1][0]-L[0][0],L[1][1]-L[0][1]),V=K.__zoom,q=typeof $=="function"?$.apply(K,X):$,Q=h(V.invert(F).concat(D/V.k),q.invert(F).concat(D/q.k));return function(J){if(J===1)J=q;else{var W=Q(J),te=D/W[2];J=new vi(te,F[0]-W[0]*te,F[1]-W[1]*te)}M.zoom(null,J)}})}function R(k,$,O){return!O&&k.__zooming||new H(k,$)}function H(k,$){this.that=k,this.args=$,this.active=0,this.sourceEvent=null,this.extent=t.apply(k,$),this.taps=0}H.prototype={event:function(k){return k&&(this.sourceEvent=k),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(k,$){return this.mouse&&k!=="mouse"&&(this.mouse[1]=$.invert(this.mouse[0])),this.touch0&&k!=="touch"&&(this.touch0[1]=$.invert(this.touch0[0])),this.touch1&&k!=="touch"&&(this.touch1[1]=$.invert(this.touch1[0])),this.that.__zoom=$,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(k){var $=ir(this.that).datum();f.call(k,this.that,new Vz(k,{sourceEvent:this.sourceEvent,target:w,transform:this.that.__zoom,dispatch:f}),$)}};function z(k,...$){if(!e.apply(this,arguments))return;var O=R(this,$).event(k),U=this.__zoom,K=Math.max(o[0],Math.min(o[1],U.k*Math.pow(2,a.apply(this,arguments)))),X=Ar(k);if(O.wheel)(O.mouse[0][0]!==X[0]||O.mouse[0][1]!==X[1])&&(O.mouse[1]=U.invert(O.mouse[0]=X)),clearTimeout(O.wheel);else{if(U.k===K)return;O.mouse=[X,U.invert(X)],Eu(this),O.start()}no(k),O.wheel=setTimeout(M,_),O.zoom("mouse",r(E(C(U,K),O.mouse[0],O.mouse[1]),O.extent,c));function M(){O.wheel=null,O.end()}}function Y(k,...$){if(b||!e.apply(this,arguments))return;var O=k.currentTarget,U=R(this,$,!0).event(k),K=ir(k.view).on("mousemove.zoom",F,!0).on("mouseup.zoom",D,!0),X=Ar(k,O),M=k.clientX,L=k.clientY;IE(k.view),Sm(k),U.mouse=[X,this.__zoom.invert(X)],Eu(this),U.start();function F(V){if(no(V),!U.moved){var q=V.clientX-M,Q=V.clientY-L;U.moved=q*q+Q*Q>N}U.event(V).zoom("mouse",r(E(U.that.__zoom,U.mouse[0]=Ar(V,O),U.mouse[1]),U.extent,c))}function D(V){K.on("mousemove.zoom mouseup.zoom",null),BE(V.view,U.moved),no(V),U.event(V).end()}}function j(k,...$){if(e.apply(this,arguments)){var O=this.__zoom,U=Ar(k.changedTouches?k.changedTouches[0]:k,this),K=O.invert(U),X=O.k*(k.shiftKey?.5:2),M=r(E(C(O,X),U,K),t.apply(this,$),c);no(k),d>0?ir(this).transition().duration(d).call(B,M,U,k):ir(this).call(w.transform,M,U,k)}}function I(k,...$){if(e.apply(this,arguments)){var O=k.touches,U=O.length,K=R(this,$,k.changedTouches.length===U).event(k),X,M,L,F;for(Sm(k),M=0;M<U;++M)L=O[M],F=Ar(L,this),F=[F,this.__zoom.invert(F),L.identifier],K.touch0?!K.touch1&&K.touch0[2]!==F[2]&&(K.touch1=F,K.taps=0):(K.touch0=F,X=!0,K.taps=1+!!p);p&&(p=clearTimeout(p)),X&&(K.taps<2&&(g=F[0],p=setTimeout(function(){p=null},y)),Eu(this),K.start())}}function Z(k,...$){if(this.__zooming){var O=R(this,$).event(k),U=k.changedTouches,K=U.length,X,M,L,F;for(no(k),X=0;X<K;++X)M=U[X],L=Ar(M,this),O.touch0&&O.touch0[2]===M.identifier?O.touch0[0]=L:O.touch1&&O.touch1[2]===M.identifier&&(O.touch1[0]=L);if(M=O.that.__zoom,O.touch1){var D=O.touch0[0],V=O.touch0[1],q=O.touch1[0],Q=O.touch1[1],J=(J=q[0]-D[0])*J+(J=q[1]-D[1])*J,W=(W=Q[0]-V[0])*W+(W=Q[1]-V[1])*W;M=C(M,Math.sqrt(J/W)),L=[(D[0]+q[0])/2,(D[1]+q[1])/2],F=[(V[0]+Q[0])/2,(V[1]+Q[1])/2]}else if(O.touch0)L=O.touch0[0],F=O.touch0[1];else return;O.zoom("touch",r(E(M,L,F),O.extent,c))}}function P(k,...$){if(this.__zooming){var O=R(this,$).event(k),U=k.changedTouches,K=U.length,X,M;for(Sm(k),b&&clearTimeout(b),b=setTimeout(function(){b=null},y),X=0;X<K;++X)M=U[X],O.touch0&&O.touch0[2]===M.identifier?delete O.touch0:O.touch1&&O.touch1[2]===M.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&&(M=Ar(M,this),Math.hypot(g[0]-M[0],g[1]-M[1])<S)){var L=ir(this).on("dblclick.zoom");L&&L.apply(this,arguments)}}}return w.wheelDelta=function(k){return arguments.length?(a=typeof k=="function"?k:uu(+k),w):a},w.filter=function(k){return arguments.length?(e=typeof k=="function"?k:uu(!!k),w):e},w.touchable=function(k){return arguments.length?(s=typeof k=="function"?k:uu(!!k),w):s},w.extent=function(k){return arguments.length?(t=typeof k=="function"?k:uu([[+k[0][0],+k[0][1]],[+k[1][0],+k[1][1]]]),w):t},w.scaleExtent=function(k){return arguments.length?(o[0]=+k[0],o[1]=+k[1],w):[o[0],o[1]]},w.translateExtent=function(k){return arguments.length?(c[0][0]=+k[0][0],c[1][0]=+k[1][0],c[0][1]=+k[0][1],c[1][1]=+k[1][1],w):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},w.constrain=function(k){return arguments.length?(r=k,w):r},w.duration=function(k){return arguments.length?(d=+k,w):d},w.interpolate=function(k){return arguments.length?(h=k,w):h},w.on=function(){var k=f.on.apply(f,arguments);return k===f?w:k},w.clickDistance=function(k){return arguments.length?(N=(k=+k)*k,w):Math.sqrt(N)},w.tapDistance=function(k){return arguments.length?(S=+k,w):S},w}const Lr={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.`},No=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],tN=["Enter"," ","Escape"],nN={"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 Qs;(function(e){e.Strict="strict",e.Loose="loose"})(Qs||(Qs={}));var Fa;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(Fa||(Fa={}));var So;(function(e){e.Partial="partial",e.Full="full"})(So||(So={}));const rN={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var ua;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(ua||(ua={}));var Iu;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(Iu||(Iu={}));var ze;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(ze||(ze={}));const c1={[ze.Left]:ze.Right,[ze.Right]:ze.Left,[ze.Top]:ze.Bottom,[ze.Bottom]:ze.Top};function iN(e){return e===null?null:e?"valid":"invalid"}const aN=e=>!!e&&typeof e=="object"&&"id"in e&&"source"in e&&"target"in e,Wz=e=>!!e&&typeof e=="object"&&"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),lg=e=>!!e&&typeof e=="object"&&"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),Bo=(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}},Jz=(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):lg(s)?s:t.nodeLookup.get(s.id));const d=c?Bu(c,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return id(a,d)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return ad(r)},Uo=(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=id(r,Bu(s)),a=!0)}),a?ad(r):{x:0,y:0,width:0,height:0}},og=(e,t,[r,a,s]=[0,0,1],o=!1,c=!1)=>{const d=(t.x-r)/s,h=(t.y-a)/s,f=t.width/s,p=t.height/s,g=[];for(const b of e.values()){const{measured:y,selectable:_=!0,hidden:N=!1}=b;if(c&&!_||N)continue;const S=y.width??b.width??b.initialWidth??0,w=y.height??b.height??b.initialHeight??0,{x:C,y:E}=b.internals.positionAbsolute,A=cN(d,h,f,p,C,E,S,w),B=S*w,R=o&&A>0;(!b.internals.handleBounds||R||A>=B||b.dragging)&&g.push(b)}return g},eI=(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 tI(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 nI({nodes:e,width:t,height:r,panZoom:a,minZoom:s,maxZoom:o},c){if(e.size===0)return!0;const d=tI(e,c),h=Uo(d),f=ug(h,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(f,{duration:c==null?void 0:c.duration,ease:c==null?void 0:c.ease,interpolate:c==null?void 0:c.interpolate}),!0}function sN({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:h,y:f}=d?d.internals.positionAbsolute:{x:0,y:0},p=c.origin??a;let g=c.extent||s;if(c.extent==="parent"&&!c.expandParent)if(!d)o==null||o("005",Lr.error005());else{const y=d.measured.width,_=d.measured.height;y&&_&&(g=[[h,f],[h+y,f+_]])}else d&&Za(c.extent)&&(g=[[c.extent[0][0]+h,c.extent[0][1]+f],[c.extent[1][0]+h,c.extent[1][1]+f]]);const b=Za(g)?Ka(t,g,c.measured):t;return(c.measured.width===void 0||c.measured.height===void 0)&&(o==null||o("015",Lr.error015())),{position:{x:b.x-h+(c.measured.width??0)*p[0],y:b.y-f+(c.measured.height??0)*p[1]},positionAbsolute:b}}async function rI({nodesToRemove:e=[],edgesToRemove:t=[],nodes:r,edges:a,onBeforeDelete:s}){const o=new Set(e.map(b=>b.id)),c=[];for(const b of r){if(b.deletable===!1)continue;const y=o.has(b.id),_=!y&&b.parentId&&c.find(N=>N.id===b.parentId);(y||_)&&c.push(b)}const d=new Set(t.map(b=>b.id)),h=a.filter(b=>b.deletable!==!1),p=eI(c,h);for(const b of h)d.has(b.id)&&!p.find(_=>_.id===b.id)&&p.push(b);if(!s)return{edges:p,nodes:c};const g=await s({nodes:c,edges:p});return typeof g=="boolean"?g?{edges:p,nodes:c}:{edges:[],nodes:[]}:g}const Ws=(e,t=0,r=1)=>Math.min(Math.max(e,t),r),Ka=(e={x:0,y:0},t,r)=>({x:Ws(e.x,t[0][0],t[1][0]-((r==null?void 0:r.width)??0)),y:Ws(e.y,t[0][1],t[1][1]-((r==null?void 0:r.height)??0))});function lN(e,t,r){const{width:a,height:s}=Qr(r),{x:o,y:c}=r.internals.positionAbsolute;return Ka(e,[[o,c],[o+a,c+s]],t)}const u1=(e,t,r)=>e<t?Ws(Math.abs(e-t),1,t)/t:e>r?-Ws(Math.abs(e-r),1,t)/t:0,cg=(e,t,r=15,a=40)=>{const s=u1(e.x,a,t.width-a)*r,o=u1(e.y,a,t.height-a)*r;return[s,o]},id=(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)}),hp=({x:e,y:t,width:r,height:a})=>({x:e,y:t,x2:e+r,y2:t+a}),ad=({x:e,y:t,x2:r,y2:a})=>({x:e,y:t,width:r-e,height:a-t}),ko=(e,t=[0,0])=>{var s,o;const{x:r,y:a}=lg(e)?e.internals.positionAbsolute:Bo(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}},Bu=(e,t=[0,0])=>{var s,o;const{x:r,y:a}=lg(e)?e.internals.positionAbsolute:Bo(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)}},oN=(e,t)=>ad(id(hp(e),hp(t))),cN=(e,t,r,a,s,o,c,d)=>{const h=Math.max(0,Math.min(e+r,s+c)-Math.max(e,s)),f=Math.max(0,Math.min(t+a,o+d)-Math.max(t,o));return Math.ceil(h*f)},Uu=(e,t)=>cN(e.x,e.y,e.width,e.height,t.x,t.y,t.width,t.height),d1=e=>Rr(e.width)&&Rr(e.height)&&Rr(e.x)&&Rr(e.y),Rr=e=>!isNaN(e)&&isFinite(e),uN=(e,t)=>(r,a)=>{},Ho=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),$o=({x:e,y:t},[r,a,s],o=!1,c=[1,1])=>{const d={x:(e-r)/s,y:(t-a)/s};return o?Ho(d,c):d},Js=({x:e,y:t},[r,a,s])=>({x:e*s+r,y:t*s+a});function Is(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 iI(e,t,r){if(typeof e=="string"||typeof e=="number"){const a=Is(e,r),s=Is(e,t);return{top:a,right:s,bottom:a,left:s,x:s*2,y:a*2}}if(typeof e=="object"){const a=Is(e.top??e.y??0,r),s=Is(e.bottom??e.y??0,r),o=Is(e.left??e.x??0,t),c=Is(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 aI(e,t,r,a,s,o){const{x:c,y:d}=Js(e,[t,r,a]),{x:h,y:f}=Js({x:e.x+e.width,y:e.y+e.height},[t,r,a]),p=s-h,g=o-f;return{left:Math.floor(c),top:Math.floor(d),right:Math.floor(p),bottom:Math.floor(g)}}const ug=(e,t,r,a,s,o)=>{const c=iI(o,t,r),d=(t-c.x)/e.width,h=(r-c.y)/e.height,f=Math.min(d,h),p=Ws(f,a,s),g=e.x+e.width/2,b=e.y+e.height/2,y=t/2-g*p,_=r/2-b*p,N=aI(e,y,_,p,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:y-S.left+S.right,y:_-S.top+S.bottom,zoom:p}},Co=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function Za(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 dN(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 fN(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 f1(e,t){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}function sI(){let e,t;return{promise:new Promise((a,s)=>{e=a,t=s}),resolve:e,reject:t}}function lI(e){return{...nN,...e||{}}}function ho(e,{snapGrid:t=[0,0],snapToGrid:r=!1,transform:a,containerBounds:s}){const{x:o,y:c}=jr(e),d=$o({x:o-((s==null?void 0:s.left)??0),y:c-((s==null?void 0:s.top)??0)},a),{x:h,y:f}=r?Ho(d,t):d;return{xSnapped:h,ySnapped:f,...d}}const dg=e=>({width:e.offsetWidth,height:e.offsetHeight}),hN=e=>{var t;return((t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},oI=["INPUT","SELECT","TEXTAREA"];function mN(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:oI.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}const pN=e=>"clientX"in e,jr=(e,t)=>{var o,c;const r=pN(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)}},h1=(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,...dg(c)}})};function gN({sourceX:e,sourceY:t,targetX:r,targetY:a,sourceControlX:s,sourceControlY:o,targetControlX:c,targetControlY:d}){const h=e*.125+s*.375+c*.375+r*.125,f=t*.125+o*.375+d*.375+a*.125,p=Math.abs(h-e),g=Math.abs(f-t);return[h,f,p,g]}function du(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function m1({pos:e,x1:t,y1:r,x2:a,y2:s,c:o}){switch(e){case ze.Left:return[t-du(t-a,o),r];case ze.Right:return[t+du(a-t,o),r];case ze.Top:return[t,r-du(r-s,o)];case ze.Bottom:return[t,r+du(s-r,o)]}}function xN({sourceX:e,sourceY:t,sourcePosition:r=ze.Bottom,targetX:a,targetY:s,targetPosition:o=ze.Top,curvature:c=.25}){const[d,h]=m1({pos:r,x1:e,y1:t,x2:a,y2:s,c}),[f,p]=m1({pos:o,x1:a,y1:s,x2:e,y2:t,c}),[g,b,y,_]=gN({sourceX:e,sourceY:t,targetX:a,targetY:s,sourceControlX:d,sourceControlY:h,targetControlX:f,targetControlY:p});return[`M${e},${t} C${d},${h} ${f},${p} ${a},${s}`,g,b,y,_]}function bN({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 cI({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 uI({sourceNode:e,targetNode:t,width:r,height:a,transform:s}){const o=id(Bu(e),Bu(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 Uu(c,ad(o))>0}const dI=({source:e,sourceHandle:t,target:r,targetHandle:a})=>`xy-edge__${e}${t||""}-${r}${a||""}`,fI=(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)),hI=(e,t,r={})=>{var o;if(!e.source||!e.target)return(o=r.onError)==null||o.call(r,"006",Lr.error006()),t;const a=r.getEdgeId||dI;let s;return aN(e)?s={...e}:s={...e,id:a(e)},fI(s,t)?t:(s.sourceHandle===null&&delete s.sourceHandle,s.targetHandle===null&&delete s.targetHandle,t.concat(s))};function yN({sourceX:e,sourceY:t,targetX:r,targetY:a}){const[s,o,c,d]=bN({sourceX:e,sourceY:t,targetX:r,targetY:a});return[`M ${e},${t}L ${r},${a}`,s,o,c,d]}const p1={[ze.Left]:{x:-1,y:0},[ze.Right]:{x:1,y:0},[ze.Top]:{x:0,y:-1},[ze.Bottom]:{x:0,y:1}},mI=({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},g1=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function pI({source:e,sourcePosition:t=ze.Bottom,target:r,targetPosition:a=ze.Top,center:s,offset:o,stepPosition:c}){const d=p1[t],h=p1[a],f={x:e.x+d.x*o,y:e.y+d.y*o},p={x:r.x+h.x*o,y:r.y+h.y*o},g=mI({source:f,sourcePosition:t,target:p}),b=g.x!==0?"x":"y",y=g[b];let _=[],N,S;const w={x:0,y:0},C={x:0,y:0},[,,E,A]=bN({sourceX:e.x,sourceY:e.y,targetX:r.x,targetY:r.y});if(d[b]*h[b]===-1){b==="x"?(N=s.x??f.x+(p.x-f.x)*c,S=s.y??(f.y+p.y)/2):(N=s.x??(f.x+p.x)/2,S=s.y??f.y+(p.y-f.y)*c);const z=[{x:N,y:f.y},{x:N,y:p.y}],Y=[{x:f.x,y:S},{x:p.x,y:S}];d[b]===y?_=b==="x"?z:Y:_=b==="x"?Y:z}else{const z=[{x:f.x,y:p.y}],Y=[{x:p.x,y:f.y}];if(b==="x"?_=d.x===y?Y:z:_=d.y===y?z:Y,t===a){const k=Math.abs(e[b]-r[b]);if(k<=o){const $=Math.min(o-1,o-k);d[b]===y?w[b]=(f[b]>e[b]?-1:1)*$:C[b]=(p[b]>r[b]?-1:1)*$}}if(t!==a){const k=b==="x"?"y":"x",$=d[b]===h[k],O=f[k]>p[k],U=f[k]<p[k];(d[b]===1&&(!$&&O||$&&U)||d[b]!==1&&(!$&&U||$&&O))&&(_=b==="x"?z:Y)}const j={x:f.x+w.x,y:f.y+w.y},I={x:p.x+C.x,y:p.y+C.y},Z=Math.max(Math.abs(j.x-_[0].x),Math.abs(I.x-_[0].x)),P=Math.max(Math.abs(j.y-_[0].y),Math.abs(I.y-_[0].y));Z>=P?(N=(j.x+I.x)/2,S=_[0].y):(N=_[0].x,S=(j.y+I.y)/2)}const B={x:f.x+w.x,y:f.y+w.y},R={x:p.x+C.x,y:p.y+C.y};return[[e,...B.x!==_[0].x||B.y!==_[0].y?[B]:[],..._,...R.x!==_[_.length-1].x||R.y!==_[_.length-1].y?[R]:[],r],N,S,E,A]}function gI(e,t,r,a){const s=Math.min(g1(e,t)/2,g1(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 f=e.x<r.x?-1:1,p=e.y<r.y?1:-1;return`L ${o+s*f},${c}Q ${o},${c} ${o},${c+s*p}`}const d=e.x<r.x?1:-1,h=e.y<r.y?-1:1;return`L ${o},${c+s*h}Q ${o},${c} ${o+s*d},${c}`}function mp({sourceX:e,sourceY:t,sourcePosition:r=ze.Bottom,targetX:a,targetY:s,targetPosition:o=ze.Top,borderRadius:c=5,centerX:d,centerY:h,offset:f=20,stepPosition:p=.5}){const[g,b,y,_,N]=pI({source:{x:e,y:t},sourcePosition:r,target:{x:a,y:s},targetPosition:o,center:{x:d,y:h},offset:f,stepPosition:p});let S=`M${g[0].x} ${g[0].y}`;for(let w=1;w<g.length-1;w++)S+=gI(g[w-1],g[w],g[w+1],c);return S+=`L${g[g.length-1].x} ${g[g.length-1].y}`,[S,b,y,_,N]}function x1(e){var t;return e&&!!(e.internals.handleBounds||(t=e.handles)!=null&&t.length)&&!!(e.measured.width||e.width||e.initialWidth)}function xI(e){var g;const{sourceNode:t,targetNode:r}=e;if(!x1(t)||!x1(r))return null;const a=t.internals.handleBounds||b1(t.handles),s=r.internals.handleBounds||b1(r.handles),o=y1((a==null?void 0:a.source)??[],e.sourceHandle),c=y1(e.connectionMode===Qs.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(g=e.onError)==null||g.call(e,"008",Lr.error008(o?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const d=(o==null?void 0:o.position)||ze.Bottom,h=(c==null?void 0:c.position)||ze.Top,f=Qa(t,o,d),p=Qa(r,c,h);return{sourceX:f.x,sourceY:f.y,targetX:p.x,targetY:p.y,sourcePosition:d,targetPosition:h}}function b1(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 Qa(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 y1(e,t){return e&&(t?e.find(r=>r.id===t):e[0])||null}function pp(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(a=>`${a}=${e[a]}`).join("&")}`:""}function bI(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(h=>{if(h&&typeof h=="object"){const f=pp(h,t);o.has(f)||(c.push({id:f,color:h.color||r,...h}),o.add(f))}}),c),[]).sort((c,d)=>c.id.localeCompare(d.id))}const vN=1e3,yI=10,fg={nodeOrigin:[0,0],nodeExtent:No,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},vI={...fg,checkEquality:!0};function hg(e,t){const r={...e};for(const a in t)t[a]!==void 0&&(r[a]=t[a]);return r}function _I(e,t,r){const a=hg(fg,r);for(const s of e.values())if(s.parentId)pg(s,e,t,a);else{const o=Bo(s,a.nodeOrigin),c=Za(s.extent)?s.extent:a.nodeExtent,d=Ka(o,c,Qr(s));s.internals.positionAbsolute=d}}function wI(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 mg(e){return e==="manual"}function gp(e,t,r,a={}){var p,g;const s=hg(vI,a),o={i:0},c=new Map(t),d=s!=null&&s.elevateNodesOnSelect&&!mg(s.zIndexMode)?vN:0;let h=e.length>0,f=!1;t.clear(),r.clear();for(const b of e){let y=c.get(b.id);if(s.checkEquality&&b===(y==null?void 0:y.internals.userNode))t.set(b.id,y);else{const _=Bo(b,s.nodeOrigin),N=Za(b.extent)?b.extent:s.nodeExtent,S=Ka(_,N,Qr(b));y={...s.defaults,...b,measured:{width:(p=b.measured)==null?void 0:p.width,height:(g=b.measured)==null?void 0:g.height},internals:{positionAbsolute:S,handleBounds:wI(b,y),z:_N(b,d,s.zIndexMode),userNode:b}},t.set(b.id,y)}(y.measured===void 0||y.measured.width===void 0||y.measured.height===void 0)&&!y.hidden&&(h=!1),b.parentId&&pg(y,t,r,a,o),f||(f=b.selected??!1)}return{nodesInitialized:h,hasSelectedNodes:f}}function EI(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 pg(e,t,r,a,s){const{elevateNodesOnSelect:o,nodeOrigin:c,nodeExtent:d,zIndexMode:h}=hg(fg,a),f=e.parentId,p=t.get(f);if(!p){console.warn(`Parent node ${f} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}EI(e,r),s&&!p.parentId&&p.internals.rootParentIndex===void 0&&h==="auto"&&(p.internals.rootParentIndex=++s.i,p.internals.z=p.internals.z+s.i*yI),s&&p.internals.rootParentIndex!==void 0&&(s.i=p.internals.rootParentIndex);const g=o&&!mg(h)?vN:0,{x:b,y,z:_}=NI(e,p,c,d,g,h),{positionAbsolute:N}=e.internals,S=b!==N.x||y!==N.y;(S||_!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:S?{x:b,y}:N,z:_}})}function _N(e,t,r){const a=Rr(e.zIndex)?e.zIndex:0;return mg(r)?a:a+(e.selected?t:0)}function NI(e,t,r,a,s,o){const{x:c,y:d}=t.internals.positionAbsolute,h=Qr(e),f=Bo(e,r),p=Za(e.extent)?Ka(f,e.extent,h):f;let g=Ka({x:c+p.x,y:d+p.y},a,h);e.extent==="parent"&&(g=lN(g,h,t));const b=_N(e,s,o),y=t.internals.z??0;return{x:g.x,y:g.y,z:y>=b?y+1:b}}function gg(e,t,r,a=[0,0]){var c;const s=[],o=new Map;for(const d of e){const h=t.get(d.parentId);if(!h)continue;const f=((c=o.get(d.parentId))==null?void 0:c.expandedRect)??ko(h),p=oN(f,d.rect);o.set(d.parentId,{expandedRect:p,parent:h})}return o.size>0&&o.forEach(({expandedRect:d,parent:h},f)=>{var E;const p=h.internals.positionAbsolute,g=Qr(h),b=h.origin??a,y=d.x<p.x?Math.round(Math.abs(p.x-d.x)):0,_=d.y<p.y?Math.round(Math.abs(p.y-d.y)):0,N=Math.max(g.width,Math.round(d.width)),S=Math.max(g.height,Math.round(d.height)),w=(N-g.width)*b[0],C=(S-g.height)*b[1];(y>0||_>0||w||C)&&(s.push({id:f,type:"position",position:{x:h.position.x-y+w,y:h.position.y-_+C}}),(E=r.get(f))==null||E.forEach(A=>{e.some(B=>B.id===A.id)||s.push({id:A.id,type:"position",position:{x:A.position.x+y,y:A.position.y+_}})})),(g.width<d.width||g.height<d.height||y||_)&&s.push({id:f,type:"dimensions",setAttributes:!0,dimensions:{width:N+(y?b[0]*y-w:0),height:S+(_?b[1]*_-C:0)}})}),s}function SI(e,t,r,a,s,o,c){const d=a==null?void 0:a.querySelector(".xyflow__viewport");let h=!1;if(!d)return{changes:[],updatedInternals:h};const f=[],p=window.getComputedStyle(d),{m22:g}=new window.DOMMatrixReadOnly(p.transform),b=[];for(const y of e.values()){const _=t.get(y.id);if(!_)continue;if(_.hidden){t.set(_.id,{..._,internals:{..._.internals,handleBounds:void 0}}),h=!0;continue}const N=dg(y.nodeElement),S=_.measured.width!==N.width||_.measured.height!==N.height;if(!!(N.width&&N.height&&(S||!_.internals.handleBounds||y.force))){const C=y.nodeElement.getBoundingClientRect(),E=Za(_.extent)?_.extent:o;let{positionAbsolute:A}=_.internals;if(_.parentId&&_.extent==="parent"){const R=t.get(_.parentId);R&&(A=lN(A,N,R))}else E&&(A=Ka(A,E,N));const B={..._,measured:N,internals:{..._.internals,positionAbsolute:A,handleBounds:{source:h1("source",y.nodeElement,C,g,_.id),target:h1("target",y.nodeElement,C,g,_.id)}}};t.set(_.id,B),_.parentId&&pg(B,t,r,{nodeOrigin:s,zIndexMode:c}),h=!0,S&&(f.push({id:_.id,type:"dimensions",dimensions:N}),_.expandParent&&_.parentId&&b.push({id:_.id,parentId:_.parentId,rect:ko(B,s)}))}}if(b.length>0){const y=gg(b,t,r,s);f.push(...y)}return{changes:f,updatedInternals:h}}async function kI({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 v1(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 h=a.get(c)||new Map;if(a.set(c,h.set(r,t)),o){c=`${s}-${e}-${o}`;const f=a.get(c)||new Map;a.set(c,f.set(r,t))}}function wN(e,t,r){e.clear(),t.clear();for(const a of r){const{source:s,target:o,sourceHandle:c=null,targetHandle:d=null}=a,h={edgeId:a.id,source:s,target:o,sourceHandle:c,targetHandle:d},f=`${s}-${c}--${o}-${d}`,p=`${o}-${d}--${s}-${c}`;v1("source",h,p,e,s,c),v1("target",h,f,e,o,d),t.set(a.id,a)}}function EN(e,t){if(!e.parentId)return!1;const r=t.get(e.parentId);return r?r.selected?!0:EN(r,t):!1}function _1(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 CI(e,t,r,a){const s=new Map;for(const[o,c]of e)if((c.selected||c.id===a)&&(!c.parentId||!EN(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 km({nodeId:e,dragItems:t,nodeLookup:r,dragging:a=!0}){var c,d,h;const s=[];for(const[f,p]of t){const g=(c=r.get(f))==null?void 0:c.internals.userNode;g&&s.push({...g,position:p.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:((h=t.get(e))==null?void 0:h.position)||o.position,dragging:a}:s[0],s]}function TI({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=Ho(o,t);return{x:c.x-o.x,y:c.y-o.y}}function AI({onNodeMouseDown:e,getStoreItems:t,onDragStart:r,onDrag:a,onDragStop:s}){let o={x:null,y:null},c=0,d=new Map,h=!1,f={x:0,y:0},p=null,g=!1,b=null,y=!1,_=!1,N=null;function S({noDragClassName:C,handleSelector:E,domNode:A,isSelectable:B,nodeId:R,nodeClickDistance:H=0}){b=ir(A);function z({x:Z,y:P}){const{nodeLookup:k,nodeExtent:$,snapGrid:O,snapToGrid:U,nodeOrigin:K,onNodeDrag:X,onSelectionDrag:M,onError:L,updateNodePositions:F}=t();o={x:Z,y:P};let D=!1;const V=d.size>1,q=V&&$?hp(Uo(d)):null,Q=V&&U?TI({dragItems:d,snapGrid:O,x:Z,y:P}):null;for(const[J,W]of d){if(!k.has(J))continue;let te={x:Z-W.distance.x,y:P-W.distance.y};U&&(te=Q?{x:Math.round(te.x+Q.x),y:Math.round(te.y+Q.y)}:Ho(te,O));let oe=null;if(V&&$&&!W.extent&&q){const{positionAbsolute:we}=W.internals,Ne=we.x-q.x+$[0][0],De=we.x+W.measured.width-q.x2+$[1][0],$e=we.y-q.y+$[0][1],st=we.y+W.measured.height-q.y2+$[1][1];oe=[[Ne,$e],[De,st]]}const{position:fe,positionAbsolute:xe}=sN({nodeId:J,nextPosition:te,nodeLookup:k,nodeExtent:oe||$,nodeOrigin:K,onError:L});D=D||W.position.x!==fe.x||W.position.y!==fe.y,W.position=fe,W.internals.positionAbsolute=xe}if(_=_||D,!!D&&(F(d,!0),N&&(a||X||!R&&M))){const[J,W]=km({nodeId:R,dragItems:d,nodeLookup:k});a==null||a(N,d,J,W),X==null||X(N,J,W),R||M==null||M(N,W)}}async function Y(){if(!p)return;const{transform:Z,panBy:P,autoPanSpeed:k,autoPanOnNodeDrag:$}=t();if(!$){h=!1,cancelAnimationFrame(c);return}const[O,U]=cg(f,p,k);(O!==0||U!==0)&&(o.x=(o.x??0)-O/Z[2],o.y=(o.y??0)-U/Z[2],await P({x:O,y:U})&&z(o)),c=requestAnimationFrame(Y)}function j(Z){var V;const{nodeLookup:P,multiSelectionActive:k,nodesDraggable:$,transform:O,snapGrid:U,snapToGrid:K,selectNodesOnDrag:X,onNodeDragStart:M,onSelectionDragStart:L,unselectNodesAndEdges:F}=t();g=!0,(!X||!B)&&!k&&R&&((V=P.get(R))!=null&&V.selected||F()),B&&X&&R&&(e==null||e(R));const D=ho(Z.sourceEvent,{transform:O,snapGrid:U,snapToGrid:K,containerBounds:p});if(o=D,d=CI(P,$,D,R),d.size>0&&(r||M||!R&&L)){const[q,Q]=km({nodeId:R,dragItems:d,nodeLookup:P});r==null||r(Z.sourceEvent,d,q,Q),M==null||M(Z.sourceEvent,q,Q),R||L==null||L(Z.sourceEvent,Q)}}const I=UE().clickDistance(H).on("start",Z=>{const{domNode:P,nodeDragThreshold:k,transform:$,snapGrid:O,snapToGrid:U}=t();p=(P==null?void 0:P.getBoundingClientRect())||null,y=!1,_=!1,N=Z.sourceEvent,k===0&&j(Z),o=ho(Z.sourceEvent,{transform:$,snapGrid:O,snapToGrid:U,containerBounds:p}),f=jr(Z.sourceEvent,p)}).on("drag",Z=>{const{autoPanOnNodeDrag:P,transform:k,snapGrid:$,snapToGrid:O,nodeDragThreshold:U,nodeLookup:K}=t(),X=ho(Z.sourceEvent,{transform:k,snapGrid:$,snapToGrid:O,containerBounds:p});if(N=Z.sourceEvent,(Z.sourceEvent.type==="touchmove"&&Z.sourceEvent.touches.length>1||R&&!K.has(R))&&(y=!0),!y){if(!h&&P&&g&&(h=!0,Y()),!g){const M=jr(Z.sourceEvent,p),L=M.x-f.x,F=M.y-f.y;Math.sqrt(L*L+F*F)>U&&j(Z)}(o.x!==X.xSnapped||o.y!==X.ySnapped)&&d&&g&&(f=jr(Z.sourceEvent,p),z(X))}}).on("end",Z=>{if(!g||y){y&&d.size>0&&t().updateNodePositions(d,!1);return}if(h=!1,g=!1,cancelAnimationFrame(c),d.size>0){const{nodeLookup:P,updateNodePositions:k,onNodeDragStop:$,onSelectionDragStop:O}=t();if(_&&(k(d,!1),_=!1),s||$||!R&&O){const[U,K]=km({nodeId:R,dragItems:d,nodeLookup:P,dragging:!1});s==null||s(Z.sourceEvent,d,U,K),$==null||$(Z.sourceEvent,U,K),R||O==null||O(Z.sourceEvent,K)}}}).filter(Z=>{const P=Z.target;return!Z.button&&(!C||!_1(P,`.${C}`,A))&&(!E||_1(P,E,A))});b.call(I)}function w(){b==null||b.on(".drag",null)}return{update:S,destroy:w}}function MI(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())Uu(s,ko(o))>0&&a.push(o);return a}const OI=250;function RI(e,t,r,a){var d,h;let s=[],o=1/0;const c=MI(e,r,t+OI);for(const f of c){const p=[...((d=f.internals.handleBounds)==null?void 0:d.source)??[],...((h=f.internals.handleBounds)==null?void 0:h.target)??[]];for(const g of p){if(a.nodeId===g.nodeId&&a.type===g.type&&a.id===g.id)continue;const{x:b,y}=Qa(f,g,g.position,!0),_=Math.sqrt(Math.pow(b-e.x,2)+Math.pow(y-e.y,2));_>t||(_<o?(s=[{...g,x:b,y}],o=_):_===o&&s.push({...g,x:b,y}))}}if(!s.length)return null;if(s.length>1){const f=a.type==="source"?"target":"source";return s.find(p=>p.type===f)??s[0]}return s[0]}function NN(e,t,r,a,s,o=!1){var f,p,g;const c=a.get(e);if(!c)return null;const d=s==="strict"?(f=c.internals.handleBounds)==null?void 0:f[t]:[...((p=c.internals.handleBounds)==null?void 0:p.source)??[],...((g=c.internals.handleBounds)==null?void 0:g.target)??[]],h=(r?d==null?void 0:d.find(b=>b.id===r):d==null?void 0:d[0])??null;return h&&o?{...h,...Qa(c,h,h.position,!0)}:h}function SN(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function jI(e,t){let r=null;return t?r=!0:e&&!t&&(r=!1),r}const kN=()=>!0;function DI(e,{connectionMode:t,connectionRadius:r,handleId:a,nodeId:s,edgeUpdaterType:o,isTarget:c,domNode:d,nodeLookup:h,lib:f,autoPanOnConnect:p,flowId:g,panBy:b,cancelConnection:y,onConnectStart:_,onConnect:N,onConnectEnd:S,isValidConnection:w=kN,onReconnectEnd:C,updateConnection:E,getTransform:A,getFromHandle:B,autoPanSpeed:R,dragThreshold:H=1,handleDomNode:z}){const Y=hN(e.target);let j=0,I;const{x:Z,y:P}=jr(e),k=SN(o,z),$=d==null?void 0:d.getBoundingClientRect();let O=!1;if(!$||!k)return;const U=NN(s,k,a,h,t);if(!U)return;let K=jr(e,$),X=!1,M=null,L=!1,F=null;function D(){if(!p||!$)return;const[fe,xe]=cg(K,$,R);b({x:fe,y:xe}),j=requestAnimationFrame(D)}const V={...U,nodeId:s,type:k,position:U.position},q=h.get(s);let J={inProgress:!0,isValid:null,from:Qa(q,V,ze.Left,!0),fromHandle:V,fromPosition:V.position,fromNode:q,to:K,toHandle:null,toPosition:c1[V.position],toNode:null,pointer:K};function W(){O=!0,E(J),_==null||_(e,{nodeId:s,handleId:a,handleType:k})}H===0&&W();function te(fe){if(!O){const{x:st,y:Rt}=jr(fe),Xt=st-Z,Ft=Rt-P;if(!(Xt*Xt+Ft*Ft>H*H))return;W()}if(!B()||!V){oe(fe);return}const xe=A();K=jr(fe,$),I=RI($o(K,xe,!1,[1,1]),r,h,V),X||(D(),X=!0);const we=CN(fe,{handle:I,connectionMode:t,fromNodeId:s,fromHandleId:a,fromType:c?"target":"source",isValidConnection:w,doc:Y,lib:f,flowId:g,nodeLookup:h});F=we.handleDomNode,M=we.connection,L=jI(!!I,we.isValid);const Ne=h.get(s),De=Ne?Qa(Ne,V,ze.Left,!0):J.from,$e={...J,from:De,isValid:L,to:we.toHandle&&L?Js({x:we.toHandle.x,y:we.toHandle.y},xe):K,toHandle:we.toHandle,toPosition:L&&we.toHandle?we.toHandle.position:c1[V.position],toNode:we.toHandle?h.get(we.toHandle.nodeId):null,pointer:K};E($e),J=$e}function oe(fe){if(!("touches"in fe&&fe.touches.length>0)){if(O){(I||F)&&M&&L&&(N==null||N(M));const{inProgress:xe,...we}=J,Ne={...we,toPosition:J.toHandle?J.toPosition:null};S==null||S(fe,Ne),o&&(C==null||C(fe,Ne))}y(),cancelAnimationFrame(j),X=!1,L=!1,M=null,F=null,Y.removeEventListener("mousemove",te),Y.removeEventListener("mouseup",oe),Y.removeEventListener("touchmove",te),Y.removeEventListener("touchend",oe)}}Y.addEventListener("mousemove",te),Y.addEventListener("mouseup",oe),Y.addEventListener("touchmove",te),Y.addEventListener("touchend",oe)}function CN(e,{handle:t,connectionMode:r,fromNodeId:a,fromHandleId:s,fromType:o,doc:c,lib:d,flowId:h,isValidConnection:f=kN,nodeLookup:p}){const g=o==="target",b=t?c.querySelector(`.${d}-flow__handle[data-id="${h}-${t==null?void 0:t.nodeId}-${t==null?void 0:t.id}-${t==null?void 0:t.type}"]`):null,{x:y,y:_}=jr(e),N=c.elementFromPoint(y,_),S=N!=null&&N.classList.contains(`${d}-flow__handle`)?N:b,w={handleDomNode:S,isValid:!1,connection:null,toHandle:null};if(S){const C=SN(void 0,S),E=S.getAttribute("data-nodeid"),A=S.getAttribute("data-handleid"),B=S.classList.contains("connectable"),R=S.classList.contains("connectableend");if(!E||!C)return w;const H={source:g?E:a,sourceHandle:g?A:s,target:g?a:E,targetHandle:g?s:A};w.connection=H;const Y=B&&R&&(r===Qs.Strict?g&&C==="source"||!g&&C==="target":E!==a||A!==s);w.isValid=Y&&f(H),w.toHandle=NN(E,C,A,p,r,!0)}return w}const xp={onPointerDown:DI,isValid:CN};function LI({domNode:e,panZoom:t,getTransform:r,getViewScale:a}){const s=ir(e);function o({translateExtent:d,width:h,height:f,zoomStep:p=1,pannable:g=!0,zoomable:b=!0,inversePan:y=!1}){const _=E=>{if(E.sourceEvent.type!=="wheel"||!t)return;const A=r(),B=E.sourceEvent.ctrlKey&&Co()?10:1,R=-E.sourceEvent.deltaY*(E.sourceEvent.deltaMode===1?.05:E.sourceEvent.deltaMode?1:.002)*p,H=A[2]*Math.pow(2,R*B);t.scaleTo(H)};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 A=r();if(E.sourceEvent.type!=="mousemove"&&E.sourceEvent.type!=="touchmove"||!t)return;const B=[E.sourceEvent.clientX??E.sourceEvent.touches[0].clientX,E.sourceEvent.clientY??E.sourceEvent.touches[0].clientY],R=[B[0]-N[0],B[1]-N[1]];N=B;const H=a()*Math.max(A[2],Math.log(A[2]))*(y?-1:1),z={x:A[0]-R[0]*H,y:A[1]-R[1]*H},Y=[[0,0],[h,f]];t.setViewportConstrained({x:z.x,y:z.y,zoom:A[2]},Y,d)},C=eN().on("start",S).on("zoom",g?w:null).on("zoom.wheel",b?_:null);s.call(C,{})}function c(){s.on("zoom",null)}return{update:o,destroy:c,pointer:Ar}}const sd=e=>({x:e.x,y:e.y,zoom:e.k}),Cm=({x:e,y:t,zoom:r})=>rd.translate(e,t).scale(r),$s=(e,t)=>e.target.closest(`.${t}`),TN=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),zI=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,Tm=(e,t=0,r=zI,a=()=>{})=>{const s=typeof t=="number"&&t>0;return s||a(),s?e.transition().duration(t).ease(r).on("end",a):e},AN=e=>{const t=e.ctrlKey&&Co()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function II({zoomPanValues:e,noWheelClassName:t,d3Selection:r,d3Zoom:a,panOnScrollMode:s,panOnScrollSpeed:o,zoomOnPinch:c,onPanZoomStart:d,onPanZoom:h,onPanZoomEnd:f}){return p=>{if($s(p,t))return p.ctrlKey&&p.preventDefault(),!1;p.preventDefault(),p.stopImmediatePropagation();const g=r.property("__zoom").k||1;if(p.ctrlKey&&c){const S=Ar(p),w=AN(p),C=g*Math.pow(2,w);a.scaleTo(r,C,S,p);return}const b=p.deltaMode===1?20:1;let y=s===Fa.Vertical?0:p.deltaX*b,_=s===Fa.Horizontal?0:p.deltaY*b;!Co()&&p.shiftKey&&s!==Fa.Vertical&&(y=p.deltaY*b,_=0),a.translateBy(r,-(y/g)*o,-(_/g)*o,{internal:!0});const N=sd(r.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?h==null||h(p,N):(e.isPanScrolling=!0,d==null||d(p,N)),e.panScrollTimeout=setTimeout(()=>{f==null||f(p,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=$s(a,e);if(a.ctrlKey&&o&&d&&a.preventDefault(),c||d)return null;a.preventDefault(),r.call(this,a,s)}}function UI({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:r}){return a=>{var o,c,d;if((o=a.sourceEvent)!=null&&o.internal)return;const s=sd(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 HI({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:r,onTransformChange:a,onPanZoom:s}){return o=>{var c,d;e.usedRightMouseButton=!!(r&&TN(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,sd(o.transform)))}}function $I({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&&TN(t,e.mouseButton??0)&&!e.usedRightMouseButton&&c.sourceEvent&&o(c.sourceEvent),e.usedRightMouseButton=!1,a(!1),s)){const h=sd(c.transform);e.prevViewport=h,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{s==null||s(c.sourceEvent,h)},r?150:0)}}}function qI({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:r,panOnDrag:a,panOnScroll:s,zoomOnDoubleClick:o,userSelectionActive:c,noWheelClassName:d,noPanClassName:h,lib:f,connectionInProgress:p}){return g=>{var S;const b=e||t,y=r&&g.ctrlKey,_=g.type==="wheel";if(g.button===1&&g.type==="mousedown"&&($s(g,`${f}-flow__node`)||$s(g,`${f}-flow__edge`)))return!0;if(!a&&!b&&!s&&!o&&!r||c||p&&!_||$s(g,d)&&_||$s(g,h)&&(!_||s&&_&&!e)||!r&&g.ctrlKey&&_)return!1;if(!r&&g.type==="touchstart"&&((S=g.touches)==null?void 0:S.length)>1)return g.preventDefault(),!1;if(!b&&!s&&!y&&_||!a&&(g.type==="mousedown"||g.type==="touchstart")||Array.isArray(a)&&!a.includes(g.button)&&g.type==="mousedown")return!1;const N=Array.isArray(a)&&a.includes(g.button)||!g.button||g.button<=1;return(!g.ctrlKey||_)&&N}}function PI({domNode:e,minZoom:t,maxZoom:r,translateExtent:a,viewport:s,onPanZoom:o,onPanZoomStart:c,onPanZoomEnd:d,onDraggingChange:h}){const f={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},p=e.getBoundingClientRect();let g=[[0,0],[p.width,p.height]];const b=typeof ResizeObserver<"u"?new ResizeObserver(P=>{const k=P[0];k&&(g=[[0,0],[k.contentRect.width,k.contentRect.height]])}):null;b==null||b.observe(e);const y=eN().extent(()=>g).scaleExtent([t,r]).translateExtent(a),_=ir(e).call(y);A({x:s.x,y:s.y,zoom:Ws(s.zoom,t,r)},[[0,0],[p.width,p.height]],a);const N=_.on("wheel.zoom"),S=_.on("dblclick.zoom");y.wheelDelta(AN);async function w(P,k){return _?new Promise($=>{y==null||y.interpolate((k==null?void 0:k.interpolate)==="linear"?fo:vu).transform(Tm(_,k==null?void 0:k.duration,k==null?void 0:k.ease,()=>$(!0)),P)}):!1}function C({noWheelClassName:P,noPanClassName:k,onPaneContextMenu:$,userSelectionActive:O,panOnScroll:U,panOnDrag:K,panOnScrollMode:X,panOnScrollSpeed:M,preventScrolling:L,zoomOnPinch:F,zoomOnScroll:D,zoomOnDoubleClick:V,zoomActivationKeyPressed:q,lib:Q,onTransformChange:J,connectionInProgress:W,paneClickDistance:te,selectionOnDrag:oe}){O&&!f.isZoomingOrPanning&&E();const fe=U&&!q&&!O;y.clickDistance(oe?1/0:!Rr(te)||te<0?0:te);const xe=fe?II({zoomPanValues:f,noWheelClassName:P,d3Selection:_,d3Zoom:y,panOnScrollMode:X,panOnScrollSpeed:M,zoomOnPinch:F,onPanZoomStart:c,onPanZoom:o,onPanZoomEnd:d}):BI({noWheelClassName:P,preventScrolling:L,d3ZoomHandler:N});_.on("wheel.zoom",xe,{passive:!1});const we=UI({zoomPanValues:f,onDraggingChange:h,onPanZoomStart:c});y.on("start",we);const Ne=HI({zoomPanValues:f,panOnDrag:K,onPaneContextMenu:!!$,onPanZoom:o,onTransformChange:J});y.on("zoom",Ne);const De=$I({zoomPanValues:f,panOnDrag:K,panOnScroll:U,onPaneContextMenu:$,onPanZoomEnd:d,onDraggingChange:h});y.on("end",De);const $e=qI({zoomActivationKeyPressed:q,panOnDrag:K,zoomOnScroll:D,panOnScroll:U,zoomOnDoubleClick:V,zoomOnPinch:F,userSelectionActive:O,noPanClassName:k,noWheelClassName:P,lib:Q,connectionInProgress:W});y.filter($e),V?_.on("dblclick.zoom",S):_.on("dblclick.zoom",null)}function E(){y.on("zoom",null)}async function A(P,k,$){const O=Cm(P),U=y==null?void 0:y.constrain()(O,k,$);return U&&await w(U),U}async function B(P,k){const $=Cm(P);return await w($,k),$}function R(P){if(_){const k=Cm(P),$=_.property("__zoom");($.k!==P.zoom||$.x!==P.x||$.y!==P.y)&&(y==null||y.transform(_,k,null,{sync:!0}))}}function H(){const P=_?JE(_.node()):{x:0,y:0,k:1};return{x:P.x,y:P.y,zoom:P.k}}async function z(P,k){return _?new Promise($=>{y==null||y.interpolate((k==null?void 0:k.interpolate)==="linear"?fo:vu).scaleTo(Tm(_,k==null?void 0:k.duration,k==null?void 0:k.ease,()=>$(!0)),P)}):!1}async function Y(P,k){return _?new Promise($=>{y==null||y.interpolate((k==null?void 0:k.interpolate)==="linear"?fo:vu).scaleBy(Tm(_,k==null?void 0:k.duration,k==null?void 0:k.ease,()=>$(!0)),P)}):!1}function j(P){y==null||y.scaleExtent(P)}function I(P){y==null||y.translateExtent(P)}function Z(P){const k=!Rr(P)||P<0?0:P;y==null||y.clickDistance(k)}return{update:C,destroy:E,setViewport:B,setViewportConstrained:A,getViewport:H,scaleTo:z,scaleBy:Y,setScaleExtent:j,setTranslateExtent:I,syncViewport:R,setClickDistance:Z}}var el;(function(e){e.Line="line",e.Handle="handle"})(el||(el={}));function FI({width:e,prevWidth:t,height:r,prevHeight:a,affectsX:s,affectsY:o}){const c=e-t,d=r-a,h=[c>0?1:c<0?-1:0,d>0?1:d<0?-1:0];return c&&s&&(h[0]=h[0]*-1),d&&o&&(h[1]=h[1]*-1),h}function w1(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 sa(e,t){return Math.max(0,t-e)}function la(e,t){return Math.max(0,e-t)}function fu(e,t,r){return Math.max(0,t-e,e-r)}function E1(e,t){return e?!t:t}function GI(e,t,r,a,s,o,c,d){let{affectsX:h,affectsY:f}=t;const{isHorizontal:p,isVertical:g}=t,b=p&&g,{xSnapped:y,ySnapped:_}=r,{minWidth:N,maxWidth:S,minHeight:w,maxHeight:C}=a,{x:E,y:A,width:B,height:R,aspectRatio:H}=e;let z=Math.floor(p?y-e.pointerX:0),Y=Math.floor(g?_-e.pointerY:0);const j=B+(h?-z:z),I=R+(f?-Y:Y),Z=-o[0]*B,P=-o[1]*R;let k=fu(j,N,S),$=fu(I,w,C);if(c){let K=0,X=0;h&&z<0?K=sa(E+z+Z,c[0][0]):!h&&z>0&&(K=la(E+j+Z,c[1][0])),f&&Y<0?X=sa(A+Y+P,c[0][1]):!f&&Y>0&&(X=la(A+I+P,c[1][1])),k=Math.max(k,K),$=Math.max($,X)}if(d){let K=0,X=0;h&&z>0?K=la(E+z,d[0][0]):!h&&z<0&&(K=sa(E+j,d[1][0])),f&&Y>0?X=la(A+Y,d[0][1]):!f&&Y<0&&(X=sa(A+I,d[1][1])),k=Math.max(k,K),$=Math.max($,X)}if(s){if(p){const K=fu(j/H,w,C)*H;if(k=Math.max(k,K),c){let X=0;!h&&!f||h&&!f&&b?X=la(A+P+j/H,c[1][1])*H:X=sa(A+P+(h?z:-z)/H,c[0][1])*H,k=Math.max(k,X)}if(d){let X=0;!h&&!f||h&&!f&&b?X=sa(A+j/H,d[1][1])*H:X=la(A+(h?z:-z)/H,d[0][1])*H,k=Math.max(k,X)}}if(g){const K=fu(I*H,N,S)/H;if($=Math.max($,K),c){let X=0;!h&&!f||f&&!h&&b?X=la(E+I*H+Z,c[1][0])/H:X=sa(E+(f?Y:-Y)*H+Z,c[0][0])/H,$=Math.max($,X)}if(d){let X=0;!h&&!f||f&&!h&&b?X=sa(E+I*H,d[1][0])/H:X=la(E+(f?Y:-Y)*H,d[0][0])/H,$=Math.max($,X)}}}Y=Y+(Y<0?$:-$),z=z+(z<0?k:-k),s&&(b?j>I*H?Y=(E1(h,f)?-z:z)/H:z=(E1(h,f)?-Y:Y)*H:p?(Y=z/H,f=h):(z=Y*H,h=f));const O=h?E+z:E,U=f?A+Y:A;return{width:B+(h?-z:z),height:R+(f?-Y:Y),x:o[0]*z*(h?-1:1)+O,y:o[1]*Y*(f?-1:1)+U}}const MN={width:0,height:0,x:0,y:0},VI={...MN,pointerX:0,pointerY:0,aspectRatio:1};function YI(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,h=r[1]*c;return[[a-d,s-h],[a+o-d,s+c-h]]}function XI({domNode:e,nodeId:t,getStoreItems:r,onChange:a,onEnd:s}){const o=ir(e);let c={controlDirection:w1("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function d({controlPosition:f,boundaries:p,keepAspectRatio:g,resizeDirection:b,onResizeStart:y,onResize:_,onResizeEnd:N,shouldResize:S}){let w={...MN},C={...VI};c={boundaries:p,resizeDirection:b,keepAspectRatio:g,controlDirection:w1(f)};let E,A=null,B=[],R,H,z,Y=!1;const j=UE().on("start",I=>{const{nodeLookup:Z,transform:P,snapGrid:k,snapToGrid:$,nodeOrigin:O,paneDomNode:U}=r();if(E=Z.get(t),!E)return;A=(U==null?void 0:U.getBoundingClientRect())??null;const{xSnapped:K,ySnapped:X}=ho(I.sourceEvent,{transform:P,snapGrid:k,snapToGrid:$,containerBounds:A});w={width:E.measured.width??0,height:E.measured.height??0,x:E.position.x??0,y:E.position.y??0},C={...w,pointerX:K,pointerY:X,aspectRatio:w.width/w.height},R=void 0,H=Za(E.extent)?E.extent:void 0,E.parentId&&(E.extent==="parent"||E.expandParent)&&(R=Z.get(E.parentId)),R&&E.extent==="parent"&&(H=[[0,0],[R.measured.width,R.measured.height]]),B=[],z=void 0;for(const[M,L]of Z)if(L.parentId===t&&(B.push({id:M,position:{...L.position},extent:L.extent}),L.extent==="parent"||L.expandParent)){const F=YI(L,E,L.origin??O);z?z=[[Math.min(F[0][0],z[0][0]),Math.min(F[0][1],z[0][1])],[Math.max(F[1][0],z[1][0]),Math.max(F[1][1],z[1][1])]]:z=F}y==null||y(I,{...w})}).on("drag",I=>{const{transform:Z,snapGrid:P,snapToGrid:k,nodeOrigin:$}=r(),O=ho(I.sourceEvent,{transform:Z,snapGrid:P,snapToGrid:k,containerBounds:A}),U=[];if(!E)return;const{x:K,y:X,width:M,height:L}=w,F={},D=E.origin??$,{width:V,height:q,x:Q,y:J}=GI(C,c.controlDirection,O,c.boundaries,c.keepAspectRatio,D,H,z),W=V!==M,te=q!==L,oe=Q!==K&&W,fe=J!==X&&te;if(!oe&&!fe&&!W&&!te)return;if((oe||fe||D[0]===1||D[1]===1)&&(F.x=oe?Q:w.x,F.y=fe?J:w.y,w.x=F.x,w.y=F.y,B.length>0)){const De=Q-K,$e=J-X;for(const st of B)st.position={x:st.position.x-De+D[0]*(V-M),y:st.position.y-$e+D[1]*(q-L)},U.push(st)}if((W||te)&&(F.width=W&&(!c.resizeDirection||c.resizeDirection==="horizontal")?V:w.width,F.height=te&&(!c.resizeDirection||c.resizeDirection==="vertical")?q:w.height,w.width=F.width,w.height=F.height),R&&E.expandParent){const De=D[0]*(F.width??0);F.x&&F.x<De&&(w.x=De,C.x=C.x-(F.x-De));const $e=D[1]*(F.height??0);F.y&&F.y<$e&&(w.y=$e,C.y=C.y-(F.y-$e))}const xe=FI({width:w.width,prevWidth:M,height:w.height,prevHeight:L,affectsX:c.controlDirection.affectsX,affectsY:c.controlDirection.affectsY}),we={...w,direction:xe};(S==null?void 0:S(I,we))!==!1&&(Y=!0,_==null||_(I,we),a(F,U))}).on("end",I=>{Y&&(N==null||N(I,{...w}),s==null||s({...w}),Y=!1)});o.call(j)}function h(){o.on(".drag",null)}return{update:d,destroy:h}}var Am={exports:{}},Mm={},Om={exports:{}},Rm={};/**
+`:f!=="text"?iD(S,f):S.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");let C="",E="";return N.removed?C=String(g++):(N.added||(C=String(g++)),E=String(b++)),{highlighted:w,added:!!N.added,removed:!!N.removed,leftNo:C,rightNo:E}})),_=()=>{Tp(s),d(!0),setTimeout(()=>d(!1),2e3),o==null||o()};return m.jsxs("div",{className:"rounded-md border border-[#2a2a2a] overflow-hidden",children:[m.jsxs("div",{className:"flex items-stretch",children:[m.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,":",h,m.jsx("span",{className:"absolute top-0 inset-x-0 h-0.5 bg-white/60 rounded-full"})]}),m.jsx("div",{className:"flex-1 border-b border-[#2a2a2a]"}),m.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?m.jsx(Vs,{className:"w-3.5 h-3.5 text-emerald-400"}):m.jsx(go,{className:"w-3.5 h-3.5"})})]}),m.jsx("div",{className:"overflow-auto max-h-[400px]",children:m.jsx("table",{className:"w-full border-collapse font-mono text-[12px] leading-[22px] [font-variant-ligatures:none]",children:m.jsx("tbody",{children:y.map((N,S)=>m.jsxs("tr",{className:N.added?"bg-blue-500/[0.12]":N.removed?"bg-red-500/[0.12]":"",children:[m.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}),m.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}),m.jsx("td",{className:"pl-4 pr-4 whitespace-pre",dangerouslySetInnerHTML:{__html:N.highlighted}})]},S))})})})]})}const sD=/^```([^\n`]*)\r?\n([\s\S]*?)\r?\n?```$/;function NE(e){if(!e)return{code:""};const t=sD.exec(e.trim());if(!t)return{code:e};const r=t[1].trim();return{language:(r?r.split(/\s+/)[0]:void 0)||void 0,code:t[2]}}function lD({description:e,scriptCode:t,onCopy:r}){const[a,s]=ee.useState(!1);if(!e&&!t)return null;const{language:o,code:c}=NE(t),d=wE(c,o),h=()=>{c&&(Tp(c),s(!0),setTimeout(()=>s(!1),2e3),r==null||r())};return m.jsxs("section",{children:[m.jsx("h2",{className:"text-xl font-semibold text-white mb-3",children:"Proof of Concept"}),m.jsxs("div",{className:"space-y-4",children:[e&&m.jsx("div",{className:"prose-markdown",children:m.jsx(Yp,{remarkPlugins:[Qp],rehypePlugins:[Wp],components:Jp,children:e})}),c&&m.jsxs("div",{className:"group/poc relative rounded-md border border-[#2a2a2a] overflow-hidden",children:[m.jsxs("div",{className:"flex items-stretch",children:[m.jsxs("span",{className:"relative flex items-center text-[13px] text-[#999] font-mono px-4 py-2 border-r border-[#2a2a2a]",children:["PoC Script",m.jsx("span",{className:"absolute top-0 inset-x-0 h-0.5 bg-white/60 rounded-full"})]}),m.jsx("div",{className:"flex-1 border-b border-[#2a2a2a]"}),m.jsx("button",{onClick:h,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?m.jsx(Vs,{className:"w-3.5 h-3.5 text-emerald-400"}):m.jsx(go,{className:"w-3.5 h-3.5"})})]}),m.jsx("div",{className:"overflow-auto max-h-[400px] px-4 py-3",children:m.jsx("pre",{className:"font-mono text-[12px] leading-[22px] whitespace-pre [font-variant-ligatures:none]",children:m.jsx("code",{dangerouslySetInnerHTML:{__html:d}})})})]})]})]})}function SE(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 yo(e,t){return e?SE(e).display.replace(/\/$/,""):t||"Untitled pentest"}function oD({className:e}){return m.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:e,"aria-hidden":"true",children:m.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 cD({provider:e,className:t}){const r=t??"w-4 h-4";return e==="gitlab"?m.jsx(FC,{className:`${r} text-orange-400`}):e==="bitbucket"?m.jsx(oD,{className:`${r} text-blue-400`}):m.jsx(qC,{className:`${r} text-white`})}const uD={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"}},dD={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]"},hD=[{label:"Exploitability",keys:["attack_vector","attack_complexity","privileges_required","user_interaction"]},{label:"Impact",keys:["scope","confidentiality","integrity","availability"]}];function mD(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 pD({vulnerability:e,statusSlot:t,slackThreadUrl:r}){var R;const{severity:a,cvss:s,cve:o,cwe:c,fix_effort:d,created_at:h,target:f,endpoint:p,method:g,code_locations:b,cvss_breakdown:y,location_meta:_}=e,[N,S]=ee.useState(!0),w=b==null?void 0:b.filter(H=>H.fix_before&&H.fix_after),C=w&&w.length>0,E=f?SE(f):null,A=!!(f||p||g||C),B=y&&Object.values(y).some(H=>H!=null);return m.jsxs("aside",{className:"lg:sticky lg:top-6 lg:max-h-[calc(100vh-3rem)] lg:overflow-y-auto",children:[m.jsx("div",{className:"pb-4",children:m.jsxs("div",{className:"space-y-3",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-xs text-[#aaa]",children:"Severity"}),m.jsxs("div",{className:"flex items-center gap-1.5",children:[m.jsx("div",{className:`w-2 h-2 rounded-full ${Cp(a)}`,"aria-hidden":"true"}),m.jsx("span",{className:"text-sm font-medium capitalize text-white",children:a})]})]}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-xs text-[#aaa]",children:"CVSS Score"}),m.jsx("span",{className:"text-sm font-semibold tabular-nums text-white",children:s!==null?s:"N/A"})]}),o&&m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-xs text-[#aaa]",children:"CVE"}),m.jsx("span",{className:"text-sm text-white font-mono",children:o})]}),c&&c.length>0&&m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-xs text-[#aaa]",children:"CWE"}),m.jsx("span",{className:"text-xs text-white font-mono truncate max-w-[80%] text-right",title:c.join(" · "),children:c.join(" · ")})]}),d&&m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-xs text-[#aaa]",children:"Fix Effort"}),m.jsx("span",{className:`inline-flex items-center px-2 py-0.5 text-[11px] font-medium rounded-full border ${((R=qT[d])==null?void 0:R.color)??"text-[#666]"}`,children:d.charAt(0).toUpperCase()+d.slice(1)})]}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-xs text-[#aaa]",children:"Discovered"}),m.jsxs("div",{className:"flex items-center gap-1.5",children:[m.jsx(Y_,{className:"w-3 h-3 text-[#444]","aria-hidden":"true"}),m.jsx("span",{className:"text-sm text-white",children:Ym(h)})]})]}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-xs text-[#aaa]",children:"Status"}),t]})]})}),A&&m.jsxs("div",{className:"border-t border-[#191919] pt-4 pb-4",children:[m.jsx("p",{className:"text-xs font-medium text-[#aaa] mb-2.5",children:"Asset"}),m.jsxs("div",{className:"space-y-2.5",children:[f&&E&&m.jsxs("div",{className:"flex items-center gap-1.5",children:[E.provider?m.jsx("span",{className:"flex-shrink-0 [&_svg]:w-3.5 [&_svg]:h-3.5","aria-hidden":"true",children:m.jsx(cD,{provider:E.provider})}):m.jsx(K_,{className:"w-3.5 h-3.5 text-[#555] flex-shrink-0","aria-hidden":"true"}),E.href?m.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}):m.jsx("span",{className:"text-sm text-white break-words min-w-0",children:E.display})]}),p&&m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-xs text-[#aaa]",children:"Endpoint"}),m.jsx("span",{className:"text-xs text-white font-mono truncate max-w-[75%] text-right",children:p})]}),g&&m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-xs text-[#aaa]",children:"Method"}),m.jsx("span",{className:"text-xs text-white font-mono",children:g})]}),C&&m.jsxs("div",{children:[m.jsx("span",{className:"text-xs text-[#aaa] mb-1.5 block",children:"Locations"}),m.jsx("div",{className:"space-y-0.5",children:w.map((H,z)=>{const Y=`${H.file}:${H.start_line}`,j=_?mD(_.repo_url,_.provider,_.branch,H.file,H.start_line):null;return j?m.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:Y},`loc-${z}`):m.jsx("span",{className:"text-[13px] text-[#888] font-mono break-all block",children:Y},`loc-${z}`)})})]})]})]}),B&&m.jsxs("div",{className:"border-t border-[#191919] pt-4",children:[m.jsxs("button",{onClick:()=>S(!N),className:"flex items-center justify-between w-full mb-2.5 group","aria-expanded":N,children:[m.jsx("span",{className:"text-xs font-medium text-[#aaa]",children:"Risk Assessment"}),m.jsx(po,{className:`w-3.5 h-3.5 text-[#555] group-hover:text-white transition-transform ${N?"":"-rotate-90"}`,"aria-hidden":"true"})]}),m.jsx("div",{className:`space-y-3 ${N?"":"hidden"}`,children:hD.map(H=>{const z=H.keys.filter(Y=>y[Y]!=null);return z.length===0?null:m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[m.jsx("p",{className:"text-[10px] uppercase tracking-wider text-[#444] font-medium",children:H.label}),m.jsx("p",{className:"text-[10px] uppercase tracking-wider text-[#444] font-medium mr-2",children:"Risk"})]}),m.jsx("div",{className:"space-y-1",children:z.map(Y=>{var P,k;const j=y[Y],I=j?((P=dD[Y])==null?void 0:P[j])??"low":"low",Z=j?((k=uD[Y])==null?void 0:k[j])??j:"N/A";return m.jsxs("div",{className:"flex items-center justify-between py-0.5",children:[m.jsx("span",{className:"text-[12px] text-[#aaa]",children:Z}),m.jsx("span",{className:`text-[10px] font-medium px-1.5 py-0.5 rounded border ${fD[I]}`,children:I})]},Y)})})]},H.label)})})]})]})}function Fv(e){return e?Math.floor((Date.now()-new Date(e).getTime())/1e3)<604800?` ${Ym(e)}`:` on ${Ym(e)}`:""}const gD={open:null,in_progress:{icon:Y_,label:"Marked as In Progress",iconColor:"text-blue-400"},snoozed:{icon:eC,label:"Snoozed",iconColor:"text-purple-400"},fixed:{icon:Su,label:"Marked as Fixed",iconColor:"text-emerald-400"},ignored:{icon:H_,label:"Marked as Ignored",iconColor:"text-[#888]"}},xD=[{label:"Auto-fix & open a PR",slug:"autofix",icon:Gm,requiresCode:!0},{label:"Sync to Jira / Linear",slug:"integrations",icon:BC}];function bD({vulnerability:e}){const t=$T[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"),h=[{id:"fix",label:"Fix",show:!!a},{id:"reproduction",label:"Reproduction",show:s}].filter(f=>f.show);return m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[m.jsxs("div",{className:"min-w-0 flex-1",children:[m.jsxs("div",{className:"mb-2",children:[e.display_number&&m.jsx("span",{className:"text-xs font-mono text-[#555] block mb-1",children:HA(e.display_number)}),m.jsx("h1",{className:"text-2xl font-semibold text-white",children:e.title})]}),m.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[m.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}),m.jsxs("div",{className:`inline-flex items-center gap-1.5 px-3 py-1 text-sm font-semibold rounded-full border ${tw[e.severity]}`,title:eu(e)?`Adjusted from ${e.original_severity}`:void 0,children:[m.jsx("div",{className:`w-2 h-2 rounded-full ${Cp(e.severity)}`}),m.jsxs("span",{className:"capitalize",children:[e.severity,!eu(e)&&e.cvss?` ${e.cvss}`:""]}),eu(e)&&m.jsx(Ys,{className:"w-3 h-3 opacity-70","aria-hidden":"true"})]}),e.cve&&m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"text-[#333]",children:"·"}),m.jsx("span",{className:"text-sm text-[#666] font-mono",children:e.cve})]})]})]}),m.jsx("div",{className:"flex flex-shrink-0 flex-wrap items-center gap-2",children:xD.filter(f=>!f.requiresCode||r).map(f=>{const p=f.icon;return m.jsxs("a",{href:_i(Xu,f.slug),target:"_blank",rel:"noopener noreferrer",onClick:()=>yr(f.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:[m.jsx(p,{className:"h-3.5 w-3.5","aria-hidden":"true"}),f.label]},f.slug)})})]}),e.status!=="open"&&(()=>{const f=gD[e.status];if(!f)return null;const p=f.icon;return m.jsxs("div",{className:"rounded-lg px-4 py-3.5 flex gap-3",style:{border:"1px solid rgba(255,255,255,0.08)"},children:[m.jsx(p,{className:`w-5 h-5 flex-shrink-0 mt-0.5 ${f.iconColor}`,"aria-hidden":"true"}),m.jsxs("div",{className:"min-w-0",children:[m.jsxs("p",{className:"text-sm font-semibold text-white",children:[f.label,Fv(e.status_changed_at)]}),e.status_note&&m.jsxs("p",{className:"text-sm text-[#666] italic mt-1",children:["“",e.status_note,"”"]})]})]})})(),eu(e)&&m.jsxs("div",{className:"rounded-lg px-4 py-3.5 flex gap-3",style:{border:"1px solid rgba(255,255,255,0.08)"},children:[m.jsx(Ys,{className:"w-5 h-5 flex-shrink-0 mt-0.5 text-orange-400","aria-hidden":"true"}),m.jsxs("div",{className:"min-w-0",children:[m.jsxs("p",{className:"text-sm font-semibold text-white",children:["Severity changed manually from"," ",m.jsx("span",{className:"capitalize",children:e.original_severity}),e.cvss!=null?` (${e.cvss})`:""," to"," ",m.jsx("span",{className:"capitalize",children:e.severity}),Fv(e.severity_changed_at)]}),e.severity_override_reason&&m.jsxs("p",{className:"text-sm text-[#666] italic mt-1",children:["“",e.severity_override_reason,"”"]})]})]}),m.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_340px] gap-8",children:[m.jsxs("div",{className:"min-w-0",children:[m.jsxs("div",{className:"space-y-8",children:[m.jsx(ca,{title:"TL;DR",content:e.description}),e.impact&&m.jsx(ca,{title:"Impact",content:e.impact}),e.technical_analysis&&m.jsx(ca,{title:"Technical Details",content:e.technical_analysis})]}),h.length>0&&m.jsxs("div",{className:"mt-10",children:[m.jsx("div",{className:"border-b border-[#2a2a2a]",children:m.jsx("nav",{className:"flex gap-6","aria-label":"Tabs",children:h.map(f=>m.jsxs("button",{onClick:()=>c(f.id),className:`relative min-w-[80px] text-center pb-3 text-[16px] font-semibold transition-colors ${o===f.id?"text-white":"text-[#666] hover:text-white"}`,"aria-current":o===f.id?"page":void 0,children:[f.label,o===f.id&&m.jsx("span",{className:"absolute bottom-0 inset-x-0 h-0.5 bg-white rounded-full"})]},f.id))})}),a&&m.jsxs("div",{className:`pt-6 space-y-6 ${o==="fix"?"animate-tab-in":"hidden"}`,children:[e.remediation_steps&&m.jsx(ca,{title:"How do I fix it?",content:e.remediation_steps}),r&&e.code_locations.filter(f=>f.fix_before&&f.fix_after).map((f,p)=>m.jsx(aD,{file:f.file,startLine:f.start_line,endLine:f.end_line,before:f.fix_before,after:f.fix_after},`fix-${p}`))]}),s&&m.jsxs("div",{className:`pt-6 space-y-8 ${o==="reproduction"?"animate-tab-in":"hidden"}`,children:[e.assumptions&&m.jsx(ca,{title:"Assumptions",content:e.assumptions}),e.evidence&&m.jsx(ca,{title:"Evidence",content:e.evidence}),m.jsx(lD,{description:e.poc_description,scriptCode:e.poc_script_code})]})]})]}),m.jsx("div",{className:"lg:border-l lg:border-[#2a2a2a] lg:pl-6",children:m.jsx(pD,{vulnerability:e,statusSlot:m.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:[m.jsx("div",{className:`w-1.5 h-1.5 rounded-full ${t.dotColor}`}),t.label]})})})]})]})}const Gv=[{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 yD({findings:e,className:t,unit:r="issues",trailing:a}){return e.total<=0?null:m.jsxs("div",{className:br("space-y-3",t),children:[m.jsxs("div",{className:"flex flex-wrap items-center gap-x-8 gap-y-3",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-2xl font-semibold text-white tabular-nums",children:e.total}),m.jsx("span",{className:"text-sm text-[#666]",children:r})]}),m.jsx("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-2",children:Gv.map(({key:s,label:o,dotClass:c,textClass:d})=>{const h=e[s];return h<=0?null:m.jsxs("div",{className:"flex items-center gap-1.5",children:[m.jsx("div",{className:br("w-2 h-2 rounded-full",c),"aria-hidden":"true"}),m.jsx("span",{className:br("text-sm tabular-nums",d),children:h}),m.jsx("span",{className:"text-xs text-[#555]",children:o})]},s)})}),a?m.jsx("div",{className:"flex items-center gap-2",children:a}):null]}),m.jsx("div",{className:"h-1.5 rounded-full bg-[#222] overflow-hidden flex",children:Gv.map(({key:s,dotClass:o})=>{const c=e[s];return c<=0?null:m.jsx("div",{className:br("h-full",o),style:{width:`${c/e.total*100}%`}},s)})})]})}function on(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=on(e[r]))!==""&&(t+=(t&&" ")+a);else for(let r in e)e[r]&&(t+=(t&&" ")+r);return t}var vD={value:()=>{}};function ed(){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 vu(r)}function vu(e){this._=e}function _D(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}})}vu.prototype=ed.prototype={constructor:vu,on:function(e,t){var r=this._,a=_D(e+"",r),s,o=-1,c=a.length;if(arguments.length<2){for(;++o<c;)if((s=(e=a[o]).type)&&(s=wD(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]=Vv(r[s],e.name,t);else if(t==null)for(s in r)r[s]=Vv(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 vu(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 wD(e,t){for(var r=0,a=e.length,s;r<a;++r)if((s=e[r]).name===t)return s.value}function Vv(e,t,r){for(var a=0,s=e.length;a<s;++a)if(e[a].name===t){e[a]=vD,e=e.slice(0,a).concat(e.slice(a+1));break}return r!=null&&e.push({name:t,value:r}),e}var ap="http://www.w3.org/1999/xhtml";const Yv={svg:"http://www.w3.org/2000/svg",xhtml:ap,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function td(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Yv.hasOwnProperty(t)?{space:Yv[t],local:e}:e}function ED(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===ap&&t.documentElement.namespaceURI===ap?t.createElement(e):t.createElementNS(r,e)}}function ND(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function kE(e){var t=td(e);return(t.local?ND:ED)(t)}function SD(){}function eg(e){return e==null?SD:function(){return this.querySelector(e)}}function kD(e){typeof e!="function"&&(e=eg(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),h,f,p=0;p<c;++p)(h=o[p])&&(f=e.call(h,h.__data__,p,o))&&("__data__"in h&&(f.__data__=h.__data__),d[p]=f);return new sr(a,this._parents)}function CD(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function TD(){return[]}function CE(e){return e==null?TD:function(){return this.querySelectorAll(e)}}function AD(e){return function(){return CD(e.apply(this,arguments))}}function MD(e){typeof e=="function"?e=AD(e):e=CE(e);for(var t=this._groups,r=t.length,a=[],s=[],o=0;o<r;++o)for(var c=t[o],d=c.length,h,f=0;f<d;++f)(h=c[f])&&(a.push(e.call(h,h.__data__,f,c)),s.push(h));return new sr(a,s)}function TE(e){return function(){return this.matches(e)}}function AE(e){return function(t){return t.matches(e)}}var OD=Array.prototype.find;function RD(e){return function(){return OD.call(this.children,e)}}function jD(){return this.firstElementChild}function DD(e){return this.select(e==null?jD:RD(typeof e=="function"?e:AE(e)))}var LD=Array.prototype.filter;function zD(){return Array.from(this.children)}function ID(e){return function(){return LD.call(this.children,e)}}function BD(e){return this.selectAll(e==null?zD:ID(typeof e=="function"?e:AE(e)))}function UD(e){typeof e!="function"&&(e=TE(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]=[],h,f=0;f<c;++f)(h=o[f])&&e.call(h,h.__data__,f,o)&&d.push(h);return new sr(a,this._parents)}function ME(e){return new Array(e.length)}function HD(){return new sr(this._enter||this._groups.map(ME),this._parents)}function Ou(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Ou.prototype={constructor:Ou,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 $D(e){return function(){return e}}function qD(e,t,r,a,s,o){for(var c=0,d,h=t.length,f=o.length;c<f;++c)(d=t[c])?(d.__data__=o[c],a[c]=d):r[c]=new Ou(e,o[c]);for(;c<h;++c)(d=t[c])&&(s[c]=d)}function PD(e,t,r,a,s,o,c){var d,h,f=new Map,p=t.length,g=o.length,b=new Array(p),y;for(d=0;d<p;++d)(h=t[d])&&(b[d]=y=c.call(h,h.__data__,d,t)+"",f.has(y)?s[d]=h:f.set(y,h));for(d=0;d<g;++d)y=c.call(e,o[d],d,o)+"",(h=f.get(y))?(a[d]=h,h.__data__=o[d],f.delete(y)):r[d]=new Ou(e,o[d]);for(d=0;d<p;++d)(h=t[d])&&f.get(b[d])===h&&(s[d]=h)}function FD(e){return e.__data__}function GD(e,t){if(!arguments.length)return Array.from(this,FD);var r=t?PD:qD,a=this._parents,s=this._groups;typeof e!="function"&&(e=$D(e));for(var o=s.length,c=new Array(o),d=new Array(o),h=new Array(o),f=0;f<o;++f){var p=a[f],g=s[f],b=g.length,y=VD(e.call(p,p&&p.__data__,f,a)),_=y.length,N=d[f]=new Array(_),S=c[f]=new Array(_),w=h[f]=new Array(b);r(p,g,N,S,w,y,t);for(var C=0,E=0,A,B;C<_;++C)if(A=N[C]){for(C>=E&&(E=C+1);!(B=S[E])&&++E<_;);A._next=B||null}}return c=new sr(c,a),c._enter=d,c._exit=h,c}function VD(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function YD(){return new sr(this._exit||this._groups.map(ME),this._parents)}function XD(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 KD(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),h=0;h<c;++h)for(var f=r[h],p=a[h],g=f.length,b=d[h]=new Array(g),y,_=0;_<g;++_)(y=f[_]||p[_])&&(b[_]=y);for(;h<s;++h)d[h]=r[h];return new sr(d,this._parents)}function ZD(){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 QD(e){e||(e=WD);function t(g,b){return g&&b?e(g.__data__,b.__data__):!g-!b}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,h=s[o]=new Array(d),f,p=0;p<d;++p)(f=c[p])&&(h[p]=f);h.sort(t)}return new sr(s,this._parents).order()}function WD(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function JD(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function eL(){return Array.from(this)}function tL(){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 nL(){let e=0;for(const t of this)++e;return e}function rL(){return!this.node()}function iL(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 aL(e){return function(){this.removeAttribute(e)}}function sL(e){return function(){this.removeAttributeNS(e.space,e.local)}}function lL(e,t){return function(){this.setAttribute(e,t)}}function oL(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function cL(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function uL(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 dL(e,t){var r=td(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?sL:aL:typeof t=="function"?r.local?uL:cL:r.local?oL:lL)(r,t))}function OE(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function fL(e){return function(){this.style.removeProperty(e)}}function hL(e,t,r){return function(){this.style.setProperty(e,t,r)}}function mL(e,t,r){return function(){var a=t.apply(this,arguments);a==null?this.style.removeProperty(e):this.style.setProperty(e,a,r)}}function pL(e,t,r){return arguments.length>1?this.each((t==null?fL:typeof t=="function"?mL:hL)(e,t,r??"")):Ks(this.node(),e)}function Ks(e,t){return e.style.getPropertyValue(t)||OE(e).getComputedStyle(e,null).getPropertyValue(t)}function gL(e){return function(){delete this[e]}}function xL(e,t){return function(){this[e]=t}}function bL(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function yL(e,t){return arguments.length>1?this.each((t==null?gL:typeof t=="function"?bL:xL)(e,t)):this.node()[e]}function RE(e){return e.trim().split(/^|\s+/)}function tg(e){return e.classList||new jE(e)}function jE(e){this._node=e,this._names=RE(e.getAttribute("class")||"")}jE.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 DE(e,t){for(var r=tg(e),a=-1,s=t.length;++a<s;)r.add(t[a])}function LE(e,t){for(var r=tg(e),a=-1,s=t.length;++a<s;)r.remove(t[a])}function vL(e){return function(){DE(this,e)}}function _L(e){return function(){LE(this,e)}}function wL(e,t){return function(){(t.apply(this,arguments)?DE:LE)(this,e)}}function EL(e,t){var r=RE(e+"");if(arguments.length<2){for(var a=tg(this.node()),s=-1,o=r.length;++s<o;)if(!a.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?wL:t?vL:_L)(r,t))}function NL(){this.textContent=""}function SL(e){return function(){this.textContent=e}}function kL(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function CL(e){return arguments.length?this.each(e==null?NL:(typeof e=="function"?kL:SL)(e)):this.node().textContent}function TL(){this.innerHTML=""}function AL(e){return function(){this.innerHTML=e}}function ML(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function OL(e){return arguments.length?this.each(e==null?TL:(typeof e=="function"?ML:AL)(e)):this.node().innerHTML}function RL(){this.nextSibling&&this.parentNode.appendChild(this)}function jL(){return this.each(RL)}function DL(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function LL(){return this.each(DL)}function zL(e){var t=typeof e=="function"?e:kE(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function IL(){return null}function BL(e,t){var r=typeof e=="function"?e:kE(e),a=t==null?IL:typeof t=="function"?t:eg(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),a.apply(this,arguments)||null)})}function UL(){var e=this.parentNode;e&&e.removeChild(this)}function HL(){return this.each(UL)}function $L(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function qL(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function PL(e){return this.select(e?qL:$L)}function FL(e){return arguments.length?this.property("__data__",e):this.node().__data__}function GL(e){return function(t){e.call(this,t,this.__data__)}}function VL(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 YL(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 XL(e,t,r){return function(){var a=this.__on,s,o=GL(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 KL(e,t,r){var a=VL(e+""),s,o=a.length,c;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,f=d.length,p;h<f;++h)for(s=0,p=d[h];s<o;++s)if((c=a[s]).type===p.type&&c.name===p.name)return p.value}return}for(d=t?XL:YL,s=0;s<o;++s)this.each(d(a[s],t,r));return this}function zE(e,t,r){var a=OE(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 ZL(e,t){return function(){return zE(this,e,t)}}function QL(e,t){return function(){return zE(this,e,t.apply(this,arguments))}}function WL(e,t){return this.each((typeof t=="function"?QL:ZL)(e,t))}function*JL(){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 IE=[null];function sr(e,t){this._groups=e,this._parents=t}function zo(){return new sr([[document.documentElement]],IE)}function e6(){return this}sr.prototype=zo.prototype={constructor:sr,select:kD,selectAll:MD,selectChild:DD,selectChildren:BD,filter:UD,data:GD,enter:HD,exit:YD,join:XD,merge:KD,selection:e6,order:ZD,sort:QD,call:JD,nodes:eL,node:tL,size:nL,empty:rL,each:iL,attr:dL,style:pL,property:yL,classed:EL,text:CL,html:OL,raise:jL,lower:LL,append:zL,insert:BL,remove:HL,clone:PL,datum:FL,on:KL,dispatch:WL,[Symbol.iterator]:JL};function ir(e){return typeof e=="string"?new sr([[document.querySelector(e)]],[document.documentElement]):new sr([[e]],IE)}function t6(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Ar(e,t){if(e=t6(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 n6={passive:!1},vo={capture:!0,passive:!1};function wm(e){e.stopImmediatePropagation()}function Fs(e){e.preventDefault(),e.stopImmediatePropagation()}function BE(e){var t=e.document.documentElement,r=ir(e).on("dragstart.drag",Fs,vo);"onselectstart"in t?r.on("selectstart.drag",Fs,vo):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function UE(e,t){var r=e.document.documentElement,a=ir(e).on("dragstart.drag",null);t&&(a.on("click.drag",Fs,vo),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 lu=e=>()=>e;function sp(e,{sourceEvent:t,subject:r,target:a,identifier:s,active:o,x:c,y:d,dx:h,dy:f,dispatch:p}){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:h,enumerable:!0,configurable:!0},dy:{value:f,enumerable:!0,configurable:!0},_:{value:p}})}sp.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function r6(e){return!e.ctrlKey&&!e.button}function i6(){return this.parentNode}function a6(e,t){return t??{x:e.x,y:e.y}}function s6(){return navigator.maxTouchPoints||"ontouchstart"in this}function HE(){var e=r6,t=i6,r=a6,a=s6,s={},o=ed("start","drag","end"),c=0,d,h,f,p,g=0;function b(A){A.on("mousedown.drag",y).filter(a).on("touchstart.drag",S).on("touchmove.drag",w,n6).on("touchend.drag touchcancel.drag",C).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(A,B){if(!(p||!e.call(this,A,B))){var R=E(this,t.call(this,A,B),A,B,"mouse");R&&(ir(A.view).on("mousemove.drag",_,vo).on("mouseup.drag",N,vo),BE(A.view),wm(A),f=!1,d=A.clientX,h=A.clientY,R("start",A))}}function _(A){if(Fs(A),!f){var B=A.clientX-d,R=A.clientY-h;f=B*B+R*R>g}s.mouse("drag",A)}function N(A){ir(A.view).on("mousemove.drag mouseup.drag",null),UE(A.view,f),Fs(A),s.mouse("end",A)}function S(A,B){if(e.call(this,A,B)){var R=A.changedTouches,H=t.call(this,A,B),z=R.length,Y,j;for(Y=0;Y<z;++Y)(j=E(this,H,A,B,R[Y].identifier,R[Y]))&&(wm(A),j("start",A,R[Y]))}}function w(A){var B=A.changedTouches,R=B.length,H,z;for(H=0;H<R;++H)(z=s[B[H].identifier])&&(Fs(A),z("drag",A,B[H]))}function C(A){var B=A.changedTouches,R=B.length,H,z;for(p&&clearTimeout(p),p=setTimeout(function(){p=null},500),H=0;H<R;++H)(z=s[B[H].identifier])&&(wm(A),z("end",A,B[H]))}function E(A,B,R,H,z,Y){var j=o.copy(),I=Ar(Y||R,B),Z,P,k;if((k=r.call(A,new sp("beforestart",{sourceEvent:R,target:b,identifier:z,active:c,x:I[0],y:I[1],dx:0,dy:0,dispatch:j}),H))!=null)return Z=k.x-I[0]||0,P=k.y-I[1]||0,function $(O,U,K){var X=I,M;switch(O){case"start":s[z]=$,M=c++;break;case"end":delete s[z],--c;case"drag":I=Ar(K||U,B),M=c;break}j.call(O,A,new sp(O,{sourceEvent:U,subject:k,target:b,identifier:z,active:M,x:I[0]+Z,y:I[1]+P,dx:I[0]-X[0],dy:I[1]-X[1],dispatch:j}),H)}}return b.filter=function(A){return arguments.length?(e=typeof A=="function"?A:lu(!!A),b):e},b.container=function(A){return arguments.length?(t=typeof A=="function"?A:lu(A),b):t},b.subject=function(A){return arguments.length?(r=typeof A=="function"?A:lu(A),b):r},b.touchable=function(A){return arguments.length?(a=typeof A=="function"?A:lu(!!A),b):a},b.on=function(){var A=o.on.apply(o,arguments);return A===o?b:A},b.clickDistance=function(A){return arguments.length?(g=(A=+A)*A,b):Math.sqrt(g)},b}function ng(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 Io(){}var _o=.7,Ru=1/_o,Gs="\\s*([+-]?\\d+)\\s*",wo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Yr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l6=/^#([0-9a-f]{3,8})$/,o6=new RegExp(`^rgb\\(${Gs},${Gs},${Gs}\\)$`),c6=new RegExp(`^rgb\\(${Yr},${Yr},${Yr}\\)$`),u6=new RegExp(`^rgba\\(${Gs},${Gs},${Gs},${wo}\\)$`),d6=new RegExp(`^rgba\\(${Yr},${Yr},${Yr},${wo}\\)$`),f6=new RegExp(`^hsl\\(${wo},${Yr},${Yr}\\)$`),h6=new RegExp(`^hsla\\(${wo},${Yr},${Yr},${wo}\\)$`),Xv={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};ng(Io,Ya,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Kv,formatHex:Kv,formatHex8:m6,formatHsl:p6,formatRgb:Zv,toString:Zv});function Kv(){return this.rgb().formatHex()}function m6(){return this.rgb().formatHex8()}function p6(){return qE(this).formatHsl()}function Zv(){return this.rgb().formatRgb()}function Ya(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=l6.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Qv(t):r===3?new Gn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?ou(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?ou(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=o6.exec(e))?new Gn(t[1],t[2],t[3],1):(t=c6.exec(e))?new Gn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=u6.exec(e))?ou(t[1],t[2],t[3],t[4]):(t=d6.exec(e))?ou(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=f6.exec(e))?e1(t[1],t[2]/100,t[3]/100,1):(t=h6.exec(e))?e1(t[1],t[2]/100,t[3]/100,t[4]):Xv.hasOwnProperty(e)?Qv(Xv[e]):e==="transparent"?new Gn(NaN,NaN,NaN,0):null}function Qv(e){return new Gn(e>>16&255,e>>8&255,e&255,1)}function ou(e,t,r,a){return a<=0&&(e=t=r=NaN),new Gn(e,t,r,a)}function g6(e){return e instanceof Io||(e=Ya(e)),e?(e=e.rgb(),new Gn(e.r,e.g,e.b,e.opacity)):new Gn}function lp(e,t,r,a){return arguments.length===1?g6(e):new Gn(e,t,r,a??1)}function Gn(e,t,r,a){this.r=+e,this.g=+t,this.b=+r,this.opacity=+a}ng(Gn,lp,$E(Io,{brighter(e){return e=e==null?Ru:Math.pow(Ru,e),new Gn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?_o:Math.pow(_o,e),new Gn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Gn(Pa(this.r),Pa(this.g),Pa(this.b),ju(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:Wv,formatHex:Wv,formatHex8:x6,formatRgb:Jv,toString:Jv}));function Wv(){return`#${$a(this.r)}${$a(this.g)}${$a(this.b)}`}function x6(){return`#${$a(this.r)}${$a(this.g)}${$a(this.b)}${$a((isNaN(this.opacity)?1:this.opacity)*255)}`}function Jv(){const e=ju(this.opacity);return`${e===1?"rgb(":"rgba("}${Pa(this.r)}, ${Pa(this.g)}, ${Pa(this.b)}${e===1?")":`, ${e})`}`}function ju(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Pa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function $a(e){return e=Pa(e),(e<16?"0":"")+e.toString(16)}function e1(e,t,r,a){return a<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Or(e,t,r,a)}function qE(e){if(e instanceof Or)return new Or(e.h,e.s,e.l,e.opacity);if(e instanceof Io||(e=Ya(e)),!e)return new Or;if(e instanceof Or)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,h=(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/=h<.5?o+s:2-o-s,c*=60):d=h>0&&h<1?0:c,new Or(c,d,h,e.opacity)}function b6(e,t,r,a){return arguments.length===1?qE(e):new Or(e,t,r,a??1)}function Or(e,t,r,a){this.h=+e,this.s=+t,this.l=+r,this.opacity=+a}ng(Or,b6,$E(Io,{brighter(e){return e=e==null?Ru:Math.pow(Ru,e),new Or(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?_o:Math.pow(_o,e),new Or(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 Gn(Em(e>=240?e-240:e+120,s,a),Em(e,s,a),Em(e<120?e+240:e-120,s,a),this.opacity)},clamp(){return new Or(t1(this.h),cu(this.s),cu(this.l),ju(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=ju(this.opacity);return`${e===1?"hsl(":"hsla("}${t1(this.h)}, ${cu(this.s)*100}%, ${cu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function t1(e){return e=(e||0)%360,e<0?e+360:e}function cu(e){return Math.max(0,Math.min(1,e||0))}function Em(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 rg=e=>()=>e;function y6(e,t){return function(r){return e+r*t}}function v6(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 _6(e){return(e=+e)==1?PE:function(t,r){return r-t?v6(t,r,e):rg(isNaN(t)?r:t)}}function PE(e,t){var r=t-e;return r?y6(e,r):rg(isNaN(e)?t:e)}const Du=(function e(t){var r=_6(t);function a(s,o){var c=r((s=lp(s)).r,(o=lp(o)).r),d=r(s.g,o.g),h=r(s.b,o.b),f=PE(s.opacity,o.opacity);return function(p){return s.r=c(p),s.g=d(p),s.b=h(p),s.opacity=f(p),s+""}}return a.gamma=e,a})(1);function w6(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 E6(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]=fo(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 S6(e,t){var r=new Date;return e=+e,t=+t,function(a){return r.setTime(e*(1-a)+t*a),r}}function Vr(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function k6(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]=fo(e[s],t[s]):a[s]=t[s];return function(o){for(s in r)a[s]=r[s](o);return a}}var op=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Nm=new RegExp(op.source,"g");function C6(e){return function(){return e}}function T6(e){return function(t){return e(t)+""}}function FE(e,t){var r=op.lastIndex=Nm.lastIndex=0,a,s,o,c=-1,d=[],h=[];for(e=e+"",t=t+"";(a=op.exec(e))&&(s=Nm.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,h.push({i:c,x:Vr(a,s)})),r=Nm.lastIndex;return r<t.length&&(o=t.slice(r),d[c]?d[c]+=o:d[++c]=o),d.length<2?h[0]?T6(h[0].x):C6(t):(t=h.length,function(f){for(var p=0,g;p<t;++p)d[(g=h[p]).i]=g.x(f);return d.join("")})}function fo(e,t){var r=typeof t,a;return t==null||r==="boolean"?rg(t):(r==="number"?Vr:r==="string"?(a=Ya(t))?(t=a,Du):FE:t instanceof Ya?Du:t instanceof Date?S6:E6(t)?w6:Array.isArray(t)?N6:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?k6:Vr)(e,t)}var n1=180/Math.PI,cp={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function GE(e,t,r,a,s,o){var c,d,h;return(c=Math.sqrt(e*e+t*t))&&(e/=c,t/=c),(h=e*r+t*a)&&(r-=e*h,a-=t*h),(d=Math.sqrt(r*r+a*a))&&(r/=d,a/=d,h/=d),e*a<t*r&&(e=-e,t=-t,h=-h,c=-c),{translateX:s,translateY:o,rotate:Math.atan2(t,e)*n1,skewX:Math.atan(h)*n1,scaleX:c,scaleY:d}}var uu;function A6(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?cp:GE(t.a,t.b,t.c,t.d,t.e,t.f)}function M6(e){return e==null||(uu||(uu=document.createElementNS("http://www.w3.org/2000/svg","g")),uu.setAttribute("transform",e),!(e=uu.transform.baseVal.consolidate()))?cp:(e=e.matrix,GE(e.a,e.b,e.c,e.d,e.e,e.f))}function VE(e,t,r,a){function s(f){return f.length?f.pop()+" ":""}function o(f,p,g,b,y,_){if(f!==g||p!==b){var N=y.push("translate(",null,t,null,r);_.push({i:N-4,x:Vr(f,g)},{i:N-2,x:Vr(p,b)})}else(g||b)&&y.push("translate("+g+t+b+r)}function c(f,p,g,b){f!==p?(f-p>180?p+=360:p-f>180&&(f+=360),b.push({i:g.push(s(g)+"rotate(",null,a)-2,x:Vr(f,p)})):p&&g.push(s(g)+"rotate("+p+a)}function d(f,p,g,b){f!==p?b.push({i:g.push(s(g)+"skewX(",null,a)-2,x:Vr(f,p)}):p&&g.push(s(g)+"skewX("+p+a)}function h(f,p,g,b,y,_){if(f!==g||p!==b){var N=y.push(s(y)+"scale(",null,",",null,")");_.push({i:N-4,x:Vr(f,g)},{i:N-2,x:Vr(p,b)})}else(g!==1||b!==1)&&y.push(s(y)+"scale("+g+","+b+")")}return function(f,p){var g=[],b=[];return f=e(f),p=e(p),o(f.translateX,f.translateY,p.translateX,p.translateY,g,b),c(f.rotate,p.rotate,g,b),d(f.skewX,p.skewX,g,b),h(f.scaleX,f.scaleY,p.scaleX,p.scaleY,g,b),f=p=null,function(y){for(var _=-1,N=b.length,S;++_<N;)g[(S=b[_]).i]=S.x(y);return g.join("")}}}var O6=VE(A6,"px, ","px)","deg)"),R6=VE(M6,", ",")",")"),j6=1e-12;function r1(e){return((e=Math.exp(e))+1/e)/2}function D6(e){return((e=Math.exp(e))-1/e)/2}function L6(e){return((e=Math.exp(2*e))-1)/(e+1)}const _u=(function e(t,r,a){function s(o,c){var d=o[0],h=o[1],f=o[2],p=c[0],g=c[1],b=c[2],y=p-d,_=g-h,N=y*y+_*_,S,w;if(N<j6)w=Math.log(b/f)/t,S=function(H){return[d+H*y,h+H*_,f*Math.exp(t*H*w)]};else{var C=Math.sqrt(N),E=(b*b-f*f+a*N)/(2*f*r*C),A=(b*b-f*f-a*N)/(2*b*r*C),B=Math.log(Math.sqrt(E*E+1)-E),R=Math.log(Math.sqrt(A*A+1)-A);w=(R-B)/t,S=function(H){var z=H*w,Y=r1(B),j=f/(r*C)*(Y*L6(t*z+B)-D6(B));return[d+j*y,h+j*_,f*Y/r1(t*z+B)]}}return S.duration=w*1e3*t/Math.SQRT2,S}return s.rho=function(o){var c=Math.max(.001,+o),d=c*c,h=d*d;return e(c,d,h)},s})(Math.SQRT2,2,4);var Zs=0,so=0,to=0,YE=1e3,Lu,lo,zu=0,Xa=0,nd=0,Eo=typeof performance=="object"&&performance.now?performance:Date,XE=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ig(){return Xa||(XE(z6),Xa=Eo.now()+nd)}function z6(){Xa=0}function Iu(){this._call=this._time=this._next=null}Iu.prototype=KE.prototype={constructor:Iu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?ig():+r)+(t==null?0:+t),!this._next&&lo!==this&&(lo?lo._next=this:Lu=this,lo=this),this._call=e,this._time=r,up()},stop:function(){this._call&&(this._call=null,this._time=1/0,up())}};function KE(e,t,r){var a=new Iu;return a.restart(e,t,r),a}function I6(){ig(),++Zs;for(var e=Lu,t;e;)(t=Xa-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Zs}function i1(){Xa=(zu=Eo.now())+nd,Zs=so=0;try{I6()}finally{Zs=0,U6(),Xa=0}}function B6(){var e=Eo.now(),t=e-zu;t>YE&&(nd-=t,zu=e)}function U6(){for(var e,t=Lu,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:Lu=r);lo=e,up(a)}function up(e){if(!Zs){so&&(so=clearTimeout(so));var t=e-Xa;t>24?(e<1/0&&(so=setTimeout(i1,e-Eo.now()-nd)),to&&(to=clearInterval(to))):(to||(zu=Eo.now(),to=setInterval(B6,YE)),Zs=1,XE(i1))}}function a1(e,t,r){var a=new Iu;return t=t==null?0:+t,a.restart(s=>{a.stop(),e(s+t)},t,r),a}var H6=ed("start","end","cancel","interrupt"),$6=[],ZE=0,s1=1,dp=2,wu=3,l1=4,fp=5,Eu=6;function rd(e,t,r,a,s,o){var c=e.__transition;if(!c)e.__transition={};else if(r in c)return;q6(e,r,{name:t,index:a,group:s,on:H6,tween:$6,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:ZE})}function ag(e,t){var r=Ir(e,t);if(r.state>ZE)throw new Error("too late; already scheduled");return r}function Zr(e,t){var r=Ir(e,t);if(r.state>wu)throw new Error("too late; already running");return r}function Ir(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function q6(e,t,r){var a=e.__transition,s;a[t]=r,r.timer=KE(o,0,r.time);function o(f){r.state=s1,r.timer.restart(c,r.delay,r.time),r.delay<=f&&c(f-r.delay)}function c(f){var p,g,b,y;if(r.state!==s1)return h();for(p in a)if(y=a[p],y.name===r.name){if(y.state===wu)return a1(c);y.state===l1?(y.state=Eu,y.timer.stop(),y.on.call("interrupt",e,e.__data__,y.index,y.group),delete a[p]):+p<t&&(y.state=Eu,y.timer.stop(),y.on.call("cancel",e,e.__data__,y.index,y.group),delete a[p])}if(a1(function(){r.state===wu&&(r.state=l1,r.timer.restart(d,r.delay,r.time),d(f))}),r.state=dp,r.on.call("start",e,e.__data__,r.index,r.group),r.state===dp){for(r.state=wu,s=new Array(b=r.tween.length),p=0,g=-1;p<b;++p)(y=r.tween[p].value.call(e,e.__data__,r.index,r.group))&&(s[++g]=y);s.length=g+1}}function d(f){for(var p=f<r.duration?r.ease.call(null,f/r.duration):(r.timer.restart(h),r.state=fp,1),g=-1,b=s.length;++g<b;)s[g].call(e,p);r.state===fp&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Eu,r.timer.stop(),delete a[t];for(var f in a)return;delete e.__transition}}function Nu(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>dp&&a.state<fp,a.state=Eu,a.timer.stop(),a.on.call(s?"interrupt":"cancel",e,e.__data__,a.index,a.group),delete r[c]}o&&delete e.__transition}}function P6(e){return this.each(function(){Nu(this,e)})}function F6(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 G6(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},h=0,f=s.length;h<f;++h)if(s[h].name===t){s[h]=d;break}h===f&&s.push(d)}o.tween=s}}function V6(e,t){var r=this._id;if(e+="",arguments.length<2){for(var a=Ir(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?F6:G6)(r,e,t))}function sg(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 Ir(s,a).value[t]}}function QE(e,t){var r;return(typeof t=="number"?Vr:t instanceof Ya?Du:(r=Ya(t))?(t=r,Du):FE)(e,t)}function Y6(e){return function(){this.removeAttribute(e)}}function X6(e){return function(){this.removeAttributeNS(e.space,e.local)}}function K6(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 Z6(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 Q6(e,t,r){var a,s,o;return function(){var c,d=r(this),h;return d==null?void this.removeAttribute(e):(c=this.getAttribute(e),h=d+"",c===h?null:c===a&&h===s?o:(s=h,o=t(a=c,d)))}}function W6(e,t,r){var a,s,o;return function(){var c,d=r(this),h;return d==null?void this.removeAttributeNS(e.space,e.local):(c=this.getAttributeNS(e.space,e.local),h=d+"",c===h?null:c===a&&h===s?o:(s=h,o=t(a=c,d)))}}function J6(e,t){var r=td(e),a=r==="transform"?R6:QE;return this.attrTween(e,typeof t=="function"?(r.local?W6:Q6)(r,a,sg(this,"attr."+e,t)):t==null?(r.local?X6:Y6)(r):(r.local?Z6:K6)(r,a,t))}function ez(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function tz(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function nz(e,t){var r,a;function s(){var o=t.apply(this,arguments);return o!==a&&(r=(a=o)&&tz(e,o)),r}return s._value=t,s}function rz(e,t){var r,a;function s(){var o=t.apply(this,arguments);return o!==a&&(r=(a=o)&&ez(e,o)),r}return s._value=t,s}function iz(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=td(e);return this.tween(r,(a.local?nz:rz)(a,t))}function az(e,t){return function(){ag(this,e).delay=+t.apply(this,arguments)}}function sz(e,t){return t=+t,function(){ag(this,e).delay=t}}function lz(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?az:sz)(t,e)):Ir(this.node(),t).delay}function oz(e,t){return function(){Zr(this,e).duration=+t.apply(this,arguments)}}function cz(e,t){return t=+t,function(){Zr(this,e).duration=t}}function uz(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?oz:cz)(t,e)):Ir(this.node(),t).duration}function dz(e,t){if(typeof t!="function")throw new Error;return function(){Zr(this,e).ease=t}}function fz(e){var t=this._id;return arguments.length?this.each(dz(t,e)):Ir(this.node(),t).ease}function hz(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Zr(this,e).ease=r}}function mz(e){if(typeof e!="function")throw new Error;return this.each(hz(this._id,e))}function pz(e){typeof e!="function"&&(e=TE(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]=[],h,f=0;f<c;++f)(h=o[f])&&e.call(h,h.__data__,f,o)&&d.push(h);return new wi(a,this._parents,this._name,this._id)}function gz(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 h=t[d],f=r[d],p=h.length,g=c[d]=new Array(p),b,y=0;y<p;++y)(b=h[y]||f[y])&&(g[y]=b);for(;d<a;++d)c[d]=t[d];return new wi(c,this._parents,this._name,this._id)}function xz(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 bz(e,t,r){var a,s,o=xz(t)?ag:Zr;return function(){var c=o(this,e),d=c.on;d!==a&&(s=(a=d).copy()).on(t,r),c.on=s}}function yz(e,t){var r=this._id;return arguments.length<2?Ir(this.node(),r).on.on(e):this.each(bz(r,e,t))}function vz(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function _z(){return this.on("end.remove",vz(this._id))}function wz(e){var t=this._name,r=this._id;typeof e!="function"&&(e=eg(e));for(var a=this._groups,s=a.length,o=new Array(s),c=0;c<s;++c)for(var d=a[c],h=d.length,f=o[c]=new Array(h),p,g,b=0;b<h;++b)(p=d[b])&&(g=e.call(p,p.__data__,b,d))&&("__data__"in p&&(g.__data__=p.__data__),f[b]=g,rd(f[b],t,r,b,f,Ir(p,r)));return new wi(o,this._parents,t,r)}function Ez(e){var t=this._name,r=this._id;typeof e!="function"&&(e=CE(e));for(var a=this._groups,s=a.length,o=[],c=[],d=0;d<s;++d)for(var h=a[d],f=h.length,p,g=0;g<f;++g)if(p=h[g]){for(var b=e.call(p,p.__data__,g,h),y,_=Ir(p,r),N=0,S=b.length;N<S;++N)(y=b[N])&&rd(y,t,r,N,b,_);o.push(b),c.push(p)}return new wi(o,c,t,r)}var Nz=zo.prototype.constructor;function Sz(){return new Nz(this._groups,this._parents)}function kz(e,t){var r,a,s;return function(){var o=Ks(this,e),c=(this.style.removeProperty(e),Ks(this,e));return o===c?null:o===r&&c===a?s:s=t(r=o,a=c)}}function WE(e){return function(){this.style.removeProperty(e)}}function Cz(e,t,r){var a,s=r+"",o;return function(){var c=Ks(this,e);return c===s?null:c===a?o:o=t(a=c,r)}}function Tz(e,t,r){var a,s,o;return function(){var c=Ks(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Ks(this,e))),c===h?null:c===a&&h===s?o:(s=h,o=t(a=c,d))}}function Az(e,t){var r,a,s,o="style."+t,c="end."+o,d;return function(){var h=Zr(this,e),f=h.on,p=h.value[o]==null?d||(d=WE(t)):void 0;(f!==r||s!==p)&&(a=(r=f).copy()).on(c,s=p),h.on=a}}function Mz(e,t,r){var a=(e+="")=="transform"?O6:QE;return t==null?this.styleTween(e,kz(e,a)).on("end.style."+e,WE(e)):typeof t=="function"?this.styleTween(e,Tz(e,a,sg(this,"style."+e,t))).each(Az(this._id,e)):this.styleTween(e,Cz(e,a,t),r).on("end.style."+e,null)}function Oz(e,t,r){return function(a){this.style.setProperty(e,t.call(this,a),r)}}function Rz(e,t,r){var a,s;function o(){var c=t.apply(this,arguments);return c!==s&&(a=(s=c)&&Oz(e,c,r)),a}return o._value=t,o}function jz(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,Rz(e,t,r??""))}function Dz(e){return function(){this.textContent=e}}function Lz(e){return function(){var t=e(this);this.textContent=t??""}}function zz(e){return this.tween("text",typeof e=="function"?Lz(sg(this,"text",e)):Dz(e==null?"":e+""))}function Iz(e){return function(t){this.textContent=e.call(this,t)}}function Bz(e){var t,r;function a(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&Iz(s)),t}return a._value=e,a}function Uz(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,Bz(e))}function Hz(){for(var e=this._name,t=this._id,r=JE(),a=this._groups,s=a.length,o=0;o<s;++o)for(var c=a[o],d=c.length,h,f=0;f<d;++f)if(h=c[f]){var p=Ir(h,t);rd(h,e,r,f,c,{time:p.time+p.delay+p.duration,delay:0,duration:p.duration,ease:p.ease})}return new wi(a,this._parents,e,r)}function $z(){var e,t,r=this,a=r._id,s=r.size();return new Promise(function(o,c){var d={value:c},h={value:function(){--s===0&&o()}};r.each(function(){var f=Zr(this,a),p=f.on;p!==e&&(t=(e=p).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),f.on=t}),s===0&&o()})}var qz=0;function wi(e,t,r,a){this._groups=e,this._parents=t,this._name=r,this._id=a}function JE(){return++qz}var bi=zo.prototype;wi.prototype={constructor:wi,select:wz,selectAll:Ez,selectChild:bi.selectChild,selectChildren:bi.selectChildren,filter:pz,merge:gz,selection:Sz,transition:Hz,call:bi.call,nodes:bi.nodes,node:bi.node,size:bi.size,empty:bi.empty,each:bi.each,on:yz,attr:J6,attrTween:iz,style:Mz,styleTween:jz,text:zz,textTween:Uz,remove:_z,tween:V6,delay:lz,duration:uz,ease:fz,easeVarying:mz,end:$z,[Symbol.iterator]:bi[Symbol.iterator]};function Pz(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Fz={time:null,delay:0,duration:250,ease:Pz};function Gz(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 Vz(e){var t,r;e instanceof wi?(t=e._id,e=e._name):(t=JE(),(r=Fz).time=ig(),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,h,f=0;f<d;++f)(h=c[f])&&rd(h,e,t,f,c,r||Gz(h,t));return new wi(a,this._parents,e,t)}zo.prototype.interrupt=P6;zo.prototype.transition=Vz;const du=e=>()=>e;function Yz(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 id=new vi(1,0,0);eN.prototype=vi.prototype;function eN(e){for(;!e.__zoom;)if(!(e=e.parentNode))return id;return e.__zoom}function Sm(e){e.stopImmediatePropagation()}function no(e){e.preventDefault(),e.stopImmediatePropagation()}function Xz(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Kz(){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 o1(){return this.__zoom||id}function Zz(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Qz(){return navigator.maxTouchPoints||"ontouchstart"in this}function Wz(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 tN(){var e=Xz,t=Kz,r=Wz,a=Zz,s=Qz,o=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=_u,f=ed("start","zoom","end"),p,g,b,y=500,_=150,N=0,S=10;function w(k){k.property("__zoom",o1).on("wheel.zoom",z,{passive:!1}).on("mousedown.zoom",Y).on("dblclick.zoom",j).filter(s).on("touchstart.zoom",I).on("touchmove.zoom",Z).on("touchend.zoom touchcancel.zoom",P).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}w.transform=function(k,$,O,U){var K=k.selection?k.selection():k;K.property("__zoom",o1),k!==K?B(k,$,O,U):K.interrupt().each(function(){R(this,arguments).event(U).start().zoom(null,typeof $=="function"?$.apply(this,arguments):$).end()})},w.scaleBy=function(k,$,O,U){w.scaleTo(k,function(){var K=this.__zoom.k,X=typeof $=="function"?$.apply(this,arguments):$;return K*X},O,U)},w.scaleTo=function(k,$,O,U){w.transform(k,function(){var K=t.apply(this,arguments),X=this.__zoom,M=O==null?A(K):typeof O=="function"?O.apply(this,arguments):O,L=X.invert(M),F=typeof $=="function"?$.apply(this,arguments):$;return r(E(C(X,F),M,L),K,c)},O,U)},w.translateBy=function(k,$,O,U){w.transform(k,function(){return r(this.__zoom.translate(typeof $=="function"?$.apply(this,arguments):$,typeof O=="function"?O.apply(this,arguments):O),t.apply(this,arguments),c)},null,U)},w.translateTo=function(k,$,O,U,K){w.transform(k,function(){var X=t.apply(this,arguments),M=this.__zoom,L=U==null?A(X):typeof U=="function"?U.apply(this,arguments):U;return r(id.translate(L[0],L[1]).scale(M.k).translate(typeof $=="function"?-$.apply(this,arguments):-$,typeof O=="function"?-O.apply(this,arguments):-O),X,c)},U,K)};function C(k,$){return $=Math.max(o[0],Math.min(o[1],$)),$===k.k?k:new vi($,k.x,k.y)}function E(k,$,O){var U=$[0]-O[0]*k.k,K=$[1]-O[1]*k.k;return U===k.x&&K===k.y?k:new vi(k.k,U,K)}function A(k){return[(+k[0][0]+ +k[1][0])/2,(+k[0][1]+ +k[1][1])/2]}function B(k,$,O,U){k.on("start.zoom",function(){R(this,arguments).event(U).start()}).on("interrupt.zoom end.zoom",function(){R(this,arguments).event(U).end()}).tween("zoom",function(){var K=this,X=arguments,M=R(K,X).event(U),L=t.apply(K,X),F=O==null?A(L):typeof O=="function"?O.apply(K,X):O,D=Math.max(L[1][0]-L[0][0],L[1][1]-L[0][1]),V=K.__zoom,q=typeof $=="function"?$.apply(K,X):$,Q=h(V.invert(F).concat(D/V.k),q.invert(F).concat(D/q.k));return function(J){if(J===1)J=q;else{var W=Q(J),te=D/W[2];J=new vi(te,F[0]-W[0]*te,F[1]-W[1]*te)}M.zoom(null,J)}})}function R(k,$,O){return!O&&k.__zooming||new H(k,$)}function H(k,$){this.that=k,this.args=$,this.active=0,this.sourceEvent=null,this.extent=t.apply(k,$),this.taps=0}H.prototype={event:function(k){return k&&(this.sourceEvent=k),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(k,$){return this.mouse&&k!=="mouse"&&(this.mouse[1]=$.invert(this.mouse[0])),this.touch0&&k!=="touch"&&(this.touch0[1]=$.invert(this.touch0[0])),this.touch1&&k!=="touch"&&(this.touch1[1]=$.invert(this.touch1[0])),this.that.__zoom=$,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(k){var $=ir(this.that).datum();f.call(k,this.that,new Yz(k,{sourceEvent:this.sourceEvent,target:w,transform:this.that.__zoom,dispatch:f}),$)}};function z(k,...$){if(!e.apply(this,arguments))return;var O=R(this,$).event(k),U=this.__zoom,K=Math.max(o[0],Math.min(o[1],U.k*Math.pow(2,a.apply(this,arguments)))),X=Ar(k);if(O.wheel)(O.mouse[0][0]!==X[0]||O.mouse[0][1]!==X[1])&&(O.mouse[1]=U.invert(O.mouse[0]=X)),clearTimeout(O.wheel);else{if(U.k===K)return;O.mouse=[X,U.invert(X)],Nu(this),O.start()}no(k),O.wheel=setTimeout(M,_),O.zoom("mouse",r(E(C(U,K),O.mouse[0],O.mouse[1]),O.extent,c));function M(){O.wheel=null,O.end()}}function Y(k,...$){if(b||!e.apply(this,arguments))return;var O=k.currentTarget,U=R(this,$,!0).event(k),K=ir(k.view).on("mousemove.zoom",F,!0).on("mouseup.zoom",D,!0),X=Ar(k,O),M=k.clientX,L=k.clientY;BE(k.view),Sm(k),U.mouse=[X,this.__zoom.invert(X)],Nu(this),U.start();function F(V){if(no(V),!U.moved){var q=V.clientX-M,Q=V.clientY-L;U.moved=q*q+Q*Q>N}U.event(V).zoom("mouse",r(E(U.that.__zoom,U.mouse[0]=Ar(V,O),U.mouse[1]),U.extent,c))}function D(V){K.on("mousemove.zoom mouseup.zoom",null),UE(V.view,U.moved),no(V),U.event(V).end()}}function j(k,...$){if(e.apply(this,arguments)){var O=this.__zoom,U=Ar(k.changedTouches?k.changedTouches[0]:k,this),K=O.invert(U),X=O.k*(k.shiftKey?.5:2),M=r(E(C(O,X),U,K),t.apply(this,$),c);no(k),d>0?ir(this).transition().duration(d).call(B,M,U,k):ir(this).call(w.transform,M,U,k)}}function I(k,...$){if(e.apply(this,arguments)){var O=k.touches,U=O.length,K=R(this,$,k.changedTouches.length===U).event(k),X,M,L,F;for(Sm(k),M=0;M<U;++M)L=O[M],F=Ar(L,this),F=[F,this.__zoom.invert(F),L.identifier],K.touch0?!K.touch1&&K.touch0[2]!==F[2]&&(K.touch1=F,K.taps=0):(K.touch0=F,X=!0,K.taps=1+!!p);p&&(p=clearTimeout(p)),X&&(K.taps<2&&(g=F[0],p=setTimeout(function(){p=null},y)),Nu(this),K.start())}}function Z(k,...$){if(this.__zooming){var O=R(this,$).event(k),U=k.changedTouches,K=U.length,X,M,L,F;for(no(k),X=0;X<K;++X)M=U[X],L=Ar(M,this),O.touch0&&O.touch0[2]===M.identifier?O.touch0[0]=L:O.touch1&&O.touch1[2]===M.identifier&&(O.touch1[0]=L);if(M=O.that.__zoom,O.touch1){var D=O.touch0[0],V=O.touch0[1],q=O.touch1[0],Q=O.touch1[1],J=(J=q[0]-D[0])*J+(J=q[1]-D[1])*J,W=(W=Q[0]-V[0])*W+(W=Q[1]-V[1])*W;M=C(M,Math.sqrt(J/W)),L=[(D[0]+q[0])/2,(D[1]+q[1])/2],F=[(V[0]+Q[0])/2,(V[1]+Q[1])/2]}else if(O.touch0)L=O.touch0[0],F=O.touch0[1];else return;O.zoom("touch",r(E(M,L,F),O.extent,c))}}function P(k,...$){if(this.__zooming){var O=R(this,$).event(k),U=k.changedTouches,K=U.length,X,M;for(Sm(k),b&&clearTimeout(b),b=setTimeout(function(){b=null},y),X=0;X<K;++X)M=U[X],O.touch0&&O.touch0[2]===M.identifier?delete O.touch0:O.touch1&&O.touch1[2]===M.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&&(M=Ar(M,this),Math.hypot(g[0]-M[0],g[1]-M[1])<S)){var L=ir(this).on("dblclick.zoom");L&&L.apply(this,arguments)}}}return w.wheelDelta=function(k){return arguments.length?(a=typeof k=="function"?k:du(+k),w):a},w.filter=function(k){return arguments.length?(e=typeof k=="function"?k:du(!!k),w):e},w.touchable=function(k){return arguments.length?(s=typeof k=="function"?k:du(!!k),w):s},w.extent=function(k){return arguments.length?(t=typeof k=="function"?k:du([[+k[0][0],+k[0][1]],[+k[1][0],+k[1][1]]]),w):t},w.scaleExtent=function(k){return arguments.length?(o[0]=+k[0],o[1]=+k[1],w):[o[0],o[1]]},w.translateExtent=function(k){return arguments.length?(c[0][0]=+k[0][0],c[1][0]=+k[1][0],c[0][1]=+k[0][1],c[1][1]=+k[1][1],w):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},w.constrain=function(k){return arguments.length?(r=k,w):r},w.duration=function(k){return arguments.length?(d=+k,w):d},w.interpolate=function(k){return arguments.length?(h=k,w):h},w.on=function(){var k=f.on.apply(f,arguments);return k===f?w:k},w.clickDistance=function(k){return arguments.length?(N=(k=+k)*k,w):Math.sqrt(N)},w.tapDistance=function(k){return arguments.length?(S=+k,w):S},w}const Lr={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.`},No=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],nN=["Enter"," ","Escape"],rN={"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 Qs;(function(e){e.Strict="strict",e.Loose="loose"})(Qs||(Qs={}));var Fa;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(Fa||(Fa={}));var So;(function(e){e.Partial="partial",e.Full="full"})(So||(So={}));const iN={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var ua;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(ua||(ua={}));var Bu;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(Bu||(Bu={}));var ze;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(ze||(ze={}));const c1={[ze.Left]:ze.Right,[ze.Right]:ze.Left,[ze.Top]:ze.Bottom,[ze.Bottom]:ze.Top};function aN(e){return e===null?null:e?"valid":"invalid"}const sN=e=>!!e&&typeof e=="object"&&"id"in e&&"source"in e&&"target"in e,Jz=e=>!!e&&typeof e=="object"&&"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),lg=e=>!!e&&typeof e=="object"&&"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),Bo=(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}},eI=(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):lg(s)?s:t.nodeLookup.get(s.id));const d=c?Uu(c,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return ad(a,d)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return sd(r)},Uo=(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=ad(r,Uu(s)),a=!0)}),a?sd(r):{x:0,y:0,width:0,height:0}},og=(e,t,[r,a,s]=[0,0,1],o=!1,c=!1)=>{const d=(t.x-r)/s,h=(t.y-a)/s,f=t.width/s,p=t.height/s,g=[];for(const b of e.values()){const{measured:y,selectable:_=!0,hidden:N=!1}=b;if(c&&!_||N)continue;const S=y.width??b.width??b.initialWidth??0,w=y.height??b.height??b.initialHeight??0,{x:C,y:E}=b.internals.positionAbsolute,A=uN(d,h,f,p,C,E,S,w),B=S*w,R=o&&A>0;(!b.internals.handleBounds||R||A>=B||b.dragging)&&g.push(b)}return g},tI=(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 nI(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 rI({nodes:e,width:t,height:r,panZoom:a,minZoom:s,maxZoom:o},c){if(e.size===0)return!0;const d=nI(e,c),h=Uo(d),f=ug(h,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(f,{duration:c==null?void 0:c.duration,ease:c==null?void 0:c.ease,interpolate:c==null?void 0:c.interpolate}),!0}function lN({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:h,y:f}=d?d.internals.positionAbsolute:{x:0,y:0},p=c.origin??a;let g=c.extent||s;if(c.extent==="parent"&&!c.expandParent)if(!d)o==null||o("005",Lr.error005());else{const y=d.measured.width,_=d.measured.height;y&&_&&(g=[[h,f],[h+y,f+_]])}else d&&Za(c.extent)&&(g=[[c.extent[0][0]+h,c.extent[0][1]+f],[c.extent[1][0]+h,c.extent[1][1]+f]]);const b=Za(g)?Ka(t,g,c.measured):t;return(c.measured.width===void 0||c.measured.height===void 0)&&(o==null||o("015",Lr.error015())),{position:{x:b.x-h+(c.measured.width??0)*p[0],y:b.y-f+(c.measured.height??0)*p[1]},positionAbsolute:b}}async function iI({nodesToRemove:e=[],edgesToRemove:t=[],nodes:r,edges:a,onBeforeDelete:s}){const o=new Set(e.map(b=>b.id)),c=[];for(const b of r){if(b.deletable===!1)continue;const y=o.has(b.id),_=!y&&b.parentId&&c.find(N=>N.id===b.parentId);(y||_)&&c.push(b)}const d=new Set(t.map(b=>b.id)),h=a.filter(b=>b.deletable!==!1),p=tI(c,h);for(const b of h)d.has(b.id)&&!p.find(_=>_.id===b.id)&&p.push(b);if(!s)return{edges:p,nodes:c};const g=await s({nodes:c,edges:p});return typeof g=="boolean"?g?{edges:p,nodes:c}:{edges:[],nodes:[]}:g}const Ws=(e,t=0,r=1)=>Math.min(Math.max(e,t),r),Ka=(e={x:0,y:0},t,r)=>({x:Ws(e.x,t[0][0],t[1][0]-((r==null?void 0:r.width)??0)),y:Ws(e.y,t[0][1],t[1][1]-((r==null?void 0:r.height)??0))});function oN(e,t,r){const{width:a,height:s}=Qr(r),{x:o,y:c}=r.internals.positionAbsolute;return Ka(e,[[o,c],[o+a,c+s]],t)}const u1=(e,t,r)=>e<t?Ws(Math.abs(e-t),1,t)/t:e>r?-Ws(Math.abs(e-r),1,t)/t:0,cg=(e,t,r=15,a=40)=>{const s=u1(e.x,a,t.width-a)*r,o=u1(e.y,a,t.height-a)*r;return[s,o]},ad=(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)}),hp=({x:e,y:t,width:r,height:a})=>({x:e,y:t,x2:e+r,y2:t+a}),sd=({x:e,y:t,x2:r,y2:a})=>({x:e,y:t,width:r-e,height:a-t}),ko=(e,t=[0,0])=>{var s,o;const{x:r,y:a}=lg(e)?e.internals.positionAbsolute:Bo(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}},Uu=(e,t=[0,0])=>{var s,o;const{x:r,y:a}=lg(e)?e.internals.positionAbsolute:Bo(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)}},cN=(e,t)=>sd(ad(hp(e),hp(t))),uN=(e,t,r,a,s,o,c,d)=>{const h=Math.max(0,Math.min(e+r,s+c)-Math.max(e,s)),f=Math.max(0,Math.min(t+a,o+d)-Math.max(t,o));return Math.ceil(h*f)},Hu=(e,t)=>uN(e.x,e.y,e.width,e.height,t.x,t.y,t.width,t.height),d1=e=>Rr(e.width)&&Rr(e.height)&&Rr(e.x)&&Rr(e.y),Rr=e=>!isNaN(e)&&isFinite(e),dN=(e,t)=>(r,a)=>{},Ho=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),$o=({x:e,y:t},[r,a,s],o=!1,c=[1,1])=>{const d={x:(e-r)/s,y:(t-a)/s};return o?Ho(d,c):d},Js=({x:e,y:t},[r,a,s])=>({x:e*s+r,y:t*s+a});function Is(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 aI(e,t,r){if(typeof e=="string"||typeof e=="number"){const a=Is(e,r),s=Is(e,t);return{top:a,right:s,bottom:a,left:s,x:s*2,y:a*2}}if(typeof e=="object"){const a=Is(e.top??e.y??0,r),s=Is(e.bottom??e.y??0,r),o=Is(e.left??e.x??0,t),c=Is(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 sI(e,t,r,a,s,o){const{x:c,y:d}=Js(e,[t,r,a]),{x:h,y:f}=Js({x:e.x+e.width,y:e.y+e.height},[t,r,a]),p=s-h,g=o-f;return{left:Math.floor(c),top:Math.floor(d),right:Math.floor(p),bottom:Math.floor(g)}}const ug=(e,t,r,a,s,o)=>{const c=aI(o,t,r),d=(t-c.x)/e.width,h=(r-c.y)/e.height,f=Math.min(d,h),p=Ws(f,a,s),g=e.x+e.width/2,b=e.y+e.height/2,y=t/2-g*p,_=r/2-b*p,N=sI(e,y,_,p,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:y-S.left+S.right,y:_-S.top+S.bottom,zoom:p}},Co=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function Za(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 fN(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 hN(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 f1(e,t){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}function lI(){let e,t;return{promise:new Promise((a,s)=>{e=a,t=s}),resolve:e,reject:t}}function oI(e){return{...rN,...e||{}}}function ho(e,{snapGrid:t=[0,0],snapToGrid:r=!1,transform:a,containerBounds:s}){const{x:o,y:c}=jr(e),d=$o({x:o-((s==null?void 0:s.left)??0),y:c-((s==null?void 0:s.top)??0)},a),{x:h,y:f}=r?Ho(d,t):d;return{xSnapped:h,ySnapped:f,...d}}const dg=e=>({width:e.offsetWidth,height:e.offsetHeight}),mN=e=>{var t;return((t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},cI=["INPUT","SELECT","TEXTAREA"];function pN(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:cI.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}const gN=e=>"clientX"in e,jr=(e,t)=>{var o,c;const r=gN(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)}},h1=(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,...dg(c)}})};function xN({sourceX:e,sourceY:t,targetX:r,targetY:a,sourceControlX:s,sourceControlY:o,targetControlX:c,targetControlY:d}){const h=e*.125+s*.375+c*.375+r*.125,f=t*.125+o*.375+d*.375+a*.125,p=Math.abs(h-e),g=Math.abs(f-t);return[h,f,p,g]}function fu(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function m1({pos:e,x1:t,y1:r,x2:a,y2:s,c:o}){switch(e){case ze.Left:return[t-fu(t-a,o),r];case ze.Right:return[t+fu(a-t,o),r];case ze.Top:return[t,r-fu(r-s,o)];case ze.Bottom:return[t,r+fu(s-r,o)]}}function bN({sourceX:e,sourceY:t,sourcePosition:r=ze.Bottom,targetX:a,targetY:s,targetPosition:o=ze.Top,curvature:c=.25}){const[d,h]=m1({pos:r,x1:e,y1:t,x2:a,y2:s,c}),[f,p]=m1({pos:o,x1:a,y1:s,x2:e,y2:t,c}),[g,b,y,_]=xN({sourceX:e,sourceY:t,targetX:a,targetY:s,sourceControlX:d,sourceControlY:h,targetControlX:f,targetControlY:p});return[`M${e},${t} C${d},${h} ${f},${p} ${a},${s}`,g,b,y,_]}function yN({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 uI({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 dI({sourceNode:e,targetNode:t,width:r,height:a,transform:s}){const o=ad(Uu(e),Uu(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 Hu(c,sd(o))>0}const fI=({source:e,sourceHandle:t,target:r,targetHandle:a})=>`xy-edge__${e}${t||""}-${r}${a||""}`,hI=(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)),mI=(e,t,r={})=>{var o;if(!e.source||!e.target)return(o=r.onError)==null||o.call(r,"006",Lr.error006()),t;const a=r.getEdgeId||fI;let s;return sN(e)?s={...e}:s={...e,id:a(e)},hI(s,t)?t:(s.sourceHandle===null&&delete s.sourceHandle,s.targetHandle===null&&delete s.targetHandle,t.concat(s))};function vN({sourceX:e,sourceY:t,targetX:r,targetY:a}){const[s,o,c,d]=yN({sourceX:e,sourceY:t,targetX:r,targetY:a});return[`M ${e},${t}L ${r},${a}`,s,o,c,d]}const p1={[ze.Left]:{x:-1,y:0},[ze.Right]:{x:1,y:0},[ze.Top]:{x:0,y:-1},[ze.Bottom]:{x:0,y:1}},pI=({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},g1=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function gI({source:e,sourcePosition:t=ze.Bottom,target:r,targetPosition:a=ze.Top,center:s,offset:o,stepPosition:c}){const d=p1[t],h=p1[a],f={x:e.x+d.x*o,y:e.y+d.y*o},p={x:r.x+h.x*o,y:r.y+h.y*o},g=pI({source:f,sourcePosition:t,target:p}),b=g.x!==0?"x":"y",y=g[b];let _=[],N,S;const w={x:0,y:0},C={x:0,y:0},[,,E,A]=yN({sourceX:e.x,sourceY:e.y,targetX:r.x,targetY:r.y});if(d[b]*h[b]===-1){b==="x"?(N=s.x??f.x+(p.x-f.x)*c,S=s.y??(f.y+p.y)/2):(N=s.x??(f.x+p.x)/2,S=s.y??f.y+(p.y-f.y)*c);const z=[{x:N,y:f.y},{x:N,y:p.y}],Y=[{x:f.x,y:S},{x:p.x,y:S}];d[b]===y?_=b==="x"?z:Y:_=b==="x"?Y:z}else{const z=[{x:f.x,y:p.y}],Y=[{x:p.x,y:f.y}];if(b==="x"?_=d.x===y?Y:z:_=d.y===y?z:Y,t===a){const k=Math.abs(e[b]-r[b]);if(k<=o){const $=Math.min(o-1,o-k);d[b]===y?w[b]=(f[b]>e[b]?-1:1)*$:C[b]=(p[b]>r[b]?-1:1)*$}}if(t!==a){const k=b==="x"?"y":"x",$=d[b]===h[k],O=f[k]>p[k],U=f[k]<p[k];(d[b]===1&&(!$&&O||$&&U)||d[b]!==1&&(!$&&U||$&&O))&&(_=b==="x"?z:Y)}const j={x:f.x+w.x,y:f.y+w.y},I={x:p.x+C.x,y:p.y+C.y},Z=Math.max(Math.abs(j.x-_[0].x),Math.abs(I.x-_[0].x)),P=Math.max(Math.abs(j.y-_[0].y),Math.abs(I.y-_[0].y));Z>=P?(N=(j.x+I.x)/2,S=_[0].y):(N=_[0].x,S=(j.y+I.y)/2)}const B={x:f.x+w.x,y:f.y+w.y},R={x:p.x+C.x,y:p.y+C.y};return[[e,...B.x!==_[0].x||B.y!==_[0].y?[B]:[],..._,...R.x!==_[_.length-1].x||R.y!==_[_.length-1].y?[R]:[],r],N,S,E,A]}function xI(e,t,r,a){const s=Math.min(g1(e,t)/2,g1(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 f=e.x<r.x?-1:1,p=e.y<r.y?1:-1;return`L ${o+s*f},${c}Q ${o},${c} ${o},${c+s*p}`}const d=e.x<r.x?1:-1,h=e.y<r.y?-1:1;return`L ${o},${c+s*h}Q ${o},${c} ${o+s*d},${c}`}function mp({sourceX:e,sourceY:t,sourcePosition:r=ze.Bottom,targetX:a,targetY:s,targetPosition:o=ze.Top,borderRadius:c=5,centerX:d,centerY:h,offset:f=20,stepPosition:p=.5}){const[g,b,y,_,N]=gI({source:{x:e,y:t},sourcePosition:r,target:{x:a,y:s},targetPosition:o,center:{x:d,y:h},offset:f,stepPosition:p});let S=`M${g[0].x} ${g[0].y}`;for(let w=1;w<g.length-1;w++)S+=xI(g[w-1],g[w],g[w+1],c);return S+=`L${g[g.length-1].x} ${g[g.length-1].y}`,[S,b,y,_,N]}function x1(e){var t;return e&&!!(e.internals.handleBounds||(t=e.handles)!=null&&t.length)&&!!(e.measured.width||e.width||e.initialWidth)}function bI(e){var g;const{sourceNode:t,targetNode:r}=e;if(!x1(t)||!x1(r))return null;const a=t.internals.handleBounds||b1(t.handles),s=r.internals.handleBounds||b1(r.handles),o=y1((a==null?void 0:a.source)??[],e.sourceHandle),c=y1(e.connectionMode===Qs.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(g=e.onError)==null||g.call(e,"008",Lr.error008(o?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const d=(o==null?void 0:o.position)||ze.Bottom,h=(c==null?void 0:c.position)||ze.Top,f=Qa(t,o,d),p=Qa(r,c,h);return{sourceX:f.x,sourceY:f.y,targetX:p.x,targetY:p.y,sourcePosition:d,targetPosition:h}}function b1(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 Qa(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 y1(e,t){return e&&(t?e.find(r=>r.id===t):e[0])||null}function pp(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(a=>`${a}=${e[a]}`).join("&")}`:""}function yI(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(h=>{if(h&&typeof h=="object"){const f=pp(h,t);o.has(f)||(c.push({id:f,color:h.color||r,...h}),o.add(f))}}),c),[]).sort((c,d)=>c.id.localeCompare(d.id))}const _N=1e3,vI=10,fg={nodeOrigin:[0,0],nodeExtent:No,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},_I={...fg,checkEquality:!0};function hg(e,t){const r={...e};for(const a in t)t[a]!==void 0&&(r[a]=t[a]);return r}function wI(e,t,r){const a=hg(fg,r);for(const s of e.values())if(s.parentId)pg(s,e,t,a);else{const o=Bo(s,a.nodeOrigin),c=Za(s.extent)?s.extent:a.nodeExtent,d=Ka(o,c,Qr(s));s.internals.positionAbsolute=d}}function EI(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 mg(e){return e==="manual"}function gp(e,t,r,a={}){var p,g;const s=hg(_I,a),o={i:0},c=new Map(t),d=s!=null&&s.elevateNodesOnSelect&&!mg(s.zIndexMode)?_N:0;let h=e.length>0,f=!1;t.clear(),r.clear();for(const b of e){let y=c.get(b.id);if(s.checkEquality&&b===(y==null?void 0:y.internals.userNode))t.set(b.id,y);else{const _=Bo(b,s.nodeOrigin),N=Za(b.extent)?b.extent:s.nodeExtent,S=Ka(_,N,Qr(b));y={...s.defaults,...b,measured:{width:(p=b.measured)==null?void 0:p.width,height:(g=b.measured)==null?void 0:g.height},internals:{positionAbsolute:S,handleBounds:EI(b,y),z:wN(b,d,s.zIndexMode),userNode:b}},t.set(b.id,y)}(y.measured===void 0||y.measured.width===void 0||y.measured.height===void 0)&&!y.hidden&&(h=!1),b.parentId&&pg(y,t,r,a,o),f||(f=b.selected??!1)}return{nodesInitialized:h,hasSelectedNodes:f}}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 pg(e,t,r,a,s){const{elevateNodesOnSelect:o,nodeOrigin:c,nodeExtent:d,zIndexMode:h}=hg(fg,a),f=e.parentId,p=t.get(f);if(!p){console.warn(`Parent node ${f} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}NI(e,r),s&&!p.parentId&&p.internals.rootParentIndex===void 0&&h==="auto"&&(p.internals.rootParentIndex=++s.i,p.internals.z=p.internals.z+s.i*vI),s&&p.internals.rootParentIndex!==void 0&&(s.i=p.internals.rootParentIndex);const g=o&&!mg(h)?_N:0,{x:b,y,z:_}=SI(e,p,c,d,g,h),{positionAbsolute:N}=e.internals,S=b!==N.x||y!==N.y;(S||_!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:S?{x:b,y}:N,z:_}})}function wN(e,t,r){const a=Rr(e.zIndex)?e.zIndex:0;return mg(r)?a:a+(e.selected?t:0)}function SI(e,t,r,a,s,o){const{x:c,y:d}=t.internals.positionAbsolute,h=Qr(e),f=Bo(e,r),p=Za(e.extent)?Ka(f,e.extent,h):f;let g=Ka({x:c+p.x,y:d+p.y},a,h);e.extent==="parent"&&(g=oN(g,h,t));const b=wN(e,s,o),y=t.internals.z??0;return{x:g.x,y:g.y,z:y>=b?y+1:b}}function gg(e,t,r,a=[0,0]){var c;const s=[],o=new Map;for(const d of e){const h=t.get(d.parentId);if(!h)continue;const f=((c=o.get(d.parentId))==null?void 0:c.expandedRect)??ko(h),p=cN(f,d.rect);o.set(d.parentId,{expandedRect:p,parent:h})}return o.size>0&&o.forEach(({expandedRect:d,parent:h},f)=>{var E;const p=h.internals.positionAbsolute,g=Qr(h),b=h.origin??a,y=d.x<p.x?Math.round(Math.abs(p.x-d.x)):0,_=d.y<p.y?Math.round(Math.abs(p.y-d.y)):0,N=Math.max(g.width,Math.round(d.width)),S=Math.max(g.height,Math.round(d.height)),w=(N-g.width)*b[0],C=(S-g.height)*b[1];(y>0||_>0||w||C)&&(s.push({id:f,type:"position",position:{x:h.position.x-y+w,y:h.position.y-_+C}}),(E=r.get(f))==null||E.forEach(A=>{e.some(B=>B.id===A.id)||s.push({id:A.id,type:"position",position:{x:A.position.x+y,y:A.position.y+_}})})),(g.width<d.width||g.height<d.height||y||_)&&s.push({id:f,type:"dimensions",setAttributes:!0,dimensions:{width:N+(y?b[0]*y-w:0),height:S+(_?b[1]*_-C:0)}})}),s}function kI(e,t,r,a,s,o,c){const d=a==null?void 0:a.querySelector(".xyflow__viewport");let h=!1;if(!d)return{changes:[],updatedInternals:h};const f=[],p=window.getComputedStyle(d),{m22:g}=new window.DOMMatrixReadOnly(p.transform),b=[];for(const y of e.values()){const _=t.get(y.id);if(!_)continue;if(_.hidden){t.set(_.id,{..._,internals:{..._.internals,handleBounds:void 0}}),h=!0;continue}const N=dg(y.nodeElement),S=_.measured.width!==N.width||_.measured.height!==N.height;if(!!(N.width&&N.height&&(S||!_.internals.handleBounds||y.force))){const C=y.nodeElement.getBoundingClientRect(),E=Za(_.extent)?_.extent:o;let{positionAbsolute:A}=_.internals;if(_.parentId&&_.extent==="parent"){const R=t.get(_.parentId);R&&(A=oN(A,N,R))}else E&&(A=Ka(A,E,N));const B={..._,measured:N,internals:{..._.internals,positionAbsolute:A,handleBounds:{source:h1("source",y.nodeElement,C,g,_.id),target:h1("target",y.nodeElement,C,g,_.id)}}};t.set(_.id,B),_.parentId&&pg(B,t,r,{nodeOrigin:s,zIndexMode:c}),h=!0,S&&(f.push({id:_.id,type:"dimensions",dimensions:N}),_.expandParent&&_.parentId&&b.push({id:_.id,parentId:_.parentId,rect:ko(B,s)}))}}if(b.length>0){const y=gg(b,t,r,s);f.push(...y)}return{changes:f,updatedInternals:h}}async function CI({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 v1(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 h=a.get(c)||new Map;if(a.set(c,h.set(r,t)),o){c=`${s}-${e}-${o}`;const f=a.get(c)||new Map;a.set(c,f.set(r,t))}}function EN(e,t,r){e.clear(),t.clear();for(const a of r){const{source:s,target:o,sourceHandle:c=null,targetHandle:d=null}=a,h={edgeId:a.id,source:s,target:o,sourceHandle:c,targetHandle:d},f=`${s}-${c}--${o}-${d}`,p=`${o}-${d}--${s}-${c}`;v1("source",h,p,e,s,c),v1("target",h,f,e,o,d),t.set(a.id,a)}}function NN(e,t){if(!e.parentId)return!1;const r=t.get(e.parentId);return r?r.selected?!0:NN(r,t):!1}function _1(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 TI(e,t,r,a){const s=new Map;for(const[o,c]of e)if((c.selected||c.id===a)&&(!c.parentId||!NN(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 km({nodeId:e,dragItems:t,nodeLookup:r,dragging:a=!0}){var c,d,h;const s=[];for(const[f,p]of t){const g=(c=r.get(f))==null?void 0:c.internals.userNode;g&&s.push({...g,position:p.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:((h=t.get(e))==null?void 0:h.position)||o.position,dragging:a}:s[0],s]}function AI({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=Ho(o,t);return{x:c.x-o.x,y:c.y-o.y}}function MI({onNodeMouseDown:e,getStoreItems:t,onDragStart:r,onDrag:a,onDragStop:s}){let o={x:null,y:null},c=0,d=new Map,h=!1,f={x:0,y:0},p=null,g=!1,b=null,y=!1,_=!1,N=null;function S({noDragClassName:C,handleSelector:E,domNode:A,isSelectable:B,nodeId:R,nodeClickDistance:H=0}){b=ir(A);function z({x:Z,y:P}){const{nodeLookup:k,nodeExtent:$,snapGrid:O,snapToGrid:U,nodeOrigin:K,onNodeDrag:X,onSelectionDrag:M,onError:L,updateNodePositions:F}=t();o={x:Z,y:P};let D=!1;const V=d.size>1,q=V&&$?hp(Uo(d)):null,Q=V&&U?AI({dragItems:d,snapGrid:O,x:Z,y:P}):null;for(const[J,W]of d){if(!k.has(J))continue;let te={x:Z-W.distance.x,y:P-W.distance.y};U&&(te=Q?{x:Math.round(te.x+Q.x),y:Math.round(te.y+Q.y)}:Ho(te,O));let oe=null;if(V&&$&&!W.extent&&q){const{positionAbsolute:we}=W.internals,Ne=we.x-q.x+$[0][0],De=we.x+W.measured.width-q.x2+$[1][0],$e=we.y-q.y+$[0][1],st=we.y+W.measured.height-q.y2+$[1][1];oe=[[Ne,$e],[De,st]]}const{position:fe,positionAbsolute:xe}=lN({nodeId:J,nextPosition:te,nodeLookup:k,nodeExtent:oe||$,nodeOrigin:K,onError:L});D=D||W.position.x!==fe.x||W.position.y!==fe.y,W.position=fe,W.internals.positionAbsolute=xe}if(_=_||D,!!D&&(F(d,!0),N&&(a||X||!R&&M))){const[J,W]=km({nodeId:R,dragItems:d,nodeLookup:k});a==null||a(N,d,J,W),X==null||X(N,J,W),R||M==null||M(N,W)}}async function Y(){if(!p)return;const{transform:Z,panBy:P,autoPanSpeed:k,autoPanOnNodeDrag:$}=t();if(!$){h=!1,cancelAnimationFrame(c);return}const[O,U]=cg(f,p,k);(O!==0||U!==0)&&(o.x=(o.x??0)-O/Z[2],o.y=(o.y??0)-U/Z[2],await P({x:O,y:U})&&z(o)),c=requestAnimationFrame(Y)}function j(Z){var V;const{nodeLookup:P,multiSelectionActive:k,nodesDraggable:$,transform:O,snapGrid:U,snapToGrid:K,selectNodesOnDrag:X,onNodeDragStart:M,onSelectionDragStart:L,unselectNodesAndEdges:F}=t();g=!0,(!X||!B)&&!k&&R&&((V=P.get(R))!=null&&V.selected||F()),B&&X&&R&&(e==null||e(R));const D=ho(Z.sourceEvent,{transform:O,snapGrid:U,snapToGrid:K,containerBounds:p});if(o=D,d=TI(P,$,D,R),d.size>0&&(r||M||!R&&L)){const[q,Q]=km({nodeId:R,dragItems:d,nodeLookup:P});r==null||r(Z.sourceEvent,d,q,Q),M==null||M(Z.sourceEvent,q,Q),R||L==null||L(Z.sourceEvent,Q)}}const I=HE().clickDistance(H).on("start",Z=>{const{domNode:P,nodeDragThreshold:k,transform:$,snapGrid:O,snapToGrid:U}=t();p=(P==null?void 0:P.getBoundingClientRect())||null,y=!1,_=!1,N=Z.sourceEvent,k===0&&j(Z),o=ho(Z.sourceEvent,{transform:$,snapGrid:O,snapToGrid:U,containerBounds:p}),f=jr(Z.sourceEvent,p)}).on("drag",Z=>{const{autoPanOnNodeDrag:P,transform:k,snapGrid:$,snapToGrid:O,nodeDragThreshold:U,nodeLookup:K}=t(),X=ho(Z.sourceEvent,{transform:k,snapGrid:$,snapToGrid:O,containerBounds:p});if(N=Z.sourceEvent,(Z.sourceEvent.type==="touchmove"&&Z.sourceEvent.touches.length>1||R&&!K.has(R))&&(y=!0),!y){if(!h&&P&&g&&(h=!0,Y()),!g){const M=jr(Z.sourceEvent,p),L=M.x-f.x,F=M.y-f.y;Math.sqrt(L*L+F*F)>U&&j(Z)}(o.x!==X.xSnapped||o.y!==X.ySnapped)&&d&&g&&(f=jr(Z.sourceEvent,p),z(X))}}).on("end",Z=>{if(!g||y){y&&d.size>0&&t().updateNodePositions(d,!1);return}if(h=!1,g=!1,cancelAnimationFrame(c),d.size>0){const{nodeLookup:P,updateNodePositions:k,onNodeDragStop:$,onSelectionDragStop:O}=t();if(_&&(k(d,!1),_=!1),s||$||!R&&O){const[U,K]=km({nodeId:R,dragItems:d,nodeLookup:P,dragging:!1});s==null||s(Z.sourceEvent,d,U,K),$==null||$(Z.sourceEvent,U,K),R||O==null||O(Z.sourceEvent,K)}}}).filter(Z=>{const P=Z.target;return!Z.button&&(!C||!_1(P,`.${C}`,A))&&(!E||_1(P,E,A))});b.call(I)}function w(){b==null||b.on(".drag",null)}return{update:S,destroy:w}}function OI(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())Hu(s,ko(o))>0&&a.push(o);return a}const RI=250;function jI(e,t,r,a){var d,h;let s=[],o=1/0;const c=OI(e,r,t+RI);for(const f of c){const p=[...((d=f.internals.handleBounds)==null?void 0:d.source)??[],...((h=f.internals.handleBounds)==null?void 0:h.target)??[]];for(const g of p){if(a.nodeId===g.nodeId&&a.type===g.type&&a.id===g.id)continue;const{x:b,y}=Qa(f,g,g.position,!0),_=Math.sqrt(Math.pow(b-e.x,2)+Math.pow(y-e.y,2));_>t||(_<o?(s=[{...g,x:b,y}],o=_):_===o&&s.push({...g,x:b,y}))}}if(!s.length)return null;if(s.length>1){const f=a.type==="source"?"target":"source";return s.find(p=>p.type===f)??s[0]}return s[0]}function SN(e,t,r,a,s,o=!1){var f,p,g;const c=a.get(e);if(!c)return null;const d=s==="strict"?(f=c.internals.handleBounds)==null?void 0:f[t]:[...((p=c.internals.handleBounds)==null?void 0:p.source)??[],...((g=c.internals.handleBounds)==null?void 0:g.target)??[]],h=(r?d==null?void 0:d.find(b=>b.id===r):d==null?void 0:d[0])??null;return h&&o?{...h,...Qa(c,h,h.position,!0)}:h}function kN(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function DI(e,t){let r=null;return t?r=!0:e&&!t&&(r=!1),r}const CN=()=>!0;function LI(e,{connectionMode:t,connectionRadius:r,handleId:a,nodeId:s,edgeUpdaterType:o,isTarget:c,domNode:d,nodeLookup:h,lib:f,autoPanOnConnect:p,flowId:g,panBy:b,cancelConnection:y,onConnectStart:_,onConnect:N,onConnectEnd:S,isValidConnection:w=CN,onReconnectEnd:C,updateConnection:E,getTransform:A,getFromHandle:B,autoPanSpeed:R,dragThreshold:H=1,handleDomNode:z}){const Y=mN(e.target);let j=0,I;const{x:Z,y:P}=jr(e),k=kN(o,z),$=d==null?void 0:d.getBoundingClientRect();let O=!1;if(!$||!k)return;const U=SN(s,k,a,h,t);if(!U)return;let K=jr(e,$),X=!1,M=null,L=!1,F=null;function D(){if(!p||!$)return;const[fe,xe]=cg(K,$,R);b({x:fe,y:xe}),j=requestAnimationFrame(D)}const V={...U,nodeId:s,type:k,position:U.position},q=h.get(s);let J={inProgress:!0,isValid:null,from:Qa(q,V,ze.Left,!0),fromHandle:V,fromPosition:V.position,fromNode:q,to:K,toHandle:null,toPosition:c1[V.position],toNode:null,pointer:K};function W(){O=!0,E(J),_==null||_(e,{nodeId:s,handleId:a,handleType:k})}H===0&&W();function te(fe){if(!O){const{x:st,y:Rt}=jr(fe),Xt=st-Z,Ft=Rt-P;if(!(Xt*Xt+Ft*Ft>H*H))return;W()}if(!B()||!V){oe(fe);return}const xe=A();K=jr(fe,$),I=jI($o(K,xe,!1,[1,1]),r,h,V),X||(D(),X=!0);const we=TN(fe,{handle:I,connectionMode:t,fromNodeId:s,fromHandleId:a,fromType:c?"target":"source",isValidConnection:w,doc:Y,lib:f,flowId:g,nodeLookup:h});F=we.handleDomNode,M=we.connection,L=DI(!!I,we.isValid);const Ne=h.get(s),De=Ne?Qa(Ne,V,ze.Left,!0):J.from,$e={...J,from:De,isValid:L,to:we.toHandle&&L?Js({x:we.toHandle.x,y:we.toHandle.y},xe):K,toHandle:we.toHandle,toPosition:L&&we.toHandle?we.toHandle.position:c1[V.position],toNode:we.toHandle?h.get(we.toHandle.nodeId):null,pointer:K};E($e),J=$e}function oe(fe){if(!("touches"in fe&&fe.touches.length>0)){if(O){(I||F)&&M&&L&&(N==null||N(M));const{inProgress:xe,...we}=J,Ne={...we,toPosition:J.toHandle?J.toPosition:null};S==null||S(fe,Ne),o&&(C==null||C(fe,Ne))}y(),cancelAnimationFrame(j),X=!1,L=!1,M=null,F=null,Y.removeEventListener("mousemove",te),Y.removeEventListener("mouseup",oe),Y.removeEventListener("touchmove",te),Y.removeEventListener("touchend",oe)}}Y.addEventListener("mousemove",te),Y.addEventListener("mouseup",oe),Y.addEventListener("touchmove",te),Y.addEventListener("touchend",oe)}function TN(e,{handle:t,connectionMode:r,fromNodeId:a,fromHandleId:s,fromType:o,doc:c,lib:d,flowId:h,isValidConnection:f=CN,nodeLookup:p}){const g=o==="target",b=t?c.querySelector(`.${d}-flow__handle[data-id="${h}-${t==null?void 0:t.nodeId}-${t==null?void 0:t.id}-${t==null?void 0:t.type}"]`):null,{x:y,y:_}=jr(e),N=c.elementFromPoint(y,_),S=N!=null&&N.classList.contains(`${d}-flow__handle`)?N:b,w={handleDomNode:S,isValid:!1,connection:null,toHandle:null};if(S){const C=kN(void 0,S),E=S.getAttribute("data-nodeid"),A=S.getAttribute("data-handleid"),B=S.classList.contains("connectable"),R=S.classList.contains("connectableend");if(!E||!C)return w;const H={source:g?E:a,sourceHandle:g?A:s,target:g?a:E,targetHandle:g?s:A};w.connection=H;const Y=B&&R&&(r===Qs.Strict?g&&C==="source"||!g&&C==="target":E!==a||A!==s);w.isValid=Y&&f(H),w.toHandle=SN(E,C,A,p,r,!0)}return w}const xp={onPointerDown:LI,isValid:TN};function zI({domNode:e,panZoom:t,getTransform:r,getViewScale:a}){const s=ir(e);function o({translateExtent:d,width:h,height:f,zoomStep:p=1,pannable:g=!0,zoomable:b=!0,inversePan:y=!1}){const _=E=>{if(E.sourceEvent.type!=="wheel"||!t)return;const A=r(),B=E.sourceEvent.ctrlKey&&Co()?10:1,R=-E.sourceEvent.deltaY*(E.sourceEvent.deltaMode===1?.05:E.sourceEvent.deltaMode?1:.002)*p,H=A[2]*Math.pow(2,R*B);t.scaleTo(H)};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 A=r();if(E.sourceEvent.type!=="mousemove"&&E.sourceEvent.type!=="touchmove"||!t)return;const B=[E.sourceEvent.clientX??E.sourceEvent.touches[0].clientX,E.sourceEvent.clientY??E.sourceEvent.touches[0].clientY],R=[B[0]-N[0],B[1]-N[1]];N=B;const H=a()*Math.max(A[2],Math.log(A[2]))*(y?-1:1),z={x:A[0]-R[0]*H,y:A[1]-R[1]*H},Y=[[0,0],[h,f]];t.setViewportConstrained({x:z.x,y:z.y,zoom:A[2]},Y,d)},C=tN().on("start",S).on("zoom",g?w:null).on("zoom.wheel",b?_:null);s.call(C,{})}function c(){s.on("zoom",null)}return{update:o,destroy:c,pointer:Ar}}const ld=e=>({x:e.x,y:e.y,zoom:e.k}),Cm=({x:e,y:t,zoom:r})=>id.translate(e,t).scale(r),$s=(e,t)=>e.target.closest(`.${t}`),AN=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),II=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,Tm=(e,t=0,r=II,a=()=>{})=>{const s=typeof t=="number"&&t>0;return s||a(),s?e.transition().duration(t).ease(r).on("end",a):e},MN=e=>{const t=e.ctrlKey&&Co()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function BI({zoomPanValues:e,noWheelClassName:t,d3Selection:r,d3Zoom:a,panOnScrollMode:s,panOnScrollSpeed:o,zoomOnPinch:c,onPanZoomStart:d,onPanZoom:h,onPanZoomEnd:f}){return p=>{if($s(p,t))return p.ctrlKey&&p.preventDefault(),!1;p.preventDefault(),p.stopImmediatePropagation();const g=r.property("__zoom").k||1;if(p.ctrlKey&&c){const S=Ar(p),w=MN(p),C=g*Math.pow(2,w);a.scaleTo(r,C,S,p);return}const b=p.deltaMode===1?20:1;let y=s===Fa.Vertical?0:p.deltaX*b,_=s===Fa.Horizontal?0:p.deltaY*b;!Co()&&p.shiftKey&&s!==Fa.Vertical&&(y=p.deltaY*b,_=0),a.translateBy(r,-(y/g)*o,-(_/g)*o,{internal:!0});const N=ld(r.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?h==null||h(p,N):(e.isPanScrolling=!0,d==null||d(p,N)),e.panScrollTimeout=setTimeout(()=>{f==null||f(p,N),e.isPanScrolling=!1},150)}}function UI({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:r}){return function(a,s){const o=a.type==="wheel",c=!t&&o&&!a.ctrlKey,d=$s(a,e);if(a.ctrlKey&&o&&d&&a.preventDefault(),c||d)return null;a.preventDefault(),r.call(this,a,s)}}function HI({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:r}){return a=>{var o,c,d;if((o=a.sourceEvent)!=null&&o.internal)return;const s=ld(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 $I({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:r,onTransformChange:a,onPanZoom:s}){return o=>{var c,d;e.usedRightMouseButton=!!(r&&AN(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,ld(o.transform)))}}function qI({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&&AN(t,e.mouseButton??0)&&!e.usedRightMouseButton&&c.sourceEvent&&o(c.sourceEvent),e.usedRightMouseButton=!1,a(!1),s)){const h=ld(c.transform);e.prevViewport=h,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{s==null||s(c.sourceEvent,h)},r?150:0)}}}function PI({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:r,panOnDrag:a,panOnScroll:s,zoomOnDoubleClick:o,userSelectionActive:c,noWheelClassName:d,noPanClassName:h,lib:f,connectionInProgress:p}){return g=>{var S;const b=e||t,y=r&&g.ctrlKey,_=g.type==="wheel";if(g.button===1&&g.type==="mousedown"&&($s(g,`${f}-flow__node`)||$s(g,`${f}-flow__edge`)))return!0;if(!a&&!b&&!s&&!o&&!r||c||p&&!_||$s(g,d)&&_||$s(g,h)&&(!_||s&&_&&!e)||!r&&g.ctrlKey&&_)return!1;if(!r&&g.type==="touchstart"&&((S=g.touches)==null?void 0:S.length)>1)return g.preventDefault(),!1;if(!b&&!s&&!y&&_||!a&&(g.type==="mousedown"||g.type==="touchstart")||Array.isArray(a)&&!a.includes(g.button)&&g.type==="mousedown")return!1;const N=Array.isArray(a)&&a.includes(g.button)||!g.button||g.button<=1;return(!g.ctrlKey||_)&&N}}function FI({domNode:e,minZoom:t,maxZoom:r,translateExtent:a,viewport:s,onPanZoom:o,onPanZoomStart:c,onPanZoomEnd:d,onDraggingChange:h}){const f={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},p=e.getBoundingClientRect();let g=[[0,0],[p.width,p.height]];const b=typeof ResizeObserver<"u"?new ResizeObserver(P=>{const k=P[0];k&&(g=[[0,0],[k.contentRect.width,k.contentRect.height]])}):null;b==null||b.observe(e);const y=tN().extent(()=>g).scaleExtent([t,r]).translateExtent(a),_=ir(e).call(y);A({x:s.x,y:s.y,zoom:Ws(s.zoom,t,r)},[[0,0],[p.width,p.height]],a);const N=_.on("wheel.zoom"),S=_.on("dblclick.zoom");y.wheelDelta(MN);async function w(P,k){return _?new Promise($=>{y==null||y.interpolate((k==null?void 0:k.interpolate)==="linear"?fo:_u).transform(Tm(_,k==null?void 0:k.duration,k==null?void 0:k.ease,()=>$(!0)),P)}):!1}function C({noWheelClassName:P,noPanClassName:k,onPaneContextMenu:$,userSelectionActive:O,panOnScroll:U,panOnDrag:K,panOnScrollMode:X,panOnScrollSpeed:M,preventScrolling:L,zoomOnPinch:F,zoomOnScroll:D,zoomOnDoubleClick:V,zoomActivationKeyPressed:q,lib:Q,onTransformChange:J,connectionInProgress:W,paneClickDistance:te,selectionOnDrag:oe}){O&&!f.isZoomingOrPanning&&E();const fe=U&&!q&&!O;y.clickDistance(oe?1/0:!Rr(te)||te<0?0:te);const xe=fe?BI({zoomPanValues:f,noWheelClassName:P,d3Selection:_,d3Zoom:y,panOnScrollMode:X,panOnScrollSpeed:M,zoomOnPinch:F,onPanZoomStart:c,onPanZoom:o,onPanZoomEnd:d}):UI({noWheelClassName:P,preventScrolling:L,d3ZoomHandler:N});_.on("wheel.zoom",xe,{passive:!1});const we=HI({zoomPanValues:f,onDraggingChange:h,onPanZoomStart:c});y.on("start",we);const Ne=$I({zoomPanValues:f,panOnDrag:K,onPaneContextMenu:!!$,onPanZoom:o,onTransformChange:J});y.on("zoom",Ne);const De=qI({zoomPanValues:f,panOnDrag:K,panOnScroll:U,onPaneContextMenu:$,onPanZoomEnd:d,onDraggingChange:h});y.on("end",De);const $e=PI({zoomActivationKeyPressed:q,panOnDrag:K,zoomOnScroll:D,panOnScroll:U,zoomOnDoubleClick:V,zoomOnPinch:F,userSelectionActive:O,noPanClassName:k,noWheelClassName:P,lib:Q,connectionInProgress:W});y.filter($e),V?_.on("dblclick.zoom",S):_.on("dblclick.zoom",null)}function E(){y.on("zoom",null)}async function A(P,k,$){const O=Cm(P),U=y==null?void 0:y.constrain()(O,k,$);return U&&await w(U),U}async function B(P,k){const $=Cm(P);return await w($,k),$}function R(P){if(_){const k=Cm(P),$=_.property("__zoom");($.k!==P.zoom||$.x!==P.x||$.y!==P.y)&&(y==null||y.transform(_,k,null,{sync:!0}))}}function H(){const P=_?eN(_.node()):{x:0,y:0,k:1};return{x:P.x,y:P.y,zoom:P.k}}async function z(P,k){return _?new Promise($=>{y==null||y.interpolate((k==null?void 0:k.interpolate)==="linear"?fo:_u).scaleTo(Tm(_,k==null?void 0:k.duration,k==null?void 0:k.ease,()=>$(!0)),P)}):!1}async function Y(P,k){return _?new Promise($=>{y==null||y.interpolate((k==null?void 0:k.interpolate)==="linear"?fo:_u).scaleBy(Tm(_,k==null?void 0:k.duration,k==null?void 0:k.ease,()=>$(!0)),P)}):!1}function j(P){y==null||y.scaleExtent(P)}function I(P){y==null||y.translateExtent(P)}function Z(P){const k=!Rr(P)||P<0?0:P;y==null||y.clickDistance(k)}return{update:C,destroy:E,setViewport:B,setViewportConstrained:A,getViewport:H,scaleTo:z,scaleBy:Y,setScaleExtent:j,setTranslateExtent:I,syncViewport:R,setClickDistance:Z}}var el;(function(e){e.Line="line",e.Handle="handle"})(el||(el={}));function GI({width:e,prevWidth:t,height:r,prevHeight:a,affectsX:s,affectsY:o}){const c=e-t,d=r-a,h=[c>0?1:c<0?-1:0,d>0?1:d<0?-1:0];return c&&s&&(h[0]=h[0]*-1),d&&o&&(h[1]=h[1]*-1),h}function w1(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 sa(e,t){return Math.max(0,t-e)}function la(e,t){return Math.max(0,e-t)}function hu(e,t,r){return Math.max(0,t-e,e-r)}function E1(e,t){return e?!t:t}function VI(e,t,r,a,s,o,c,d){let{affectsX:h,affectsY:f}=t;const{isHorizontal:p,isVertical:g}=t,b=p&&g,{xSnapped:y,ySnapped:_}=r,{minWidth:N,maxWidth:S,minHeight:w,maxHeight:C}=a,{x:E,y:A,width:B,height:R,aspectRatio:H}=e;let z=Math.floor(p?y-e.pointerX:0),Y=Math.floor(g?_-e.pointerY:0);const j=B+(h?-z:z),I=R+(f?-Y:Y),Z=-o[0]*B,P=-o[1]*R;let k=hu(j,N,S),$=hu(I,w,C);if(c){let K=0,X=0;h&&z<0?K=sa(E+z+Z,c[0][0]):!h&&z>0&&(K=la(E+j+Z,c[1][0])),f&&Y<0?X=sa(A+Y+P,c[0][1]):!f&&Y>0&&(X=la(A+I+P,c[1][1])),k=Math.max(k,K),$=Math.max($,X)}if(d){let K=0,X=0;h&&z>0?K=la(E+z,d[0][0]):!h&&z<0&&(K=sa(E+j,d[1][0])),f&&Y>0?X=la(A+Y,d[0][1]):!f&&Y<0&&(X=sa(A+I,d[1][1])),k=Math.max(k,K),$=Math.max($,X)}if(s){if(p){const K=hu(j/H,w,C)*H;if(k=Math.max(k,K),c){let X=0;!h&&!f||h&&!f&&b?X=la(A+P+j/H,c[1][1])*H:X=sa(A+P+(h?z:-z)/H,c[0][1])*H,k=Math.max(k,X)}if(d){let X=0;!h&&!f||h&&!f&&b?X=sa(A+j/H,d[1][1])*H:X=la(A+(h?z:-z)/H,d[0][1])*H,k=Math.max(k,X)}}if(g){const K=hu(I*H,N,S)/H;if($=Math.max($,K),c){let X=0;!h&&!f||f&&!h&&b?X=la(E+I*H+Z,c[1][0])/H:X=sa(E+(f?Y:-Y)*H+Z,c[0][0])/H,$=Math.max($,X)}if(d){let X=0;!h&&!f||f&&!h&&b?X=sa(E+I*H,d[1][0])/H:X=la(E+(f?Y:-Y)*H,d[0][0])/H,$=Math.max($,X)}}}Y=Y+(Y<0?$:-$),z=z+(z<0?k:-k),s&&(b?j>I*H?Y=(E1(h,f)?-z:z)/H:z=(E1(h,f)?-Y:Y)*H:p?(Y=z/H,f=h):(z=Y*H,h=f));const O=h?E+z:E,U=f?A+Y:A;return{width:B+(h?-z:z),height:R+(f?-Y:Y),x:o[0]*z*(h?-1:1)+O,y:o[1]*Y*(f?-1:1)+U}}const ON={width:0,height:0,x:0,y:0},YI={...ON,pointerX:0,pointerY:0,aspectRatio:1};function XI(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,h=r[1]*c;return[[a-d,s-h],[a+o-d,s+c-h]]}function KI({domNode:e,nodeId:t,getStoreItems:r,onChange:a,onEnd:s}){const o=ir(e);let c={controlDirection:w1("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function d({controlPosition:f,boundaries:p,keepAspectRatio:g,resizeDirection:b,onResizeStart:y,onResize:_,onResizeEnd:N,shouldResize:S}){let w={...ON},C={...YI};c={boundaries:p,resizeDirection:b,keepAspectRatio:g,controlDirection:w1(f)};let E,A=null,B=[],R,H,z,Y=!1;const j=HE().on("start",I=>{const{nodeLookup:Z,transform:P,snapGrid:k,snapToGrid:$,nodeOrigin:O,paneDomNode:U}=r();if(E=Z.get(t),!E)return;A=(U==null?void 0:U.getBoundingClientRect())??null;const{xSnapped:K,ySnapped:X}=ho(I.sourceEvent,{transform:P,snapGrid:k,snapToGrid:$,containerBounds:A});w={width:E.measured.width??0,height:E.measured.height??0,x:E.position.x??0,y:E.position.y??0},C={...w,pointerX:K,pointerY:X,aspectRatio:w.width/w.height},R=void 0,H=Za(E.extent)?E.extent:void 0,E.parentId&&(E.extent==="parent"||E.expandParent)&&(R=Z.get(E.parentId)),R&&E.extent==="parent"&&(H=[[0,0],[R.measured.width,R.measured.height]]),B=[],z=void 0;for(const[M,L]of Z)if(L.parentId===t&&(B.push({id:M,position:{...L.position},extent:L.extent}),L.extent==="parent"||L.expandParent)){const F=XI(L,E,L.origin??O);z?z=[[Math.min(F[0][0],z[0][0]),Math.min(F[0][1],z[0][1])],[Math.max(F[1][0],z[1][0]),Math.max(F[1][1],z[1][1])]]:z=F}y==null||y(I,{...w})}).on("drag",I=>{const{transform:Z,snapGrid:P,snapToGrid:k,nodeOrigin:$}=r(),O=ho(I.sourceEvent,{transform:Z,snapGrid:P,snapToGrid:k,containerBounds:A}),U=[];if(!E)return;const{x:K,y:X,width:M,height:L}=w,F={},D=E.origin??$,{width:V,height:q,x:Q,y:J}=VI(C,c.controlDirection,O,c.boundaries,c.keepAspectRatio,D,H,z),W=V!==M,te=q!==L,oe=Q!==K&&W,fe=J!==X&&te;if(!oe&&!fe&&!W&&!te)return;if((oe||fe||D[0]===1||D[1]===1)&&(F.x=oe?Q:w.x,F.y=fe?J:w.y,w.x=F.x,w.y=F.y,B.length>0)){const De=Q-K,$e=J-X;for(const st of B)st.position={x:st.position.x-De+D[0]*(V-M),y:st.position.y-$e+D[1]*(q-L)},U.push(st)}if((W||te)&&(F.width=W&&(!c.resizeDirection||c.resizeDirection==="horizontal")?V:w.width,F.height=te&&(!c.resizeDirection||c.resizeDirection==="vertical")?q:w.height,w.width=F.width,w.height=F.height),R&&E.expandParent){const De=D[0]*(F.width??0);F.x&&F.x<De&&(w.x=De,C.x=C.x-(F.x-De));const $e=D[1]*(F.height??0);F.y&&F.y<$e&&(w.y=$e,C.y=C.y-(F.y-$e))}const xe=GI({width:w.width,prevWidth:M,height:w.height,prevHeight:L,affectsX:c.controlDirection.affectsX,affectsY:c.controlDirection.affectsY}),we={...w,direction:xe};(S==null?void 0:S(I,we))!==!1&&(Y=!0,_==null||_(I,we),a(F,U))}).on("end",I=>{Y&&(N==null||N(I,{...w}),s==null||s({...w}),Y=!1)});o.call(j)}function h(){o.on(".drag",null)}return{update:d,destroy:h}}var Am={exports:{}},Mm={},Om={exports:{}},Rm={};/**
* @license React
* use-sync-external-store-shim.production.js
*
@@ -471,7 +471,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`),Ht=ye,ft=Le),Qe===void
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
- */var N1;function KI(){if(N1)return Rm;N1=1;var e=Oo();function t(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var r=typeof Object.is=="function"?Object.is:t,a=e.useState,s=e.useEffect,o=e.useLayoutEffect,c=e.useDebugValue;function d(g,b){var y=b(),_=a({inst:{value:y,getSnapshot:b}}),N=_[0].inst,S=_[1];return o(function(){N.value=y,N.getSnapshot=b,h(N)&&S({inst:N})},[g,y,b]),s(function(){return h(N)&&S({inst:N}),g(function(){h(N)&&S({inst:N})})},[g]),c(y),y}function h(g){var b=g.getSnapshot;g=g.value;try{var y=b();return!r(g,y)}catch{return!0}}function f(g,b){return b()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:d;return Rm.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,Rm}var S1;function ZI(){return S1||(S1=1,Om.exports=KI()),Om.exports}/**
+ */var N1;function ZI(){if(N1)return Rm;N1=1;var e=Oo();function t(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var r=typeof Object.is=="function"?Object.is:t,a=e.useState,s=e.useEffect,o=e.useLayoutEffect,c=e.useDebugValue;function d(g,b){var y=b(),_=a({inst:{value:y,getSnapshot:b}}),N=_[0].inst,S=_[1];return o(function(){N.value=y,N.getSnapshot=b,h(N)&&S({inst:N})},[g,y,b]),s(function(){return h(N)&&S({inst:N}),g(function(){h(N)&&S({inst:N})})},[g]),c(y),y}function h(g){var b=g.getSnapshot;g=g.value;try{var y=b();return!r(g,y)}catch{return!0}}function f(g,b){return b()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:d;return Rm.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,Rm}var S1;function QI(){return S1||(S1=1,Om.exports=ZI()),Om.exports}/**
* @license React
* use-sync-external-store-shim/with-selector.production.js
*
@@ -479,34 +479,34 @@ https://github.com/highlightjs/highlight.js/issues/2277`),Ht=ye,ft=Le),Qe===void
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
- */var k1;function QI(){if(k1)return Mm;k1=1;var e=Oo(),t=ZI();function r(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var a=typeof Object.is=="function"?Object.is:r,s=t.useSyncExternalStore,o=e.useRef,c=e.useEffect,d=e.useMemo,h=e.useDebugValue;return Mm.useSyncExternalStoreWithSelector=function(f,p,g,b,y){var _=o(null);if(_.current===null){var N={hasValue:!1,value:null};_.current=N}else N=_.current;_=d(function(){function w(R){if(!C){if(C=!0,E=R,R=b(R),y!==void 0&&N.hasValue){var H=N.value;if(y(H,R))return A=H}return A=R}if(H=A,a(E,R))return H;var z=b(R);return y!==void 0&&y(H,z)?(E=R,H):(E=R,A=z)}var C=!1,E,A,B=g===void 0?null:g;return[function(){return w(p())},B===null?void 0:function(){return w(B())}]},[p,g,b,y]);var S=s(f,_[0],_[1]);return c(function(){N.hasValue=!0,N.value=S},[S]),h(S),S},Mm}var C1;function WI(){return C1||(C1=1,Am.exports=QI()),Am.exports}var JI=WI();const e8=Mo(JI),t8={},T1=e=>{let t;const r=new Set,a=(p,g)=>{const b=typeof p=="function"?p(t):p;if(!Object.is(b,t)){const y=t;t=g??(typeof b!="object"||b===null)?b:Object.assign({},t,b),r.forEach(_=>_(t,y))}},s=()=>t,h={setState:a,getState:s,getInitialState:()=>f,subscribe:p=>(r.add(p),()=>r.delete(p)),destroy:()=>{(t8?"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()}},f=t=e(a,s,h);return h},n8=e=>e?T1(e):T1,{useDebugValue:r8}=fa,{useSyncExternalStoreWithSelector:i8}=e8,a8=e=>e;function ON(e,t=a8,r){const a=i8(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return r8(a),a}const A1=(e,t)=>{const r=n8(e),a=(s,o=t)=>ON(r,s,o);return Object.assign(a,r),a},s8=(e,t)=>e?A1(e,t):A1;function Pt(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}z_();const ld=ee.createContext(null),l8=ld.Provider,RN=Lr.error001("react");function dt(e,t){const r=ee.useContext(ld);if(r===null)throw new Error(RN);return ON(r,e,t)}function Lt(){const e=ee.useContext(ld);if(e===null)throw new Error(RN);return ee.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const M1={display:"none"},o8={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},jN="react-flow__node-desc",DN="react-flow__edge-desc",c8="react-flow__aria-live",u8=e=>e.ariaLiveMessage,d8=e=>e.ariaLabelConfig;function f8({rfId:e}){const t=dt(u8);return m.jsx("div",{id:`${c8}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:o8,children:t})}function h8({rfId:e,disableKeyboardA11y:t}){const r=dt(d8);return m.jsxs(m.Fragment,{children:[m.jsx("div",{id:`${jN}-${e}`,style:M1,children:t?r["node.a11yDescription.default"]:r["node.a11yDescription.keyboardDisabled"]}),m.jsx("div",{id:`${DN}-${e}`,style:M1,children:r["edge.a11yDescription.default"]}),!t&&m.jsx(f8,{rfId:e})]})}const od=ee.forwardRef(({position:e="top-left",children:t,className:r,style:a,...s},o)=>{const c=`${e}`.split("-");return m.jsx("div",{className:on(["react-flow__panel",r,...c]),style:a,ref:o,...s,children:t})});od.displayName="Panel";const O1="https://reactflow.dev?utm_source=attribution";function m8({proOptions:e,position:t="bottom-right"}){return e!=null&&e.hideAttribution?null:m.jsx(od,{position:t,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${O1}`,children:m.jsx("a",{href:O1,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const p8=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}},hu=e=>e.id;function g8(e,t){return Pt(e.selectedNodes.map(hu),t.selectedNodes.map(hu))&&Pt(e.selectedEdges.map(hu),t.selectedEdges.map(hu))}function x8({onSelectionChange:e}){const t=Lt(),{selectedNodes:r,selectedEdges:a}=dt(p8,g8);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 b8=e=>!!e.onSelectionChangeHandlers;function y8({onSelectionChange:e}){const t=dt(b8);return e||t?m.jsx(x8,{onSelectionChange:e}):null}const LN=[0,0],v8={x:0,y:0,zoom:1},_8=["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"],R1=[..._8,"rfId"],w8=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}),j1={translateExtent:No,nodeOrigin:LN,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function E8(e){const{setNodes:t,setEdges:r,setMinZoom:a,setMaxZoom:s,setTranslateExtent:o,setNodeExtent:c,reset:d,setDefaultNodesAndEdges:h}=dt(w8,Pt),f=Lt();ee.useEffect(()=>(h(e.defaultNodes,e.defaultEdges),()=>{p.current=j1,d()}),[]);const p=ee.useRef(j1);return ee.useEffect(()=>{for(const g of R1){const b=e[g],y=p.current[g];b!==y&&(typeof e[g]>"u"||(g==="nodes"?t(b):g==="edges"?r(b):g==="minZoom"?a(b):g==="maxZoom"?s(b):g==="translateExtent"?o(b):g==="nodeExtent"?c(b):g==="ariaLabelConfig"?f.setState({ariaLabelConfig:lI(b)}):g==="fitView"?f.setState({fitViewQueued:b}):g==="fitViewOptions"?f.setState({fitViewOptions:b}):f.setState({[g]:b})))}p.current=e},R1.map(g=>e[g])),null}function D1(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function N8(e){var a;const[t,r]=ee.useState(e==="system"?null:e);return ee.useEffect(()=>{if(e!=="system"){r(e);return}const s=D1(),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=D1())!=null&&a.matches?"dark":"light"}const L1=typeof document<"u"?document:null;function To(e=null,t={target:L1,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 f=(Array.isArray(e)?e:[e]).filter(g=>typeof g=="string").map(g=>g.replace("+",`
+ */var k1;function WI(){if(k1)return Mm;k1=1;var e=Oo(),t=QI();function r(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var a=typeof Object.is=="function"?Object.is:r,s=t.useSyncExternalStore,o=e.useRef,c=e.useEffect,d=e.useMemo,h=e.useDebugValue;return Mm.useSyncExternalStoreWithSelector=function(f,p,g,b,y){var _=o(null);if(_.current===null){var N={hasValue:!1,value:null};_.current=N}else N=_.current;_=d(function(){function w(R){if(!C){if(C=!0,E=R,R=b(R),y!==void 0&&N.hasValue){var H=N.value;if(y(H,R))return A=H}return A=R}if(H=A,a(E,R))return H;var z=b(R);return y!==void 0&&y(H,z)?(E=R,H):(E=R,A=z)}var C=!1,E,A,B=g===void 0?null:g;return[function(){return w(p())},B===null?void 0:function(){return w(B())}]},[p,g,b,y]);var S=s(f,_[0],_[1]);return c(function(){N.hasValue=!0,N.value=S},[S]),h(S),S},Mm}var C1;function JI(){return C1||(C1=1,Am.exports=WI()),Am.exports}var e8=JI();const t8=Mo(e8),n8={},T1=e=>{let t;const r=new Set,a=(p,g)=>{const b=typeof p=="function"?p(t):p;if(!Object.is(b,t)){const y=t;t=g??(typeof b!="object"||b===null)?b:Object.assign({},t,b),r.forEach(_=>_(t,y))}},s=()=>t,h={setState:a,getState:s,getInitialState:()=>f,subscribe:p=>(r.add(p),()=>r.delete(p)),destroy:()=>{(n8?"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()}},f=t=e(a,s,h);return h},r8=e=>e?T1(e):T1,{useDebugValue:i8}=fa,{useSyncExternalStoreWithSelector:a8}=t8,s8=e=>e;function RN(e,t=s8,r){const a=a8(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return i8(a),a}const A1=(e,t)=>{const r=r8(e),a=(s,o=t)=>RN(r,s,o);return Object.assign(a,r),a},l8=(e,t)=>e?A1(e,t):A1;function Pt(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}I_();const od=ee.createContext(null),o8=od.Provider,jN=Lr.error001("react");function dt(e,t){const r=ee.useContext(od);if(r===null)throw new Error(jN);return RN(r,e,t)}function Lt(){const e=ee.useContext(od);if(e===null)throw new Error(jN);return ee.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const M1={display:"none"},c8={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},DN="react-flow__node-desc",LN="react-flow__edge-desc",u8="react-flow__aria-live",d8=e=>e.ariaLiveMessage,f8=e=>e.ariaLabelConfig;function h8({rfId:e}){const t=dt(d8);return m.jsx("div",{id:`${u8}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:c8,children:t})}function m8({rfId:e,disableKeyboardA11y:t}){const r=dt(f8);return m.jsxs(m.Fragment,{children:[m.jsx("div",{id:`${DN}-${e}`,style:M1,children:t?r["node.a11yDescription.default"]:r["node.a11yDescription.keyboardDisabled"]}),m.jsx("div",{id:`${LN}-${e}`,style:M1,children:r["edge.a11yDescription.default"]}),!t&&m.jsx(h8,{rfId:e})]})}const cd=ee.forwardRef(({position:e="top-left",children:t,className:r,style:a,...s},o)=>{const c=`${e}`.split("-");return m.jsx("div",{className:on(["react-flow__panel",r,...c]),style:a,ref:o,...s,children:t})});cd.displayName="Panel";const O1="https://reactflow.dev?utm_source=attribution";function p8({proOptions:e,position:t="bottom-right"}){return e!=null&&e.hideAttribution?null:m.jsx(cd,{position:t,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${O1}`,children:m.jsx("a",{href:O1,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const g8=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}},mu=e=>e.id;function x8(e,t){return Pt(e.selectedNodes.map(mu),t.selectedNodes.map(mu))&&Pt(e.selectedEdges.map(mu),t.selectedEdges.map(mu))}function b8({onSelectionChange:e}){const t=Lt(),{selectedNodes:r,selectedEdges:a}=dt(g8,x8);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 y8=e=>!!e.onSelectionChangeHandlers;function v8({onSelectionChange:e}){const t=dt(y8);return e||t?m.jsx(b8,{onSelectionChange:e}):null}const zN=[0,0],_8={x:0,y:0,zoom:1},w8=["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"],R1=[...w8,"rfId"],E8=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}),j1={translateExtent:No,nodeOrigin:zN,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:h}=dt(E8,Pt),f=Lt();ee.useEffect(()=>(h(e.defaultNodes,e.defaultEdges),()=>{p.current=j1,d()}),[]);const p=ee.useRef(j1);return ee.useEffect(()=>{for(const g of R1){const b=e[g],y=p.current[g];b!==y&&(typeof e[g]>"u"||(g==="nodes"?t(b):g==="edges"?r(b):g==="minZoom"?a(b):g==="maxZoom"?s(b):g==="translateExtent"?o(b):g==="nodeExtent"?c(b):g==="ariaLabelConfig"?f.setState({ariaLabelConfig:oI(b)}):g==="fitView"?f.setState({fitViewQueued:b}):g==="fitViewOptions"?f.setState({fitViewOptions:b}):f.setState({[g]:b})))}p.current=e},R1.map(g=>e[g])),null}function D1(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function S8(e){var a;const[t,r]=ee.useState(e==="system"?null:e);return ee.useEffect(()=>{if(e!=="system"){r(e);return}const s=D1(),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=D1())!=null&&a.matches?"dark":"light"}const L1=typeof document<"u"?document:null;function To(e=null,t={target:L1,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 f=(Array.isArray(e)?e:[e]).filter(g=>typeof g=="string").map(g=>g.replace("+",`
`).replace(`
`,`
+`).split(`
-`)),p=f.reduce((g,b)=>g.concat(...b),[]);return[f,p]}return[[],[]]},[e]);return ee.useEffect(()=>{const h=(t==null?void 0:t.target)??L1,f=(t==null?void 0:t.actInsideInputWithModifier)??!0;if(e!==null){const p=y=>{var S,w;if(s.current=y.ctrlKey||y.metaKey||y.shiftKey||y.altKey,(!s.current||s.current&&!f)&&mN(y))return!1;const N=I1(y.code,d);if(o.current.add(y[N]),z1(c,o.current,!1)){const C=((w=(S=y.composedPath)==null?void 0:S.call(y))==null?void 0:w[0])||y.target,E=(C==null?void 0:C.nodeName)==="BUTTON"||(C==null?void 0:C.nodeName)==="A";t.preventDefault!==!1&&(s.current||!E)&&y.preventDefault(),a(!0)}},g=y=>{const _=I1(y.code,d);z1(c,o.current,!0)?(a(!1),o.current.clear()):o.current.delete(y[_]),y.key==="Meta"&&o.current.clear(),s.current=!1},b=()=>{o.current.clear(),a(!1)};return h==null||h.addEventListener("keydown",p),h==null||h.addEventListener("keyup",g),window.addEventListener("blur",b),window.addEventListener("contextmenu",b),()=>{h==null||h.removeEventListener("keydown",p),h==null||h.removeEventListener("keyup",g),window.removeEventListener("blur",b),window.removeEventListener("contextmenu",b)}}},[e,a]),r}function z1(e,t,r){return e.filter(a=>r||a.length===t.size).some(a=>a.every(s=>t.has(s)))}function I1(e,t){return t.includes(e)?"code":"key"}const S8=()=>{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(),h=ug(t,a,s,o,c,(r==null?void 0:r.padding)??.1);return d?(await d.setViewport(h,{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:h}=c.getBoundingClientRect(),f={x:t.x-d,y:t.y-h},p=r.snapGrid??s,g=r.snapToGrid??o;return $o(f,a,g,p)},flowToScreenPosition:t=>{const{transform:r,domNode:a}=e.getState();if(!a)return t;const{x:s,y:o}=a.getBoundingClientRect(),c=Js(t,r);return{x:c.x+s,y:c.y+o}}}),[])};function zN(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 h of c)k8(h,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 k8(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 IN(e,t){return zN(e,t)}function BN(e,t){return zN(e,t)}function Ha(e,t){return{id:e,type:"select",selected:t}}function qs(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(Ha(o.id,c)))}return a}function B1({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),h=((s=d==null?void 0:d.internals)==null?void 0:s.userNode)??d;h!==void 0&&h!==c&&r.push({id:c.id,item:c,type:"replace"}),h===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 U1(e){return{id:e.id,type:"remove"}}const C8=uN();function T8(e,t,r={}){return hI(e,t,{...r,onError:r.onError??C8})}const H1=e=>Wz(e),A8=e=>aN(e);function UN(e){return ee.forwardRef(e)}const HN=typeof window<"u"?ee.useLayoutEffect:ee.useEffect;function $1(e){const[t,r]=ee.useState(BigInt(0)),[a]=ee.useState(()=>M8(()=>r(s=>s+BigInt(1))));return HN(()=>{const s=a.get();s.length&&(e(s),a.reset())},[t]),a}function M8(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:r=>{t.push(r),e()}}}const $N=ee.createContext(null);function O8({children:e}){const t=Lt(),r=ee.useCallback(d=>{const{nodes:h=[],setNodes:f,hasDefaultNodes:p,onNodesChange:g,nodeLookup:b,fitViewQueued:y,onNodesChangeMiddlewareMap:_}=t.getState();let N=h;for(const w of d)N=typeof w=="function"?w(N):w;let S=B1({items:N,lookup:b});for(const w of _.values())S=w(S);p&&f(N),S.length>0?g==null||g(S):y&&window.requestAnimationFrame(()=>{const{fitViewQueued:w,nodes:C,setNodes:E}=t.getState();w&&E(C)})},[]),a=$1(r),s=ee.useCallback(d=>{const{edges:h=[],setEdges:f,hasDefaultEdges:p,onEdgesChange:g,edgeLookup:b}=t.getState();let y=h;for(const _ of d)y=typeof _=="function"?_(y):_;p?f(y):g&&g(B1({items:y,lookup:b}))},[]),o=$1(s),c=ee.useMemo(()=>({nodeQueue:a,edgeQueue:o}),[]);return m.jsx($N.Provider,{value:c,children:e})}function R8(){const e=ee.useContext($N);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const j8=e=>!!e.panZoom;function qo(){const e=S8(),t=Lt(),r=R8(),a=dt(j8),s=ee.useMemo(()=>{const o=g=>t.getState().nodeLookup.get(g),c=g=>{r.nodeQueue.push(g)},d=g=>{r.edgeQueue.push(g)},h=g=>{var w,C;const{nodeLookup:b,nodeOrigin:y}=t.getState(),_=H1(g)?g:b.get(g.id),N=_.parentId?fN(_.position,_.measured,_.parentId,b,y):_.position,S={..._,position:N,width:((w=_.measured)==null?void 0:w.width)??_.width,height:((C=_.measured)==null?void 0:C.height)??_.height};return ko(S)},f=(g,b,y={replace:!1})=>{c(_=>_.map(N=>{if(N.id===g){const S=typeof b=="function"?b(N):b;return y.replace&&H1(S)?S:{...N,...S}}return N}))},p=(g,b,y={replace:!1})=>{d(_=>_.map(N=>{if(N.id===g){const S=typeof b=="function"?b(N):b;return y.replace&&A8(S)?S:{...N,...S}}return N}))};return{getNodes:()=>t.getState().nodes.map(g=>({...g})),getNode:g=>{var b;return(b=o(g))==null?void 0:b.internals.userNode},getInternalNode:o,getEdges:()=>{const{edges:g=[]}=t.getState();return g.map(b=>({...b}))},getEdge:g=>t.getState().edgeLookup.get(g),setNodes:c,setEdges:d,addNodes:g=>{const b=Array.isArray(g)?g:[g];r.nodeQueue.push(y=>[...y,...b])},addEdges:g=>{const b=Array.isArray(g)?g:[g];r.edgeQueue.push(y=>[...y,...b])},toObject:()=>{const{nodes:g=[],edges:b=[],transform:y}=t.getState(),[_,N,S]=y;return{nodes:g.map(w=>({...w})),edges:b.map(w=>({...w})),viewport:{x:_,y:N,zoom:S}}},deleteElements:async({nodes:g=[],edges:b=[]})=>{const{nodes:y,edges:_,onNodesDelete:N,onEdgesDelete:S,triggerNodeChanges:w,triggerEdgeChanges:C,onDelete:E,onBeforeDelete:A}=t.getState(),{nodes:B,edges:R}=await rI({nodesToRemove:g,edgesToRemove:b,nodes:y,edges:_,onBeforeDelete:A}),H=R.length>0,z=B.length>0;if(H){const Y=R.map(U1);S==null||S(R),C(Y)}if(z){const Y=B.map(U1);N==null||N(B),w(Y)}return(z||H)&&(E==null||E({nodes:B,edges:R})),{deletedNodes:B,deletedEdges:R}},getIntersectingNodes:(g,b=!0,y)=>{const _=d1(g),N=_?g:h(g),S=y!==void 0;return N?(y||t.getState().nodes).filter(w=>{const C=t.getState().nodeLookup.get(w.id);if(C&&!_&&(w.id===g.id||!C.internals.positionAbsolute))return!1;const E=ko(S?w:C),A=Uu(E,N);return b&&A>0||A>=E.width*E.height||A>=N.width*N.height}):[]},isNodeIntersecting:(g,b,y=!0)=>{const N=d1(g)?g:h(g);if(!N)return!1;const S=Uu(N,b);return y&&S>0||S>=b.width*b.height||S>=N.width*N.height},updateNode:f,updateNodeData:(g,b,y={replace:!1})=>{f(g,_=>{const N=typeof b=="function"?b(_):b;return y.replace?{..._,data:N}:{..._,data:{..._.data,...N}}},y)},updateEdge:p,updateEdgeData:(g,b,y={replace:!1})=>{p(g,_=>{const N=typeof b=="function"?b(_):b;return y.replace?{..._,data:N}:{..._,data:{..._.data,...N}}},y)},getNodesBounds:g=>{const{nodeLookup:b,nodeOrigin:y}=t.getState();return Jz(g,{nodeLookup:b,nodeOrigin:y})},getHandleConnections:({type:g,id:b,nodeId:y})=>{var _;return Array.from(((_=t.getState().connectionLookup.get(`${y}-${g}${b?`-${b}`:""}`))==null?void 0:_.values())??[])},getNodeConnections:({type:g,handleId:b,nodeId:y})=>{var _;return Array.from(((_=t.getState().connectionLookup.get(`${y}${g?b?`-${g}-${b}`:`-${g}`:""}`))==null?void 0:_.values())??[])},fitView:async g=>{const b=t.getState().fitViewResolver??sI();return t.setState({fitViewQueued:!0,fitViewOptions:g,fitViewResolver:b}),r.nodeQueue.push(y=>[...y]),b.promise}}},[]);return ee.useMemo(()=>({...s,...e,viewportInitialized:a}),[a])}const q1=e=>e.selected,D8=typeof window<"u"?window:void 0;function L8({deleteKeyCode:e,multiSelectionKeyCode:t}){const r=Lt(),{deleteElements:a}=qo(),s=To(e,{actInsideInputWithModifier:!1}),o=To(t,{target:D8});ee.useEffect(()=>{if(s){const{edges:c,nodes:d}=r.getState();a({nodes:d.filter(q1),edges:c.filter(q1)}),r.setState({nodesSelectionActive:!1})}},[s]),ee.useEffect(()=>{r.setState({multiSelectionActive:o})},[o])}function z8(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=dg(e.current);(a.height===0||a.width===0)&&((d=(c=t.getState()).onError)==null||d.call(c,"004",Lr.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 cd={position:"absolute",width:"100%",height:"100%",top:0,left:0},I8=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=Fa.Free,zoomOnDoubleClick:c=!0,panOnDrag:d=!0,defaultViewport:h,translateExtent:f,minZoom:p,maxZoom:g,zoomActivationKeyCode:b,preventScrolling:y=!0,children:_,noWheelClassName:N,noPanClassName:S,onViewportChange:w,isControlledViewport:C,paneClickDistance:E,selectionOnDrag:A}){const B=Lt(),R=ee.useRef(null),{userSelectionActive:H,lib:z,connectionInProgress:Y}=dt(I8,Pt),j=To(b),I=ee.useRef();z8(R);const Z=ee.useCallback(P=>{w==null||w({x:P[0],y:P[1],zoom:P[2]}),C||B.setState({transform:P})},[w,C]);return ee.useEffect(()=>{if(R.current){I.current=PI({domNode:R.current,minZoom:p,maxZoom:g,translateExtent:f,viewport:h,onDraggingChange:O=>B.setState(U=>U.paneDragging===O?U:{paneDragging:O}),onPanZoomStart:(O,U)=>{const{onViewportChangeStart:K,onMoveStart:X}=B.getState();X==null||X(O,U),K==null||K(U)},onPanZoom:(O,U)=>{const{onViewportChange:K,onMove:X}=B.getState();X==null||X(O,U),K==null||K(U)},onPanZoomEnd:(O,U)=>{const{onViewportChangeEnd:K,onMoveEnd:X}=B.getState();X==null||X(O,U),K==null||K(U)}});const{x:P,y:k,zoom:$}=I.current.getViewport();return B.setState({panZoom:I.current,transform:[P,k,$],domNode:R.current.closest(".react-flow")}),()=>{var O;(O=I.current)==null||O.destroy()}}},[]),ee.useEffect(()=>{var P;(P=I.current)==null||P.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:r,panOnScroll:a,panOnScrollSpeed:s,panOnScrollMode:o,zoomOnDoubleClick:c,panOnDrag:d,zoomActivationKeyPressed:j,preventScrolling:y,noPanClassName:S,userSelectionActive:H,noWheelClassName:N,lib:z,onTransformChange:Z,connectionInProgress:Y,selectionOnDrag:A,paneClickDistance:E})},[e,t,r,a,s,o,c,d,j,y,S,H,N,z,Z,Y,A,E]),m.jsx("div",{className:"react-flow__renderer",ref:R,style:cd,children:_})}const U8=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function H8(){const{userSelectionActive:e,userSelectionRect:t}=dt(U8,Pt);return e&&t?m.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 jm=(e,t)=>r=>{r.target===t.current&&(e==null||e(r))},$8=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,dragging:e.paneDragging,panBy:e.panBy,autoPanSpeed:e.autoPanSpeed});function q8({isSelecting:e,selectionKeyPressed:t,selectionMode:r=So.Full,panOnDrag:a,autoPanOnSelection:s,paneClickDistance:o,selectionOnDrag:c,onSelectionStart:d,onSelectionEnd:h,onPaneClick:f,onPaneContextMenu:p,onPaneScroll:g,onPaneMouseEnter:b,onPaneMouseMove:y,onPaneMouseLeave:_,children:N}){const S=ee.useRef(0),w=Lt(),{userSelectionActive:C,elementsSelectable:E,dragging:A,panBy:B,autoPanSpeed:R}=dt($8,Pt),H=E&&(e||C),z=ee.useRef(null),Y=ee.useRef(),j=ee.useRef(new Set),I=ee.useRef(new Set),Z=ee.useRef(!1),P=ee.useRef(!1),k=ee.useRef({x:0,y:0}),$=ee.useRef(!1),O=W=>{if(P.current||Z.current||w.getState().connection.inProgress){P.current=!1,Z.current=!1;return}f==null||f(W),w.getState().resetSelectedElements(),w.setState({nodesSelectionActive:!1})},U=W=>{if(Array.isArray(a)&&(a!=null&&a.includes(2))){W.preventDefault();return}p==null||p(W)},K=g?W=>g(W):void 0,X=W=>{P.current&&(W.stopPropagation(),P.current=!1)},M=W=>{var st,Rt;const{domNode:te,transform:oe}=w.getState();if(Y.current=te==null?void 0:te.getBoundingClientRect(),!Y.current)return;const fe=W.target===z.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),P.current=!1;const{x:Ne,y:De}=jr(W.nativeEvent,Y.current),$e=$o({x:Ne,y:De},oe);w.setState({userSelectionRect:{width:0,height:0,startX:$e.x,startY:$e.y,x:Ne,y:De}}),fe||(W.stopPropagation(),W.preventDefault())};function L(W,te){const{userSelectionRect:oe}=w.getState();if(!oe)return;const{transform:fe,nodeLookup:xe,edgeLookup:we,connectionLookup:Ne,triggerNodeChanges:De,triggerEdgeChanges:$e,defaultEdgeOptions:st}=w.getState(),Rt={x:oe.startX,y:oe.startY},{x:Xt,y:Ft}=Js(Rt,fe),Kt={startX:Rt.x,startY:Rt.y,x:W<Xt?W:Xt,y:te<Ft?te:Ft,width:Math.abs(W-Xt),height:Math.abs(te-Ft)},Yn=j.current,Nn=I.current;j.current=new Set(og(xe,Kt,fe,r===So.Partial,!0).map(It=>It.id)),I.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:be}of ue.values()){const Oe=we.get(be);Oe&&(Oe.selectable??ct)&&I.current.add(be)}}if(!f1(Yn,j.current)){const It=qs(xe,j.current,!0);De(It)}if(!f1(Nn,I.current)){const It=qs(we,I.current);$e(It)}w.setState({userSelectionRect:Kt,userSelectionActive:!0,nodesSelectionActive:!1})}function F(){if(!s||!Y.current)return;const[W,te]=cg(k.current,Y.current,R);B({x:W,y:te}).then(oe=>{if(!P.current||!oe){S.current=requestAnimationFrame(F);return}const{x:fe,y:xe}=k.current;L(fe,xe),S.current=requestAnimationFrame(F)})}const D=()=>{cancelAnimationFrame(S.current),S.current=0,$.current=!1};ee.useEffect(()=>()=>D(),[]);const V=W=>{const{userSelectionRect:te,transform:oe,resetSelectedElements:fe}=w.getState();if(!Y.current||!te)return;const{x:xe,y:we}=jr(W.nativeEvent,Y.current);k.current={x:xe,y:we};const Ne=Js({x:te.startX,y:te.startY},oe);if(!P.current){const De=t?0:o;if(Math.hypot(xe-Ne.x,we-Ne.y)<=De)return;fe(),d==null||d(W)}P.current=!0,$.current||(F(),$.current=!0),L(xe,we)},q=W=>{var te,oe;if(!H){W.target===z.current&&w.getState().connection.inProgress&&(Z.current=!0);return}W.button===0&&((oe=(te=W.target)==null?void 0:te.releasePointerCapture)==null||oe.call(te,W.pointerId),!C&&W.target===z.current&&w.getState().userSelectionRect&&(O==null||O(W)),w.setState({userSelectionActive:!1,userSelectionRect:null}),P.current&&(h==null||h(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 m.jsxs("div",{className:on(["react-flow__pane",{draggable:J,dragging:A,selection:e}]),onClick:H?void 0:jm(O,z),onContextMenu:jm(U,z),onWheel:jm(K,z),onPointerEnter:H?void 0:b,onPointerMove:H?V:y,onPointerUp:q,onPointerCancel:H?Q:void 0,onPointerDownCapture:H?M:void 0,onClickCapture:H?X:void 0,onPointerLeave:_,ref:z,style:cd,children:[N,m.jsx(H8,{})]})}function bp({id:e,store:t,unselect:r=!1,nodeRef:a}){const{addSelectedNodes:s,unselectNodesAndEdges:o,multiSelectionActive:c,nodeLookup:d,onError:h}=t.getState(),f=d.get(e);if(!f){h==null||h("012",Lr.error012(e));return}t.setState({nodesSelectionActive:!1}),f.selected?(r||f.selected&&c)&&(o({nodes:[f],edges:[]}),requestAnimationFrame(()=>{var p;return(p=a==null?void 0:a.current)==null?void 0:p.blur()})):s([e])}function qN({nodeRef:e,disabled:t=!1,noDragClassName:r,handleSelector:a,nodeId:s,isSelectable:o,nodeClickDistance:c}){const d=Lt(),[h,f]=ee.useState(!1),p=ee.useRef();return ee.useEffect(()=>{if(!t)return p.current=AI({getStoreItems:()=>d.getState(),onNodeMouseDown:g=>{bp({id:g,store:d,nodeRef:e})},onDragStart:()=>{f(!0)},onDragStop:()=>{f(!1)}}),()=>{var g;(g=p.current)==null||g.destroy(),p.current=void 0}},[t,d,e]),ee.useEffect(()=>{t||!e.current||!p.current||p.current.update({noDragClassName:r,handleSelector:a,domNode:e.current,isSelectable:o,nodeId:s,nodeClickDistance:c})},[r,a,t,o,e,s,c]),h}const P8=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function PN(){const e=Lt();return ee.useCallback(r=>{const{nodeExtent:a,snapToGrid:s,snapGrid:o,nodesDraggable:c,onError:d,updateNodePositions:h,nodeLookup:f,nodeOrigin:p}=e.getState(),g=new Map,b=P8(c),y=s?o[0]:5,_=s?o[1]:5,N=r.direction.x*y*r.factor,S=r.direction.y*_*r.factor;for(const[,w]of f){if(!b(w))continue;let C={x:w.internals.positionAbsolute.x+N,y:w.internals.positionAbsolute.y+S};s&&(C=Ho(C,o));const{position:E,positionAbsolute:A}=sN({nodeId:w.id,nextPosition:C,nodeLookup:f,nodeExtent:a,nodeOrigin:p,onError:d});w.position=E,w.internals.positionAbsolute=A,g.set(w.id,w)}h(g)},[])}const xg=ee.createContext(null),F8=xg.Provider;xg.Consumer;const FN=()=>ee.useContext(xg),G8=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),GN=ee.createContext(null);function V8({children:e}){const t=dt(G8,Pt);return m.jsx(GN.Provider,{value:t,children:e})}function Y8(){const e=ee.useContext(GN);if(!e)throw new Error("useHandleConfig must be used within a HandleConfigProvider");return e}const X8={connectingFrom:!1,connectingTo:!1,clickConnecting:!1,isPossibleEndHandle:!0,connectionInProcess:!1,clickConnectionInProcess:!1,valid:!1},K8=(e,t,r)=>a=>{const{connectionClickStartHandle:s,connectionMode:o,connection:c}=a,{fromHandle:d,toHandle:h,isValid:f}=c;if(!d&&!s)return X8;const p=(h==null?void 0:h.nodeId)===e&&(h==null?void 0:h.id)===t&&(h==null?void 0:h.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:p,clickConnecting:(s==null?void 0:s.nodeId)===e&&(s==null?void 0:s.id)===t&&(s==null?void 0:s.type)===r,isPossibleEndHandle:o===Qs.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:p&&f}};function Z8({type:e="source",position:t=ze.Top,isValidConnection:r,isConnectable:a=!0,isConnectableStart:s=!0,isConnectableEnd:o=!0,id:c,onConnect:d,children:h,className:f,onMouseDown:p,onTouchStart:g,...b},y){var $,O;const _=c||null,N=e==="target",S=Lt(),w=FN(),{connectOnClick:C,noPanClassName:E,rfId:A}=Y8(),{connectingFrom:B,connectingTo:R,clickConnecting:H,isPossibleEndHandle:z,connectionInProcess:Y,clickConnectionInProcess:j,valid:I}=dt(K8(w,_,e),Pt);w||(O=($=S.getState()).onError)==null||O.call($,"010",Lr.error010());const Z=U=>{const{defaultEdgeOptions:K,onConnect:X,hasDefaultEdges:M}=S.getState(),L={...K,...U};if(M){const{edges:F,setEdges:D,onError:V}=S.getState();D(T8(L,F,{onError:V}))}X==null||X(L),d==null||d(L)},P=U=>{if(!w)return;const K=pN(U.nativeEvent);if(s&&(K&&U.button===0||!K)){const X=S.getState();xp.onPointerDown(U.nativeEvent,{handleDomNode:U.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:(...M)=>{var L,F;return(F=(L=S.getState()).onConnectEnd)==null?void 0:F.call(L,...M)},updateConnection:X.updateConnection,onConnect:Z,isValidConnection:r||((...M)=>{var L,F;return((F=(L=S.getState()).isValidConnection)==null?void 0:F.call(L,...M))??!0}),getTransform:()=>S.getState().transform,getFromHandle:()=>S.getState().connection.fromHandle,autoPanSpeed:X.autoPanSpeed,dragThreshold:X.connectionDragThreshold})}K?p==null||p(U):g==null||g(U)},k=U=>{const{onClickConnectStart:K,onClickConnectEnd:X,connectionClickStartHandle:M,connectionMode:L,isValidConnection:F,lib:D,rfId:V,nodeLookup:q,connection:Q}=S.getState();if(!w||!M&&!s)return;if(!M){K==null||K(U.nativeEvent,{nodeId:w,handleId:_,handleType:e}),S.setState({connectionClickStartHandle:{nodeId:w,type:e,id:_}});return}const J=hN(U.target),W=r||F,{connection:te,isValid:oe}=xp.isValid(U.nativeEvent,{handle:{nodeId:w,id:_,type:e},connectionMode:L,fromNodeId:M.nodeId,fromHandleId:M.id||null,fromType:M.type,isValidConnection:W,flowId:V,doc:J,lib:D,nodeLookup:q});oe&&te&&Z(te);const fe=structuredClone(Q);delete fe.inProgress,fe.toPosition=fe.toHandle?fe.toHandle.position:null,X==null||X(U,fe),S.setState({connectionClickStartHandle:null})};return m.jsx("div",{"data-handleid":_,"data-nodeid":w,"data-handlepos":t,"data-id":`${A}-${w}-${_}-${e}`,className:on(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",E,f,{source:!N,target:N,connectable:a,connectablestart:s,connectableend:o,clickconnecting:H,connectingfrom:B,connectingto:R,valid:I,connectionindicator:a&&(!Y||z)&&(Y||j?o:s)}]),onMouseDown:P,onTouchStart:P,onClick:C?k:void 0,ref:y,...b,children:h})}const tl=ee.memo(UN(Z8));function Q8({data:e,isConnectable:t,sourcePosition:r=ze.Bottom}){return m.jsxs(m.Fragment,{children:[e==null?void 0:e.label,m.jsx(tl,{type:"source",position:r,isConnectable:t})]})}function W8({data:e,isConnectable:t,targetPosition:r=ze.Top,sourcePosition:a=ze.Bottom}){return m.jsxs(m.Fragment,{children:[m.jsx(tl,{type:"target",position:r,isConnectable:t}),e==null?void 0:e.label,m.jsx(tl,{type:"source",position:a,isConnectable:t})]})}function J8(){return null}function e9({data:e,isConnectable:t,targetPosition:r=ze.Top}){return m.jsxs(m.Fragment,{children:[m.jsx(tl,{type:"target",position:r,isConnectable:t}),e==null?void 0:e.label]})}const Hu={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},P1={input:Q8,default:W8,output:e9,group:J8};function t9(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 n9=e=>{const{width:t,height:r,x:a,y:s}=Uo(e.nodeLookup,{filter:o=>!!o.selected});return{width:Rr(t)?t:null,height:Rr(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 r9({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:r}){const a=Lt(),{width:s,height:o,transformString:c,userSelectionActive:d}=dt(n9,Pt),h=PN(),f=ee.useRef(null);ee.useEffect(()=>{var y;r||(y=f.current)==null||y.focus({preventScroll:!0})},[r]);const p=!d&&s!==null&&o!==null;if(qN({nodeRef:f,disabled:!p}),!p)return null;const g=e?y=>{const _=a.getState().nodes.filter(N=>N.selected);e(y,_)}:void 0,b=y=>{Object.prototype.hasOwnProperty.call(Hu,y.key)&&(y.preventDefault(),h({direction:Hu[y.key],factor:y.shiftKey?4:1}))};return m.jsx("div",{className:on(["react-flow__nodesselection","react-flow__container",t]),style:{transform:c},children:m.jsx("div",{ref:f,className:"react-flow__nodesselection-rect",onContextMenu:g,tabIndex:r?void 0:-1,onKeyDown:r?void 0:b,style:{width:s,height:o}})})}const F1=typeof window<"u"?window:void 0,i9=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function VN({children:e,onPaneClick:t,onPaneMouseEnter:r,onPaneMouseMove:a,onPaneMouseLeave:s,onPaneContextMenu:o,onPaneScroll:c,paneClickDistance:d,deleteKeyCode:h,selectionKeyCode:f,selectionOnDrag:p,selectionMode:g,onSelectionStart:b,onSelectionEnd:y,multiSelectionKeyCode:_,panActivationKeyCode:N,zoomActivationKeyCode:S,elementsSelectable:w,zoomOnScroll:C,zoomOnPinch:E,panOnScroll:A,panOnScrollSpeed:B,panOnScrollMode:R,zoomOnDoubleClick:H,panOnDrag:z,autoPanOnSelection:Y,defaultViewport:j,translateExtent:I,minZoom:Z,maxZoom:P,preventScrolling:k,onSelectionContextMenu:$,noWheelClassName:O,noPanClassName:U,disableKeyboardA11y:K,onViewportChange:X,isControlledViewport:M}){const{nodesSelectionActive:L,userSelectionActive:F}=dt(i9,Pt),D=To(f,{target:F1}),V=To(N,{target:F1}),q=V||z,Q=V||A,J=p&&q!==!0,W=D||F||J;return L8({deleteKeyCode:h,multiSelectionKeyCode:_}),m.jsx(B8,{onPaneContextMenu:o,elementsSelectable:w,zoomOnScroll:C,zoomOnPinch:E,panOnScroll:Q,panOnScrollSpeed:B,panOnScrollMode:R,zoomOnDoubleClick:H,panOnDrag:!D&&q,defaultViewport:j,translateExtent:I,minZoom:Z,maxZoom:P,zoomActivationKeyCode:S,preventScrolling:k,noWheelClassName:O,noPanClassName:U,onViewportChange:X,isControlledViewport:M,paneClickDistance:d,selectionOnDrag:J,children:m.jsxs(q8,{onSelectionStart:b,onSelectionEnd:y,onPaneClick:t,onPaneMouseEnter:r,onPaneMouseMove:a,onPaneMouseLeave:s,onPaneContextMenu:o,onPaneScroll:c,panOnDrag:q,autoPanOnSelection:Y,isSelecting:!!W,selectionMode:g,selectionKeyPressed:D,paneClickDistance:d,selectionOnDrag:J,children:[e,L&&m.jsx(r9,{onSelectionContextMenu:$,noPanClassName:U,disableKeyboardA11y:K})]})})}VN.displayName="FlowRenderer";const a9=ee.memo(VN),s9=e=>t=>e?og(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 l9(e){return dt(ee.useCallback(s9(e),[e]),Pt)}const o9=e=>e.updateNodeInternals;function c9(){const e=dt(o9),[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 u9({node:e,nodeType:t,hasDimensions:r,resizeObserver:a}){const s=Lt(),o=ee.useRef(null),c=ee.useRef(null),d=ee.useRef(e.sourcePosition),h=ee.useRef(e.targetPosition),f=ee.useRef(t),p=r&&!!e.internals.handleBounds;return ee.useEffect(()=>{o.current&&!e.hidden&&(!p||c.current!==o.current)&&(c.current&&(a==null||a.unobserve(c.current)),a==null||a.observe(o.current),c.current=o.current)},[p,e.hidden]),ee.useEffect(()=>()=>{c.current&&(a==null||a.unobserve(c.current),c.current=null)},[]),ee.useEffect(()=>{if(o.current){const g=f.current!==t,b=d.current!==e.sourcePosition,y=h.current!==e.targetPosition;(g||b||y)&&(f.current=t,d.current=e.sourcePosition,h.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 d9({id:e,onClick:t,onMouseEnter:r,onMouseMove:a,onMouseLeave:s,onContextMenu:o,onDoubleClick:c,nodesDraggable:d,elementsSelectable:h,nodesConnectable:f,nodesFocusable:p,resizeObserver:g,noDragClassName:b,noPanClassName:y,disableKeyboardA11y:_,rfId:N,nodeTypes:S,nodeClickDistance:w,onError:C}){const{node:E,internals:A,isParent:B}=dt(W=>{const te=W.nodeLookup.get(e),oe=W.parentLookup.has(e);return{node:te,internals:te.internals,isParent:oe}},Pt);let R=E.type||"default",H=(S==null?void 0:S[R])||P1[R];H===void 0&&(C==null||C("003",Lr.error003(R)),R="default",H=(S==null?void 0:S.default)||P1.default);const z=!!(E.draggable||d&&typeof E.draggable>"u"),Y=!!(E.selectable||h&&typeof E.selectable>"u"),j=!!(E.connectable||f&&typeof E.connectable>"u"),I=!!(E.focusable||p&&typeof E.focusable>"u"),Z=Lt(),P=dN(E),k=u9({node:E,nodeType:R,hasDimensions:P,resizeObserver:g}),$=qN({nodeRef:k,disabled:E.hidden||!z,noDragClassName:b,handleSelector:E.dragHandle,nodeId:e,isSelectable:Y,nodeClickDistance:w}),O=PN();if(E.hidden)return null;const U=Qr(E),K=t9(E),X=Y||z||t||r||a||s,M=r?W=>r(W,{...A.userNode}):void 0,L=a?W=>a(W,{...A.userNode}):void 0,F=s?W=>s(W,{...A.userNode}):void 0,D=o?W=>o(W,{...A.userNode}):void 0,V=c?W=>c(W,{...A.userNode}):void 0,q=W=>{const{selectNodesOnDrag:te,nodeDragThreshold:oe}=Z.getState();Y&&(!te||!z||oe>0)&&bp({id:e,store:Z,nodeRef:k}),t&&t(W,{...A.userNode})},Q=W=>{if(!(mN(W.nativeEvent)||_)){if(tN.includes(W.key)&&Y){const te=W.key==="Escape";bp({id:e,store:Z,unselect:te,nodeRef:k})}else if(z&&E.selected&&Object.prototype.hasOwnProperty.call(Hu,W.key)){W.preventDefault();const{ariaLabelConfig:te}=Z.getState();Z.setState({ariaLiveMessage:te["node.a11yDescription.ariaLiveMessage"]({direction:W.key.replace("Arrow","").toLowerCase(),x:~~A.positionAbsolute.x,y:~~A.positionAbsolute.y})}),O({direction:Hu[W.key],factor:W.shiftKey?4:1})}}},J=()=>{var Ne;if(_||!((Ne=k.current)!=null&&Ne.matches(":focus-visible")))return;const{transform:W,width:te,height:oe,autoPanOnNodeFocus:fe,setCenter:xe}=Z.getState();if(!fe)return;og(new Map([[e,E]]),{x:0,y:0,width:te,height:oe},W,!0).length>0||xe(E.position.x+U.width/2,E.position.y+U.height/2,{zoom:W[2]})};return m.jsx("div",{className:on(["react-flow__node",`react-flow__node-${R}`,{[y]:z},E.className,{selected:E.selected,selectable:Y,parent:B,draggable:z,dragging:$}]),ref:k,style:{zIndex:A.z,transform:`translate(${A.positionAbsolute.x}px,${A.positionAbsolute.y}px)`,pointerEvents:X?"all":"none",visibility:P?"visible":"hidden",...E.style,...K},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:M,onMouseMove:L,onMouseLeave:F,onContextMenu:D,onClick:q,onDoubleClick:V,onKeyDown:I?Q:void 0,tabIndex:I?0:void 0,onFocus:I?J:void 0,role:E.ariaRole??(I?"group":void 0),"aria-roledescription":"node","aria-describedby":_?void 0:`${jN}-${N}`,"aria-label":E.ariaLabel,...E.domAttributes,children:m.jsx(F8,{value:e,children:m.jsx(H,{id:e,data:E.data,type:R,positionAbsoluteX:A.positionAbsolute.x,positionAbsoluteY:A.positionAbsolute.y,selected:E.selected??!1,selectable:Y,draggable:z,deletable:E.deletable??!0,isConnectable:j,sourcePosition:E.sourcePosition,targetPosition:E.targetPosition,dragging:$,dragHandle:E.dragHandle,zIndex:A.z,parentId:E.parentId,...U})})})}var f9=ee.memo(d9);const h9=e=>({nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function YN(e){const{nodesConnectable:t,nodesFocusable:r,elementsSelectable:a,onError:s}=dt(h9,Pt),o=l9(e.onlyRenderVisibleElements),c=c9();return m.jsx("div",{className:"react-flow__nodes",style:cd,children:o.map(d=>m.jsx(f9,{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))})}YN.displayName="NodeRenderer";const m9=ee.memo(YN);function p9(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&&uI({sourceNode:o,targetNode:c,width:r.width,height:r.height,transform:r.transform})&&a.push(s.id)}return a},[e]),Pt)}const g9=({color:e="none",strokeWidth:t=1})=>{const r={strokeWidth:t,...e&&{stroke:e}};return m.jsx("polyline",{className:"arrow",style:r,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},x9=({color:e="none",strokeWidth:t=1})=>{const r={strokeWidth:t,...e&&{stroke:e,fill:e}};return m.jsx("polyline",{className:"arrowclosed",style:r,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},G1={[Iu.Arrow]:g9,[Iu.ArrowClosed]:x9};function b9(e){const t=Lt();return ee.useMemo(()=>{var s,o;return Object.prototype.hasOwnProperty.call(G1,e)?G1[e]:((o=(s=t.getState()).onError)==null||o.call(s,"009",Lr.error009(e)),null)},[e])}const y9=({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 h=b9(t);return h?m.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:m.jsx(h,{color:r,strokeWidth:c})}):null},XN=({defaultColor:e,rfId:t})=>{const r=dt(o=>o.edges),a=dt(o=>o.defaultEdgeOptions),s=ee.useMemo(()=>bI(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?m.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:m.jsx("defs",{children:s.map(o=>m.jsx(y9,{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};XN.displayName="MarkerDefinitions";var v9=ee.memo(XN);function KN({x:e,y:t,label:r,labelStyle:a,labelShowBg:s=!0,labelBgStyle:o,labelBgPadding:c=[2,4],labelBgBorderRadius:d=2,children:h,className:f,...p}){const[g,b]=ee.useState({x:1,y:0,width:0,height:0}),y=on(["react-flow__edge-textwrapper",f]),_=ee.useRef(null);return ee.useEffect(()=>{if(_.current){const N=_.current.getBBox();b({x:N.x,y:N.y,width:N.width,height:N.height})}},[r]),r?m.jsxs("g",{transform:`translate(${e-g.width/2} ${t-g.height/2})`,className:y,visibility:g.width?"visible":"hidden",...p,children:[s&&m.jsx("rect",{width:g.width+2*c[0],x:-c[0],y:-c[1],height:g.height+2*c[1],className:"react-flow__edge-textbg",style:o,rx:d,ry:d}),m.jsx("text",{className:"react-flow__edge-text",y:g.height/2,dy:"0.3em",ref:_,style:a,children:r}),h]}):null}KN.displayName="EdgeText";const _9=ee.memo(KN);function ud({path:e,labelX:t,labelY:r,label:a,labelStyle:s,labelShowBg:o,labelBgStyle:c,labelBgPadding:d,labelBgBorderRadius:h,interactionWidth:f=20,...p}){return m.jsxs(m.Fragment,{children:[m.jsx("path",{...p,d:e,fill:"none",className:on(["react-flow__edge-path",p.className])}),f?m.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:f,className:"react-flow__edge-interaction"}):null,a&&Rr(t)&&Rr(r)?m.jsx(_9,{x:t,y:r,label:a,labelStyle:s,labelShowBg:o,labelBgStyle:c,labelBgPadding:d,labelBgBorderRadius:h}):null]})}function V1({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 ZN({sourceX:e,sourceY:t,sourcePosition:r=ze.Bottom,targetX:a,targetY:s,targetPosition:o=ze.Top}){const[c,d]=V1({pos:r,x1:e,y1:t,x2:a,y2:s}),[h,f]=V1({pos:o,x1:a,y1:s,x2:e,y2:t}),[p,g,b,y]=gN({sourceX:e,sourceY:t,targetX:a,targetY:s,sourceControlX:c,sourceControlY:d,targetControlX:h,targetControlY:f});return[`M${e},${t} C${c},${d} ${h},${f} ${a},${s}`,p,g,b,y]}function QN(e){return ee.memo(({id:t,sourceX:r,sourceY:a,targetX:s,targetY:o,sourcePosition:c,targetPosition:d,label:h,labelStyle:f,labelShowBg:p,labelBgStyle:g,labelBgPadding:b,labelBgBorderRadius:y,style:_,markerEnd:N,markerStart:S,interactionWidth:w})=>{const[C,E,A]=ZN({sourceX:r,sourceY:a,sourcePosition:c,targetX:s,targetY:o,targetPosition:d}),B=e.isInternal?void 0:t;return m.jsx(ud,{id:B,path:C,labelX:E,labelY:A,label:h,labelStyle:f,labelShowBg:p,labelBgStyle:g,labelBgPadding:b,labelBgBorderRadius:y,style:_,markerEnd:N,markerStart:S,interactionWidth:w})})}const w9=QN({isInternal:!1}),WN=QN({isInternal:!0});w9.displayName="SimpleBezierEdge";WN.displayName="SimpleBezierEdgeInternal";function JN(e){return ee.memo(({id:t,sourceX:r,sourceY:a,targetX:s,targetY:o,label:c,labelStyle:d,labelShowBg:h,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:g,style:b,sourcePosition:y=ze.Bottom,targetPosition:_=ze.Top,markerEnd:N,markerStart:S,pathOptions:w,interactionWidth:C})=>{const[E,A,B]=mp({sourceX:r,sourceY:a,sourcePosition:y,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 m.jsx(ud,{id:R,path:E,labelX:A,labelY:B,label:c,labelStyle:d,labelShowBg:h,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:g,style:b,markerEnd:N,markerStart:S,interactionWidth:C})})}const e2=JN({isInternal:!1}),t2=JN({isInternal:!0});e2.displayName="SmoothStepEdge";t2.displayName="SmoothStepEdgeInternal";function n2(e){return ee.memo(({id:t,...r})=>{var s;const a=e.isInternal?void 0:t;return m.jsx(e2,{...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 E9=n2({isInternal:!1}),r2=n2({isInternal:!0});E9.displayName="StepEdge";r2.displayName="StepEdgeInternal";function i2(e){return ee.memo(({id:t,sourceX:r,sourceY:a,targetX:s,targetY:o,label:c,labelStyle:d,labelShowBg:h,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:g,style:b,markerEnd:y,markerStart:_,interactionWidth:N})=>{const[S,w,C]=yN({sourceX:r,sourceY:a,targetX:s,targetY:o}),E=e.isInternal?void 0:t;return m.jsx(ud,{id:E,path:S,labelX:w,labelY:C,label:c,labelStyle:d,labelShowBg:h,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:g,style:b,markerEnd:y,markerStart:_,interactionWidth:N})})}const N9=i2({isInternal:!1}),a2=i2({isInternal:!0});N9.displayName="StraightEdge";a2.displayName="StraightEdgeInternal";function s2(e){return ee.memo(({id:t,sourceX:r,sourceY:a,targetX:s,targetY:o,sourcePosition:c=ze.Bottom,targetPosition:d=ze.Top,label:h,labelStyle:f,labelShowBg:p,labelBgStyle:g,labelBgPadding:b,labelBgBorderRadius:y,style:_,markerEnd:N,markerStart:S,pathOptions:w,interactionWidth:C})=>{const[E,A,B]=xN({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 m.jsx(ud,{id:R,path:E,labelX:A,labelY:B,label:h,labelStyle:f,labelShowBg:p,labelBgStyle:g,labelBgPadding:b,labelBgBorderRadius:y,style:_,markerEnd:N,markerStart:S,interactionWidth:C})})}const S9=s2({isInternal:!1}),l2=s2({isInternal:!0});S9.displayName="BezierEdge";l2.displayName="BezierEdgeInternal";const Y1={default:l2,straight:a2,step:r2,smoothstep:t2,simplebezier:WN},X1={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null,zIndex:void 0},k9=(e,t,r)=>r===ze.Left?e-t:r===ze.Right?e+t:e,C9=(e,t,r)=>r===ze.Top?e-t:r===ze.Bottom?e+t:e,K1="react-flow__edgeupdater";function Z1({position:e,centerX:t,centerY:r,radius:a=10,onMouseDown:s,onMouseEnter:o,onMouseOut:c,type:d}){return m.jsx("circle",{onMouseDown:s,onMouseEnter:o,onMouseOut:c,className:on([K1,`${K1}-${d}`]),cx:k9(t,a,e),cy:C9(r,a,e),r:a,stroke:"transparent",fill:"transparent"})}function T9({isReconnectable:e,reconnectRadius:t,edge:r,sourceX:a,sourceY:s,targetX:o,targetY:c,sourcePosition:d,targetPosition:h,onReconnect:f,onReconnectStart:p,onReconnectEnd:g,setReconnecting:b,setUpdateHover:y}){const _=Lt(),N=(A,B)=>{if(A.button!==0)return;const{autoPanOnConnect:R,domNode:H,connectionMode:z,connectionRadius:Y,lib:j,onConnectStart:I,cancelConnection:Z,nodeLookup:P,rfId:k,panBy:$,updateConnection:O}=_.getState(),U=B.type==="target",K=(L,F)=>{b(!1),g==null||g(L,r,B.type,F)},X=L=>f==null?void 0:f(r,L),M=(L,F)=>{b(!0),p==null||p(A,r,B.type),I==null||I(L,F)};xp.onPointerDown(A.nativeEvent,{autoPanOnConnect:R,connectionMode:z,connectionRadius:Y,domNode:H,handleId:B.id,nodeId:B.nodeId,nodeLookup:P,isTarget:U,edgeUpdaterType:B.type,lib:j,flowId:k,cancelConnection:Z,panBy:$,isValidConnection:(...L)=>{var F,D;return((D=(F=_.getState()).isValidConnection)==null?void 0:D.call(F,...L))??!0},onConnect:X,onConnectStart:M,onConnectEnd:(...L)=>{var F,D;return(D=(F=_.getState()).onConnectEnd)==null?void 0:D.call(F,...L)},onReconnectEnd:K,updateConnection:O,getTransform:()=>_.getState().transform,getFromHandle:()=>_.getState().connection.fromHandle,dragThreshold:_.getState().connectionDragThreshold,handleDomNode:A.currentTarget})},S=A=>N(A,{nodeId:r.target,id:r.targetHandle??null,type:"target"}),w=A=>N(A,{nodeId:r.source,id:r.sourceHandle??null,type:"source"}),C=()=>y(!0),E=()=>y(!1);return m.jsxs(m.Fragment,{children:[(e===!0||e==="source")&&m.jsx(Z1,{position:d,centerX:a,centerY:s,radius:t,onMouseDown:S,onMouseEnter:C,onMouseOut:E,type:"source"}),(e===!0||e==="target")&&m.jsx(Z1,{position:h,centerX:o,centerY:c,radius:t,onMouseDown:w,onMouseEnter:C,onMouseOut:E,type:"target"})]})}function A9({id:e,edgesFocusable:t,edgesReconnectable:r,elementsSelectable:a,onClick:s,onDoubleClick:o,onContextMenu:c,onMouseEnter:d,onMouseMove:h,onMouseLeave:f,reconnectRadius:p,onReconnect:g,onReconnectStart:b,onReconnectEnd:y,rfId:_,edgeTypes:N,noPanClassName:S,onError:w,disableKeyboardA11y:C}){let E=dt(xe=>xe.edgeLookup.get(e));const A=dt(xe=>xe.defaultEdgeOptions);E=A?{...A,...E}:E;let B=E.type||"default",R=(N==null?void 0:N[B])||Y1[B];R===void 0&&(w==null||w("011",Lr.error011(B)),B="default",R=(N==null?void 0:N.default)||Y1.default);const H=!!(E.focusable||t&&typeof E.focusable>"u"),z=typeof g<"u"&&(E.reconnectable||r&&typeof E.reconnectable>"u"),Y=!!(E.selectable||a&&typeof E.selectable>"u"),j=ee.useRef(null),[I,Z]=ee.useState(!1),[P,k]=ee.useState(!1),$=Lt(),{zIndex:O=E.zIndex,sourceX:U,sourceY:K,targetX:X,targetY:M,sourcePosition:L,targetPosition:F}=dt(ee.useCallback(xe=>{const we=xe.nodeLookup.get(E.source),Ne=xe.nodeLookup.get(E.target);if(!we||!Ne)return X1;const De=xI({id:e,sourceNode:we,targetNode:Ne,sourceHandle:E.sourceHandle||null,targetHandle:E.targetHandle||null,connectionMode:xe.connectionMode,onError:w}),$e=cI({selected:E.selected,zIndex:E.zIndex,sourceNode:we,targetNode:Ne,elevateOnSelect:xe.elevateEdgesOnSelect,zIndexMode:xe.zIndexMode});return{...De||X1,zIndex:$e}},[E.source,E.target,E.sourceHandle,E.targetHandle,E.selected,E.zIndex]),Pt),D=ee.useMemo(()=>E.markerStart?`url('#${pp(E.markerStart,_)}')`:void 0,[E.markerStart,_]),V=ee.useMemo(()=>E.markerEnd?`url('#${pp(E.markerEnd,_)}')`:void 0,[E.markerEnd,_]);if(E.hidden||U===null||K===null||X===null||M===null)return null;const q=xe=>{var $e;const{addSelectedEdges:we,unselectNodesAndEdges:Ne,multiSelectionActive:De}=$.getState();Y&&($.setState({nodesSelectionActive:!1}),E.selected&&De?(Ne({nodes:[],edges:[E]}),($e=j.current)==null||$e.blur()):we([e])),s&&s(xe,E)},Q=o?xe=>{o(xe,{...E})}:void 0,J=c?xe=>{c(xe,{...E})}:void 0,W=d?xe=>{d(xe,{...E})}:void 0,te=h?xe=>{h(xe,{...E})}:void 0,oe=f?xe=>{f(xe,{...E})}:void 0,fe=xe=>{var we;if(!C&&tN.includes(xe.key)&&Y){const{unselectNodesAndEdges:Ne,addSelectedEdges:De}=$.getState();xe.key==="Escape"?((we=j.current)==null||we.blur(),Ne({edges:[E]})):De([e])}};return m.jsx("svg",{style:{zIndex:O},children:m.jsxs("g",{className:on(["react-flow__edge",`react-flow__edge-${B}`,E.className,S,{selected:E.selected,animated:E.animated,inactive:!Y&&!s,updating:I,selectable:Y}]),onClick:q,onDoubleClick:Q,onContextMenu:J,onMouseEnter:W,onMouseMove:te,onMouseLeave:oe,onKeyDown:H?fe:void 0,tabIndex:H?0:void 0,role:E.ariaRole??(H?"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":H?`${DN}-${_}`:void 0,ref:j,...E.domAttributes,children:[!P&&m.jsx(R,{id:e,source:E.source,target:E.target,type:E.type,selected:E.selected,animated:E.animated,selectable:Y,deletable:E.deletable??!0,label:E.label,labelStyle:E.labelStyle,labelShowBg:E.labelShowBg,labelBgStyle:E.labelBgStyle,labelBgPadding:E.labelBgPadding,labelBgBorderRadius:E.labelBgBorderRadius,sourceX:U,sourceY:K,targetX:X,targetY:M,sourcePosition:L,targetPosition:F,data:E.data,style:E.style,sourceHandleId:E.sourceHandle,targetHandleId:E.targetHandle,markerStart:D,markerEnd:V,pathOptions:"pathOptions"in E?E.pathOptions:void 0,interactionWidth:E.interactionWidth}),z&&m.jsx(T9,{edge:E,isReconnectable:z,reconnectRadius:p,onReconnect:g,onReconnectStart:b,onReconnectEnd:y,sourceX:U,sourceY:K,targetX:X,targetY:M,sourcePosition:L,targetPosition:F,setUpdateHover:Z,setReconnecting:k})]})})}var M9=ee.memo(A9);const O9=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function o2({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:r,edgeTypes:a,noPanClassName:s,onReconnect:o,onEdgeContextMenu:c,onEdgeMouseEnter:d,onEdgeMouseMove:h,onEdgeMouseLeave:f,onEdgeClick:p,reconnectRadius:g,onEdgeDoubleClick:b,onReconnectStart:y,onReconnectEnd:_,disableKeyboardA11y:N}){const{edgesFocusable:S,edgesReconnectable:w,elementsSelectable:C,onError:E}=dt(O9,Pt),A=p9(t);return m.jsxs("div",{className:"react-flow__edges",children:[m.jsx(v9,{defaultColor:e,rfId:r}),A.map(B=>m.jsx(M9,{id:B,edgesFocusable:S,edgesReconnectable:w,elementsSelectable:C,noPanClassName:s,onReconnect:o,onContextMenu:c,onMouseEnter:d,onMouseMove:h,onMouseLeave:f,onClick:p,reconnectRadius:g,onDoubleClick:b,onReconnectStart:y,onReconnectEnd:_,rfId:r,onError:E,edgeTypes:a,disableKeyboardA11y:N},B))]})}o2.displayName="EdgeRenderer";const R9=ee.memo(o2),Q1=e=>`translate(${e[0]}px,${e[1]}px) scale(${e[2]})`;function j9({children:e}){const t=Lt(),r=ee.useRef(null),[a]=ee.useState(()=>t.getState().transform);return HN(()=>{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=Q1(c)))};return o(),t.subscribe(o)},[t]),m.jsx("div",{ref:r,className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:Q1(a)},children:e})}function D9(e){const t=qo(),r=ee.useRef(!1);ee.useEffect(()=>{!r.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),r.current=!0)},[e,t.viewportInitialized])}const L9=e=>{var t;return(t=e.panZoom)==null?void 0:t.syncViewport};function z9(e){const t=dt(L9),r=Lt();return ee.useEffect(()=>{e&&(t==null||t(e),r.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function I9(e){return e.connection.inProgress?{...e.connection,to:$o(e.connection.to,e.transform)}:{...e.connection}}function B9(e){return I9}function U9(e){const t=B9();return dt(t,Pt)}const H9=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function $9({containerStyle:e,style:t,type:r,component:a}){const{nodesConnectable:s,width:o,height:c,isValid:d,inProgress:h}=dt(H9,Pt);return!(o&&s&&h)?null:m.jsx("svg",{style:e,width:o,height:c,className:"react-flow__connectionline react-flow__container",children:m.jsx("g",{className:on(["react-flow__connection",iN(d)]),children:m.jsx(c2,{style:t,type:r,CustomComponent:a,isValid:d})})})}const c2=({style:e,type:t=ua.Bezier,CustomComponent:r,isValid:a})=>{const{inProgress:s,from:o,fromNode:c,fromHandle:d,fromPosition:h,to:f,toNode:p,toHandle:g,toPosition:b,pointer:y}=U9();if(!s)return;if(r)return m.jsx(r,{connectionLineType:t,connectionLineStyle:e,fromNode:c,fromHandle:d,fromX:o.x,fromY:o.y,toX:f.x,toY:f.y,fromPosition:h,toPosition:b,connectionStatus:iN(a),toNode:p,toHandle:g,pointer:y});let _="";const N={sourceX:o.x,sourceY:o.y,sourcePosition:h,targetX:f.x,targetY:f.y,targetPosition:b};switch(t){case ua.Bezier:[_]=xN(N);break;case ua.SimpleBezier:[_]=ZN(N);break;case ua.Step:[_]=mp({...N,borderRadius:0});break;case ua.SmoothStep:[_]=mp(N);break;default:[_]=yN(N)}return m.jsx("path",{d:_,fill:"none",className:"react-flow__connection-path",style:e})};c2.displayName="ConnectionLine";const q9={};function W1(e=q9){ee.useRef(e),Lt(),ee.useEffect(()=>{},[e])}function P9(){Lt(),ee.useRef(!1),ee.useEffect(()=>{},[])}function u2({nodeTypes:e,edgeTypes:t,onInit:r,onNodeClick:a,onEdgeClick:s,onNodeDoubleClick:o,onEdgeDoubleClick:c,onNodeMouseEnter:d,onNodeMouseMove:h,onNodeMouseLeave:f,onNodeContextMenu:p,onSelectionContextMenu:g,onSelectionStart:b,onSelectionEnd:y,connectionLineType:_,connectionLineStyle:N,connectionLineComponent:S,connectionLineContainerStyle:w,selectionKeyCode:C,selectionOnDrag:E,selectionMode:A,multiSelectionKeyCode:B,panActivationKeyCode:R,zoomActivationKeyCode:H,deleteKeyCode:z,onlyRenderVisibleElements:Y,elementsSelectable:j,defaultViewport:I,translateExtent:Z,minZoom:P,maxZoom:k,preventScrolling:$,defaultMarkerColor:O,zoomOnScroll:U,zoomOnPinch:K,panOnScroll:X,panOnScrollSpeed:M,panOnScrollMode:L,zoomOnDoubleClick:F,panOnDrag:D,autoPanOnSelection:V,onPaneClick:q,onPaneMouseEnter:Q,onPaneMouseMove:J,onPaneMouseLeave:W,onPaneScroll:te,onPaneContextMenu:oe,paneClickDistance:fe,nodeClickDistance:xe,onEdgeContextMenu:we,onEdgeMouseEnter:Ne,onEdgeMouseMove:De,onEdgeMouseLeave:$e,reconnectRadius:st,onReconnect:Rt,onReconnectStart:Xt,onReconnectEnd:Ft,noDragClassName:Kt,noWheelClassName:Yn,noPanClassName:Nn,disableKeyboardA11y:ct,nodeExtent:It,rfId:ue,viewport:be,onViewportChange:Oe,nodesDraggable:Fe}){return W1(e),W1(t),P9(),D9(r),z9(be),m.jsx(a9,{onPaneClick:q,onPaneMouseEnter:Q,onPaneMouseMove:J,onPaneMouseLeave:W,onPaneContextMenu:oe,onPaneScroll:te,paneClickDistance:fe,deleteKeyCode:z,selectionKeyCode:C,selectionOnDrag:E,selectionMode:A,onSelectionStart:b,onSelectionEnd:y,multiSelectionKeyCode:B,panActivationKeyCode:R,zoomActivationKeyCode:H,elementsSelectable:j,zoomOnScroll:U,zoomOnPinch:K,zoomOnDoubleClick:F,panOnScroll:X,panOnScrollSpeed:M,panOnScrollMode:L,panOnDrag:D,autoPanOnSelection:V,defaultViewport:I,translateExtent:Z,minZoom:P,maxZoom:k,onSelectionContextMenu:g,preventScrolling:$,noDragClassName:Kt,noWheelClassName:Yn,noPanClassName:Nn,disableKeyboardA11y:ct,onViewportChange:Oe,isControlledViewport:!!be,children:m.jsxs(j9,{children:[m.jsx(R9,{edgeTypes:t,onEdgeClick:s,onEdgeDoubleClick:c,onReconnect:Rt,onReconnectStart:Xt,onReconnectEnd:Ft,onlyRenderVisibleElements:Y,onEdgeContextMenu:we,onEdgeMouseEnter:Ne,onEdgeMouseMove:De,onEdgeMouseLeave:$e,reconnectRadius:st,defaultMarkerColor:O,noPanClassName:Nn,disableKeyboardA11y:ct,rfId:ue}),m.jsx($9,{style:N,type:_,component:S,containerStyle:w}),m.jsx("div",{className:"react-flow__edgelabel-renderer"}),m.jsx(m9,{nodeTypes:e,onNodeClick:a,onNodeDoubleClick:o,onNodeMouseEnter:d,onNodeMouseMove:h,onNodeMouseLeave:f,onNodeContextMenu:p,nodeClickDistance:xe,onlyRenderVisibleElements:Y,noPanClassName:Nn,noDragClassName:Kt,disableKeyboardA11y:ct,nodeExtent:It,rfId:ue,nodesDraggable:Fe}),m.jsx("div",{className:"react-flow__viewport-portal"})]})})}u2.displayName="GraphView";const F9=ee.memo(u2),G9=uN(),J1=({nodes:e,edges:t,defaultNodes:r,defaultEdges:a,width:s,height:o,fitView:c,fitViewOptions:d,minZoom:h=.5,maxZoom:f=2,nodeOrigin:p,nodeExtent:g,zIndexMode:b="basic"}={})=>{const y=new Map,_=new Map,N=new Map,S=new Map,w=a??t??[],C=r??e??[],E=p??[0,0],A=g??No;wN(N,S,w);const{nodesInitialized:B}=gp(C,y,_,{nodeOrigin:E,nodeExtent:A,zIndexMode:b});let R=[0,0,1];if(c&&s&&o){const H=Uo(y,{filter:I=>!!((I.width||I.initialWidth)&&(I.height||I.initialHeight))}),{x:z,y:Y,zoom:j}=ug(H,s,o,h,f,(d==null?void 0:d.padding)??.1);R=[z,Y,j]}return{rfId:"1",width:s??0,height:o??0,transform:R,nodes:C,nodesInitialized:B,nodeLookup:y,parentLookup:_,edges:w,edgeLookup:S,connectionLookup:N,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:r!==void 0,hasDefaultEdges:a!==void 0,panZoom:null,minZoom:h,maxZoom:f,translateExtent:No,nodeExtent:A,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:Qs.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:{...rN},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:G9,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:nN,zIndexMode:b,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},V9=({nodes:e,edges:t,defaultNodes:r,defaultEdges:a,width:s,height:o,fitView:c,fitViewOptions:d,minZoom:h,maxZoom:f,nodeOrigin:p,nodeExtent:g,zIndexMode:b})=>s8((y,_)=>{async function N(){const{nodeLookup:S,panZoom:w,fitViewOptions:C,fitViewResolver:E,width:A,height:B,minZoom:R,maxZoom:H}=_();w&&(await nI({nodes:S,width:A,height:B,panZoom:w,minZoom:R,maxZoom:H},C),E==null||E.resolve(!0),y({fitViewResolver:null}))}return{...J1({nodes:e,edges:t,width:s,height:o,fitView:c,fitViewOptions:d,minZoom:h,maxZoom:f,nodeOrigin:p,nodeExtent:g,defaultNodes:r,defaultEdges:a,zIndexMode:b}),setNodes:S=>{const{nodeLookup:w,parentLookup:C,nodeOrigin:E,elevateNodesOnSelect:A,fitViewQueued:B,zIndexMode:R,nodesSelectionActive:H}=_(),{nodesInitialized:z,hasSelectedNodes:Y}=gp(S,w,C,{nodeOrigin:E,nodeExtent:g,elevateNodesOnSelect:A,checkEquality:!0,zIndexMode:R}),j=H&&Y;B&&z?(N(),y({nodes:S,nodesInitialized:z,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:j})):y({nodes:S,nodesInitialized:z,nodesSelectionActive:j})},setEdges:S=>{const{connectionLookup:w,edgeLookup:C}=_();wN(w,C,S),y({edges:S})},setDefaultNodesAndEdges:(S,w)=>{if(S){const{setNodes:C}=_();C(S),y({hasDefaultNodes:!0})}if(w){const{setEdges:C}=_();C(w),y({hasDefaultEdges:!0})}},updateNodeInternals:S=>{const{triggerNodeChanges:w,nodeLookup:C,parentLookup:E,domNode:A,nodeOrigin:B,nodeExtent:R,debug:H,fitViewQueued:z,zIndexMode:Y}=_(),{changes:j,updatedInternals:I}=SI(S,C,E,A,B,R,Y);I&&(_I(C,E,{nodeOrigin:B,nodeExtent:R,zIndexMode:Y}),z?(N(),y({fitViewQueued:!1,fitViewOptions:void 0})):y({}),(j==null?void 0:j.length)>0&&(H&&console.log("React Flow: trigger node changes",j),w==null||w(j)))},updateNodePositions:(S,w=!1)=>{const C=[];let E=[];const{nodeLookup:A,triggerNodeChanges:B,connection:R,updateConnection:H,onNodesChangeMiddlewareMap:z}=_();for(const[Y,j]of S){const I=A.get(Y),Z=!!(I!=null&&I.expandParent&&(I!=null&&I.parentId)&&(j!=null&&j.position)),P={id:Y,type:"position",position:Z?{x:Math.max(0,j.position.x),y:Math.max(0,j.position.y)}:j.position,dragging:w};if(I&&R.inProgress&&R.fromNode.id===I.id){const k=Qa(I,R.fromHandle,ze.Left,!0);H({...R,from:k})}Z&&I.parentId&&C.push({id:Y,parentId:I.parentId,rect:{...j.internals.positionAbsolute,width:j.measured.width??0,height:j.measured.height??0}}),E.push(P)}if(C.length>0){const{parentLookup:Y,nodeOrigin:j}=_(),I=gg(C,A,Y,j);E.push(...I)}for(const Y of z.values())E=Y(E);B(E)},triggerNodeChanges:S=>{const{onNodesChange:w,setNodes:C,nodes:E,hasDefaultNodes:A,debug:B}=_();if(S!=null&&S.length){if(A){const R=IN(S,E);C(R)}B&&console.log("React Flow: trigger node changes",S),w==null||w(S)}},triggerEdgeChanges:S=>{const{onEdgesChange:w,setEdges:C,edges:E,hasDefaultEdges:A,debug:B}=_();if(S!=null&&S.length){if(A){const R=BN(S,E);C(R)}B&&console.log("React Flow: trigger edge changes",S),w==null||w(S)}},addSelectedNodes:S=>{const{multiSelectionActive:w,edgeLookup:C,nodeLookup:E,triggerNodeChanges:A,triggerEdgeChanges:B}=_();if(w){const R=S.map(H=>Ha(H,!0));A(R);return}A(qs(E,new Set([...S]),!0)),B(qs(C))},addSelectedEdges:S=>{const{multiSelectionActive:w,edgeLookup:C,nodeLookup:E,triggerNodeChanges:A,triggerEdgeChanges:B}=_();if(w){const R=S.map(H=>Ha(H,!0));B(R);return}B(qs(C,new Set([...S]))),A(qs(E,new Set,!0))},unselectNodesAndEdges:({nodes:S,edges:w}={})=>{const{edges:C,nodes:E,nodeLookup:A,triggerNodeChanges:B,triggerEdgeChanges:R}=_(),H=S||E,z=w||C,Y=[];for(const I of H){if(!I.selected)continue;const Z=A.get(I.id);Z&&(Z.selected=!1),Y.push(Ha(I.id,!1))}const j=[];for(const I of z)I.selected&&j.push(Ha(I.id,!1));B(Y),R(j)},setMinZoom:S=>{const{panZoom:w,maxZoom:C}=_();w==null||w.setScaleExtent([S,C]),y({minZoom:S})},setMaxZoom:S=>{const{panZoom:w,minZoom:C}=_();w==null||w.setScaleExtent([C,S]),y({maxZoom:S})},setTranslateExtent:S=>{var w;(w=_().panZoom)==null||w.setTranslateExtent(S),y({translateExtent:S})},resetSelectedElements:()=>{const{edges:S,nodes:w,triggerNodeChanges:C,triggerEdgeChanges:E,elementsSelectable:A}=_();if(!A)return;const B=w.reduce((H,z)=>z.selected?[...H,Ha(z.id,!1)]:H,[]),R=S.reduce((H,z)=>z.selected?[...H,Ha(z.id,!1)]:H,[]);C(B),E(R)},setNodeExtent:S=>{const{nodes:w,nodeLookup:C,parentLookup:E,nodeOrigin:A,elevateNodesOnSelect:B,nodeExtent:R,zIndexMode:H}=_();S[0][0]===R[0][0]&&S[0][1]===R[0][1]&&S[1][0]===R[1][0]&&S[1][1]===R[1][1]||(gp(w,C,E,{nodeOrigin:A,nodeExtent:S,elevateNodesOnSelect:B,checkEquality:!1,zIndexMode:H}),y({nodeExtent:S}))},panBy:S=>{const{transform:w,width:C,height:E,panZoom:A,translateExtent:B}=_();return kI({delta:S,panZoom:A,transform:w,translateExtent:B,width:C,height:E})},setCenter:async(S,w,C)=>{const{width:E,height:A,maxZoom:B,panZoom:R}=_();if(!R)return!1;const H=typeof(C==null?void 0:C.zoom)<"u"?C.zoom:B;return await R.setViewport({x:E/2-S*H,y:A/2-w*H,zoom:H},{duration:C==null?void 0:C.duration,ease:C==null?void 0:C.ease,interpolate:C==null?void 0:C.interpolate}),!0},cancelConnection:()=>{y({connection:{...rN}})},updateConnection:S=>{y({connection:S})},reset:()=>y({...J1()})}},Object.is);function Y9({initialNodes:e,initialEdges:t,defaultNodes:r,defaultEdges:a,initialWidth:s,initialHeight:o,initialMinZoom:c,initialMaxZoom:d,initialFitViewOptions:h,fitView:f,nodeOrigin:p,nodeExtent:g,zIndexMode:b,children:y}){const[_]=ee.useState(()=>V9({nodes:e,edges:t,defaultNodes:r,defaultEdges:a,width:s,height:o,fitView:f,minZoom:c,maxZoom:d,fitViewOptions:h,nodeOrigin:p,nodeExtent:g,zIndexMode:b}));return m.jsx(l8,{value:_,children:m.jsx(O8,{children:m.jsx(V8,{children:y})})})}function X9({children:e,nodes:t,edges:r,defaultNodes:a,defaultEdges:s,width:o,height:c,fitView:d,fitViewOptions:h,minZoom:f,maxZoom:p,nodeOrigin:g,nodeExtent:b,zIndexMode:y}){return ee.useContext(ld)?m.jsx(m.Fragment,{children:e}):m.jsx(Y9,{initialNodes:t,initialEdges:r,defaultNodes:a,defaultEdges:s,initialWidth:o,initialHeight:c,fitView:d,initialFitViewOptions:h,initialMinZoom:f,initialMaxZoom:p,nodeOrigin:g,nodeExtent:b,zIndexMode:y,children:e})}const K9={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function Z9({nodes:e,edges:t,defaultNodes:r,defaultEdges:a,className:s,nodeTypes:o,edgeTypes:c,onNodeClick:d,onEdgeClick:h,onInit:f,onMove:p,onMoveStart:g,onMoveEnd:b,onConnect:y,onConnectStart:_,onConnectEnd:N,onClickConnectStart:S,onClickConnectEnd:w,onNodeMouseEnter:C,onNodeMouseMove:E,onNodeMouseLeave:A,onNodeContextMenu:B,onNodeDoubleClick:R,onNodeDragStart:H,onNodeDrag:z,onNodeDragStop:Y,onNodesDelete:j,onEdgesDelete:I,onDelete:Z,onSelectionChange:P,onSelectionDragStart:k,onSelectionDrag:$,onSelectionDragStop:O,onSelectionContextMenu:U,onSelectionStart:K,onSelectionEnd:X,onBeforeDelete:M,connectionMode:L,connectionLineType:F=ua.Bezier,connectionLineStyle:D,connectionLineComponent:V,connectionLineContainerStyle:q,deleteKeyCode:Q="Backspace",selectionKeyCode:J="Shift",selectionOnDrag:W=!1,selectionMode:te=So.Full,panActivationKeyCode:oe="Space",multiSelectionKeyCode:fe=Co()?"Meta":"Control",zoomActivationKeyCode:xe=Co()?"Meta":"Control",snapToGrid:we,snapGrid:Ne,onlyRenderVisibleElements:De=!1,selectNodesOnDrag:$e,nodesDraggable:st,autoPanOnNodeFocus:Rt,nodesConnectable:Xt,nodesFocusable:Ft,nodeOrigin:Kt=LN,edgesFocusable:Yn,edgesReconnectable:Nn,elementsSelectable:ct=!0,defaultViewport:It=v8,minZoom:ue=.5,maxZoom:be=2,translateExtent:Oe=No,preventScrolling:Fe=!0,nodeExtent:Ze,defaultMarkerColor:cn="#b1b1b7",zoomOnScroll:Sn=!0,zoomOnPinch:Zt=!0,panOnScroll:At=!1,panOnScrollSpeed:Jt=.5,panOnScrollMode:ut=Fa.Free,zoomOnDoubleClick:In=!0,panOnDrag:un=!0,onPaneClick:Si,onPaneMouseEnter:nt,onPaneMouseMove:Xn,onPaneMouseLeave:On,onPaneScroll:mn,onPaneContextMenu:re,paneClickDistance:me=1,nodeClickDistance:Ee=0,children:Pe,onReconnect:St,onReconnectStart:gt,onReconnectEnd:Me,onEdgeContextMenu:Se,onEdgeDoubleClick:Ue,onEdgeMouseEnter:Bt,onEdgeMouseMove:Mt,onEdgeMouseLeave:vr,reconnectRadius:ki=10,onNodesChange:Ci,onEdgesChange:lr,noDragClassName:Ut="nodrag",noWheelClassName:pn="nowheel",noPanClassName:_r="nopan",fitView:Ti,fitViewOptions:ga,connectOnClick:Ai,attributionPosition:ts,proOptions:Wr,defaultEdgeOptions:xa,elevateNodesOnSelect:bn=!0,elevateEdgesOnSelect:wr=!1,disableKeyboardA11y:Er=!1,autoPanOnConnect:Br,autoPanOnNodeDrag:Gt,autoPanOnSelection:ns=!0,autoPanSpeed:Jr,connectionRadius:Nr,isValidConnection:ye,onError:Le,style:Qe,id:ft,nodeDragThreshold:Ht,connectionDragThreshold:gn,viewport:Rn,onViewportChange:kn,width:_t,height:jn,colorMode:rs="light",debug:Mi,onScroll:Ur,ariaLabelConfig:Oi,zIndexMode:is="basic",...Cn},ba){const Sr=ft||"1",Ri=N8(rs),dn=ee.useCallback(ya=>{ya.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),Ur==null||Ur(ya)},[Ur]);return m.jsx("div",{"data-testid":"rf__wrapper",...Cn,onScroll:dn,style:{...Qe,...K9},ref:ba,className:on(["react-flow",s,Ri]),id:ft,role:"application",children:m.jsxs(X9,{nodes:e,edges:t,width:_t,height:jn,fitView:Ti,fitViewOptions:ga,minZoom:ue,maxZoom:be,nodeOrigin:Kt,nodeExtent:Ze,zIndexMode:is,children:[m.jsx(E8,{nodes:e,edges:t,defaultNodes:r,defaultEdges:a,onConnect:y,onConnectStart:_,onConnectEnd:N,onClickConnectStart:S,onClickConnectEnd:w,nodesDraggable:st,autoPanOnNodeFocus:Rt,nodesConnectable:Xt,nodesFocusable:Ft,edgesFocusable:Yn,edgesReconnectable:Nn,elementsSelectable:ct,elevateNodesOnSelect:bn,elevateEdgesOnSelect:wr,minZoom:ue,maxZoom:be,nodeExtent:Ze,onNodesChange:Ci,onEdgesChange:lr,snapToGrid:we,snapGrid:Ne,connectionMode:L,translateExtent:Oe,connectOnClick:Ai,defaultEdgeOptions:xa,fitView:Ti,fitViewOptions:ga,onNodesDelete:j,onEdgesDelete:I,onDelete:Z,onNodeDragStart:H,onNodeDrag:z,onNodeDragStop:Y,onSelectionDrag:$,onSelectionDragStart:k,onSelectionDragStop:O,onMove:p,onMoveStart:g,onMoveEnd:b,noPanClassName:_r,nodeOrigin:Kt,rfId:Sr,autoPanOnConnect:Br,autoPanOnNodeDrag:Gt,autoPanSpeed:Jr,onError:Le,connectionRadius:Nr,isValidConnection:ye,selectNodesOnDrag:$e,nodeDragThreshold:Ht,connectionDragThreshold:gn,onBeforeDelete:M,debug:Mi,ariaLabelConfig:Oi,zIndexMode:is}),m.jsx(F9,{onInit:f,onNodeClick:d,onEdgeClick:h,onNodeMouseEnter:C,onNodeMouseMove:E,onNodeMouseLeave:A,onNodeContextMenu:B,onNodeDoubleClick:R,nodeTypes:o,edgeTypes:c,connectionLineType:F,connectionLineStyle:D,connectionLineComponent:V,connectionLineContainerStyle:q,selectionKeyCode:J,selectionOnDrag:W,selectionMode:te,deleteKeyCode:Q,multiSelectionKeyCode:fe,panActivationKeyCode:oe,zoomActivationKeyCode:xe,onlyRenderVisibleElements:De,defaultViewport:It,translateExtent:Oe,minZoom:ue,maxZoom:be,preventScrolling:Fe,zoomOnScroll:Sn,zoomOnPinch:Zt,zoomOnDoubleClick:In,panOnScroll:At,panOnScrollSpeed:Jt,panOnScrollMode:ut,panOnDrag:un,autoPanOnSelection:ns,onPaneClick:Si,onPaneMouseEnter:nt,onPaneMouseMove:Xn,onPaneMouseLeave:On,onPaneScroll:mn,onPaneContextMenu:re,paneClickDistance:me,nodeClickDistance:Ee,onSelectionContextMenu:U,onSelectionStart:K,onSelectionEnd:X,onReconnect:St,onReconnectStart:gt,onReconnectEnd:Me,onEdgeContextMenu:Se,onEdgeDoubleClick:Ue,onEdgeMouseEnter:Bt,onEdgeMouseMove:Mt,onEdgeMouseLeave:vr,reconnectRadius:ki,defaultMarkerColor:cn,noDragClassName:Ut,noWheelClassName:pn,noPanClassName:_r,rfId:Sr,disableKeyboardA11y:Er,nodeExtent:Ze,viewport:Rn,onViewportChange:kn,nodesDraggable:st}),m.jsx(y8,{onSelectionChange:P}),Pe,m.jsx(m8,{proOptions:Wr,position:ts}),m.jsx(h8,{rfId:Sr,disableKeyboardA11y:Er})]})})}var Q9=UN(Z9);function W9(e){const[t,r]=ee.useState(e),a=ee.useCallback(s=>r(o=>IN(s,o)),[]);return[t,r,a]}function J9(e){const[t,r]=ee.useState(e),a=ee.useCallback(s=>r(o=>BN(s,o)),[]);return[t,r,a]}function eB({dimensions:e,lineWidth:t,variant:r,className:a}){return m.jsx("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:on(["react-flow__background-pattern",r,a])})}function tB({radius:e,className:t}){return m.jsx("circle",{cx:e,cy:e,r:e,className:on(["react-flow__background-pattern","dots",t])})}var ha;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(ha||(ha={}));const nB={[ha.Dots]:1,[ha.Lines]:1,[ha.Cross]:6},rB=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function d2({id:e,variant:t=ha.Dots,gap:r=20,size:a,lineWidth:s=1,offset:o=0,color:c,bgColor:d,style:h,className:f,patternClassName:p}){const g=ee.useRef(null),{transform:b,patternId:y}=dt(rB,Pt),_=a||nB[t],N=t===ha.Dots,S=t===ha.Cross,w=Array.isArray(r)?r:[r,r],C=[w[0]*b[2]||1,w[1]*b[2]||1],E=_*b[2],A=Array.isArray(o)?o:[o,o],B=S?[E,E]:C,R=[A[0]*b[2]||1+B[0]/2,A[1]*b[2]||1+B[1]/2],H=`${y}${e||""}`;return m.jsxs("svg",{className:on(["react-flow__background",f]),style:{...h,...cd,"--xy-background-color-props":d,"--xy-background-pattern-color-props":c},ref:g,"data-testid":"rf__background",children:[m.jsx("pattern",{id:H,x:b[0]%C[0],y:b[1]%C[1],width:C[0],height:C[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${R[0]},-${R[1]})`,children:N?m.jsx(tB,{radius:E/2,className:p}):m.jsx(eB,{dimensions:B,lineWidth:s,variant:t,className:p})}),m.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${H})`})]})}d2.displayName="Background";const iB=ee.memo(d2);function aB(){return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:m.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function sB(){return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:m.jsx("path",{d:"M0 0h32v4.2H0z"})})}function lB(){return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:m.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 oB(){return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:m.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 cB(){return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:m.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 mu({children:e,className:t,...r}){return m.jsx("button",{type:"button",className:on(["react-flow__controls-button",t]),...r,children:e})}const uB=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function f2({style:e,showZoom:t=!0,showFitView:r=!0,showInteractive:a=!0,fitViewOptions:s,onZoomIn:o,onZoomOut:c,onFitView:d,onInteractiveChange:h,className:f,children:p,position:g="bottom-left",orientation:b="vertical","aria-label":y}){const _=Lt(),{isInteractive:N,minZoomReached:S,maxZoomReached:w,ariaLabelConfig:C}=dt(uB,Pt),{zoomIn:E,zoomOut:A,fitView:B}=qo(),R=()=>{E(),o==null||o()},H=()=>{A(),c==null||c()},z=()=>{B(s),d==null||d()},Y=()=>{_.setState({nodesDraggable:!N,nodesConnectable:!N,elementsSelectable:!N}),h==null||h(!N)},j=b==="horizontal"?"horizontal":"vertical";return m.jsxs(od,{className:on(["react-flow__controls",j,f]),position:g,style:e,"data-testid":"rf__controls","aria-label":y??C["controls.ariaLabel"],children:[t&&m.jsxs(m.Fragment,{children:[m.jsx(mu,{onClick:R,className:"react-flow__controls-zoomin",title:C["controls.zoomIn.ariaLabel"],"aria-label":C["controls.zoomIn.ariaLabel"],disabled:w,children:m.jsx(aB,{})}),m.jsx(mu,{onClick:H,className:"react-flow__controls-zoomout",title:C["controls.zoomOut.ariaLabel"],"aria-label":C["controls.zoomOut.ariaLabel"],disabled:S,children:m.jsx(sB,{})})]}),r&&m.jsx(mu,{className:"react-flow__controls-fitview",onClick:z,title:C["controls.fitView.ariaLabel"],"aria-label":C["controls.fitView.ariaLabel"],children:m.jsx(lB,{})}),a&&m.jsx(mu,{className:"react-flow__controls-interactive",onClick:Y,title:C["controls.interactive.ariaLabel"],"aria-label":C["controls.interactive.ariaLabel"],children:N?m.jsx(cB,{}):m.jsx(oB,{})}),p]})}f2.displayName="Controls";const dB=ee.memo(f2);function fB({id:e,x:t,y:r,width:a,height:s,style:o,color:c,strokeColor:d,strokeWidth:h,className:f,borderRadius:p,shapeRendering:g,selected:b,onClick:y}){const{background:_,backgroundColor:N}=o||{},S=c||_||N;return m.jsx("rect",{className:on(["react-flow__minimap-node",{selected:b},f]),x:t,y:r,rx:p,ry:p,width:a,height:s,style:{fill:S,stroke:d,strokeWidth:h},shapeRendering:g,onClick:y?w=>y(w,e):void 0})}const hB=ee.memo(fB),mB=e=>e.nodes.map(t=>t.id),Dm=e=>e instanceof Function?e:()=>e;function pB({nodeStrokeColor:e,nodeColor:t,nodeClassName:r="",nodeBorderRadius:a=5,nodeStrokeWidth:s,nodeComponent:o=hB,onClick:c}){const d=dt(mB,Pt),h=Dm(t),f=Dm(e),p=Dm(r),g=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return m.jsx(m.Fragment,{children:d.map(b=>m.jsx(xB,{id:b,nodeColorFunc:h,nodeStrokeColorFunc:f,nodeClassNameFunc:p,nodeBorderRadius:a,nodeStrokeWidth:s,NodeComponent:o,onClick:c,shapeRendering:g},b))})}function gB({id:e,nodeColorFunc:t,nodeStrokeColorFunc:r,nodeClassNameFunc:a,nodeBorderRadius:s,nodeStrokeWidth:o,shapeRendering:c,NodeComponent:d,onClick:h}){const{node:f,x:p,y:g,width:b,height:y}=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:C}=N.internals.positionAbsolute,{width:E,height:A}=Qr(S);return{node:S,x:w,y:C,width:E,height:A}},Pt);return!f||f.hidden||!dN(f)?null:m.jsx(d,{x:p,y:g,width:b,height:y,style:f.style,selected:!!f.selected,className:a(f),color:t(f),borderRadius:s,strokeColor:r(f),strokeWidth:o,shapeRendering:c,onClick:h,id:f.id})}const xB=ee.memo(gB);var bB=ee.memo(pB);const yB=200,vB=150,_B=e=>!e.hidden,wB=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?oN(Uo(e.nodeLookup,{filter:_B}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},e_=(e,t)=>e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,EB=(e,t)=>e_(e.viewBB,t.viewBB)&&e_(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,NB="react-flow__minimap-desc";function h2({style:e,className:t,nodeStrokeColor:r,nodeColor:a,nodeClassName:s="",nodeBorderRadius:o=5,nodeStrokeWidth:c,nodeComponent:d,bgColor:h,maskColor:f,maskStrokeColor:p,maskStrokeWidth:g,position:b="bottom-right",onClick:y,onNodeClick:_,pannable:N=!1,zoomable:S=!1,ariaLabel:w,inversePan:C,zoomStep:E=1,offsetScale:A=5}){const B=Lt(),R=ee.useRef(null),{boundingRect:H,viewBB:z,rfId:Y,panZoom:j,translateExtent:I,flowWidth:Z,flowHeight:P,ariaLabelConfig:k}=dt(wB,EB),$=(e==null?void 0:e.width)??yB,O=(e==null?void 0:e.height)??vB,U=H.width/$,K=H.height/O,X=Math.max(U,K),M=X*$,L=X*O,F=A*X,D=H.x-(M-H.width)/2-F,V=H.y-(L-H.height)/2-F,q=M+F*2,Q=L+F*2,J=`${NB}-${Y}`,W=ee.useRef(0),te=ee.useRef();W.current=X,ee.useEffect(()=>{if(R.current&&j)return te.current=LI({domNode:R.current,panZoom:j,getTransform:()=>B.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:I,width:Z,height:P,inversePan:C,pannable:N,zoomStep:E,zoomable:S})},[N,S,C,E,I,Z,P]);const oe=y?we=>{var $e;const[Ne,De]=(($e=te.current)==null?void 0:$e.pointer(we))||[0,0];y(we,{x:Ne,y:De})}:void 0,fe=_?ee.useCallback((we,Ne)=>{const De=B.getState().nodeLookup.get(Ne).internals.userNode;_(we,De)},[]):void 0,xe=w??k["minimap.ariaLabel"];return m.jsx(od,{position:b,style:{...e,"--xy-minimap-background-color-props":typeof h=="string"?h:void 0,"--xy-minimap-mask-background-color-props":typeof f=="string"?f:void 0,"--xy-minimap-mask-stroke-color-props":typeof p=="string"?p:void 0,"--xy-minimap-mask-stroke-width-props":typeof g=="number"?g*X: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:on(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:m.jsxs("svg",{width:$,height:O,viewBox:`${D} ${V} ${q} ${Q}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":J,ref:R,onClick:oe,children:[xe&&m.jsx("title",{id:J,children:xe}),m.jsx(bB,{onClick:fe,nodeColor:a,nodeStrokeColor:r,nodeBorderRadius:o,nodeClassName:s,nodeStrokeWidth:c,nodeComponent:d}),m.jsx("path",{className:"react-flow__minimap-mask",d:`M${D-F},${V-F}h${q+F*2}v${Q+F*2}h${-q-F*2}z
- M${z.x},${z.y}h${z.width}v${z.height}h${-z.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}h2.displayName="MiniMap";const SB=ee.memo(h2),kB=e=>t=>e?`${Math.max(1/t.transform[2],1)}`:void 0,CB={[el.Line]:"right",[el.Handle]:"bottom-right"};function TB({nodeId:e,position:t,variant:r=el.Handle,className:a,style:s=void 0,children:o,color:c,minWidth:d=10,minHeight:h=10,maxWidth:f=Number.MAX_VALUE,maxHeight:p=Number.MAX_VALUE,keepAspectRatio:g=!1,resizeDirection:b,autoScale:y=!0,shouldResize:_,onResizeStart:N,onResize:S,onResizeEnd:w}){const C=FN(),E=typeof e=="string"?e:C,A=Lt(),B=ee.useRef(null),R=r===el.Handle,H=dt(ee.useCallback(kB(R&&y),[R,y]),Pt),z=ee.useRef(null),Y=t??CB[r];ee.useEffect(()=>{if(!(!B.current||!E))return z.current||(z.current=XI({domNode:B.current,nodeId:E,getStoreItems:()=>{const{nodeLookup:I,transform:Z,snapGrid:P,snapToGrid:k,nodeOrigin:$,domNode:O}=A.getState();return{nodeLookup:I,transform:Z,snapGrid:P,snapToGrid:k,nodeOrigin:$,paneDomNode:O}},onChange:(I,Z)=>{const{triggerNodeChanges:P,nodeLookup:k,parentLookup:$,nodeOrigin:O}=A.getState(),U=[],K={x:I.x,y:I.y},X=k.get(E);if(X&&X.expandParent&&X.parentId){const M=X.origin??O,L=I.width??X.measured.width??0,F=I.height??X.measured.height??0,D={id:X.id,parentId:X.parentId,rect:{width:L,height:F,...fN({x:I.x??X.position.x,y:I.y??X.position.y},{width:L,height:F},X.parentId,k,M)}},V=gg([D],k,$,O);U.push(...V),K.x=I.x?Math.max(M[0]*L,I.x):void 0,K.y=I.y?Math.max(M[1]*F,I.y):void 0}if(K.x!==void 0&&K.y!==void 0){const M={id:E,type:"position",position:{...K}};U.push(M)}if(I.width!==void 0&&I.height!==void 0){const L={id:E,type:"dimensions",resizing:!0,setAttributes:b?b==="horizontal"?"width":"height":!0,dimensions:{width:I.width,height:I.height}};U.push(L)}for(const M of Z){const L={...M,type:"position"};U.push(L)}P(U)},onEnd:({width:I,height:Z})=>{const P={id:E,type:"dimensions",resizing:!1,dimensions:{width:I,height:Z}};A.getState().triggerNodeChanges([P])}})),z.current.update({controlPosition:Y,boundaries:{minWidth:d,minHeight:h,maxWidth:f,maxHeight:p},keepAspectRatio:g,resizeDirection:b,onResizeStart:N,onResize:S,onResizeEnd:w,shouldResize:_}),()=>{var I;(I=z.current)==null||I.destroy()}},[Y,d,h,f,p,g,N,S,w,_]);const j=Y.split("-");return m.jsx("div",{className:on(["react-flow__resize-control","nodrag",...j,r,a]),ref:B,style:{...s,scale:H,...c&&{[R?"backgroundColor":"borderColor"]:c}},children:o})}ee.memo(TB);var vt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),zr=vt((e,t)=>{var r=Object.defineProperty,a=(P,k,$)=>k in P?r(P,k,{enumerable:!0,configurable:!0,writable:!0,value:$}):P[k]=$,s=(P,k)=>()=>(k||P((k={exports:{}}).exports,k),k.exports),o=(P,k,$)=>a(P,typeof k!="symbol"?k+"":k,$),c=s((P,k)=>{var $="\0",O="\0",U="",K=class{constructor(V){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"),V&&(this._isDirected=Object.hasOwn(V,"directed")?V.directed:!0,this._isMultigraph=Object.hasOwn(V,"multigraph")?V.multigraph:!1,this._isCompound=Object.hasOwn(V,"compound")?V.compound:!1),this._isCompound&&(this._parent={},this._children={},this._children[O]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(V){return this._label=V,this}graph(){return this._label}setDefaultNodeLabel(V){return this._defaultNodeLabelFn=V,typeof V!="function"&&(this._defaultNodeLabelFn=()=>V),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var V=this;return this.nodes().filter(q=>Object.keys(V._in[q]).length===0)}sinks(){var V=this;return this.nodes().filter(q=>Object.keys(V._out[q]).length===0)}setNodes(V,q){var Q=arguments,J=this;return V.forEach(function(W){Q.length>1?J.setNode(W,q):J.setNode(W)}),this}setNode(V,q){return Object.hasOwn(this._nodes,V)?(arguments.length>1&&(this._nodes[V]=q),this):(this._nodes[V]=arguments.length>1?q:this._defaultNodeLabelFn(V),this._isCompound&&(this._parent[V]=O,this._children[V]={},this._children[O][V]=!0),this._in[V]={},this._preds[V]={},this._out[V]={},this._sucs[V]={},++this._nodeCount,this)}node(V){return this._nodes[V]}hasNode(V){return Object.hasOwn(this._nodes,V)}removeNode(V){var q=this;if(Object.hasOwn(this._nodes,V)){var Q=J=>q.removeEdge(q._edgeObjs[J]);delete this._nodes[V],this._isCompound&&(this._removeFromParentsChildList(V),delete this._parent[V],this.children(V).forEach(function(J){q.setParent(J)}),delete this._children[V]),Object.keys(this._in[V]).forEach(Q),delete this._in[V],delete this._preds[V],Object.keys(this._out[V]).forEach(Q),delete this._out[V],delete this._sucs[V],--this._nodeCount}return this}setParent(V,q){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(q===void 0)q=O;else{q+="";for(var Q=q;Q!==void 0;Q=this.parent(Q))if(Q===V)throw new Error("Setting "+q+" as parent of "+V+" would create a cycle");this.setNode(q)}return this.setNode(V),this._removeFromParentsChildList(V),this._parent[V]=q,this._children[q][V]=!0,this}_removeFromParentsChildList(V){delete this._children[this._parent[V]][V]}parent(V){if(this._isCompound){var q=this._parent[V];if(q!==O)return q}}children(V=O){if(this._isCompound){var q=this._children[V];if(q)return Object.keys(q)}else{if(V===O)return this.nodes();if(this.hasNode(V))return[]}}predecessors(V){var q=this._preds[V];if(q)return Object.keys(q)}successors(V){var q=this._sucs[V];if(q)return Object.keys(q)}neighbors(V){var q=this.predecessors(V);if(q){let J=new Set(q);for(var Q of this.successors(V))J.add(Q);return Array.from(J.values())}}isLeaf(V){var q;return this.isDirected()?q=this.successors(V):q=this.neighbors(V),q.length===0}filterNodes(V){var q=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});q.setGraph(this.graph());var Q=this;Object.entries(this._nodes).forEach(function([te,oe]){V(te)&&q.setNode(te,oe)}),Object.values(this._edgeObjs).forEach(function(te){q.hasNode(te.v)&&q.hasNode(te.w)&&q.setEdge(te,Q.edge(te))});var J={};function W(te){var oe=Q.parent(te);return oe===void 0||q.hasNode(oe)?(J[te]=oe,oe):oe in J?J[oe]:W(oe)}return this._isCompound&&q.nodes().forEach(te=>q.setParent(te,W(te))),q}setDefaultEdgeLabel(V){return this._defaultEdgeLabelFn=V,typeof V!="function"&&(this._defaultEdgeLabelFn=()=>V),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(V,q){var Q=this,J=arguments;return V.reduce(function(W,te){return J.length>1?Q.setEdge(W,te,q):Q.setEdge(W,te),te}),this}setEdge(){var V,q,Q,J,W=!1,te=arguments[0];typeof te=="object"&&te!==null&&"v"in te?(V=te.v,q=te.w,Q=te.name,arguments.length===2&&(J=arguments[1],W=!0)):(V=te,q=arguments[1],Q=arguments[3],arguments.length>2&&(J=arguments[2],W=!0)),V=""+V,q=""+q,Q!==void 0&&(Q=""+Q);var oe=L(this._isDirected,V,q,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(V),this.setNode(q),this._edgeLabels[oe]=W?J:this._defaultEdgeLabelFn(V,q,Q);var fe=F(this._isDirected,V,q,Q);return V=fe.v,q=fe.w,Object.freeze(fe),this._edgeObjs[oe]=fe,X(this._preds[q],V),X(this._sucs[V],q),this._in[q][oe]=fe,this._out[V][oe]=fe,this._edgeCount++,this}edge(V,q,Q){var J=arguments.length===1?D(this._isDirected,arguments[0]):L(this._isDirected,V,q,Q);return this._edgeLabels[J]}edgeAsObj(){let V=this.edge(...arguments);return typeof V!="object"?{label:V}:V}hasEdge(V,q,Q){var J=arguments.length===1?D(this._isDirected,arguments[0]):L(this._isDirected,V,q,Q);return Object.hasOwn(this._edgeLabels,J)}removeEdge(V,q,Q){var J=arguments.length===1?D(this._isDirected,arguments[0]):L(this._isDirected,V,q,Q),W=this._edgeObjs[J];return W&&(V=W.v,q=W.w,delete this._edgeLabels[J],delete this._edgeObjs[J],M(this._preds[q],V),M(this._sucs[V],q),delete this._in[q][J],delete this._out[V][J],this._edgeCount--),this}inEdges(V,q){return this.isDirected()?this.filterEdges(this._in[V],V,q):this.nodeEdges(V,q)}outEdges(V,q){return this.isDirected()?this.filterEdges(this._out[V],V,q):this.nodeEdges(V,q)}nodeEdges(V,q){if(V in this._nodes)return this.filterEdges({...this._in[V],...this._out[V]},V,q)}filterEdges(V,q,Q){if(V){var J=Object.values(V);return Q?J.filter(function(W){return W.v===q&&W.w===Q||W.v===Q&&W.w===q}):J}}};function X(V,q){V[q]?V[q]++:V[q]=1}function M(V,q){--V[q]||delete V[q]}function L(V,q,Q,J){var W=""+q,te=""+Q;if(!V&&W>te){var oe=W;W=te,te=oe}return W+U+te+U+(J===void 0?$:J)}function F(V,q,Q,J){var W=""+q,te=""+Q;if(!V&&W>te){var oe=W;W=te,te=oe}var fe={v:W,w:te};return J&&(fe.name=J),fe}function D(V,q){return L(V,q.v,q.w,q.name)}k.exports=K}),d=s((P,k)=>{k.exports="3.0.2"}),h=s((P,k)=>{k.exports={Graph:c(),version:d()}}),f=s((P,k)=>{var $=c();k.exports={write:O,read:X};function O(M){var L={options:{directed:M.isDirected(),multigraph:M.isMultigraph(),compound:M.isCompound()},nodes:U(M),edges:K(M)};return M.graph()!==void 0&&(L.value=structuredClone(M.graph())),L}function U(M){return M.nodes().map(function(L){var F=M.node(L),D=M.parent(L),V={v:L};return F!==void 0&&(V.value=F),D!==void 0&&(V.parent=D),V})}function K(M){return M.edges().map(function(L){var F=M.edge(L),D={v:L.v,w:L.w};return L.name!==void 0&&(D.name=L.name),F!==void 0&&(D.value=F),D})}function X(M){var L=new $(M.options).setGraph(M.value);return M.nodes.forEach(function(F){L.setNode(F.v,F.value),F.parent&&L.setParent(F.v,F.parent)}),M.edges.forEach(function(F){L.setEdge({v:F.v,w:F.w,name:F.name},F.value)}),L}}),p=s((P,k)=>{k.exports=O;var $=()=>1;function O(K,X,M,L){return U(K,String(X),M||$,L||function(F){return K.outEdges(F)})}function U(K,X,M,L){var F={},D=!0,V=0,q=K.nodes(),Q=function(oe){var fe=M(oe);F[oe.v].distance+fe<F[oe.w].distance&&(F[oe.w]={distance:F[oe.v].distance+fe,predecessor:oe.v},D=!0)},J=function(){q.forEach(function(oe){L(oe).forEach(function(fe){var xe=fe.v===oe?fe.v:fe.w,we=xe===fe.v?fe.w:fe.v;Q({v:xe,w:we})})})};q.forEach(function(oe){var fe=oe===X?0:Number.POSITIVE_INFINITY;F[oe]={distance:fe}});for(var W=q.length,te=1;te<W&&(D=!1,V++,J(),!!D);te++);if(V===W-1&&(D=!1,J(),D))throw new Error("The graph contains a negative weight cycle");return F}}),g=s((P,k)=>{k.exports=$;function $(O){var U={},K=[],X;function M(L){Object.hasOwn(U,L)||(U[L]=!0,X.push(L),O.successors(L).forEach(M),O.predecessors(L).forEach(M))}return O.nodes().forEach(function(L){X=[],M(L),X.length&&K.push(X)}),K}}),b=s((P,k)=>{var $=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 U=this._keyIndices[O];if(U!==void 0)return this._arr[U].priority}min(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key}add(O,U){var K=this._keyIndices;if(O=String(O),!Object.hasOwn(K,O)){var X=this._arr,M=X.length;return K[O]=M,X.push({key:O,priority:U}),this._decrease(M),!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,U){var K=this._keyIndices[O];if(U>this._arr[K].priority)throw new Error("New priority is greater than current priority. Key: "+O+" Old: "+this._arr[K].priority+" New: "+U);this._arr[K].priority=U,this._decrease(K)}_heapify(O){var U=this._arr,K=2*O,X=K+1,M=O;K<U.length&&(M=U[K].priority<U[M].priority?K:M,X<U.length&&(M=U[X].priority<U[M].priority?X:M),M!==O&&(this._swap(O,M),this._heapify(M)))}_decrease(O){for(var U=this._arr,K=U[O].priority,X;O!==0&&(X=O>>1,!(U[X].priority<K));)this._swap(O,X),O=X}_swap(O,U){var K=this._arr,X=this._keyIndices,M=K[O],L=K[U];K[O]=L,K[U]=M,X[L.key]=O,X[M.key]=U}};k.exports=$}),y=s((P,k)=>{var $=b();k.exports=U;var O=()=>1;function U(X,M,L,F){var D=function(V){return X.outEdges(V)};return K(X,String(M),L||O,F||D)}function K(X,M,L,F){var D={},V=new $,q,Q,J=function(W){var te=W.v!==q?W.v:W.w,oe=D[te],fe=L(W),xe=Q.distance+fe;if(fe<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+W+" Weight: "+fe);xe<oe.distance&&(oe.distance=xe,oe.predecessor=q,V.decrease(te,xe))};for(X.nodes().forEach(function(W){var te=W===M?0:Number.POSITIVE_INFINITY;D[W]={distance:te},V.add(W,te)});V.size()>0&&(q=V.removeMin(),Q=D[q],Q.distance!==Number.POSITIVE_INFINITY);)F(q).forEach(J);return D}}),_=s((P,k)=>{var $=y();k.exports=O;function O(U,K,X){return U.nodes().reduce(function(M,L){return M[L]=$(U,L,K,X),M},{})}}),N=s((P,k)=>{k.exports=$;function $(U,K,X){if(U[K].predecessor!==void 0)throw new Error("Invalid source vertex");if(U[X].predecessor===void 0&&X!==K)throw new Error("Invalid destination vertex");return{weight:U[X].distance,path:O(U,K,X)}}function O(U,K,X){for(var M=[],L=X;L!==K;)M.push(L),L=U[L].predecessor;return M.push(K),M.reverse()}}),S=s((P,k)=>{k.exports=$;function $(O){var U=0,K=[],X={},M=[];function L(F){var D=X[F]={onStack:!0,lowlink:U,index:U++};if(K.push(F),O.successors(F).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 V=[],q;do q=K.pop(),X[q].onStack=!1,V.push(q);while(F!==q);M.push(V)}}return O.nodes().forEach(function(F){Object.hasOwn(X,F)||L(F)}),M}}),w=s((P,k)=>{var $=S();k.exports=O;function O(U){return $(U).filter(function(K){return K.length>1||K.length===1&&U.hasEdge(K[0],K[0])})}}),C=s((P,k)=>{k.exports=O;var $=()=>1;function O(K,X,M){return U(K,X||$,M||function(L){return K.outEdges(L)})}function U(K,X,M){var L={},F=K.nodes();return F.forEach(function(D){L[D]={},L[D][D]={distance:0},F.forEach(function(V){D!==V&&(L[D][V]={distance:Number.POSITIVE_INFINITY})}),M(D).forEach(function(V){var q=V.v===D?V.w:V.v,Q=X(V);L[D][q]={distance:Q,predecessor:D}})}),F.forEach(function(D){var V=L[D];F.forEach(function(q){var Q=L[q];F.forEach(function(J){var W=Q[D],te=V[J],oe=Q[J],fe=W.distance+te.distance;fe<oe.distance&&(oe.distance=fe,oe.predecessor=te.predecessor)})})}),L}}),E=s((P,k)=>{function $(U){var K={},X={},M=[];function L(F){if(Object.hasOwn(X,F))throw new O;Object.hasOwn(K,F)||(X[F]=!0,K[F]=!0,U.predecessors(F).forEach(L),delete X[F],M.push(F))}if(U.sinks().forEach(L),Object.keys(K).length!==U.nodeCount())throw new O;return M}var O=class extends Error{constructor(){super(...arguments)}};k.exports=$,$.CycleException=O}),A=s((P,k)=>{var $=E();k.exports=O;function O(U){try{$(U)}catch(K){if(K instanceof $.CycleException)return!1;throw K}return!0}}),B=s((P,k)=>{k.exports=$;function $(U,K,X,M,L){Array.isArray(K)||(K=[K]);var F=(U.isDirected()?U.successors:U.neighbors).bind(U),D={};return K.forEach(function(V){if(!U.hasNode(V))throw new Error("Graph does not have node: "+V);L=O(U,V,X==="post",D,F,M,L)}),L}function O(U,K,X,M,L,F,D){return Object.hasOwn(M,K)||(M[K]=!0,X||(D=F(D,K)),L(K).forEach(function(V){D=O(U,V,X,M,L,F,D)}),X&&(D=F(D,K))),D}}),R=s((P,k)=>{var $=B();k.exports=O;function O(U,K,X){return $(U,K,X,function(M,L){return M.push(L),M},[])}}),H=s((P,k)=>{var $=R();k.exports=O;function O(U,K){return $(U,K,"post")}}),z=s((P,k)=>{var $=R();k.exports=O;function O(U,K){return $(U,K,"pre")}}),Y=s((P,k)=>{var $=c(),O=b();k.exports=U;function U(K,X){var M=new $,L={},F=new O,D;function V(Q){var J=Q.v===D?Q.w:Q.v,W=F.priority(J);if(W!==void 0){var te=X(Q);te<W&&(L[J]=D,F.decrease(J,te))}}if(K.nodeCount()===0)return M;K.nodes().forEach(function(Q){F.add(Q,Number.POSITIVE_INFINITY),M.setNode(Q)}),F.decrease(K.nodes()[0],0);for(var q=!1;F.size()>0;){if(D=F.removeMin(),Object.hasOwn(L,D))M.setEdge(D,L[D]);else{if(q)throw new Error("Input graph is not connected: "+K);q=!0}K.nodeEdges(D).forEach(V)}return M}}),j=s((P,k)=>{var $=y(),O=p();k.exports=U;function U(X,M,L,F){return K(X,M,L,F||function(D){return X.outEdges(D)})}function K(X,M,L,F){if(L===void 0)return $(X,M,L,F);for(var D=!1,V=X.nodes(),q=0;q<V.length;q++){for(var Q=F(V[q]),J=0;J<Q.length;J++){var W=Q[J],te=W.v===V[q]?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,M,L,F)}return $(X,M,L,F)}}),I=s((P,k)=>{k.exports={bellmanFord:p(),components:g(),dijkstra:y(),dijkstraAll:_(),extractPath:N(),findCycles:w(),floydWarshall:C(),isAcyclic:A(),postorder:H(),preorder:z(),prim:Y(),shortestPaths:j(),reduce:B(),tarjan:S(),topsort:E()}}),Z=h();t.exports={Graph:Z.Graph,json:f(),alg:I(),version:Z.version}}),AB=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}),MB=vt((e,t)=>{var r=zr().Graph,a=AB();t.exports=o;var s=()=>1;function o(g,b){if(g.nodeCount()<=1)return[];let y=h(g,b||s);return c(y.graph,y.buckets,y.zeroIdx).flatMap(_=>g.outEdges(_.v,_.w))}function c(g,b,y){let _=[],N=b[b.length-1],S=b[0],w;for(;g.nodeCount();){for(;w=S.dequeue();)d(g,b,y,w);for(;w=N.dequeue();)d(g,b,y,w);if(g.nodeCount()){for(let C=b.length-2;C>0;--C)if(w=b[C].dequeue(),w){_=_.concat(d(g,b,y,w,!0));break}}}return _}function d(g,b,y,_,N){let S=N?[]:void 0;return g.inEdges(_.v).forEach(w=>{let C=g.edge(w),E=g.node(w.v);N&&S.push({v:w.v,w:w.w}),E.out-=C,f(b,y,E)}),g.outEdges(_.v).forEach(w=>{let C=g.edge(w),E=w.w,A=g.node(E);A.in-=C,f(b,y,A)}),g.removeNode(_.v),S}function h(g,b){let y=new r,_=0,N=0;g.nodes().forEach(C=>{y.setNode(C,{v:C,in:0,out:0})}),g.edges().forEach(C=>{let E=y.edge(C.v,C.w)||0,A=b(C),B=E+A;y.setEdge(C.v,C.w,B),N=Math.max(N,y.node(C.v).out+=A),_=Math.max(_,y.node(C.w).in+=A)});let S=p(N+_+3).map(()=>new a),w=_+1;return y.nodes().forEach(C=>{f(S,w,y.node(C))}),{graph:y,buckets:S,zeroIdx:w}}function f(g,b,y){y.out?y.in?g[y.out-y.in+b].enqueue(y):g[g.length-1].enqueue(y):g[0].enqueue(y)}function p(g){let b=[];for(let y=0;y<g;y++)b.push(y);return b}}),ln=vt((e,t)=>{var r=zr().Graph;t.exports={addBorderNode:b,addDummyNode:a,applyWithChunking:N,asNonCompoundGraph:o,buildLayerMatrix:f,intersectRect:h,mapValues:z,maxRank:S,normalizeRanks:p,notime:E,partition:w,pick:H,predecessorWeights:d,range:R,removeEmptyRanks:g,simplify:s,successorWeights:c,time:C,uniqueId:B,zipObject:Y};function a(j,I,Z,P){for(var k=P;j.hasNode(k);)k=B(P);return Z.dummy=I,j.setNode(k,Z),k}function s(j){let I=new r().setGraph(j.graph());return j.nodes().forEach(Z=>I.setNode(Z,j.node(Z))),j.edges().forEach(Z=>{let P=I.edge(Z.v,Z.w)||{weight:0,minlen:1},k=j.edge(Z);I.setEdge(Z.v,Z.w,{weight:P.weight+k.weight,minlen:Math.max(P.minlen,k.minlen)})}),I}function o(j){let I=new r({multigraph:j.isMultigraph()}).setGraph(j.graph());return j.nodes().forEach(Z=>{j.children(Z).length||I.setNode(Z,j.node(Z))}),j.edges().forEach(Z=>{I.setEdge(Z,j.edge(Z))}),I}function c(j){let I=j.nodes().map(Z=>{let P={};return j.outEdges(Z).forEach(k=>{P[k.w]=(P[k.w]||0)+j.edge(k).weight}),P});return Y(j.nodes(),I)}function d(j){let I=j.nodes().map(Z=>{let P={};return j.inEdges(Z).forEach(k=>{P[k.v]=(P[k.v]||0)+j.edge(k).weight}),P});return Y(j.nodes(),I)}function h(j,I){let Z=j.x,P=j.y,k=I.x-Z,$=I.y-P,O=j.width/2,U=j.height/2;if(!k&&!$)throw new Error("Not possible to find intersection inside of the rectangle");let K,X;return Math.abs($)*O>Math.abs(k)*U?($<0&&(U=-U),K=U*k/$,X=U):(k<0&&(O=-O),K=O,X=O*$/k),{x:Z+K,y:P+X}}function f(j){let I=R(S(j)+1).map(()=>[]);return j.nodes().forEach(Z=>{let P=j.node(Z),k=P.rank;k!==void 0&&(I[k][P.order]=Z)}),I}function p(j){let I=j.nodes().map(P=>{let k=j.node(P).rank;return k===void 0?Number.MAX_VALUE:k}),Z=N(Math.min,I);j.nodes().forEach(P=>{let k=j.node(P);Object.hasOwn(k,"rank")&&(k.rank-=Z)})}function g(j){let I=j.nodes().map(O=>j.node(O).rank).filter(O=>O!==void 0),Z=N(Math.min,I),P=[];j.nodes().forEach(O=>{let U=j.node(O).rank-Z;P[U]||(P[U]=[]),P[U].push(O)});let k=0,$=j.graph().nodeRankFactor;Array.from(P).forEach((O,U)=>{O===void 0&&U%$!==0?--k:O!==void 0&&k&&O.forEach(K=>j.node(K).rank+=k)})}function b(j,I,Z,P){let k={width:0,height:0};return arguments.length>=4&&(k.rank=Z,k.order=P),a(j,"border",k,I)}function y(j,I=_){let Z=[];for(let P=0;P<j.length;P+=I){let k=j.slice(P,P+I);Z.push(k)}return Z}var _=65535;function N(j,I){if(I.length>_){let Z=y(I);return j.apply(null,Z.map(P=>j.apply(null,P)))}else return j.apply(null,I)}function S(j){let I=j.nodes().map(Z=>{let P=j.node(Z).rank;return P===void 0?Number.MIN_VALUE:P});return N(Math.max,I)}function w(j,I){let Z={lhs:[],rhs:[]};return j.forEach(P=>{I(P)?Z.lhs.push(P):Z.rhs.push(P)}),Z}function C(j,I){let Z=Date.now();try{return I()}finally{console.log(j+" time: "+(Date.now()-Z)+"ms")}}function E(j,I){return I()}var A=0;function B(j){var I=++A;return j+(""+I)}function R(j,I,Z=1){I==null&&(I=j,j=0);let P=$=>$<I;Z<0&&(P=$=>I<$);let k=[];for(let $=j;P($);$+=Z)k.push($);return k}function H(j,I){let Z={};for(let P of I)j[P]!==void 0&&(Z[P]=j[P]);return Z}function z(j,I){let Z=I;return typeof I=="string"&&(Z=P=>P[I]),Object.entries(j).reduce((P,[k,$])=>(P[k]=Z($,k),P),{})}function Y(j,I){return j.reduce((Z,P,k)=>(Z[P]=I[k],Z),{})}}),OB=vt((e,t)=>{var r=MB(),a=ln().uniqueId;t.exports={run:s,undo:c};function s(d){(d.graph().acyclicer==="greedy"?r(d,h(d)):o(d)).forEach(f=>{let p=d.edge(f);d.removeEdge(f),p.forwardName=f.name,p.reversed=!0,d.setEdge(f.w,f.v,p,a("rev"))});function h(f){return p=>f.edge(p).weight}}function o(d){let h=[],f={},p={};function g(b){Object.hasOwn(p,b)||(p[b]=!0,f[b]=!0,d.outEdges(b).forEach(y=>{Object.hasOwn(f,y.w)?h.push(y):g(y.w)}),delete f[b])}return d.nodes().forEach(g),h}function c(d){d.edges().forEach(h=>{let f=d.edge(h);if(f.reversed){d.removeEdge(h);let p=f.forwardName;delete f.reversed,delete f.forwardName,d.setEdge(h.w,h.v,f,p)}})}}),RB=vt((e,t)=>{var r=ln();t.exports={run:a,undo:o};function a(c){c.graph().dummyChains=[],c.edges().forEach(d=>s(c,d))}function s(c,d){let h=d.v,f=c.node(h).rank,p=d.w,g=c.node(p).rank,b=d.name,y=c.edge(d),_=y.labelRank;if(g===f+1)return;c.removeEdge(d);let N,S,w;for(w=0,++f;f<g;++w,++f)y.points=[],S={width:0,height:0,edgeLabel:y,edgeObj:d,rank:f},N=r.addDummyNode(c,"edge",S,"_d"),f===_&&(S.width=y.width,S.height=y.height,S.dummy="edge-label",S.labelpos=y.labelpos),c.setEdge(h,N,{weight:y.weight},b),w===0&&c.graph().dummyChains.push(N),h=N;c.setEdge(h,p,{weight:y.weight},b)}function o(c){c.graph().dummyChains.forEach(d=>{let h=c.node(d),f=h.edgeLabel,p;for(c.setEdge(h.edgeObj,f);h.dummy;)p=c.successors(d)[0],c.removeNode(d),f.points.push({x:h.x,y:h.y}),h.dummy==="edge-label"&&(f.x=h.x,f.y=h.y,f.width=h.width,f.height=h.height),d=p,h=c.node(d)})}}),$u=vt((e,t)=>{var{applyWithChunking:r}=ln();t.exports={longestPath:a,slack:s};function a(o){var c={};function d(h){var f=o.node(h);if(Object.hasOwn(c,h))return f.rank;c[h]=!0;let p=o.outEdges(h).map(b=>b==null?Number.POSITIVE_INFINITY:d(b.w)-o.edge(b).minlen);var g=r(Math.min,p);return g===Number.POSITIVE_INFINITY&&(g=0),f.rank=g}o.sources().forEach(d)}function s(o,c){return o.node(c.w).rank-o.node(c.v).rank-o.edge(c).minlen}}),m2=vt((e,t)=>{var r=zr().Graph,a=$u().slack;t.exports=s;function s(h){var f=new r({directed:!1}),p=h.nodes()[0],g=h.nodeCount();f.setNode(p,{});for(var b,y;o(f,h)<g;)b=c(f,h),y=f.hasNode(b.v)?a(h,b):-a(h,b),d(f,h,y);return f}function o(h,f){function p(g){f.nodeEdges(g).forEach(b=>{var y=b.v,_=g===y?b.w:y;!h.hasNode(_)&&!a(f,b)&&(h.setNode(_,{}),h.setEdge(g,_,{}),p(_))})}return h.nodes().forEach(p),h.nodeCount()}function c(h,f){return f.edges().reduce((p,g)=>{let b=Number.POSITIVE_INFINITY;return h.hasNode(g.v)!==h.hasNode(g.w)&&(b=a(f,g)),b<p[0]?[b,g]:p},[Number.POSITIVE_INFINITY,null])[1]}function d(h,f,p){h.nodes().forEach(g=>f.node(g).rank+=p)}}),jB=vt((e,t)=>{var r=m2(),a=$u().slack,s=$u().longestPath,o=zr().alg.preorder,c=zr().alg.postorder,d=ln().simplify;t.exports=h,h.initLowLimValues=b,h.initCutValues=f,h.calcCutValue=g,h.leaveEdge=_,h.enterEdge=N,h.exchangeEdges=S;function h(A){A=d(A),s(A);var B=r(A);b(B),f(B,A);for(var R,H;R=_(B);)H=N(B,A,R),S(B,A,R,H)}function f(A,B){var R=c(A,A.nodes());R=R.slice(0,R.length-1),R.forEach(H=>p(A,B,H))}function p(A,B,R){var H=A.node(R),z=H.parent;A.edge(R,z).cutvalue=g(A,B,R)}function g(A,B,R){var H=A.node(R),z=H.parent,Y=!0,j=B.edge(R,z),I=0;return j||(Y=!1,j=B.edge(z,R)),I=j.weight,B.nodeEdges(R).forEach(Z=>{var P=Z.v===R,k=P?Z.w:Z.v;if(k!==z){var $=P===Y,O=B.edge(Z).weight;if(I+=$?O:-O,C(A,R,k)){var U=A.edge(R,k).cutvalue;I+=$?-U:U}}}),I}function b(A,B){arguments.length<2&&(B=A.nodes()[0]),y(A,{},1,B)}function y(A,B,R,H,z){var Y=R,j=A.node(H);return B[H]=!0,A.neighbors(H).forEach(I=>{Object.hasOwn(B,I)||(R=y(A,B,R,I,H))}),j.low=Y,j.lim=R++,z?j.parent=z:delete j.parent,R}function _(A){return A.edges().find(B=>A.edge(B).cutvalue<0)}function N(A,B,R){var H=R.v,z=R.w;B.hasEdge(H,z)||(H=R.w,z=R.v);var Y=A.node(H),j=A.node(z),I=Y,Z=!1;Y.lim>j.lim&&(I=j,Z=!0);var P=B.edges().filter(k=>Z===E(A,A.node(k.v),I)&&Z!==E(A,A.node(k.w),I));return P.reduce((k,$)=>a(B,$)<a(B,k)?$:k)}function S(A,B,R,H){var z=R.v,Y=R.w;A.removeEdge(z,Y),A.setEdge(H.v,H.w,{}),b(A),f(A,B),w(A,B)}function w(A,B){var R=A.nodes().find(z=>!B.node(z).parent),H=o(A,R);H=H.slice(1),H.forEach(z=>{var Y=A.node(z).parent,j=B.edge(z,Y),I=!1;j||(j=B.edge(Y,z),I=!0),B.node(z).rank=B.node(Y).rank+(I?j.minlen:-j.minlen)})}function C(A,B,R){return A.hasEdge(B,R)}function E(A,B,R){return R.low<=B.lim&&B.lim<=R.lim}}),DB=vt((e,t)=>{var r=$u(),a=r.longestPath,s=m2(),o=jB();t.exports=c;function c(p){var g=p.graph().ranker;if(g instanceof Function)return g(p);switch(p.graph().ranker){case"network-simplex":f(p);break;case"tight-tree":h(p);break;case"longest-path":d(p);break;case"none":break;default:f(p)}}var d=a;function h(p){a(p),s(p)}function f(p){o(p)}}),LB=vt((e,t)=>{t.exports=r;function r(o){let c=s(o);o.graph().dummyChains.forEach(d=>{let h=o.node(d),f=h.edgeObj,p=a(o,c,f.v,f.w),g=p.path,b=p.lca,y=0,_=g[y],N=!0;for(;d!==f.w;){if(h=o.node(d),N){for(;(_=g[y])!==b&&o.node(_).maxRank<h.rank;)y++;_===b&&(N=!1)}if(!N){for(;y<g.length-1&&o.node(_=g[y+1]).minRank<=h.rank;)y++;_=g[y]}o.setParent(d,_),d=o.successors(d)[0]}})}function a(o,c,d,h){let f=[],p=[],g=Math.min(c[d].low,c[h].low),b=Math.max(c[d].lim,c[h].lim),y,_;y=d;do y=o.parent(y),f.push(y);while(y&&(c[y].low>g||b>c[y].lim));for(_=y,y=h;(y=o.parent(y))!==_;)p.push(y);return{path:f.concat(p.reverse()),lca:_}}function s(o){let c={},d=0;function h(f){let p=d;o.children(f).forEach(h),c[f]={low:p,lim:d++}}return o.children().forEach(h),c}}),zB=vt((e,t)=>{var r=ln();t.exports={run:a,cleanup:d};function a(h){let f=r.addDummyNode(h,"root",{},"_root"),p=o(h),g=Object.values(p),b=r.applyWithChunking(Math.max,g)-1,y=2*b+1;h.graph().nestingRoot=f,h.edges().forEach(N=>h.edge(N).minlen*=y);let _=c(h)+1;h.children().forEach(N=>s(h,f,y,_,b,p,N)),h.graph().nodeRankFactor=y}function s(h,f,p,g,b,y,_){let N=h.children(_);if(!N.length){_!==f&&h.setEdge(f,_,{weight:0,minlen:p});return}let S=r.addBorderNode(h,"_bt"),w=r.addBorderNode(h,"_bb"),C=h.node(_);h.setParent(S,_),C.borderTop=S,h.setParent(w,_),C.borderBottom=w,N.forEach(E=>{s(h,f,p,g,b,y,E);let A=h.node(E),B=A.borderTop?A.borderTop:E,R=A.borderBottom?A.borderBottom:E,H=A.borderTop?g:2*g,z=B!==R?1:b-y[_]+1;h.setEdge(S,B,{weight:H,minlen:z,nestingEdge:!0}),h.setEdge(R,w,{weight:H,minlen:z,nestingEdge:!0})}),h.parent(_)||h.setEdge(f,S,{weight:0,minlen:b+y[_]})}function o(h){var f={};function p(g,b){var y=h.children(g);y&&y.length&&y.forEach(_=>p(_,b+1)),f[g]=b}return h.children().forEach(g=>p(g,1)),f}function c(h){return h.edges().reduce((f,p)=>f+h.edge(p).weight,0)}function d(h){var f=h.graph();h.removeNode(f.nestingRoot),delete f.nestingRoot,h.edges().forEach(p=>{var g=h.edge(p);g.nestingEdge&&h.removeEdge(p)})}}),IB=vt((e,t)=>{var r=ln();t.exports=a;function a(o){function c(d){let h=o.children(d),f=o.node(d);if(h.length&&h.forEach(c),Object.hasOwn(f,"minRank")){f.borderLeft=[],f.borderRight=[];for(let p=f.minRank,g=f.maxRank+1;p<g;++p)s(o,"borderLeft","_bl",d,f,p),s(o,"borderRight","_br",d,f,p)}}o.children().forEach(c)}function s(o,c,d,h,f,p){let g={width:0,height:0,rank:p,borderType:c},b=f[c][p-1],y=r.addDummyNode(o,"border",g,d);f[c][p]=y,o.setParent(y,h),b&&o.setEdge(b,y,{weight:1})}}),BB=vt((e,t)=>{t.exports={adjust:r,undo:a};function r(p){let g=p.graph().rankdir.toLowerCase();(g==="lr"||g==="rl")&&s(p)}function a(p){let g=p.graph().rankdir.toLowerCase();(g==="bt"||g==="rl")&&c(p),(g==="lr"||g==="rl")&&(h(p),s(p))}function s(p){p.nodes().forEach(g=>o(p.node(g))),p.edges().forEach(g=>o(p.edge(g)))}function o(p){let g=p.width;p.width=p.height,p.height=g}function c(p){p.nodes().forEach(g=>d(p.node(g))),p.edges().forEach(g=>{let b=p.edge(g);b.points.forEach(d),Object.hasOwn(b,"y")&&d(b)})}function d(p){p.y=-p.y}function h(p){p.nodes().forEach(g=>f(p.node(g))),p.edges().forEach(g=>{let b=p.edge(g);b.points.forEach(f),Object.hasOwn(b,"x")&&f(b)})}function f(p){let g=p.x;p.x=p.y,p.y=g}}),UB=vt((e,t)=>{var r=ln();t.exports=a;function a(s){let o={},c=s.nodes().filter(g=>!s.children(g).length),d=c.map(g=>s.node(g).rank),h=r.applyWithChunking(Math.max,d),f=r.range(h+1).map(()=>[]);function p(g){if(o[g])return;o[g]=!0;let b=s.node(g);f[b.rank].push(g),s.successors(g).forEach(p)}return c.sort((g,b)=>s.node(g).rank-s.node(b).rank).forEach(p),f}}),HB=vt((e,t)=>{var r=ln().zipObject;t.exports=a;function a(o,c){let d=0;for(let h=1;h<c.length;++h)d+=s(o,c[h-1],c[h]);return d}function s(o,c,d){let h=r(d,d.map((_,N)=>N)),f=c.flatMap(_=>o.outEdges(_).map(N=>({pos:h[N.w],weight:o.edge(N).weight})).sort((N,S)=>N.pos-S.pos)),p=1;for(;p<d.length;)p<<=1;let g=2*p-1;p-=1;let b=new Array(g).fill(0),y=0;return f.forEach(_=>{let N=_.pos+p;b[N]+=_.weight;let S=0;for(;N>0;)N%2&&(S+=b[N+1]),N=N-1>>1,b[N]+=_.weight;y+=_.weight*S}),y}}),$B=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((h,f)=>{let p=a.edge(f),g=a.node(f.v);return{sum:h.sum+p.weight*g.order,weight:h.weight+p.weight}},{sum:0,weight:0});return{v:o,barycenter:d.sum/d.weight,weight:d.weight}}else return{v:o}})}}),qB=vt((e,t)=>{var r=ln();t.exports=a;function a(c,d){let h={};c.forEach((p,g)=>{let b=h[p.v]={indegree:0,in:[],out:[],vs:[p.v],i:g};p.barycenter!==void 0&&(b.barycenter=p.barycenter,b.weight=p.weight)}),d.edges().forEach(p=>{let g=h[p.v],b=h[p.w];g!==void 0&&b!==void 0&&(b.indegree++,g.out.push(h[p.w]))});let f=Object.values(h).filter(p=>!p.indegree);return s(f)}function s(c){let d=[];function h(p){return g=>{g.merged||(g.barycenter===void 0||p.barycenter===void 0||g.barycenter>=p.barycenter)&&o(p,g)}}function f(p){return g=>{g.in.push(p),--g.indegree===0&&c.push(g)}}for(;c.length;){let p=c.pop();d.push(p),p.in.reverse().forEach(h(p)),p.out.forEach(f(p))}return d.filter(p=>!p.merged).map(p=>r.pick(p,["vs","i","barycenter","weight"]))}function o(c,d){let h=0,f=0;c.weight&&(h+=c.barycenter*c.weight,f+=c.weight),d.weight&&(h+=d.barycenter*d.weight,f+=d.weight),c.vs=d.vs.concat(c.vs),c.barycenter=h/f,c.weight=f,c.i=Math.min(d.i,c.i),d.merged=!0}}),PB=vt((e,t)=>{var r=ln();t.exports=a;function a(c,d){let h=r.partition(c,S=>Object.hasOwn(S,"barycenter")),f=h.lhs,p=h.rhs.sort((S,w)=>w.i-S.i),g=[],b=0,y=0,_=0;f.sort(o(!!d)),_=s(g,p,_),f.forEach(S=>{_+=S.vs.length,g.push(S.vs),b+=S.barycenter*S.weight,y+=S.weight,_=s(g,p,_)});let N={vs:g.flat(!0)};return y&&(N.barycenter=b/y,N.weight=y),N}function s(c,d,h){let f;for(;d.length&&(f=d[d.length-1]).i<=h;)d.pop(),c.push(f.vs),h++;return h}function o(c){return(d,h)=>d.barycenter<h.barycenter?-1:d.barycenter>h.barycenter?1:c?h.i-d.i:d.i-h.i}}),FB=vt((e,t)=>{var r=$B(),a=qB(),s=PB();t.exports=o;function o(h,f,p,g){let b=h.children(f),y=h.node(f),_=y?y.borderLeft:void 0,N=y?y.borderRight:void 0,S={};_&&(b=b.filter(A=>A!==_&&A!==N));let w=r(h,b);w.forEach(A=>{if(h.children(A.v).length){let B=o(h,A.v,p,g);S[A.v]=B,Object.hasOwn(B,"barycenter")&&d(A,B)}});let C=a(w,p);c(C,S);let E=s(C,g);if(_&&(E.vs=[_,E.vs,N].flat(!0),h.predecessors(_).length)){let A=h.node(h.predecessors(_)[0]),B=h.node(h.predecessors(N)[0]);Object.hasOwn(E,"barycenter")||(E.barycenter=0,E.weight=0),E.barycenter=(E.barycenter*E.weight+A.order+B.order)/(E.weight+2),E.weight+=2}return E}function c(h,f){h.forEach(p=>{p.vs=p.vs.flatMap(g=>f[g]?f[g].vs:g)})}function d(h,f){h.barycenter!==void 0?(h.barycenter=(h.barycenter*h.weight+f.barycenter*f.weight)/(h.weight+f.weight),h.weight+=f.weight):(h.barycenter=f.barycenter,h.weight=f.weight)}}),GB=vt((e,t)=>{var r=zr().Graph,a=ln();t.exports=s;function s(c,d,h,f){f||(f=c.nodes());let p=o(c),g=new r({compound:!0}).setGraph({root:p}).setDefaultNodeLabel(b=>c.node(b));return f.forEach(b=>{let y=c.node(b),_=c.parent(b);(y.rank===d||y.minRank<=d&&d<=y.maxRank)&&(g.setNode(b),g.setParent(b,_||p),c[h](b).forEach(N=>{let S=N.v===b?N.w:N.v,w=g.edge(S,b),C=w!==void 0?w.weight:0;g.setEdge(S,b,{weight:c.edge(N).weight+C})}),Object.hasOwn(y,"minRank")&&g.setNode(b,{borderLeft:y.borderLeft[d],borderRight:y.borderRight[d]}))}),g}function o(c){for(var d;c.hasNode(d=a.uniqueId("_root")););return d}}),VB=vt((e,t)=>{t.exports=r;function r(a,s,o){let c={},d;o.forEach(h=>{let f=a.parent(h),p,g;for(;f;){if(p=a.parent(f),p?(g=c[p],c[p]=f):(g=d,d=f),g&&g!==f){s.setEdge(g,f);return}f=p}})}}),YB=vt((e,t)=>{var r=UB(),a=HB(),s=FB(),o=GB(),c=VB(),d=zr().Graph,h=ln();t.exports=f;function f(y,_={}){if(typeof _.customOrder=="function"){_.customOrder(y,f);return}let N=h.maxRank(y),S=p(y,h.range(1,N+1),"inEdges"),w=p(y,h.range(N-1,-1,-1),"outEdges"),C=r(y);if(b(y,C),_.disableOptimalOrderHeuristic)return;let E=Number.POSITIVE_INFINITY,A,B=_.constraints||[];for(let R=0,H=0;H<4;++R,++H){g(R%2?S:w,R%4>=2,B),C=h.buildLayerMatrix(y);let z=a(y,C);z<E?(H=0,A=Object.assign({},C),E=z):z===E&&(A=structuredClone(C))}b(y,A)}function p(y,_,N){let S=new Map,w=(C,E)=>{S.has(C)||S.set(C,[]),S.get(C).push(E)};for(let C of y.nodes()){let E=y.node(C);if(typeof E.rank=="number"&&w(E.rank,C),typeof E.minRank=="number"&&typeof E.maxRank=="number")for(let A=E.minRank;A<=E.maxRank;A++)A!==E.rank&&w(A,C)}return _.map(function(C){return o(y,C,N,S.get(C)||[])})}function g(y,_,N){let S=new d;y.forEach(function(w){N.forEach(A=>S.setEdge(A.left,A.right));let C=w.graph().root,E=s(w,C,S,_);E.vs.forEach((A,B)=>w.node(A).order=B),c(w,S,E.vs)})}function b(y,_){Object.values(_).forEach(N=>N.forEach((S,w)=>y.node(S).order=w))}}),XB=vt((e,t)=>{var r=zr().Graph,a=ln();t.exports={positionX:N,findType1Conflicts:s,findType2Conflicts:o,addConflict:d,hasConflict:h,verticalAlignment:f,horizontalCompaction:p,alignCoordinates:y,findSmallestWidthAlignment:b,balance:_};function s(C,E){let A={};function B(R,H){let z=0,Y=0,j=R.length,I=H[H.length-1];return H.forEach((Z,P)=>{let k=c(C,Z),$=k?C.node(k).order:j;(k||Z===I)&&(H.slice(Y,P+1).forEach(O=>{C.predecessors(O).forEach(U=>{let K=C.node(U),X=K.order;(X<z||$<X)&&!(K.dummy&&C.node(O).dummy)&&d(A,U,O)})}),Y=P+1,z=$)}),H}return E.length&&E.reduce(B),A}function o(C,E){let A={};function B(H,z,Y,j,I){let Z;a.range(z,Y).forEach(P=>{Z=H[P],C.node(Z).dummy&&C.predecessors(Z).forEach(k=>{let $=C.node(k);$.dummy&&($.order<j||$.order>I)&&d(A,k,Z)})})}function R(H,z){let Y=-1,j,I=0;return z.forEach((Z,P)=>{if(C.node(Z).dummy==="border"){let k=C.predecessors(Z);k.length&&(j=C.node(k[0]).order,B(z,I,P,Y,j),I=P,Y=j)}B(z,I,z.length,j,H.length)}),z}return E.length&&E.reduce(R),A}function c(C,E){if(C.node(E).dummy)return C.predecessors(E).find(A=>C.node(A).dummy)}function d(C,E,A){if(E>A){let R=E;E=A,A=R}let B=C[E];B||(C[E]=B={}),B[A]=!0}function h(C,E,A){if(E>A){let B=E;E=A,A=B}return!!C[E]&&Object.hasOwn(C[E],A)}function f(C,E,A,B){let R={},H={},z={};return E.forEach(Y=>{Y.forEach((j,I)=>{R[j]=j,H[j]=j,z[j]=I})}),E.forEach(Y=>{let j=-1;Y.forEach(I=>{let Z=B(I);if(Z.length){Z=Z.sort((k,$)=>z[k]-z[$]);let P=(Z.length-1)/2;for(let k=Math.floor(P),$=Math.ceil(P);k<=$;++k){let O=Z[k];H[I]===I&&j<z[O]&&!h(A,I,O)&&(H[O]=I,H[I]=R[I]=R[O],j=z[O])}}})}),{root:R,align:H}}function p(C,E,A,B,R){let H={},z=g(C,E,A,R),Y=R?"borderLeft":"borderRight";function j(P,k){let $=z.nodes().slice(),O={},U=$.pop();for(;U;){if(O[U])P(U);else{O[U]=!0,$.push(U);for(let K of k(U))$.push(K)}U=$.pop()}}function I(P){H[P]=z.inEdges(P).reduce((k,$)=>Math.max(k,H[$.v]+z.edge($)),0)}function Z(P){let k=z.outEdges(P).reduce((O,U)=>Math.min(O,H[U.w]-z.edge(U)),Number.POSITIVE_INFINITY),$=C.node(P);k!==Number.POSITIVE_INFINITY&&$.borderType!==Y&&(H[P]=Math.max(H[P],k))}return j(I,z.predecessors.bind(z)),j(Z,z.successors.bind(z)),Object.keys(B).forEach(P=>H[P]=H[A[P]]),H}function g(C,E,A,B){let R=new r,H=C.graph(),z=S(H.nodesep,H.edgesep,B);return E.forEach(Y=>{let j;Y.forEach(I=>{let Z=A[I];if(R.setNode(Z),j){var P=A[j],k=R.edge(P,Z);R.setEdge(P,Z,Math.max(z(C,I,j),k||0))}j=I})}),R}function b(C,E){return Object.values(E).reduce((A,B)=>{let R=Number.NEGATIVE_INFINITY,H=Number.POSITIVE_INFINITY;Object.entries(B).forEach(([Y,j])=>{let I=w(C,Y)/2;R=Math.max(j+I,R),H=Math.min(j-I,H)});let z=R-H;return z<A[0]&&(A=[z,B]),A},[Number.POSITIVE_INFINITY,null])[1]}function y(C,E){let A=Object.values(E),B=a.applyWithChunking(Math.min,A),R=a.applyWithChunking(Math.max,A);["u","d"].forEach(H=>{["l","r"].forEach(z=>{let Y=H+z,j=C[Y];if(j===E)return;let I=Object.values(j),Z=B-a.applyWithChunking(Math.min,I);z!=="l"&&(Z=R-a.applyWithChunking(Math.max,I)),Z&&(C[Y]=a.mapValues(j,P=>P+Z))})})}function _(C,E){return a.mapValues(C.ul,(A,B)=>{if(E)return C[E.toLowerCase()][B];{let R=Object.values(C).map(H=>H[B]).sort((H,z)=>H-z);return(R[1]+R[2])/2}})}function N(C){let E=a.buildLayerMatrix(C),A=Object.assign(s(C,E),o(C,E)),B={},R;["u","d"].forEach(z=>{R=z==="u"?E:Object.values(E).reverse(),["l","r"].forEach(Y=>{Y==="r"&&(R=R.map(P=>Object.values(P).reverse()));let j=(z==="u"?C.predecessors:C.successors).bind(C),I=f(C,R,A,j),Z=p(C,R,I.root,I.align,Y==="r");Y==="r"&&(Z=a.mapValues(Z,P=>-P)),B[z+Y]=Z})});let H=b(C,B);return y(B,H),_(B,C.graph().align)}function S(C,E,A){return(B,R,H)=>{let z=B.node(R),Y=B.node(H),j=0,I;if(j+=z.width/2,Object.hasOwn(z,"labelpos"))switch(z.labelpos.toLowerCase()){case"l":I=-z.width/2;break;case"r":I=z.width/2;break}if(I&&(j+=A?I:-I),I=0,j+=(z.dummy?E:C)/2,j+=(Y.dummy?E:C)/2,j+=Y.width/2,Object.hasOwn(Y,"labelpos"))switch(Y.labelpos.toLowerCase()){case"l":I=Y.width/2;break;case"r":I=-Y.width/2;break}return I&&(j+=A?I:-I),I=0,j}}function w(C,E){return C.node(E).width}}),KB=vt((e,t)=>{var r=ln(),a=XB().positionX;t.exports=s;function s(c){c=r.asNonCompoundGraph(c),o(c),Object.entries(a(c)).forEach(([d,h])=>c.node(d).x=h)}function o(c){let d=r.buildLayerMatrix(c),h=c.graph().ranksep,f=c.graph().rankalign,p=0;d.forEach(g=>{let b=g.reduce((y,_)=>{let N=c.node(_).height;return y>N?y:N},0);g.forEach(y=>{let _=c.node(y);f==="top"?_.y=p+_.height/2:f==="bottom"?_.y=p+b-_.height/2:_.y=p+b/2}),p+=b+h})}}),ZB=vt((e,t)=>{var r=OB(),a=RB(),s=DB(),o=ln().normalizeRanks,c=LB(),d=ln().removeEmptyRanks,h=zB(),f=IB(),p=BB(),g=YB(),b=KB(),y=ln(),_=zr().Graph;t.exports=N;function N(q,Q={}){let J=Q.debugTiming?y.time:y.notime;return J("layout",()=>{let W=J(" buildLayoutGraph",()=>j(q));return J(" runLayout",()=>S(W,J,Q)),J(" updateInputGraph",()=>w(q,W)),W})}function S(q,Q,J){Q(" makeSpaceForEdgeLabels",()=>I(q)),Q(" removeSelfEdges",()=>M(q)),Q(" acyclic",()=>r.run(q)),Q(" nestingGraph.run",()=>h.run(q)),Q(" rank",()=>s(y.asNonCompoundGraph(q))),Q(" injectEdgeLabelProxies",()=>Z(q)),Q(" removeEmptyRanks",()=>d(q)),Q(" nestingGraph.cleanup",()=>h.cleanup(q)),Q(" normalizeRanks",()=>o(q)),Q(" assignRankMinMax",()=>P(q)),Q(" removeEdgeLabelProxies",()=>k(q)),Q(" normalize.run",()=>a.run(q)),Q(" parentDummyChains",()=>c(q)),Q(" addBorderSegments",()=>f(q)),Q(" order",()=>g(q,J)),Q(" insertSelfEdges",()=>L(q)),Q(" adjustCoordinateSystem",()=>p.adjust(q)),Q(" position",()=>b(q)),Q(" positionSelfEdges",()=>F(q)),Q(" removeBorderNodes",()=>X(q)),Q(" normalize.undo",()=>a.undo(q)),Q(" fixupEdgeLabelCoords",()=>U(q)),Q(" undoCoordinateSystem",()=>p.undo(q)),Q(" translateGraph",()=>$(q)),Q(" assignNodeIntersects",()=>O(q)),Q(" reversePoints",()=>K(q)),Q(" acyclic.undo",()=>r.undo(q))}function w(q,Q){q.nodes().forEach(J=>{let W=q.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))}),q.edges().forEach(J=>{let W=q.edge(J),te=Q.edge(J);W.points=te.points,Object.hasOwn(te,"x")&&(W.x=te.x,W.y=te.y)}),q.graph().width=Q.graph().width,q.graph().height=Q.graph().height}var C=["nodesep","edgesep","ranksep","marginx","marginy"],E={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb",rankalign:"center"},A=["acyclicer","ranker","rankdir","align","rankalign"],B=["width","height","rank"],R={width:0,height:0},H=["minlen","weight","width","height","labeloffset"],z={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Y=["labelpos"];function j(q){let Q=new _({multigraph:!0,compound:!0}),J=V(q.graph());return Q.setGraph(Object.assign({},E,D(J,C),y.pick(J,A))),q.nodes().forEach(W=>{let te=V(q.node(W)),oe=D(te,B);Object.keys(R).forEach(fe=>{oe[fe]===void 0&&(oe[fe]=R[fe])}),Q.setNode(W,oe),Q.setParent(W,q.parent(W))}),q.edges().forEach(W=>{let te=V(q.edge(W));Q.setEdge(W,Object.assign({},z,D(te,H),y.pick(te,Y)))}),Q}function I(q){let Q=q.graph();Q.ranksep/=2,q.edges().forEach(J=>{let W=q.edge(J);W.minlen*=2,W.labelpos.toLowerCase()!=="c"&&(Q.rankdir==="TB"||Q.rankdir==="BT"?W.width+=W.labeloffset:W.height+=W.labeloffset)})}function Z(q){q.edges().forEach(Q=>{let J=q.edge(Q);if(J.width&&J.height){let W=q.node(Q.v),te={rank:(q.node(Q.w).rank-W.rank)/2+W.rank,e:Q};y.addDummyNode(q,"edge-proxy",te,"_ep")}})}function P(q){let Q=0;q.nodes().forEach(J=>{let W=q.node(J);W.borderTop&&(W.minRank=q.node(W.borderTop).rank,W.maxRank=q.node(W.borderBottom).rank,Q=Math.max(Q,W.maxRank))}),q.graph().maxRank=Q}function k(q){q.nodes().forEach(Q=>{let J=q.node(Q);J.dummy==="edge-proxy"&&(q.edge(J.e).labelRank=J.rank,q.removeNode(Q))})}function $(q){let Q=Number.POSITIVE_INFINITY,J=0,W=Number.POSITIVE_INFINITY,te=0,oe=q.graph(),fe=oe.marginx||0,xe=oe.marginy||0;function we(Ne){let De=Ne.x,$e=Ne.y,st=Ne.width,Rt=Ne.height;Q=Math.min(Q,De-st/2),J=Math.max(J,De+st/2),W=Math.min(W,$e-Rt/2),te=Math.max(te,$e+Rt/2)}q.nodes().forEach(Ne=>we(q.node(Ne))),q.edges().forEach(Ne=>{let De=q.edge(Ne);Object.hasOwn(De,"x")&&we(De)}),Q-=fe,W-=xe,q.nodes().forEach(Ne=>{let De=q.node(Ne);De.x-=Q,De.y-=W}),q.edges().forEach(Ne=>{let De=q.edge(Ne);De.points.forEach($e=>{$e.x-=Q,$e.y-=W}),Object.hasOwn(De,"x")&&(De.x-=Q),Object.hasOwn(De,"y")&&(De.y-=W)}),oe.width=J-Q+fe,oe.height=te-W+xe}function O(q){q.edges().forEach(Q=>{let J=q.edge(Q),W=q.node(Q.v),te=q.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(y.intersectRect(W,oe)),J.points.push(y.intersectRect(te,fe))})}function U(q){q.edges().forEach(Q=>{let J=q.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(q){q.edges().forEach(Q=>{let J=q.edge(Q);J.reversed&&J.points.reverse()})}function X(q){q.nodes().forEach(Q=>{if(q.children(Q).length){let J=q.node(Q),W=q.node(J.borderTop),te=q.node(J.borderBottom),oe=q.node(J.borderLeft[J.borderLeft.length-1]),fe=q.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}}),q.nodes().forEach(Q=>{q.node(Q).dummy==="border"&&q.removeNode(Q)})}function M(q){q.edges().forEach(Q=>{if(Q.v===Q.w){var J=q.node(Q.v);J.selfEdges||(J.selfEdges=[]),J.selfEdges.push({e:Q,label:q.edge(Q)}),q.removeEdge(Q)}})}function L(q){var Q=y.buildLayerMatrix(q);Q.forEach(J=>{var W=0;J.forEach((te,oe)=>{var fe=q.node(te);fe.order=oe+W,(fe.selfEdges||[]).forEach(xe=>{y.addDummyNode(q,"selfedge",{width:xe.label.width,height:xe.label.height,rank:fe.rank,order:oe+ ++W,e:xe.e,label:xe.label},"_se")}),delete fe.selfEdges})})}function F(q){q.nodes().forEach(Q=>{var J=q.node(Q);if(J.dummy==="selfedge"){var W=q.node(J.e.v),te=W.x+W.width/2,oe=W.y,fe=J.x-te,xe=W.height/2;q.setEdge(J.e,J.label),q.removeNode(Q),J.label.points=[{x:te+2*fe/3,y:oe-xe},{x:te+5*fe/6,y:oe-xe},{x:te+fe,y:oe},{x:te+5*fe/6,y:oe+xe},{x:te+2*fe/3,y:oe+xe}],J.label.x=J.x,J.label.y=J.y}})}function D(q,Q){return y.mapValues(y.pick(q,Q),Number)}function V(q){var Q={};return q&&Object.entries(q).forEach(([J,W])=>{typeof J=="string"&&(J=J.toLowerCase()),Q[J]=W}),Q}}),QB=vt((e,t)=>{var r=ln(),a=zr().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(h=>{d.setNode(h,{label:h}),d.setParent(h,"layer"+o.node(h).rank)}),o.edges().forEach(h=>d.setEdge(h.v,h.w,{},h.name)),c.forEach((h,f)=>{let p="layer"+f;d.setNode(p,{rank:"same"}),h.reduce((g,b)=>(d.setEdge(g,b,{style:"invis"}),b))}),d}}),WB=vt((e,t)=>{t.exports="2.0.4"}),JB=vt((e,t)=>{t.exports={graphlib:zr(),layout:ZB(),debug:QB(),util:{time:ln().time,notime:ln().notime},version:WB()}});const t_=JB();/*! For license information please see dagre.esm.js.LEGAL.txt */const n_={running:"bg-blue-500",completed:"bg-emerald-500",failed:"bg-red-500",error:"bg-red-500"};function e7({data:e,selected:t}){const r=e;return m.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:[m.jsx(tl,{type:"target",position:ze.Top,isConnectable:!1,className:`!w-1.5 !h-1.5 !border-0 ${r.parentId?"!bg-[#444]":"!bg-transparent"}`}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsxs("span",{className:"relative flex h-2 w-2 shrink-0",children:[m.jsx("span",{className:`absolute inline-flex h-full w-full rounded-full opacity-75 ${n_[r.status]??"bg-gray-500"} ${r.status==="running"?"animate-ping":""}`}),m.jsx("span",{className:`relative inline-flex h-2 w-2 rounded-full ${n_[r.status]??"bg-gray-500"}`})]}),m.jsx("span",{className:"text-sm font-semibold text-white leading-snug line-clamp-3",children:r.name})]}),m.jsx(tl,{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 t7=ee.memo(e7);function ro({w:e=24}){return m.jsxs("div",{className:"w-[180px] h-[72px] rounded-lg border border-[#222] bg-[#0a0a0a] px-3 py-2 shrink-0",children:[m.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[m.jsx("div",{className:"w-2 h-2 rounded-full bg-[#2a2a2a]"}),m.jsx("div",{className:"h-3 rounded bg-[#252525]",style:{width:`${e*4}px`}})]}),m.jsx("div",{className:"h-2 w-28 rounded bg-[#1e1e1e] mb-1.5"}),m.jsxs("div",{className:"flex gap-3",children:[m.jsx("div",{className:"h-2 w-8 rounded bg-[#1e1e1e]"}),m.jsx("div",{className:"h-2 w-8 rounded bg-[#1e1e1e]"})]})]})}function Bs(){return m.jsx("div",{className:"w-px h-6 bg-[#2a2a2a]"})}function r_({count:e}){return m.jsx("div",{className:"relative flex justify-center",children:m.jsx("div",{className:"absolute top-0 h-px bg-[#2a2a2a]",style:{width:`${(e-1)*220}px`}})})}function n7(){return m.jsx("div",{className:"h-full bg-black overflow-hidden",children:m.jsxs("div",{className:"flex flex-col items-center pt-10 animate-pulse",children:[m.jsx(ro,{w:20}),m.jsx(Bs,{}),m.jsx(r_,{count:3}),m.jsx("div",{className:"flex gap-10",children:[18,22,16].map((e,t)=>m.jsxs("div",{className:"flex flex-col items-center",children:[m.jsx(Bs,{}),m.jsx(ro,{w:e})]},t))}),m.jsxs("div",{className:"flex gap-10 w-full justify-center",children:[m.jsxs("div",{className:"flex flex-col items-center",children:[m.jsx(Bs,{}),m.jsx(r_,{count:2}),m.jsx("div",{className:"flex gap-10",children:[14,20].map((e,t)=>m.jsxs("div",{className:"flex flex-col items-center",children:[m.jsx(Bs,{}),m.jsx(ro,{w:e})]},t))})]}),m.jsxs("div",{className:"flex flex-col items-center",children:[m.jsx(Bs,{}),m.jsx(ro,{w:18}),m.jsx(Bs,{}),m.jsx(ro,{w:12})]}),m.jsx("div",{className:"w-[180px]"})]})]})})}const yp=260,vp=80,r7={agentNode:t7};function i7(e,t){const r=new t_.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:yp,height:vp}),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}})}t_.layout(r);for(const o of a){const c=r.node(o.id);c&&(o.position={x:c.x-yp/2,y:c.y-vp/2})}return{nodes:a,edges:s}}const Lm=300;function a7({nodes:e}){const{setCenter:t}=qo(),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+yp/2,c=s.position.y+vp/2;setTimeout(()=>t(o,c,{zoom:.85,duration:400}),60)}},[e,t]),null}function s7(){const{zoomIn:e,zoomOut:t,fitView:r}=qo();return m.jsx(dB,{position:"bottom-right",showZoom:!1,showFitView:!1,showInteractive:!1,className:"!bg-transparent !border-none !shadow-none",children:m.jsxs("div",{className:"flex flex-col overflow-hidden rounded-lg border border-[#222]",children:[m.jsx("button",{onClick:()=>e({duration:Lm}),className:"flex items-center justify-center w-7 h-7 bg-[#111] text-white hover:bg-[#2a2a2a] transition-colors",title:"Zoom in",children:m.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"w-3.5 h-3.5",children:m.jsx("path",{d:"M12 5v14M5 12h14"})})}),m.jsx("button",{onClick:()=>t({duration:Lm}),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:m.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"w-3.5 h-3.5",children:m.jsx("path",{d:"M5 12h14"})})}),m.jsx("button",{onClick:()=>r({padding:.3,duration:Lm}),className:"flex items-center justify-center w-7 h-7 bg-[#111] text-white hover:bg-[#2a2a2a] transition-colors",title:"Fit view",children:m.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"w-3.5 h-3.5",children:m.jsx("path",{d:"M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"})})})]})})}function l7({agents:e,selectedAgentId:t,onSelectAgent:r,eventsLoaded:a,eventsEmpty:s,scanCompleted:o}){const[c,d,h]=W9([]),[f,p,g]=J9([]);ee.useEffect(()=>{if(e.size===0)return;const{nodes:S,edges:w}=i7(e,t);d(S),p(w)},[e.size,d,p]),ee.useEffect(()=>{e.size!==0&&d(S=>S.map(w=>{const C=e.get(w.id);return C?{...w,data:{...C,isSelected:w.id===t}}:w}))},[e,t,d]);const b=ee.useRef(!1),y=ee.useCallback((S,w)=>{b.current=!0,r(w.id)},[r]),_=ee.useCallback(()=>{if(b.current){b.current=!1;return}r(null)},[r]);if(e.size===0&&a&&s)return m.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center px-4",children:[m.jsx("div",{className:"w-10 h-10 mb-3 rounded-full bg-[#111] flex items-center justify-center",children:o?m.jsx("svg",{className:"w-5 h-5 text-[#444]",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:m.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"})}):m.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-500 animate-pulse"})}),m.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 m.jsxs("div",{className:"relative h-full",children:[m.jsx("div",{className:`absolute inset-0 z-10 transition-opacity duration-500 ${N?"opacity-0 pointer-events-none":"opacity-100"}`,children:m.jsx(n7,{})}),m.jsx("div",{className:`h-full transition-opacity duration-500 ${N?"opacity-100":"opacity-0"}`,children:m.jsxs(Q9,{nodes:c,edges:f,onNodesChange:h,onEdgesChange:g,onNodeClick:y,onPaneClick:_,nodeTypes:r7,nodesConnectable:!1,edgesFocusable:!1,edgesReconnectable:!1,minZoom:.15,maxZoom:1.5,proOptions:{hideAttribution:!0},className:"bg-black",children:[m.jsx(iB,{color:"#111",gap:20}),m.jsx(a7,{nodes:c}),m.jsx(s7,{}),m.jsx(SB,{position:"bottom-left",nodeColor:S=>{var C;const w=(C=S.data)==null?void 0:C.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 da({text:e,className:t=""}){return m.jsx("div",{className:`prose-markdown ${t}`,children:m.jsx(Yp,{remarkPlugins:[Qp],rehypePlugins:[Wp],components:Jp,children:e})})}const i_=6,a_=20;function qt({text:e,maxLines:t=20}){const[r,a]=ee.useState(!1),o=e.trimEnd().split(`
+`)),p=f.reduce((g,b)=>g.concat(...b),[]);return[f,p]}return[[],[]]},[e]);return ee.useEffect(()=>{const h=(t==null?void 0:t.target)??L1,f=(t==null?void 0:t.actInsideInputWithModifier)??!0;if(e!==null){const p=y=>{var S,w;if(s.current=y.ctrlKey||y.metaKey||y.shiftKey||y.altKey,(!s.current||s.current&&!f)&&pN(y))return!1;const N=I1(y.code,d);if(o.current.add(y[N]),z1(c,o.current,!1)){const C=((w=(S=y.composedPath)==null?void 0:S.call(y))==null?void 0:w[0])||y.target,E=(C==null?void 0:C.nodeName)==="BUTTON"||(C==null?void 0:C.nodeName)==="A";t.preventDefault!==!1&&(s.current||!E)&&y.preventDefault(),a(!0)}},g=y=>{const _=I1(y.code,d);z1(c,o.current,!0)?(a(!1),o.current.clear()):o.current.delete(y[_]),y.key==="Meta"&&o.current.clear(),s.current=!1},b=()=>{o.current.clear(),a(!1)};return h==null||h.addEventListener("keydown",p),h==null||h.addEventListener("keyup",g),window.addEventListener("blur",b),window.addEventListener("contextmenu",b),()=>{h==null||h.removeEventListener("keydown",p),h==null||h.removeEventListener("keyup",g),window.removeEventListener("blur",b),window.removeEventListener("contextmenu",b)}}},[e,a]),r}function z1(e,t,r){return e.filter(a=>r||a.length===t.size).some(a=>a.every(s=>t.has(s)))}function I1(e,t){return t.includes(e)?"code":"key"}const k8=()=>{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(),h=ug(t,a,s,o,c,(r==null?void 0:r.padding)??.1);return d?(await d.setViewport(h,{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:h}=c.getBoundingClientRect(),f={x:t.x-d,y:t.y-h},p=r.snapGrid??s,g=r.snapToGrid??o;return $o(f,a,g,p)},flowToScreenPosition:t=>{const{transform:r,domNode:a}=e.getState();if(!a)return t;const{x:s,y:o}=a.getBoundingClientRect(),c=Js(t,r);return{x:c.x+s,y:c.y+o}}}),[])};function IN(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 h of c)C8(h,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 C8(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 IN(e,t)}function UN(e,t){return IN(e,t)}function Ha(e,t){return{id:e,type:"select",selected:t}}function qs(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(Ha(o.id,c)))}return a}function B1({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),h=((s=d==null?void 0:d.internals)==null?void 0:s.userNode)??d;h!==void 0&&h!==c&&r.push({id:c.id,item:c,type:"replace"}),h===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 U1(e){return{id:e.id,type:"remove"}}const T8=dN();function A8(e,t,r={}){return mI(e,t,{...r,onError:r.onError??T8})}const H1=e=>Jz(e),M8=e=>sN(e);function HN(e){return ee.forwardRef(e)}const $N=typeof window<"u"?ee.useLayoutEffect:ee.useEffect;function $1(e){const[t,r]=ee.useState(BigInt(0)),[a]=ee.useState(()=>O8(()=>r(s=>s+BigInt(1))));return $N(()=>{const s=a.get();s.length&&(e(s),a.reset())},[t]),a}function O8(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:r=>{t.push(r),e()}}}const qN=ee.createContext(null);function R8({children:e}){const t=Lt(),r=ee.useCallback(d=>{const{nodes:h=[],setNodes:f,hasDefaultNodes:p,onNodesChange:g,nodeLookup:b,fitViewQueued:y,onNodesChangeMiddlewareMap:_}=t.getState();let N=h;for(const w of d)N=typeof w=="function"?w(N):w;let S=B1({items:N,lookup:b});for(const w of _.values())S=w(S);p&&f(N),S.length>0?g==null||g(S):y&&window.requestAnimationFrame(()=>{const{fitViewQueued:w,nodes:C,setNodes:E}=t.getState();w&&E(C)})},[]),a=$1(r),s=ee.useCallback(d=>{const{edges:h=[],setEdges:f,hasDefaultEdges:p,onEdgesChange:g,edgeLookup:b}=t.getState();let y=h;for(const _ of d)y=typeof _=="function"?_(y):_;p?f(y):g&&g(B1({items:y,lookup:b}))},[]),o=$1(s),c=ee.useMemo(()=>({nodeQueue:a,edgeQueue:o}),[]);return m.jsx(qN.Provider,{value:c,children:e})}function j8(){const e=ee.useContext(qN);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const D8=e=>!!e.panZoom;function qo(){const e=k8(),t=Lt(),r=j8(),a=dt(D8),s=ee.useMemo(()=>{const o=g=>t.getState().nodeLookup.get(g),c=g=>{r.nodeQueue.push(g)},d=g=>{r.edgeQueue.push(g)},h=g=>{var w,C;const{nodeLookup:b,nodeOrigin:y}=t.getState(),_=H1(g)?g:b.get(g.id),N=_.parentId?hN(_.position,_.measured,_.parentId,b,y):_.position,S={..._,position:N,width:((w=_.measured)==null?void 0:w.width)??_.width,height:((C=_.measured)==null?void 0:C.height)??_.height};return ko(S)},f=(g,b,y={replace:!1})=>{c(_=>_.map(N=>{if(N.id===g){const S=typeof b=="function"?b(N):b;return y.replace&&H1(S)?S:{...N,...S}}return N}))},p=(g,b,y={replace:!1})=>{d(_=>_.map(N=>{if(N.id===g){const S=typeof b=="function"?b(N):b;return y.replace&&M8(S)?S:{...N,...S}}return N}))};return{getNodes:()=>t.getState().nodes.map(g=>({...g})),getNode:g=>{var b;return(b=o(g))==null?void 0:b.internals.userNode},getInternalNode:o,getEdges:()=>{const{edges:g=[]}=t.getState();return g.map(b=>({...b}))},getEdge:g=>t.getState().edgeLookup.get(g),setNodes:c,setEdges:d,addNodes:g=>{const b=Array.isArray(g)?g:[g];r.nodeQueue.push(y=>[...y,...b])},addEdges:g=>{const b=Array.isArray(g)?g:[g];r.edgeQueue.push(y=>[...y,...b])},toObject:()=>{const{nodes:g=[],edges:b=[],transform:y}=t.getState(),[_,N,S]=y;return{nodes:g.map(w=>({...w})),edges:b.map(w=>({...w})),viewport:{x:_,y:N,zoom:S}}},deleteElements:async({nodes:g=[],edges:b=[]})=>{const{nodes:y,edges:_,onNodesDelete:N,onEdgesDelete:S,triggerNodeChanges:w,triggerEdgeChanges:C,onDelete:E,onBeforeDelete:A}=t.getState(),{nodes:B,edges:R}=await iI({nodesToRemove:g,edgesToRemove:b,nodes:y,edges:_,onBeforeDelete:A}),H=R.length>0,z=B.length>0;if(H){const Y=R.map(U1);S==null||S(R),C(Y)}if(z){const Y=B.map(U1);N==null||N(B),w(Y)}return(z||H)&&(E==null||E({nodes:B,edges:R})),{deletedNodes:B,deletedEdges:R}},getIntersectingNodes:(g,b=!0,y)=>{const _=d1(g),N=_?g:h(g),S=y!==void 0;return N?(y||t.getState().nodes).filter(w=>{const C=t.getState().nodeLookup.get(w.id);if(C&&!_&&(w.id===g.id||!C.internals.positionAbsolute))return!1;const E=ko(S?w:C),A=Hu(E,N);return b&&A>0||A>=E.width*E.height||A>=N.width*N.height}):[]},isNodeIntersecting:(g,b,y=!0)=>{const N=d1(g)?g:h(g);if(!N)return!1;const S=Hu(N,b);return y&&S>0||S>=b.width*b.height||S>=N.width*N.height},updateNode:f,updateNodeData:(g,b,y={replace:!1})=>{f(g,_=>{const N=typeof b=="function"?b(_):b;return y.replace?{..._,data:N}:{..._,data:{..._.data,...N}}},y)},updateEdge:p,updateEdgeData:(g,b,y={replace:!1})=>{p(g,_=>{const N=typeof b=="function"?b(_):b;return y.replace?{..._,data:N}:{..._,data:{..._.data,...N}}},y)},getNodesBounds:g=>{const{nodeLookup:b,nodeOrigin:y}=t.getState();return eI(g,{nodeLookup:b,nodeOrigin:y})},getHandleConnections:({type:g,id:b,nodeId:y})=>{var _;return Array.from(((_=t.getState().connectionLookup.get(`${y}-${g}${b?`-${b}`:""}`))==null?void 0:_.values())??[])},getNodeConnections:({type:g,handleId:b,nodeId:y})=>{var _;return Array.from(((_=t.getState().connectionLookup.get(`${y}${g?b?`-${g}-${b}`:`-${g}`:""}`))==null?void 0:_.values())??[])},fitView:async g=>{const b=t.getState().fitViewResolver??lI();return t.setState({fitViewQueued:!0,fitViewOptions:g,fitViewResolver:b}),r.nodeQueue.push(y=>[...y]),b.promise}}},[]);return ee.useMemo(()=>({...s,...e,viewportInitialized:a}),[a])}const q1=e=>e.selected,L8=typeof window<"u"?window:void 0;function z8({deleteKeyCode:e,multiSelectionKeyCode:t}){const r=Lt(),{deleteElements:a}=qo(),s=To(e,{actInsideInputWithModifier:!1}),o=To(t,{target:L8});ee.useEffect(()=>{if(s){const{edges:c,nodes:d}=r.getState();a({nodes:d.filter(q1),edges:c.filter(q1)}),r.setState({nodesSelectionActive:!1})}},[s]),ee.useEffect(()=>{r.setState({multiSelectionActive:o})},[o])}function I8(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=dg(e.current);(a.height===0||a.width===0)&&((d=(c=t.getState()).onError)==null||d.call(c,"004",Lr.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 ud={position:"absolute",width:"100%",height:"100%",top:0,left:0},B8=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function U8({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:r=!0,panOnScroll:a=!1,panOnScrollSpeed:s=.5,panOnScrollMode:o=Fa.Free,zoomOnDoubleClick:c=!0,panOnDrag:d=!0,defaultViewport:h,translateExtent:f,minZoom:p,maxZoom:g,zoomActivationKeyCode:b,preventScrolling:y=!0,children:_,noWheelClassName:N,noPanClassName:S,onViewportChange:w,isControlledViewport:C,paneClickDistance:E,selectionOnDrag:A}){const B=Lt(),R=ee.useRef(null),{userSelectionActive:H,lib:z,connectionInProgress:Y}=dt(B8,Pt),j=To(b),I=ee.useRef();I8(R);const Z=ee.useCallback(P=>{w==null||w({x:P[0],y:P[1],zoom:P[2]}),C||B.setState({transform:P})},[w,C]);return ee.useEffect(()=>{if(R.current){I.current=FI({domNode:R.current,minZoom:p,maxZoom:g,translateExtent:f,viewport:h,onDraggingChange:O=>B.setState(U=>U.paneDragging===O?U:{paneDragging:O}),onPanZoomStart:(O,U)=>{const{onViewportChangeStart:K,onMoveStart:X}=B.getState();X==null||X(O,U),K==null||K(U)},onPanZoom:(O,U)=>{const{onViewportChange:K,onMove:X}=B.getState();X==null||X(O,U),K==null||K(U)},onPanZoomEnd:(O,U)=>{const{onViewportChangeEnd:K,onMoveEnd:X}=B.getState();X==null||X(O,U),K==null||K(U)}});const{x:P,y:k,zoom:$}=I.current.getViewport();return B.setState({panZoom:I.current,transform:[P,k,$],domNode:R.current.closest(".react-flow")}),()=>{var O;(O=I.current)==null||O.destroy()}}},[]),ee.useEffect(()=>{var P;(P=I.current)==null||P.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:r,panOnScroll:a,panOnScrollSpeed:s,panOnScrollMode:o,zoomOnDoubleClick:c,panOnDrag:d,zoomActivationKeyPressed:j,preventScrolling:y,noPanClassName:S,userSelectionActive:H,noWheelClassName:N,lib:z,onTransformChange:Z,connectionInProgress:Y,selectionOnDrag:A,paneClickDistance:E})},[e,t,r,a,s,o,c,d,j,y,S,H,N,z,Z,Y,A,E]),m.jsx("div",{className:"react-flow__renderer",ref:R,style:ud,children:_})}const H8=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function $8(){const{userSelectionActive:e,userSelectionRect:t}=dt(H8,Pt);return e&&t?m.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 jm=(e,t)=>r=>{r.target===t.current&&(e==null||e(r))},q8=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,dragging:e.paneDragging,panBy:e.panBy,autoPanSpeed:e.autoPanSpeed});function P8({isSelecting:e,selectionKeyPressed:t,selectionMode:r=So.Full,panOnDrag:a,autoPanOnSelection:s,paneClickDistance:o,selectionOnDrag:c,onSelectionStart:d,onSelectionEnd:h,onPaneClick:f,onPaneContextMenu:p,onPaneScroll:g,onPaneMouseEnter:b,onPaneMouseMove:y,onPaneMouseLeave:_,children:N}){const S=ee.useRef(0),w=Lt(),{userSelectionActive:C,elementsSelectable:E,dragging:A,panBy:B,autoPanSpeed:R}=dt(q8,Pt),H=E&&(e||C),z=ee.useRef(null),Y=ee.useRef(),j=ee.useRef(new Set),I=ee.useRef(new Set),Z=ee.useRef(!1),P=ee.useRef(!1),k=ee.useRef({x:0,y:0}),$=ee.useRef(!1),O=W=>{if(P.current||Z.current||w.getState().connection.inProgress){P.current=!1,Z.current=!1;return}f==null||f(W),w.getState().resetSelectedElements(),w.setState({nodesSelectionActive:!1})},U=W=>{if(Array.isArray(a)&&(a!=null&&a.includes(2))){W.preventDefault();return}p==null||p(W)},K=g?W=>g(W):void 0,X=W=>{P.current&&(W.stopPropagation(),P.current=!1)},M=W=>{var st,Rt;const{domNode:te,transform:oe}=w.getState();if(Y.current=te==null?void 0:te.getBoundingClientRect(),!Y.current)return;const fe=W.target===z.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),P.current=!1;const{x:Ne,y:De}=jr(W.nativeEvent,Y.current),$e=$o({x:Ne,y:De},oe);w.setState({userSelectionRect:{width:0,height:0,startX:$e.x,startY:$e.y,x:Ne,y:De}}),fe||(W.stopPropagation(),W.preventDefault())};function L(W,te){const{userSelectionRect:oe}=w.getState();if(!oe)return;const{transform:fe,nodeLookup:xe,edgeLookup:we,connectionLookup:Ne,triggerNodeChanges:De,triggerEdgeChanges:$e,defaultEdgeOptions:st}=w.getState(),Rt={x:oe.startX,y:oe.startY},{x:Xt,y:Ft}=Js(Rt,fe),Kt={startX:Rt.x,startY:Rt.y,x:W<Xt?W:Xt,y:te<Ft?te:Ft,width:Math.abs(W-Xt),height:Math.abs(te-Ft)},Yn=j.current,Nn=I.current;j.current=new Set(og(xe,Kt,fe,r===So.Partial,!0).map(It=>It.id)),I.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:be}of ue.values()){const Oe=we.get(be);Oe&&(Oe.selectable??ct)&&I.current.add(be)}}if(!f1(Yn,j.current)){const It=qs(xe,j.current,!0);De(It)}if(!f1(Nn,I.current)){const It=qs(we,I.current);$e(It)}w.setState({userSelectionRect:Kt,userSelectionActive:!0,nodesSelectionActive:!1})}function F(){if(!s||!Y.current)return;const[W,te]=cg(k.current,Y.current,R);B({x:W,y:te}).then(oe=>{if(!P.current||!oe){S.current=requestAnimationFrame(F);return}const{x:fe,y:xe}=k.current;L(fe,xe),S.current=requestAnimationFrame(F)})}const D=()=>{cancelAnimationFrame(S.current),S.current=0,$.current=!1};ee.useEffect(()=>()=>D(),[]);const V=W=>{const{userSelectionRect:te,transform:oe,resetSelectedElements:fe}=w.getState();if(!Y.current||!te)return;const{x:xe,y:we}=jr(W.nativeEvent,Y.current);k.current={x:xe,y:we};const Ne=Js({x:te.startX,y:te.startY},oe);if(!P.current){const De=t?0:o;if(Math.hypot(xe-Ne.x,we-Ne.y)<=De)return;fe(),d==null||d(W)}P.current=!0,$.current||(F(),$.current=!0),L(xe,we)},q=W=>{var te,oe;if(!H){W.target===z.current&&w.getState().connection.inProgress&&(Z.current=!0);return}W.button===0&&((oe=(te=W.target)==null?void 0:te.releasePointerCapture)==null||oe.call(te,W.pointerId),!C&&W.target===z.current&&w.getState().userSelectionRect&&(O==null||O(W)),w.setState({userSelectionActive:!1,userSelectionRect:null}),P.current&&(h==null||h(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 m.jsxs("div",{className:on(["react-flow__pane",{draggable:J,dragging:A,selection:e}]),onClick:H?void 0:jm(O,z),onContextMenu:jm(U,z),onWheel:jm(K,z),onPointerEnter:H?void 0:b,onPointerMove:H?V:y,onPointerUp:q,onPointerCancel:H?Q:void 0,onPointerDownCapture:H?M:void 0,onClickCapture:H?X:void 0,onPointerLeave:_,ref:z,style:ud,children:[N,m.jsx($8,{})]})}function bp({id:e,store:t,unselect:r=!1,nodeRef:a}){const{addSelectedNodes:s,unselectNodesAndEdges:o,multiSelectionActive:c,nodeLookup:d,onError:h}=t.getState(),f=d.get(e);if(!f){h==null||h("012",Lr.error012(e));return}t.setState({nodesSelectionActive:!1}),f.selected?(r||f.selected&&c)&&(o({nodes:[f],edges:[]}),requestAnimationFrame(()=>{var p;return(p=a==null?void 0:a.current)==null?void 0:p.blur()})):s([e])}function PN({nodeRef:e,disabled:t=!1,noDragClassName:r,handleSelector:a,nodeId:s,isSelectable:o,nodeClickDistance:c}){const d=Lt(),[h,f]=ee.useState(!1),p=ee.useRef();return ee.useEffect(()=>{if(!t)return p.current=MI({getStoreItems:()=>d.getState(),onNodeMouseDown:g=>{bp({id:g,store:d,nodeRef:e})},onDragStart:()=>{f(!0)},onDragStop:()=>{f(!1)}}),()=>{var g;(g=p.current)==null||g.destroy(),p.current=void 0}},[t,d,e]),ee.useEffect(()=>{t||!e.current||!p.current||p.current.update({noDragClassName:r,handleSelector:a,domNode:e.current,isSelectable:o,nodeId:s,nodeClickDistance:c})},[r,a,t,o,e,s,c]),h}const F8=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function FN(){const e=Lt();return ee.useCallback(r=>{const{nodeExtent:a,snapToGrid:s,snapGrid:o,nodesDraggable:c,onError:d,updateNodePositions:h,nodeLookup:f,nodeOrigin:p}=e.getState(),g=new Map,b=F8(c),y=s?o[0]:5,_=s?o[1]:5,N=r.direction.x*y*r.factor,S=r.direction.y*_*r.factor;for(const[,w]of f){if(!b(w))continue;let C={x:w.internals.positionAbsolute.x+N,y:w.internals.positionAbsolute.y+S};s&&(C=Ho(C,o));const{position:E,positionAbsolute:A}=lN({nodeId:w.id,nextPosition:C,nodeLookup:f,nodeExtent:a,nodeOrigin:p,onError:d});w.position=E,w.internals.positionAbsolute=A,g.set(w.id,w)}h(g)},[])}const xg=ee.createContext(null),G8=xg.Provider;xg.Consumer;const GN=()=>ee.useContext(xg),V8=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),VN=ee.createContext(null);function Y8({children:e}){const t=dt(V8,Pt);return m.jsx(VN.Provider,{value:t,children:e})}function X8(){const e=ee.useContext(VN);if(!e)throw new Error("useHandleConfig must be used within a HandleConfigProvider");return e}const K8={connectingFrom:!1,connectingTo:!1,clickConnecting:!1,isPossibleEndHandle:!0,connectionInProcess:!1,clickConnectionInProcess:!1,valid:!1},Z8=(e,t,r)=>a=>{const{connectionClickStartHandle:s,connectionMode:o,connection:c}=a,{fromHandle:d,toHandle:h,isValid:f}=c;if(!d&&!s)return K8;const p=(h==null?void 0:h.nodeId)===e&&(h==null?void 0:h.id)===t&&(h==null?void 0:h.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:p,clickConnecting:(s==null?void 0:s.nodeId)===e&&(s==null?void 0:s.id)===t&&(s==null?void 0:s.type)===r,isPossibleEndHandle:o===Qs.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:p&&f}};function Q8({type:e="source",position:t=ze.Top,isValidConnection:r,isConnectable:a=!0,isConnectableStart:s=!0,isConnectableEnd:o=!0,id:c,onConnect:d,children:h,className:f,onMouseDown:p,onTouchStart:g,...b},y){var $,O;const _=c||null,N=e==="target",S=Lt(),w=GN(),{connectOnClick:C,noPanClassName:E,rfId:A}=X8(),{connectingFrom:B,connectingTo:R,clickConnecting:H,isPossibleEndHandle:z,connectionInProcess:Y,clickConnectionInProcess:j,valid:I}=dt(Z8(w,_,e),Pt);w||(O=($=S.getState()).onError)==null||O.call($,"010",Lr.error010());const Z=U=>{const{defaultEdgeOptions:K,onConnect:X,hasDefaultEdges:M}=S.getState(),L={...K,...U};if(M){const{edges:F,setEdges:D,onError:V}=S.getState();D(A8(L,F,{onError:V}))}X==null||X(L),d==null||d(L)},P=U=>{if(!w)return;const K=gN(U.nativeEvent);if(s&&(K&&U.button===0||!K)){const X=S.getState();xp.onPointerDown(U.nativeEvent,{handleDomNode:U.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:(...M)=>{var L,F;return(F=(L=S.getState()).onConnectEnd)==null?void 0:F.call(L,...M)},updateConnection:X.updateConnection,onConnect:Z,isValidConnection:r||((...M)=>{var L,F;return((F=(L=S.getState()).isValidConnection)==null?void 0:F.call(L,...M))??!0}),getTransform:()=>S.getState().transform,getFromHandle:()=>S.getState().connection.fromHandle,autoPanSpeed:X.autoPanSpeed,dragThreshold:X.connectionDragThreshold})}K?p==null||p(U):g==null||g(U)},k=U=>{const{onClickConnectStart:K,onClickConnectEnd:X,connectionClickStartHandle:M,connectionMode:L,isValidConnection:F,lib:D,rfId:V,nodeLookup:q,connection:Q}=S.getState();if(!w||!M&&!s)return;if(!M){K==null||K(U.nativeEvent,{nodeId:w,handleId:_,handleType:e}),S.setState({connectionClickStartHandle:{nodeId:w,type:e,id:_}});return}const J=mN(U.target),W=r||F,{connection:te,isValid:oe}=xp.isValid(U.nativeEvent,{handle:{nodeId:w,id:_,type:e},connectionMode:L,fromNodeId:M.nodeId,fromHandleId:M.id||null,fromType:M.type,isValidConnection:W,flowId:V,doc:J,lib:D,nodeLookup:q});oe&&te&&Z(te);const fe=structuredClone(Q);delete fe.inProgress,fe.toPosition=fe.toHandle?fe.toHandle.position:null,X==null||X(U,fe),S.setState({connectionClickStartHandle:null})};return m.jsx("div",{"data-handleid":_,"data-nodeid":w,"data-handlepos":t,"data-id":`${A}-${w}-${_}-${e}`,className:on(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",E,f,{source:!N,target:N,connectable:a,connectablestart:s,connectableend:o,clickconnecting:H,connectingfrom:B,connectingto:R,valid:I,connectionindicator:a&&(!Y||z)&&(Y||j?o:s)}]),onMouseDown:P,onTouchStart:P,onClick:C?k:void 0,ref:y,...b,children:h})}const tl=ee.memo(HN(Q8));function W8({data:e,isConnectable:t,sourcePosition:r=ze.Bottom}){return m.jsxs(m.Fragment,{children:[e==null?void 0:e.label,m.jsx(tl,{type:"source",position:r,isConnectable:t})]})}function J8({data:e,isConnectable:t,targetPosition:r=ze.Top,sourcePosition:a=ze.Bottom}){return m.jsxs(m.Fragment,{children:[m.jsx(tl,{type:"target",position:r,isConnectable:t}),e==null?void 0:e.label,m.jsx(tl,{type:"source",position:a,isConnectable:t})]})}function e9(){return null}function t9({data:e,isConnectable:t,targetPosition:r=ze.Top}){return m.jsxs(m.Fragment,{children:[m.jsx(tl,{type:"target",position:r,isConnectable:t}),e==null?void 0:e.label]})}const $u={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},P1={input:W8,default:J8,output:t9,group:e9};function n9(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 r9=e=>{const{width:t,height:r,x:a,y:s}=Uo(e.nodeLookup,{filter:o=>!!o.selected});return{width:Rr(t)?t:null,height:Rr(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 i9({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:r}){const a=Lt(),{width:s,height:o,transformString:c,userSelectionActive:d}=dt(r9,Pt),h=FN(),f=ee.useRef(null);ee.useEffect(()=>{var y;r||(y=f.current)==null||y.focus({preventScroll:!0})},[r]);const p=!d&&s!==null&&o!==null;if(PN({nodeRef:f,disabled:!p}),!p)return null;const g=e?y=>{const _=a.getState().nodes.filter(N=>N.selected);e(y,_)}:void 0,b=y=>{Object.prototype.hasOwnProperty.call($u,y.key)&&(y.preventDefault(),h({direction:$u[y.key],factor:y.shiftKey?4:1}))};return m.jsx("div",{className:on(["react-flow__nodesselection","react-flow__container",t]),style:{transform:c},children:m.jsx("div",{ref:f,className:"react-flow__nodesselection-rect",onContextMenu:g,tabIndex:r?void 0:-1,onKeyDown:r?void 0:b,style:{width:s,height:o}})})}const F1=typeof window<"u"?window:void 0,a9=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function YN({children:e,onPaneClick:t,onPaneMouseEnter:r,onPaneMouseMove:a,onPaneMouseLeave:s,onPaneContextMenu:o,onPaneScroll:c,paneClickDistance:d,deleteKeyCode:h,selectionKeyCode:f,selectionOnDrag:p,selectionMode:g,onSelectionStart:b,onSelectionEnd:y,multiSelectionKeyCode:_,panActivationKeyCode:N,zoomActivationKeyCode:S,elementsSelectable:w,zoomOnScroll:C,zoomOnPinch:E,panOnScroll:A,panOnScrollSpeed:B,panOnScrollMode:R,zoomOnDoubleClick:H,panOnDrag:z,autoPanOnSelection:Y,defaultViewport:j,translateExtent:I,minZoom:Z,maxZoom:P,preventScrolling:k,onSelectionContextMenu:$,noWheelClassName:O,noPanClassName:U,disableKeyboardA11y:K,onViewportChange:X,isControlledViewport:M}){const{nodesSelectionActive:L,userSelectionActive:F}=dt(a9,Pt),D=To(f,{target:F1}),V=To(N,{target:F1}),q=V||z,Q=V||A,J=p&&q!==!0,W=D||F||J;return z8({deleteKeyCode:h,multiSelectionKeyCode:_}),m.jsx(U8,{onPaneContextMenu:o,elementsSelectable:w,zoomOnScroll:C,zoomOnPinch:E,panOnScroll:Q,panOnScrollSpeed:B,panOnScrollMode:R,zoomOnDoubleClick:H,panOnDrag:!D&&q,defaultViewport:j,translateExtent:I,minZoom:Z,maxZoom:P,zoomActivationKeyCode:S,preventScrolling:k,noWheelClassName:O,noPanClassName:U,onViewportChange:X,isControlledViewport:M,paneClickDistance:d,selectionOnDrag:J,children:m.jsxs(P8,{onSelectionStart:b,onSelectionEnd:y,onPaneClick:t,onPaneMouseEnter:r,onPaneMouseMove:a,onPaneMouseLeave:s,onPaneContextMenu:o,onPaneScroll:c,panOnDrag:q,autoPanOnSelection:Y,isSelecting:!!W,selectionMode:g,selectionKeyPressed:D,paneClickDistance:d,selectionOnDrag:J,children:[e,L&&m.jsx(i9,{onSelectionContextMenu:$,noPanClassName:U,disableKeyboardA11y:K})]})})}YN.displayName="FlowRenderer";const s9=ee.memo(YN),l9=e=>t=>e?og(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 o9(e){return dt(ee.useCallback(l9(e),[e]),Pt)}const c9=e=>e.updateNodeInternals;function u9(){const e=dt(c9),[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 d9({node:e,nodeType:t,hasDimensions:r,resizeObserver:a}){const s=Lt(),o=ee.useRef(null),c=ee.useRef(null),d=ee.useRef(e.sourcePosition),h=ee.useRef(e.targetPosition),f=ee.useRef(t),p=r&&!!e.internals.handleBounds;return ee.useEffect(()=>{o.current&&!e.hidden&&(!p||c.current!==o.current)&&(c.current&&(a==null||a.unobserve(c.current)),a==null||a.observe(o.current),c.current=o.current)},[p,e.hidden]),ee.useEffect(()=>()=>{c.current&&(a==null||a.unobserve(c.current),c.current=null)},[]),ee.useEffect(()=>{if(o.current){const g=f.current!==t,b=d.current!==e.sourcePosition,y=h.current!==e.targetPosition;(g||b||y)&&(f.current=t,d.current=e.sourcePosition,h.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 f9({id:e,onClick:t,onMouseEnter:r,onMouseMove:a,onMouseLeave:s,onContextMenu:o,onDoubleClick:c,nodesDraggable:d,elementsSelectable:h,nodesConnectable:f,nodesFocusable:p,resizeObserver:g,noDragClassName:b,noPanClassName:y,disableKeyboardA11y:_,rfId:N,nodeTypes:S,nodeClickDistance:w,onError:C}){const{node:E,internals:A,isParent:B}=dt(W=>{const te=W.nodeLookup.get(e),oe=W.parentLookup.has(e);return{node:te,internals:te.internals,isParent:oe}},Pt);let R=E.type||"default",H=(S==null?void 0:S[R])||P1[R];H===void 0&&(C==null||C("003",Lr.error003(R)),R="default",H=(S==null?void 0:S.default)||P1.default);const z=!!(E.draggable||d&&typeof E.draggable>"u"),Y=!!(E.selectable||h&&typeof E.selectable>"u"),j=!!(E.connectable||f&&typeof E.connectable>"u"),I=!!(E.focusable||p&&typeof E.focusable>"u"),Z=Lt(),P=fN(E),k=d9({node:E,nodeType:R,hasDimensions:P,resizeObserver:g}),$=PN({nodeRef:k,disabled:E.hidden||!z,noDragClassName:b,handleSelector:E.dragHandle,nodeId:e,isSelectable:Y,nodeClickDistance:w}),O=FN();if(E.hidden)return null;const U=Qr(E),K=n9(E),X=Y||z||t||r||a||s,M=r?W=>r(W,{...A.userNode}):void 0,L=a?W=>a(W,{...A.userNode}):void 0,F=s?W=>s(W,{...A.userNode}):void 0,D=o?W=>o(W,{...A.userNode}):void 0,V=c?W=>c(W,{...A.userNode}):void 0,q=W=>{const{selectNodesOnDrag:te,nodeDragThreshold:oe}=Z.getState();Y&&(!te||!z||oe>0)&&bp({id:e,store:Z,nodeRef:k}),t&&t(W,{...A.userNode})},Q=W=>{if(!(pN(W.nativeEvent)||_)){if(nN.includes(W.key)&&Y){const te=W.key==="Escape";bp({id:e,store:Z,unselect:te,nodeRef:k})}else if(z&&E.selected&&Object.prototype.hasOwnProperty.call($u,W.key)){W.preventDefault();const{ariaLabelConfig:te}=Z.getState();Z.setState({ariaLiveMessage:te["node.a11yDescription.ariaLiveMessage"]({direction:W.key.replace("Arrow","").toLowerCase(),x:~~A.positionAbsolute.x,y:~~A.positionAbsolute.y})}),O({direction:$u[W.key],factor:W.shiftKey?4:1})}}},J=()=>{var Ne;if(_||!((Ne=k.current)!=null&&Ne.matches(":focus-visible")))return;const{transform:W,width:te,height:oe,autoPanOnNodeFocus:fe,setCenter:xe}=Z.getState();if(!fe)return;og(new Map([[e,E]]),{x:0,y:0,width:te,height:oe},W,!0).length>0||xe(E.position.x+U.width/2,E.position.y+U.height/2,{zoom:W[2]})};return m.jsx("div",{className:on(["react-flow__node",`react-flow__node-${R}`,{[y]:z},E.className,{selected:E.selected,selectable:Y,parent:B,draggable:z,dragging:$}]),ref:k,style:{zIndex:A.z,transform:`translate(${A.positionAbsolute.x}px,${A.positionAbsolute.y}px)`,pointerEvents:X?"all":"none",visibility:P?"visible":"hidden",...E.style,...K},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:M,onMouseMove:L,onMouseLeave:F,onContextMenu:D,onClick:q,onDoubleClick:V,onKeyDown:I?Q:void 0,tabIndex:I?0:void 0,onFocus:I?J:void 0,role:E.ariaRole??(I?"group":void 0),"aria-roledescription":"node","aria-describedby":_?void 0:`${DN}-${N}`,"aria-label":E.ariaLabel,...E.domAttributes,children:m.jsx(G8,{value:e,children:m.jsx(H,{id:e,data:E.data,type:R,positionAbsoluteX:A.positionAbsolute.x,positionAbsoluteY:A.positionAbsolute.y,selected:E.selected??!1,selectable:Y,draggable:z,deletable:E.deletable??!0,isConnectable:j,sourcePosition:E.sourcePosition,targetPosition:E.targetPosition,dragging:$,dragHandle:E.dragHandle,zIndex:A.z,parentId:E.parentId,...U})})})}var h9=ee.memo(f9);const m9=e=>({nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function XN(e){const{nodesConnectable:t,nodesFocusable:r,elementsSelectable:a,onError:s}=dt(m9,Pt),o=o9(e.onlyRenderVisibleElements),c=u9();return m.jsx("div",{className:"react-flow__nodes",style:ud,children:o.map(d=>m.jsx(h9,{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))})}XN.displayName="NodeRenderer";const p9=ee.memo(XN);function g9(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&&dI({sourceNode:o,targetNode:c,width:r.width,height:r.height,transform:r.transform})&&a.push(s.id)}return a},[e]),Pt)}const x9=({color:e="none",strokeWidth:t=1})=>{const r={strokeWidth:t,...e&&{stroke:e}};return m.jsx("polyline",{className:"arrow",style:r,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},b9=({color:e="none",strokeWidth:t=1})=>{const r={strokeWidth:t,...e&&{stroke:e,fill:e}};return m.jsx("polyline",{className:"arrowclosed",style:r,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},G1={[Bu.Arrow]:x9,[Bu.ArrowClosed]:b9};function y9(e){const t=Lt();return ee.useMemo(()=>{var s,o;return Object.prototype.hasOwnProperty.call(G1,e)?G1[e]:((o=(s=t.getState()).onError)==null||o.call(s,"009",Lr.error009(e)),null)},[e])}const v9=({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 h=y9(t);return h?m.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:m.jsx(h,{color:r,strokeWidth:c})}):null},KN=({defaultColor:e,rfId:t})=>{const r=dt(o=>o.edges),a=dt(o=>o.defaultEdgeOptions),s=ee.useMemo(()=>yI(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?m.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:m.jsx("defs",{children:s.map(o=>m.jsx(v9,{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};KN.displayName="MarkerDefinitions";var _9=ee.memo(KN);function ZN({x:e,y:t,label:r,labelStyle:a,labelShowBg:s=!0,labelBgStyle:o,labelBgPadding:c=[2,4],labelBgBorderRadius:d=2,children:h,className:f,...p}){const[g,b]=ee.useState({x:1,y:0,width:0,height:0}),y=on(["react-flow__edge-textwrapper",f]),_=ee.useRef(null);return ee.useEffect(()=>{if(_.current){const N=_.current.getBBox();b({x:N.x,y:N.y,width:N.width,height:N.height})}},[r]),r?m.jsxs("g",{transform:`translate(${e-g.width/2} ${t-g.height/2})`,className:y,visibility:g.width?"visible":"hidden",...p,children:[s&&m.jsx("rect",{width:g.width+2*c[0],x:-c[0],y:-c[1],height:g.height+2*c[1],className:"react-flow__edge-textbg",style:o,rx:d,ry:d}),m.jsx("text",{className:"react-flow__edge-text",y:g.height/2,dy:"0.3em",ref:_,style:a,children:r}),h]}):null}ZN.displayName="EdgeText";const w9=ee.memo(ZN);function dd({path:e,labelX:t,labelY:r,label:a,labelStyle:s,labelShowBg:o,labelBgStyle:c,labelBgPadding:d,labelBgBorderRadius:h,interactionWidth:f=20,...p}){return m.jsxs(m.Fragment,{children:[m.jsx("path",{...p,d:e,fill:"none",className:on(["react-flow__edge-path",p.className])}),f?m.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:f,className:"react-flow__edge-interaction"}):null,a&&Rr(t)&&Rr(r)?m.jsx(w9,{x:t,y:r,label:a,labelStyle:s,labelShowBg:o,labelBgStyle:c,labelBgPadding:d,labelBgBorderRadius:h}):null]})}function V1({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 QN({sourceX:e,sourceY:t,sourcePosition:r=ze.Bottom,targetX:a,targetY:s,targetPosition:o=ze.Top}){const[c,d]=V1({pos:r,x1:e,y1:t,x2:a,y2:s}),[h,f]=V1({pos:o,x1:a,y1:s,x2:e,y2:t}),[p,g,b,y]=xN({sourceX:e,sourceY:t,targetX:a,targetY:s,sourceControlX:c,sourceControlY:d,targetControlX:h,targetControlY:f});return[`M${e},${t} C${c},${d} ${h},${f} ${a},${s}`,p,g,b,y]}function WN(e){return ee.memo(({id:t,sourceX:r,sourceY:a,targetX:s,targetY:o,sourcePosition:c,targetPosition:d,label:h,labelStyle:f,labelShowBg:p,labelBgStyle:g,labelBgPadding:b,labelBgBorderRadius:y,style:_,markerEnd:N,markerStart:S,interactionWidth:w})=>{const[C,E,A]=QN({sourceX:r,sourceY:a,sourcePosition:c,targetX:s,targetY:o,targetPosition:d}),B=e.isInternal?void 0:t;return m.jsx(dd,{id:B,path:C,labelX:E,labelY:A,label:h,labelStyle:f,labelShowBg:p,labelBgStyle:g,labelBgPadding:b,labelBgBorderRadius:y,style:_,markerEnd:N,markerStart:S,interactionWidth:w})})}const E9=WN({isInternal:!1}),JN=WN({isInternal:!0});E9.displayName="SimpleBezierEdge";JN.displayName="SimpleBezierEdgeInternal";function e2(e){return ee.memo(({id:t,sourceX:r,sourceY:a,targetX:s,targetY:o,label:c,labelStyle:d,labelShowBg:h,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:g,style:b,sourcePosition:y=ze.Bottom,targetPosition:_=ze.Top,markerEnd:N,markerStart:S,pathOptions:w,interactionWidth:C})=>{const[E,A,B]=mp({sourceX:r,sourceY:a,sourcePosition:y,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 m.jsx(dd,{id:R,path:E,labelX:A,labelY:B,label:c,labelStyle:d,labelShowBg:h,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:g,style:b,markerEnd:N,markerStart:S,interactionWidth:C})})}const t2=e2({isInternal:!1}),n2=e2({isInternal:!0});t2.displayName="SmoothStepEdge";n2.displayName="SmoothStepEdgeInternal";function r2(e){return ee.memo(({id:t,...r})=>{var s;const a=e.isInternal?void 0:t;return m.jsx(t2,{...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=r2({isInternal:!1}),i2=r2({isInternal:!0});N9.displayName="StepEdge";i2.displayName="StepEdgeInternal";function a2(e){return ee.memo(({id:t,sourceX:r,sourceY:a,targetX:s,targetY:o,label:c,labelStyle:d,labelShowBg:h,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:g,style:b,markerEnd:y,markerStart:_,interactionWidth:N})=>{const[S,w,C]=vN({sourceX:r,sourceY:a,targetX:s,targetY:o}),E=e.isInternal?void 0:t;return m.jsx(dd,{id:E,path:S,labelX:w,labelY:C,label:c,labelStyle:d,labelShowBg:h,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:g,style:b,markerEnd:y,markerStart:_,interactionWidth:N})})}const S9=a2({isInternal:!1}),s2=a2({isInternal:!0});S9.displayName="StraightEdge";s2.displayName="StraightEdgeInternal";function l2(e){return ee.memo(({id:t,sourceX:r,sourceY:a,targetX:s,targetY:o,sourcePosition:c=ze.Bottom,targetPosition:d=ze.Top,label:h,labelStyle:f,labelShowBg:p,labelBgStyle:g,labelBgPadding:b,labelBgBorderRadius:y,style:_,markerEnd:N,markerStart:S,pathOptions:w,interactionWidth:C})=>{const[E,A,B]=bN({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 m.jsx(dd,{id:R,path:E,labelX:A,labelY:B,label:h,labelStyle:f,labelShowBg:p,labelBgStyle:g,labelBgPadding:b,labelBgBorderRadius:y,style:_,markerEnd:N,markerStart:S,interactionWidth:C})})}const k9=l2({isInternal:!1}),o2=l2({isInternal:!0});k9.displayName="BezierEdge";o2.displayName="BezierEdgeInternal";const Y1={default:o2,straight:s2,step:i2,smoothstep:n2,simplebezier:JN},X1={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null,zIndex:void 0},C9=(e,t,r)=>r===ze.Left?e-t:r===ze.Right?e+t:e,T9=(e,t,r)=>r===ze.Top?e-t:r===ze.Bottom?e+t:e,K1="react-flow__edgeupdater";function Z1({position:e,centerX:t,centerY:r,radius:a=10,onMouseDown:s,onMouseEnter:o,onMouseOut:c,type:d}){return m.jsx("circle",{onMouseDown:s,onMouseEnter:o,onMouseOut:c,className:on([K1,`${K1}-${d}`]),cx:C9(t,a,e),cy:T9(r,a,e),r:a,stroke:"transparent",fill:"transparent"})}function A9({isReconnectable:e,reconnectRadius:t,edge:r,sourceX:a,sourceY:s,targetX:o,targetY:c,sourcePosition:d,targetPosition:h,onReconnect:f,onReconnectStart:p,onReconnectEnd:g,setReconnecting:b,setUpdateHover:y}){const _=Lt(),N=(A,B)=>{if(A.button!==0)return;const{autoPanOnConnect:R,domNode:H,connectionMode:z,connectionRadius:Y,lib:j,onConnectStart:I,cancelConnection:Z,nodeLookup:P,rfId:k,panBy:$,updateConnection:O}=_.getState(),U=B.type==="target",K=(L,F)=>{b(!1),g==null||g(L,r,B.type,F)},X=L=>f==null?void 0:f(r,L),M=(L,F)=>{b(!0),p==null||p(A,r,B.type),I==null||I(L,F)};xp.onPointerDown(A.nativeEvent,{autoPanOnConnect:R,connectionMode:z,connectionRadius:Y,domNode:H,handleId:B.id,nodeId:B.nodeId,nodeLookup:P,isTarget:U,edgeUpdaterType:B.type,lib:j,flowId:k,cancelConnection:Z,panBy:$,isValidConnection:(...L)=>{var F,D;return((D=(F=_.getState()).isValidConnection)==null?void 0:D.call(F,...L))??!0},onConnect:X,onConnectStart:M,onConnectEnd:(...L)=>{var F,D;return(D=(F=_.getState()).onConnectEnd)==null?void 0:D.call(F,...L)},onReconnectEnd:K,updateConnection:O,getTransform:()=>_.getState().transform,getFromHandle:()=>_.getState().connection.fromHandle,dragThreshold:_.getState().connectionDragThreshold,handleDomNode:A.currentTarget})},S=A=>N(A,{nodeId:r.target,id:r.targetHandle??null,type:"target"}),w=A=>N(A,{nodeId:r.source,id:r.sourceHandle??null,type:"source"}),C=()=>y(!0),E=()=>y(!1);return m.jsxs(m.Fragment,{children:[(e===!0||e==="source")&&m.jsx(Z1,{position:d,centerX:a,centerY:s,radius:t,onMouseDown:S,onMouseEnter:C,onMouseOut:E,type:"source"}),(e===!0||e==="target")&&m.jsx(Z1,{position:h,centerX:o,centerY:c,radius:t,onMouseDown:w,onMouseEnter:C,onMouseOut:E,type:"target"})]})}function M9({id:e,edgesFocusable:t,edgesReconnectable:r,elementsSelectable:a,onClick:s,onDoubleClick:o,onContextMenu:c,onMouseEnter:d,onMouseMove:h,onMouseLeave:f,reconnectRadius:p,onReconnect:g,onReconnectStart:b,onReconnectEnd:y,rfId:_,edgeTypes:N,noPanClassName:S,onError:w,disableKeyboardA11y:C}){let E=dt(xe=>xe.edgeLookup.get(e));const A=dt(xe=>xe.defaultEdgeOptions);E=A?{...A,...E}:E;let B=E.type||"default",R=(N==null?void 0:N[B])||Y1[B];R===void 0&&(w==null||w("011",Lr.error011(B)),B="default",R=(N==null?void 0:N.default)||Y1.default);const H=!!(E.focusable||t&&typeof E.focusable>"u"),z=typeof g<"u"&&(E.reconnectable||r&&typeof E.reconnectable>"u"),Y=!!(E.selectable||a&&typeof E.selectable>"u"),j=ee.useRef(null),[I,Z]=ee.useState(!1),[P,k]=ee.useState(!1),$=Lt(),{zIndex:O=E.zIndex,sourceX:U,sourceY:K,targetX:X,targetY:M,sourcePosition:L,targetPosition:F}=dt(ee.useCallback(xe=>{const we=xe.nodeLookup.get(E.source),Ne=xe.nodeLookup.get(E.target);if(!we||!Ne)return X1;const De=bI({id:e,sourceNode:we,targetNode:Ne,sourceHandle:E.sourceHandle||null,targetHandle:E.targetHandle||null,connectionMode:xe.connectionMode,onError:w}),$e=uI({selected:E.selected,zIndex:E.zIndex,sourceNode:we,targetNode:Ne,elevateOnSelect:xe.elevateEdgesOnSelect,zIndexMode:xe.zIndexMode});return{...De||X1,zIndex:$e}},[E.source,E.target,E.sourceHandle,E.targetHandle,E.selected,E.zIndex]),Pt),D=ee.useMemo(()=>E.markerStart?`url('#${pp(E.markerStart,_)}')`:void 0,[E.markerStart,_]),V=ee.useMemo(()=>E.markerEnd?`url('#${pp(E.markerEnd,_)}')`:void 0,[E.markerEnd,_]);if(E.hidden||U===null||K===null||X===null||M===null)return null;const q=xe=>{var $e;const{addSelectedEdges:we,unselectNodesAndEdges:Ne,multiSelectionActive:De}=$.getState();Y&&($.setState({nodesSelectionActive:!1}),E.selected&&De?(Ne({nodes:[],edges:[E]}),($e=j.current)==null||$e.blur()):we([e])),s&&s(xe,E)},Q=o?xe=>{o(xe,{...E})}:void 0,J=c?xe=>{c(xe,{...E})}:void 0,W=d?xe=>{d(xe,{...E})}:void 0,te=h?xe=>{h(xe,{...E})}:void 0,oe=f?xe=>{f(xe,{...E})}:void 0,fe=xe=>{var we;if(!C&&nN.includes(xe.key)&&Y){const{unselectNodesAndEdges:Ne,addSelectedEdges:De}=$.getState();xe.key==="Escape"?((we=j.current)==null||we.blur(),Ne({edges:[E]})):De([e])}};return m.jsx("svg",{style:{zIndex:O},children:m.jsxs("g",{className:on(["react-flow__edge",`react-flow__edge-${B}`,E.className,S,{selected:E.selected,animated:E.animated,inactive:!Y&&!s,updating:I,selectable:Y}]),onClick:q,onDoubleClick:Q,onContextMenu:J,onMouseEnter:W,onMouseMove:te,onMouseLeave:oe,onKeyDown:H?fe:void 0,tabIndex:H?0:void 0,role:E.ariaRole??(H?"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":H?`${LN}-${_}`:void 0,ref:j,...E.domAttributes,children:[!P&&m.jsx(R,{id:e,source:E.source,target:E.target,type:E.type,selected:E.selected,animated:E.animated,selectable:Y,deletable:E.deletable??!0,label:E.label,labelStyle:E.labelStyle,labelShowBg:E.labelShowBg,labelBgStyle:E.labelBgStyle,labelBgPadding:E.labelBgPadding,labelBgBorderRadius:E.labelBgBorderRadius,sourceX:U,sourceY:K,targetX:X,targetY:M,sourcePosition:L,targetPosition:F,data:E.data,style:E.style,sourceHandleId:E.sourceHandle,targetHandleId:E.targetHandle,markerStart:D,markerEnd:V,pathOptions:"pathOptions"in E?E.pathOptions:void 0,interactionWidth:E.interactionWidth}),z&&m.jsx(A9,{edge:E,isReconnectable:z,reconnectRadius:p,onReconnect:g,onReconnectStart:b,onReconnectEnd:y,sourceX:U,sourceY:K,targetX:X,targetY:M,sourcePosition:L,targetPosition:F,setUpdateHover:Z,setReconnecting:k})]})})}var O9=ee.memo(M9);const R9=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function c2({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:r,edgeTypes:a,noPanClassName:s,onReconnect:o,onEdgeContextMenu:c,onEdgeMouseEnter:d,onEdgeMouseMove:h,onEdgeMouseLeave:f,onEdgeClick:p,reconnectRadius:g,onEdgeDoubleClick:b,onReconnectStart:y,onReconnectEnd:_,disableKeyboardA11y:N}){const{edgesFocusable:S,edgesReconnectable:w,elementsSelectable:C,onError:E}=dt(R9,Pt),A=g9(t);return m.jsxs("div",{className:"react-flow__edges",children:[m.jsx(_9,{defaultColor:e,rfId:r}),A.map(B=>m.jsx(O9,{id:B,edgesFocusable:S,edgesReconnectable:w,elementsSelectable:C,noPanClassName:s,onReconnect:o,onContextMenu:c,onMouseEnter:d,onMouseMove:h,onMouseLeave:f,onClick:p,reconnectRadius:g,onDoubleClick:b,onReconnectStart:y,onReconnectEnd:_,rfId:r,onError:E,edgeTypes:a,disableKeyboardA11y:N},B))]})}c2.displayName="EdgeRenderer";const j9=ee.memo(c2),Q1=e=>`translate(${e[0]}px,${e[1]}px) scale(${e[2]})`;function D9({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=Q1(c)))};return o(),t.subscribe(o)},[t]),m.jsx("div",{ref:r,className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:Q1(a)},children:e})}function L9(e){const t=qo(),r=ee.useRef(!1);ee.useEffect(()=>{!r.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),r.current=!0)},[e,t.viewportInitialized])}const z9=e=>{var t;return(t=e.panZoom)==null?void 0:t.syncViewport};function I9(e){const t=dt(z9),r=Lt();return ee.useEffect(()=>{e&&(t==null||t(e),r.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function B9(e){return e.connection.inProgress?{...e.connection,to:$o(e.connection.to,e.transform)}:{...e.connection}}function U9(e){return B9}function H9(e){const t=U9();return dt(t,Pt)}const $9=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function q9({containerStyle:e,style:t,type:r,component:a}){const{nodesConnectable:s,width:o,height:c,isValid:d,inProgress:h}=dt($9,Pt);return!(o&&s&&h)?null:m.jsx("svg",{style:e,width:o,height:c,className:"react-flow__connectionline react-flow__container",children:m.jsx("g",{className:on(["react-flow__connection",aN(d)]),children:m.jsx(u2,{style:t,type:r,CustomComponent:a,isValid:d})})})}const u2=({style:e,type:t=ua.Bezier,CustomComponent:r,isValid:a})=>{const{inProgress:s,from:o,fromNode:c,fromHandle:d,fromPosition:h,to:f,toNode:p,toHandle:g,toPosition:b,pointer:y}=H9();if(!s)return;if(r)return m.jsx(r,{connectionLineType:t,connectionLineStyle:e,fromNode:c,fromHandle:d,fromX:o.x,fromY:o.y,toX:f.x,toY:f.y,fromPosition:h,toPosition:b,connectionStatus:aN(a),toNode:p,toHandle:g,pointer:y});let _="";const N={sourceX:o.x,sourceY:o.y,sourcePosition:h,targetX:f.x,targetY:f.y,targetPosition:b};switch(t){case ua.Bezier:[_]=bN(N);break;case ua.SimpleBezier:[_]=QN(N);break;case ua.Step:[_]=mp({...N,borderRadius:0});break;case ua.SmoothStep:[_]=mp(N);break;default:[_]=vN(N)}return m.jsx("path",{d:_,fill:"none",className:"react-flow__connection-path",style:e})};u2.displayName="ConnectionLine";const P9={};function W1(e=P9){ee.useRef(e),Lt(),ee.useEffect(()=>{},[e])}function F9(){Lt(),ee.useRef(!1),ee.useEffect(()=>{},[])}function d2({nodeTypes:e,edgeTypes:t,onInit:r,onNodeClick:a,onEdgeClick:s,onNodeDoubleClick:o,onEdgeDoubleClick:c,onNodeMouseEnter:d,onNodeMouseMove:h,onNodeMouseLeave:f,onNodeContextMenu:p,onSelectionContextMenu:g,onSelectionStart:b,onSelectionEnd:y,connectionLineType:_,connectionLineStyle:N,connectionLineComponent:S,connectionLineContainerStyle:w,selectionKeyCode:C,selectionOnDrag:E,selectionMode:A,multiSelectionKeyCode:B,panActivationKeyCode:R,zoomActivationKeyCode:H,deleteKeyCode:z,onlyRenderVisibleElements:Y,elementsSelectable:j,defaultViewport:I,translateExtent:Z,minZoom:P,maxZoom:k,preventScrolling:$,defaultMarkerColor:O,zoomOnScroll:U,zoomOnPinch:K,panOnScroll:X,panOnScrollSpeed:M,panOnScrollMode:L,zoomOnDoubleClick:F,panOnDrag:D,autoPanOnSelection:V,onPaneClick:q,onPaneMouseEnter:Q,onPaneMouseMove:J,onPaneMouseLeave:W,onPaneScroll:te,onPaneContextMenu:oe,paneClickDistance:fe,nodeClickDistance:xe,onEdgeContextMenu:we,onEdgeMouseEnter:Ne,onEdgeMouseMove:De,onEdgeMouseLeave:$e,reconnectRadius:st,onReconnect:Rt,onReconnectStart:Xt,onReconnectEnd:Ft,noDragClassName:Kt,noWheelClassName:Yn,noPanClassName:Nn,disableKeyboardA11y:ct,nodeExtent:It,rfId:ue,viewport:be,onViewportChange:Oe,nodesDraggable:Fe}){return W1(e),W1(t),F9(),L9(r),I9(be),m.jsx(s9,{onPaneClick:q,onPaneMouseEnter:Q,onPaneMouseMove:J,onPaneMouseLeave:W,onPaneContextMenu:oe,onPaneScroll:te,paneClickDistance:fe,deleteKeyCode:z,selectionKeyCode:C,selectionOnDrag:E,selectionMode:A,onSelectionStart:b,onSelectionEnd:y,multiSelectionKeyCode:B,panActivationKeyCode:R,zoomActivationKeyCode:H,elementsSelectable:j,zoomOnScroll:U,zoomOnPinch:K,zoomOnDoubleClick:F,panOnScroll:X,panOnScrollSpeed:M,panOnScrollMode:L,panOnDrag:D,autoPanOnSelection:V,defaultViewport:I,translateExtent:Z,minZoom:P,maxZoom:k,onSelectionContextMenu:g,preventScrolling:$,noDragClassName:Kt,noWheelClassName:Yn,noPanClassName:Nn,disableKeyboardA11y:ct,onViewportChange:Oe,isControlledViewport:!!be,children:m.jsxs(D9,{children:[m.jsx(j9,{edgeTypes:t,onEdgeClick:s,onEdgeDoubleClick:c,onReconnect:Rt,onReconnectStart:Xt,onReconnectEnd:Ft,onlyRenderVisibleElements:Y,onEdgeContextMenu:we,onEdgeMouseEnter:Ne,onEdgeMouseMove:De,onEdgeMouseLeave:$e,reconnectRadius:st,defaultMarkerColor:O,noPanClassName:Nn,disableKeyboardA11y:ct,rfId:ue}),m.jsx(q9,{style:N,type:_,component:S,containerStyle:w}),m.jsx("div",{className:"react-flow__edgelabel-renderer"}),m.jsx(p9,{nodeTypes:e,onNodeClick:a,onNodeDoubleClick:o,onNodeMouseEnter:d,onNodeMouseMove:h,onNodeMouseLeave:f,onNodeContextMenu:p,nodeClickDistance:xe,onlyRenderVisibleElements:Y,noPanClassName:Nn,noDragClassName:Kt,disableKeyboardA11y:ct,nodeExtent:It,rfId:ue,nodesDraggable:Fe}),m.jsx("div",{className:"react-flow__viewport-portal"})]})})}d2.displayName="GraphView";const G9=ee.memo(d2),V9=dN(),J1=({nodes:e,edges:t,defaultNodes:r,defaultEdges:a,width:s,height:o,fitView:c,fitViewOptions:d,minZoom:h=.5,maxZoom:f=2,nodeOrigin:p,nodeExtent:g,zIndexMode:b="basic"}={})=>{const y=new Map,_=new Map,N=new Map,S=new Map,w=a??t??[],C=r??e??[],E=p??[0,0],A=g??No;EN(N,S,w);const{nodesInitialized:B}=gp(C,y,_,{nodeOrigin:E,nodeExtent:A,zIndexMode:b});let R=[0,0,1];if(c&&s&&o){const H=Uo(y,{filter:I=>!!((I.width||I.initialWidth)&&(I.height||I.initialHeight))}),{x:z,y:Y,zoom:j}=ug(H,s,o,h,f,(d==null?void 0:d.padding)??.1);R=[z,Y,j]}return{rfId:"1",width:s??0,height:o??0,transform:R,nodes:C,nodesInitialized:B,nodeLookup:y,parentLookup:_,edges:w,edgeLookup:S,connectionLookup:N,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:r!==void 0,hasDefaultEdges:a!==void 0,panZoom:null,minZoom:h,maxZoom:f,translateExtent:No,nodeExtent:A,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:Qs.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:{...iN},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:V9,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:rN,zIndexMode:b,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},Y9=({nodes:e,edges:t,defaultNodes:r,defaultEdges:a,width:s,height:o,fitView:c,fitViewOptions:d,minZoom:h,maxZoom:f,nodeOrigin:p,nodeExtent:g,zIndexMode:b})=>l8((y,_)=>{async function N(){const{nodeLookup:S,panZoom:w,fitViewOptions:C,fitViewResolver:E,width:A,height:B,minZoom:R,maxZoom:H}=_();w&&(await rI({nodes:S,width:A,height:B,panZoom:w,minZoom:R,maxZoom:H},C),E==null||E.resolve(!0),y({fitViewResolver:null}))}return{...J1({nodes:e,edges:t,width:s,height:o,fitView:c,fitViewOptions:d,minZoom:h,maxZoom:f,nodeOrigin:p,nodeExtent:g,defaultNodes:r,defaultEdges:a,zIndexMode:b}),setNodes:S=>{const{nodeLookup:w,parentLookup:C,nodeOrigin:E,elevateNodesOnSelect:A,fitViewQueued:B,zIndexMode:R,nodesSelectionActive:H}=_(),{nodesInitialized:z,hasSelectedNodes:Y}=gp(S,w,C,{nodeOrigin:E,nodeExtent:g,elevateNodesOnSelect:A,checkEquality:!0,zIndexMode:R}),j=H&&Y;B&&z?(N(),y({nodes:S,nodesInitialized:z,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:j})):y({nodes:S,nodesInitialized:z,nodesSelectionActive:j})},setEdges:S=>{const{connectionLookup:w,edgeLookup:C}=_();EN(w,C,S),y({edges:S})},setDefaultNodesAndEdges:(S,w)=>{if(S){const{setNodes:C}=_();C(S),y({hasDefaultNodes:!0})}if(w){const{setEdges:C}=_();C(w),y({hasDefaultEdges:!0})}},updateNodeInternals:S=>{const{triggerNodeChanges:w,nodeLookup:C,parentLookup:E,domNode:A,nodeOrigin:B,nodeExtent:R,debug:H,fitViewQueued:z,zIndexMode:Y}=_(),{changes:j,updatedInternals:I}=kI(S,C,E,A,B,R,Y);I&&(wI(C,E,{nodeOrigin:B,nodeExtent:R,zIndexMode:Y}),z?(N(),y({fitViewQueued:!1,fitViewOptions:void 0})):y({}),(j==null?void 0:j.length)>0&&(H&&console.log("React Flow: trigger node changes",j),w==null||w(j)))},updateNodePositions:(S,w=!1)=>{const C=[];let E=[];const{nodeLookup:A,triggerNodeChanges:B,connection:R,updateConnection:H,onNodesChangeMiddlewareMap:z}=_();for(const[Y,j]of S){const I=A.get(Y),Z=!!(I!=null&&I.expandParent&&(I!=null&&I.parentId)&&(j!=null&&j.position)),P={id:Y,type:"position",position:Z?{x:Math.max(0,j.position.x),y:Math.max(0,j.position.y)}:j.position,dragging:w};if(I&&R.inProgress&&R.fromNode.id===I.id){const k=Qa(I,R.fromHandle,ze.Left,!0);H({...R,from:k})}Z&&I.parentId&&C.push({id:Y,parentId:I.parentId,rect:{...j.internals.positionAbsolute,width:j.measured.width??0,height:j.measured.height??0}}),E.push(P)}if(C.length>0){const{parentLookup:Y,nodeOrigin:j}=_(),I=gg(C,A,Y,j);E.push(...I)}for(const Y of z.values())E=Y(E);B(E)},triggerNodeChanges:S=>{const{onNodesChange:w,setNodes:C,nodes:E,hasDefaultNodes:A,debug:B}=_();if(S!=null&&S.length){if(A){const R=BN(S,E);C(R)}B&&console.log("React Flow: trigger node changes",S),w==null||w(S)}},triggerEdgeChanges:S=>{const{onEdgesChange:w,setEdges:C,edges:E,hasDefaultEdges:A,debug:B}=_();if(S!=null&&S.length){if(A){const R=UN(S,E);C(R)}B&&console.log("React Flow: trigger edge changes",S),w==null||w(S)}},addSelectedNodes:S=>{const{multiSelectionActive:w,edgeLookup:C,nodeLookup:E,triggerNodeChanges:A,triggerEdgeChanges:B}=_();if(w){const R=S.map(H=>Ha(H,!0));A(R);return}A(qs(E,new Set([...S]),!0)),B(qs(C))},addSelectedEdges:S=>{const{multiSelectionActive:w,edgeLookup:C,nodeLookup:E,triggerNodeChanges:A,triggerEdgeChanges:B}=_();if(w){const R=S.map(H=>Ha(H,!0));B(R);return}B(qs(C,new Set([...S]))),A(qs(E,new Set,!0))},unselectNodesAndEdges:({nodes:S,edges:w}={})=>{const{edges:C,nodes:E,nodeLookup:A,triggerNodeChanges:B,triggerEdgeChanges:R}=_(),H=S||E,z=w||C,Y=[];for(const I of H){if(!I.selected)continue;const Z=A.get(I.id);Z&&(Z.selected=!1),Y.push(Ha(I.id,!1))}const j=[];for(const I of z)I.selected&&j.push(Ha(I.id,!1));B(Y),R(j)},setMinZoom:S=>{const{panZoom:w,maxZoom:C}=_();w==null||w.setScaleExtent([S,C]),y({minZoom:S})},setMaxZoom:S=>{const{panZoom:w,minZoom:C}=_();w==null||w.setScaleExtent([C,S]),y({maxZoom:S})},setTranslateExtent:S=>{var w;(w=_().panZoom)==null||w.setTranslateExtent(S),y({translateExtent:S})},resetSelectedElements:()=>{const{edges:S,nodes:w,triggerNodeChanges:C,triggerEdgeChanges:E,elementsSelectable:A}=_();if(!A)return;const B=w.reduce((H,z)=>z.selected?[...H,Ha(z.id,!1)]:H,[]),R=S.reduce((H,z)=>z.selected?[...H,Ha(z.id,!1)]:H,[]);C(B),E(R)},setNodeExtent:S=>{const{nodes:w,nodeLookup:C,parentLookup:E,nodeOrigin:A,elevateNodesOnSelect:B,nodeExtent:R,zIndexMode:H}=_();S[0][0]===R[0][0]&&S[0][1]===R[0][1]&&S[1][0]===R[1][0]&&S[1][1]===R[1][1]||(gp(w,C,E,{nodeOrigin:A,nodeExtent:S,elevateNodesOnSelect:B,checkEquality:!1,zIndexMode:H}),y({nodeExtent:S}))},panBy:S=>{const{transform:w,width:C,height:E,panZoom:A,translateExtent:B}=_();return CI({delta:S,panZoom:A,transform:w,translateExtent:B,width:C,height:E})},setCenter:async(S,w,C)=>{const{width:E,height:A,maxZoom:B,panZoom:R}=_();if(!R)return!1;const H=typeof(C==null?void 0:C.zoom)<"u"?C.zoom:B;return await R.setViewport({x:E/2-S*H,y:A/2-w*H,zoom:H},{duration:C==null?void 0:C.duration,ease:C==null?void 0:C.ease,interpolate:C==null?void 0:C.interpolate}),!0},cancelConnection:()=>{y({connection:{...iN}})},updateConnection:S=>{y({connection:S})},reset:()=>y({...J1()})}},Object.is);function X9({initialNodes:e,initialEdges:t,defaultNodes:r,defaultEdges:a,initialWidth:s,initialHeight:o,initialMinZoom:c,initialMaxZoom:d,initialFitViewOptions:h,fitView:f,nodeOrigin:p,nodeExtent:g,zIndexMode:b,children:y}){const[_]=ee.useState(()=>Y9({nodes:e,edges:t,defaultNodes:r,defaultEdges:a,width:s,height:o,fitView:f,minZoom:c,maxZoom:d,fitViewOptions:h,nodeOrigin:p,nodeExtent:g,zIndexMode:b}));return m.jsx(o8,{value:_,children:m.jsx(R8,{children:m.jsx(Y8,{children:y})})})}function K9({children:e,nodes:t,edges:r,defaultNodes:a,defaultEdges:s,width:o,height:c,fitView:d,fitViewOptions:h,minZoom:f,maxZoom:p,nodeOrigin:g,nodeExtent:b,zIndexMode:y}){return ee.useContext(od)?m.jsx(m.Fragment,{children:e}):m.jsx(X9,{initialNodes:t,initialEdges:r,defaultNodes:a,defaultEdges:s,initialWidth:o,initialHeight:c,fitView:d,initialFitViewOptions:h,initialMinZoom:f,initialMaxZoom:p,nodeOrigin:g,nodeExtent:b,zIndexMode:y,children:e})}const Z9={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function Q9({nodes:e,edges:t,defaultNodes:r,defaultEdges:a,className:s,nodeTypes:o,edgeTypes:c,onNodeClick:d,onEdgeClick:h,onInit:f,onMove:p,onMoveStart:g,onMoveEnd:b,onConnect:y,onConnectStart:_,onConnectEnd:N,onClickConnectStart:S,onClickConnectEnd:w,onNodeMouseEnter:C,onNodeMouseMove:E,onNodeMouseLeave:A,onNodeContextMenu:B,onNodeDoubleClick:R,onNodeDragStart:H,onNodeDrag:z,onNodeDragStop:Y,onNodesDelete:j,onEdgesDelete:I,onDelete:Z,onSelectionChange:P,onSelectionDragStart:k,onSelectionDrag:$,onSelectionDragStop:O,onSelectionContextMenu:U,onSelectionStart:K,onSelectionEnd:X,onBeforeDelete:M,connectionMode:L,connectionLineType:F=ua.Bezier,connectionLineStyle:D,connectionLineComponent:V,connectionLineContainerStyle:q,deleteKeyCode:Q="Backspace",selectionKeyCode:J="Shift",selectionOnDrag:W=!1,selectionMode:te=So.Full,panActivationKeyCode:oe="Space",multiSelectionKeyCode:fe=Co()?"Meta":"Control",zoomActivationKeyCode:xe=Co()?"Meta":"Control",snapToGrid:we,snapGrid:Ne,onlyRenderVisibleElements:De=!1,selectNodesOnDrag:$e,nodesDraggable:st,autoPanOnNodeFocus:Rt,nodesConnectable:Xt,nodesFocusable:Ft,nodeOrigin:Kt=zN,edgesFocusable:Yn,edgesReconnectable:Nn,elementsSelectable:ct=!0,defaultViewport:It=_8,minZoom:ue=.5,maxZoom:be=2,translateExtent:Oe=No,preventScrolling:Fe=!0,nodeExtent:Ze,defaultMarkerColor:cn="#b1b1b7",zoomOnScroll:Sn=!0,zoomOnPinch:Zt=!0,panOnScroll:At=!1,panOnScrollSpeed:Jt=.5,panOnScrollMode:ut=Fa.Free,zoomOnDoubleClick:In=!0,panOnDrag:un=!0,onPaneClick:Si,onPaneMouseEnter:nt,onPaneMouseMove:Xn,onPaneMouseLeave:On,onPaneScroll:mn,onPaneContextMenu:re,paneClickDistance:me=1,nodeClickDistance:Ee=0,children:Pe,onReconnect:St,onReconnectStart:gt,onReconnectEnd:Me,onEdgeContextMenu:Se,onEdgeDoubleClick:Ue,onEdgeMouseEnter:Bt,onEdgeMouseMove:Mt,onEdgeMouseLeave:vr,reconnectRadius:ki=10,onNodesChange:Ci,onEdgesChange:lr,noDragClassName:Ut="nodrag",noWheelClassName:pn="nowheel",noPanClassName:_r="nopan",fitView:Ti,fitViewOptions:ga,connectOnClick:Ai,attributionPosition:ts,proOptions:Wr,defaultEdgeOptions:xa,elevateNodesOnSelect:bn=!0,elevateEdgesOnSelect:wr=!1,disableKeyboardA11y:Er=!1,autoPanOnConnect:Br,autoPanOnNodeDrag:Gt,autoPanOnSelection:ns=!0,autoPanSpeed:Jr,connectionRadius:Nr,isValidConnection:ye,onError:Le,style:Qe,id:ft,nodeDragThreshold:Ht,connectionDragThreshold:gn,viewport:Rn,onViewportChange:kn,width:_t,height:jn,colorMode:rs="light",debug:Mi,onScroll:Ur,ariaLabelConfig:Oi,zIndexMode:is="basic",...Cn},ba){const Sr=ft||"1",Ri=S8(rs),dn=ee.useCallback(ya=>{ya.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),Ur==null||Ur(ya)},[Ur]);return m.jsx("div",{"data-testid":"rf__wrapper",...Cn,onScroll:dn,style:{...Qe,...Z9},ref:ba,className:on(["react-flow",s,Ri]),id:ft,role:"application",children:m.jsxs(K9,{nodes:e,edges:t,width:_t,height:jn,fitView:Ti,fitViewOptions:ga,minZoom:ue,maxZoom:be,nodeOrigin:Kt,nodeExtent:Ze,zIndexMode:is,children:[m.jsx(N8,{nodes:e,edges:t,defaultNodes:r,defaultEdges:a,onConnect:y,onConnectStart:_,onConnectEnd:N,onClickConnectStart:S,onClickConnectEnd:w,nodesDraggable:st,autoPanOnNodeFocus:Rt,nodesConnectable:Xt,nodesFocusable:Ft,edgesFocusable:Yn,edgesReconnectable:Nn,elementsSelectable:ct,elevateNodesOnSelect:bn,elevateEdgesOnSelect:wr,minZoom:ue,maxZoom:be,nodeExtent:Ze,onNodesChange:Ci,onEdgesChange:lr,snapToGrid:we,snapGrid:Ne,connectionMode:L,translateExtent:Oe,connectOnClick:Ai,defaultEdgeOptions:xa,fitView:Ti,fitViewOptions:ga,onNodesDelete:j,onEdgesDelete:I,onDelete:Z,onNodeDragStart:H,onNodeDrag:z,onNodeDragStop:Y,onSelectionDrag:$,onSelectionDragStart:k,onSelectionDragStop:O,onMove:p,onMoveStart:g,onMoveEnd:b,noPanClassName:_r,nodeOrigin:Kt,rfId:Sr,autoPanOnConnect:Br,autoPanOnNodeDrag:Gt,autoPanSpeed:Jr,onError:Le,connectionRadius:Nr,isValidConnection:ye,selectNodesOnDrag:$e,nodeDragThreshold:Ht,connectionDragThreshold:gn,onBeforeDelete:M,debug:Mi,ariaLabelConfig:Oi,zIndexMode:is}),m.jsx(G9,{onInit:f,onNodeClick:d,onEdgeClick:h,onNodeMouseEnter:C,onNodeMouseMove:E,onNodeMouseLeave:A,onNodeContextMenu:B,onNodeDoubleClick:R,nodeTypes:o,edgeTypes:c,connectionLineType:F,connectionLineStyle:D,connectionLineComponent:V,connectionLineContainerStyle:q,selectionKeyCode:J,selectionOnDrag:W,selectionMode:te,deleteKeyCode:Q,multiSelectionKeyCode:fe,panActivationKeyCode:oe,zoomActivationKeyCode:xe,onlyRenderVisibleElements:De,defaultViewport:It,translateExtent:Oe,minZoom:ue,maxZoom:be,preventScrolling:Fe,zoomOnScroll:Sn,zoomOnPinch:Zt,zoomOnDoubleClick:In,panOnScroll:At,panOnScrollSpeed:Jt,panOnScrollMode:ut,panOnDrag:un,autoPanOnSelection:ns,onPaneClick:Si,onPaneMouseEnter:nt,onPaneMouseMove:Xn,onPaneMouseLeave:On,onPaneScroll:mn,onPaneContextMenu:re,paneClickDistance:me,nodeClickDistance:Ee,onSelectionContextMenu:U,onSelectionStart:K,onSelectionEnd:X,onReconnect:St,onReconnectStart:gt,onReconnectEnd:Me,onEdgeContextMenu:Se,onEdgeDoubleClick:Ue,onEdgeMouseEnter:Bt,onEdgeMouseMove:Mt,onEdgeMouseLeave:vr,reconnectRadius:ki,defaultMarkerColor:cn,noDragClassName:Ut,noWheelClassName:pn,noPanClassName:_r,rfId:Sr,disableKeyboardA11y:Er,nodeExtent:Ze,viewport:Rn,onViewportChange:kn,nodesDraggable:st}),m.jsx(v8,{onSelectionChange:P}),Pe,m.jsx(p8,{proOptions:Wr,position:ts}),m.jsx(m8,{rfId:Sr,disableKeyboardA11y:Er})]})})}var W9=HN(Q9);function J9(e){const[t,r]=ee.useState(e),a=ee.useCallback(s=>r(o=>BN(s,o)),[]);return[t,r,a]}function eB(e){const[t,r]=ee.useState(e),a=ee.useCallback(s=>r(o=>UN(s,o)),[]);return[t,r,a]}function tB({dimensions:e,lineWidth:t,variant:r,className:a}){return m.jsx("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:on(["react-flow__background-pattern",r,a])})}function nB({radius:e,className:t}){return m.jsx("circle",{cx:e,cy:e,r:e,className:on(["react-flow__background-pattern","dots",t])})}var ha;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(ha||(ha={}));const rB={[ha.Dots]:1,[ha.Lines]:1,[ha.Cross]:6},iB=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function f2({id:e,variant:t=ha.Dots,gap:r=20,size:a,lineWidth:s=1,offset:o=0,color:c,bgColor:d,style:h,className:f,patternClassName:p}){const g=ee.useRef(null),{transform:b,patternId:y}=dt(iB,Pt),_=a||rB[t],N=t===ha.Dots,S=t===ha.Cross,w=Array.isArray(r)?r:[r,r],C=[w[0]*b[2]||1,w[1]*b[2]||1],E=_*b[2],A=Array.isArray(o)?o:[o,o],B=S?[E,E]:C,R=[A[0]*b[2]||1+B[0]/2,A[1]*b[2]||1+B[1]/2],H=`${y}${e||""}`;return m.jsxs("svg",{className:on(["react-flow__background",f]),style:{...h,...ud,"--xy-background-color-props":d,"--xy-background-pattern-color-props":c},ref:g,"data-testid":"rf__background",children:[m.jsx("pattern",{id:H,x:b[0]%C[0],y:b[1]%C[1],width:C[0],height:C[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${R[0]},-${R[1]})`,children:N?m.jsx(nB,{radius:E/2,className:p}):m.jsx(tB,{dimensions:B,lineWidth:s,variant:t,className:p})}),m.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${H})`})]})}f2.displayName="Background";const aB=ee.memo(f2);function sB(){return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:m.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function lB(){return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:m.jsx("path",{d:"M0 0h32v4.2H0z"})})}function oB(){return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:m.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 cB(){return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:m.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 uB(){return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:m.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 pu({children:e,className:t,...r}){return m.jsx("button",{type:"button",className:on(["react-flow__controls-button",t]),...r,children:e})}const dB=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function h2({style:e,showZoom:t=!0,showFitView:r=!0,showInteractive:a=!0,fitViewOptions:s,onZoomIn:o,onZoomOut:c,onFitView:d,onInteractiveChange:h,className:f,children:p,position:g="bottom-left",orientation:b="vertical","aria-label":y}){const _=Lt(),{isInteractive:N,minZoomReached:S,maxZoomReached:w,ariaLabelConfig:C}=dt(dB,Pt),{zoomIn:E,zoomOut:A,fitView:B}=qo(),R=()=>{E(),o==null||o()},H=()=>{A(),c==null||c()},z=()=>{B(s),d==null||d()},Y=()=>{_.setState({nodesDraggable:!N,nodesConnectable:!N,elementsSelectable:!N}),h==null||h(!N)},j=b==="horizontal"?"horizontal":"vertical";return m.jsxs(cd,{className:on(["react-flow__controls",j,f]),position:g,style:e,"data-testid":"rf__controls","aria-label":y??C["controls.ariaLabel"],children:[t&&m.jsxs(m.Fragment,{children:[m.jsx(pu,{onClick:R,className:"react-flow__controls-zoomin",title:C["controls.zoomIn.ariaLabel"],"aria-label":C["controls.zoomIn.ariaLabel"],disabled:w,children:m.jsx(sB,{})}),m.jsx(pu,{onClick:H,className:"react-flow__controls-zoomout",title:C["controls.zoomOut.ariaLabel"],"aria-label":C["controls.zoomOut.ariaLabel"],disabled:S,children:m.jsx(lB,{})})]}),r&&m.jsx(pu,{className:"react-flow__controls-fitview",onClick:z,title:C["controls.fitView.ariaLabel"],"aria-label":C["controls.fitView.ariaLabel"],children:m.jsx(oB,{})}),a&&m.jsx(pu,{className:"react-flow__controls-interactive",onClick:Y,title:C["controls.interactive.ariaLabel"],"aria-label":C["controls.interactive.ariaLabel"],children:N?m.jsx(uB,{}):m.jsx(cB,{})}),p]})}h2.displayName="Controls";const fB=ee.memo(h2);function hB({id:e,x:t,y:r,width:a,height:s,style:o,color:c,strokeColor:d,strokeWidth:h,className:f,borderRadius:p,shapeRendering:g,selected:b,onClick:y}){const{background:_,backgroundColor:N}=o||{},S=c||_||N;return m.jsx("rect",{className:on(["react-flow__minimap-node",{selected:b},f]),x:t,y:r,rx:p,ry:p,width:a,height:s,style:{fill:S,stroke:d,strokeWidth:h},shapeRendering:g,onClick:y?w=>y(w,e):void 0})}const mB=ee.memo(hB),pB=e=>e.nodes.map(t=>t.id),Dm=e=>e instanceof Function?e:()=>e;function gB({nodeStrokeColor:e,nodeColor:t,nodeClassName:r="",nodeBorderRadius:a=5,nodeStrokeWidth:s,nodeComponent:o=mB,onClick:c}){const d=dt(pB,Pt),h=Dm(t),f=Dm(e),p=Dm(r),g=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return m.jsx(m.Fragment,{children:d.map(b=>m.jsx(bB,{id:b,nodeColorFunc:h,nodeStrokeColorFunc:f,nodeClassNameFunc:p,nodeBorderRadius:a,nodeStrokeWidth:s,NodeComponent:o,onClick:c,shapeRendering:g},b))})}function xB({id:e,nodeColorFunc:t,nodeStrokeColorFunc:r,nodeClassNameFunc:a,nodeBorderRadius:s,nodeStrokeWidth:o,shapeRendering:c,NodeComponent:d,onClick:h}){const{node:f,x:p,y:g,width:b,height:y}=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:C}=N.internals.positionAbsolute,{width:E,height:A}=Qr(S);return{node:S,x:w,y:C,width:E,height:A}},Pt);return!f||f.hidden||!fN(f)?null:m.jsx(d,{x:p,y:g,width:b,height:y,style:f.style,selected:!!f.selected,className:a(f),color:t(f),borderRadius:s,strokeColor:r(f),strokeWidth:o,shapeRendering:c,onClick:h,id:f.id})}const bB=ee.memo(xB);var yB=ee.memo(gB);const vB=200,_B=150,wB=e=>!e.hidden,EB=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?cN(Uo(e.nodeLookup,{filter:wB}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},e_=(e,t)=>e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,NB=(e,t)=>e_(e.viewBB,t.viewBB)&&e_(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,SB="react-flow__minimap-desc";function m2({style:e,className:t,nodeStrokeColor:r,nodeColor:a,nodeClassName:s="",nodeBorderRadius:o=5,nodeStrokeWidth:c,nodeComponent:d,bgColor:h,maskColor:f,maskStrokeColor:p,maskStrokeWidth:g,position:b="bottom-right",onClick:y,onNodeClick:_,pannable:N=!1,zoomable:S=!1,ariaLabel:w,inversePan:C,zoomStep:E=1,offsetScale:A=5}){const B=Lt(),R=ee.useRef(null),{boundingRect:H,viewBB:z,rfId:Y,panZoom:j,translateExtent:I,flowWidth:Z,flowHeight:P,ariaLabelConfig:k}=dt(EB,NB),$=(e==null?void 0:e.width)??vB,O=(e==null?void 0:e.height)??_B,U=H.width/$,K=H.height/O,X=Math.max(U,K),M=X*$,L=X*O,F=A*X,D=H.x-(M-H.width)/2-F,V=H.y-(L-H.height)/2-F,q=M+F*2,Q=L+F*2,J=`${SB}-${Y}`,W=ee.useRef(0),te=ee.useRef();W.current=X,ee.useEffect(()=>{if(R.current&&j)return te.current=zI({domNode:R.current,panZoom:j,getTransform:()=>B.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:I,width:Z,height:P,inversePan:C,pannable:N,zoomStep:E,zoomable:S})},[N,S,C,E,I,Z,P]);const oe=y?we=>{var $e;const[Ne,De]=(($e=te.current)==null?void 0:$e.pointer(we))||[0,0];y(we,{x:Ne,y:De})}:void 0,fe=_?ee.useCallback((we,Ne)=>{const De=B.getState().nodeLookup.get(Ne).internals.userNode;_(we,De)},[]):void 0,xe=w??k["minimap.ariaLabel"];return m.jsx(cd,{position:b,style:{...e,"--xy-minimap-background-color-props":typeof h=="string"?h:void 0,"--xy-minimap-mask-background-color-props":typeof f=="string"?f:void 0,"--xy-minimap-mask-stroke-color-props":typeof p=="string"?p:void 0,"--xy-minimap-mask-stroke-width-props":typeof g=="number"?g*X: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:on(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:m.jsxs("svg",{width:$,height:O,viewBox:`${D} ${V} ${q} ${Q}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":J,ref:R,onClick:oe,children:[xe&&m.jsx("title",{id:J,children:xe}),m.jsx(yB,{onClick:fe,nodeColor:a,nodeStrokeColor:r,nodeBorderRadius:o,nodeClassName:s,nodeStrokeWidth:c,nodeComponent:d}),m.jsx("path",{className:"react-flow__minimap-mask",d:`M${D-F},${V-F}h${q+F*2}v${Q+F*2}h${-q-F*2}z
+ M${z.x},${z.y}h${z.width}v${z.height}h${-z.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}m2.displayName="MiniMap";const kB=ee.memo(m2),CB=e=>t=>e?`${Math.max(1/t.transform[2],1)}`:void 0,TB={[el.Line]:"right",[el.Handle]:"bottom-right"};function AB({nodeId:e,position:t,variant:r=el.Handle,className:a,style:s=void 0,children:o,color:c,minWidth:d=10,minHeight:h=10,maxWidth:f=Number.MAX_VALUE,maxHeight:p=Number.MAX_VALUE,keepAspectRatio:g=!1,resizeDirection:b,autoScale:y=!0,shouldResize:_,onResizeStart:N,onResize:S,onResizeEnd:w}){const C=GN(),E=typeof e=="string"?e:C,A=Lt(),B=ee.useRef(null),R=r===el.Handle,H=dt(ee.useCallback(CB(R&&y),[R,y]),Pt),z=ee.useRef(null),Y=t??TB[r];ee.useEffect(()=>{if(!(!B.current||!E))return z.current||(z.current=KI({domNode:B.current,nodeId:E,getStoreItems:()=>{const{nodeLookup:I,transform:Z,snapGrid:P,snapToGrid:k,nodeOrigin:$,domNode:O}=A.getState();return{nodeLookup:I,transform:Z,snapGrid:P,snapToGrid:k,nodeOrigin:$,paneDomNode:O}},onChange:(I,Z)=>{const{triggerNodeChanges:P,nodeLookup:k,parentLookup:$,nodeOrigin:O}=A.getState(),U=[],K={x:I.x,y:I.y},X=k.get(E);if(X&&X.expandParent&&X.parentId){const M=X.origin??O,L=I.width??X.measured.width??0,F=I.height??X.measured.height??0,D={id:X.id,parentId:X.parentId,rect:{width:L,height:F,...hN({x:I.x??X.position.x,y:I.y??X.position.y},{width:L,height:F},X.parentId,k,M)}},V=gg([D],k,$,O);U.push(...V),K.x=I.x?Math.max(M[0]*L,I.x):void 0,K.y=I.y?Math.max(M[1]*F,I.y):void 0}if(K.x!==void 0&&K.y!==void 0){const M={id:E,type:"position",position:{...K}};U.push(M)}if(I.width!==void 0&&I.height!==void 0){const L={id:E,type:"dimensions",resizing:!0,setAttributes:b?b==="horizontal"?"width":"height":!0,dimensions:{width:I.width,height:I.height}};U.push(L)}for(const M of Z){const L={...M,type:"position"};U.push(L)}P(U)},onEnd:({width:I,height:Z})=>{const P={id:E,type:"dimensions",resizing:!1,dimensions:{width:I,height:Z}};A.getState().triggerNodeChanges([P])}})),z.current.update({controlPosition:Y,boundaries:{minWidth:d,minHeight:h,maxWidth:f,maxHeight:p},keepAspectRatio:g,resizeDirection:b,onResizeStart:N,onResize:S,onResizeEnd:w,shouldResize:_}),()=>{var I;(I=z.current)==null||I.destroy()}},[Y,d,h,f,p,g,N,S,w,_]);const j=Y.split("-");return m.jsx("div",{className:on(["react-flow__resize-control","nodrag",...j,r,a]),ref:B,style:{...s,scale:H,...c&&{[R?"backgroundColor":"borderColor"]:c}},children:o})}ee.memo(AB);var vt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),zr=vt((e,t)=>{var r=Object.defineProperty,a=(P,k,$)=>k in P?r(P,k,{enumerable:!0,configurable:!0,writable:!0,value:$}):P[k]=$,s=(P,k)=>()=>(k||P((k={exports:{}}).exports,k),k.exports),o=(P,k,$)=>a(P,typeof k!="symbol"?k+"":k,$),c=s((P,k)=>{var $="\0",O="\0",U="",K=class{constructor(V){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"),V&&(this._isDirected=Object.hasOwn(V,"directed")?V.directed:!0,this._isMultigraph=Object.hasOwn(V,"multigraph")?V.multigraph:!1,this._isCompound=Object.hasOwn(V,"compound")?V.compound:!1),this._isCompound&&(this._parent={},this._children={},this._children[O]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(V){return this._label=V,this}graph(){return this._label}setDefaultNodeLabel(V){return this._defaultNodeLabelFn=V,typeof V!="function"&&(this._defaultNodeLabelFn=()=>V),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var V=this;return this.nodes().filter(q=>Object.keys(V._in[q]).length===0)}sinks(){var V=this;return this.nodes().filter(q=>Object.keys(V._out[q]).length===0)}setNodes(V,q){var Q=arguments,J=this;return V.forEach(function(W){Q.length>1?J.setNode(W,q):J.setNode(W)}),this}setNode(V,q){return Object.hasOwn(this._nodes,V)?(arguments.length>1&&(this._nodes[V]=q),this):(this._nodes[V]=arguments.length>1?q:this._defaultNodeLabelFn(V),this._isCompound&&(this._parent[V]=O,this._children[V]={},this._children[O][V]=!0),this._in[V]={},this._preds[V]={},this._out[V]={},this._sucs[V]={},++this._nodeCount,this)}node(V){return this._nodes[V]}hasNode(V){return Object.hasOwn(this._nodes,V)}removeNode(V){var q=this;if(Object.hasOwn(this._nodes,V)){var Q=J=>q.removeEdge(q._edgeObjs[J]);delete this._nodes[V],this._isCompound&&(this._removeFromParentsChildList(V),delete this._parent[V],this.children(V).forEach(function(J){q.setParent(J)}),delete this._children[V]),Object.keys(this._in[V]).forEach(Q),delete this._in[V],delete this._preds[V],Object.keys(this._out[V]).forEach(Q),delete this._out[V],delete this._sucs[V],--this._nodeCount}return this}setParent(V,q){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(q===void 0)q=O;else{q+="";for(var Q=q;Q!==void 0;Q=this.parent(Q))if(Q===V)throw new Error("Setting "+q+" as parent of "+V+" would create a cycle");this.setNode(q)}return this.setNode(V),this._removeFromParentsChildList(V),this._parent[V]=q,this._children[q][V]=!0,this}_removeFromParentsChildList(V){delete this._children[this._parent[V]][V]}parent(V){if(this._isCompound){var q=this._parent[V];if(q!==O)return q}}children(V=O){if(this._isCompound){var q=this._children[V];if(q)return Object.keys(q)}else{if(V===O)return this.nodes();if(this.hasNode(V))return[]}}predecessors(V){var q=this._preds[V];if(q)return Object.keys(q)}successors(V){var q=this._sucs[V];if(q)return Object.keys(q)}neighbors(V){var q=this.predecessors(V);if(q){let J=new Set(q);for(var Q of this.successors(V))J.add(Q);return Array.from(J.values())}}isLeaf(V){var q;return this.isDirected()?q=this.successors(V):q=this.neighbors(V),q.length===0}filterNodes(V){var q=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});q.setGraph(this.graph());var Q=this;Object.entries(this._nodes).forEach(function([te,oe]){V(te)&&q.setNode(te,oe)}),Object.values(this._edgeObjs).forEach(function(te){q.hasNode(te.v)&&q.hasNode(te.w)&&q.setEdge(te,Q.edge(te))});var J={};function W(te){var oe=Q.parent(te);return oe===void 0||q.hasNode(oe)?(J[te]=oe,oe):oe in J?J[oe]:W(oe)}return this._isCompound&&q.nodes().forEach(te=>q.setParent(te,W(te))),q}setDefaultEdgeLabel(V){return this._defaultEdgeLabelFn=V,typeof V!="function"&&(this._defaultEdgeLabelFn=()=>V),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(V,q){var Q=this,J=arguments;return V.reduce(function(W,te){return J.length>1?Q.setEdge(W,te,q):Q.setEdge(W,te),te}),this}setEdge(){var V,q,Q,J,W=!1,te=arguments[0];typeof te=="object"&&te!==null&&"v"in te?(V=te.v,q=te.w,Q=te.name,arguments.length===2&&(J=arguments[1],W=!0)):(V=te,q=arguments[1],Q=arguments[3],arguments.length>2&&(J=arguments[2],W=!0)),V=""+V,q=""+q,Q!==void 0&&(Q=""+Q);var oe=L(this._isDirected,V,q,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(V),this.setNode(q),this._edgeLabels[oe]=W?J:this._defaultEdgeLabelFn(V,q,Q);var fe=F(this._isDirected,V,q,Q);return V=fe.v,q=fe.w,Object.freeze(fe),this._edgeObjs[oe]=fe,X(this._preds[q],V),X(this._sucs[V],q),this._in[q][oe]=fe,this._out[V][oe]=fe,this._edgeCount++,this}edge(V,q,Q){var J=arguments.length===1?D(this._isDirected,arguments[0]):L(this._isDirected,V,q,Q);return this._edgeLabels[J]}edgeAsObj(){let V=this.edge(...arguments);return typeof V!="object"?{label:V}:V}hasEdge(V,q,Q){var J=arguments.length===1?D(this._isDirected,arguments[0]):L(this._isDirected,V,q,Q);return Object.hasOwn(this._edgeLabels,J)}removeEdge(V,q,Q){var J=arguments.length===1?D(this._isDirected,arguments[0]):L(this._isDirected,V,q,Q),W=this._edgeObjs[J];return W&&(V=W.v,q=W.w,delete this._edgeLabels[J],delete this._edgeObjs[J],M(this._preds[q],V),M(this._sucs[V],q),delete this._in[q][J],delete this._out[V][J],this._edgeCount--),this}inEdges(V,q){return this.isDirected()?this.filterEdges(this._in[V],V,q):this.nodeEdges(V,q)}outEdges(V,q){return this.isDirected()?this.filterEdges(this._out[V],V,q):this.nodeEdges(V,q)}nodeEdges(V,q){if(V in this._nodes)return this.filterEdges({...this._in[V],...this._out[V]},V,q)}filterEdges(V,q,Q){if(V){var J=Object.values(V);return Q?J.filter(function(W){return W.v===q&&W.w===Q||W.v===Q&&W.w===q}):J}}};function X(V,q){V[q]?V[q]++:V[q]=1}function M(V,q){--V[q]||delete V[q]}function L(V,q,Q,J){var W=""+q,te=""+Q;if(!V&&W>te){var oe=W;W=te,te=oe}return W+U+te+U+(J===void 0?$:J)}function F(V,q,Q,J){var W=""+q,te=""+Q;if(!V&&W>te){var oe=W;W=te,te=oe}var fe={v:W,w:te};return J&&(fe.name=J),fe}function D(V,q){return L(V,q.v,q.w,q.name)}k.exports=K}),d=s((P,k)=>{k.exports="3.0.2"}),h=s((P,k)=>{k.exports={Graph:c(),version:d()}}),f=s((P,k)=>{var $=c();k.exports={write:O,read:X};function O(M){var L={options:{directed:M.isDirected(),multigraph:M.isMultigraph(),compound:M.isCompound()},nodes:U(M),edges:K(M)};return M.graph()!==void 0&&(L.value=structuredClone(M.graph())),L}function U(M){return M.nodes().map(function(L){var F=M.node(L),D=M.parent(L),V={v:L};return F!==void 0&&(V.value=F),D!==void 0&&(V.parent=D),V})}function K(M){return M.edges().map(function(L){var F=M.edge(L),D={v:L.v,w:L.w};return L.name!==void 0&&(D.name=L.name),F!==void 0&&(D.value=F),D})}function X(M){var L=new $(M.options).setGraph(M.value);return M.nodes.forEach(function(F){L.setNode(F.v,F.value),F.parent&&L.setParent(F.v,F.parent)}),M.edges.forEach(function(F){L.setEdge({v:F.v,w:F.w,name:F.name},F.value)}),L}}),p=s((P,k)=>{k.exports=O;var $=()=>1;function O(K,X,M,L){return U(K,String(X),M||$,L||function(F){return K.outEdges(F)})}function U(K,X,M,L){var F={},D=!0,V=0,q=K.nodes(),Q=function(oe){var fe=M(oe);F[oe.v].distance+fe<F[oe.w].distance&&(F[oe.w]={distance:F[oe.v].distance+fe,predecessor:oe.v},D=!0)},J=function(){q.forEach(function(oe){L(oe).forEach(function(fe){var xe=fe.v===oe?fe.v:fe.w,we=xe===fe.v?fe.w:fe.v;Q({v:xe,w:we})})})};q.forEach(function(oe){var fe=oe===X?0:Number.POSITIVE_INFINITY;F[oe]={distance:fe}});for(var W=q.length,te=1;te<W&&(D=!1,V++,J(),!!D);te++);if(V===W-1&&(D=!1,J(),D))throw new Error("The graph contains a negative weight cycle");return F}}),g=s((P,k)=>{k.exports=$;function $(O){var U={},K=[],X;function M(L){Object.hasOwn(U,L)||(U[L]=!0,X.push(L),O.successors(L).forEach(M),O.predecessors(L).forEach(M))}return O.nodes().forEach(function(L){X=[],M(L),X.length&&K.push(X)}),K}}),b=s((P,k)=>{var $=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 U=this._keyIndices[O];if(U!==void 0)return this._arr[U].priority}min(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key}add(O,U){var K=this._keyIndices;if(O=String(O),!Object.hasOwn(K,O)){var X=this._arr,M=X.length;return K[O]=M,X.push({key:O,priority:U}),this._decrease(M),!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,U){var K=this._keyIndices[O];if(U>this._arr[K].priority)throw new Error("New priority is greater than current priority. Key: "+O+" Old: "+this._arr[K].priority+" New: "+U);this._arr[K].priority=U,this._decrease(K)}_heapify(O){var U=this._arr,K=2*O,X=K+1,M=O;K<U.length&&(M=U[K].priority<U[M].priority?K:M,X<U.length&&(M=U[X].priority<U[M].priority?X:M),M!==O&&(this._swap(O,M),this._heapify(M)))}_decrease(O){for(var U=this._arr,K=U[O].priority,X;O!==0&&(X=O>>1,!(U[X].priority<K));)this._swap(O,X),O=X}_swap(O,U){var K=this._arr,X=this._keyIndices,M=K[O],L=K[U];K[O]=L,K[U]=M,X[L.key]=O,X[M.key]=U}};k.exports=$}),y=s((P,k)=>{var $=b();k.exports=U;var O=()=>1;function U(X,M,L,F){var D=function(V){return X.outEdges(V)};return K(X,String(M),L||O,F||D)}function K(X,M,L,F){var D={},V=new $,q,Q,J=function(W){var te=W.v!==q?W.v:W.w,oe=D[te],fe=L(W),xe=Q.distance+fe;if(fe<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+W+" Weight: "+fe);xe<oe.distance&&(oe.distance=xe,oe.predecessor=q,V.decrease(te,xe))};for(X.nodes().forEach(function(W){var te=W===M?0:Number.POSITIVE_INFINITY;D[W]={distance:te},V.add(W,te)});V.size()>0&&(q=V.removeMin(),Q=D[q],Q.distance!==Number.POSITIVE_INFINITY);)F(q).forEach(J);return D}}),_=s((P,k)=>{var $=y();k.exports=O;function O(U,K,X){return U.nodes().reduce(function(M,L){return M[L]=$(U,L,K,X),M},{})}}),N=s((P,k)=>{k.exports=$;function $(U,K,X){if(U[K].predecessor!==void 0)throw new Error("Invalid source vertex");if(U[X].predecessor===void 0&&X!==K)throw new Error("Invalid destination vertex");return{weight:U[X].distance,path:O(U,K,X)}}function O(U,K,X){for(var M=[],L=X;L!==K;)M.push(L),L=U[L].predecessor;return M.push(K),M.reverse()}}),S=s((P,k)=>{k.exports=$;function $(O){var U=0,K=[],X={},M=[];function L(F){var D=X[F]={onStack:!0,lowlink:U,index:U++};if(K.push(F),O.successors(F).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 V=[],q;do q=K.pop(),X[q].onStack=!1,V.push(q);while(F!==q);M.push(V)}}return O.nodes().forEach(function(F){Object.hasOwn(X,F)||L(F)}),M}}),w=s((P,k)=>{var $=S();k.exports=O;function O(U){return $(U).filter(function(K){return K.length>1||K.length===1&&U.hasEdge(K[0],K[0])})}}),C=s((P,k)=>{k.exports=O;var $=()=>1;function O(K,X,M){return U(K,X||$,M||function(L){return K.outEdges(L)})}function U(K,X,M){var L={},F=K.nodes();return F.forEach(function(D){L[D]={},L[D][D]={distance:0},F.forEach(function(V){D!==V&&(L[D][V]={distance:Number.POSITIVE_INFINITY})}),M(D).forEach(function(V){var q=V.v===D?V.w:V.v,Q=X(V);L[D][q]={distance:Q,predecessor:D}})}),F.forEach(function(D){var V=L[D];F.forEach(function(q){var Q=L[q];F.forEach(function(J){var W=Q[D],te=V[J],oe=Q[J],fe=W.distance+te.distance;fe<oe.distance&&(oe.distance=fe,oe.predecessor=te.predecessor)})})}),L}}),E=s((P,k)=>{function $(U){var K={},X={},M=[];function L(F){if(Object.hasOwn(X,F))throw new O;Object.hasOwn(K,F)||(X[F]=!0,K[F]=!0,U.predecessors(F).forEach(L),delete X[F],M.push(F))}if(U.sinks().forEach(L),Object.keys(K).length!==U.nodeCount())throw new O;return M}var O=class extends Error{constructor(){super(...arguments)}};k.exports=$,$.CycleException=O}),A=s((P,k)=>{var $=E();k.exports=O;function O(U){try{$(U)}catch(K){if(K instanceof $.CycleException)return!1;throw K}return!0}}),B=s((P,k)=>{k.exports=$;function $(U,K,X,M,L){Array.isArray(K)||(K=[K]);var F=(U.isDirected()?U.successors:U.neighbors).bind(U),D={};return K.forEach(function(V){if(!U.hasNode(V))throw new Error("Graph does not have node: "+V);L=O(U,V,X==="post",D,F,M,L)}),L}function O(U,K,X,M,L,F,D){return Object.hasOwn(M,K)||(M[K]=!0,X||(D=F(D,K)),L(K).forEach(function(V){D=O(U,V,X,M,L,F,D)}),X&&(D=F(D,K))),D}}),R=s((P,k)=>{var $=B();k.exports=O;function O(U,K,X){return $(U,K,X,function(M,L){return M.push(L),M},[])}}),H=s((P,k)=>{var $=R();k.exports=O;function O(U,K){return $(U,K,"post")}}),z=s((P,k)=>{var $=R();k.exports=O;function O(U,K){return $(U,K,"pre")}}),Y=s((P,k)=>{var $=c(),O=b();k.exports=U;function U(K,X){var M=new $,L={},F=new O,D;function V(Q){var J=Q.v===D?Q.w:Q.v,W=F.priority(J);if(W!==void 0){var te=X(Q);te<W&&(L[J]=D,F.decrease(J,te))}}if(K.nodeCount()===0)return M;K.nodes().forEach(function(Q){F.add(Q,Number.POSITIVE_INFINITY),M.setNode(Q)}),F.decrease(K.nodes()[0],0);for(var q=!1;F.size()>0;){if(D=F.removeMin(),Object.hasOwn(L,D))M.setEdge(D,L[D]);else{if(q)throw new Error("Input graph is not connected: "+K);q=!0}K.nodeEdges(D).forEach(V)}return M}}),j=s((P,k)=>{var $=y(),O=p();k.exports=U;function U(X,M,L,F){return K(X,M,L,F||function(D){return X.outEdges(D)})}function K(X,M,L,F){if(L===void 0)return $(X,M,L,F);for(var D=!1,V=X.nodes(),q=0;q<V.length;q++){for(var Q=F(V[q]),J=0;J<Q.length;J++){var W=Q[J],te=W.v===V[q]?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,M,L,F)}return $(X,M,L,F)}}),I=s((P,k)=>{k.exports={bellmanFord:p(),components:g(),dijkstra:y(),dijkstraAll:_(),extractPath:N(),findCycles:w(),floydWarshall:C(),isAcyclic:A(),postorder:H(),preorder:z(),prim:Y(),shortestPaths:j(),reduce:B(),tarjan:S(),topsort:E()}}),Z=h();t.exports={Graph:Z.Graph,json:f(),alg:I(),version:Z.version}}),MB=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}),OB=vt((e,t)=>{var r=zr().Graph,a=MB();t.exports=o;var s=()=>1;function o(g,b){if(g.nodeCount()<=1)return[];let y=h(g,b||s);return c(y.graph,y.buckets,y.zeroIdx).flatMap(_=>g.outEdges(_.v,_.w))}function c(g,b,y){let _=[],N=b[b.length-1],S=b[0],w;for(;g.nodeCount();){for(;w=S.dequeue();)d(g,b,y,w);for(;w=N.dequeue();)d(g,b,y,w);if(g.nodeCount()){for(let C=b.length-2;C>0;--C)if(w=b[C].dequeue(),w){_=_.concat(d(g,b,y,w,!0));break}}}return _}function d(g,b,y,_,N){let S=N?[]:void 0;return g.inEdges(_.v).forEach(w=>{let C=g.edge(w),E=g.node(w.v);N&&S.push({v:w.v,w:w.w}),E.out-=C,f(b,y,E)}),g.outEdges(_.v).forEach(w=>{let C=g.edge(w),E=w.w,A=g.node(E);A.in-=C,f(b,y,A)}),g.removeNode(_.v),S}function h(g,b){let y=new r,_=0,N=0;g.nodes().forEach(C=>{y.setNode(C,{v:C,in:0,out:0})}),g.edges().forEach(C=>{let E=y.edge(C.v,C.w)||0,A=b(C),B=E+A;y.setEdge(C.v,C.w,B),N=Math.max(N,y.node(C.v).out+=A),_=Math.max(_,y.node(C.w).in+=A)});let S=p(N+_+3).map(()=>new a),w=_+1;return y.nodes().forEach(C=>{f(S,w,y.node(C))}),{graph:y,buckets:S,zeroIdx:w}}function f(g,b,y){y.out?y.in?g[y.out-y.in+b].enqueue(y):g[g.length-1].enqueue(y):g[0].enqueue(y)}function p(g){let b=[];for(let y=0;y<g;y++)b.push(y);return b}}),ln=vt((e,t)=>{var r=zr().Graph;t.exports={addBorderNode:b,addDummyNode:a,applyWithChunking:N,asNonCompoundGraph:o,buildLayerMatrix:f,intersectRect:h,mapValues:z,maxRank:S,normalizeRanks:p,notime:E,partition:w,pick:H,predecessorWeights:d,range:R,removeEmptyRanks:g,simplify:s,successorWeights:c,time:C,uniqueId:B,zipObject:Y};function a(j,I,Z,P){for(var k=P;j.hasNode(k);)k=B(P);return Z.dummy=I,j.setNode(k,Z),k}function s(j){let I=new r().setGraph(j.graph());return j.nodes().forEach(Z=>I.setNode(Z,j.node(Z))),j.edges().forEach(Z=>{let P=I.edge(Z.v,Z.w)||{weight:0,minlen:1},k=j.edge(Z);I.setEdge(Z.v,Z.w,{weight:P.weight+k.weight,minlen:Math.max(P.minlen,k.minlen)})}),I}function o(j){let I=new r({multigraph:j.isMultigraph()}).setGraph(j.graph());return j.nodes().forEach(Z=>{j.children(Z).length||I.setNode(Z,j.node(Z))}),j.edges().forEach(Z=>{I.setEdge(Z,j.edge(Z))}),I}function c(j){let I=j.nodes().map(Z=>{let P={};return j.outEdges(Z).forEach(k=>{P[k.w]=(P[k.w]||0)+j.edge(k).weight}),P});return Y(j.nodes(),I)}function d(j){let I=j.nodes().map(Z=>{let P={};return j.inEdges(Z).forEach(k=>{P[k.v]=(P[k.v]||0)+j.edge(k).weight}),P});return Y(j.nodes(),I)}function h(j,I){let Z=j.x,P=j.y,k=I.x-Z,$=I.y-P,O=j.width/2,U=j.height/2;if(!k&&!$)throw new Error("Not possible to find intersection inside of the rectangle");let K,X;return Math.abs($)*O>Math.abs(k)*U?($<0&&(U=-U),K=U*k/$,X=U):(k<0&&(O=-O),K=O,X=O*$/k),{x:Z+K,y:P+X}}function f(j){let I=R(S(j)+1).map(()=>[]);return j.nodes().forEach(Z=>{let P=j.node(Z),k=P.rank;k!==void 0&&(I[k][P.order]=Z)}),I}function p(j){let I=j.nodes().map(P=>{let k=j.node(P).rank;return k===void 0?Number.MAX_VALUE:k}),Z=N(Math.min,I);j.nodes().forEach(P=>{let k=j.node(P);Object.hasOwn(k,"rank")&&(k.rank-=Z)})}function g(j){let I=j.nodes().map(O=>j.node(O).rank).filter(O=>O!==void 0),Z=N(Math.min,I),P=[];j.nodes().forEach(O=>{let U=j.node(O).rank-Z;P[U]||(P[U]=[]),P[U].push(O)});let k=0,$=j.graph().nodeRankFactor;Array.from(P).forEach((O,U)=>{O===void 0&&U%$!==0?--k:O!==void 0&&k&&O.forEach(K=>j.node(K).rank+=k)})}function b(j,I,Z,P){let k={width:0,height:0};return arguments.length>=4&&(k.rank=Z,k.order=P),a(j,"border",k,I)}function y(j,I=_){let Z=[];for(let P=0;P<j.length;P+=I){let k=j.slice(P,P+I);Z.push(k)}return Z}var _=65535;function N(j,I){if(I.length>_){let Z=y(I);return j.apply(null,Z.map(P=>j.apply(null,P)))}else return j.apply(null,I)}function S(j){let I=j.nodes().map(Z=>{let P=j.node(Z).rank;return P===void 0?Number.MIN_VALUE:P});return N(Math.max,I)}function w(j,I){let Z={lhs:[],rhs:[]};return j.forEach(P=>{I(P)?Z.lhs.push(P):Z.rhs.push(P)}),Z}function C(j,I){let Z=Date.now();try{return I()}finally{console.log(j+" time: "+(Date.now()-Z)+"ms")}}function E(j,I){return I()}var A=0;function B(j){var I=++A;return j+(""+I)}function R(j,I,Z=1){I==null&&(I=j,j=0);let P=$=>$<I;Z<0&&(P=$=>I<$);let k=[];for(let $=j;P($);$+=Z)k.push($);return k}function H(j,I){let Z={};for(let P of I)j[P]!==void 0&&(Z[P]=j[P]);return Z}function z(j,I){let Z=I;return typeof I=="string"&&(Z=P=>P[I]),Object.entries(j).reduce((P,[k,$])=>(P[k]=Z($,k),P),{})}function Y(j,I){return j.reduce((Z,P,k)=>(Z[P]=I[k],Z),{})}}),RB=vt((e,t)=>{var r=OB(),a=ln().uniqueId;t.exports={run:s,undo:c};function s(d){(d.graph().acyclicer==="greedy"?r(d,h(d)):o(d)).forEach(f=>{let p=d.edge(f);d.removeEdge(f),p.forwardName=f.name,p.reversed=!0,d.setEdge(f.w,f.v,p,a("rev"))});function h(f){return p=>f.edge(p).weight}}function o(d){let h=[],f={},p={};function g(b){Object.hasOwn(p,b)||(p[b]=!0,f[b]=!0,d.outEdges(b).forEach(y=>{Object.hasOwn(f,y.w)?h.push(y):g(y.w)}),delete f[b])}return d.nodes().forEach(g),h}function c(d){d.edges().forEach(h=>{let f=d.edge(h);if(f.reversed){d.removeEdge(h);let p=f.forwardName;delete f.reversed,delete f.forwardName,d.setEdge(h.w,h.v,f,p)}})}}),jB=vt((e,t)=>{var r=ln();t.exports={run:a,undo:o};function a(c){c.graph().dummyChains=[],c.edges().forEach(d=>s(c,d))}function s(c,d){let h=d.v,f=c.node(h).rank,p=d.w,g=c.node(p).rank,b=d.name,y=c.edge(d),_=y.labelRank;if(g===f+1)return;c.removeEdge(d);let N,S,w;for(w=0,++f;f<g;++w,++f)y.points=[],S={width:0,height:0,edgeLabel:y,edgeObj:d,rank:f},N=r.addDummyNode(c,"edge",S,"_d"),f===_&&(S.width=y.width,S.height=y.height,S.dummy="edge-label",S.labelpos=y.labelpos),c.setEdge(h,N,{weight:y.weight},b),w===0&&c.graph().dummyChains.push(N),h=N;c.setEdge(h,p,{weight:y.weight},b)}function o(c){c.graph().dummyChains.forEach(d=>{let h=c.node(d),f=h.edgeLabel,p;for(c.setEdge(h.edgeObj,f);h.dummy;)p=c.successors(d)[0],c.removeNode(d),f.points.push({x:h.x,y:h.y}),h.dummy==="edge-label"&&(f.x=h.x,f.y=h.y,f.width=h.width,f.height=h.height),d=p,h=c.node(d)})}}),qu=vt((e,t)=>{var{applyWithChunking:r}=ln();t.exports={longestPath:a,slack:s};function a(o){var c={};function d(h){var f=o.node(h);if(Object.hasOwn(c,h))return f.rank;c[h]=!0;let p=o.outEdges(h).map(b=>b==null?Number.POSITIVE_INFINITY:d(b.w)-o.edge(b).minlen);var g=r(Math.min,p);return g===Number.POSITIVE_INFINITY&&(g=0),f.rank=g}o.sources().forEach(d)}function s(o,c){return o.node(c.w).rank-o.node(c.v).rank-o.edge(c).minlen}}),p2=vt((e,t)=>{var r=zr().Graph,a=qu().slack;t.exports=s;function s(h){var f=new r({directed:!1}),p=h.nodes()[0],g=h.nodeCount();f.setNode(p,{});for(var b,y;o(f,h)<g;)b=c(f,h),y=f.hasNode(b.v)?a(h,b):-a(h,b),d(f,h,y);return f}function o(h,f){function p(g){f.nodeEdges(g).forEach(b=>{var y=b.v,_=g===y?b.w:y;!h.hasNode(_)&&!a(f,b)&&(h.setNode(_,{}),h.setEdge(g,_,{}),p(_))})}return h.nodes().forEach(p),h.nodeCount()}function c(h,f){return f.edges().reduce((p,g)=>{let b=Number.POSITIVE_INFINITY;return h.hasNode(g.v)!==h.hasNode(g.w)&&(b=a(f,g)),b<p[0]?[b,g]:p},[Number.POSITIVE_INFINITY,null])[1]}function d(h,f,p){h.nodes().forEach(g=>f.node(g).rank+=p)}}),DB=vt((e,t)=>{var r=p2(),a=qu().slack,s=qu().longestPath,o=zr().alg.preorder,c=zr().alg.postorder,d=ln().simplify;t.exports=h,h.initLowLimValues=b,h.initCutValues=f,h.calcCutValue=g,h.leaveEdge=_,h.enterEdge=N,h.exchangeEdges=S;function h(A){A=d(A),s(A);var B=r(A);b(B),f(B,A);for(var R,H;R=_(B);)H=N(B,A,R),S(B,A,R,H)}function f(A,B){var R=c(A,A.nodes());R=R.slice(0,R.length-1),R.forEach(H=>p(A,B,H))}function p(A,B,R){var H=A.node(R),z=H.parent;A.edge(R,z).cutvalue=g(A,B,R)}function g(A,B,R){var H=A.node(R),z=H.parent,Y=!0,j=B.edge(R,z),I=0;return j||(Y=!1,j=B.edge(z,R)),I=j.weight,B.nodeEdges(R).forEach(Z=>{var P=Z.v===R,k=P?Z.w:Z.v;if(k!==z){var $=P===Y,O=B.edge(Z).weight;if(I+=$?O:-O,C(A,R,k)){var U=A.edge(R,k).cutvalue;I+=$?-U:U}}}),I}function b(A,B){arguments.length<2&&(B=A.nodes()[0]),y(A,{},1,B)}function y(A,B,R,H,z){var Y=R,j=A.node(H);return B[H]=!0,A.neighbors(H).forEach(I=>{Object.hasOwn(B,I)||(R=y(A,B,R,I,H))}),j.low=Y,j.lim=R++,z?j.parent=z:delete j.parent,R}function _(A){return A.edges().find(B=>A.edge(B).cutvalue<0)}function N(A,B,R){var H=R.v,z=R.w;B.hasEdge(H,z)||(H=R.w,z=R.v);var Y=A.node(H),j=A.node(z),I=Y,Z=!1;Y.lim>j.lim&&(I=j,Z=!0);var P=B.edges().filter(k=>Z===E(A,A.node(k.v),I)&&Z!==E(A,A.node(k.w),I));return P.reduce((k,$)=>a(B,$)<a(B,k)?$:k)}function S(A,B,R,H){var z=R.v,Y=R.w;A.removeEdge(z,Y),A.setEdge(H.v,H.w,{}),b(A),f(A,B),w(A,B)}function w(A,B){var R=A.nodes().find(z=>!B.node(z).parent),H=o(A,R);H=H.slice(1),H.forEach(z=>{var Y=A.node(z).parent,j=B.edge(z,Y),I=!1;j||(j=B.edge(Y,z),I=!0),B.node(z).rank=B.node(Y).rank+(I?j.minlen:-j.minlen)})}function C(A,B,R){return A.hasEdge(B,R)}function E(A,B,R){return R.low<=B.lim&&B.lim<=R.lim}}),LB=vt((e,t)=>{var r=qu(),a=r.longestPath,s=p2(),o=DB();t.exports=c;function c(p){var g=p.graph().ranker;if(g instanceof Function)return g(p);switch(p.graph().ranker){case"network-simplex":f(p);break;case"tight-tree":h(p);break;case"longest-path":d(p);break;case"none":break;default:f(p)}}var d=a;function h(p){a(p),s(p)}function f(p){o(p)}}),zB=vt((e,t)=>{t.exports=r;function r(o){let c=s(o);o.graph().dummyChains.forEach(d=>{let h=o.node(d),f=h.edgeObj,p=a(o,c,f.v,f.w),g=p.path,b=p.lca,y=0,_=g[y],N=!0;for(;d!==f.w;){if(h=o.node(d),N){for(;(_=g[y])!==b&&o.node(_).maxRank<h.rank;)y++;_===b&&(N=!1)}if(!N){for(;y<g.length-1&&o.node(_=g[y+1]).minRank<=h.rank;)y++;_=g[y]}o.setParent(d,_),d=o.successors(d)[0]}})}function a(o,c,d,h){let f=[],p=[],g=Math.min(c[d].low,c[h].low),b=Math.max(c[d].lim,c[h].lim),y,_;y=d;do y=o.parent(y),f.push(y);while(y&&(c[y].low>g||b>c[y].lim));for(_=y,y=h;(y=o.parent(y))!==_;)p.push(y);return{path:f.concat(p.reverse()),lca:_}}function s(o){let c={},d=0;function h(f){let p=d;o.children(f).forEach(h),c[f]={low:p,lim:d++}}return o.children().forEach(h),c}}),IB=vt((e,t)=>{var r=ln();t.exports={run:a,cleanup:d};function a(h){let f=r.addDummyNode(h,"root",{},"_root"),p=o(h),g=Object.values(p),b=r.applyWithChunking(Math.max,g)-1,y=2*b+1;h.graph().nestingRoot=f,h.edges().forEach(N=>h.edge(N).minlen*=y);let _=c(h)+1;h.children().forEach(N=>s(h,f,y,_,b,p,N)),h.graph().nodeRankFactor=y}function s(h,f,p,g,b,y,_){let N=h.children(_);if(!N.length){_!==f&&h.setEdge(f,_,{weight:0,minlen:p});return}let S=r.addBorderNode(h,"_bt"),w=r.addBorderNode(h,"_bb"),C=h.node(_);h.setParent(S,_),C.borderTop=S,h.setParent(w,_),C.borderBottom=w,N.forEach(E=>{s(h,f,p,g,b,y,E);let A=h.node(E),B=A.borderTop?A.borderTop:E,R=A.borderBottom?A.borderBottom:E,H=A.borderTop?g:2*g,z=B!==R?1:b-y[_]+1;h.setEdge(S,B,{weight:H,minlen:z,nestingEdge:!0}),h.setEdge(R,w,{weight:H,minlen:z,nestingEdge:!0})}),h.parent(_)||h.setEdge(f,S,{weight:0,minlen:b+y[_]})}function o(h){var f={};function p(g,b){var y=h.children(g);y&&y.length&&y.forEach(_=>p(_,b+1)),f[g]=b}return h.children().forEach(g=>p(g,1)),f}function c(h){return h.edges().reduce((f,p)=>f+h.edge(p).weight,0)}function d(h){var f=h.graph();h.removeNode(f.nestingRoot),delete f.nestingRoot,h.edges().forEach(p=>{var g=h.edge(p);g.nestingEdge&&h.removeEdge(p)})}}),BB=vt((e,t)=>{var r=ln();t.exports=a;function a(o){function c(d){let h=o.children(d),f=o.node(d);if(h.length&&h.forEach(c),Object.hasOwn(f,"minRank")){f.borderLeft=[],f.borderRight=[];for(let p=f.minRank,g=f.maxRank+1;p<g;++p)s(o,"borderLeft","_bl",d,f,p),s(o,"borderRight","_br",d,f,p)}}o.children().forEach(c)}function s(o,c,d,h,f,p){let g={width:0,height:0,rank:p,borderType:c},b=f[c][p-1],y=r.addDummyNode(o,"border",g,d);f[c][p]=y,o.setParent(y,h),b&&o.setEdge(b,y,{weight:1})}}),UB=vt((e,t)=>{t.exports={adjust:r,undo:a};function r(p){let g=p.graph().rankdir.toLowerCase();(g==="lr"||g==="rl")&&s(p)}function a(p){let g=p.graph().rankdir.toLowerCase();(g==="bt"||g==="rl")&&c(p),(g==="lr"||g==="rl")&&(h(p),s(p))}function s(p){p.nodes().forEach(g=>o(p.node(g))),p.edges().forEach(g=>o(p.edge(g)))}function o(p){let g=p.width;p.width=p.height,p.height=g}function c(p){p.nodes().forEach(g=>d(p.node(g))),p.edges().forEach(g=>{let b=p.edge(g);b.points.forEach(d),Object.hasOwn(b,"y")&&d(b)})}function d(p){p.y=-p.y}function h(p){p.nodes().forEach(g=>f(p.node(g))),p.edges().forEach(g=>{let b=p.edge(g);b.points.forEach(f),Object.hasOwn(b,"x")&&f(b)})}function f(p){let g=p.x;p.x=p.y,p.y=g}}),HB=vt((e,t)=>{var r=ln();t.exports=a;function a(s){let o={},c=s.nodes().filter(g=>!s.children(g).length),d=c.map(g=>s.node(g).rank),h=r.applyWithChunking(Math.max,d),f=r.range(h+1).map(()=>[]);function p(g){if(o[g])return;o[g]=!0;let b=s.node(g);f[b.rank].push(g),s.successors(g).forEach(p)}return c.sort((g,b)=>s.node(g).rank-s.node(b).rank).forEach(p),f}}),$B=vt((e,t)=>{var r=ln().zipObject;t.exports=a;function a(o,c){let d=0;for(let h=1;h<c.length;++h)d+=s(o,c[h-1],c[h]);return d}function s(o,c,d){let h=r(d,d.map((_,N)=>N)),f=c.flatMap(_=>o.outEdges(_).map(N=>({pos:h[N.w],weight:o.edge(N).weight})).sort((N,S)=>N.pos-S.pos)),p=1;for(;p<d.length;)p<<=1;let g=2*p-1;p-=1;let b=new Array(g).fill(0),y=0;return f.forEach(_=>{let N=_.pos+p;b[N]+=_.weight;let S=0;for(;N>0;)N%2&&(S+=b[N+1]),N=N-1>>1,b[N]+=_.weight;y+=_.weight*S}),y}}),qB=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((h,f)=>{let p=a.edge(f),g=a.node(f.v);return{sum:h.sum+p.weight*g.order,weight:h.weight+p.weight}},{sum:0,weight:0});return{v:o,barycenter:d.sum/d.weight,weight:d.weight}}else return{v:o}})}}),PB=vt((e,t)=>{var r=ln();t.exports=a;function a(c,d){let h={};c.forEach((p,g)=>{let b=h[p.v]={indegree:0,in:[],out:[],vs:[p.v],i:g};p.barycenter!==void 0&&(b.barycenter=p.barycenter,b.weight=p.weight)}),d.edges().forEach(p=>{let g=h[p.v],b=h[p.w];g!==void 0&&b!==void 0&&(b.indegree++,g.out.push(h[p.w]))});let f=Object.values(h).filter(p=>!p.indegree);return s(f)}function s(c){let d=[];function h(p){return g=>{g.merged||(g.barycenter===void 0||p.barycenter===void 0||g.barycenter>=p.barycenter)&&o(p,g)}}function f(p){return g=>{g.in.push(p),--g.indegree===0&&c.push(g)}}for(;c.length;){let p=c.pop();d.push(p),p.in.reverse().forEach(h(p)),p.out.forEach(f(p))}return d.filter(p=>!p.merged).map(p=>r.pick(p,["vs","i","barycenter","weight"]))}function o(c,d){let h=0,f=0;c.weight&&(h+=c.barycenter*c.weight,f+=c.weight),d.weight&&(h+=d.barycenter*d.weight,f+=d.weight),c.vs=d.vs.concat(c.vs),c.barycenter=h/f,c.weight=f,c.i=Math.min(d.i,c.i),d.merged=!0}}),FB=vt((e,t)=>{var r=ln();t.exports=a;function a(c,d){let h=r.partition(c,S=>Object.hasOwn(S,"barycenter")),f=h.lhs,p=h.rhs.sort((S,w)=>w.i-S.i),g=[],b=0,y=0,_=0;f.sort(o(!!d)),_=s(g,p,_),f.forEach(S=>{_+=S.vs.length,g.push(S.vs),b+=S.barycenter*S.weight,y+=S.weight,_=s(g,p,_)});let N={vs:g.flat(!0)};return y&&(N.barycenter=b/y,N.weight=y),N}function s(c,d,h){let f;for(;d.length&&(f=d[d.length-1]).i<=h;)d.pop(),c.push(f.vs),h++;return h}function o(c){return(d,h)=>d.barycenter<h.barycenter?-1:d.barycenter>h.barycenter?1:c?h.i-d.i:d.i-h.i}}),GB=vt((e,t)=>{var r=qB(),a=PB(),s=FB();t.exports=o;function o(h,f,p,g){let b=h.children(f),y=h.node(f),_=y?y.borderLeft:void 0,N=y?y.borderRight:void 0,S={};_&&(b=b.filter(A=>A!==_&&A!==N));let w=r(h,b);w.forEach(A=>{if(h.children(A.v).length){let B=o(h,A.v,p,g);S[A.v]=B,Object.hasOwn(B,"barycenter")&&d(A,B)}});let C=a(w,p);c(C,S);let E=s(C,g);if(_&&(E.vs=[_,E.vs,N].flat(!0),h.predecessors(_).length)){let A=h.node(h.predecessors(_)[0]),B=h.node(h.predecessors(N)[0]);Object.hasOwn(E,"barycenter")||(E.barycenter=0,E.weight=0),E.barycenter=(E.barycenter*E.weight+A.order+B.order)/(E.weight+2),E.weight+=2}return E}function c(h,f){h.forEach(p=>{p.vs=p.vs.flatMap(g=>f[g]?f[g].vs:g)})}function d(h,f){h.barycenter!==void 0?(h.barycenter=(h.barycenter*h.weight+f.barycenter*f.weight)/(h.weight+f.weight),h.weight+=f.weight):(h.barycenter=f.barycenter,h.weight=f.weight)}}),VB=vt((e,t)=>{var r=zr().Graph,a=ln();t.exports=s;function s(c,d,h,f){f||(f=c.nodes());let p=o(c),g=new r({compound:!0}).setGraph({root:p}).setDefaultNodeLabel(b=>c.node(b));return f.forEach(b=>{let y=c.node(b),_=c.parent(b);(y.rank===d||y.minRank<=d&&d<=y.maxRank)&&(g.setNode(b),g.setParent(b,_||p),c[h](b).forEach(N=>{let S=N.v===b?N.w:N.v,w=g.edge(S,b),C=w!==void 0?w.weight:0;g.setEdge(S,b,{weight:c.edge(N).weight+C})}),Object.hasOwn(y,"minRank")&&g.setNode(b,{borderLeft:y.borderLeft[d],borderRight:y.borderRight[d]}))}),g}function o(c){for(var d;c.hasNode(d=a.uniqueId("_root")););return d}}),YB=vt((e,t)=>{t.exports=r;function r(a,s,o){let c={},d;o.forEach(h=>{let f=a.parent(h),p,g;for(;f;){if(p=a.parent(f),p?(g=c[p],c[p]=f):(g=d,d=f),g&&g!==f){s.setEdge(g,f);return}f=p}})}}),XB=vt((e,t)=>{var r=HB(),a=$B(),s=GB(),o=VB(),c=YB(),d=zr().Graph,h=ln();t.exports=f;function f(y,_={}){if(typeof _.customOrder=="function"){_.customOrder(y,f);return}let N=h.maxRank(y),S=p(y,h.range(1,N+1),"inEdges"),w=p(y,h.range(N-1,-1,-1),"outEdges"),C=r(y);if(b(y,C),_.disableOptimalOrderHeuristic)return;let E=Number.POSITIVE_INFINITY,A,B=_.constraints||[];for(let R=0,H=0;H<4;++R,++H){g(R%2?S:w,R%4>=2,B),C=h.buildLayerMatrix(y);let z=a(y,C);z<E?(H=0,A=Object.assign({},C),E=z):z===E&&(A=structuredClone(C))}b(y,A)}function p(y,_,N){let S=new Map,w=(C,E)=>{S.has(C)||S.set(C,[]),S.get(C).push(E)};for(let C of y.nodes()){let E=y.node(C);if(typeof E.rank=="number"&&w(E.rank,C),typeof E.minRank=="number"&&typeof E.maxRank=="number")for(let A=E.minRank;A<=E.maxRank;A++)A!==E.rank&&w(A,C)}return _.map(function(C){return o(y,C,N,S.get(C)||[])})}function g(y,_,N){let S=new d;y.forEach(function(w){N.forEach(A=>S.setEdge(A.left,A.right));let C=w.graph().root,E=s(w,C,S,_);E.vs.forEach((A,B)=>w.node(A).order=B),c(w,S,E.vs)})}function b(y,_){Object.values(_).forEach(N=>N.forEach((S,w)=>y.node(S).order=w))}}),KB=vt((e,t)=>{var r=zr().Graph,a=ln();t.exports={positionX:N,findType1Conflicts:s,findType2Conflicts:o,addConflict:d,hasConflict:h,verticalAlignment:f,horizontalCompaction:p,alignCoordinates:y,findSmallestWidthAlignment:b,balance:_};function s(C,E){let A={};function B(R,H){let z=0,Y=0,j=R.length,I=H[H.length-1];return H.forEach((Z,P)=>{let k=c(C,Z),$=k?C.node(k).order:j;(k||Z===I)&&(H.slice(Y,P+1).forEach(O=>{C.predecessors(O).forEach(U=>{let K=C.node(U),X=K.order;(X<z||$<X)&&!(K.dummy&&C.node(O).dummy)&&d(A,U,O)})}),Y=P+1,z=$)}),H}return E.length&&E.reduce(B),A}function o(C,E){let A={};function B(H,z,Y,j,I){let Z;a.range(z,Y).forEach(P=>{Z=H[P],C.node(Z).dummy&&C.predecessors(Z).forEach(k=>{let $=C.node(k);$.dummy&&($.order<j||$.order>I)&&d(A,k,Z)})})}function R(H,z){let Y=-1,j,I=0;return z.forEach((Z,P)=>{if(C.node(Z).dummy==="border"){let k=C.predecessors(Z);k.length&&(j=C.node(k[0]).order,B(z,I,P,Y,j),I=P,Y=j)}B(z,I,z.length,j,H.length)}),z}return E.length&&E.reduce(R),A}function c(C,E){if(C.node(E).dummy)return C.predecessors(E).find(A=>C.node(A).dummy)}function d(C,E,A){if(E>A){let R=E;E=A,A=R}let B=C[E];B||(C[E]=B={}),B[A]=!0}function h(C,E,A){if(E>A){let B=E;E=A,A=B}return!!C[E]&&Object.hasOwn(C[E],A)}function f(C,E,A,B){let R={},H={},z={};return E.forEach(Y=>{Y.forEach((j,I)=>{R[j]=j,H[j]=j,z[j]=I})}),E.forEach(Y=>{let j=-1;Y.forEach(I=>{let Z=B(I);if(Z.length){Z=Z.sort((k,$)=>z[k]-z[$]);let P=(Z.length-1)/2;for(let k=Math.floor(P),$=Math.ceil(P);k<=$;++k){let O=Z[k];H[I]===I&&j<z[O]&&!h(A,I,O)&&(H[O]=I,H[I]=R[I]=R[O],j=z[O])}}})}),{root:R,align:H}}function p(C,E,A,B,R){let H={},z=g(C,E,A,R),Y=R?"borderLeft":"borderRight";function j(P,k){let $=z.nodes().slice(),O={},U=$.pop();for(;U;){if(O[U])P(U);else{O[U]=!0,$.push(U);for(let K of k(U))$.push(K)}U=$.pop()}}function I(P){H[P]=z.inEdges(P).reduce((k,$)=>Math.max(k,H[$.v]+z.edge($)),0)}function Z(P){let k=z.outEdges(P).reduce((O,U)=>Math.min(O,H[U.w]-z.edge(U)),Number.POSITIVE_INFINITY),$=C.node(P);k!==Number.POSITIVE_INFINITY&&$.borderType!==Y&&(H[P]=Math.max(H[P],k))}return j(I,z.predecessors.bind(z)),j(Z,z.successors.bind(z)),Object.keys(B).forEach(P=>H[P]=H[A[P]]),H}function g(C,E,A,B){let R=new r,H=C.graph(),z=S(H.nodesep,H.edgesep,B);return E.forEach(Y=>{let j;Y.forEach(I=>{let Z=A[I];if(R.setNode(Z),j){var P=A[j],k=R.edge(P,Z);R.setEdge(P,Z,Math.max(z(C,I,j),k||0))}j=I})}),R}function b(C,E){return Object.values(E).reduce((A,B)=>{let R=Number.NEGATIVE_INFINITY,H=Number.POSITIVE_INFINITY;Object.entries(B).forEach(([Y,j])=>{let I=w(C,Y)/2;R=Math.max(j+I,R),H=Math.min(j-I,H)});let z=R-H;return z<A[0]&&(A=[z,B]),A},[Number.POSITIVE_INFINITY,null])[1]}function y(C,E){let A=Object.values(E),B=a.applyWithChunking(Math.min,A),R=a.applyWithChunking(Math.max,A);["u","d"].forEach(H=>{["l","r"].forEach(z=>{let Y=H+z,j=C[Y];if(j===E)return;let I=Object.values(j),Z=B-a.applyWithChunking(Math.min,I);z!=="l"&&(Z=R-a.applyWithChunking(Math.max,I)),Z&&(C[Y]=a.mapValues(j,P=>P+Z))})})}function _(C,E){return a.mapValues(C.ul,(A,B)=>{if(E)return C[E.toLowerCase()][B];{let R=Object.values(C).map(H=>H[B]).sort((H,z)=>H-z);return(R[1]+R[2])/2}})}function N(C){let E=a.buildLayerMatrix(C),A=Object.assign(s(C,E),o(C,E)),B={},R;["u","d"].forEach(z=>{R=z==="u"?E:Object.values(E).reverse(),["l","r"].forEach(Y=>{Y==="r"&&(R=R.map(P=>Object.values(P).reverse()));let j=(z==="u"?C.predecessors:C.successors).bind(C),I=f(C,R,A,j),Z=p(C,R,I.root,I.align,Y==="r");Y==="r"&&(Z=a.mapValues(Z,P=>-P)),B[z+Y]=Z})});let H=b(C,B);return y(B,H),_(B,C.graph().align)}function S(C,E,A){return(B,R,H)=>{let z=B.node(R),Y=B.node(H),j=0,I;if(j+=z.width/2,Object.hasOwn(z,"labelpos"))switch(z.labelpos.toLowerCase()){case"l":I=-z.width/2;break;case"r":I=z.width/2;break}if(I&&(j+=A?I:-I),I=0,j+=(z.dummy?E:C)/2,j+=(Y.dummy?E:C)/2,j+=Y.width/2,Object.hasOwn(Y,"labelpos"))switch(Y.labelpos.toLowerCase()){case"l":I=Y.width/2;break;case"r":I=-Y.width/2;break}return I&&(j+=A?I:-I),I=0,j}}function w(C,E){return C.node(E).width}}),ZB=vt((e,t)=>{var r=ln(),a=KB().positionX;t.exports=s;function s(c){c=r.asNonCompoundGraph(c),o(c),Object.entries(a(c)).forEach(([d,h])=>c.node(d).x=h)}function o(c){let d=r.buildLayerMatrix(c),h=c.graph().ranksep,f=c.graph().rankalign,p=0;d.forEach(g=>{let b=g.reduce((y,_)=>{let N=c.node(_).height;return y>N?y:N},0);g.forEach(y=>{let _=c.node(y);f==="top"?_.y=p+_.height/2:f==="bottom"?_.y=p+b-_.height/2:_.y=p+b/2}),p+=b+h})}}),QB=vt((e,t)=>{var r=RB(),a=jB(),s=LB(),o=ln().normalizeRanks,c=zB(),d=ln().removeEmptyRanks,h=IB(),f=BB(),p=UB(),g=XB(),b=ZB(),y=ln(),_=zr().Graph;t.exports=N;function N(q,Q={}){let J=Q.debugTiming?y.time:y.notime;return J("layout",()=>{let W=J(" buildLayoutGraph",()=>j(q));return J(" runLayout",()=>S(W,J,Q)),J(" updateInputGraph",()=>w(q,W)),W})}function S(q,Q,J){Q(" makeSpaceForEdgeLabels",()=>I(q)),Q(" removeSelfEdges",()=>M(q)),Q(" acyclic",()=>r.run(q)),Q(" nestingGraph.run",()=>h.run(q)),Q(" rank",()=>s(y.asNonCompoundGraph(q))),Q(" injectEdgeLabelProxies",()=>Z(q)),Q(" removeEmptyRanks",()=>d(q)),Q(" nestingGraph.cleanup",()=>h.cleanup(q)),Q(" normalizeRanks",()=>o(q)),Q(" assignRankMinMax",()=>P(q)),Q(" removeEdgeLabelProxies",()=>k(q)),Q(" normalize.run",()=>a.run(q)),Q(" parentDummyChains",()=>c(q)),Q(" addBorderSegments",()=>f(q)),Q(" order",()=>g(q,J)),Q(" insertSelfEdges",()=>L(q)),Q(" adjustCoordinateSystem",()=>p.adjust(q)),Q(" position",()=>b(q)),Q(" positionSelfEdges",()=>F(q)),Q(" removeBorderNodes",()=>X(q)),Q(" normalize.undo",()=>a.undo(q)),Q(" fixupEdgeLabelCoords",()=>U(q)),Q(" undoCoordinateSystem",()=>p.undo(q)),Q(" translateGraph",()=>$(q)),Q(" assignNodeIntersects",()=>O(q)),Q(" reversePoints",()=>K(q)),Q(" acyclic.undo",()=>r.undo(q))}function w(q,Q){q.nodes().forEach(J=>{let W=q.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))}),q.edges().forEach(J=>{let W=q.edge(J),te=Q.edge(J);W.points=te.points,Object.hasOwn(te,"x")&&(W.x=te.x,W.y=te.y)}),q.graph().width=Q.graph().width,q.graph().height=Q.graph().height}var C=["nodesep","edgesep","ranksep","marginx","marginy"],E={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb",rankalign:"center"},A=["acyclicer","ranker","rankdir","align","rankalign"],B=["width","height","rank"],R={width:0,height:0},H=["minlen","weight","width","height","labeloffset"],z={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Y=["labelpos"];function j(q){let Q=new _({multigraph:!0,compound:!0}),J=V(q.graph());return Q.setGraph(Object.assign({},E,D(J,C),y.pick(J,A))),q.nodes().forEach(W=>{let te=V(q.node(W)),oe=D(te,B);Object.keys(R).forEach(fe=>{oe[fe]===void 0&&(oe[fe]=R[fe])}),Q.setNode(W,oe),Q.setParent(W,q.parent(W))}),q.edges().forEach(W=>{let te=V(q.edge(W));Q.setEdge(W,Object.assign({},z,D(te,H),y.pick(te,Y)))}),Q}function I(q){let Q=q.graph();Q.ranksep/=2,q.edges().forEach(J=>{let W=q.edge(J);W.minlen*=2,W.labelpos.toLowerCase()!=="c"&&(Q.rankdir==="TB"||Q.rankdir==="BT"?W.width+=W.labeloffset:W.height+=W.labeloffset)})}function Z(q){q.edges().forEach(Q=>{let J=q.edge(Q);if(J.width&&J.height){let W=q.node(Q.v),te={rank:(q.node(Q.w).rank-W.rank)/2+W.rank,e:Q};y.addDummyNode(q,"edge-proxy",te,"_ep")}})}function P(q){let Q=0;q.nodes().forEach(J=>{let W=q.node(J);W.borderTop&&(W.minRank=q.node(W.borderTop).rank,W.maxRank=q.node(W.borderBottom).rank,Q=Math.max(Q,W.maxRank))}),q.graph().maxRank=Q}function k(q){q.nodes().forEach(Q=>{let J=q.node(Q);J.dummy==="edge-proxy"&&(q.edge(J.e).labelRank=J.rank,q.removeNode(Q))})}function $(q){let Q=Number.POSITIVE_INFINITY,J=0,W=Number.POSITIVE_INFINITY,te=0,oe=q.graph(),fe=oe.marginx||0,xe=oe.marginy||0;function we(Ne){let De=Ne.x,$e=Ne.y,st=Ne.width,Rt=Ne.height;Q=Math.min(Q,De-st/2),J=Math.max(J,De+st/2),W=Math.min(W,$e-Rt/2),te=Math.max(te,$e+Rt/2)}q.nodes().forEach(Ne=>we(q.node(Ne))),q.edges().forEach(Ne=>{let De=q.edge(Ne);Object.hasOwn(De,"x")&&we(De)}),Q-=fe,W-=xe,q.nodes().forEach(Ne=>{let De=q.node(Ne);De.x-=Q,De.y-=W}),q.edges().forEach(Ne=>{let De=q.edge(Ne);De.points.forEach($e=>{$e.x-=Q,$e.y-=W}),Object.hasOwn(De,"x")&&(De.x-=Q),Object.hasOwn(De,"y")&&(De.y-=W)}),oe.width=J-Q+fe,oe.height=te-W+xe}function O(q){q.edges().forEach(Q=>{let J=q.edge(Q),W=q.node(Q.v),te=q.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(y.intersectRect(W,oe)),J.points.push(y.intersectRect(te,fe))})}function U(q){q.edges().forEach(Q=>{let J=q.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(q){q.edges().forEach(Q=>{let J=q.edge(Q);J.reversed&&J.points.reverse()})}function X(q){q.nodes().forEach(Q=>{if(q.children(Q).length){let J=q.node(Q),W=q.node(J.borderTop),te=q.node(J.borderBottom),oe=q.node(J.borderLeft[J.borderLeft.length-1]),fe=q.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}}),q.nodes().forEach(Q=>{q.node(Q).dummy==="border"&&q.removeNode(Q)})}function M(q){q.edges().forEach(Q=>{if(Q.v===Q.w){var J=q.node(Q.v);J.selfEdges||(J.selfEdges=[]),J.selfEdges.push({e:Q,label:q.edge(Q)}),q.removeEdge(Q)}})}function L(q){var Q=y.buildLayerMatrix(q);Q.forEach(J=>{var W=0;J.forEach((te,oe)=>{var fe=q.node(te);fe.order=oe+W,(fe.selfEdges||[]).forEach(xe=>{y.addDummyNode(q,"selfedge",{width:xe.label.width,height:xe.label.height,rank:fe.rank,order:oe+ ++W,e:xe.e,label:xe.label},"_se")}),delete fe.selfEdges})})}function F(q){q.nodes().forEach(Q=>{var J=q.node(Q);if(J.dummy==="selfedge"){var W=q.node(J.e.v),te=W.x+W.width/2,oe=W.y,fe=J.x-te,xe=W.height/2;q.setEdge(J.e,J.label),q.removeNode(Q),J.label.points=[{x:te+2*fe/3,y:oe-xe},{x:te+5*fe/6,y:oe-xe},{x:te+fe,y:oe},{x:te+5*fe/6,y:oe+xe},{x:te+2*fe/3,y:oe+xe}],J.label.x=J.x,J.label.y=J.y}})}function D(q,Q){return y.mapValues(y.pick(q,Q),Number)}function V(q){var Q={};return q&&Object.entries(q).forEach(([J,W])=>{typeof J=="string"&&(J=J.toLowerCase()),Q[J]=W}),Q}}),WB=vt((e,t)=>{var r=ln(),a=zr().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(h=>{d.setNode(h,{label:h}),d.setParent(h,"layer"+o.node(h).rank)}),o.edges().forEach(h=>d.setEdge(h.v,h.w,{},h.name)),c.forEach((h,f)=>{let p="layer"+f;d.setNode(p,{rank:"same"}),h.reduce((g,b)=>(d.setEdge(g,b,{style:"invis"}),b))}),d}}),JB=vt((e,t)=>{t.exports="2.0.4"}),e7=vt((e,t)=>{t.exports={graphlib:zr(),layout:QB(),debug:WB(),util:{time:ln().time,notime:ln().notime},version:JB()}});const t_=e7();/*! For license information please see dagre.esm.js.LEGAL.txt */const n_={running:"bg-blue-500",completed:"bg-emerald-500",failed:"bg-red-500",error:"bg-red-500"};function t7({data:e,selected:t}){const r=e;return m.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:[m.jsx(tl,{type:"target",position:ze.Top,isConnectable:!1,className:`!w-1.5 !h-1.5 !border-0 ${r.parentId?"!bg-[#444]":"!bg-transparent"}`}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsxs("span",{className:"relative flex h-2 w-2 shrink-0",children:[m.jsx("span",{className:`absolute inline-flex h-full w-full rounded-full opacity-75 ${n_[r.status]??"bg-gray-500"} ${r.status==="running"?"animate-ping":""}`}),m.jsx("span",{className:`relative inline-flex h-2 w-2 rounded-full ${n_[r.status]??"bg-gray-500"}`})]}),m.jsx("span",{className:"text-sm font-semibold text-white leading-snug line-clamp-3",children:r.name})]}),m.jsx(tl,{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 n7=ee.memo(t7);function ro({w:e=24}){return m.jsxs("div",{className:"w-[180px] h-[72px] rounded-lg border border-[#222] bg-[#0a0a0a] px-3 py-2 shrink-0",children:[m.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[m.jsx("div",{className:"w-2 h-2 rounded-full bg-[#2a2a2a]"}),m.jsx("div",{className:"h-3 rounded bg-[#252525]",style:{width:`${e*4}px`}})]}),m.jsx("div",{className:"h-2 w-28 rounded bg-[#1e1e1e] mb-1.5"}),m.jsxs("div",{className:"flex gap-3",children:[m.jsx("div",{className:"h-2 w-8 rounded bg-[#1e1e1e]"}),m.jsx("div",{className:"h-2 w-8 rounded bg-[#1e1e1e]"})]})]})}function Bs(){return m.jsx("div",{className:"w-px h-6 bg-[#2a2a2a]"})}function r_({count:e}){return m.jsx("div",{className:"relative flex justify-center",children:m.jsx("div",{className:"absolute top-0 h-px bg-[#2a2a2a]",style:{width:`${(e-1)*220}px`}})})}function r7(){return m.jsx("div",{className:"h-full bg-black overflow-hidden",children:m.jsxs("div",{className:"flex flex-col items-center pt-10 animate-pulse",children:[m.jsx(ro,{w:20}),m.jsx(Bs,{}),m.jsx(r_,{count:3}),m.jsx("div",{className:"flex gap-10",children:[18,22,16].map((e,t)=>m.jsxs("div",{className:"flex flex-col items-center",children:[m.jsx(Bs,{}),m.jsx(ro,{w:e})]},t))}),m.jsxs("div",{className:"flex gap-10 w-full justify-center",children:[m.jsxs("div",{className:"flex flex-col items-center",children:[m.jsx(Bs,{}),m.jsx(r_,{count:2}),m.jsx("div",{className:"flex gap-10",children:[14,20].map((e,t)=>m.jsxs("div",{className:"flex flex-col items-center",children:[m.jsx(Bs,{}),m.jsx(ro,{w:e})]},t))})]}),m.jsxs("div",{className:"flex flex-col items-center",children:[m.jsx(Bs,{}),m.jsx(ro,{w:18}),m.jsx(Bs,{}),m.jsx(ro,{w:12})]}),m.jsx("div",{className:"w-[180px]"})]})]})})}const yp=260,vp=80,i7={agentNode:n7};function a7(e,t){const r=new t_.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:yp,height:vp}),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}})}t_.layout(r);for(const o of a){const c=r.node(o.id);c&&(o.position={x:c.x-yp/2,y:c.y-vp/2})}return{nodes:a,edges:s}}const Lm=300;function s7({nodes:e}){const{setCenter:t}=qo(),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+yp/2,c=s.position.y+vp/2;setTimeout(()=>t(o,c,{zoom:.85,duration:400}),60)}},[e,t]),null}function l7(){const{zoomIn:e,zoomOut:t,fitView:r}=qo();return m.jsx(fB,{position:"bottom-right",showZoom:!1,showFitView:!1,showInteractive:!1,className:"!bg-transparent !border-none !shadow-none",children:m.jsxs("div",{className:"flex flex-col overflow-hidden rounded-lg border border-[#222]",children:[m.jsx("button",{onClick:()=>e({duration:Lm}),className:"flex items-center justify-center w-7 h-7 bg-[#111] text-white hover:bg-[#2a2a2a] transition-colors",title:"Zoom in",children:m.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"w-3.5 h-3.5",children:m.jsx("path",{d:"M12 5v14M5 12h14"})})}),m.jsx("button",{onClick:()=>t({duration:Lm}),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:m.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"w-3.5 h-3.5",children:m.jsx("path",{d:"M5 12h14"})})}),m.jsx("button",{onClick:()=>r({padding:.3,duration:Lm}),className:"flex items-center justify-center w-7 h-7 bg-[#111] text-white hover:bg-[#2a2a2a] transition-colors",title:"Fit view",children:m.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"w-3.5 h-3.5",children:m.jsx("path",{d:"M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"})})})]})})}function o7({agents:e,selectedAgentId:t,onSelectAgent:r,eventsLoaded:a,eventsEmpty:s,scanCompleted:o}){const[c,d,h]=J9([]),[f,p,g]=eB([]);ee.useEffect(()=>{if(e.size===0)return;const{nodes:S,edges:w}=a7(e,t);d(S),p(w)},[e.size,d,p]),ee.useEffect(()=>{e.size!==0&&d(S=>S.map(w=>{const C=e.get(w.id);return C?{...w,data:{...C,isSelected:w.id===t}}:w}))},[e,t,d]);const b=ee.useRef(!1),y=ee.useCallback((S,w)=>{b.current=!0,r(w.id)},[r]),_=ee.useCallback(()=>{if(b.current){b.current=!1;return}r(null)},[r]);if(e.size===0&&a&&s)return m.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center px-4",children:[m.jsx("div",{className:"w-10 h-10 mb-3 rounded-full bg-[#111] flex items-center justify-center",children:o?m.jsx("svg",{className:"w-5 h-5 text-[#444]",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:m.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"})}):m.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-500 animate-pulse"})}),m.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 m.jsxs("div",{className:"relative h-full",children:[m.jsx("div",{className:`absolute inset-0 z-10 transition-opacity duration-500 ${N?"opacity-0 pointer-events-none":"opacity-100"}`,children:m.jsx(r7,{})}),m.jsx("div",{className:`h-full transition-opacity duration-500 ${N?"opacity-100":"opacity-0"}`,children:m.jsxs(W9,{nodes:c,edges:f,onNodesChange:h,onEdgesChange:g,onNodeClick:y,onPaneClick:_,nodeTypes:i7,nodesConnectable:!1,edgesFocusable:!1,edgesReconnectable:!1,minZoom:.15,maxZoom:1.5,proOptions:{hideAttribution:!0},className:"bg-black",children:[m.jsx(aB,{color:"#111",gap:20}),m.jsx(s7,{nodes:c}),m.jsx(l7,{}),m.jsx(kB,{position:"bottom-left",nodeColor:S=>{var C;const w=(C=S.data)==null?void 0:C.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 da({text:e,className:t=""}){return m.jsx("div",{className:`prose-markdown ${t}`,children:m.jsx(Yp,{remarkPlugins:[Qp],rehypePlugins:[Wp],components:Jp,children:e})})}const i_=6,a_=20;function qt({text:e,maxLines:t=20}){const[r,a]=ee.useState(!1),o=e.trimEnd().split(`
`).length>t;return m.jsxs("div",{children:[m.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:m.jsx(da,{text:e})}),o&&m.jsx("button",{onClick:()=>a(!r),className:"text-xs text-[#555] hover:text-[#888] mt-1",children:r?"Show less":"Show more"})]})}function Ei({children:e,className:t=""}){const[r,a]=ee.useState(!1),o=typeof e=="string"?e.trimEnd().split(`
`):null,c=o!==null&&o.length>i_,d=c&&!r?o.slice(0,i_).join(`
`):e;return m.jsxs("div",{children:[m.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&&m.jsx("button",{onClick:()=>a(!r),className:"text-xs text-[#555] hover:text-[#888] mt-0.5",children:r?"Show less":"Show more"})]})}function bg({code:e,language:t,className:r="",collapsible:a=!1}){const[s,o]=ee.useState(!1),c=e.trimEnd().split(`
`),d=a&&c.length>a_,h=d&&!s?c.slice(0,a_).join(`
-`):e;let f;try{f=t?zn.highlight(h,{language:t,ignoreIllegals:!0}).value:zn.highlightAuto(h).value}catch{f=zn.highlightAuto(h).value}return m.jsxs("div",{children:[m.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:m.jsx("code",{dangerouslySetInnerHTML:{__html:f}})}),d&&m.jsx("button",{onClick:()=>o(!s),className:"text-xs text-[#555] hover:text-[#888] mt-0.5",children:s?"Show less":"Show more"})]})}const o7=50,s_=200,l_=25,o_=24,c7=[/\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],u7=/^Chunk ID: [0-9a-f]+\s*$/,d7=[/^Wall time: [\d.]+ seconds\s*$/,/^Process exited with code -?\d+\s*$/,/^Process running with session ID \d+\s*$/,/^Original token count: \d+\s*$/];function f7(e){const t=[];for(let r=0;r<e.length;r++){if(u7.test(e[r])){let a=r+1;for(;a<e.length&&d7.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 h7(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function zm(e){return e.length>s_?e.slice(0,s_-3)+"...":e}function m7(e,t=""){let r=e.replace(/\x1b(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~]|\][^\x07]*\x07)/g,"").replace(/\r/g,"");for(const a of c7)r=r.replace(a,"");if(r.trim()){const a=f7(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*${h7(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 p7(e){const t=e.split(`
-`);if(t.length<=o7)return t.map(zm).join(`
+`):e;let f;try{f=t?zn.highlight(h,{language:t,ignoreIllegals:!0}).value:zn.highlightAuto(h).value}catch{f=zn.highlightAuto(h).value}return m.jsxs("div",{children:[m.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:m.jsx("code",{dangerouslySetInnerHTML:{__html:f}})}),d&&m.jsx("button",{onClick:()=>o(!s),className:"text-xs text-[#555] hover:text-[#888] mt-0.5",children:s?"Show less":"Show more"})]})}const c7=50,s_=200,l_=25,o_=24,u7=[/\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],d7=/^Chunk ID: [0-9a-f]+\s*$/,f7=[/^Wall time: [\d.]+ seconds\s*$/,/^Process exited with code -?\d+\s*$/,/^Process running with session ID \d+\s*$/,/^Original token count: \d+\s*$/];function h7(e){const t=[];for(let r=0;r<e.length;r++){if(d7.test(e[r])){let a=r+1;for(;a<e.length&&f7.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 m7(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function zm(e){return e.length>s_?e.slice(0,s_-3)+"...":e}function p7(e,t=""){let r=e.replace(/\x1b(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~]|\][^\x07]*\x07)/g,"").replace(/\r/g,"");for(const a of u7)r=r.replace(a,"");if(r.trim()){const a=h7(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*${m7(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 g7(e){const t=e.split(`
+`);if(t.length<=c7)return t.map(zm).join(`
`);const r=t.length-l_-o_;return[...t.slice(0,l_).map(zm),`... ${r} lines truncated ...`,...t.slice(-o_).map(zm)].join(`
-`)}function g7({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,h=null;if(o&&typeof o=="object"){c=typeof o.content=="string"?o.content:null,d=typeof o.error=="string"?o.error:null,h=typeof o.exit_code=="number"?o.exit_code:null;const p=typeof o.status=="string"?o.status:"";(p==="running"||p==="command still running")&&(c=null)}else typeof o=="string"&&(c=o);const f=c?p7(m7(c,s)):null;return m.jsxs("div",{children:[m.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:a?"Terminal input":"Terminal"}),s&&m.jsx(bg,{code:s,language:"bash",collapsible:!0}),d&&m.jsx(Ei,{className:"text-red-400/70",children:d}),f&&m.jsx(Ei,{className:"text-[#666]",children:f}),h!=null&&h!==0&&m.jsxs("div",{className:"font-mono text-[13px] text-red-400/70 mt-0.5",children:["exit code ",h]})]})}const c_={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"},u_={click:"clicking",double_click:"double clicking",hover:"hovering"};function Im({prefix:e,url:t,suffix:r}){return m.jsxs("span",{className:"text-[#888] text-[13px]",children:[e,t&&m.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"text-cyan-400/80 hover:underline",children:t}),r]})}function x7(e){const t=e.action??"",r=e.url??void 0;if(t in c_)return c_[t];if(t==="launch")return r?m.jsx(Im,{prefix:"launching ",url:r}):"launching";if(t==="goto"||t==="navigate")return m.jsx(Im,{prefix:"navigating to ",url:r});if(t==="new_tab")return m.jsx(Im,{prefix:"opening tab ",url:r});if(t in u_)return u_[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 b7({args:e}){const r=(e.action??"")==="execute_js"?e.js_code??e.code??"":"",a=x7(e);return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[m.jsx("span",{className:"text-blue-400/80 font-semibold text-sm shrink-0",children:"Browser"}),m.jsx("span",{className:"min-w-0 truncate text-[#888] text-[13px]",children:a})]}),r&&m.jsx(bg,{code:r,language:"javascript",collapsible:!0})]})}function yg(e){return e.length>60?"..."+e.slice(-57):e}const pu=30;function y7({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 h=r?yg(r):"",f=c?` /${c}/`:"",p=s?s.split(`
+`)}function x7({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,h=null;if(o&&typeof o=="object"){c=typeof o.content=="string"?o.content:null,d=typeof o.error=="string"?o.error:null,h=typeof o.exit_code=="number"?o.exit_code:null;const p=typeof o.status=="string"?o.status:"";(p==="running"||p==="command still running")&&(c=null)}else typeof o=="string"&&(c=o);const f=c?g7(p7(c,s)):null;return m.jsxs("div",{children:[m.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:a?"Terminal input":"Terminal"}),s&&m.jsx(bg,{code:s,language:"bash",collapsible:!0}),d&&m.jsx(Ei,{className:"text-red-400/70",children:d}),f&&m.jsx(Ei,{className:"text-[#666]",children:f}),h!=null&&h!==0&&m.jsxs("div",{className:"font-mono text-[13px] text-red-400/70 mt-0.5",children:["exit code ",h]})]})}const c_={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"},u_={click:"clicking",double_click:"double clicking",hover:"hovering"};function Im({prefix:e,url:t,suffix:r}){return m.jsxs("span",{className:"text-[#888] text-[13px]",children:[e,t&&m.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"text-cyan-400/80 hover:underline",children:t}),r]})}function b7(e){const t=e.action??"",r=e.url??void 0;if(t in c_)return c_[t];if(t==="launch")return r?m.jsx(Im,{prefix:"launching ",url:r}):"launching";if(t==="goto"||t==="navigate")return m.jsx(Im,{prefix:"navigating to ",url:r});if(t==="new_tab")return m.jsx(Im,{prefix:"opening tab ",url:r});if(t in u_)return u_[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 y7({args:e}){const r=(e.action??"")==="execute_js"?e.js_code??e.code??"":"",a=b7(e);return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[m.jsx("span",{className:"text-blue-400/80 font-semibold text-sm shrink-0",children:"Browser"}),m.jsx("span",{className:"min-w-0 truncate text-[#888] text-[13px]",children:a})]}),r&&m.jsx(bg,{code:r,language:"javascript",collapsible:!0})]})}function yg(e){return e.length>60?"..."+e.slice(-57):e}const gu=30;function v7({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 h=r?yg(r):"",f=c?` /${c}/`:"",p=s?s.split(`
`):[],g=o?o.split(`
-`):[],b=p.length+g.length,y=b>pu,_=y?Math.round(pu*(p.length/b)):p.length,N=y?pu-_:g.length;return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-baseline gap-2",children:[m.jsx("span",{className:"text-sky-400/80 font-semibold text-sm shrink-0",children:d}),h&&m.jsx("span",{className:"text-[#888] font-mono text-[13px] break-all",children:h})]}),f&&m.jsx("div",{className:"text-purple-400/60 font-mono text-[13px] break-all mt-0.5",children:f}),(s||o)&&m.jsxs("div",{className:"font-mono text-[13px] leading-relaxed mt-1.5",children:[p.slice(0,_).map((S,w)=>m.jsxs("div",{className:"text-red-400/60",children:[m.jsx("span",{className:"select-none text-red-400/30 mr-1",children:"-"}),S]},`o${w}`)),g.slice(0,N).map((S,w)=>m.jsxs("div",{className:"text-emerald-400/60",children:[m.jsx("span",{className:"select-none text-emerald-400/30 mr-1",children:"+"}),S]},`n${w}`)),y&&m.jsxs("div",{className:"text-[#444] mt-0.5",children:["... ",b-pu," more lines"]})]})]})}const gu=30,v7="*** Begin Patch",_7="*** End Patch",d_="*** Add File: ",f_="*** Update File: ",h_="*** Delete File: ",w7={add:"create",update:"edit",delete:"delete"};function E7(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 N7(e){const t=[];let r=null;const a=()=>{r&&t.push(r),r=null};for(const s of e.split(`
-`))if(!(s===v7||s===_7))if(s.startsWith(d_))a(),r={kind:"add",path:s.slice(d_.length).trim(),oldLines:[],newLines:[]};else if(s.startsWith(f_))a(),r={kind:"update",path:s.slice(f_.length).trim(),oldLines:[],newLines:[]};else if(s.startsWith(h_))a(),r={kind:"delete",path:s.slice(h_.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 S7({op:e}){const t=w7[e.kind]??"file",r=e.oldLines.length+e.newLines.length,a=r>gu,s=a&&r>0?Math.round(gu*(e.oldLines.length/r)):e.oldLines.length,o=a?gu-s:e.newLines.length;return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-baseline gap-2",children:[m.jsx("span",{className:"text-sky-400/80 font-semibold text-sm shrink-0",children:t}),e.path&&m.jsx("span",{className:"text-[#888] font-mono text-[13px] break-all",children:yg(e.path)})]}),(e.oldLines.length>0||e.newLines.length>0)&&m.jsxs("div",{className:"font-mono text-[13px] leading-relaxed mt-1.5",children:[e.oldLines.slice(0,s).map((c,d)=>m.jsxs("div",{className:"text-red-400/60",children:[m.jsx("span",{className:"select-none text-red-400/30 mr-1",children:"-"}),c]},`o${d}`)),e.newLines.slice(0,o).map((c,d)=>m.jsxs("div",{className:"text-emerald-400/60",children:[m.jsx("span",{className:"select-none text-emerald-400/30 mr-1",children:"+"}),c]},`n${d}`)),a&&m.jsxs("div",{className:"text-[#444] mt-0.5",children:["... ",r-gu," more lines"]})]})]})}function k7({args:e,result:t,status:r}){const a=N7(E7(e));return a.length===0?m.jsxs("div",{children:[m.jsx("span",{className:"text-sky-400/80 font-semibold text-sm",children:"patch"}),r==="failed"&&typeof t=="string"&&t.trim()&&m.jsx("div",{className:"text-red-400/70 text-[13px] mt-1",children:t.trim()})]}):m.jsxs("div",{className:"space-y-2",children:[a.map((s,o)=>m.jsx(S7,{op:s},o)),r==="failed"&&typeof t=="string"&&t.trim()&&m.jsx("div",{className:"text-red-400/70 text-[13px]",children:t.trim()})]})}const C7=/data:image\/(png|jpe?g|gif|webp);base64,([A-Za-z0-9+/]+={0,2})/;function T7(e){let t=null;if(typeof e=="string")t=e;else if(e&&typeof e=="object"){const a=e;typeof a.image_url=="string"?t=a.image_url:typeof a.url=="string"&&(t=a.url)}if(!t)return null;const r=C7.exec(t);return!r||r[2].length<100||r[2].length%4!==0?null:`data:image/${r[1]};base64,${r[2]}`}function A7({args:e,result:t}){const r=(e.path??"").trim(),a=T7(t);let s=null;if(!a&&typeof t=="string"){const o=t.trim();o&&!o.toLowerCase().startsWith("data:image/")&&!o.startsWith("{")&&(s=o)}return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-baseline gap-2",children:[m.jsx("span",{className:"text-sky-400/80 font-semibold text-sm shrink-0",children:"view image"}),r&&m.jsx("span",{className:"text-[#888] font-mono text-[13px] break-all",children:yg(r)})]}),a&&m.jsx("img",{src:a,alt:r||"Tool image output",className:"mt-1.5 max-w-full max-h-96 rounded-lg border border-white/[0.06] object-contain"}),s&&m.jsx("div",{className:"text-red-400/70 text-[13px] mt-1",children:s})]})}const M7={critical:"text-red-400",high:"text-orange-400",medium:"text-yellow-400",low:"text-blue-400",info:"text-cyan-400"},O7={high:"text-emerald-400",medium:"text-yellow-400",low:"text-orange-400"};function R7({args:e,result:t}){const r=e.title??"",a=e.description??"",s=e.impact??"",o=e.target??"",c=e.endpoint??"",d=e.method??"",h=e.technical_analysis??"",f=e.poc_description??"",{language:p,code:g}=EE(e.poc_script_code??""),b=e.remediation_steps??"",y=e.cve??"",_=e.cwe??"",N=e.counterevidence??"",S=(e.confidence??"").toLowerCase(),w=e.confidence_rationale??"",C=e.severity_change_conditions??"",E=e.fix_verification??"",A=t,B=(A&&typeof A=="object"?A.severity:null)??e.severity??"medium",R=String(B).toLowerCase(),H=(A&&typeof A=="object"?A.cvss_score:null)??e.cvss??null,z=M7[R]??"text-yellow-400";return m.jsxs("div",{className:"space-y-3",children:[m.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[m.jsx("span",{className:`font-semibold text-sm ${z}`,children:R.toUpperCase()}),H!=null&&m.jsxs("span",{className:"text-[#888] text-[13px]",children:["CVSS ",H]}),y&&m.jsx("span",{className:"text-[#888] font-mono text-[13px]",children:y}),_&&m.jsx("span",{className:"text-[#888] font-mono text-[13px]",children:_}),S&&m.jsxs("span",{className:`text-[13px] ${O7[S]??"text-[#888]"}`,children:[S," confidence"]})]}),r&&m.jsx("div",{className:"text-[15px] text-white/80 font-semibold",children:r}),(o||c)&&m.jsxs("div",{className:"text-[13px] text-[#888] font-mono",children:[o,c?` ${d} ${c}`:""]}),a&&m.jsx(qt,{text:a,maxLines:20}),s&&m.jsxs("div",{children:[m.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Impact"}),m.jsx("div",{className:"mt-1",children:m.jsx(qt,{text:s,maxLines:15})})]}),h&&m.jsxs("div",{children:[m.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Technical Analysis"}),m.jsx("div",{className:"mt-1",children:m.jsx(qt,{text:h,maxLines:20})})]}),w&&m.jsx("div",{className:"text-[#777] text-xs leading-snug",children:w}),N&&m.jsxs("div",{children:[m.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Counterevidence"}),m.jsx("div",{className:"mt-1",children:m.jsx(qt,{text:N,maxLines:12})})]}),C&&m.jsxs("div",{children:[m.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Severity would change if"}),m.jsx("div",{className:"mt-1",children:m.jsx(qt,{text:C,maxLines:10})})]}),(f||g)&&m.jsxs("div",{children:[m.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Proof of Concept"}),f&&m.jsx("div",{className:"mt-1",children:m.jsx(da,{text:f})}),g&&m.jsx(wE,{className:p?`language-${p}`:void 0,children:g})]}),b&&m.jsxs("div",{children:[m.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Remediation"}),m.jsx("div",{className:"mt-1",children:m.jsx(qt,{text:b,maxLines:15})})]}),E&&m.jsxs("div",{children:[m.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Fix verification"}),m.jsx("div",{className:"mt-1",children:m.jsx(qt,{text:E,maxLines:12})})]})]})}const j7={critical:"text-red-400",high:"text-orange-400",medium:"text-yellow-400",low:"text-blue-400",info:"text-cyan-400"};function D7({args:e,result:t,status:r}){const a=e.report_id??"",s=e.delete_reason??"",o=t&&typeof t=="object"?t:null,c=(o==null?void 0:o.success)===!0,d=typeof(o==null?void 0:o.error)=="string"?o.error:"",h=typeof(o==null?void 0:o.title)=="string"?o.title:"",f=typeof(o==null?void 0:o.severity)=="string"?o.severity.toLowerCase():"",p=o!=null?!c:r==="failed"||r==="error",g=o==null&&!p,b=g?"withdrawing report…":p?"report not withdrawn":"report withdrawn",y=g?"text-[#888]":p?"text-red-400/80":"text-yellow-400/80";return m.jsxs("div",{className:"space-y-2",children:[m.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[m.jsx("span",{className:`font-semibold text-sm ${y}`,"aria-live":"polite",children:b}),a&&m.jsx("span",{className:"text-[#555] font-mono text-[13px]",children:a}),f&&m.jsx("span",{className:`text-[13px] line-through ${j7[f]??"text-[#888]"}`,children:f.toUpperCase()})]}),h&&m.jsx("div",{className:"text-[15px] text-white/60 line-through",children:h}),s&&m.jsxs("div",{children:[m.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Why"}),m.jsx("div",{className:"mt-1",children:m.jsx(qt,{text:s,maxLines:10})})]}),d&&m.jsx("div",{className:"text-red-400/80 text-[13px]",children:d})]})}const L7={critical:"text-red-400",high:"text-orange-400",medium:"text-yellow-400",low:"text-blue-400",info:"text-cyan-400",none:"text-[#888]"};function z7(e){if(!e.agent_name&&!e.by_you)return null;const t=e.by_you?"you":e.agent_name;return m.jsxs("span",{className:"text-[#666] text-xs ml-1.5",children:["(",t,")"]})}function Bm(e){const t=String(e??"").toLowerCase(),r=L7[t]??"text-yellow-400";return m.jsx("span",{className:`font-semibold text-[13px] ${r}`,children:t.toUpperCase()||"—"})}function m_({toolName:e,result:t}){const r=t,a=r!=null&&typeof r=="object"&&r.success===!0;if(e==="get_report"){const f=a?r.report:void 0;return m.jsxs("div",{children:[m.jsx("span",{className:"text-red-400/80 font-semibold text-sm",children:"report"}),f?m.jsxs("div",{className:"mt-1.5 space-y-2",children:[m.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[Bm(f.severity),f.cvss!=null&&m.jsxs("span",{className:"text-[#888] text-[13px]",children:["CVSS ",f.cvss]}),f.id&&m.jsx("span",{className:"text-[#555] font-mono text-[13px]",children:f.id}),f.cve&&m.jsx("span",{className:"text-[#888] font-mono text-[13px]",children:f.cve}),f.cwe&&m.jsx("span",{className:"text-[#888] font-mono text-[13px]",children:f.cwe}),(f.agent_name||f.by_you)&&m.jsx("span",{className:"text-[#666] text-[13px]",children:f.by_you?"you":f.agent_name})]}),f.title&&m.jsx("div",{className:"text-[15px] text-white/80 font-semibold",children:f.title}),(f.target||f.endpoint)&&m.jsxs("div",{className:"text-[13px] text-[#888] font-mono",children:[f.target,f.endpoint?` ${f.method??""} ${f.endpoint}`:""]}),f.description&&m.jsx(qt,{text:f.description,maxLines:20})]}):m.jsx("div",{className:"mt-1 text-[#555] text-xs",children:r&&typeof r=="object"&&r.error||"Report not found"})]})}const s=a?r.reports:null,o=Array.isArray(s)?s:[],c=a&&typeof r.total_count=="number"?r.total_count:o.length,d=a&&r.severity_counts&&typeof r.severity_counts=="object"?r.severity_counts:{},h=Object.entries(d);return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[m.jsx("span",{className:"text-red-400/80 font-semibold text-sm",children:"reports"}),m.jsxs("span",{className:"text-[#555] text-[13px]",children:["(",c,")"]}),h.map(([f,p])=>m.jsxs("span",{className:"text-[13px]",children:[Bm(f),m.jsx("span",{className:"text-[#888] ml-0.5",children:p})]},f))]}),o.length>0?m.jsx("div",{className:"mt-1.5 space-y-1",children:o.map((f,p)=>m.jsxs("div",{className:"text-[13px]",children:[m.jsx("span",{className:"text-[#555] mr-1",children:"-"}),Bm(f.severity),f.id&&m.jsx("span",{className:"text-[#555] font-mono ml-1.5",children:f.id}),m.jsx("span",{className:"text-[#999] ml-1.5",children:f.title??"(untitled)"}),z7(f),(f.target||f.endpoint)&&m.jsxs("div",{className:"ml-3 text-[#666] font-mono text-xs",children:[f.target,f.endpoint?` ${f.method??""} ${f.endpoint}`:""]}),f.description_preview&&m.jsx("div",{className:"ml-3",children:m.jsx(da,{text:f.description_preview})})]},f.id??p))}):m.jsx("div",{className:"mt-1 text-[#555] text-xs",children:"No reports filed yet"})]})}const p2=200,g2={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 vg(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 _p(e,t=150){return Xr(e.replace(/\n/g," ").replace(/\r/g,"").replace(/\t/g," "),t)}function wp(e,t){const r=e.split(`
-`),a=r.slice(0,t).map(s=>Xr(s,p2-5)).join(`
+`):[],b=p.length+g.length,y=b>gu,_=y?Math.round(gu*(p.length/b)):p.length,N=y?gu-_:g.length;return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-baseline gap-2",children:[m.jsx("span",{className:"text-sky-400/80 font-semibold text-sm shrink-0",children:d}),h&&m.jsx("span",{className:"text-[#888] font-mono text-[13px] break-all",children:h})]}),f&&m.jsx("div",{className:"text-purple-400/60 font-mono text-[13px] break-all mt-0.5",children:f}),(s||o)&&m.jsxs("div",{className:"font-mono text-[13px] leading-relaxed mt-1.5",children:[p.slice(0,_).map((S,w)=>m.jsxs("div",{className:"text-red-400/60",children:[m.jsx("span",{className:"select-none text-red-400/30 mr-1",children:"-"}),S]},`o${w}`)),g.slice(0,N).map((S,w)=>m.jsxs("div",{className:"text-emerald-400/60",children:[m.jsx("span",{className:"select-none text-emerald-400/30 mr-1",children:"+"}),S]},`n${w}`)),y&&m.jsxs("div",{className:"text-[#444] mt-0.5",children:["... ",b-gu," more lines"]})]})]})}const xu=30,_7="*** Begin Patch",w7="*** End Patch",d_="*** Add File: ",f_="*** Update File: ",h_="*** Delete File: ",E7={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 S7(e){const t=[];let r=null;const a=()=>{r&&t.push(r),r=null};for(const s of e.split(`
+`))if(!(s===_7||s===w7))if(s.startsWith(d_))a(),r={kind:"add",path:s.slice(d_.length).trim(),oldLines:[],newLines:[]};else if(s.startsWith(f_))a(),r={kind:"update",path:s.slice(f_.length).trim(),oldLines:[],newLines:[]};else if(s.startsWith(h_))a(),r={kind:"delete",path:s.slice(h_.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 k7({op:e}){const t=E7[e.kind]??"file",r=e.oldLines.length+e.newLines.length,a=r>xu,s=a&&r>0?Math.round(xu*(e.oldLines.length/r)):e.oldLines.length,o=a?xu-s:e.newLines.length;return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-baseline gap-2",children:[m.jsx("span",{className:"text-sky-400/80 font-semibold text-sm shrink-0",children:t}),e.path&&m.jsx("span",{className:"text-[#888] font-mono text-[13px] break-all",children:yg(e.path)})]}),(e.oldLines.length>0||e.newLines.length>0)&&m.jsxs("div",{className:"font-mono text-[13px] leading-relaxed mt-1.5",children:[e.oldLines.slice(0,s).map((c,d)=>m.jsxs("div",{className:"text-red-400/60",children:[m.jsx("span",{className:"select-none text-red-400/30 mr-1",children:"-"}),c]},`o${d}`)),e.newLines.slice(0,o).map((c,d)=>m.jsxs("div",{className:"text-emerald-400/60",children:[m.jsx("span",{className:"select-none text-emerald-400/30 mr-1",children:"+"}),c]},`n${d}`)),a&&m.jsxs("div",{className:"text-[#444] mt-0.5",children:["... ",r-xu," more lines"]})]})]})}function C7({args:e,result:t,status:r}){const a=S7(N7(e));return a.length===0?m.jsxs("div",{children:[m.jsx("span",{className:"text-sky-400/80 font-semibold text-sm",children:"patch"}),r==="failed"&&typeof t=="string"&&t.trim()&&m.jsx("div",{className:"text-red-400/70 text-[13px] mt-1",children:t.trim()})]}):m.jsxs("div",{className:"space-y-2",children:[a.map((s,o)=>m.jsx(k7,{op:s},o)),r==="failed"&&typeof t=="string"&&t.trim()&&m.jsx("div",{className:"text-red-400/70 text-[13px]",children:t.trim()})]})}const T7=/data:image\/(png|jpe?g|gif|webp);base64,([A-Za-z0-9+/]+={0,2})/;function A7(e){let t=null;if(typeof e=="string")t=e;else if(e&&typeof e=="object"){const a=e;typeof a.image_url=="string"?t=a.image_url:typeof a.url=="string"&&(t=a.url)}if(!t)return null;const r=T7.exec(t);return!r||r[2].length<100||r[2].length%4!==0?null:`data:image/${r[1]};base64,${r[2]}`}function M7({args:e,result:t}){const r=(e.path??"").trim(),a=A7(t);let s=null;if(!a&&typeof t=="string"){const o=t.trim();o&&!o.toLowerCase().startsWith("data:image/")&&!o.startsWith("{")&&(s=o)}return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-baseline gap-2",children:[m.jsx("span",{className:"text-sky-400/80 font-semibold text-sm shrink-0",children:"view image"}),r&&m.jsx("span",{className:"text-[#888] font-mono text-[13px] break-all",children:yg(r)})]}),a&&m.jsx("img",{src:a,alt:r||"Tool image output",className:"mt-1.5 max-w-full max-h-96 rounded-lg border border-white/[0.06] object-contain"}),s&&m.jsx("div",{className:"text-red-400/70 text-[13px] mt-1",children:s})]})}const O7={critical:"text-red-400",high:"text-orange-400",medium:"text-yellow-400",low:"text-blue-400",info:"text-cyan-400"},R7={high:"text-emerald-400",medium:"text-yellow-400",low:"text-orange-400"};function j7({args:e,result:t}){const r=e.title??"",a=e.description??"",s=e.impact??"",o=e.target??"",c=e.endpoint??"",d=e.method??"",h=e.technical_analysis??"",f=e.poc_description??"",{language:p,code:g}=NE(e.poc_script_code??""),b=e.remediation_steps??"",y=e.cve??"",_=e.cwe??"",N=e.counterevidence??"",S=(e.confidence??"").toLowerCase(),w=e.confidence_rationale??"",C=e.severity_change_conditions??"",E=e.fix_verification??"",A=t,B=(A&&typeof A=="object"?A.severity:null)??e.severity??"medium",R=String(B).toLowerCase(),H=(A&&typeof A=="object"?A.cvss_score:null)??e.cvss??null,z=O7[R]??"text-yellow-400";return m.jsxs("div",{className:"space-y-3",children:[m.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[m.jsx("span",{className:`font-semibold text-sm ${z}`,children:R.toUpperCase()}),H!=null&&m.jsxs("span",{className:"text-[#888] text-[13px]",children:["CVSS ",H]}),y&&m.jsx("span",{className:"text-[#888] font-mono text-[13px]",children:y}),_&&m.jsx("span",{className:"text-[#888] font-mono text-[13px]",children:_}),S&&m.jsxs("span",{className:`text-[13px] ${R7[S]??"text-[#888]"}`,children:[S," confidence"]})]}),r&&m.jsx("div",{className:"text-[15px] text-white/80 font-semibold",children:r}),(o||c)&&m.jsxs("div",{className:"text-[13px] text-[#888] font-mono",children:[o,c?` ${d} ${c}`:""]}),a&&m.jsx(qt,{text:a,maxLines:20}),s&&m.jsxs("div",{children:[m.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Impact"}),m.jsx("div",{className:"mt-1",children:m.jsx(qt,{text:s,maxLines:15})})]}),h&&m.jsxs("div",{children:[m.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Technical Analysis"}),m.jsx("div",{className:"mt-1",children:m.jsx(qt,{text:h,maxLines:20})})]}),w&&m.jsx("div",{className:"text-[#777] text-xs leading-snug",children:w}),N&&m.jsxs("div",{children:[m.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Counterevidence"}),m.jsx("div",{className:"mt-1",children:m.jsx(qt,{text:N,maxLines:12})})]}),C&&m.jsxs("div",{children:[m.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Severity would change if"}),m.jsx("div",{className:"mt-1",children:m.jsx(qt,{text:C,maxLines:10})})]}),(f||g)&&m.jsxs("div",{children:[m.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Proof of Concept"}),f&&m.jsx("div",{className:"mt-1",children:m.jsx(da,{text:f})}),g&&m.jsx(EE,{className:p?`language-${p}`:void 0,children:g})]}),b&&m.jsxs("div",{children:[m.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Remediation"}),m.jsx("div",{className:"mt-1",children:m.jsx(qt,{text:b,maxLines:15})})]}),E&&m.jsxs("div",{children:[m.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Fix verification"}),m.jsx("div",{className:"mt-1",children:m.jsx(qt,{text:E,maxLines:12})})]})]})}const D7={critical:"text-red-400",high:"text-orange-400",medium:"text-yellow-400",low:"text-blue-400",info:"text-cyan-400"};function L7({args:e,result:t,status:r}){const a=e.report_id??"",s=e.delete_reason??"",o=t&&typeof t=="object"?t:null,c=(o==null?void 0:o.success)===!0,d=typeof(o==null?void 0:o.error)=="string"?o.error:"",h=typeof(o==null?void 0:o.title)=="string"?o.title:"",f=typeof(o==null?void 0:o.severity)=="string"?o.severity.toLowerCase():"",p=o!=null?!c:r==="failed"||r==="error",g=o==null&&!p,b=g?"withdrawing report…":p?"report not withdrawn":"report withdrawn",y=g?"text-[#888]":p?"text-red-400/80":"text-yellow-400/80";return m.jsxs("div",{className:"space-y-2",children:[m.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[m.jsx("span",{className:`font-semibold text-sm ${y}`,"aria-live":"polite",children:b}),a&&m.jsx("span",{className:"text-[#555] font-mono text-[13px]",children:a}),f&&m.jsx("span",{className:`text-[13px] line-through ${D7[f]??"text-[#888]"}`,children:f.toUpperCase()})]}),h&&m.jsx("div",{className:"text-[15px] text-white/60 line-through",children:h}),s&&m.jsxs("div",{children:[m.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Why"}),m.jsx("div",{className:"mt-1",children:m.jsx(qt,{text:s,maxLines:10})})]}),d&&m.jsx("div",{className:"text-red-400/80 text-[13px]",children:d})]})}const z7={critical:"text-red-400",high:"text-orange-400",medium:"text-yellow-400",low:"text-blue-400",info:"text-cyan-400",none:"text-[#888]"};function I7(e){if(!e.agent_name&&!e.by_you)return null;const t=e.by_you?"you":e.agent_name;return m.jsxs("span",{className:"text-[#666] text-xs ml-1.5",children:["(",t,")"]})}function Bm(e){const t=String(e??"").toLowerCase(),r=z7[t]??"text-yellow-400";return m.jsx("span",{className:`font-semibold text-[13px] ${r}`,children:t.toUpperCase()||"—"})}function m_({toolName:e,result:t}){const r=t,a=r!=null&&typeof r=="object"&&r.success===!0;if(e==="get_report"){const f=a?r.report:void 0;return m.jsxs("div",{children:[m.jsx("span",{className:"text-red-400/80 font-semibold text-sm",children:"report"}),f?m.jsxs("div",{className:"mt-1.5 space-y-2",children:[m.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[Bm(f.severity),f.cvss!=null&&m.jsxs("span",{className:"text-[#888] text-[13px]",children:["CVSS ",f.cvss]}),f.id&&m.jsx("span",{className:"text-[#555] font-mono text-[13px]",children:f.id}),f.cve&&m.jsx("span",{className:"text-[#888] font-mono text-[13px]",children:f.cve}),f.cwe&&m.jsx("span",{className:"text-[#888] font-mono text-[13px]",children:f.cwe}),(f.agent_name||f.by_you)&&m.jsx("span",{className:"text-[#666] text-[13px]",children:f.by_you?"you":f.agent_name})]}),f.title&&m.jsx("div",{className:"text-[15px] text-white/80 font-semibold",children:f.title}),(f.target||f.endpoint)&&m.jsxs("div",{className:"text-[13px] text-[#888] font-mono",children:[f.target,f.endpoint?` ${f.method??""} ${f.endpoint}`:""]}),f.description&&m.jsx(qt,{text:f.description,maxLines:20})]}):m.jsx("div",{className:"mt-1 text-[#555] text-xs",children:r&&typeof r=="object"&&r.error||"Report not found"})]})}const s=a?r.reports:null,o=Array.isArray(s)?s:[],c=a&&typeof r.total_count=="number"?r.total_count:o.length,d=a&&r.severity_counts&&typeof r.severity_counts=="object"?r.severity_counts:{},h=Object.entries(d);return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[m.jsx("span",{className:"text-red-400/80 font-semibold text-sm",children:"reports"}),m.jsxs("span",{className:"text-[#555] text-[13px]",children:["(",c,")"]}),h.map(([f,p])=>m.jsxs("span",{className:"text-[13px]",children:[Bm(f),m.jsx("span",{className:"text-[#888] ml-0.5",children:p})]},f))]}),o.length>0?m.jsx("div",{className:"mt-1.5 space-y-1",children:o.map((f,p)=>m.jsxs("div",{className:"text-[13px]",children:[m.jsx("span",{className:"text-[#555] mr-1",children:"-"}),Bm(f.severity),f.id&&m.jsx("span",{className:"text-[#555] font-mono ml-1.5",children:f.id}),m.jsx("span",{className:"text-[#999] ml-1.5",children:f.title??"(untitled)"}),I7(f),(f.target||f.endpoint)&&m.jsxs("div",{className:"ml-3 text-[#666] font-mono text-xs",children:[f.target,f.endpoint?` ${f.method??""} ${f.endpoint}`:""]}),f.description_preview&&m.jsx("div",{className:"ml-3",children:m.jsx(da,{text:f.description_preview})})]},f.id??p))}):m.jsx("div",{className:"mt-1 text-[#555] text-xs",children:"No reports filed yet"})]})}const g2=200,x2={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 vg(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 _p(e,t=150){return Xr(e.replace(/\n/g," ").replace(/\r/g,"").replace(/\t/g," "),t)}function wp(e,t){const r=e.split(`
+`),a=r.slice(0,t).map(s=>Xr(s,g2-5)).join(`
`);return r.length>t?a+`
-...`:a}function I7({args:e,result:t}){const r=e.httpql_filter??"",a=t,s=a?a.requests:null,o=Array.isArray(s)?s:[];return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"listing requests"}),r&&m.jsx("span",{className:"text-[#888] text-[13px]",children:Xr(r,150)})]}),o.length>0&&m.jsxs("div",{className:"mt-1.5 font-mono text-[13px] space-y-0.5",children:[o.slice(0,20).map((c,d)=>{const h=(c.method??"GET").toUpperCase(),f=c.host??"",p=c.path??"",g=c.response,b=(g==null?void 0:g.statusCode)??null;return m.jsxs("div",{className:"flex gap-2",children:[m.jsx("span",{className:`w-10 shrink-0 font-bold ${g2[h]??"text-[#888]"}`,children:h}),m.jsx("span",{className:"text-[#777] truncate",children:Xr(f+p,180)}),b!=null&&m.jsx("span",{className:`ml-auto shrink-0 ${vg(b)}`,children:b})]},d)}),o.length>20&&m.jsxs("div",{className:"text-[#555]",children:["... +",o.length-20," more"]})]})]})}function B7({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:[],h=o?o.content??null:null,f=o?!!o.has_more:!1;return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsxs("span",{className:"text-purple-400/80 font-semibold text-sm",children:[s?"searching":"viewing"," ",a]}),r!=null&&m.jsxs("span",{className:"text-[#888] text-[13px]",children:["#",r]}),s&&m.jsxs("span",{className:"text-[#666] font-mono text-[13px]",children:["/",Xr(s,100),"/"]})]}),d.length>0&&m.jsxs("div",{className:"mt-1.5 font-mono text-[13px] space-y-1",children:[d.slice(0,5).map((p,g)=>{const b=(p.before??"").replace(/\n/g," ").replace(/\r/g,"").slice(-100),y=(p.after??"").replace(/\n/g," ").replace(/\r/g,"").slice(0,100);return m.jsxs("div",{children:[b&&m.jsxs("span",{className:"text-[#555]",children:["...",b]}),m.jsx("span",{className:"text-amber-400/80 font-bold",children:p.match}),y&&m.jsxs("span",{className:"text-[#555]",children:[y,"..."]})]},g)}),d.length>5&&m.jsxs("div",{className:"text-[#555]",children:["... +",d.length-5," more matches"]})]}),h&&!d.length&&(()=>{const p=h.split(`
-`),g=p.slice(0,15).map(y=>Xr(y,p2)).join(`
+...`:a}function B7({args:e,result:t}){const r=e.httpql_filter??"",a=t,s=a?a.requests:null,o=Array.isArray(s)?s:[];return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"listing requests"}),r&&m.jsx("span",{className:"text-[#888] text-[13px]",children:Xr(r,150)})]}),o.length>0&&m.jsxs("div",{className:"mt-1.5 font-mono text-[13px] space-y-0.5",children:[o.slice(0,20).map((c,d)=>{const h=(c.method??"GET").toUpperCase(),f=c.host??"",p=c.path??"",g=c.response,b=(g==null?void 0:g.statusCode)??null;return m.jsxs("div",{className:"flex gap-2",children:[m.jsx("span",{className:`w-10 shrink-0 font-bold ${x2[h]??"text-[#888]"}`,children:h}),m.jsx("span",{className:"text-[#777] truncate",children:Xr(f+p,180)}),b!=null&&m.jsx("span",{className:`ml-auto shrink-0 ${vg(b)}`,children:b})]},d)}),o.length>20&&m.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:[],h=o?o.content??null:null,f=o?!!o.has_more:!1;return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsxs("span",{className:"text-purple-400/80 font-semibold text-sm",children:[s?"searching":"viewing"," ",a]}),r!=null&&m.jsxs("span",{className:"text-[#888] text-[13px]",children:["#",r]}),s&&m.jsxs("span",{className:"text-[#666] font-mono text-[13px]",children:["/",Xr(s,100),"/"]})]}),d.length>0&&m.jsxs("div",{className:"mt-1.5 font-mono text-[13px] space-y-1",children:[d.slice(0,5).map((p,g)=>{const b=(p.before??"").replace(/\n/g," ").replace(/\r/g,"").slice(-100),y=(p.after??"").replace(/\n/g," ").replace(/\r/g,"").slice(0,100);return m.jsxs("div",{children:[b&&m.jsxs("span",{className:"text-[#555]",children:["...",b]}),m.jsx("span",{className:"text-amber-400/80 font-bold",children:p.match}),y&&m.jsxs("span",{className:"text-[#555]",children:[y,"..."]})]},g)}),d.length>5&&m.jsxs("div",{className:"text-[#555]",children:["... +",d.length-5," more matches"]})]}),h&&!d.length&&(()=>{const p=h.split(`
+`),g=p.slice(0,15).map(y=>Xr(y,g2)).join(`
`),b=f||p.length>15;return m.jsx(Ei,{className:"text-[#666]",children:g+(b?`
-... more content available`:"")})})()]})}function U7({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,h=d?d.error??null:null,f=d?d.status_code??null:null,p=d?d.response_time_ms??null:null,g=d?d.body:null,b=typeof g=="string"?g:null;return m.jsxs("div",{children:[m.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"request"}),m.jsxs("div",{className:"mt-1.5 font-mono text-[13px] space-y-0.5",children:[m.jsxs("div",{children:[m.jsx("span",{className:"text-[#555] select-none mr-1",children:">>"}),m.jsx("span",{className:`font-bold ${g2[r]??"text-[#888]"}`,children:r}),m.jsx("span",{className:"text-[#888] ml-1 break-all",children:Xr(a,180)})]}),s&&typeof s=="object"&&Object.entries(s).slice(0,5).map(([y,_])=>m.jsxs("div",{className:"text-[#555] pl-5",children:[y,": ",_p(String(_),150)]},y))]}),c&&m.jsx(Ei,{className:"text-[#888]",children:wp(c,4)}),h&&m.jsx("div",{className:"text-red-400/70 text-[13px] mt-1.5",children:_p(h,150)}),f!=null&&m.jsxs("div",{className:"font-mono text-[13px] mt-1.5",children:[m.jsx("span",{className:"text-[#555] select-none mr-1",children:"<<"}),m.jsx("span",{className:`font-bold ${vg(f)}`,children:f}),p!=null&&m.jsxs("span",{className:"text-[#555] ml-2",children:[p,"ms"]})]}),b&&m.jsx(Ei,{className:"text-[#666]",children:wp(b,6)})]})}function H7({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,h=typeof d=="string"?d:null;return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"repeating request"}),r!=null&&m.jsxs("span",{className:"text-[#888] text-[13px]",children:["#",r]})]}),a&&typeof a=="object"&&Object.keys(a).length>0&&m.jsx("div",{className:"mt-1.5 font-mono text-[13px] space-y-0.5",children:Object.entries(a).slice(0,5).map(([f,p])=>m.jsxs("div",{children:[m.jsxs("span",{className:"text-orange-400/60",children:[f,":"]})," ",m.jsx("span",{className:"text-[#777]",children:_p(typeof p=="string"?p:JSON.stringify(p),150)})]},f))}),o!=null&&m.jsxs("div",{className:"font-mono text-[13px] mt-1.5",children:[m.jsx("span",{className:"text-[#555] select-none mr-1",children:"<<"}),m.jsx("span",{className:`font-bold ${vg(o)}`,children:o}),c!=null&&m.jsxs("span",{className:"text-[#555] ml-2",children:[c,"ms"]})]}),h&&m.jsx(Ei,{className:"text-[#666]",children:wp(h,5)})]})}const $7={get:"getting",list:"listing",create:"creating",update:"updating",delete:"deleting"};function q7({args:e}){const t=e.action??"",r=e.scope_name??"",a=$7[t]??(t||"managing");return m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsxs("span",{className:"text-purple-400/80 font-semibold text-sm",children:[a," proxy scope"]}),r&&m.jsx("span",{className:"text-[#888] text-[13px]",children:Xr(r,50)})]})}function P7({args:e}){const t=e.parent_id;return m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"listing sitemap"}),t&&m.jsxs("span",{className:"text-[#888] text-[13px]",children:["under #",Xr(String(t),20)]})]})}function F7({args:e}){const t=e.entry_id;return m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"viewing sitemap entry"}),t&&m.jsxs("span",{className:"text-[#888] text-[13px]",children:["#",Xr(String(t),20)]})]})}function G7(e){switch(e.toolName){case"list_requests":return m.jsx(I7,{...e});case"view_request":return m.jsx(B7,{...e});case"send_request":return m.jsx(U7,{...e});case"repeat_request":return m.jsx(H7,{...e});case"scope_rules":return m.jsx(q7,{...e});case"list_sitemap":return m.jsx(P7,{...e});case"view_sitemap_entry":return m.jsx(F7,{...e});default:return m.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:e.toolName.replace(/_/g," ")})}}function V7({args:e}){const t=e.thought??e.content??"";return t?m.jsxs("div",{children:[m.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"Agent is thinking"}),m.jsx("div",{className:"mt-1.5 italic text-[#888]",children:m.jsx(qt,{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 m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"spawning"}),r&&m.jsx("span",{className:"text-cyan-400 font-semibold text-sm",children:r})]}),a&&m.jsx("div",{className:"mt-1.5",children:m.jsx(qt,{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 m.jsxs("div",{children:[m.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&&m.jsx("div",{className:"mt-1.5",children:m.jsx(qt,{text:r,maxLines:20})}),o&&o.length>0&&m.jsx("div",{className:"mt-1.5 space-y-0.5",children:o.map((c,d)=>m.jsxs("div",{className:"text-[13px] text-[#888]",children:[m.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 m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"message"}),a&&m.jsxs("span",{className:"text-[#888] text-[13px]",children:["to ",a.slice(0,16)]})]}),r&&m.jsx("div",{className:"mt-1.5",children:m.jsx(qt,{text:r,maxLines:20})})]})}if(e==="wait_for_agents"){const r=t.reason??"";return m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"waiting"}),r&&m.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 m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[m.jsx("span",{className:"text-red-400/80 font-semibold text-sm",children:"stopping"}),r&&m.jsx("span",{className:"text-[#888] text-[13px]",children:r.slice(0,16)}),a&&m.jsx("span",{className:"text-[#555] text-[13px] italic",children:"+ descendants"})]}),s&&m.jsx("div",{className:"mt-1.5 text-[#888] text-[13px]",children:s})]})}return e==="view_agent_graph"?m.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"viewing agents graph"}):m.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:e.replace(/_/g," ")})}function X7({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 m.jsxs("div",{children:[m.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"Searching the web"}),r&&m.jsx("div",{className:"text-[#888] text-[13px] mt-0.5",children:r}),o&&m.jsx("div",{className:"text-red-400/70 text-[13px] mt-1.5",children:o}),s&&m.jsx("div",{className:"mt-2",children:m.jsx(qt,{text:s,maxLines:15})})]})}const K7=50,p_=200,g_=25,x_=24,Z7=/\x1b(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~]|\][^\x07]*\x07)/g,Q7=/\.\.\. \[(stdout|stderr|result|output|error) truncated at \d+k? chars\]/g;function W7(e){return e.replace(Z7,"")}function Um(e){const t=W7(e);return t.length>p_?t.slice(0,p_-3)+"...":t}function J7(e){return e.replace(Q7,"").trim()}function eU(e){const t=e.split(`
-`);if(t.length<=K7)return t.map(Um).join(`
+... more content available`:"")})})()]})}function H7({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,h=d?d.error??null:null,f=d?d.status_code??null:null,p=d?d.response_time_ms??null:null,g=d?d.body:null,b=typeof g=="string"?g:null;return m.jsxs("div",{children:[m.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"request"}),m.jsxs("div",{className:"mt-1.5 font-mono text-[13px] space-y-0.5",children:[m.jsxs("div",{children:[m.jsx("span",{className:"text-[#555] select-none mr-1",children:">>"}),m.jsx("span",{className:`font-bold ${x2[r]??"text-[#888]"}`,children:r}),m.jsx("span",{className:"text-[#888] ml-1 break-all",children:Xr(a,180)})]}),s&&typeof s=="object"&&Object.entries(s).slice(0,5).map(([y,_])=>m.jsxs("div",{className:"text-[#555] pl-5",children:[y,": ",_p(String(_),150)]},y))]}),c&&m.jsx(Ei,{className:"text-[#888]",children:wp(c,4)}),h&&m.jsx("div",{className:"text-red-400/70 text-[13px] mt-1.5",children:_p(h,150)}),f!=null&&m.jsxs("div",{className:"font-mono text-[13px] mt-1.5",children:[m.jsx("span",{className:"text-[#555] select-none mr-1",children:"<<"}),m.jsx("span",{className:`font-bold ${vg(f)}`,children:f}),p!=null&&m.jsxs("span",{className:"text-[#555] ml-2",children:[p,"ms"]})]}),b&&m.jsx(Ei,{className:"text-[#666]",children:wp(b,6)})]})}function $7({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,h=typeof d=="string"?d:null;return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"repeating request"}),r!=null&&m.jsxs("span",{className:"text-[#888] text-[13px]",children:["#",r]})]}),a&&typeof a=="object"&&Object.keys(a).length>0&&m.jsx("div",{className:"mt-1.5 font-mono text-[13px] space-y-0.5",children:Object.entries(a).slice(0,5).map(([f,p])=>m.jsxs("div",{children:[m.jsxs("span",{className:"text-orange-400/60",children:[f,":"]})," ",m.jsx("span",{className:"text-[#777]",children:_p(typeof p=="string"?p:JSON.stringify(p),150)})]},f))}),o!=null&&m.jsxs("div",{className:"font-mono text-[13px] mt-1.5",children:[m.jsx("span",{className:"text-[#555] select-none mr-1",children:"<<"}),m.jsx("span",{className:`font-bold ${vg(o)}`,children:o}),c!=null&&m.jsxs("span",{className:"text-[#555] ml-2",children:[c,"ms"]})]}),h&&m.jsx(Ei,{className:"text-[#666]",children:wp(h,5)})]})}const q7={get:"getting",list:"listing",create:"creating",update:"updating",delete:"deleting"};function P7({args:e}){const t=e.action??"",r=e.scope_name??"",a=q7[t]??(t||"managing");return m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsxs("span",{className:"text-purple-400/80 font-semibold text-sm",children:[a," proxy scope"]}),r&&m.jsx("span",{className:"text-[#888] text-[13px]",children:Xr(r,50)})]})}function F7({args:e}){const t=e.parent_id;return m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"listing sitemap"}),t&&m.jsxs("span",{className:"text-[#888] text-[13px]",children:["under #",Xr(String(t),20)]})]})}function G7({args:e}){const t=e.entry_id;return m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"viewing sitemap entry"}),t&&m.jsxs("span",{className:"text-[#888] text-[13px]",children:["#",Xr(String(t),20)]})]})}function V7(e){switch(e.toolName){case"list_requests":return m.jsx(B7,{...e});case"view_request":return m.jsx(U7,{...e});case"send_request":return m.jsx(H7,{...e});case"repeat_request":return m.jsx($7,{...e});case"scope_rules":return m.jsx(P7,{...e});case"list_sitemap":return m.jsx(F7,{...e});case"view_sitemap_entry":return m.jsx(G7,{...e});default:return m.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:e.toolName.replace(/_/g," ")})}}function Y7({args:e}){const t=e.thought??e.content??"";return t?m.jsxs("div",{children:[m.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"Agent is thinking"}),m.jsx("div",{className:"mt-1.5 italic text-[#888]",children:m.jsx(qt,{text:t,maxLines:20})})]}):null}function X7({toolName:e,args:t}){if(e==="create_agent"){const r=t.name??t.agent_name??"",a=t.task??"";return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"spawning"}),r&&m.jsx("span",{className:"text-cyan-400 font-semibold text-sm",children:r})]}),a&&m.jsx("div",{className:"mt-1.5",children:m.jsx(qt,{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 m.jsxs("div",{children:[m.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&&m.jsx("div",{className:"mt-1.5",children:m.jsx(qt,{text:r,maxLines:20})}),o&&o.length>0&&m.jsx("div",{className:"mt-1.5 space-y-0.5",children:o.map((c,d)=>m.jsxs("div",{className:"text-[13px] text-[#888]",children:[m.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 m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"message"}),a&&m.jsxs("span",{className:"text-[#888] text-[13px]",children:["to ",a.slice(0,16)]})]}),r&&m.jsx("div",{className:"mt-1.5",children:m.jsx(qt,{text:r,maxLines:20})})]})}if(e==="wait_for_agents"){const r=t.reason??"";return m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"waiting"}),r&&m.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 m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[m.jsx("span",{className:"text-red-400/80 font-semibold text-sm",children:"stopping"}),r&&m.jsx("span",{className:"text-[#888] text-[13px]",children:r.slice(0,16)}),a&&m.jsx("span",{className:"text-[#555] text-[13px] italic",children:"+ descendants"})]}),s&&m.jsx("div",{className:"mt-1.5 text-[#888] text-[13px]",children:s})]})}return e==="view_agent_graph"?m.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"viewing agents graph"}):m.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:e.replace(/_/g," ")})}function K7({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 m.jsxs("div",{children:[m.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"Searching the web"}),r&&m.jsx("div",{className:"text-[#888] text-[13px] mt-0.5",children:r}),o&&m.jsx("div",{className:"text-red-400/70 text-[13px] mt-1.5",children:o}),s&&m.jsx("div",{className:"mt-2",children:m.jsx(qt,{text:s,maxLines:15})})]})}const Z7=50,p_=200,g_=25,x_=24,Q7=/\x1b(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~]|\][^\x07]*\x07)/g,W7=/\.\.\. \[(stdout|stderr|result|output|error) truncated at \d+k? chars\]/g;function J7(e){return e.replace(Q7,"")}function Um(e){const t=J7(e);return t.length>p_?t.slice(0,p_-3)+"...":t}function eU(e){return e.replace(W7,"").trim()}function tU(e){const t=e.split(`
+`);if(t.length<=Z7)return t.map(Um).join(`
`);const r=t.length-g_-x_;return[...t.slice(0,g_).map(Um),`... ${r} lines truncated ...`,...t.slice(-x_).map(Um)].join(`
-`)}function tU({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?eU(J7(o)):null;return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-yellow-400/80 font-semibold text-sm",children:"Python"}),c&&m.jsx("span",{className:"text-[#888] text-[13px]",children:c})]}),a&&m.jsx(bg,{code:a,language:"python",collapsible:!0}),d&&m.jsx(Ei,{className:"text-[#666]",children:d})]})}function nU({args:e}){const t=e.targets,a=(Array.isArray(t)?t:[]).map(s=>typeof s=="object"&&s?s.original??null:null).filter(Boolean);return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:"Starting penetration test"}),a.length===1&&m.jsxs("span",{className:"text-[#888] text-[13px]",children:["on ",a[0]]})]}),a.length>1&&m.jsx("div",{className:"mt-1.5 space-y-0.5",children:a.map((s,o)=>m.jsxs("div",{className:"text-[13px] text-[#888]",children:[m.jsx("span",{className:"text-[#555] mr-1",children:"•"}),s]},o))})]})}function rU({args:e}){const t=e.name??"Unknown Agent",r=e.task??"";return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-[#888] text-[13px]",children:"subagent"}),m.jsx("span",{className:"text-purple-400 font-semibold text-sm",children:t})]}),r&&m.jsx("div",{className:"mt-1.5",children:m.jsx(qt,{text:r,maxLines:15})})]})}function iU(e){return e.toolName==="subagent_start_info"?m.jsx(rU,{...e}):m.jsx(nU,{...e})}function aU({args:e}){const t=e.executive_summary??"",r=e.methodology??"",a=e.technical_analysis??"",s=e.recommendations??"";return m.jsxs("div",{className:"space-y-3",children:[m.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:"Penetration test completed"}),t&&m.jsxs("div",{children:[m.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Executive Summary"}),m.jsx("div",{className:"mt-1",children:m.jsx(qt,{text:t,maxLines:25})})]}),r&&m.jsxs("div",{children:[m.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Methodology"}),m.jsx("div",{className:"mt-1",children:m.jsx(qt,{text:r,maxLines:25})})]}),a&&m.jsxs("div",{children:[m.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Technical Analysis"}),m.jsx("div",{className:"mt-1",children:m.jsx(qt,{text:a,maxLines:25})})]}),s&&m.jsxs("div",{children:[m.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Recommendations"}),m.jsx("div",{className:"mt-1",children:m.jsx(qt,{text:s,maxLines:25})})]}),!t&&!r&&!a&&!s&&m.jsx("div",{className:"text-[#555] text-xs",children:"Generating final report..."})]})}function sU({toolName:e,args:t,result:r}){if(e==="create_note"){const a=t.title??"",s=t.content??"",o=t.category??"general";return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note"}),m.jsxs("span",{className:"text-[#555] text-[13px]",children:["(",o,")"]})]}),a&&m.jsx("div",{className:"mt-1.5 text-[#999] text-[13px]",children:a}),s&&m.jsx("div",{className:"mt-1",children:m.jsx(da,{text:s})})]})}if(e==="delete_note")return m.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 m.jsxs("div",{children:[m.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note updated"}),a&&m.jsx("div",{className:"mt-1.5 text-[#999] text-[13px]",children:a}),s&&m.jsx("div",{className:"mt-1",children:m.jsx(da,{text:s})})]})}if(e==="get_note"){const a=r,s=a&&typeof a=="object"&&a.success?a.note:void 0;return m.jsxs("div",{children:[m.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note read"}),s&&m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"mt-1.5 text-[#999] text-[13px]",children:[s.title??"(untitled)",m.jsxs("span",{className:"text-[#555] ml-1",children:["(",s.category??"general",")"]}),(s.by_you||s.agent_name)&&m.jsxs("span",{className:"text-[#666] ml-1 text-xs",children:["by ",s.by_you?"you":s.agent_name]})]}),s.content&&m.jsx("div",{className:"mt-1",children:m.jsx(da,{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 m.jsxs("div",{children:[m.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"notes"}),s.length>0?m.jsx("div",{className:"mt-1.5 space-y-0.5",children:s.map((o,c)=>m.jsxs("div",{className:"text-[13px]",children:[m.jsx("span",{className:"text-[#555] mr-1",children:"-"}),m.jsx("span",{className:"text-[#999]",children:o.title??"(untitled)"}),m.jsxs("span",{className:"text-[#555] ml-1",children:["(",o.category??"general",")"]}),(o.by_you||o.agent_name)&&m.jsxs("span",{className:"text-[#666] ml-1 text-xs",children:["by ",o.by_you?"you":o.agent_name]}),o.content&&m.jsx("div",{className:"ml-3",children:m.jsx(da,{text:o.content})})]},c))}):m.jsx("div",{className:"mt-1 text-[#555] text-xs",children:"No notes"})]})}return m.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note"})}const lU={create_todo:{label:"Task added",Icon:Z_},list_todos:{label:"Plan",Icon:sC},update_todo:{label:"Task updated",Icon:sT},mark_todo_done:{label:"Task completed",Icon:P_},mark_todo_pending:{label:"Task reopened",Icon:pT},delete_todo:{label:"Task removed",Icon:MT}};function oU({status:e}){return e==="done"?m.jsx(P_,{className:"w-3.5 h-3.5 text-emerald-400/70 shrink-0"}):e==="in_progress"?m.jsx(bC,{className:"w-3.5 h-3.5 text-purple-400/70 shrink-0 animate-pulse"}):m.jsx(F_,{className:"w-3.5 h-3.5 text-[#444] shrink-0"})}function cU({todos:e,highlightId:t}){return m.jsx("div",{className:"space-y-0",children:e.map((r,a)=>{const s=r.status??"pending",o=t&&r.id===t;return m.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:[m.jsx("div",{className:"mt-[1px]",children:m.jsx(oU,{status:s})}),m.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 uU({toolName:e,args:t,result:r}){const a=lU[e]??{label:"Plan",Icon:fT},s=a.Icon,o=r;if(typeof o=="string"&&o.trim())return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(s,{className:"w-3.5 h-3.5 text-purple-400/60"}),m.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:a.label})]}),m.jsx("div",{className:"mt-1.5 text-[#888] text-[13px]",children:o.trim()})]});let c=[],d=null,h;if(o&&typeof o=="object"){if(d=o.error??null,o.success){const p=o.todos;c=Array.isArray(p)?p:[]}h=o.id??t.todo_id??void 0}const f=e!=="list_todos"?h:void 0;return c.length===0&&!d?m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(s,{className:"w-3.5 h-3.5 text-purple-400/60"}),m.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:a.label})]}):m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[m.jsx(s,{className:"w-3.5 h-3.5 text-purple-400/60"}),m.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:a.label})]}),d&&m.jsx("div",{className:"text-red-400/70 text-[13px] mb-2",children:d}),c.length>0&&m.jsx("div",{className:"rounded-lg border border-white/[0.06] bg-white/[0.015] px-3 py-2",children:m.jsx(cU,{todos:c,highlightId:f})})]})}function b_(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 x2({toolName:e,args:t,result:r}){const a=b_(t),s=b_(r);return m.jsxs("div",{children:[m.jsx("span",{className:"text-[#888] font-semibold text-sm",children:e.replace(/_/g," ")}),a&&m.jsx(Ei,{className:"text-[#777]",children:a}),s&&m.jsx(Ei,{className:"text-[#666]",children:s})]})}function dU({args:e}){const t=e.skills,r=(Array.isArray(t)?t:String(t??"").split(",")).map(a=>String(a).trim()).filter(Boolean);return m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:"Loading skill"}),r.length>0&&m.jsx("span",{className:"text-[#888] text-[13px]",children:r.join(", ")})]})}function fU({args:e}){const t=e.message??"";return t?m.jsxs("div",{children:[m.jsx(da,{text:t}),m.jsx("div",{className:"mt-1.5 text-[#888] text-[13px]",children:"waiting for your reply"})]}):null}const hU={reported:{label:"reported",color:"text-orange-400",Icon:Sp},no_issue_found:{label:"no issue found",color:"text-emerald-400",Icon:Nu},ruled_out:{label:"ruled out",color:"text-emerald-400/70",Icon:Nu},not_applicable:{label:"not applicable",color:"text-[#777]",Icon:wC},needs_follow_up:{label:"needs follow-up",color:"text-yellow-400",Icon:vC}},mU=["reported","needs_follow_up","no_issue_found","ruled_out","not_applicable"];function mo(e){const t=(e??"").trim().toLowerCase();return hU[t]??{label:t?t.replace(/_/g," "):"unrecorded",color:"text-[#777]",Icon:F_}}const pU={record_coverage:"Coverage recorded",update_coverage:"Coverage updated",list_coverage:"Coverage"};function xu({toolName:e}){return m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(G_,{className:"w-3.5 h-3.5 text-cyan-400/60"}),m.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:pU[e]??"Coverage"})]})}function gU({entry:e}){const{label:t,color:r,Icon:a}=mo(e.outcome),s=(e.previous_outcomes??[]).map(o=>mo(o).label).filter(Boolean);return m.jsxs("div",{className:"flex items-start gap-2.5 py-1.5",children:[m.jsx(a,{className:`w-3.5 h-3.5 shrink-0 mt-[2px] ${r}`}),m.jsxs("div",{className:"min-w-0",children:[m.jsxs("div",{className:"text-[13px] leading-snug",children:[m.jsx("span",{className:"text-[#bbb]",children:e.surface??"(unnamed surface)"}),e.risk_area&&m.jsxs("span",{className:"text-[#666]",children:[" · ",e.risk_area]})]}),m.jsxs("div",{className:"text-xs mt-0.5",children:[m.jsx("span",{className:r,children:t}),s.length>0&&m.jsxs("span",{className:"text-[#555]",children:[" (was ",s.join(" → "),")"]}),(e.by_you||e.agent_name)&&m.jsxs("span",{className:"text-[#555]",children:[" · ",e.by_you?"you":e.agent_name]})]}),e.evidence&&m.jsx("div",{className:"text-[#777] text-xs mt-1 leading-snug",children:e.evidence})]})]})}function xU({toolName:e,args:t,result:r}){const a=r;if(typeof a=="string"&&a.trim())return m.jsxs("div",{children:[m.jsx(xu,{toolName:e}),m.jsx("div",{className:"mt-1.5 text-[#888] text-[13px]",children:a.trim()})]});const s=a&&typeof a=="object"?a:null,o=t.surface??"",c=t.risk_area??"",d=t.evidence??"";if(s&&!s.success)return m.jsxs("div",{children:[m.jsx(xu,{toolName:e}),(o||c)&&m.jsxs("div",{className:"mt-1.5 text-[13px] text-[#bbb]",children:[o,c&&m.jsxs("span",{className:"text-[#666]",children:[" · ",c]})]}),m.jsx("div",{className:"mt-1 text-red-400/70 text-[13px]",children:s.error??"Coverage call failed"})]});if(e==="list_coverage"){const y=s==null?void 0:s.entries,_=Array.isArray(y)?y:[],N=(s==null?void 0:s.outcome_counts)??{},S=(s==null?void 0:s.total_count)??0;return m.jsxs("div",{children:[m.jsx(xu,{toolName:e}),Object.keys(N).length>0&&m.jsx("div",{className:"mt-2 flex items-center gap-3 flex-wrap",children:mU.filter(w=>N[w]).map(w=>{const{label:C,color:E}=mo(w);return m.jsxs("span",{className:`text-xs ${E}`,children:[C,": ",N[w]]},w)})}),_.length>0?m.jsx("div",{className:"mt-2 rounded-lg border border-white/[0.06] bg-white/[0.015] px-3 py-1 divide-y divide-white/[0.04]",children:_.map((w,C)=>m.jsx(gU,{entry:w},w.entry_id??C))}):m.jsx("div",{className:"mt-1.5 text-[#555] text-xs",children:S===0?"No surfaces recorded yet":"No surfaces match this filter"})]})}const h=(s==null?void 0:s.outcome)??"",f=(s==null?void 0:s.previous_outcome)??"",{label:p,color:g,Icon:b}=mo(h);return m.jsxs("div",{children:[m.jsx(xu,{toolName:e}),m.jsxs("div",{className:"mt-2 flex items-start gap-2.5",children:[m.jsx(b,{className:`w-3.5 h-3.5 shrink-0 mt-[2px] ${g}`}),m.jsxs("div",{className:"min-w-0",children:[m.jsxs("div",{className:"text-[13px] leading-snug text-[#bbb]",children:[o||(s!=null&&s.entry_id?`entry ${s.entry_id}`:"(unnamed surface)"),c&&m.jsxs("span",{className:"text-[#666]",children:[" · ",c]})]}),m.jsxs("div",{className:"text-xs mt-0.5",children:[f&&m.jsxs("span",{className:"text-[#666]",children:[mo(f).label," → "]}),m.jsx("span",{className:g,children:p})]}),d&&m.jsx("div",{className:"text-[#777] text-xs mt-1 leading-snug",children:d})]})]})]})}const bU={get_threat_model:{label:"Threat model",Icon:Vu},save_threat_model:{label:"Threat model saved",Icon:xT},amend_threat_model:{label:"Threat model amended",Icon:Z_}};function yU({toolName:e,args:t,result:r}){const a=bU[e]??{label:"Threat model",Icon:Vu},s=a.Icon,o=t.target??"",c=r,d=m.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[m.jsx(s,{className:"w-3.5 h-3.5 text-blue-400/60"}),m.jsx("span",{className:"text-blue-400/80 font-semibold text-sm",children:a.label}),o&&m.jsx("span",{className:"text-[#666] font-mono text-xs",children:o})]});if(typeof c=="string"&&c.trim())return m.jsxs("div",{children:[d,m.jsx("div",{className:"mt-1.5 text-[#888] text-[13px]",children:c.trim()})]});const h=c&&typeof c=="object"?c:null;if(h&&!h.success)return m.jsxs("div",{children:[d,m.jsx("div",{className:"mt-1.5 text-red-400/70 text-[13px]",children:h.error??"Threat model call failed"})]});if(e==="get_threat_model"){if(h&&!h.found)return m.jsxs("div",{children:[d,m.jsx("div",{className:"mt-1.5 text-[#555] text-xs",children:"No model derived for this target yet"})]});const g=h==null?void 0:h.amendments,b=Array.isArray(g)?g:[];return m.jsxs("div",{children:[d,b.length>0&&m.jsxs("div",{className:"mt-2",children:[m.jsxs("span",{className:"text-amber-400/70 text-xs font-semibold",children:[b.length," amendment",b.length===1?"":"s"]}),m.jsx("span",{className:"text-[#555] text-xs",children:" — later statements win"}),m.jsx("div",{className:"mt-1 space-y-1",children:b.map((y,_)=>m.jsxs("div",{className:"text-xs leading-snug",children:[m.jsx("span",{className:"text-[#666]",children:y.agent_name??"unknown agent"}),y.content&&m.jsxs("span",{className:"text-[#999]",children:[": ",y.content]})]},_))})]}),typeof(h==null?void 0:h.content)=="string"&&h.content.trim()&&m.jsx("div",{className:"mt-2",children:m.jsx(qt,{text:h.content,maxLines:14})})]})}if(e==="amend_threat_model"){const g=t.addendum??"",b=h==null?void 0:h.amendment_count;return m.jsxs("div",{children:[d,b!=null&&m.jsxs("div",{className:"mt-1.5 text-[#666] text-xs",children:[b," amendment",b===1?"":"s"," on this model"]}),g&&m.jsx("div",{className:"mt-1.5",children:m.jsx(qt,{text:g,maxLines:10})})]})}const f=(h==null?void 0:h.amendments_cleared)??0,p=t.content??"";return m.jsxs("div",{children:[d,f>0&&m.jsxs("div",{className:"mt-1.5 flex items-center gap-1.5 text-yellow-400/80 text-xs",children:[m.jsx(Sp,{className:"w-3 h-3 shrink-0"}),m.jsxs("span",{children:["cleared ",f," amendment",f===1?"":"s"]})]}),p&&m.jsx("div",{className:"mt-2",children:m.jsx(qt,{text:p,maxLines:14})})]})}function vU(e){return!e||typeof e!="object"||Array.isArray(e)?[]:Object.entries(e).map(([t,r])=>{const a=typeof r=="string"?r:JSON.stringify(r);return`${t}: ${a??String(r)}`})}function _U(e){let t=e;if(typeof t=="string")try{t=JSON.parse(t)}catch{return[]}const r=t&&typeof t=="object"&&!Array.isArray(t)?t.connections:null;return Array.isArray(r)?r.flatMap(a=>{if(!a||typeof a!="object"||Array.isArray(a))return[];const s=a,o=typeof s.name=="string"&&s.name.trim()?s.name.trim():typeof s.id=="string"?s.id.trim():"";if(!o)return[];const c=typeof s.tool_count=="number"?s.tool_count:null,d=s.dead===!0;return[{name:o,toolCount:c,dead:d}]}):[]}const y_=600;function wU(e){if(typeof e=="string"){const t=e.trim();return t?t.length>y_?`${t.slice(0,y_)}…`:t:null}return null}function EU({toolName:e,mcpTool:t,mcpConnection:r,args:a,result:s,status:o}){const c=vU(a),d=o==="failed"||o==="error",h=d?wU(s):null,f=e==="describe_mcp",p=e==="list_mcps",g=p?_U(s):[];return m.jsxs("div",{children:[m.jsx("div",{className:"flex items-center gap-2 flex-wrap",children:p?m.jsx("span",{className:"text-[13px] text-[#555]",children:"Listing connected MCP servers"}):f?m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"text-[13px] text-[#555]",children:"Inspecting MCP server"}),r&&m.jsx("span",{className:"font-mono text-teal-300 font-semibold text-sm",children:r})]}):m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"font-mono text-teal-300 font-semibold text-sm",children:t||e}),m.jsx("span",{className:"text-[13px] text-[#555]",children:"via MCP server"}),r&&m.jsx("span",{className:"text-[13px] text-teal-400/80",children:r})]})}),c.length>0&&m.jsx("div",{className:"mt-1 font-mono text-[13px] leading-relaxed",children:c.map(b=>m.jsx("div",{className:"text-[#777] break-all",children:b},b))}),g.length>0&&m.jsx("div",{className:"mt-1 font-mono text-[13px] leading-relaxed",children:g.map(b=>m.jsxs("div",{className:`break-all${b.dead?" opacity-50":""}`,children:[m.jsx("span",{className:"text-teal-300",children:b.name}),b.dead?m.jsx("span",{className:"text-red-400/80",children:" · offline"}):b.toolCount!==null&&m.jsxs("span",{className:"text-[#555]",children:[" ","· ",b.toolCount," ",b.toolCount===1?"tool":"tools"]})]},b.name))}),m.jsxs("div",{className:"mt-1 text-[13px]",children:[o==="running"&&m.jsx("span",{className:"text-[#666]",children:"Running"}),o==="completed"&&m.jsx("span",{className:"text-emerald-400/80",children:"✓ Done"}),d&&m.jsx("span",{className:"text-red-400/80",children:"✗ Failed"})]}),h&&m.jsx("pre",{className:"mt-1 font-mono text-[13px] leading-relaxed whitespace-pre-wrap break-words text-red-400/70",children:h})]})}const Ga={terminal:{renderer:g7,icon:J_,color:"text-emerald-400"},python:{renderer:tU,icon:CC,color:"text-yellow-400"},browser:{renderer:b7,icon:X_,color:"text-blue-400"},filesystem:{renderer:y7,icon:DC,color:"text-sky-400"},proxy:{renderer:G7,icon:B_,color:"text-purple-400",match:/request|sitemap|scope/},reporting:{renderer:R7,icon:_T,color:"text-red-400"},thinking:{renderer:V7,icon:H_,color:"text-purple-400"},agents:{renderer:Y7,icon:Ro,color:"text-cyan-400",match:/agent/},search:{renderer:X7,icon:yT,color:"text-amber-400"},lifecycle:{renderer:iU,icon:Y_,color:"text-emerald-400"},notes:{renderer:sU,icon:CT,color:"text-amber-400",match:/note/},skills:{renderer:dU,icon:Gm,color:"text-emerald-400"},todos:{renderer:uU,icon:QC,color:"text-purple-400",match:/todo/},coverage:{renderer:xU,icon:G_,color:"text-cyan-400",match:/coverage/},threatModel:{renderer:yU,icon:Vu,color:"text-blue-400",match:/threat_model/},telemetry:{renderer:x2,icon:Gm,color:"text-[#555]"},mcp:{renderer:EU,icon:K_,color:"text-teal-400"}},NU={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","update_vulnerability_report","delete_vulnerability_report","list_reports","get_report"],thinking:["think"],agents:["create_agent","agent_finish","send_message_to_agent","wait_for_agents","view_agent_graph","stop_agent"],search:["web_search"],lifecycle:["scan_start_info","subagent_start_info","finish_scan","respond_to_user"],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"],coverage:["record_coverage","update_coverage","list_coverage"],threatModel:["get_threat_model","save_threat_model","amend_threat_model"],telemetry:["sandbox_error_details","llm_error_details"],mcp:["list_mcps"]},SU=Object.fromEntries(Object.entries(NU).flatMap(([e,t])=>t.map(r=>[r,e]))),kU={finish_scan:aU,respond_to_user:fU,apply_patch:k7,view_image:A7,list_reports:m_,get_report:m_,delete_vulnerability_report:D7},CU={agent_finish:{icon:Y_,color:"text-cyan-400"},send_message_to_agent:{icon:yh,color:"text-cyan-400"},wait_for_agents:{icon:yh,color:"text-cyan-400"},respond_to_user:{icon:yh,color:"text-emerald-400"},view_agent_graph:{icon:RC,color:"text-cyan-400"},stop_agent:{icon:U_,color:"text-red-400"},scan_start_info:{icon:Vu,color:"text-emerald-400"},subagent_start_info:{icon:Ro,color:"text-purple-400"},view_image:{icon:YC,color:"text-sky-400"}},TU=Ga.telemetry;function b2(e){var r;const t=SU[e];if(t)return t;for(const[a,s]of Object.entries(Ga))if((r=s.match)!=null&&r.test(e))return a;return null}function AU(e,t){if(t)return Ga.mcp.renderer;const r=kU[e];if(r)return r;const a=b2(e);return a?Ga[a].renderer:x2}function MU(e,t){if(t)return{icon:Ga.mcp.icon,color:Ga.mcp.color};const r=CU[e];if(r)return r;const a=b2(e),s=a?Ga[a]:TU;return{icon:s.icon,color:s.color}}const OU=30;function RU({role:e,content:t}){const r=e==="user"||e==="human";return m.jsxs("div",{children:[m.jsx("span",{className:`font-semibold text-sm ${r?"text-blue-400/80":"text-purple-400/80"}`,children:r?"User":"Thinking"}),m.jsx("div",{className:"mt-1.5 italic text-[#888]",children:m.jsx(qt,{text:t,maxLines:OU})})]})}class jU extends ee.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?m.jsx("span",{className:"text-[#555] font-semibold text-sm",children:this.props.toolName.replace(/_/g," ")}):this.props.children}}function DU(e){const t=AU(e.toolName,e.mcpConnection);return m.jsx(jU,{toolName:e.toolName,children:m.jsx(t,{...e})})}function y2(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 v_(e){return typeof e=="string"&&e?e:null}function v2(e){const t=y2(e);return t&&typeof t=="object"&&!Array.isArray(t)?t:t==null?{}:{__raw:typeof t=="string"?t:JSON.stringify(t)}}function __(e){const t=/(\d+)$/.exec(e);return t?parseInt(t[1],10):0}function _g(e){var r;const t=(r=e.data)==null?void 0:r.role;return e.type==="chat"&&(t==="user"||t==="human")}function LU(e){var t;return _g(e)&&String(((t=e.data)==null?void 0:t.content)??"").startsWith("[Message from ")}function zU(e){const t=new Set;let r=!1;for(const a of e)if(_g(a)){if(LU(a)){t.add(a.id);continue}r||(r=!0,t.add(a.id))}return t}const IU={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 BU(e){return e==="completed"?"completed":e==="running"?"running":e==="failed"||e==="crashed"?"failed":e}function UU(e,t){var d;const r=new Map;for(const h of e)if(h.parent_id){const f=r.get(h.parent_id)??[];f.push(h.id),r.set(h.parent_id,f)}const a=new Map,s=new Map,o=new Map;for(const h of t)if(h.type==="tool"){if(a.set(h.agent_id,(a.get(h.agent_id)??0)+1),((d=h.data)==null?void 0:d.tool_name)==="create_agent"){const f=v2(h.data.args),p=f.name??f.agent_name??"",g=f.task??"";p&&g&&o.set(p,g)}}else _g(h)||s.set(h.agent_id,(s.get(h.agent_id)??0)+1);const c=new Map;for(const h of e)c.set(h.id,{id:h.id,name:h.name,task:o.get(h.name)??"",status:BU(h.status),parentId:h.parent_id,children:r.get(h.id)??[],createdAt:h.created_at,toolCount:a.get(h.id)??0,messageCount:s.get(h.id)??0});return c}function HU({agent:e,events:t,showHeader:r=!0}){const a=ee.useMemo(()=>{const c=t.filter(h=>h.agent_id===e.id).sort((h,f)=>__(h.id)-__(f.id)),d=zU(c);return c.filter(h=>!d.has(h.id))},[t,e.id]),s=a.filter(c=>c.type==="tool").length,o=a.length-s;return m.jsxs("div",{children:[r&&m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"flex items-center gap-2 flex-wrap mb-1",children:[m.jsx("span",{className:"text-base font-semibold text-white truncate",children:e.name}),m.jsx("span",{className:`flex-shrink-0 text-xs font-medium capitalize px-2 py-0.5 rounded-full border ${IU[e.status]??"text-[#aaa] border-[#333] bg-[#1a1a1a]"}`,children:e.status}),m.jsx("span",{className:"font-mono text-xs text-[#555]",children:e.id})]}),m.jsxs("p",{className:"text-xs text-[#666] mb-4",children:[o," message",o===1?"":"s"," · ",s," tool call",s===1?"":"s"]})]}),a.length===0?m.jsx("p",{className:"text-sm text-[#666]",children:"No recorded activity for this agent."}):m.jsx("div",{className:"py-1",children:a.map((c,d)=>{var w,C,E,A,B,R,H,z;const h=d===a.length-1,f=c.type==="tool",p=f?String(((w=c.data)==null?void 0:w.tool_name)??"tool"):"",g=f?"":String(((C=c.data)==null?void 0:C.role)??"assistant"),b=v_((E=c.data)==null?void 0:E.mcp_connection),y=v_((A=c.data)==null?void 0:A.mcp_tool);let _,N;if(f){const Y=MU(p,b);_=Y.icon,N=Y.color}else{const Y=g==="user"||g==="human";_=Y?Ro:H_,N=Y?"text-blue-400":"text-purple-400"}const S=f?String(((B=c.data)==null?void 0:B.status)??"completed"):"completed";return m.jsxs("div",{className:"flex gap-3",children:[m.jsxs("div",{className:"flex flex-col items-center shrink-0",children:[m.jsx("div",{className:`w-[30px] h-[30px] rounded-full bg-black border flex items-center justify-center shrink-0 ${f&&S==="running"?"border-blue-500/40 animate-pulse":f&&S==="failed"?"border-red-500/30":"border-[#222]"}`,children:m.jsx(_,{className:`w-3.5 h-3.5 ${N}`})}),!h&&m.jsx("div",{className:"w-px flex-1 bg-[#1a1a1a] mt-1"})]}),m.jsx("div",{className:"flex-1 min-w-0 pt-[5px] pb-6",children:f?m.jsx(DU,{toolName:p,mcpConnection:b,mcpTool:y,args:v2((R=c.data)==null?void 0:R.args),result:y2((H=c.data)==null?void 0:H.result)??null,status:S}):m.jsx(RU,{role:g,content:String(((z=c.data)==null?void 0:z.content)??"")})})]},c.id)})})]})}class qu extends Error{constructor(t){super(t),this.name="RunParseError"}}const $U=["critical","high","medium","low"];function qU(e){const t=String(e??"").toLowerCase().trim();return $U.includes(t)?t:"low"}function PU(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 FU(e){return typeof e=="number"&&Number.isFinite(e)?e:null}function _2(e,t){try{return JSON.parse(e)}catch{throw new qu(`${t} isn't valid JSON. Make sure you selected a Strix run directory.`)}}function GU(e){const t=_2(e,"run.json");if(!t||typeof t!="object"||Array.isArray(t))throw new qu("run.json is not an object.");const r=t,a=[],s=r.targets_info;if(Array.isArray(s)){for(const y of s)if(y&&typeof y=="object"){const _=y.original;typeof _=="string"&&_&&a.push(_)}}const o=Ot(r.start_time),c=Ot(r.end_time);let d=null;if(o&&c){const y=new Date(o).getTime(),_=new Date(c).getTime();!Number.isNaN(y)&&!Number.isNaN(_)&&_>=y&&(d=Math.round((_-y)/1e3))}let h=null,f=null,p=null,g=null;const b=r.scan_results;if(b&&typeof b=="object"){const y=b;h=Ot(y.executive_summary),f=Ot(y.technical_analysis),p=Ot(y.methodology),g=Ot(y.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:h,technicalAnalysis:f,methodology:p,recommendations:g}}function VU(){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 YU(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{...VU(),id:Ot(e.id)??`vuln-${t+1}`,scan_id:r,title:Ot(e.title)??"Untitled finding",description:Ot(e.description)??"",severity:qU(e.severity),status:"open",created_at:PU(e.timestamp),cve:Ot(e.cve),cvss:FU(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 XU(e,t=null){const r=_2(e,"vulnerabilities.json");if(!Array.isArray(r))throw new qu("vulnerabilities.json is not a JSON array.");return r.map((a,s)=>{if(!a||typeof a!="object")throw new qu(`vulnerabilities.json entry #${s+1} is not an object.`);return YU(a,s,t)})}function KU(e){const t={critical:0,high:0,medium:0,low:0};for(const r of e)t[r.severity]+=1;return t}function ZU(e){const t=e==null?void 0:e.mcp_connection_status;return Array.isArray(t)?t.flatMap(r=>{if(!r||typeof r!="object"||Array.isArray(r))return[];const a=r,s=typeof a.name=="string"?a.name.trim():"";if(!s)return[];const o=typeof a.provider=="string"&&a.provider.trim()?a.provider.trim():null,c=typeof a.tool_count=="number"?a.tool_count:0,d=a.dead===!0;return[{name:s,provider:o,toolCount:c,dead:d}]}):[]}async function es(e){const t=await fetch(e,{cache:"no-store"});if(!t.ok)throw new Error(`${e} responded ${t.status}`);return t.json()}function dd(e){return e?`?run=${encodeURIComponent(e)}`:""}async function w2(e){const t=await es("/api/run"+dd(e)),r=GU(JSON.stringify(t)),a=t.finished===!0;return{summary:r,raw:t,finished:a}}async function E2(e,t){const r=await es("/api/vulnerabilities"+dd(t));return XU(JSON.stringify(r),e)}async function QU(e){const t=await es("/api/report"+dd(e));return(t==null?void 0:t.markdown)??null}async function N2(e){const t=await es("/api/transcript"+dd(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 w_(e){const{summary:t,raw:r,finished:a}=await w2(e),[s,o,c]=await Promise.all([E2(t.runId,e).catch(()=>[]),QU(e).catch(()=>null),N2(e).catch(()=>({agents:[],events:[]}))]);return{summary:t,raw:r,finished:a,vulnerabilities:s,reportMarkdown:o,transcript:c}}async function il(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 WU(){const e=await es("/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 JU(){const e=await es("/api/capabilities");return{can_steer:(e==null?void 0:e.can_steer)===!0}}async function eH(e,t){const{ok:r,data:a}=await il("/api/agents/steer",{agent_id:e,message:t});return r&&a.ok===!0?{ok:!0}:{ok:!1,error:String(a.error??"unavailable")}}async function tH(e,t){const{ok:r,data:a}=await il("/api/feedback",{message:e,email:t});return r&&a.ok===!0?{ok:!0}:{ok:!1,error:String(a.error??"unavailable")}}async function nH(){const e=await es("/api/auth/status");return{verified:(e==null?void 0:e.verified)===!0,email:(e==null?void 0:e.email)??null}}async function S2(e){const{ok:t,data:r}=await il("/api/auth/otp/start",{email:e});return t&&r.ok===!0?{ok:!0}:{ok:!1,error:String(r.error??"unavailable")}}async function k2(e,t){const{ok:r,data:a}=await il("/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 rH(){await il("/api/auth/forget",{})}async function iH(e){const{ok:t,data:r}=await il("/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 Us="__root__";function C2({agents:e,fixedAgentId:t,className:r}){const a=ee.useRef(null),[s,o]=ee.useState(!1),[c,d]=ee.useState(!1),[h,f]=ee.useState(""),[p,g]=ee.useState(!1),[b,y]=ee.useState(null),_=t!=null,N=ee.useMemo(()=>e.find(I=>!I.parent_id)??e[0]??null,[e]),S=ee.useMemo(()=>e.filter(I=>I.parent_id&&I.status==="running"),[e]),[w,C]=ee.useState(Us),[E,A]=ee.useState(!1);ee.useEffect(()=>{w!==Us&&!S.some(I=>I.id===w)&&C(Us)},[w,S]);const{targetId:B,targetName:R}=ee.useMemo(()=>{if(_){const Z=e.find(P=>P.id===t)??null;return{targetId:t??null,targetName:(Z==null?void 0:Z.name)??"this agent"}}if(w===Us)return{targetId:(N==null?void 0:N.id)??null,targetName:"Root agent"};const I=e.find(Z=>Z.id===w)??null;return{targetId:(I==null?void 0:I.id)??(N==null?void 0:N.id)??null,targetName:(I==null?void 0:I.name)??"Root agent"}},[e,t,_,N,w]),H=h.trim().length===0;ee.useLayoutEffect(()=>{const I=a.current;I&&(I.style.height="auto",I.style.height=`${I.scrollHeight}px`)},[h]);const z=ee.useCallback(()=>{o(!0),requestAnimationFrame(()=>{var I;return(I=a.current)==null?void 0:I.focus()})},[]),Y=ee.useCallback(()=>{o(!1),d(!1),A(!1)},[]),j=ee.useCallback(async()=>{if(p)return;const I=h.trim();if(!I||!B)return;g(!0),y(null);const Z=R,P=await eH(B,I);g(!1),P.ok?(f(""),y(`Sent to ${Z}`),Mr("agent_steered")):P.error==="not_delivered"?y("Could not reach that agent (it may have finished)."):y("Could not send that message. Try again.")},[p,h,B,R]);return s?m.jsxs("div",{className:br("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:[m.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-white/[0.06] px-5 py-3",children:[m.jsxs("div",{className:"min-w-0",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(Fm,{className:"h-4 w-4 text-[#666]"}),m.jsx("p",{className:"text-sm font-medium text-white",children:"Live prompt"})]}),m.jsx("p",{className:"mt-0.5 text-xs text-[#777]",children:"Connected"})]}),m.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[_?m.jsxs("div",{className:"rounded-full border border-white/[0.08] bg-white/[0.03] px-3 py-1 text-xs text-[#aaa]",children:["Target: ",m.jsx("span",{className:"text-white",children:R})]}):m.jsxs("div",{className:"flex items-center gap-1.5",children:[m.jsx("span",{className:"text-xs text-[#aaa]",children:"Target:"}),m.jsxs("div",{className:"relative",children:[m.jsxs("button",{type:"button",onClick:()=>A(I=>!I),onBlur:()=>requestAnimationFrame(()=>A(!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:[m.jsx("span",{className:"max-w-[140px] truncate",children:R}),m.jsx(po,{className:"h-3.5 w-3.5 text-[#999]"})]}),E&&m.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:[m.jsx(E_,{label:"Root agent",active:w===Us,onSelect:()=>{C(Us),A(!1)}}),S.map(I=>m.jsx(E_,{label:I.name,active:w===I.id,onSelect:()=>{C(I.id),A(!1)}},I.id))]})]})]}),m.jsx("button",{type:"button",onClick:Y,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:m.jsx(po,{className:"h-4 w-4"})})]})]}),m.jsx("div",{className:"px-5 pt-4 pb-3",children:m.jsx("textarea",{ref:a,rows:1,value:h,onChange:I=>f(I.target.value),onFocus:()=>d(!0),onBlur:()=>d(!1),onKeyDown:I=>{I.key==="Enter"&&!I.shiftKey&&(I.preventDefault(),j())},placeholder:"Send a live prompt to the running pentest…",maxLength:4e3,disabled:p,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"})}),m.jsxs("div",{className:"flex items-center justify-between gap-3 px-4 pb-4",children:[m.jsx("div",{className:"text-xs text-[#666]",children:b??"Press Enter to send."}),m.jsxs("button",{type:"button",onClick:I=>{I.stopPropagation(),j()},disabled:p||H,className:br("inline-flex h-10 min-w-[112px] items-center justify-center gap-2 rounded-full px-4 text-sm font-medium transition-colors",p||H?"bg-white/[0.08] text-[#666]":"bg-white text-black hover:bg-neutral-200"),children:[p?m.jsx(Ps,{className:"h-4 w-4 animate-spin"}):m.jsx(Zk,{className:"h-4 w-4",strokeWidth:2.5}),m.jsx("span",{children:"Send prompt"})]})]})]}):m.jsxs("button",{type:"button",onClick:z,className:br("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:[m.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[m.jsx(Fm,{className:"h-4 w-4 shrink-0 text-[#666]"}),m.jsx("span",{className:"truncate text-sm font-medium text-white",children:"Guide the agent"})]}),m.jsx(q_,{className:"h-4 w-4 shrink-0 text-[#777]"})]})}function E_({label:e,active:t,onSelect:r}){return m.jsx("button",{type:"button",role:"option","aria-selected":t,onMouseDown:a=>{a.preventDefault(),r()},className:br("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 aH={completed:"bg-emerald-400",running:"bg-blue-400",waiting:"bg-yellow-400",stopped:"bg-[#888]",crashed:"bg-red-400",failed:"bg-red-400"},sH=80;function lH({open:e,agent:t,events:r,steerable:a,onClose:s}){const o=ee.useRef(null),c=ee.useRef(!1),[d,h]=ee.useState(e),[f,p]=ee.useState(e?"open":"closed"),[g,b]=ee.useState(!1),y=ee.useRef(t);ee.useEffect(()=>{t&&(y.current=t)},[t]);const _=t??y.current;ee.useEffect(()=>{if(e){h(!0),p("open");return}p("closed");const S=setTimeout(()=>h(!1),140);return()=>clearTimeout(S)},[e]),ee.useEffect(()=>{if(!d){b(!1);return}const S=requestAnimationFrame(()=>b(!0));return()=>cancelAnimationFrame(S)},[d]);const N=ee.useCallback(()=>{const S=o.current;S&&(c.current=S.scrollHeight-S.scrollTop-S.clientHeight<sH)},[]);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=C=>{C.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:m.jsx("div",{"data-state":f,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:m.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:[m.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-[#222] px-5 py-3.5",children:[m.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[m.jsx("span",{className:`h-2 w-2 flex-shrink-0 rounded-full ${aH[_.status]??"bg-[#888]"}`}),m.jsx("span",{className:"truncate text-sm font-semibold text-white",children:_.name}),m.jsx("span",{className:"flex-shrink-0 font-mono text-xs text-[#555]",children:_.id})]}),m.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:m.jsx(kp,{className:"h-4 w-4"})})]}),m.jsx("div",{ref:o,onScroll:N,className:"flex-1 overflow-y-auto p-5",children:g&&m.jsx(HU,{agent:_,events:r,showHeader:!1})}),a&&m.jsx("div",{className:"border-t border-[#222] px-5 py-3",children:m.jsx(C2,{agents:[_],fixedAgentId:_.id,className:"mt-0"})})]})})}var T2={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},N_=fa.createContext&&fa.createContext(T2),oH=["attr","size","title"];function cH(e,t){if(e==null)return{};var r,a,s=uH(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 uH(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 Pu(){return Pu=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},Pu.apply(null,arguments)}function S_(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 Fu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?S_(Object(r),!0).forEach(function(a){dH(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S_(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function dH(e,t,r){return(t=fH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fH(e){var t=hH(e,"string");return typeof t=="symbol"?t:t+""}function hH(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 A2(e){return e&&e.map((t,r)=>fa.createElement(t.tag,Fu({key:r},t.attr),A2(t.child)))}function wg(e){return t=>fa.createElement(mH,Pu({attr:Fu({},e.attr)},t),A2(e.child))}function mH(e){var t=r=>{var a=e.attr,s=e.size,o=e.title,c=cH(e,oH),d=s||r.size||"1em",h;return r.className&&(h=r.className),e.className&&(h=(h?h+" ":"")+e.className),fa.createElement("svg",Pu({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,a,c,{className:h,style:Fu(Fu({color:e.color||r.color},r.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),o&&fa.createElement("title",null,o),e.children)};return N_!==void 0?fa.createElement(N_.Consumer,null,r=>t(r)):t(T2)}function pH(e){return wg({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 gH(e){return wg({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 M2(e){return wg({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 xH=[{icon:UC,label:"PR security reviews"},{icon:NT,label:"Attack surface monitoring"},{icon:UT,label:"Real-time threat intelligence"},{icon:iC,label:"Scheduled pentesting"},{icon:LT,label:"One-click autofix"},{icon:K_,label:"Jira, Linear & Slack integrations"}];function bH({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 h=setTimeout(()=>o(!1),200);return()=>clearTimeout(h)},[e]),ee.useEffect(()=>{if(!s)return;const h=p=>{p.key==="Escape"&&t()};document.addEventListener("keydown",h);const f=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",h),document.body.style.overflow=f}},[s,t]),s?m.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:m.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:h=>h.stopPropagation(),children:[m.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:m.jsx(kp,{className:"h-4 w-4"})}),m.jsxs("div",{children:[m.jsx("h2",{className:"text-lg text-white",children:"Available in Strix Cloud"}),r&&m.jsx("p",{className:"mt-2 text-base leading-relaxed text-[#e5e5e5]",children:r})]}),m.jsxs("div",{className:"space-y-4 pt-4",children:[m.jsxs("div",{className:"rounded-xl border border-[#333] bg-[#0a0a0a] p-4 sm:rounded-lg",children:[m.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[m.jsx(Fm,{className:"h-4 w-4 text-blue-400"}),m.jsx("span",{className:"text-sm font-medium text-white",children:"Strix Cloud also includes"})]}),m.jsx("ul",{className:"space-y-2 text-sm text-[#888]",children:xH.map(h=>m.jsxs("li",{className:"flex items-center gap-2",children:[m.jsx(h.icon,{className:"h-3.5 w-3.5 text-[#555]"}),h.label]},h.label))})]}),m.jsxs("div",{className:"flex flex-col gap-2",children:[m.jsxs("a",{href:_i(Yu,"upgrade_try_free"),target:"_blank",rel:"noopener noreferrer",onClick:()=>yr("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",m.jsx(uy,{className:"h-3.5 w-3.5"})]}),m.jsxs("a",{href:_i(FT,"upgrade_view_plans"),target:"_blank",rel:"noopener noreferrer",onClick:()=>yr("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",m.jsx(uy,{className:"h-3 w-3"})]})]}),m.jsxs("p",{className:"text-center text-xs text-[#666]",children:["SSO, compliance reports, or a private deployment?"," ",m.jsx("a",{href:_i(Ap,"upgrade_book_demo"),target:"_blank",rel:"noopener noreferrer",onClick:()=>yr("upgrade_book_demo",a),className:"whitespace-nowrap text-[#aaa] underline underline-offset-2 transition-colors hover:text-white",children:"Try Strix Enterprise"})]})]})]})}):null}const Hm=160,$m=260,io=400,yH=140,k_="strix_viewer_sidebar_width",C_="strix_viewer_sidebar_collapsed";function vH(e,t){try{const r=localStorage.getItem(e),a=r?parseInt(r,10):NaN;return Number.isFinite(a)?a:t}catch{return t}}function _H({view:e,onSelectView:t,issuesCount:r,agentCount:a,mcpConnections:s,mcpInUse:o,runCount:c,finished:d,verified:h,email:f,onOpenEmail:p,onOpenHistory:g,onForget:b}){var P;const[y,_]=ee.useState(()=>{const k=vH(k_,$m);return Math.min(io,Math.max(Hm,k))}),[N,S]=ee.useState(()=>{try{return localStorage.getItem(C_)==="1"}catch{return!1}}),[w,C]=ee.useState(!1),[E,A]=ee.useState(!1),[B,R]=ee.useState(null),H=ee.useRef(null),z=(k,$)=>{yr(k,"sidebar"),R($)},Y=ee.useCallback(k=>{_(k);try{localStorage.setItem(k_,String(k))}catch{}},[]),j=ee.useCallback(k=>{S(k);try{localStorage.setItem(C_,k?"1":"0")}catch{}},[]),I=ee.useCallback(()=>{j(!1),Y($m)},[j,Y]),Z=ee.useCallback(k=>{k.preventDefault(),C(!0)},[]);return ee.useEffect(()=>{if(!w||N)return;const k=O=>{const U=O.clientX;U>=Hm&&U<=io?_(U):U>io&&_(io)},$=O=>{const U=O.clientX;U<yH?(j(!0),Y($m)):Y(Math.min(io,Math.max(Hm,U))),C(!1)};return window.addEventListener("mousemove",k),window.addEventListener("mouseup",$),()=>{window.removeEventListener("mousemove",k),window.removeEventListener("mouseup",$)}},[w,N,j,Y]),ee.useEffect(()=>{if(!E)return;const k=$=>{H.current&&!H.current.contains($.target)&&A(!1)};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[E]),m.jsxs(m.Fragment,{children:[N&&m.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:I,title:"Expand sidebar"}),m.jsxs("aside",{className:br("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",!w&&"transition-[width] duration-200 ease-out"),style:{width:N?0:y},children:[m.jsx("header",{className:"relative flex flex-col gap-1 pt-1 min-w-[160px]",children:m.jsx("div",{className:"flex flex-row py-1 px-2",children:m.jsxs("div",{className:"flex h-10 w-full flex-row items-center",children:[m.jsxs("a",{href:_i("https://app.strix.ai","logo"),target:"_blank",rel:"noopener noreferrer",onClick:()=>yr("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:[m.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:m.jsx("span",{className:"text-[10px] font-semibold text-white",children:"S"})}),m.jsxs("span",{className:"flex flex-1 flex-row items-center gap-2 min-w-0",children:[m.jsx("span",{className:"truncate min-w-0 text-[14px] font-medium text-[#ededed]",children:"Strix"}),m.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"})]})]}),m.jsx("a",{href:_i("https://app.strix.ai","logo"),target:"_blank",rel:"noopener noreferrer",onClick:()=>yr("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:m.jsx(hC,{className:"h-4 w-4 text-[#666]"})})]})})}),m.jsx("nav",{className:"relative min-w-[160px] flex-1 overflow-y-auto overflow-x-clip scrollbar-thin pb-10 pt-2",children:m.jsxs("div",{className:"relative flex flex-col gap-px px-2",children:[m.jsx(yi,{icon:m.jsx(NH,{}),label:"Pentest Overview",active:e==="overview",onClick:()=>t("overview")}),m.jsx(yi,{icon:m.jsx(Sp,{className:"h-4 w-4"}),label:"Issues",count:r>0?r:void 0,active:e==="issues",onClick:()=>t("issues")}),a>0&&m.jsx(yi,{icon:m.jsx(Ro,{className:"h-4 w-4"}),label:"Agents",count:a,active:e==="agents",onClick:()=>t("agents")}),s.length>0&&m.jsx(EH,{connections:s,inUse:o}),m.jsx(yi,{icon:m.jsx(Ys,{className:"h-4 w-4"}),label:"Past runs",count:c>0?c:void 0,active:e==="history",onClick:g}),d&&m.jsx(yi,{icon:m.jsx(Np,{className:"h-4 w-4"}),label:"Export report",active:e==="email",onClick:p}),m.jsx(yi,{icon:m.jsx(M2,{className:"h-4 w-4"}),label:"Feedback & support",active:e==="feedback",onClick:()=>t("feedback")}),m.jsx("hr",{className:"mx-0 my-1 h-px w-full border-0 bg-[rgba(255,255,255,0.08)]"}),m.jsx(yi,{icon:m.jsx(pH,{className:"h-4 w-4"}),label:"PR Security Reviews",active:!1,onClick:()=>z("pr_reviews","Strix reviews every pull request and flags exploitable changes before they merge.")}),m.jsx(yi,{icon:m.jsx(gH,{className:"h-4 w-4"}),label:"Integrations",active:!1,onClick:()=>z("integrations","Sync findings to Jira, Linear, and Slack so fixes happen where your team already works.")}),m.jsx(yi,{icon:m.jsx(jT,{className:"h-4 w-4"}),label:"Members",active:!1,onClick:()=>z("members","Invite your team, set roles, and share findings and run history across your org.")})]})}),m.jsx("section",{className:"flex min-w-[160px] flex-col gap-0.5",ref:H,children:m.jsxs("div",{className:"relative p-2",children:[h&&f?m.jsxs("button",{onClick:()=>A(k=>!k),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:[m.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:m.jsx("span",{className:"text-[9px] font-semibold text-white",children:((P=f[0])==null?void 0:P.toUpperCase())||"U"})}),m.jsxs("span",{className:"flex min-w-0 flex-1 flex-col text-left",children:[m.jsx("span",{className:"truncate text-[13px] font-medium text-[#ededed]",children:f}),m.jsx("span",{className:"truncate text-[11px] text-[#555]",children:"Linked to this machine"})]})]}):m.jsxs("div",{className:"flex items-center gap-2 rounded-md px-2.5 py-2",children:[m.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:m.jsx("span",{className:"text-[9px] font-semibold text-white",children:"S"})}),m.jsx("span",{className:"flex min-w-0 flex-1 flex-col text-left",children:m.jsx("span",{className:"truncate text-[13px] font-medium text-[#ededed]",children:"Local viewer"})})]}),E&&h&&f&&m.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:[m.jsxs("div",{className:"border-b border-[#333] px-3 py-2",children:[m.jsx("p",{className:"truncate text-[13px] font-medium text-white",children:"Linked email"}),m.jsx("p",{className:"truncate text-[11px] text-[#666]",children:f})]}),m.jsxs("button",{onClick:()=>{A(!1),b()},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:[m.jsx(nT,{className:"h-4 w-4"}),"Forget this email"]})]})]})}),m.jsx("div",{className:"group absolute right-0 top-0 z-30 h-full w-1 cursor-col-resize",onMouseDown:Z,children:m.jsx("div",{className:br("absolute right-0 top-0 h-full w-px bg-[rgba(255,255,255,0.08)] transition-all duration-100",w?"w-0.5 bg-[rgba(255,255,255,0.3)]":"group-hover:bg-[rgba(255,255,255,0.2)]")})})]}),w&&m.jsx("div",{className:"fixed inset-0 z-10 cursor-col-resize"}),m.jsx(bH,{open:B!==null,description:B??"",source:"sidebar",onClose:()=>R(null)})]})}function yi({icon:e,label:t,active:r,onClick:a,count:s}){return m.jsxs("button",{onClick:a,className:br("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:[m.jsx("div",{className:"grid flex-none place-content-center",style:{width:36,height:36},children:e}),m.jsx("span",{className:"min-w-0 flex-1 truncate text-left text-[14px] font-medium",children:t}),s!=null&&m.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})]})}const T_=["◐","◓","◑","◒"],wH=220;function EH({connections:e,inUse:t}){const r=e.some(o=>!o.dead&&t.has(o.name)),[a,s]=ee.useState(0);return ee.useEffect(()=>{if(!r)return;const o=setInterval(()=>s(c=>(c+1)%T_.length),wH);return()=>clearInterval(o)},[r]),m.jsxs("div",{className:"mt-1",children:[m.jsxs("div",{className:"flex h-7 items-center px-2 text-[11px] font-medium text-[#666]",children:["MCP Connections (",e.length,")"]}),m.jsx("div",{className:"max-h-48 overflow-y-auto overflow-x-clip scrollbar-thin",children:e.map(o=>{const c=!o.dead&&t.has(o.name);return m.jsxs("div",{className:"flex h-7 items-center gap-2 rounded-md px-2",title:o.provider?`${o.name} · ${o.provider}`:o.name,children:[m.jsx("span",{className:br("w-3 flex-none text-center text-[11px] leading-none",o.dead?"text-red-400":"text-emerald-400"),"aria-hidden":"true",children:o.dead?"●":c?T_[a]:"●"}),m.jsx("span",{className:"min-w-0 flex-1 truncate text-[13px] font-medium text-[#ededed]",children:o.name}),o.dead?m.jsx("span",{className:"flex-none text-[11px] text-red-400",children:"offline"}):m.jsxs("span",{className:"flex-none text-[11px] tabular-nums text-[#666]",children:[o.toolCount," ",o.toolCount===1?"tool":"tools"]})]},o.name)})})]})}function NH(){return m.jsx("svg",{style:{width:16,height:16,color:"currentcolor"},viewBox:"0 0 16 16",fill:"currentColor",children:m.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 A_={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."},SH=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 kH({onVerified:e}){const[t,r]=ee.useState("email"),[a,s]=ee.useState(""),[o,c]=ee.useState(""),[d,h]=ee.useState(!1),[f,p]=ee.useState(null),[g,b]=ee.useState(null),y=async()=>{const N=a.trim();if(!N){p("Enter your email to continue.");return}const S=N.slice(N.lastIndexOf("@")+1).toLowerCase();if(SH.has(S)){Mr("work_email_required"),p(A_.work_email_required);return}h(!0),p(null);const w=await S2(N);h(!1),w.ok?(Mr("email_submitted",{purpose:"verify"}),b(`We sent a 6-digit code to ${N}.`),r("code")):(w.error==="work_email_required"&&Mr("work_email_required"),p(A_[w.error]??"Could not send a code. Try again."))},_=async()=>{const N=o.trim();if(N.length<4){p("Enter the 6-digit code from your email.");return}h(!0),p(null);const S=await k2(a.trim(),N);if(h(!1),!S.verified){p("That code did not match. Check it and try again.");return}Mr("email_verified",{purpose:"verify"}),e()};return m.jsxs("div",{className:"mx-auto mt-5 max-w-sm text-left",children:[f&&m.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:[m.jsx(Gu,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-red-400","aria-hidden":"true"}),m.jsx("p",{className:"text-xs text-red-300",children:f})]}),g&&!f&&m.jsx("p",{className:"mb-3 text-xs text-[#888]",children:g}),t==="email"?m.jsxs("form",{className:"space-y-3",onSubmit:N=>{N.preventDefault(),y()},children:[m.jsxs("label",{className:"block",children:[m.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"Your work email"}),m.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"}}),m.jsx("span",{className:"mt-1.5 block text-[11px] text-[#666]",children:"Use your work email."})]}),m.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&&m.jsx(Ps,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),"Send me a code"]})]}):m.jsxs("form",{className:"space-y-3",onSubmit:N=>{N.preventDefault(),_()},children:[m.jsxs("label",{className:"block",children:[m.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"6-digit code"}),m.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"}})]}),m.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&&m.jsx(Ps,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),"Verify"]}),m.jsx("button",{type:"button",onClick:()=>{r("email"),p(null),b(null)},className:"w-full cursor-pointer text-center text-xs text-[#666] transition-colors hover:text-[#aaa]",children:"Use a different email"})]})]})}const CH=[{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 TH({counts:e}){const t=CH.filter(r=>e[r.key]>0);return t.length===0?m.jsx("span",{className:"text-xs text-[#555]",children:"No findings"}):m.jsx("div",{className:"flex items-center gap-3",children:t.map(r=>m.jsxs("div",{className:"flex items-center gap-1.5",children:[m.jsx("span",{className:`h-2 w-2 rounded-full ${r.dot}`,"aria-hidden":"true"}),m.jsx("span",{className:`text-xs tabular-nums ${r.text}`,children:e[r.key]})]},r.key))})}function AH(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 M_(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`:AH(e)}function MH({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?m.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-8 text-center",children:[m.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:m.jsx(Ys,{className:"h-5 w-5 text-[#888]","aria-hidden":"true"})}),m.jsx("h2",{className:"text-base font-semibold text-white",children:"Browse every run on this machine"}),m.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?m.jsxs(m.Fragment,{children:[m.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."}),m.jsx(kH,{onVerified:a})]}):m.jsx("button",{onClick:()=>{yr("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"}),m.jsxs("p",{className:"mt-4 flex items-center justify-center gap-1.5 text-xs text-[#555]",children:[m.jsx(J_,{className:"h-3.5 w-3.5","aria-hidden":"true"}),"Or open one from the CLI with"," ",m.jsx("code",{className:"font-mono text-[#888]",children:"strix view <name>"})]})]}):e.runs.length===0?m.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."}):m.jsx("div",{className:"space-y-2",children:e.runs.map(d=>{const h=d.name===t,f=M_(d.start_time)??M_(d.end_time),p=yo(d.target,d.name);return m.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 ${h?"border-[#444] bg-[rgba(255,255,255,0.04)]":"border-[#222] bg-[rgba(255,255,255,0.02)] hover:border-[#444]"}`,children:[m.jsxs("div",{className:"min-w-0 flex-1",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"truncate text-sm font-medium text-white",children:p}),h&&m.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"})]}),m.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&&m.jsx("span",{className:"capitalize",children:d.scan_mode}),d.scan_mode&&(f||d.status)&&m.jsx("span",{className:"text-[#333]",children:"·"}),f&&m.jsx("span",{children:f}),f&&d.status&&m.jsx("span",{className:"text-[#333]",children:"·"}),d.status&&m.jsx("span",{className:"capitalize",children:d.status})]})]}),m.jsx(TH,{counts:d.severity_counts}),m.jsx(uC,{className:"h-4 w-4 flex-shrink-0 text-[#555] transition-colors group-hover:text-[#aaa]","aria-hidden":"true"})]},d.name)})})}const O_={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."},OH={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."},RH=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 jH({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",[h,f]=ee.useState(()=>d?"email":a?c?"sending":"email":"disclosure"),[p,g]=ee.useState((t==null?void 0:t.email)??""),[b,y]=ee.useState(""),[_,N]=ee.useState(!1),[S,w]=ee.useState(null),[C,E]=ee.useState(null),[A,B]=ee.useState(""),[R,H]=ee.useState(""),[z,Y]=ee.useState(!1),[j,I]=ee.useState(""),Z=ee.useRef(!1),P=async()=>{f("sending"),w(null);const X=await iH(e);if(X.ok){Mr("report_sent"),B(X.password),H(X.filename),f("password");return}if(X.error==="reverify"||X.error==="unverified"){E("Your verification expired. Enter your email to verify again."),f("email");return}w(OH[X.error]??"Could not send the report. Try again."),f("disclosure")},k=()=>{w(null),E(null),c?P():f("email")};ee.useEffect(()=>{!d&&a&&c&&!Z.current&&(Z.current=!0,P())},[]);const $=async()=>{const X=p.trim();if(!X){w("Enter your email to continue.");return}const M=X.slice(X.lastIndexOf("@")+1).toLowerCase();if(RH.has(M)){Mr("work_email_required"),w(O_.work_email_required);return}N(!0),w(null);const L=await S2(X);N(!1),L.ok?(Mr("email_submitted",{purpose:r}),E(`We sent a 6-digit code to ${X}.`),f("code")):(L.error==="work_email_required"&&Mr("work_email_required"),w(O_[L.error]??"Could not send a code. Try again."))},O=async()=>{const X=b.trim();if(X.length<4){w("Enter the 6-digit code from your email.");return}N(!0),w(null);const M=await k2(p.trim(),X);if(N(!1),!M.verified){w("That code did not match. Check it and try again.");return}Mr("email_verified",{purpose:r}),I(M.email),s(),d?o("history"):P()},U=async()=>{try{await navigator.clipboard.writeText(A),Y(!0),setTimeout(()=>Y(!1),1500)}catch{}},K=j||(t==null?void 0:t.email)||p.trim();return m.jsxs("div",{className:"mx-auto max-w-xl space-y-4",children:[m.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:[m.jsx(Ep,{className:"h-4 w-4"}),d?"Back to past runs":"Back to results"]}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(Np,{className:"h-5 w-5 text-[#888]","aria-hidden":"true"}),m.jsx("h1",{className:"text-2xl font-semibold text-white",children:d?"Verify your email":"Export report to PDF"})]}),m.jsxs("div",{className:"w-full rounded-2xl bg-[rgba(255,255,255,0.02)] p-6",style:{border:"1px solid #2a2a2a"},children:[m.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&&m.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:[m.jsx(Gu,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-red-400","aria-hidden":"true"}),m.jsx("p",{className:"text-xs text-red-300",children:S})]}),C&&!S&&h!=="password"&&m.jsx("p",{className:"mb-4 text-xs text-[#888]",children:C}),h==="disclosure"&&m.jsxs("div",{className:"space-y-4",children:[m.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:[m.jsxs("div",{className:"flex items-start gap-2.5",children:[m.jsx(W_,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-emerald-400","aria-hidden":"true"}),m.jsxs("p",{className:"text-xs leading-relaxed text-[#aaa]",children:["We email an ",m.jsx("span",{className:"text-white",children:"encrypted PDF"}),". Nothing else leaves your machine."]})]}),m.jsxs("div",{className:"flex items-start gap-2.5",children:[m.jsx(eT,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-[#888]","aria-hidden":"true"}),m.jsx("p",{className:"text-xs leading-relaxed text-[#aaa]",children:"Only you hold the password; Strix can't read it."})]})]}),m.jsx("button",{onClick:k,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:"Export report"}),c&&(t==null?void 0:t.email)&&m.jsxs("p",{className:"text-center text-xs text-[#666]",children:["Sending to ",t.email]})]}),h==="email"&&m.jsxs("form",{className:"space-y-4",onSubmit:X=>{X.preventDefault(),$()},children:[m.jsxs("label",{className:"block",children:[m.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"Your work email"}),m.jsx("input",{type:"email",autoFocus:!0,value:p,onChange:X=>g(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"}})]}),m.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:[_&&m.jsx(Ps,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),"Send me a code"]})]}),h==="code"&&m.jsxs("form",{className:"space-y-4",onSubmit:X=>{X.preventDefault(),O()},children:[m.jsxs("label",{className:"block",children:[m.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"6-digit code"}),m.jsx("input",{inputMode:"numeric",autoFocus:!0,value:b,onChange:X=>y(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"}})]}),m.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:[_&&m.jsx(Ps,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),d?"Verify":"Verify and send"]}),m.jsx("button",{type:"button",onClick:()=>{f("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"})]}),h==="sending"&&m.jsxs("div",{className:"flex flex-col items-center gap-3 py-8",children:[m.jsx(Ps,{className:"h-6 w-6 animate-spin text-white","aria-hidden":"true"}),m.jsx("p",{className:"text-sm text-[#aaa]",children:"Generating and encrypting locally..."})]}),h==="password"&&m.jsxs("div",{className:"space-y-4",children:[m.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:[m.jsx(Vs,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-emerald-400","aria-hidden":"true"}),m.jsxs("p",{className:"text-xs text-emerald-200",children:["Sent to ",K,". Open the attached PDF with this password."]})]}),m.jsxs("div",{children:[m.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"Your one-time password"}),m.jsxs("div",{className:"flex items-center gap-2 rounded-lg bg-black p-3",style:{border:"1px solid #2a2a2a"},children:[m.jsx("code",{className:"flex-1 break-all font-mono text-base text-white",children:A}),m.jsxs("button",{onClick:U,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:[z?m.jsx(Vs,{className:"h-3.5 w-3.5"}):m.jsx(go,{className:"h-3.5 w-3.5"}),z?"Copied":"Copy"]})]}),m.jsxs("p",{className:"mt-2 text-xs text-[#666]",children:["Save this now. Strix never stores it, so we cannot show it again. File:"," ",m.jsx("span",{className:"font-mono text-[#888]",children:R})]})]}),m.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 oa(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function ao(e){return Array.isArray(e)?e:[]}function nr(e){return typeof e=="string"&&e.trim()?e:null}function Ba(e){return typeof e=="number"&&Number.isFinite(e)?e:null}function DH(e){return e.replace(/_/g," ")}function R_(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}function LH(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 En({label:e,children:t}){return m.jsxs("div",{className:"grid grid-cols-[7rem_1fr] gap-3 items-baseline",children:[m.jsx("dt",{className:"text-[11px] uppercase tracking-wide text-[#666]",children:e}),m.jsx("dd",{className:"min-w-0 break-words text-sm text-[#ddd]",children:t})]})}function zH({raw:e,durationSeconds:t}){const[r,a]=ee.useState(!0),s=ao(e.targets_info).map(P=>{const k=oa(P),$=nr(k.original)??nr(oa(k.details).target_url)??"unknown target",O=nr(k.type);return{display:$,type:O?DH(O):null}}),o=nr(e.instruction),c=R_(nr(e.scan_mode)),d=nr(e.scope_mode),h=oa(e.diff_scope),f=h.active===!0,p=nr(h.mode),g=nr(e.diff_base),b=e.non_interactive===!0,y=ao(e.local_sources).map(P=>{if(typeof P=="string")return P;const k=oa(P);return nr(k.source_path)??nr(k.target_path)??""}).filter(Boolean),_=R_(nr(e.status));let N=d??"auto";f&&(N+=` (diff${p?`: ${p}`:""}${g?` vs ${g}`:""})`);const S=oa(e.llm_usage),w=Object.keys(S).length>0,C=ao(S.agents).map(oa),E=Array.from(new Set(C.map(P=>nr(P.model)).filter(P=>!!P))),A=Ba(S.requests),B=Ba(S.input_tokens),R=Ba(oa(ao(S.input_tokens_details)[0]).cached_tokens),H=Ba(S.output_tokens),z=Ba(oa(ao(S.output_tokens_details)[0]).reasoning_tokens),Y=Ba(S.total_tokens),j=Ba(S.cost),I=nr(e.auth_mode)==="subscription",Z=(P,k)=>m.jsxs("span",{className:"text-[#666]",children:[" (",Ls(P)," ",k,")"]});return m.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[m.jsxs("button",{type:"button",onClick:()=>a(P=>!P),"aria-expanded":r,className:"flex w-full cursor-pointer items-center gap-2 text-left",children:[m.jsx(KC,{className:"h-4 w-4 text-[#888]","aria-hidden":"true"}),m.jsx("h2",{className:"text-sm font-semibold text-white",children:"Run details"}),r?m.jsx(q_,{className:"ml-auto h-4 w-4 text-[#666]","aria-hidden":"true"}):m.jsx(po,{className:"ml-auto h-4 w-4 text-[#666]","aria-hidden":"true"})]}),r&&m.jsxs("div",{className:"mt-4 grid grid-cols-1 gap-x-8 gap-y-6 md:grid-cols-2",children:[m.jsxs("section",{children:[m.jsx("h3",{className:"mb-3 text-[11px] font-semibold uppercase tracking-wide text-[#555]",children:"Configuration"}),m.jsxs("dl",{className:"space-y-2.5",children:[s.length>0&&m.jsx(En,{label:"Targets",children:m.jsx("div",{className:"space-y-1",children:s.map((P,k)=>m.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[m.jsx("span",{className:"font-mono text-[#ddd]",children:P.display}),P.type&&m.jsx("span",{className:"rounded-full border border-[#2a2a2a] px-1.5 py-0.5 text-[10px] text-[#888]",children:P.type})]},k))})}),m.jsx(En,{label:"Instruction",children:o?m.jsx("span",{className:"whitespace-pre-wrap",children:o}):m.jsx("span",{className:"text-[#666]",children:"None"})}),c&&m.jsx(En,{label:"Pentest mode",children:c}),m.jsx(En,{label:"Scope",children:N}),m.jsx(En,{label:"Mode",children:b?"Non-interactive":"Interactive"}),y.length>0&&m.jsx(En,{label:"Local sources",children:m.jsx("div",{className:"space-y-0.5 font-mono text-[#ddd]",children:y.map((P,k)=>m.jsx("div",{children:P},k))})}),_&&m.jsx(En,{label:"Status",children:_})]})]}),m.jsxs("section",{children:[m.jsx("h3",{className:"mb-3 text-[11px] font-semibold uppercase tracking-wide text-[#555]",children:"Usage & cost"}),w?m.jsxs("dl",{className:"space-y-2.5 tabular-nums",children:[m.jsx(En,{label:"Model",children:E.length?E.join(", "):"n/a"}),I&&m.jsx(En,{label:"Provider",children:m.jsx("span",{className:"inline-flex items-center gap-1.5",children:m.jsx("span",{className:"rounded-full border border-[#22c55e]/40 bg-[#22c55e]/10 px-2 py-0.5 text-[11px] text-[#22c55e]",children:"ChatGPT subscription"})})}),m.jsx(En,{label:"Run time",children:LH(t)}),A!=null&&m.jsx(En,{label:"Requests",children:Ls(A)}),B!=null&&m.jsxs(En,{label:"Input tokens",children:[Ls(B),R!=null&&Z(R,"cached")]}),H!=null&&m.jsxs(En,{label:"Output tokens",children:[Ls(H),z!=null&&Z(z,"reasoning")]}),Y!=null&&m.jsx(En,{label:"Total tokens",children:Ls(Y)}),I?m.jsxs(En,{label:"Cost",children:[m.jsx("span",{className:"text-[#22c55e]",children:"$0.00"}),m.jsx("span",{className:"text-[#666]",children:" (subscription)"})]}):j!=null&&m.jsxs(En,{label:"Cost",children:["$",j.toFixed(2)]}),C.length>0&&m.jsx(En,{label:"Agents",children:Ls(C.length)})]}):m.jsx("p",{className:"text-sm text-[#666]",children:"Not available yet."})]})]})]})}const j_="strix_viewer_trust_dismissed";function IH({message:e}){const[t,r]=ee.useState(()=>{try{return localStorage.getItem(j_)==="1"}catch{return!1}});if(t)return null;const a=()=>{try{localStorage.setItem(j_,"1")}catch{}r(!0)};return m.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:m.jsxs("div",{className:"flex gap-2.5",children:[m.jsx(W_,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-emerald-400","aria-hidden":"true"}),m.jsx("p",{className:"text-xs leading-relaxed text-[#aaa]",children:e}),m.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:m.jsx(kp,{className:"h-3.5 w-3.5"})})]})})}const BH=5e3,D_={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 UH({defaultEmail:e,onExit:t}){const[r,a]=ee.useState(""),[s,o]=ee.useState(e??""),[c,d]=ee.useState("form"),[h,f]=ee.useState(null),p=r.trim().length>0&&s.trim().length>0&&c!=="sending",g=async()=>{if(!p)return;d("sending"),f(null);const b=await tH(r.trim(),s.trim());if(b.ok){d("sent");return}d("form"),f(D_[b.error]??D_.unavailable)};return m.jsxs("div",{className:"mx-auto max-w-xl space-y-4",children:[m.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:[m.jsx(Ep,{className:"h-4 w-4"}),"Back to results"]}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(M2,{className:"h-5 w-5 text-[#888]","aria-hidden":"true"}),m.jsx("h1",{className:"text-2xl font-semibold text-white",children:"Feedback & support"})]}),m.jsx("div",{className:"w-full rounded-2xl bg-[rgba(255,255,255,0.02)] p-6",style:{border:"1px solid #2a2a2a"},children:c==="sent"?m.jsxs("div",{className:"flex items-start gap-3",children:[m.jsx(Nu,{className:"mt-0.5 h-5 w-5 flex-shrink-0 text-emerald-400","aria-hidden":"true"}),m.jsxs("div",{className:"min-w-0",children:[m.jsx("p",{className:"text-sm font-semibold text-white",children:"Thanks, we got it."}),m.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."}),m.jsx("button",{onClick:()=>{a(""),d("form")},className:"mt-4 cursor-pointer text-xs text-[#888] transition-colors hover:text-white",children:"Send more feedback"})]})]}):m.jsxs(m.Fragment,{children:[m.jsx("p",{className:"mb-4 text-xs text-[#666]",children:"Bugs, feature requests, or anything else. Tell us what's on your mind."}),h&&m.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:[m.jsx(Gu,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-red-400","aria-hidden":"true"}),m.jsx("p",{className:"text-xs text-red-300",children:h})]}),m.jsxs("label",{className:"block",children:[m.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"Your feedback"}),m.jsx("textarea",{autoFocus:!0,value:r,maxLength:BH,onChange:b=>a(b.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"})]}),m.jsxs("label",{className:"mt-4 block",children:[m.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"Your work email"}),m.jsx("input",{type:"email",value:s,onChange:b=>o(b.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"})]}),m.jsx("button",{onClick:()=>void g(),disabled:!p,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 HH({text:e,children:t,className:r=""}){const[a,s]=ee.useState(!1);return m.jsxs("span",{className:`relative inline-flex ${r}`,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),onFocus:()=>s(!0),onBlur:()=>s(!1),children:[t,a&&m.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 Ao({label:e,desc:t,slug:r,icon:a,surface:s,href:o=Yu,primary:c=!1}){return m.jsx(HH,{text:t,children:m.jsxs("a",{href:_i(o,r),target:"_blank",rel:"noopener noreferrer",onClick:()=>yr(r,s),className:c?"group inline-flex items-center gap-2 rounded-lg border border-white bg-white px-3 py-2 text-sm font-semibold text-black transition-colors hover:bg-[#e5e5e5]":"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:[m.jsx(a,{className:c?"h-4 w-4 text-black":"h-4 w-4 text-[#888] transition-colors group-hover:text-white","aria-hidden":"true"}),m.jsx("span",{children:e})]})})}const $H="Your findings stay on your machine. They're rendered here locally in your browser and never uploaded or stored by Strix.",L_=["critical","high","medium","low"],qH=500;function PH(){const[e,t]=ee.useState(null),[r,a]=ee.useState(null),[s,o]=ee.useState(null),[c,d]=ee.useState(null),[h,f]=ee.useState("overview"),[p,g]=ee.useState(null),[b,y]=ee.useState(null),[_,N]=ee.useState("report"),[S,w]=ee.useState(!1),[C,E]=ee.useState(!1),A=ee.useCallback(async()=>{try{g(await nH())}catch{}},[]),B=ee.useCallback(async()=>{try{y(await WU())}catch{}},[]);ee.useEffect(()=>{A(),B(),JU().then(F=>E(F.can_steer)).catch(()=>{})},[A,B]);const R=ee.useRef(!1);ee.useEffect(()=>{let F=!1,D;R.current=!1;const V=()=>{D=setTimeout(q,qH)},q=async()=>{if(!F)try{const{summary:Q,raw:J,finished:W}=await w2(e);if(F)return;if(W&&!R.current){R.current=!0;const fe=await w_(e);F||a(fe);return}const[te,oe]=await Promise.all([N2(e).catch(()=>({agents:[],events:[]})),E2(Q.runId,e).catch(()=>[])]);if(F)return;a(fe=>({summary:Q,raw:J,finished:W,transcript:te,vulnerabilities:oe,reportMarkdown:(fe==null?void 0:fe.reportMarkdown)??null})),V()}catch(Q){if(F)return;o(Q instanceof Error?Q.message:"Could not load run data."),V()}};return(async()=>{try{const Q=await w_(e);if(F)return;a(Q),Q.finished?R.current=!0:V()}catch(Q){if(F)return;o(Q instanceof Error?Q.message:"Could not load run data."),V()}})(),()=>{F=!0,D&&clearTimeout(D)}},[e]);const H=ee.useMemo(()=>r?KU(r.vulnerabilities):null,[r]),z=(r==null?void 0:r.vulnerabilities.find(F=>F.id===c))??null,Y=(r==null?void 0:r.transcript.agents.length)??0,j=(p==null?void 0:p.verified)===!0,I=ee.useMemo(()=>r?ZU(r.raw):[],[r]),Z=ee.useMemo(()=>{var D,V;const F=new Set;for(const q of(r==null?void 0:r.transcript.events)??[]){if(q.type!=="tool")continue;const Q=(D=q.data)==null?void 0:D.mcp_connection;typeof Q!="string"||!Q||((V=q.data)==null?void 0:V.status)==="running"&&F.add(Q)}return F},[r]),P=ee.useRef(!1);ee.useEffect(()=>{P.current=!1},[e]),ee.useEffect(()=>{P.current||!r||(r.finished?(P.current=!0,f("overview")):Y>0&&(P.current=!0,f("agents")))},[r,Y]);const k=ee.useCallback(F=>{P.current=!0,f(F)},[]),$=ee.useCallback(F=>{t(F),d(null),a(null),o(null),P.current=!1},[]),O=ee.useCallback((F,D)=>{yr("email_report",D),N("report"),w(F),k("email")},[k]),U=ee.useCallback(()=>O(!1,"sidebar"),[O]),K=ee.useCallback(()=>O(!0,"overview"),[O]),X=ee.useCallback(()=>{B(),k("history")},[B,k]),M=ee.useCallback(async()=>{await A(),await B()},[A,B]),L=ee.useCallback(async()=>{await rH(),await A(),await B()},[A,B]);return m.jsxs("div",{className:"min-h-screen bg-black text-white flex",children:[m.jsx(_H,{view:h,onSelectView:F=>{d(null),F==="history"?X():k(F)},issuesCount:(r==null?void 0:r.vulnerabilities.length)??0,agentCount:Y,mcpConnections:I,mcpInUse:Z,runCount:(b==null?void 0:b.count)??0,finished:(r==null?void 0:r.finished)??!1,verified:j,email:(p==null?void 0:p.email)??null,onOpenEmail:U,onOpenHistory:X,onForget:()=>void L()}),m.jsxs("div",{className:"flex-1 min-w-0",children:[m.jsx("div",{className:"border-b border-[#222]",children:m.jsxs("div",{className:"max-w-[88rem] mx-auto px-3 sm:px-6 py-4 flex items-center gap-1.5",children:[m.jsxs("a",{href:_i("https://app.strix.ai","logo"),target:"_blank",rel:"noopener noreferrer",onClick:()=>yr("logo","topbar"),className:"flex items-center gap-1.5 opacity-90 transition-opacity hover:opacity-100 lg:hidden",title:"Open Strix Cloud",children:[m.jsx("img",{src:"./logo.png",alt:"Strix",className:"w-10 h-8 object-cover"}),m.jsx("div",{className:"text-base text-white font-medium tracking-tight",children:"Strix"})]}),r&&m.jsx(GH,{finished:r.finished}),m.jsxs("div",{className:"ml-auto flex items-center gap-3",children:[j&&b&&!b.locked&&b.runs.length>0&&m.jsx(FH,{runs:b,activeRun:e,launchedName:yo((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:$}),m.jsxs("a",{href:_i(Yu,"run_in_cloud"),target:"_blank",rel:"noopener noreferrer",onClick:()=>yr("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",m.jsx(B_,{className:"w-3 h-3","aria-hidden":"true"})]})]})]})}),m.jsxs("div",{className:"max-w-[88rem] mx-auto px-3 sm:px-6 py-8 sm:py-12 space-y-6",children:[s&&!r&&h!=="history"&&h!=="email"&&m.jsxs("div",{className:"rounded-lg px-4 py-3 flex gap-3 items-start border border-red-500/30 bg-red-500/5",children:[m.jsx(Gu,{className:"w-5 h-5 flex-shrink-0 mt-0.5 text-red-400","aria-hidden":"true"}),m.jsx("p",{className:"text-sm text-red-300",children:s})]}),m.jsx("div",{className:"animate-page-in space-y-6",children:h==="email"?m.jsx(jH,{activeRun:e,auth:p,purpose:_,skipDisclosure:S,onAuthChanged:()=>{A(),B()},onExit:F=>f(F==="history"?"history":"overview")}):h==="feedback"?m.jsx(UH,{defaultEmail:(p==null?void 0:p.email)??null,onExit:F=>f(F)}):h==="history"?m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(Ys,{className:"w-5 h-5 text-[#888]","aria-hidden":"true"}),m.jsx("h1",{className:"text-2xl font-semibold text-white",children:"Past runs"})]}),m.jsx(MH,{runs:b,activeRun:e,onSelectRun:$,onVerified:()=>void M()})]}):!r&&!s?m.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-10 text-center",children:[m.jsx("div",{className:"w-6 h-6 mx-auto mb-3 rounded-full border-2 border-[#333] border-t-white animate-spin"}),m.jsx("p",{className:"text-sm text-[#888]",children:"Loading run data…"})]}):r&&H?m.jsxs(m.Fragment,{children:[m.jsx(YH,{summary:r.summary}),m.jsxs("div",{className:"flex gap-5 border-b border-[#2a2a2a] lg:hidden",children:[m.jsx(Pm,{active:h==="overview",onClick:()=>k("overview"),children:"Pentest Overview"}),m.jsxs(Pm,{active:h==="issues",onClick:()=>k("issues"),children:["Issues",r.vulnerabilities.length>0?` (${r.vulnerabilities.length})`:""]}),Y>0&&m.jsxs(Pm,{active:h==="agents",onClick:()=>k("agents"),children:["Agents (",Y,")"]})]}),h==="overview"?m.jsx(WH,{summary:r.summary,counts:H,total:r.vulnerabilities.length,reportMarkdown:r.reportMarkdown,raw:r.raw,finished:r.finished,onOpenEmail:K}):h==="agents"&&Y>0?m.jsx(JH,{run:r,canSteer:C}):z?m.jsxs("div",{className:"space-y-4",children:[m.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:[m.jsx(Ep,{className:"w-4 h-4"})," Back to all findings"]}),m.jsx(xD,{vulnerability:z})]}):m.jsx(XH,{vulnerabilities:r.vulnerabilities,finished:r.finished,onSelect:F=>d(F)})]}):null},`${e??"launched"}:${h}:${c??""}`)]})]}),m.jsx(IH,{message:$H})]})}function FH({runs:e,activeRun:t,launchedName:r,onSelect:a}){const[s,o]=ee.useState(!1),c=e.runs.find(h=>h.name===t),d=c?yo(c.target,c.name):r;return m.jsxs("div",{className:"relative",children:[m.jsxs("button",{onClick:()=>o(h=>!h),onBlur:()=>setTimeout(()=>o(!1),150),"aria-label":"Switch pentest",className:"flex items-center gap-2 rounded-lg border border-[#3a3a3a] bg-[rgba(255,255,255,0.05)] px-3 py-2 text-sm text-white transition-colors hover:border-[#555] hover:bg-[rgba(255,255,255,0.09)]",children:[m.jsx(Ys,{className:"h-4 w-4 flex-shrink-0 text-[#888]","aria-hidden":"true"}),m.jsx("span",{className:"flex-shrink-0 text-[#888]",children:"Pentest"}),m.jsx("span",{className:"max-w-[260px] truncate font-medium",children:d}),m.jsx(po,{className:"h-4 w-4 flex-shrink-0 text-[#aaa]","aria-hidden":"true"})]}),s&&m.jsxs("div",{className:"absolute right-0 z-50 mt-2 max-h-96 w-96 overflow-y-auto rounded-xl py-1.5 shadow-2xl",style:{border:"1px solid #3a3a3a",background:"#0a0a0a"},children:[m.jsx("div",{className:"border-b border-[#222] px-3 py-2 text-[11px] font-semibold uppercase tracking-wide text-[#666]",children:"Switch pentest"}),e.runs.map(h=>{const f=h.name===t;return m.jsxs("button",{onMouseDown:()=>a(h.name),className:`flex w-full items-center gap-2 px-3 py-2.5 text-left text-sm transition-colors hover:bg-[rgba(255,255,255,0.06)] ${f?"bg-[rgba(255,255,255,0.04)] text-white":"text-[#aaa]"}`,children:[m.jsxs("span",{className:"min-w-0 flex-1",children:[m.jsx("span",{className:"block truncate font-medium",children:yo(h.target,h.name)}),h.target&&m.jsx("span",{className:"block truncate font-mono text-xs text-[#666]",children:h.target})]}),f&&m.jsx("span",{className:"h-2 w-2 flex-shrink-0 rounded-full bg-emerald-400"})]},h.name)})]})]})}function GH({finished:e}){return e?m.jsxs("span",{className:"ml-3 inline-flex items-center gap-1.5 text-xs text-[#888]",children:[m.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-[#555]"}),"Complete"]}):m.jsxs("span",{className:"ml-3 inline-flex items-center gap-1.5 text-xs text-emerald-400",children:[m.jsxs("span",{className:"relative flex h-1.5 w-1.5",children:[m.jsx("span",{className:"absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75 animate-ping"}),m.jsx("span",{className:"relative inline-flex h-1.5 w-1.5 rounded-full bg-emerald-400"})]}),"Live"]})}function VH(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 YH({summary:e}){const t=VH(e.durationSeconds);return m.jsxs("div",{children:[m.jsx("h1",{className:"text-2xl font-semibold text-white",children:yo(e.targets[0]??null,e.runName??e.runId??"Pentest results")}),m.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&&m.jsx("span",{className:"font-mono text-[#aaa]",children:e.targets.join(", ")}),e.scanMode&&m.jsx(qm,{label:e.scanMode}),t&&m.jsx(qm,{label:t}),e.status&&m.jsx(qm,{label:e.status})]})]})}function qm({label:e}){return m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"text-[#333]",children:"·"}),m.jsx("span",{className:"capitalize",children:e})]})}function XH({vulnerabilities:e,finished:t,onSelect:r}){const a=[...e].sort((s,o)=>L_.indexOf(s.severity)-L_.indexOf(o.severity));return a.length===0?m.jsxs("div",{className:"space-y-4",children:[m.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 pentest is still running…"}),t&&m.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[m.jsx("p",{className:"text-sm font-medium text-white",children:"Stay ahead of new exposures"}),m.jsx("p",{className:"mt-0.5 mb-3 text-xs text-[#666]",children:"Attack surface monitoring catches new exposures for your org over time."}),m.jsx(Ao,{label:"Attack surface monitoring",desc:"Continuous coverage for your whole org.",slug:"asm",surface:"empty_state",icon:uT})]})]}):m.jsx("div",{className:"space-y-2",children:a.map(s=>m.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:[m.jsx("span",{className:`w-2.5 h-2.5 rounded-full flex-shrink-0 ${Cp(s.severity)}`,"aria-hidden":"true"}),m.jsxs("span",{className:"flex-1 min-w-0",children:[m.jsx("span",{className:"block text-sm font-medium text-white truncate",children:s.title}),s.target&&m.jsx("span",{className:"block text-xs text-[#666] font-mono truncate",children:s.target})]}),m.jsx("span",{className:`text-xs font-semibold px-2 py-0.5 rounded-full border capitalize ${ew[s.severity]}`,children:s.severity})]},s.id))})}function KH(e){return e.replace(/^\s*#{1,6}[ \t]+.*(?:\r?\n)+/,"").trimStart()}function ZH(e){const t=[];let r=null;for(const a of e.split(`
+`)}function nU({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?tU(eU(o)):null;return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-yellow-400/80 font-semibold text-sm",children:"Python"}),c&&m.jsx("span",{className:"text-[#888] text-[13px]",children:c})]}),a&&m.jsx(bg,{code:a,language:"python",collapsible:!0}),d&&m.jsx(Ei,{className:"text-[#666]",children:d})]})}function rU({args:e}){const t=e.targets,a=(Array.isArray(t)?t:[]).map(s=>typeof s=="object"&&s?s.original??null:null).filter(Boolean);return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:"Starting penetration test"}),a.length===1&&m.jsxs("span",{className:"text-[#888] text-[13px]",children:["on ",a[0]]})]}),a.length>1&&m.jsx("div",{className:"mt-1.5 space-y-0.5",children:a.map((s,o)=>m.jsxs("div",{className:"text-[13px] text-[#888]",children:[m.jsx("span",{className:"text-[#555] mr-1",children:"•"}),s]},o))})]})}function iU({args:e}){const t=e.name??"Unknown Agent",r=e.task??"";return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-[#888] text-[13px]",children:"subagent"}),m.jsx("span",{className:"text-purple-400 font-semibold text-sm",children:t})]}),r&&m.jsx("div",{className:"mt-1.5",children:m.jsx(qt,{text:r,maxLines:15})})]})}function aU(e){return e.toolName==="subagent_start_info"?m.jsx(iU,{...e}):m.jsx(rU,{...e})}function sU({args:e}){const t=e.executive_summary??"",r=e.methodology??"",a=e.technical_analysis??"",s=e.recommendations??"";return m.jsxs("div",{className:"space-y-3",children:[m.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:"Penetration test completed"}),t&&m.jsxs("div",{children:[m.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Executive Summary"}),m.jsx("div",{className:"mt-1",children:m.jsx(qt,{text:t,maxLines:25})})]}),r&&m.jsxs("div",{children:[m.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Methodology"}),m.jsx("div",{className:"mt-1",children:m.jsx(qt,{text:r,maxLines:25})})]}),a&&m.jsxs("div",{children:[m.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Technical Analysis"}),m.jsx("div",{className:"mt-1",children:m.jsx(qt,{text:a,maxLines:25})})]}),s&&m.jsxs("div",{children:[m.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Recommendations"}),m.jsx("div",{className:"mt-1",children:m.jsx(qt,{text:s,maxLines:25})})]}),!t&&!r&&!a&&!s&&m.jsx("div",{className:"text-[#555] text-xs",children:"Generating final report..."})]})}function lU({toolName:e,args:t,result:r}){if(e==="create_note"){const a=t.title??"",s=t.content??"",o=t.category??"general";return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note"}),m.jsxs("span",{className:"text-[#555] text-[13px]",children:["(",o,")"]})]}),a&&m.jsx("div",{className:"mt-1.5 text-[#999] text-[13px]",children:a}),s&&m.jsx("div",{className:"mt-1",children:m.jsx(da,{text:s})})]})}if(e==="delete_note")return m.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 m.jsxs("div",{children:[m.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note updated"}),a&&m.jsx("div",{className:"mt-1.5 text-[#999] text-[13px]",children:a}),s&&m.jsx("div",{className:"mt-1",children:m.jsx(da,{text:s})})]})}if(e==="get_note"){const a=r,s=a&&typeof a=="object"&&a.success?a.note:void 0;return m.jsxs("div",{children:[m.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note read"}),s&&m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"mt-1.5 text-[#999] text-[13px]",children:[s.title??"(untitled)",m.jsxs("span",{className:"text-[#555] ml-1",children:["(",s.category??"general",")"]}),(s.by_you||s.agent_name)&&m.jsxs("span",{className:"text-[#666] ml-1 text-xs",children:["by ",s.by_you?"you":s.agent_name]})]}),s.content&&m.jsx("div",{className:"mt-1",children:m.jsx(da,{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 m.jsxs("div",{children:[m.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"notes"}),s.length>0?m.jsx("div",{className:"mt-1.5 space-y-0.5",children:s.map((o,c)=>m.jsxs("div",{className:"text-[13px]",children:[m.jsx("span",{className:"text-[#555] mr-1",children:"-"}),m.jsx("span",{className:"text-[#999]",children:o.title??"(untitled)"}),m.jsxs("span",{className:"text-[#555] ml-1",children:["(",o.category??"general",")"]}),(o.by_you||o.agent_name)&&m.jsxs("span",{className:"text-[#666] ml-1 text-xs",children:["by ",o.by_you?"you":o.agent_name]}),o.content&&m.jsx("div",{className:"ml-3",children:m.jsx(da,{text:o.content})})]},c))}):m.jsx("div",{className:"mt-1 text-[#555] text-xs",children:"No notes"})]})}return m.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note"})}const oU={create_todo:{label:"Task added",Icon:Q_},list_todos:{label:"Plan",Icon:lC},update_todo:{label:"Task updated",Icon:lT},mark_todo_done:{label:"Task completed",Icon:F_},mark_todo_pending:{label:"Task reopened",Icon:gT},delete_todo:{label:"Task removed",Icon:OT}};function cU({status:e}){return e==="done"?m.jsx(F_,{className:"w-3.5 h-3.5 text-emerald-400/70 shrink-0"}):e==="in_progress"?m.jsx(yC,{className:"w-3.5 h-3.5 text-purple-400/70 shrink-0 animate-pulse"}):m.jsx(G_,{className:"w-3.5 h-3.5 text-[#444] shrink-0"})}function uU({todos:e,highlightId:t}){return m.jsx("div",{className:"space-y-0",children:e.map((r,a)=>{const s=r.status??"pending",o=t&&r.id===t;return m.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:[m.jsx("div",{className:"mt-[1px]",children:m.jsx(cU,{status:s})}),m.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 dU({toolName:e,args:t,result:r}){const a=oU[e]??{label:"Plan",Icon:hT},s=a.Icon,o=r;if(typeof o=="string"&&o.trim())return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(s,{className:"w-3.5 h-3.5 text-purple-400/60"}),m.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:a.label})]}),m.jsx("div",{className:"mt-1.5 text-[#888] text-[13px]",children:o.trim()})]});let c=[],d=null,h;if(o&&typeof o=="object"){if(d=o.error??null,o.success){const p=o.todos;c=Array.isArray(p)?p:[]}h=o.id??t.todo_id??void 0}const f=e!=="list_todos"?h:void 0;return c.length===0&&!d?m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(s,{className:"w-3.5 h-3.5 text-purple-400/60"}),m.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:a.label})]}):m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[m.jsx(s,{className:"w-3.5 h-3.5 text-purple-400/60"}),m.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:a.label})]}),d&&m.jsx("div",{className:"text-red-400/70 text-[13px] mb-2",children:d}),c.length>0&&m.jsx("div",{className:"rounded-lg border border-white/[0.06] bg-white/[0.015] px-3 py-2",children:m.jsx(uU,{todos:c,highlightId:f})})]})}function b_(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 b2({toolName:e,args:t,result:r}){const a=b_(t),s=b_(r);return m.jsxs("div",{children:[m.jsx("span",{className:"text-[#888] font-semibold text-sm",children:e.replace(/_/g," ")}),a&&m.jsx(Ei,{className:"text-[#777]",children:a}),s&&m.jsx(Ei,{className:"text-[#666]",children:s})]})}function fU({args:e}){const t=e.skills,r=(Array.isArray(t)?t:String(t??"").split(",")).map(a=>String(a).trim()).filter(Boolean);return m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:"Loading skill"}),r.length>0&&m.jsx("span",{className:"text-[#888] text-[13px]",children:r.join(", ")})]})}function y_({args:e}){const t=typeof e.message=="string"?e.message:"";return m.jsxs("div",{children:[t&&m.jsx(da,{text:t}),m.jsx("div",{className:t?"mt-1.5 text-[#888] text-[13px]":"text-[#888] text-[13px]",children:"waiting for your reply"})]})}const hU={reported:{label:"reported",color:"text-orange-400",Icon:Sp},no_issue_found:{label:"no issue found",color:"text-emerald-400",Icon:Su},ruled_out:{label:"ruled out",color:"text-emerald-400/70",Icon:Su},not_applicable:{label:"not applicable",color:"text-[#777]",Icon:EC},needs_follow_up:{label:"needs follow-up",color:"text-yellow-400",Icon:_C}},mU=["reported","needs_follow_up","no_issue_found","ruled_out","not_applicable"];function mo(e){const t=(e??"").trim().toLowerCase();return hU[t]??{label:t?t.replace(/_/g," "):"unrecorded",color:"text-[#777]",Icon:G_}}const pU={record_coverage:"Coverage recorded",update_coverage:"Coverage updated",list_coverage:"Coverage"};function bu({toolName:e}){return m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(V_,{className:"w-3.5 h-3.5 text-cyan-400/60"}),m.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:pU[e]??"Coverage"})]})}function gU({entry:e}){const{label:t,color:r,Icon:a}=mo(e.outcome),s=(e.previous_outcomes??[]).map(o=>mo(o).label).filter(Boolean);return m.jsxs("div",{className:"flex items-start gap-2.5 py-1.5",children:[m.jsx(a,{className:`w-3.5 h-3.5 shrink-0 mt-[2px] ${r}`}),m.jsxs("div",{className:"min-w-0",children:[m.jsxs("div",{className:"text-[13px] leading-snug",children:[m.jsx("span",{className:"text-[#bbb]",children:e.surface??"(unnamed surface)"}),e.risk_area&&m.jsxs("span",{className:"text-[#666]",children:[" · ",e.risk_area]})]}),m.jsxs("div",{className:"text-xs mt-0.5",children:[m.jsx("span",{className:r,children:t}),s.length>0&&m.jsxs("span",{className:"text-[#555]",children:[" (was ",s.join(" → "),")"]}),(e.by_you||e.agent_name)&&m.jsxs("span",{className:"text-[#555]",children:[" · ",e.by_you?"you":e.agent_name]})]}),e.evidence&&m.jsx("div",{className:"text-[#777] text-xs mt-1 leading-snug",children:e.evidence})]})]})}function xU({toolName:e,args:t,result:r}){const a=r;if(typeof a=="string"&&a.trim())return m.jsxs("div",{children:[m.jsx(bu,{toolName:e}),m.jsx("div",{className:"mt-1.5 text-[#888] text-[13px]",children:a.trim()})]});const s=a&&typeof a=="object"?a:null,o=t.surface??"",c=t.risk_area??"",d=t.evidence??"";if(s&&!s.success)return m.jsxs("div",{children:[m.jsx(bu,{toolName:e}),(o||c)&&m.jsxs("div",{className:"mt-1.5 text-[13px] text-[#bbb]",children:[o,c&&m.jsxs("span",{className:"text-[#666]",children:[" · ",c]})]}),m.jsx("div",{className:"mt-1 text-red-400/70 text-[13px]",children:s.error??"Coverage call failed"})]});if(e==="list_coverage"){const y=s==null?void 0:s.entries,_=Array.isArray(y)?y:[],N=(s==null?void 0:s.outcome_counts)??{},S=(s==null?void 0:s.total_count)??0;return m.jsxs("div",{children:[m.jsx(bu,{toolName:e}),Object.keys(N).length>0&&m.jsx("div",{className:"mt-2 flex items-center gap-3 flex-wrap",children:mU.filter(w=>N[w]).map(w=>{const{label:C,color:E}=mo(w);return m.jsxs("span",{className:`text-xs ${E}`,children:[C,": ",N[w]]},w)})}),_.length>0?m.jsx("div",{className:"mt-2 rounded-lg border border-white/[0.06] bg-white/[0.015] px-3 py-1 divide-y divide-white/[0.04]",children:_.map((w,C)=>m.jsx(gU,{entry:w},w.entry_id??C))}):m.jsx("div",{className:"mt-1.5 text-[#555] text-xs",children:S===0?"No surfaces recorded yet":"No surfaces match this filter"})]})}const h=(s==null?void 0:s.outcome)??"",f=(s==null?void 0:s.previous_outcome)??"",{label:p,color:g,Icon:b}=mo(h);return m.jsxs("div",{children:[m.jsx(bu,{toolName:e}),m.jsxs("div",{className:"mt-2 flex items-start gap-2.5",children:[m.jsx(b,{className:`w-3.5 h-3.5 shrink-0 mt-[2px] ${g}`}),m.jsxs("div",{className:"min-w-0",children:[m.jsxs("div",{className:"text-[13px] leading-snug text-[#bbb]",children:[o||(s!=null&&s.entry_id?`entry ${s.entry_id}`:"(unnamed surface)"),c&&m.jsxs("span",{className:"text-[#666]",children:[" · ",c]})]}),m.jsxs("div",{className:"text-xs mt-0.5",children:[f&&m.jsxs("span",{className:"text-[#666]",children:[mo(f).label," → "]}),m.jsx("span",{className:g,children:p})]}),d&&m.jsx("div",{className:"text-[#777] text-xs mt-1 leading-snug",children:d})]})]})]})}const bU={get_threat_model:{label:"Threat model",Icon:Yu},save_threat_model:{label:"Threat model saved",Icon:bT},amend_threat_model:{label:"Threat model amended",Icon:Q_}};function yU({toolName:e,args:t,result:r}){const a=bU[e]??{label:"Threat model",Icon:Yu},s=a.Icon,o=t.target??"",c=r,d=m.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[m.jsx(s,{className:"w-3.5 h-3.5 text-blue-400/60"}),m.jsx("span",{className:"text-blue-400/80 font-semibold text-sm",children:a.label}),o&&m.jsx("span",{className:"text-[#666] font-mono text-xs",children:o})]});if(typeof c=="string"&&c.trim())return m.jsxs("div",{children:[d,m.jsx("div",{className:"mt-1.5 text-[#888] text-[13px]",children:c.trim()})]});const h=c&&typeof c=="object"?c:null;if(h&&!h.success)return m.jsxs("div",{children:[d,m.jsx("div",{className:"mt-1.5 text-red-400/70 text-[13px]",children:h.error??"Threat model call failed"})]});if(e==="get_threat_model"){if(h&&!h.found)return m.jsxs("div",{children:[d,m.jsx("div",{className:"mt-1.5 text-[#555] text-xs",children:"No model derived for this target yet"})]});const g=h==null?void 0:h.amendments,b=Array.isArray(g)?g:[];return m.jsxs("div",{children:[d,b.length>0&&m.jsxs("div",{className:"mt-2",children:[m.jsxs("span",{className:"text-amber-400/70 text-xs font-semibold",children:[b.length," amendment",b.length===1?"":"s"]}),m.jsx("span",{className:"text-[#555] text-xs",children:" — later statements win"}),m.jsx("div",{className:"mt-1 space-y-1",children:b.map((y,_)=>m.jsxs("div",{className:"text-xs leading-snug",children:[m.jsx("span",{className:"text-[#666]",children:y.agent_name??"unknown agent"}),y.content&&m.jsxs("span",{className:"text-[#999]",children:[": ",y.content]})]},_))})]}),typeof(h==null?void 0:h.content)=="string"&&h.content.trim()&&m.jsx("div",{className:"mt-2",children:m.jsx(qt,{text:h.content,maxLines:14})})]})}if(e==="amend_threat_model"){const g=t.addendum??"",b=h==null?void 0:h.amendment_count;return m.jsxs("div",{children:[d,b!=null&&m.jsxs("div",{className:"mt-1.5 text-[#666] text-xs",children:[b," amendment",b===1?"":"s"," on this model"]}),g&&m.jsx("div",{className:"mt-1.5",children:m.jsx(qt,{text:g,maxLines:10})})]})}const f=(h==null?void 0:h.amendments_cleared)??0,p=t.content??"";return m.jsxs("div",{children:[d,f>0&&m.jsxs("div",{className:"mt-1.5 flex items-center gap-1.5 text-yellow-400/80 text-xs",children:[m.jsx(Sp,{className:"w-3 h-3 shrink-0"}),m.jsxs("span",{children:["cleared ",f," amendment",f===1?"":"s"]})]}),p&&m.jsx("div",{className:"mt-2",children:m.jsx(qt,{text:p,maxLines:14})})]})}function vU(e){return!e||typeof e!="object"||Array.isArray(e)?[]:Object.entries(e).map(([t,r])=>{const a=typeof r=="string"?r:JSON.stringify(r);return`${t}: ${a??String(r)}`})}function _U(e){let t=e;if(typeof t=="string")try{t=JSON.parse(t)}catch{return[]}const r=t&&typeof t=="object"&&!Array.isArray(t)?t.connections:null;return Array.isArray(r)?r.flatMap(a=>{if(!a||typeof a!="object"||Array.isArray(a))return[];const s=a,o=typeof s.name=="string"&&s.name.trim()?s.name.trim():typeof s.id=="string"?s.id.trim():"";if(!o)return[];const c=typeof s.tool_count=="number"?s.tool_count:null,d=s.dead===!0;return[{name:o,toolCount:c,dead:d}]}):[]}const v_=600;function wU(e){if(typeof e=="string"){const t=e.trim();return t?t.length>v_?`${t.slice(0,v_)}…`:t:null}return null}function EU({toolName:e,mcpTool:t,mcpConnection:r,args:a,result:s,status:o}){const c=vU(a),d=o==="failed"||o==="error",h=d?wU(s):null,f=e==="describe_mcp",p=e==="list_mcps",g=p?_U(s):[];return m.jsxs("div",{children:[m.jsx("div",{className:"flex items-center gap-2 flex-wrap",children:p?m.jsx("span",{className:"text-[13px] text-[#555]",children:"Listing connected MCP servers"}):f?m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"text-[13px] text-[#555]",children:"Inspecting MCP server"}),r&&m.jsx("span",{className:"font-mono text-teal-300 font-semibold text-sm",children:r})]}):m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"font-mono text-teal-300 font-semibold text-sm",children:t||e}),m.jsx("span",{className:"text-[13px] text-[#555]",children:"via MCP server"}),r&&m.jsx("span",{className:"text-[13px] text-teal-400/80",children:r})]})}),c.length>0&&m.jsx("div",{className:"mt-1 font-mono text-[13px] leading-relaxed",children:c.map(b=>m.jsx("div",{className:"text-[#777] break-all",children:b},b))}),g.length>0&&m.jsx("div",{className:"mt-1 font-mono text-[13px] leading-relaxed",children:g.map(b=>m.jsxs("div",{className:`break-all${b.dead?" opacity-50":""}`,children:[m.jsx("span",{className:"text-teal-300",children:b.name}),b.dead?m.jsx("span",{className:"text-red-400/80",children:" · offline"}):b.toolCount!==null&&m.jsxs("span",{className:"text-[#555]",children:[" ","· ",b.toolCount," ",b.toolCount===1?"tool":"tools"]})]},b.name))}),m.jsxs("div",{className:"mt-1 text-[13px]",children:[o==="running"&&m.jsx("span",{className:"text-[#666]",children:"Running"}),o==="completed"&&m.jsx("span",{className:"text-emerald-400/80",children:"✓ Done"}),d&&m.jsx("span",{className:"text-red-400/80",children:"✗ Failed"})]}),h&&m.jsx("pre",{className:"mt-1 font-mono text-[13px] leading-relaxed whitespace-pre-wrap break-words text-red-400/70",children:h})]})}const Ga={terminal:{renderer:x7,icon:ew,color:"text-emerald-400"},python:{renderer:nU,icon:TC,color:"text-yellow-400"},browser:{renderer:y7,icon:K_,color:"text-blue-400"},filesystem:{renderer:v7,icon:LC,color:"text-sky-400"},proxy:{renderer:V7,icon:U_,color:"text-purple-400",match:/request|sitemap|scope/},reporting:{renderer:j7,icon:wT,color:"text-red-400"},thinking:{renderer:Y7,icon:$_,color:"text-purple-400"},agents:{renderer:X7,icon:Ro,color:"text-cyan-400",match:/agent/},search:{renderer:K7,icon:vT,color:"text-amber-400"},lifecycle:{renderer:aU,icon:X_,color:"text-emerald-400"},notes:{renderer:lU,icon:TT,color:"text-amber-400",match:/note/},skills:{renderer:fU,icon:Gm,color:"text-emerald-400"},todos:{renderer:dU,icon:WC,color:"text-purple-400",match:/todo/},coverage:{renderer:xU,icon:V_,color:"text-cyan-400",match:/coverage/},threatModel:{renderer:yU,icon:Yu,color:"text-blue-400",match:/threat_model/},telemetry:{renderer:b2,icon:Gm,color:"text-[#555]"},mcp:{renderer:EU,icon:Z_,color:"text-teal-400"}},NU={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","update_vulnerability_report","delete_vulnerability_report","list_reports","get_report"],thinking:["think"],agents:["create_agent","agent_finish","send_message_to_agent","wait_for_agents","view_agent_graph","stop_agent"],search:["web_search"],lifecycle:["scan_start_info","subagent_start_info","finish_scan","wait_for_user","respond_to_user"],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"],coverage:["record_coverage","update_coverage","list_coverage"],threatModel:["get_threat_model","save_threat_model","amend_threat_model"],telemetry:["sandbox_error_details","llm_error_details"],mcp:["list_mcps"]},SU=Object.fromEntries(Object.entries(NU).flatMap(([e,t])=>t.map(r=>[r,e]))),kU={finish_scan:sU,wait_for_user:y_,respond_to_user:y_,apply_patch:C7,view_image:M7,list_reports:m_,get_report:m_,delete_vulnerability_report:L7},CU={agent_finish:{icon:X_,color:"text-cyan-400"},send_message_to_agent:{icon:Jc,color:"text-cyan-400"},wait_for_agents:{icon:Jc,color:"text-cyan-400"},wait_for_user:{icon:Jc,color:"text-emerald-400"},respond_to_user:{icon:Jc,color:"text-emerald-400"},view_agent_graph:{icon:jC,color:"text-cyan-400"},stop_agent:{icon:H_,color:"text-red-400"},scan_start_info:{icon:Yu,color:"text-emerald-400"},subagent_start_info:{icon:Ro,color:"text-purple-400"},view_image:{icon:XC,color:"text-sky-400"}},TU=Ga.telemetry;function y2(e){var r;const t=SU[e];if(t)return t;for(const[a,s]of Object.entries(Ga))if((r=s.match)!=null&&r.test(e))return a;return null}function AU(e,t){if(t)return Ga.mcp.renderer;const r=kU[e];if(r)return r;const a=y2(e);return a?Ga[a].renderer:b2}function MU(e,t){if(t)return{icon:Ga.mcp.icon,color:Ga.mcp.color};const r=CU[e];if(r)return r;const a=y2(e),s=a?Ga[a]:TU;return{icon:s.icon,color:s.color}}const OU=30;function RU({role:e,content:t}){const r=e==="user"||e==="human";return m.jsxs("div",{children:[m.jsx("span",{className:`font-semibold text-sm ${r?"text-blue-400/80":"text-purple-400/80"}`,children:r?"User":"Thinking"}),m.jsx("div",{className:"mt-1.5 italic text-[#888]",children:m.jsx(qt,{text:t,maxLines:OU})})]})}class jU extends ee.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?m.jsx("span",{className:"text-[#555] font-semibold text-sm",children:this.props.toolName.replace(/_/g," ")}):this.props.children}}function DU(e){const t=AU(e.toolName,e.mcpConnection);return m.jsx(jU,{toolName:e.toolName,children:m.jsx(t,{...e})})}function v2(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 __(e){return typeof e=="string"&&e?e:null}function _2(e){const t=v2(e);return t&&typeof t=="object"&&!Array.isArray(t)?t:t==null?{}:{__raw:typeof t=="string"?t:JSON.stringify(t)}}function w_(e){const t=/(\d+)$/.exec(e);return t?parseInt(t[1],10):0}function _g(e){var r;const t=(r=e.data)==null?void 0:r.role;return e.type==="chat"&&(t==="user"||t==="human")}function LU(e){var t;return _g(e)&&String(((t=e.data)==null?void 0:t.content)??"").startsWith("[Message from ")}function zU(e){const t=new Set;let r=!1;for(const a of e)if(_g(a)){if(LU(a)){t.add(a.id);continue}r||(r=!0,t.add(a.id))}return t}const IU={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 BU(e){return e==="completed"?"completed":e==="running"?"running":e==="failed"||e==="crashed"?"failed":e}function UU(e,t){var d;const r=new Map;for(const h of e)if(h.parent_id){const f=r.get(h.parent_id)??[];f.push(h.id),r.set(h.parent_id,f)}const a=new Map,s=new Map,o=new Map;for(const h of t)if(h.type==="tool"){if(a.set(h.agent_id,(a.get(h.agent_id)??0)+1),((d=h.data)==null?void 0:d.tool_name)==="create_agent"){const f=_2(h.data.args),p=f.name??f.agent_name??"",g=f.task??"";p&&g&&o.set(p,g)}}else _g(h)||s.set(h.agent_id,(s.get(h.agent_id)??0)+1);const c=new Map;for(const h of e)c.set(h.id,{id:h.id,name:h.name,task:o.get(h.name)??"",status:BU(h.status),parentId:h.parent_id,children:r.get(h.id)??[],createdAt:h.created_at,toolCount:a.get(h.id)??0,messageCount:s.get(h.id)??0});return c}function HU({agent:e,events:t,showHeader:r=!0}){const a=ee.useMemo(()=>{const c=t.filter(h=>h.agent_id===e.id).sort((h,f)=>w_(h.id)-w_(f.id)),d=zU(c);return c.filter(h=>!d.has(h.id))},[t,e.id]),s=a.filter(c=>c.type==="tool").length,o=a.length-s;return m.jsxs("div",{children:[r&&m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"flex items-center gap-2 flex-wrap mb-1",children:[m.jsx("span",{className:"text-base font-semibold text-white truncate",children:e.name}),m.jsx("span",{className:`flex-shrink-0 text-xs font-medium capitalize px-2 py-0.5 rounded-full border ${IU[e.status]??"text-[#aaa] border-[#333] bg-[#1a1a1a]"}`,children:e.status}),m.jsx("span",{className:"font-mono text-xs text-[#555]",children:e.id})]}),m.jsxs("p",{className:"text-xs text-[#666] mb-4",children:[o," message",o===1?"":"s"," · ",s," tool call",s===1?"":"s"]})]}),a.length===0?m.jsx("p",{className:"text-sm text-[#666]",children:"No recorded activity for this agent."}):m.jsx("div",{className:"py-1",children:a.map((c,d)=>{var w,C,E,A,B,R,H,z;const h=d===a.length-1,f=c.type==="tool",p=f?String(((w=c.data)==null?void 0:w.tool_name)??"tool"):"",g=f?"":String(((C=c.data)==null?void 0:C.role)??"assistant"),b=__((E=c.data)==null?void 0:E.mcp_connection),y=__((A=c.data)==null?void 0:A.mcp_tool);let _,N;if(f){const Y=MU(p,b);_=Y.icon,N=Y.color}else{const Y=g==="user"||g==="human";_=Y?Ro:$_,N=Y?"text-blue-400":"text-purple-400"}const S=f?String(((B=c.data)==null?void 0:B.status)??"completed"):"completed";return m.jsxs("div",{className:"flex gap-3",children:[m.jsxs("div",{className:"flex flex-col items-center shrink-0",children:[m.jsx("div",{className:`w-[30px] h-[30px] rounded-full bg-black border flex items-center justify-center shrink-0 ${f&&S==="running"?"border-blue-500/40 animate-pulse":f&&S==="failed"?"border-red-500/30":"border-[#222]"}`,children:m.jsx(_,{className:`w-3.5 h-3.5 ${N}`})}),!h&&m.jsx("div",{className:"w-px flex-1 bg-[#1a1a1a] mt-1"})]}),m.jsx("div",{className:"flex-1 min-w-0 pt-[5px] pb-6",children:f?m.jsx(DU,{toolName:p,mcpConnection:b,mcpTool:y,args:_2((R=c.data)==null?void 0:R.args),result:v2((H=c.data)==null?void 0:H.result)??null,status:S}):m.jsx(RU,{role:g,content:String(((z=c.data)==null?void 0:z.content)??"")})})]},c.id)})})]})}class Pu extends Error{constructor(t){super(t),this.name="RunParseError"}}const $U=["critical","high","medium","low"];function qU(e){const t=String(e??"").toLowerCase().trim();return $U.includes(t)?t:"low"}function PU(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 FU(e){return typeof e=="number"&&Number.isFinite(e)?e:null}function w2(e,t){try{return JSON.parse(e)}catch{throw new Pu(`${t} isn't valid JSON. Make sure you selected a Strix run directory.`)}}function GU(e){const t=w2(e,"run.json");if(!t||typeof t!="object"||Array.isArray(t))throw new Pu("run.json is not an object.");const r=t,a=[],s=r.targets_info;if(Array.isArray(s)){for(const y of s)if(y&&typeof y=="object"){const _=y.original;typeof _=="string"&&_&&a.push(_)}}const o=Ot(r.start_time),c=Ot(r.end_time);let d=null;if(o&&c){const y=new Date(o).getTime(),_=new Date(c).getTime();!Number.isNaN(y)&&!Number.isNaN(_)&&_>=y&&(d=Math.round((_-y)/1e3))}let h=null,f=null,p=null,g=null;const b=r.scan_results;if(b&&typeof b=="object"){const y=b;h=Ot(y.executive_summary),f=Ot(y.technical_analysis),p=Ot(y.methodology),g=Ot(y.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:h,technicalAnalysis:f,methodology:p,recommendations:g}}function VU(){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 YU(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{...VU(),id:Ot(e.id)??`vuln-${t+1}`,scan_id:r,title:Ot(e.title)??"Untitled finding",description:Ot(e.description)??"",severity:qU(e.severity),status:"open",created_at:PU(e.timestamp),cve:Ot(e.cve),cvss:FU(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 XU(e,t=null){const r=w2(e,"vulnerabilities.json");if(!Array.isArray(r))throw new Pu("vulnerabilities.json is not a JSON array.");return r.map((a,s)=>{if(!a||typeof a!="object")throw new Pu(`vulnerabilities.json entry #${s+1} is not an object.`);return YU(a,s,t)})}function KU(e){const t={critical:0,high:0,medium:0,low:0};for(const r of e)t[r.severity]+=1;return t}function ZU(e){const t=e==null?void 0:e.mcp_connection_status;return Array.isArray(t)?t.flatMap(r=>{if(!r||typeof r!="object"||Array.isArray(r))return[];const a=r,s=typeof a.name=="string"?a.name.trim():"";if(!s)return[];const o=typeof a.provider=="string"&&a.provider.trim()?a.provider.trim():null,c=typeof a.tool_count=="number"?a.tool_count:0,d=a.dead===!0;return[{name:s,provider:o,toolCount:c,dead:d}]}):[]}async function es(e){const t=await fetch(e,{cache:"no-store"});if(!t.ok)throw new Error(`${e} responded ${t.status}`);return t.json()}function fd(e){return e?`?run=${encodeURIComponent(e)}`:""}async function E2(e){const t=await es("/api/run"+fd(e)),r=GU(JSON.stringify(t)),a=t.finished===!0;return{summary:r,raw:t,finished:a}}async function N2(e,t){const r=await es("/api/vulnerabilities"+fd(t));return XU(JSON.stringify(r),e)}async function QU(e){const t=await es("/api/report"+fd(e));return(t==null?void 0:t.markdown)??null}async function S2(e){const t=await es("/api/transcript"+fd(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 E_(e){const{summary:t,raw:r,finished:a}=await E2(e),[s,o,c]=await Promise.all([N2(t.runId,e).catch(()=>[]),QU(e).catch(()=>null),S2(e).catch(()=>({agents:[],events:[]}))]);return{summary:t,raw:r,finished:a,vulnerabilities:s,reportMarkdown:o,transcript:c}}async function il(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 WU(){const e=await es("/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 JU(){const e=await es("/api/capabilities");return{can_steer:(e==null?void 0:e.can_steer)===!0}}async function eH(e,t){const{ok:r,data:a}=await il("/api/agents/steer",{agent_id:e,message:t});return r&&a.ok===!0?{ok:!0}:{ok:!1,error:String(a.error??"unavailable")}}async function tH(e,t){const{ok:r,data:a}=await il("/api/feedback",{message:e,email:t});return r&&a.ok===!0?{ok:!0}:{ok:!1,error:String(a.error??"unavailable")}}async function nH(){const e=await es("/api/auth/status");return{verified:(e==null?void 0:e.verified)===!0,email:(e==null?void 0:e.email)??null}}async function k2(e){const{ok:t,data:r}=await il("/api/auth/otp/start",{email:e});return t&&r.ok===!0?{ok:!0}:{ok:!1,error:String(r.error??"unavailable")}}async function C2(e,t){const{ok:r,data:a}=await il("/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 rH(){await il("/api/auth/forget",{})}async function iH(e){const{ok:t,data:r}=await il("/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 Us="__root__";function T2({agents:e,fixedAgentId:t,className:r}){const a=ee.useRef(null),[s,o]=ee.useState(!1),[c,d]=ee.useState(!1),[h,f]=ee.useState(""),[p,g]=ee.useState(!1),[b,y]=ee.useState(null),_=t!=null,N=ee.useMemo(()=>e.find(I=>!I.parent_id)??e[0]??null,[e]),S=ee.useMemo(()=>e.filter(I=>I.parent_id&&I.status==="running"),[e]),[w,C]=ee.useState(Us),[E,A]=ee.useState(!1);ee.useEffect(()=>{w!==Us&&!S.some(I=>I.id===w)&&C(Us)},[w,S]);const{targetId:B,targetName:R}=ee.useMemo(()=>{if(_){const Z=e.find(P=>P.id===t)??null;return{targetId:t??null,targetName:(Z==null?void 0:Z.name)??"this agent"}}if(w===Us)return{targetId:(N==null?void 0:N.id)??null,targetName:"Root agent"};const I=e.find(Z=>Z.id===w)??null;return{targetId:(I==null?void 0:I.id)??(N==null?void 0:N.id)??null,targetName:(I==null?void 0:I.name)??"Root agent"}},[e,t,_,N,w]),H=h.trim().length===0;ee.useLayoutEffect(()=>{const I=a.current;I&&(I.style.height="auto",I.style.height=`${I.scrollHeight}px`)},[h]);const z=ee.useCallback(()=>{o(!0),requestAnimationFrame(()=>{var I;return(I=a.current)==null?void 0:I.focus()})},[]),Y=ee.useCallback(()=>{o(!1),d(!1),A(!1)},[]),j=ee.useCallback(async()=>{if(p)return;const I=h.trim();if(!I||!B)return;g(!0),y(null);const Z=R,P=await eH(B,I);g(!1),P.ok?(f(""),y(`Sent to ${Z}`),Mr("agent_steered")):P.error==="not_delivered"?y("Could not reach that agent (it may have finished)."):y("Could not send that message. Try again.")},[p,h,B,R]);return s?m.jsxs("div",{className:br("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:[m.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-white/[0.06] px-5 py-3",children:[m.jsxs("div",{className:"min-w-0",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(Fm,{className:"h-4 w-4 text-[#666]"}),m.jsx("p",{className:"text-sm font-medium text-white",children:"Live prompt"})]}),m.jsx("p",{className:"mt-0.5 text-xs text-[#777]",children:"Connected"})]}),m.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[_?m.jsxs("div",{className:"rounded-full border border-white/[0.08] bg-white/[0.03] px-3 py-1 text-xs text-[#aaa]",children:["Target: ",m.jsx("span",{className:"text-white",children:R})]}):m.jsxs("div",{className:"flex items-center gap-1.5",children:[m.jsx("span",{className:"text-xs text-[#aaa]",children:"Target:"}),m.jsxs("div",{className:"relative",children:[m.jsxs("button",{type:"button",onClick:()=>A(I=>!I),onBlur:()=>requestAnimationFrame(()=>A(!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:[m.jsx("span",{className:"max-w-[140px] truncate",children:R}),m.jsx(po,{className:"h-3.5 w-3.5 text-[#999]"})]}),E&&m.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:[m.jsx(N_,{label:"Root agent",active:w===Us,onSelect:()=>{C(Us),A(!1)}}),S.map(I=>m.jsx(N_,{label:I.name,active:w===I.id,onSelect:()=>{C(I.id),A(!1)}},I.id))]})]})]}),m.jsx("button",{type:"button",onClick:Y,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:m.jsx(po,{className:"h-4 w-4"})})]})]}),m.jsx("div",{className:"px-5 pt-4 pb-3",children:m.jsx("textarea",{ref:a,rows:1,value:h,onChange:I=>f(I.target.value),onFocus:()=>d(!0),onBlur:()=>d(!1),onKeyDown:I=>{I.key==="Enter"&&!I.shiftKey&&(I.preventDefault(),j())},placeholder:"Send a live prompt to the running pentest…",maxLength:4e3,disabled:p,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"})}),m.jsxs("div",{className:"flex items-center justify-between gap-3 px-4 pb-4",children:[m.jsx("div",{className:"text-xs text-[#666]",children:b??"Press Enter to send."}),m.jsxs("button",{type:"button",onClick:I=>{I.stopPropagation(),j()},disabled:p||H,className:br("inline-flex h-10 min-w-[112px] items-center justify-center gap-2 rounded-full px-4 text-sm font-medium transition-colors",p||H?"bg-white/[0.08] text-[#666]":"bg-white text-black hover:bg-neutral-200"),children:[p?m.jsx(Ps,{className:"h-4 w-4 animate-spin"}):m.jsx(Qk,{className:"h-4 w-4",strokeWidth:2.5}),m.jsx("span",{children:"Send prompt"})]})]})]}):m.jsxs("button",{type:"button",onClick:z,className:br("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:[m.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[m.jsx(Fm,{className:"h-4 w-4 shrink-0 text-[#666]"}),m.jsx("span",{className:"truncate text-sm font-medium text-white",children:"Guide the agent"})]}),m.jsx(P_,{className:"h-4 w-4 shrink-0 text-[#777]"})]})}function N_({label:e,active:t,onSelect:r}){return m.jsx("button",{type:"button",role:"option","aria-selected":t,onMouseDown:a=>{a.preventDefault(),r()},className:br("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 aH={completed:"bg-emerald-400",running:"bg-blue-400",waiting:"bg-yellow-400",stopped:"bg-[#888]",crashed:"bg-red-400",failed:"bg-red-400"},sH=80;function lH({open:e,agent:t,events:r,steerable:a,onClose:s}){const o=ee.useRef(null),c=ee.useRef(!1),[d,h]=ee.useState(e),[f,p]=ee.useState(e?"open":"closed"),[g,b]=ee.useState(!1),y=ee.useRef(t);ee.useEffect(()=>{t&&(y.current=t)},[t]);const _=t??y.current;ee.useEffect(()=>{if(e){h(!0),p("open");return}p("closed");const S=setTimeout(()=>h(!1),140);return()=>clearTimeout(S)},[e]),ee.useEffect(()=>{if(!d){b(!1);return}const S=requestAnimationFrame(()=>b(!0));return()=>cancelAnimationFrame(S)},[d]);const N=ee.useCallback(()=>{const S=o.current;S&&(c.current=S.scrollHeight-S.scrollTop-S.clientHeight<sH)},[]);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=C=>{C.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:m.jsx("div",{"data-state":f,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:m.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:[m.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-[#222] px-5 py-3.5",children:[m.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[m.jsx("span",{className:`h-2 w-2 flex-shrink-0 rounded-full ${aH[_.status]??"bg-[#888]"}`}),m.jsx("span",{className:"truncate text-sm font-semibold text-white",children:_.name}),m.jsx("span",{className:"flex-shrink-0 font-mono text-xs text-[#555]",children:_.id})]}),m.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:m.jsx(kp,{className:"h-4 w-4"})})]}),m.jsx("div",{ref:o,onScroll:N,className:"flex-1 overflow-y-auto p-5",children:g&&m.jsx(HU,{agent:_,events:r,showHeader:!1})}),a&&m.jsx("div",{className:"border-t border-[#222] px-5 py-3",children:m.jsx(T2,{agents:[_],fixedAgentId:_.id,className:"mt-0"})})]})})}var A2={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},S_=fa.createContext&&fa.createContext(A2),oH=["attr","size","title"];function cH(e,t){if(e==null)return{};var r,a,s=uH(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 uH(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 Fu(){return Fu=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},Fu.apply(null,arguments)}function k_(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 Gu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?k_(Object(r),!0).forEach(function(a){dH(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k_(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function dH(e,t,r){return(t=fH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fH(e){var t=hH(e,"string");return typeof t=="symbol"?t:t+""}function hH(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 M2(e){return e&&e.map((t,r)=>fa.createElement(t.tag,Gu({key:r},t.attr),M2(t.child)))}function wg(e){return t=>fa.createElement(mH,Fu({attr:Gu({},e.attr)},t),M2(e.child))}function mH(e){var t=r=>{var a=e.attr,s=e.size,o=e.title,c=cH(e,oH),d=s||r.size||"1em",h;return r.className&&(h=r.className),e.className&&(h=(h?h+" ":"")+e.className),fa.createElement("svg",Fu({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,a,c,{className:h,style:Gu(Gu({color:e.color||r.color},r.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),o&&fa.createElement("title",null,o),e.children)};return S_!==void 0?fa.createElement(S_.Consumer,null,r=>t(r)):t(A2)}function pH(e){return wg({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 gH(e){return wg({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 O2(e){return wg({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 xH=[{icon:HC,label:"PR security reviews"},{icon:ST,label:"Attack surface monitoring"},{icon:HT,label:"Real-time threat intelligence"},{icon:aC,label:"Scheduled pentesting"},{icon:zT,label:"One-click autofix"},{icon:Z_,label:"Jira, Linear & Slack integrations"}];function bH({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 h=setTimeout(()=>o(!1),200);return()=>clearTimeout(h)},[e]),ee.useEffect(()=>{if(!s)return;const h=p=>{p.key==="Escape"&&t()};document.addEventListener("keydown",h);const f=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",h),document.body.style.overflow=f}},[s,t]),s?m.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:m.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:h=>h.stopPropagation(),children:[m.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:m.jsx(kp,{className:"h-4 w-4"})}),m.jsxs("div",{children:[m.jsx("h2",{className:"text-lg text-white",children:"Available in Strix Cloud"}),r&&m.jsx("p",{className:"mt-2 text-base leading-relaxed text-[#e5e5e5]",children:r})]}),m.jsxs("div",{className:"space-y-4 pt-4",children:[m.jsxs("div",{className:"rounded-xl border border-[#333] bg-[#0a0a0a] p-4 sm:rounded-lg",children:[m.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[m.jsx(Fm,{className:"h-4 w-4 text-blue-400"}),m.jsx("span",{className:"text-sm font-medium text-white",children:"Strix Cloud also includes"})]}),m.jsx("ul",{className:"space-y-2 text-sm text-[#888]",children:xH.map(h=>m.jsxs("li",{className:"flex items-center gap-2",children:[m.jsx(h.icon,{className:"h-3.5 w-3.5 text-[#555]"}),h.label]},h.label))})]}),m.jsxs("div",{className:"flex flex-col gap-2",children:[m.jsxs("a",{href:_i(Xu,"upgrade_try_free"),target:"_blank",rel:"noopener noreferrer",onClick:()=>yr("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",m.jsx(uy,{className:"h-3.5 w-3.5"})]}),m.jsxs("a",{href:_i(GT,"upgrade_view_plans"),target:"_blank",rel:"noopener noreferrer",onClick:()=>yr("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",m.jsx(uy,{className:"h-3 w-3"})]})]}),m.jsxs("p",{className:"text-center text-xs text-[#666]",children:["SSO, compliance reports, or a private deployment?"," ",m.jsx("a",{href:_i(Ap,"upgrade_book_demo"),target:"_blank",rel:"noopener noreferrer",onClick:()=>yr("upgrade_book_demo",a),className:"whitespace-nowrap text-[#aaa] underline underline-offset-2 transition-colors hover:text-white",children:"Try Strix Enterprise"})]})]})]})}):null}const Hm=160,$m=260,io=400,yH=140,C_="strix_viewer_sidebar_width",T_="strix_viewer_sidebar_collapsed";function vH(e,t){try{const r=localStorage.getItem(e),a=r?parseInt(r,10):NaN;return Number.isFinite(a)?a:t}catch{return t}}function _H({view:e,onSelectView:t,issuesCount:r,agentCount:a,mcpConnections:s,mcpInUse:o,runCount:c,finished:d,verified:h,email:f,onOpenEmail:p,onOpenHistory:g,onForget:b}){var P;const[y,_]=ee.useState(()=>{const k=vH(C_,$m);return Math.min(io,Math.max(Hm,k))}),[N,S]=ee.useState(()=>{try{return localStorage.getItem(T_)==="1"}catch{return!1}}),[w,C]=ee.useState(!1),[E,A]=ee.useState(!1),[B,R]=ee.useState(null),H=ee.useRef(null),z=(k,$)=>{yr(k,"sidebar"),R($)},Y=ee.useCallback(k=>{_(k);try{localStorage.setItem(C_,String(k))}catch{}},[]),j=ee.useCallback(k=>{S(k);try{localStorage.setItem(T_,k?"1":"0")}catch{}},[]),I=ee.useCallback(()=>{j(!1),Y($m)},[j,Y]),Z=ee.useCallback(k=>{k.preventDefault(),C(!0)},[]);return ee.useEffect(()=>{if(!w||N)return;const k=O=>{const U=O.clientX;U>=Hm&&U<=io?_(U):U>io&&_(io)},$=O=>{const U=O.clientX;U<yH?(j(!0),Y($m)):Y(Math.min(io,Math.max(Hm,U))),C(!1)};return window.addEventListener("mousemove",k),window.addEventListener("mouseup",$),()=>{window.removeEventListener("mousemove",k),window.removeEventListener("mouseup",$)}},[w,N,j,Y]),ee.useEffect(()=>{if(!E)return;const k=$=>{H.current&&!H.current.contains($.target)&&A(!1)};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[E]),m.jsxs(m.Fragment,{children:[N&&m.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:I,title:"Expand sidebar"}),m.jsxs("aside",{className:br("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",!w&&"transition-[width] duration-200 ease-out"),style:{width:N?0:y},children:[m.jsx("header",{className:"relative flex flex-col gap-1 pt-1 min-w-[160px]",children:m.jsx("div",{className:"flex flex-row py-1 px-2",children:m.jsxs("div",{className:"flex h-10 w-full flex-row items-center",children:[m.jsxs("a",{href:_i("https://app.strix.ai","logo"),target:"_blank",rel:"noopener noreferrer",onClick:()=>yr("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:[m.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:m.jsx("span",{className:"text-[10px] font-semibold text-white",children:"S"})}),m.jsxs("span",{className:"flex flex-1 flex-row items-center gap-2 min-w-0",children:[m.jsx("span",{className:"truncate min-w-0 text-[14px] font-medium text-[#ededed]",children:"Strix"}),m.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"})]})]}),m.jsx("a",{href:_i("https://app.strix.ai","logo"),target:"_blank",rel:"noopener noreferrer",onClick:()=>yr("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:m.jsx(mC,{className:"h-4 w-4 text-[#666]"})})]})})}),m.jsx("nav",{className:"relative min-w-[160px] flex-1 overflow-y-auto overflow-x-clip scrollbar-thin pb-10 pt-2",children:m.jsxs("div",{className:"relative flex flex-col gap-px px-2",children:[m.jsx(yi,{icon:m.jsx(NH,{}),label:"Pentest Overview",active:e==="overview",onClick:()=>t("overview")}),m.jsx(yi,{icon:m.jsx(Sp,{className:"h-4 w-4"}),label:"Issues",count:r>0?r:void 0,active:e==="issues",onClick:()=>t("issues")}),a>0&&m.jsx(yi,{icon:m.jsx(Ro,{className:"h-4 w-4"}),label:"Agents",count:a,active:e==="agents",onClick:()=>t("agents")}),s.length>0&&m.jsx(EH,{connections:s,inUse:o}),m.jsx(yi,{icon:m.jsx(Ys,{className:"h-4 w-4"}),label:"Past runs",count:c>0?c:void 0,active:e==="history",onClick:g}),d&&m.jsx(yi,{icon:m.jsx(Np,{className:"h-4 w-4"}),label:"Export report",active:e==="email",onClick:p}),m.jsx(yi,{icon:m.jsx(O2,{className:"h-4 w-4"}),label:"Feedback & support",active:e==="feedback",onClick:()=>t("feedback")}),m.jsx("hr",{className:"mx-0 my-1 h-px w-full border-0 bg-[rgba(255,255,255,0.08)]"}),m.jsx(yi,{icon:m.jsx(pH,{className:"h-4 w-4"}),label:"PR Security Reviews",active:!1,onClick:()=>z("pr_reviews","Strix reviews every pull request and flags exploitable changes before they merge.")}),m.jsx(yi,{icon:m.jsx(gH,{className:"h-4 w-4"}),label:"Integrations",active:!1,onClick:()=>z("integrations","Sync findings to Jira, Linear, and Slack so fixes happen where your team already works.")}),m.jsx(yi,{icon:m.jsx(DT,{className:"h-4 w-4"}),label:"Members",active:!1,onClick:()=>z("members","Invite your team, set roles, and share findings and run history across your org.")})]})}),m.jsx("section",{className:"flex min-w-[160px] flex-col gap-0.5",ref:H,children:m.jsxs("div",{className:"relative p-2",children:[h&&f?m.jsxs("button",{onClick:()=>A(k=>!k),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:[m.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:m.jsx("span",{className:"text-[9px] font-semibold text-white",children:((P=f[0])==null?void 0:P.toUpperCase())||"U"})}),m.jsxs("span",{className:"flex min-w-0 flex-1 flex-col text-left",children:[m.jsx("span",{className:"truncate text-[13px] font-medium text-[#ededed]",children:f}),m.jsx("span",{className:"truncate text-[11px] text-[#555]",children:"Linked to this machine"})]})]}):m.jsxs("div",{className:"flex items-center gap-2 rounded-md px-2.5 py-2",children:[m.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:m.jsx("span",{className:"text-[9px] font-semibold text-white",children:"S"})}),m.jsx("span",{className:"flex min-w-0 flex-1 flex-col text-left",children:m.jsx("span",{className:"truncate text-[13px] font-medium text-[#ededed]",children:"Local viewer"})})]}),E&&h&&f&&m.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:[m.jsxs("div",{className:"border-b border-[#333] px-3 py-2",children:[m.jsx("p",{className:"truncate text-[13px] font-medium text-white",children:"Linked email"}),m.jsx("p",{className:"truncate text-[11px] text-[#666]",children:f})]}),m.jsxs("button",{onClick:()=>{A(!1),b()},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:[m.jsx(rT,{className:"h-4 w-4"}),"Forget this email"]})]})]})}),m.jsx("div",{className:"group absolute right-0 top-0 z-30 h-full w-1 cursor-col-resize",onMouseDown:Z,children:m.jsx("div",{className:br("absolute right-0 top-0 h-full w-px bg-[rgba(255,255,255,0.08)] transition-all duration-100",w?"w-0.5 bg-[rgba(255,255,255,0.3)]":"group-hover:bg-[rgba(255,255,255,0.2)]")})})]}),w&&m.jsx("div",{className:"fixed inset-0 z-10 cursor-col-resize"}),m.jsx(bH,{open:B!==null,description:B??"",source:"sidebar",onClose:()=>R(null)})]})}function yi({icon:e,label:t,active:r,onClick:a,count:s}){return m.jsxs("button",{onClick:a,className:br("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:[m.jsx("div",{className:"grid flex-none place-content-center",style:{width:36,height:36},children:e}),m.jsx("span",{className:"min-w-0 flex-1 truncate text-left text-[14px] font-medium",children:t}),s!=null&&m.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})]})}const A_=["◐","◓","◑","◒"],wH=220;function EH({connections:e,inUse:t}){const r=e.some(o=>!o.dead&&t.has(o.name)),[a,s]=ee.useState(0);return ee.useEffect(()=>{if(!r)return;const o=setInterval(()=>s(c=>(c+1)%A_.length),wH);return()=>clearInterval(o)},[r]),m.jsxs("div",{className:"mt-1",children:[m.jsxs("div",{className:"flex h-7 items-center px-2 text-[11px] font-medium text-[#666]",children:["MCP Connections (",e.length,")"]}),m.jsx("div",{className:"max-h-48 overflow-y-auto overflow-x-clip scrollbar-thin",children:e.map(o=>{const c=!o.dead&&t.has(o.name);return m.jsxs("div",{className:"flex h-7 items-center gap-2 rounded-md px-2",title:o.provider?`${o.name} · ${o.provider}`:o.name,children:[m.jsx("span",{className:br("w-3 flex-none text-center text-[11px] leading-none",o.dead?"text-red-400":"text-emerald-400"),"aria-hidden":"true",children:o.dead?"●":c?A_[a]:"●"}),m.jsx("span",{className:"min-w-0 flex-1 truncate text-[13px] font-medium text-[#ededed]",children:o.name}),o.dead?m.jsx("span",{className:"flex-none text-[11px] text-red-400",children:"offline"}):m.jsxs("span",{className:"flex-none text-[11px] tabular-nums text-[#666]",children:[o.toolCount," ",o.toolCount===1?"tool":"tools"]})]},o.name)})})]})}function NH(){return m.jsx("svg",{style:{width:16,height:16,color:"currentcolor"},viewBox:"0 0 16 16",fill:"currentColor",children:m.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 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."},SH=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 kH({onVerified:e}){const[t,r]=ee.useState("email"),[a,s]=ee.useState(""),[o,c]=ee.useState(""),[d,h]=ee.useState(!1),[f,p]=ee.useState(null),[g,b]=ee.useState(null),y=async()=>{const N=a.trim();if(!N){p("Enter your email to continue.");return}const S=N.slice(N.lastIndexOf("@")+1).toLowerCase();if(SH.has(S)){Mr("work_email_required"),p(M_.work_email_required);return}h(!0),p(null);const w=await k2(N);h(!1),w.ok?(Mr("email_submitted",{purpose:"verify"}),b(`We sent a 6-digit code to ${N}.`),r("code")):(w.error==="work_email_required"&&Mr("work_email_required"),p(M_[w.error]??"Could not send a code. Try again."))},_=async()=>{const N=o.trim();if(N.length<4){p("Enter the 6-digit code from your email.");return}h(!0),p(null);const S=await C2(a.trim(),N);if(h(!1),!S.verified){p("That code did not match. Check it and try again.");return}Mr("email_verified",{purpose:"verify"}),e()};return m.jsxs("div",{className:"mx-auto mt-5 max-w-sm text-left",children:[f&&m.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:[m.jsx(Vu,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-red-400","aria-hidden":"true"}),m.jsx("p",{className:"text-xs text-red-300",children:f})]}),g&&!f&&m.jsx("p",{className:"mb-3 text-xs text-[#888]",children:g}),t==="email"?m.jsxs("form",{className:"space-y-3",onSubmit:N=>{N.preventDefault(),y()},children:[m.jsxs("label",{className:"block",children:[m.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"Your work email"}),m.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"}}),m.jsx("span",{className:"mt-1.5 block text-[11px] text-[#666]",children:"Use your work email."})]}),m.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&&m.jsx(Ps,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),"Send me a code"]})]}):m.jsxs("form",{className:"space-y-3",onSubmit:N=>{N.preventDefault(),_()},children:[m.jsxs("label",{className:"block",children:[m.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"6-digit code"}),m.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"}})]}),m.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&&m.jsx(Ps,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),"Verify"]}),m.jsx("button",{type:"button",onClick:()=>{r("email"),p(null),b(null)},className:"w-full cursor-pointer text-center text-xs text-[#666] transition-colors hover:text-[#aaa]",children:"Use a different email"})]})]})}const CH=[{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 TH({counts:e}){const t=CH.filter(r=>e[r.key]>0);return t.length===0?m.jsx("span",{className:"text-xs text-[#555]",children:"No findings"}):m.jsx("div",{className:"flex items-center gap-3",children:t.map(r=>m.jsxs("div",{className:"flex items-center gap-1.5",children:[m.jsx("span",{className:`h-2 w-2 rounded-full ${r.dot}`,"aria-hidden":"true"}),m.jsx("span",{className:`text-xs tabular-nums ${r.text}`,children:e[r.key]})]},r.key))})}function AH(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 O_(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`:AH(e)}function MH({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?m.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-8 text-center",children:[m.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:m.jsx(Ys,{className:"h-5 w-5 text-[#888]","aria-hidden":"true"})}),m.jsx("h2",{className:"text-base font-semibold text-white",children:"Browse every run on this machine"}),m.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?m.jsxs(m.Fragment,{children:[m.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."}),m.jsx(kH,{onVerified:a})]}):m.jsx("button",{onClick:()=>{yr("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"}),m.jsxs("p",{className:"mt-4 flex items-center justify-center gap-1.5 text-xs text-[#555]",children:[m.jsx(ew,{className:"h-3.5 w-3.5","aria-hidden":"true"}),"Or open one from the CLI with"," ",m.jsx("code",{className:"font-mono text-[#888]",children:"strix view <name>"})]})]}):e.runs.length===0?m.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."}):m.jsx("div",{className:"space-y-2",children:e.runs.map(d=>{const h=d.name===t,f=O_(d.start_time)??O_(d.end_time),p=yo(d.target,d.name);return m.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 ${h?"border-[#444] bg-[rgba(255,255,255,0.04)]":"border-[#222] bg-[rgba(255,255,255,0.02)] hover:border-[#444]"}`,children:[m.jsxs("div",{className:"min-w-0 flex-1",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"truncate text-sm font-medium text-white",children:p}),h&&m.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"})]}),m.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&&m.jsx("span",{className:"capitalize",children:d.scan_mode}),d.scan_mode&&(f||d.status)&&m.jsx("span",{className:"text-[#333]",children:"·"}),f&&m.jsx("span",{children:f}),f&&d.status&&m.jsx("span",{className:"text-[#333]",children:"·"}),d.status&&m.jsx("span",{className:"capitalize",children:d.status})]})]}),m.jsx(TH,{counts:d.severity_counts}),m.jsx(dC,{className:"h-4 w-4 flex-shrink-0 text-[#555] transition-colors group-hover:text-[#aaa]","aria-hidden":"true"})]},d.name)})})}const R_={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."},OH={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."},RH=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 jH({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",[h,f]=ee.useState(()=>d?"email":a?c?"sending":"email":"disclosure"),[p,g]=ee.useState((t==null?void 0:t.email)??""),[b,y]=ee.useState(""),[_,N]=ee.useState(!1),[S,w]=ee.useState(null),[C,E]=ee.useState(null),[A,B]=ee.useState(""),[R,H]=ee.useState(""),[z,Y]=ee.useState(!1),[j,I]=ee.useState(""),Z=ee.useRef(!1),P=async()=>{f("sending"),w(null);const X=await iH(e);if(X.ok){Mr("report_sent"),B(X.password),H(X.filename),f("password");return}if(X.error==="reverify"||X.error==="unverified"){E("Your verification expired. Enter your email to verify again."),f("email");return}w(OH[X.error]??"Could not send the report. Try again."),f("disclosure")},k=()=>{w(null),E(null),c?P():f("email")};ee.useEffect(()=>{!d&&a&&c&&!Z.current&&(Z.current=!0,P())},[]);const $=async()=>{const X=p.trim();if(!X){w("Enter your email to continue.");return}const M=X.slice(X.lastIndexOf("@")+1).toLowerCase();if(RH.has(M)){Mr("work_email_required"),w(R_.work_email_required);return}N(!0),w(null);const L=await k2(X);N(!1),L.ok?(Mr("email_submitted",{purpose:r}),E(`We sent a 6-digit code to ${X}.`),f("code")):(L.error==="work_email_required"&&Mr("work_email_required"),w(R_[L.error]??"Could not send a code. Try again."))},O=async()=>{const X=b.trim();if(X.length<4){w("Enter the 6-digit code from your email.");return}N(!0),w(null);const M=await C2(p.trim(),X);if(N(!1),!M.verified){w("That code did not match. Check it and try again.");return}Mr("email_verified",{purpose:r}),I(M.email),s(),d?o("history"):P()},U=async()=>{try{await navigator.clipboard.writeText(A),Y(!0),setTimeout(()=>Y(!1),1500)}catch{}},K=j||(t==null?void 0:t.email)||p.trim();return m.jsxs("div",{className:"mx-auto max-w-xl space-y-4",children:[m.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:[m.jsx(Ep,{className:"h-4 w-4"}),d?"Back to past runs":"Back to results"]}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(Np,{className:"h-5 w-5 text-[#888]","aria-hidden":"true"}),m.jsx("h1",{className:"text-2xl font-semibold text-white",children:d?"Verify your email":"Export report to PDF"})]}),m.jsxs("div",{className:"w-full rounded-2xl bg-[rgba(255,255,255,0.02)] p-6",style:{border:"1px solid #2a2a2a"},children:[m.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&&m.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:[m.jsx(Vu,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-red-400","aria-hidden":"true"}),m.jsx("p",{className:"text-xs text-red-300",children:S})]}),C&&!S&&h!=="password"&&m.jsx("p",{className:"mb-4 text-xs text-[#888]",children:C}),h==="disclosure"&&m.jsxs("div",{className:"space-y-4",children:[m.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:[m.jsxs("div",{className:"flex items-start gap-2.5",children:[m.jsx(J_,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-emerald-400","aria-hidden":"true"}),m.jsxs("p",{className:"text-xs leading-relaxed text-[#aaa]",children:["We email an ",m.jsx("span",{className:"text-white",children:"encrypted PDF"}),". Nothing else leaves your machine."]})]}),m.jsxs("div",{className:"flex items-start gap-2.5",children:[m.jsx(tT,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-[#888]","aria-hidden":"true"}),m.jsx("p",{className:"text-xs leading-relaxed text-[#aaa]",children:"Only you hold the password; Strix can't read it."})]})]}),m.jsx("button",{onClick:k,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:"Export report"}),c&&(t==null?void 0:t.email)&&m.jsxs("p",{className:"text-center text-xs text-[#666]",children:["Sending to ",t.email]})]}),h==="email"&&m.jsxs("form",{className:"space-y-4",onSubmit:X=>{X.preventDefault(),$()},children:[m.jsxs("label",{className:"block",children:[m.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"Your work email"}),m.jsx("input",{type:"email",autoFocus:!0,value:p,onChange:X=>g(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"}})]}),m.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:[_&&m.jsx(Ps,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),"Send me a code"]})]}),h==="code"&&m.jsxs("form",{className:"space-y-4",onSubmit:X=>{X.preventDefault(),O()},children:[m.jsxs("label",{className:"block",children:[m.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"6-digit code"}),m.jsx("input",{inputMode:"numeric",autoFocus:!0,value:b,onChange:X=>y(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"}})]}),m.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:[_&&m.jsx(Ps,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),d?"Verify":"Verify and send"]}),m.jsx("button",{type:"button",onClick:()=>{f("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"})]}),h==="sending"&&m.jsxs("div",{className:"flex flex-col items-center gap-3 py-8",children:[m.jsx(Ps,{className:"h-6 w-6 animate-spin text-white","aria-hidden":"true"}),m.jsx("p",{className:"text-sm text-[#aaa]",children:"Generating and encrypting locally..."})]}),h==="password"&&m.jsxs("div",{className:"space-y-4",children:[m.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:[m.jsx(Vs,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-emerald-400","aria-hidden":"true"}),m.jsxs("p",{className:"text-xs text-emerald-200",children:["Sent to ",K,". Open the attached PDF with this password."]})]}),m.jsxs("div",{children:[m.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"Your one-time password"}),m.jsxs("div",{className:"flex items-center gap-2 rounded-lg bg-black p-3",style:{border:"1px solid #2a2a2a"},children:[m.jsx("code",{className:"flex-1 break-all font-mono text-base text-white",children:A}),m.jsxs("button",{onClick:U,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:[z?m.jsx(Vs,{className:"h-3.5 w-3.5"}):m.jsx(go,{className:"h-3.5 w-3.5"}),z?"Copied":"Copy"]})]}),m.jsxs("p",{className:"mt-2 text-xs text-[#666]",children:["Save this now. Strix never stores it, so we cannot show it again. File:"," ",m.jsx("span",{className:"font-mono text-[#888]",children:R})]})]}),m.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 oa(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function ao(e){return Array.isArray(e)?e:[]}function nr(e){return typeof e=="string"&&e.trim()?e:null}function Ba(e){return typeof e=="number"&&Number.isFinite(e)?e:null}function DH(e){return e.replace(/_/g," ")}function j_(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}function LH(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 En({label:e,children:t}){return m.jsxs("div",{className:"grid grid-cols-[7rem_1fr] gap-3 items-baseline",children:[m.jsx("dt",{className:"text-[11px] uppercase tracking-wide text-[#666]",children:e}),m.jsx("dd",{className:"min-w-0 break-words text-sm text-[#ddd]",children:t})]})}function zH({raw:e,durationSeconds:t}){const[r,a]=ee.useState(!0),s=ao(e.targets_info).map(P=>{const k=oa(P),$=nr(k.original)??nr(oa(k.details).target_url)??"unknown target",O=nr(k.type);return{display:$,type:O?DH(O):null}}),o=nr(e.instruction),c=j_(nr(e.scan_mode)),d=nr(e.scope_mode),h=oa(e.diff_scope),f=h.active===!0,p=nr(h.mode),g=nr(e.diff_base),b=e.non_interactive===!0,y=ao(e.local_sources).map(P=>{if(typeof P=="string")return P;const k=oa(P);return nr(k.source_path)??nr(k.target_path)??""}).filter(Boolean),_=j_(nr(e.status));let N=d??"auto";f&&(N+=` (diff${p?`: ${p}`:""}${g?` vs ${g}`:""})`);const S=oa(e.llm_usage),w=Object.keys(S).length>0,C=ao(S.agents).map(oa),E=Array.from(new Set(C.map(P=>nr(P.model)).filter(P=>!!P))),A=Ba(S.requests),B=Ba(S.input_tokens),R=Ba(oa(ao(S.input_tokens_details)[0]).cached_tokens),H=Ba(S.output_tokens),z=Ba(oa(ao(S.output_tokens_details)[0]).reasoning_tokens),Y=Ba(S.total_tokens),j=Ba(S.cost),I=nr(e.auth_mode)==="subscription",Z=(P,k)=>m.jsxs("span",{className:"text-[#666]",children:[" (",Ls(P)," ",k,")"]});return m.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[m.jsxs("button",{type:"button",onClick:()=>a(P=>!P),"aria-expanded":r,className:"flex w-full cursor-pointer items-center gap-2 text-left",children:[m.jsx(ZC,{className:"h-4 w-4 text-[#888]","aria-hidden":"true"}),m.jsx("h2",{className:"text-sm font-semibold text-white",children:"Run details"}),r?m.jsx(P_,{className:"ml-auto h-4 w-4 text-[#666]","aria-hidden":"true"}):m.jsx(po,{className:"ml-auto h-4 w-4 text-[#666]","aria-hidden":"true"})]}),r&&m.jsxs("div",{className:"mt-4 grid grid-cols-1 gap-x-8 gap-y-6 md:grid-cols-2",children:[m.jsxs("section",{children:[m.jsx("h3",{className:"mb-3 text-[11px] font-semibold uppercase tracking-wide text-[#555]",children:"Configuration"}),m.jsxs("dl",{className:"space-y-2.5",children:[s.length>0&&m.jsx(En,{label:"Targets",children:m.jsx("div",{className:"space-y-1",children:s.map((P,k)=>m.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[m.jsx("span",{className:"font-mono text-[#ddd]",children:P.display}),P.type&&m.jsx("span",{className:"rounded-full border border-[#2a2a2a] px-1.5 py-0.5 text-[10px] text-[#888]",children:P.type})]},k))})}),m.jsx(En,{label:"Instruction",children:o?m.jsx("span",{className:"whitespace-pre-wrap",children:o}):m.jsx("span",{className:"text-[#666]",children:"None"})}),c&&m.jsx(En,{label:"Pentest mode",children:c}),m.jsx(En,{label:"Scope",children:N}),m.jsx(En,{label:"Mode",children:b?"Non-interactive":"Interactive"}),y.length>0&&m.jsx(En,{label:"Local sources",children:m.jsx("div",{className:"space-y-0.5 font-mono text-[#ddd]",children:y.map((P,k)=>m.jsx("div",{children:P},k))})}),_&&m.jsx(En,{label:"Status",children:_})]})]}),m.jsxs("section",{children:[m.jsx("h3",{className:"mb-3 text-[11px] font-semibold uppercase tracking-wide text-[#555]",children:"Usage & cost"}),w?m.jsxs("dl",{className:"space-y-2.5 tabular-nums",children:[m.jsx(En,{label:"Model",children:E.length?E.join(", "):"n/a"}),I&&m.jsx(En,{label:"Provider",children:m.jsx("span",{className:"inline-flex items-center gap-1.5",children:m.jsx("span",{className:"rounded-full border border-[#22c55e]/40 bg-[#22c55e]/10 px-2 py-0.5 text-[11px] text-[#22c55e]",children:"ChatGPT subscription"})})}),m.jsx(En,{label:"Run time",children:LH(t)}),A!=null&&m.jsx(En,{label:"Requests",children:Ls(A)}),B!=null&&m.jsxs(En,{label:"Input tokens",children:[Ls(B),R!=null&&Z(R,"cached")]}),H!=null&&m.jsxs(En,{label:"Output tokens",children:[Ls(H),z!=null&&Z(z,"reasoning")]}),Y!=null&&m.jsx(En,{label:"Total tokens",children:Ls(Y)}),I?m.jsxs(En,{label:"Cost",children:[m.jsx("span",{className:"text-[#22c55e]",children:"$0.00"}),m.jsx("span",{className:"text-[#666]",children:" (subscription)"})]}):j!=null&&m.jsxs(En,{label:"Cost",children:["$",j.toFixed(2)]}),C.length>0&&m.jsx(En,{label:"Agents",children:Ls(C.length)})]}):m.jsx("p",{className:"text-sm text-[#666]",children:"Not available yet."})]})]})]})}const D_="strix_viewer_trust_dismissed";function IH({message:e}){const[t,r]=ee.useState(()=>{try{return localStorage.getItem(D_)==="1"}catch{return!1}});if(t)return null;const a=()=>{try{localStorage.setItem(D_,"1")}catch{}r(!0)};return m.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:m.jsxs("div",{className:"flex gap-2.5",children:[m.jsx(J_,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-emerald-400","aria-hidden":"true"}),m.jsx("p",{className:"text-xs leading-relaxed text-[#aaa]",children:e}),m.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:m.jsx(kp,{className:"h-3.5 w-3.5"})})]})})}const BH=5e3,L_={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 UH({defaultEmail:e,onExit:t}){const[r,a]=ee.useState(""),[s,o]=ee.useState(e??""),[c,d]=ee.useState("form"),[h,f]=ee.useState(null),p=r.trim().length>0&&s.trim().length>0&&c!=="sending",g=async()=>{if(!p)return;d("sending"),f(null);const b=await tH(r.trim(),s.trim());if(b.ok){d("sent");return}d("form"),f(L_[b.error]??L_.unavailable)};return m.jsxs("div",{className:"mx-auto max-w-xl space-y-4",children:[m.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:[m.jsx(Ep,{className:"h-4 w-4"}),"Back to results"]}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(O2,{className:"h-5 w-5 text-[#888]","aria-hidden":"true"}),m.jsx("h1",{className:"text-2xl font-semibold text-white",children:"Feedback & support"})]}),m.jsx("div",{className:"w-full rounded-2xl bg-[rgba(255,255,255,0.02)] p-6",style:{border:"1px solid #2a2a2a"},children:c==="sent"?m.jsxs("div",{className:"flex items-start gap-3",children:[m.jsx(Su,{className:"mt-0.5 h-5 w-5 flex-shrink-0 text-emerald-400","aria-hidden":"true"}),m.jsxs("div",{className:"min-w-0",children:[m.jsx("p",{className:"text-sm font-semibold text-white",children:"Thanks, we got it."}),m.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."}),m.jsx("button",{onClick:()=>{a(""),d("form")},className:"mt-4 cursor-pointer text-xs text-[#888] transition-colors hover:text-white",children:"Send more feedback"})]})]}):m.jsxs(m.Fragment,{children:[m.jsx("p",{className:"mb-4 text-xs text-[#666]",children:"Bugs, feature requests, or anything else. Tell us what's on your mind."}),h&&m.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:[m.jsx(Vu,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-red-400","aria-hidden":"true"}),m.jsx("p",{className:"text-xs text-red-300",children:h})]}),m.jsxs("label",{className:"block",children:[m.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"Your feedback"}),m.jsx("textarea",{autoFocus:!0,value:r,maxLength:BH,onChange:b=>a(b.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"})]}),m.jsxs("label",{className:"mt-4 block",children:[m.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"Your work email"}),m.jsx("input",{type:"email",value:s,onChange:b=>o(b.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"})]}),m.jsx("button",{onClick:()=>void g(),disabled:!p,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 HH({text:e,children:t,className:r=""}){const[a,s]=ee.useState(!1);return m.jsxs("span",{className:`relative inline-flex ${r}`,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),onFocus:()=>s(!0),onBlur:()=>s(!1),children:[t,a&&m.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 Ao({label:e,desc:t,slug:r,icon:a,surface:s,href:o=Xu,primary:c=!1}){return m.jsx(HH,{text:t,children:m.jsxs("a",{href:_i(o,r),target:"_blank",rel:"noopener noreferrer",onClick:()=>yr(r,s),className:c?"group inline-flex items-center gap-2 rounded-lg border border-white bg-white px-3 py-2 text-sm font-semibold text-black transition-colors hover:bg-[#e5e5e5]":"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:[m.jsx(a,{className:c?"h-4 w-4 text-black":"h-4 w-4 text-[#888] transition-colors group-hover:text-white","aria-hidden":"true"}),m.jsx("span",{children:e})]})})}const $H="Your findings stay on your machine. They're rendered here locally in your browser and never uploaded or stored by Strix.",z_=["critical","high","medium","low"],qH=500;function PH(){const[e,t]=ee.useState(null),[r,a]=ee.useState(null),[s,o]=ee.useState(null),[c,d]=ee.useState(null),[h,f]=ee.useState("overview"),[p,g]=ee.useState(null),[b,y]=ee.useState(null),[_,N]=ee.useState("report"),[S,w]=ee.useState(!1),[C,E]=ee.useState(!1),A=ee.useCallback(async()=>{try{g(await nH())}catch{}},[]),B=ee.useCallback(async()=>{try{y(await WU())}catch{}},[]);ee.useEffect(()=>{A(),B(),JU().then(F=>E(F.can_steer)).catch(()=>{})},[A,B]);const R=ee.useRef(!1);ee.useEffect(()=>{let F=!1,D;R.current=!1;const V=()=>{D=setTimeout(q,qH)},q=async()=>{if(!F)try{const{summary:Q,raw:J,finished:W}=await E2(e);if(F)return;if(W&&!R.current){R.current=!0;const fe=await E_(e);F||a(fe);return}const[te,oe]=await Promise.all([S2(e).catch(()=>({agents:[],events:[]})),N2(Q.runId,e).catch(()=>[])]);if(F)return;a(fe=>({summary:Q,raw:J,finished:W,transcript:te,vulnerabilities:oe,reportMarkdown:(fe==null?void 0:fe.reportMarkdown)??null})),V()}catch(Q){if(F)return;o(Q instanceof Error?Q.message:"Could not load run data."),V()}};return(async()=>{try{const Q=await E_(e);if(F)return;a(Q),Q.finished?R.current=!0:V()}catch(Q){if(F)return;o(Q instanceof Error?Q.message:"Could not load run data."),V()}})(),()=>{F=!0,D&&clearTimeout(D)}},[e]);const H=ee.useMemo(()=>r?KU(r.vulnerabilities):null,[r]),z=(r==null?void 0:r.vulnerabilities.find(F=>F.id===c))??null,Y=(r==null?void 0:r.transcript.agents.length)??0,j=(p==null?void 0:p.verified)===!0,I=ee.useMemo(()=>r?ZU(r.raw):[],[r]),Z=ee.useMemo(()=>{var D,V;const F=new Set;for(const q of(r==null?void 0:r.transcript.events)??[]){if(q.type!=="tool")continue;const Q=(D=q.data)==null?void 0:D.mcp_connection;typeof Q!="string"||!Q||((V=q.data)==null?void 0:V.status)==="running"&&F.add(Q)}return F},[r]),P=ee.useRef(!1);ee.useEffect(()=>{P.current=!1},[e]),ee.useEffect(()=>{P.current||!r||(r.finished?(P.current=!0,f("overview")):Y>0&&(P.current=!0,f("agents")))},[r,Y]);const k=ee.useCallback(F=>{P.current=!0,f(F)},[]),$=ee.useCallback(F=>{t(F),d(null),a(null),o(null),P.current=!1},[]),O=ee.useCallback((F,D)=>{yr("email_report",D),N("report"),w(F),k("email")},[k]),U=ee.useCallback(()=>O(!1,"sidebar"),[O]),K=ee.useCallback(()=>O(!0,"overview"),[O]),X=ee.useCallback(()=>{B(),k("history")},[B,k]),M=ee.useCallback(async()=>{await A(),await B()},[A,B]),L=ee.useCallback(async()=>{await rH(),await A(),await B()},[A,B]);return m.jsxs("div",{className:"min-h-screen bg-black text-white flex",children:[m.jsx(_H,{view:h,onSelectView:F=>{d(null),F==="history"?X():k(F)},issuesCount:(r==null?void 0:r.vulnerabilities.length)??0,agentCount:Y,mcpConnections:I,mcpInUse:Z,runCount:(b==null?void 0:b.count)??0,finished:(r==null?void 0:r.finished)??!1,verified:j,email:(p==null?void 0:p.email)??null,onOpenEmail:U,onOpenHistory:X,onForget:()=>void L()}),m.jsxs("div",{className:"flex-1 min-w-0",children:[m.jsx("div",{className:"border-b border-[#222]",children:m.jsxs("div",{className:"max-w-[88rem] mx-auto px-3 sm:px-6 py-4 flex items-center gap-1.5",children:[m.jsxs("a",{href:_i("https://app.strix.ai","logo"),target:"_blank",rel:"noopener noreferrer",onClick:()=>yr("logo","topbar"),className:"flex items-center gap-1.5 opacity-90 transition-opacity hover:opacity-100 lg:hidden",title:"Open Strix Cloud",children:[m.jsx("img",{src:"./logo.png",alt:"Strix",className:"w-10 h-8 object-cover"}),m.jsx("div",{className:"text-base text-white font-medium tracking-tight",children:"Strix"})]}),r&&m.jsx(GH,{finished:r.finished}),m.jsxs("div",{className:"ml-auto flex items-center gap-3",children:[j&&b&&!b.locked&&b.runs.length>0&&m.jsx(FH,{runs:b,activeRun:e,launchedName:yo((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:$}),m.jsxs("a",{href:_i(Xu,"run_in_cloud"),target:"_blank",rel:"noopener noreferrer",onClick:()=>yr("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",m.jsx(U_,{className:"w-3 h-3","aria-hidden":"true"})]})]})]})}),m.jsxs("div",{className:"max-w-[88rem] mx-auto px-3 sm:px-6 py-8 sm:py-12 space-y-6",children:[s&&!r&&h!=="history"&&h!=="email"&&m.jsxs("div",{className:"rounded-lg px-4 py-3 flex gap-3 items-start border border-red-500/30 bg-red-500/5",children:[m.jsx(Vu,{className:"w-5 h-5 flex-shrink-0 mt-0.5 text-red-400","aria-hidden":"true"}),m.jsx("p",{className:"text-sm text-red-300",children:s})]}),m.jsx("div",{className:"animate-page-in space-y-6",children:h==="email"?m.jsx(jH,{activeRun:e,auth:p,purpose:_,skipDisclosure:S,onAuthChanged:()=>{A(),B()},onExit:F=>f(F==="history"?"history":"overview")}):h==="feedback"?m.jsx(UH,{defaultEmail:(p==null?void 0:p.email)??null,onExit:F=>f(F)}):h==="history"?m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(Ys,{className:"w-5 h-5 text-[#888]","aria-hidden":"true"}),m.jsx("h1",{className:"text-2xl font-semibold text-white",children:"Past runs"})]}),m.jsx(MH,{runs:b,activeRun:e,onSelectRun:$,onVerified:()=>void M()})]}):!r&&!s?m.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-10 text-center",children:[m.jsx("div",{className:"w-6 h-6 mx-auto mb-3 rounded-full border-2 border-[#333] border-t-white animate-spin"}),m.jsx("p",{className:"text-sm text-[#888]",children:"Loading run data…"})]}):r&&H?m.jsxs(m.Fragment,{children:[m.jsx(YH,{summary:r.summary}),m.jsxs("div",{className:"flex gap-5 border-b border-[#2a2a2a] lg:hidden",children:[m.jsx(Pm,{active:h==="overview",onClick:()=>k("overview"),children:"Pentest Overview"}),m.jsxs(Pm,{active:h==="issues",onClick:()=>k("issues"),children:["Issues",r.vulnerabilities.length>0?` (${r.vulnerabilities.length})`:""]}),Y>0&&m.jsxs(Pm,{active:h==="agents",onClick:()=>k("agents"),children:["Agents (",Y,")"]})]}),h==="overview"?m.jsx(WH,{summary:r.summary,counts:H,total:r.vulnerabilities.length,reportMarkdown:r.reportMarkdown,raw:r.raw,finished:r.finished,onOpenEmail:K}):h==="agents"&&Y>0?m.jsx(JH,{run:r,canSteer:C}):z?m.jsxs("div",{className:"space-y-4",children:[m.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:[m.jsx(Ep,{className:"w-4 h-4"})," Back to all findings"]}),m.jsx(bD,{vulnerability:z})]}):m.jsx(XH,{vulnerabilities:r.vulnerabilities,finished:r.finished,onSelect:F=>d(F)})]}):null},`${e??"launched"}:${h}:${c??""}`)]})]}),m.jsx(IH,{message:$H})]})}function FH({runs:e,activeRun:t,launchedName:r,onSelect:a}){const[s,o]=ee.useState(!1),c=e.runs.find(h=>h.name===t),d=c?yo(c.target,c.name):r;return m.jsxs("div",{className:"relative",children:[m.jsxs("button",{onClick:()=>o(h=>!h),onBlur:()=>setTimeout(()=>o(!1),150),"aria-label":"Switch pentest",className:"flex items-center gap-2 rounded-lg border border-[#3a3a3a] bg-[rgba(255,255,255,0.05)] px-3 py-2 text-sm text-white transition-colors hover:border-[#555] hover:bg-[rgba(255,255,255,0.09)]",children:[m.jsx(Ys,{className:"h-4 w-4 flex-shrink-0 text-[#888]","aria-hidden":"true"}),m.jsx("span",{className:"flex-shrink-0 text-[#888]",children:"Pentest"}),m.jsx("span",{className:"max-w-[260px] truncate font-medium",children:d}),m.jsx(po,{className:"h-4 w-4 flex-shrink-0 text-[#aaa]","aria-hidden":"true"})]}),s&&m.jsxs("div",{className:"absolute right-0 z-50 mt-2 max-h-96 w-96 overflow-y-auto rounded-xl py-1.5 shadow-2xl",style:{border:"1px solid #3a3a3a",background:"#0a0a0a"},children:[m.jsx("div",{className:"border-b border-[#222] px-3 py-2 text-[11px] font-semibold uppercase tracking-wide text-[#666]",children:"Switch pentest"}),e.runs.map(h=>{const f=h.name===t;return m.jsxs("button",{onMouseDown:()=>a(h.name),className:`flex w-full items-center gap-2 px-3 py-2.5 text-left text-sm transition-colors hover:bg-[rgba(255,255,255,0.06)] ${f?"bg-[rgba(255,255,255,0.04)] text-white":"text-[#aaa]"}`,children:[m.jsxs("span",{className:"min-w-0 flex-1",children:[m.jsx("span",{className:"block truncate font-medium",children:yo(h.target,h.name)}),h.target&&m.jsx("span",{className:"block truncate font-mono text-xs text-[#666]",children:h.target})]}),f&&m.jsx("span",{className:"h-2 w-2 flex-shrink-0 rounded-full bg-emerald-400"})]},h.name)})]})]})}function GH({finished:e}){return e?m.jsxs("span",{className:"ml-3 inline-flex items-center gap-1.5 text-xs text-[#888]",children:[m.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-[#555]"}),"Complete"]}):m.jsxs("span",{className:"ml-3 inline-flex items-center gap-1.5 text-xs text-emerald-400",children:[m.jsxs("span",{className:"relative flex h-1.5 w-1.5",children:[m.jsx("span",{className:"absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75 animate-ping"}),m.jsx("span",{className:"relative inline-flex h-1.5 w-1.5 rounded-full bg-emerald-400"})]}),"Live"]})}function VH(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 YH({summary:e}){const t=VH(e.durationSeconds);return m.jsxs("div",{children:[m.jsx("h1",{className:"text-2xl font-semibold text-white",children:yo(e.targets[0]??null,e.runName??e.runId??"Pentest results")}),m.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&&m.jsx("span",{className:"font-mono text-[#aaa]",children:e.targets.join(", ")}),e.scanMode&&m.jsx(qm,{label:e.scanMode}),t&&m.jsx(qm,{label:t}),e.status&&m.jsx(qm,{label:e.status})]})]})}function qm({label:e}){return m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"text-[#333]",children:"·"}),m.jsx("span",{className:"capitalize",children:e})]})}function XH({vulnerabilities:e,finished:t,onSelect:r}){const a=[...e].sort((s,o)=>z_.indexOf(s.severity)-z_.indexOf(o.severity));return a.length===0?m.jsxs("div",{className:"space-y-4",children:[m.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 pentest is still running…"}),t&&m.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[m.jsx("p",{className:"text-sm font-medium text-white",children:"Stay ahead of new exposures"}),m.jsx("p",{className:"mt-0.5 mb-3 text-xs text-[#666]",children:"Attack surface monitoring catches new exposures for your org over time."}),m.jsx(Ao,{label:"Attack surface monitoring",desc:"Continuous coverage for your whole org.",slug:"asm",surface:"empty_state",icon:dT})]})]}):m.jsx("div",{className:"space-y-2",children:a.map(s=>m.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:[m.jsx("span",{className:`w-2.5 h-2.5 rounded-full flex-shrink-0 ${Cp(s.severity)}`,"aria-hidden":"true"}),m.jsxs("span",{className:"flex-1 min-w-0",children:[m.jsx("span",{className:"block text-sm font-medium text-white truncate",children:s.title}),s.target&&m.jsx("span",{className:"block text-xs text-[#666] font-mono truncate",children:s.target})]}),m.jsx("span",{className:`text-xs font-semibold px-2 py-0.5 rounded-full border capitalize ${tw[s.severity]}`,children:s.severity})]},s.id))})}function KH(e){return e.replace(/^\s*#{1,6}[ \t]+.*(?:\r?\n)+/,"").trimStart()}function ZH(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 QH({onOpenEmail:e}){return m.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:m.jsxs("div",{className:"flex items-center gap-3",children:[m.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:m.jsx(Np,{className:"h-4 w-4 text-emerald-400","aria-hidden":"true"})}),m.jsxs("div",{className:"min-w-0 flex-1",children:[m.jsx("p",{className:"text-sm font-semibold text-white",children:"Email an encrypted PDF report of this run"}),m.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."})]}),m.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 WH({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(([,h])=>!!h).map(([h,f])=>({title:h,content:KH(f)}));return m.jsxs("div",{className:"space-y-6",children:[m.jsx("div",{className:"animate-card-in",children:m.jsx(zH,{raw:s,durationSeconds:e.durationSeconds})}),r>0&&m.jsx("div",{className:"animate-card-in rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:m.jsx(bD,{findings:{total:r,...t}})}),o&&m.jsx("div",{className:"animate-card-in",children:m.jsx(QH,{onOpenEmail:c})}),o&&m.jsxs("div",{className:"animate-card-in rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[m.jsx("p",{className:"text-sm font-semibold text-white",children:"Strix Cloud"}),m.jsx("p",{className:"mt-0.5 text-xs text-[#666]",children:"Run your next pentest in Strix Cloud."}),m.jsxs("div",{className:"mt-3 flex flex-wrap gap-2.5",children:[m.jsx(Ao,{label:"Run a pentest in Strix Cloud",desc:"Validated findings, autofix, and PR reviews.",slug:"overview_cloud",surface:"overview",icon:Q_,primary:!0}),m.jsx(Ao,{label:"Try Strix Enterprise",desc:"SSO, compliance-ready reports, VPC or self-hosted deployment.",slug:"book_demo",surface:"overview",icon:$_,href:Ap})]})]}),d.length>0?m.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(h=>m.jsx(ca,{title:h.title,content:h.content},h.title))}):a?m.jsx("div",{className:"animate-card-in rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:m.jsx(ca,{content:ZH(a)})}):r===0&&m.jsx("p",{className:"text-sm text-[#888]",children:"No summary available for this run yet."})]})}function Pm({active:e,onClick:t,children:r}){return m.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&&m.jsx("span",{className:"absolute bottom-0 inset-x-0 h-0.5 bg-white rounded-full"})]})}function JH({run:e,canSteer:t}){const{agents:r,events:a}=e.transcript,s=ee.useMemo(()=>UU(r,a),[r,a]),[o,c]=ee.useState(null),d=o?r.find(f=>f.id===o)??null:null,h=t&&!e.finished;return m.jsxs("div",{className:"space-y-5",children:[m.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(Ro,{className:"w-4 h-4 text-[#888]","aria-hidden":"true"}),m.jsx("h2",{className:"text-sm font-semibold text-white",children:"Agent graph"}),m.jsxs("span",{className:"text-xs text-[#666]",children:[r.length," agent",r.length===1?"":"s"]})]}),m.jsx("p",{className:"mt-1 mb-4 text-xs text-[#666]",children:"Click an agent to open its full transcript."}),m.jsx("div",{className:"h-[480px] rounded-lg border border-[#1a1a1a] overflow-hidden",children:m.jsx(l7,{agents:s,selectedAgentId:o,onSelectAgent:f=>c(f),eventsLoaded:!0,eventsEmpty:s.size===0,scanCompleted:e.finished})})]}),h&&m.jsx(C2,{agents:r}),m.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[m.jsx("p",{className:"text-sm font-semibold text-white",children:"Run this pentest with more depth"}),m.jsx("p",{className:"mt-0.5 text-xs text-[#666]",children:"Run this pentest again in Strix Cloud."}),m.jsxs("div",{className:"mt-3 flex flex-wrap gap-2.5",children:[m.jsx(Ao,{label:"Re-run in Strix Pro with more depth",desc:"More depth, validated findings, and autofix.",slug:"live_scan",surface:"agents",icon:Q_,primary:!0}),m.jsx(Ao,{label:"Try Strix Enterprise",desc:"SSO, compliance-ready reports, VPC or self-hosted deployment.",slug:"book_demo",surface:"agents",icon:$_,href:Ap})]})]}),m.jsx(lH,{open:d!==null,agent:d,events:a,steerable:h,onClose:()=>c(null)})]})}$k.createRoot(document.getElementById("root")).render(m.jsx(ee.StrictMode,{children:m.jsx(PH,{})}));
+`)}function QH({onOpenEmail:e}){return m.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:m.jsxs("div",{className:"flex items-center gap-3",children:[m.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:m.jsx(Np,{className:"h-4 w-4 text-emerald-400","aria-hidden":"true"})}),m.jsxs("div",{className:"min-w-0 flex-1",children:[m.jsx("p",{className:"text-sm font-semibold text-white",children:"Email an encrypted PDF report of this run"}),m.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."})]}),m.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 WH({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(([,h])=>!!h).map(([h,f])=>({title:h,content:KH(f)}));return m.jsxs("div",{className:"space-y-6",children:[m.jsx("div",{className:"animate-card-in",children:m.jsx(zH,{raw:s,durationSeconds:e.durationSeconds})}),r>0&&m.jsx("div",{className:"animate-card-in rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:m.jsx(yD,{findings:{total:r,...t}})}),o&&m.jsx("div",{className:"animate-card-in",children:m.jsx(QH,{onOpenEmail:c})}),o&&m.jsxs("div",{className:"animate-card-in rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[m.jsx("p",{className:"text-sm font-semibold text-white",children:"Strix Cloud"}),m.jsx("p",{className:"mt-0.5 text-xs text-[#666]",children:"Run your next pentest in Strix Cloud."}),m.jsxs("div",{className:"mt-3 flex flex-wrap gap-2.5",children:[m.jsx(Ao,{label:"Run a pentest in Strix Cloud",desc:"Validated findings, autofix, and PR reviews.",slug:"overview_cloud",surface:"overview",icon:W_,primary:!0}),m.jsx(Ao,{label:"Try Strix Enterprise",desc:"SSO, compliance-ready reports, VPC or self-hosted deployment.",slug:"book_demo",surface:"overview",icon:q_,href:Ap})]})]}),d.length>0?m.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(h=>m.jsx(ca,{title:h.title,content:h.content},h.title))}):a?m.jsx("div",{className:"animate-card-in rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:m.jsx(ca,{content:ZH(a)})}):r===0&&m.jsx("p",{className:"text-sm text-[#888]",children:"No summary available for this run yet."})]})}function Pm({active:e,onClick:t,children:r}){return m.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&&m.jsx("span",{className:"absolute bottom-0 inset-x-0 h-0.5 bg-white rounded-full"})]})}function JH({run:e,canSteer:t}){const{agents:r,events:a}=e.transcript,s=ee.useMemo(()=>UU(r,a),[r,a]),[o,c]=ee.useState(null),d=o?r.find(f=>f.id===o)??null:null,h=t&&!e.finished;return m.jsxs("div",{className:"space-y-5",children:[m.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(Ro,{className:"w-4 h-4 text-[#888]","aria-hidden":"true"}),m.jsx("h2",{className:"text-sm font-semibold text-white",children:"Agent graph"}),m.jsxs("span",{className:"text-xs text-[#666]",children:[r.length," agent",r.length===1?"":"s"]})]}),m.jsx("p",{className:"mt-1 mb-4 text-xs text-[#666]",children:"Click an agent to open its full transcript."}),m.jsx("div",{className:"h-[480px] rounded-lg border border-[#1a1a1a] overflow-hidden",children:m.jsx(o7,{agents:s,selectedAgentId:o,onSelectAgent:f=>c(f),eventsLoaded:!0,eventsEmpty:s.size===0,scanCompleted:e.finished})})]}),h&&m.jsx(T2,{agents:r}),m.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[m.jsx("p",{className:"text-sm font-semibold text-white",children:"Run this pentest with more depth"}),m.jsx("p",{className:"mt-0.5 text-xs text-[#666]",children:"Run this pentest again in Strix Cloud."}),m.jsxs("div",{className:"mt-3 flex flex-wrap gap-2.5",children:[m.jsx(Ao,{label:"Re-run in Strix Pro with more depth",desc:"More depth, validated findings, and autofix.",slug:"live_scan",surface:"agents",icon:W_,primary:!0}),m.jsx(Ao,{label:"Try Strix Enterprise",desc:"SSO, compliance-ready reports, VPC or self-hosted deployment.",slug:"book_demo",surface:"agents",icon:q_,href:Ap})]})]}),m.jsx(lH,{open:d!==null,agent:d,events:a,steerable:h,onClose:()=>c(null)})]})}qk.createRoot(document.getElementById("root")).render(m.jsx(ee.StrictMode,{children:m.jsx(PH,{})}));
diff --git a/strix/interface/viewer/static/index.html b/strix/interface/viewer/static/index.html
index c167f186..64468093 100644
--- a/strix/interface/viewer/static/index.html
+++ b/strix/interface/viewer/static/index.html
@@ -6,7 +6,7 @@
<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-DbPDzbcJ.js"></script>
+ <script type="module" crossorigin src="./assets/index-B1JzV4Vu.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-CrLE9rrV.css">
</head>
<body>
diff --git a/strix/tools/agents_graph/tools.py b/strix/tools/agents_graph/tools.py
index 051fc1fc..60c88525 100644
--- a/strix/tools/agents_graph/tools.py
+++ b/strix/tools/agents_graph/tools.py
@@ -311,8 +311,8 @@ async def wait_for_agents( # noqa: PLR0911
**This tool is only for waiting on other agents.** Two things it is
NOT for:
- - **Talking to the user.** Use ``respond_to_user``, which delivers
- your message and hands control back in one call.
+ - **Waiting for the user.** Write your reply as plain text, then call
+ ``wait_for_user`` to hand control back.
- **Waiting for a long-running command.** This tool does not watch
processes at all — it sleeps until a *message* arrives, so it
burns the full timeout even if your command finished a second
diff --git a/strix/tools/respond/__init__.py b/strix/tools/respond/__init__.py
deleted file mode 100644
index e458dc05..00000000
--- a/strix/tools/respond/__init__.py
+++ /dev/null
@@ -1,6 +0,0 @@
-"""User-facing reply tool for interactive sessions."""
-
-from strix.tools.respond.tool import respond_to_user
-
-
-__all__ = ["respond_to_user"]
diff --git a/strix/tools/wait_for_user/__init__.py b/strix/tools/wait_for_user/__init__.py
new file mode 100644
index 00000000..01ca9092
--- /dev/null
+++ b/strix/tools/wait_for_user/__init__.py
@@ -0,0 +1,6 @@
+"""Hand-the-turn-to-the-user tool for interactive sessions."""
+
+from strix.tools.wait_for_user.tool import wait_for_user
+
+
+__all__ = ["wait_for_user"]
diff --git a/strix/tools/respond/tool.py b/strix/tools/wait_for_user/tool.py
similarity index 55%
rename from strix/tools/respond/tool.py
rename to strix/tools/wait_for_user/tool.py
index 12538f0c..970acb9d 100644
--- a/strix/tools/respond/tool.py
+++ b/strix/tools/wait_for_user/tool.py
@@ -1,4 +1,4 @@
-"""``respond_to_user`` — deliver a reply and hand control back to the user."""
+"""``wait_for_user`` — hand control back to the user and wait for their reply."""
from __future__ import annotations
@@ -15,23 +15,23 @@ def _ctx(ctx: RunContextWrapper) -> dict[str, Any]:
@function_tool
-async def respond_to_user(ctx: RunContextWrapper, message: str = "") -> str:
- """Answer the user and hand control back to them.
+async def wait_for_user(ctx: RunContextWrapper) -> str:
+ """Hand control to the user and wait for their reply.
- This is the ONLY way to yield to the user. Delivering the message and
- yielding are the same call on purpose: there is no way to answer and
- then forget to stop, and no way to stop without having answered.
+ This is the ONLY way to yield to the user. It carries no text: everything
+ you write as plain text is already shown to the user, so write your reply
+ first, as plain text, then call this to stop and wait. Never restate in
+ any form what you have already written.
- Call it when you have something for the user and nothing to do until
- they reply — you answered their question, you need a decision or a
- credential only they can give, or you finished a chunk of work and
- want direction. You resume exactly where you left off when they
- reply, with everything you have done so far intact.
+ Call it when you have nothing to do until the user replies — you answered
+ their question, you need a decision or a credential only they can give,
+ or you finished a chunk of work and want direction. You resume exactly
+ where you left off when they reply, with everything you have done so far
+ intact.
- Do NOT call it to narrate progress or to think out loud. Plain text
- is still shown to the user as you work, so say whatever you like
- mid-task without stopping; ``respond_to_user`` is specifically the
- act of *waiting* for them. Every call costs the user their attention.
+ Do NOT call it to narrate progress or to think out loud: plain text is
+ shown to the user as you work, so say whatever you like mid-task without
+ stopping. Every call costs the user their attention.
Not for these:
@@ -39,16 +39,6 @@ async def respond_to_user(ctx: RunContextWrapper, message: str = "") -> str:
use ``wait_for_agents``.
- **Ending the engagement** — use ``finish_scan`` (root) or
``agent_finish`` (subagent). Those are terminal; this is a pause.
-
- Args:
- message: What to say to the user. Self-contained: they may not
- have followed the tool calls that led here. Lead with the
- answer or the decision you need, and if you are blocked, say
- exactly what you need from them.
-
- Omit it when you have just said your piece as plain text and
- only need to wait: that text has already reached them, and
- repeating it makes them read the same answer twice.
"""
inner = _ctx(ctx)
coordinator = coordinator_from_context(inner)
@@ -79,7 +69,7 @@ async def respond_to_user(ctx: RunContextWrapper, message: str = "") -> str:
stopped = coordinator.statuses.get(me) == "stopped"
if stopped:
return json.dumps(
- {"success": True, "wait_outcome": "stopped", "message": message},
+ {"success": True, "wait_outcome": "stopped"},
ensure_ascii=False,
default=str,
)
@@ -94,8 +84,7 @@ async def respond_to_user(ctx: RunContextWrapper, message: str = "") -> str:
"success": True,
"wait_outcome": "message_arrived",
"pending_messages": pending,
- "message": message,
- "note": "Your reply was delivered; the user had already sent a new message.",
+ "note": "The user had already sent a new message; keep going.",
},
ensure_ascii=False,
default=str,
@@ -106,8 +95,7 @@ async def respond_to_user(ctx: RunContextWrapper, message: str = "") -> str:
{
"success": True,
"wait_outcome": "waiting",
- "message": message,
- "note": "Reply delivered; parked until the user responds.",
+ "note": "Parked until the user responds.",
},
ensure_ascii=False,
default=str,
diff --git a/tests/test_agent_tool_registration.py b/tests/test_agent_tool_registration.py
index 12f88f74..2cea8685 100644
--- a/tests/test_agent_tool_registration.py
+++ b/tests/test_agent_tool_registration.py
@@ -99,13 +99,13 @@ def test_no_override_renders_builtin_prompt() -> None:
assert agent.instructions != ""
-def test_respond_to_user_is_interactive_only() -> None:
+def test_wait_for_user_is_interactive_only() -> None:
"""Yielding to the user is meaningless when no user is attached."""
interactive = factory.build_strix_agent(is_root=True, interactive=True)
autonomous = factory.build_strix_agent(is_root=True, interactive=False)
- assert "respond_to_user" in [t.name for t in interactive.tools]
- assert "respond_to_user" not in [t.name for t in autonomous.tools]
+ assert "wait_for_user" in [t.name for t in interactive.tools]
+ assert "wait_for_user" not in [t.name for t in autonomous.tools]
def test_wait_for_agents_is_available_in_both_modes() -> None:
diff --git a/tests/test_execution.py b/tests/test_execution.py
index 8fbf18ff..62c5814f 100644
--- a/tests/test_execution.py
+++ b/tests/test_execution.py
@@ -13,10 +13,10 @@ from agents.exceptions import MaxTurnsExceeded
from agents.items import MessageOutputItem
from agents.memory import SQLiteSession
from agents.tool_context import ToolContext
-from openai.types.responses import ResponseOutputMessage, ResponseOutputRefusal
+from openai.types.responses import ResponseOutputMessage, ResponseOutputRefusal, ResponseOutputText
from strix.core import execution
-from strix.core.agents import AgentCoordinator
+from strix.core.agents import AgentCoordinator, WaitKind
from strix.core.execution import (
_notify_root_on_budget_reserve,
notify_parent_on_terminal,
@@ -1030,7 +1030,7 @@ async def test_interactive_text_only_turn_is_nudged_instead_of_parking(
# The retry carries an explicit "call a tool" nudge rather than empty input.
nudge = calls[1][0]["content"]
assert "without a tool call" in nudge
- assert "respond_to_user" in nudge
+ assert "wait_for_user" in nudge
assert coordinator.statuses["root"] == "completed"
@@ -1038,7 +1038,7 @@ async def test_interactive_text_only_turn_is_nudged_instead_of_parking(
async def test_interactive_explicit_park_gets_no_nudge(
monkeypatch: pytest.MonkeyPatch,
) -> None:
- """``waiting`` is only reachable via respond_to_user / wait_for_agents."""
+ """``waiting`` is only reachable via wait_for_user / wait_for_agents."""
coordinator = AgentCoordinator()
await coordinator.register("root", "strix", parent_id=None)
calls: list[Any] = []
@@ -1161,7 +1161,7 @@ async def test_tool_required_message_is_persisted_to_the_session(tmp_path: Any)
stored = [cast("dict[str, Any]", i) for i in await session.get_items()]
assert "finish_scan" in stored[0]["content"]
- assert "respond_to_user" in stored[0]["content"]
+ assert "wait_for_user" in stored[0]["content"]
session.close()
@@ -1277,13 +1277,9 @@ async def test_wait_kind_survives_a_snapshot_round_trip() -> None:
async def test_interactive_nudge_offers_waiting_without_repeating() -> None:
"""The nudge is the instruction an agent reads when it is stranded here.
- It is where the option to wait on what was already said has to be, not only
- in the system prompt: an agent that ended a turn on plain text reasons off
- this text, and without the clause it restates its answer to reach a tool
- call, so the user reads it twice.
-
- The clause holds whatever the turn did, because the agent is the one who
- knows whether it spoke — this fires for a turn that produced no text at all.
+ An agent that ended a turn on plain text reasons off this text, and without
+ the clause it restates its answer to reach a tool call, so the user reads it
+ twice.
"""
items = await execution._append_tool_required_message(
session=None,
@@ -1293,7 +1289,192 @@ async def test_interactive_nudge_offers_waiting_without_repeating() -> None:
interactive=True,
)
- assert "with no message if you have already said it" in items[0]["content"]
+ assert "call wait_for_user" in items[0]["content"]
+ assert "do not repeat it" in items[0]["content"]
+
+
+def _cycle_with_items(
+ coordinator: AgentCoordinator,
+ agent_id: str,
+ script: list[tuple[str, WaitKind | None, list[Any]]],
+ calls: list[Any],
+) -> Any:
+ """Fake run cycle scripted as (status, wait_kind, new_items) per call."""
+
+ async def _cycle(*_args: Any, **kwargs: Any) -> Any:
+ calls.append(kwargs.get("input_data"))
+ status, wait_kind, new_items = script[min(len(calls) - 1, len(script) - 1)]
+ if wait_kind is not None:
+ await coordinator.park_waiting(agent_id, wait_kind=wait_kind)
+ else:
+ await coordinator.set_status(agent_id, status)
+ return MagicMock(final_output="", new_items=new_items)
+
+ return _cycle
+
+
+def _text_item(text: str) -> MessageOutputItem:
+ return MessageOutputItem(
+ agent=MagicMock(),
+ raw_item=ResponseOutputMessage(
+ id="msg-1",
+ content=[ResponseOutputText(type="output_text", text=text, annotations=[])],
+ role="assistant",
+ status="completed",
+ type="message",
+ ),
+ )
+
+
+async def test_silent_wait_for_user_is_sent_back_to_reply(
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ """``wait_for_user`` carries no text, so a park with nothing said is a silent turn.
+
+ The driver undoes the park and nudges the agent to write its reply; the
+ second cycle, which does say something, parks for real.
+ """
+ coordinator = AgentCoordinator()
+ await coordinator.register("root", "strix", parent_id=None)
+ calls: list[Any] = []
+ monkeypatch.setattr(
+ execution,
+ "_run_cycle_parked",
+ _cycle_with_items(
+ coordinator,
+ "root",
+ [("waiting", "user", []), ("waiting", "user", [_text_item("Here is the answer.")])],
+ calls,
+ ),
+ )
+
+ await _drive(coordinator, "root", interactive=True)
+
+ assert len(calls) == 2
+ nudge = calls[1][0]["content"]
+ assert "without having written anything" in nudge
+ assert "wait_for_user" in nudge
+ assert coordinator.statuses["root"] == "waiting"
+ assert coordinator.wait_kinds["root"] == "user"
+
+
+async def test_wait_for_user_after_text_parks_without_a_nudge(
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ """Text written in the same turn as the call is the reply; the park stands."""
+ coordinator = AgentCoordinator()
+ await coordinator.register("root", "strix", parent_id=None)
+ calls: list[Any] = []
+ monkeypatch.setattr(
+ execution,
+ "_run_cycle_parked",
+ _cycle_with_items(
+ coordinator, "root", [("waiting", "user", [_text_item("Done, see above.")])], calls
+ ),
+ )
+
+ await _drive(coordinator, "root", interactive=True)
+
+ assert len(calls) == 1
+ assert coordinator.statuses["root"] == "waiting"
+
+
+async def test_text_from_an_earlier_nudged_turn_counts_as_the_reply(
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ """A text-only turn is nudged; the bare ``wait_for_user`` that follows is right.
+
+ The words already reached the user in the first cycle, so the second must
+ not be bounced back for repeating them.
+ """
+ coordinator = AgentCoordinator()
+ await coordinator.register("root", "strix", parent_id=None)
+ calls: list[Any] = []
+ monkeypatch.setattr(
+ execution,
+ "_run_cycle_parked",
+ _cycle_with_items(
+ coordinator,
+ "root",
+ [
+ ("running", None, [_text_item("The scan found two issues.")]),
+ ("waiting", "user", []),
+ ],
+ calls,
+ ),
+ )
+
+ await _drive(coordinator, "root", interactive=True)
+
+ assert len(calls) == 2
+ assert coordinator.statuses["root"] == "waiting"
+
+
+async def test_whitespace_only_text_does_not_count_as_a_reply(
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ coordinator = AgentCoordinator()
+ await coordinator.register("root", "strix", parent_id=None)
+ calls: list[Any] = []
+ monkeypatch.setattr(
+ execution,
+ "_run_cycle_parked",
+ _cycle_with_items(
+ coordinator,
+ "root",
+ [("waiting", "user", [_text_item(" \n")]), ("waiting", "user", [_text_item("ok")])],
+ calls,
+ ),
+ )
+
+ await _drive(coordinator, "root", interactive=True)
+
+ assert len(calls) == 2
+
+
+async def test_a_wait_on_agents_is_never_a_silent_yield(
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ """Only the human wait needs words first; waiting on a child says nothing by design."""
+ coordinator = AgentCoordinator()
+ await coordinator.register("root", "strix", parent_id=None)
+ calls: list[Any] = []
+ monkeypatch.setattr(
+ execution,
+ "_run_cycle_parked",
+ _cycle_with_items(coordinator, "root", [("waiting", "agents", [])], calls),
+ )
+
+ await _drive(coordinator, "root", interactive=True)
+
+ assert len(calls) == 1
+ assert coordinator.statuses["root"] == "waiting"
+
+
+async def test_repeated_silent_yields_exhaust_the_recovery_budget(
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ """An agent that never writes anything is parked as stalled, not looped forever."""
+ coordinator = AgentCoordinator()
+ await coordinator.register("root", "strix", parent_id=None)
+ calls: list[Any] = []
+ monkeypatch.setattr(
+ execution,
+ "_run_cycle_parked",
+ _cycle_with_items(coordinator, "root", [("waiting", "user", [])], calls),
+ )
+
+ await _drive(coordinator, "root", interactive=True)
+
+ assert len(calls) == execution._INTERACTIVE_TOOL_RECOVERY_LIMIT
+ assert coordinator.statuses["root"] == "waiting"
+ assert coordinator.wait_kinds["root"] == "stalled"
@pytest.mark.asyncio
@@ -1307,4 +1488,4 @@ async def test_autonomous_nudge_does_not_offer_the_user() -> None:
interactive=False,
)
- assert "respond_to_user" not in items[0]["content"]
+ assert "wait_for_user" not in items[0]["content"]
diff --git a/tests/test_tool_param_descriptions.py b/tests/test_tool_param_descriptions.py
index 09150b44..9226e107 100644
--- a/tests/test_tool_param_descriptions.py
+++ b/tests/test_tool_param_descriptions.py
@@ -16,12 +16,12 @@ from strix.agents import factory
from strix.tools.agents_graph.tools import agent_finish
from strix.tools.finish.tool import finish_scan
from strix.tools.reporting.tool import create_vulnerability_report
-from strix.tools.respond.tool import respond_to_user
+from strix.tools.wait_for_user.tool import wait_for_user
_SCAN_AGENT_TOOLS = [
tool
- for tool in (*factory._BASE_TOOLS, finish_scan, agent_finish, respond_to_user)
+ for tool in (*factory._BASE_TOOLS, finish_scan, agent_finish, wait_for_user)
if isinstance(tool, FunctionTool)
]
diff --git a/tests/test_respond_to_user.py b/tests/test_wait_for_user.py
similarity index 59%
rename from tests/test_respond_to_user.py
rename to tests/test_wait_for_user.py
index fc59c267..29881f57 100644
--- a/tests/test_respond_to_user.py
+++ b/tests/test_wait_for_user.py
@@ -1,4 +1,4 @@
-"""Tests for the ``respond_to_user`` yield tool."""
+"""Tests for the ``wait_for_user`` yield tool."""
from __future__ import annotations
@@ -9,17 +9,17 @@ import pytest
from agents.tool_context import ToolContext
from strix.core.agents import AgentCoordinator
-from strix.tools.respond.tool import respond_to_user
+from strix.tools.wait_for_user.tool import wait_for_user
-async def _call(context: dict[str, Any], message: str = "here is what I found") -> dict[str, Any]:
+async def _call(context: dict[str, Any]) -> dict[str, Any]:
ctx = ToolContext(
context=context,
- tool_name="respond_to_user",
+ tool_name="wait_for_user",
tool_call_id="call-1",
tool_arguments="{}",
)
- raw = await respond_to_user.on_invoke_tool(ctx, json.dumps({"message": message}))
+ raw = await wait_for_user.on_invoke_tool(ctx, "{}")
return json.loads(raw) # type: ignore[no-any-return]
@@ -29,15 +29,24 @@ async def _context(*, interactive: bool, agent_id: str = "root") -> dict[str, An
return {"coordinator": coordinator, "agent_id": agent_id, "interactive": interactive}
+def test_takes_no_arguments() -> None:
+ """Plain text is the only channel to the user, so the tool carries none.
+
+ A message parameter here is a second channel the model fills with the same
+ words it already wrote, and the user reads its answer twice.
+ """
+ assert wait_for_user.params_json_schema.get("properties", {}) == {}
+
+
@pytest.mark.asyncio
-async def test_parks_the_agent_and_carries_the_message() -> None:
+async def test_parks_the_agent_for_the_user() -> None:
context = await _context(interactive=True)
result = await _call(context)
coordinator = context["coordinator"]
assert result["success"] is True
assert result["wait_outcome"] == "waiting"
- assert result["message"] == "here is what I found"
+ assert "message" not in result
assert coordinator.statuses["root"] == "waiting"
# Recorded as a human wait, so the driver never auto-resumes it.
assert coordinator.wait_kinds["root"] == "user"
@@ -66,29 +75,13 @@ async def test_a_message_that_already_arrived_is_taken_instead_of_parking() -> N
assert coordinator.statuses["root"] == "running"
-async def _call_without_message(context: dict[str, Any]) -> dict[str, Any]:
- ctx = ToolContext(
- context=context,
- tool_name="respond_to_user",
- tool_call_id="call-1",
- tool_arguments="{}",
- )
- raw = await respond_to_user.on_invoke_tool(ctx, "{}")
- return json.loads(raw) # type: ignore[no-any-return]
-
-
@pytest.mark.asyncio
-async def test_parks_without_a_message() -> None:
- """An agent that has already said its piece as plain text can just wait.
-
- The nudge is what leaves it here, and while a message was required the only
- way to stop was to send the same answer a second time.
- """
+async def test_a_stopped_agent_is_left_stopped() -> None:
context = await _context(interactive=True)
+ coordinator = context["coordinator"]
+ await coordinator.set_status("root", "stopped")
- result = await _call_without_message(context)
+ result = await _call(context)
- assert result["success"] is True
- assert result["wait_outcome"] == "waiting"
- assert result["message"] == ""
- assert context["coordinator"].statuses["root"] == "waiting"
+ assert result["wait_outcome"] == "stopped"
+ assert coordinator.statuses["root"] == "stopped"