@sourcegraph/amp 0.0.1750449684-g750467 → 0.0.1750464102-ge766e0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/amp.js +409 -409
  2. package/package.json +1 -1
package/dist/amp.js CHANGED
@@ -1015,7 +1015,7 @@ class $X {
1015
1015
  this._pendingPromises.add(a);
1016
1016
  }
1017
1017
  }
1018
- class Oa extends rr {
1018
+ class La extends rr {
1019
1019
  _observers = /* @__PURE__ */ new Set();
1020
1020
  constructor() {
1021
1021
  super((e) => (this._observers.add(e), () => this._observers.delete(e)));
@@ -1033,7 +1033,7 @@ class Oa extends rr {
1033
1033
  e.complete();
1034
1034
  }
1035
1035
  }
1036
- class wf extends Oa {
1036
+ class wf extends La {
1037
1037
  currentValue;
1038
1038
  constructor(e) {
1039
1039
  super(), this.currentValue = e;
@@ -1100,7 +1100,7 @@ function EH(t, e) {
1100
1100
  function ole(t) {
1101
1101
  return { dispose: t.unsubscribe.bind(t) };
1102
1102
  }
1103
- async function Yn(t, e) {
1103
+ async function Vn(t, e) {
1104
1104
  return new Promise((r, n) => {
1105
1105
  const i = t.subscribe({
1106
1106
  next: (a) => {
@@ -1319,7 +1319,7 @@ function rE(t) {
1319
1319
  const e = t?.shouldCountRefs ?? !0, r = (n, ...i) => {
1320
1320
  };
1321
1321
  return (n) => {
1322
- const i = new Oa();
1322
+ const i = new La();
1323
1323
  let a = null, s = !1, o, l = 0;
1324
1324
  return new rr((u) => {
1325
1325
  l++, s ? (r("new subscriber, emitting buffered value", o), u.next(o)) : r(), a || (a = n.subscribe({
@@ -1688,7 +1688,7 @@ function Hut() {
1688
1688
  return (t) => rr.from(t).pipe(zf((e) => e !== Tg));
1689
1689
  }
1690
1690
  async function Vut(t, e) {
1691
- const r = await Yn(
1691
+ const r = await Vn(
1692
1692
  rr.from(t).pipe(Hut()),
1693
1693
  e
1694
1694
  );
@@ -1706,7 +1706,7 @@ const LCe = Fut();
1706
1706
  function Kut(t) {
1707
1707
  LCe.setSource(t.pipe(rE()), !1);
1708
1708
  }
1709
- const Ga = LCe.observable, Xut = ["apiKey"];
1709
+ const Da = LCe.observable, Xut = ["apiKey"];
1710
1710
  function MCe({
1711
1711
  storage: t,
1712
1712
  secretStorage: e,
@@ -1794,7 +1794,7 @@ function MCe({
1794
1794
  workspaceRoots: r
1795
1795
  };
1796
1796
  }
1797
- const Qut = /* @__PURE__ */ JSON.parse(`{"viewsContainers":{"activitybar":[{"id":"sourcegraph-amp","title":"Amp","icon":"./resources/amp-mark.svg"}]},"views":{"sourcegraph-amp":[{"type":"webview","id":"amp.sidebarView","name":"Amp","icon":"./resources/amp-mark.svg","visibility":"visible"}]},"commands":[{"command":"amp.agent.newThread","title":"New Thread","category":"Amp","icon":"$(add)"},{"command":"amp.agent.newWindow","title":"New Agent Window","category":"Amp","icon":"$(browser)","enablement":"amp.activated"},{"command":"amp.agent.toggleVisibility","title":"Toggle Agent","category":"Amp"},{"command":"amp.agent.focusPromptEditor","title":"Focus Prompt Editor","category":"Amp"},{"command":"amp.agent.addSelectionToPromptEditor","title":"Add Selection to Prompt","category":"Amp","enablement":"editorHasSelection"},{"command":"amp.agent.findInThread","title":"Find in Thread","category":"Amp","enablement":"amp.agent.active"},{"command":"amp.agent.toggleThreadSwitcher","title":"Switch to Thread...","category":"Amp","enablement":"amp.agent.active"},{"command":"amp.agent.navigateThreadPrevious","title":"Navigate to Previous Thread","category":"Amp","enablement":"amp.agent.active && amp.agent.activeView == 'sidebar'"},{"command":"amp.agent.navigateThreadNext","title":"Navigate to Next Thread","category":"Amp","enablement":"amp.agent.active && amp.agent.activeView == 'sidebar'"},{"command":"amp.openThreadJSON","title":"Open Thread JSON","category":"Amp","enablement":"amp.isDevelopmentMode"},{"command":"amp.tab.showDebugPanel","title":"Show Amp Tab Debug Panel","category":"Amp","icon":"$(debug)","enablement":"amp.activated && config.amp.tab.enabled"},{"command":"amp.tab.manualTrigger","title":"Amp Tab Manual Trigger","category":"Amp","enablement":"amp.activated && config.amp.tab.enabled"},{"command":"amp.tab.toggleForCurrentDocument","title":"Toggle Amp Tab for Current Document","category":"Amp","enablement":"amp.activated && config.amp.tab.enabled"},{"command":"amp.tab.debugInfo","title":"Open Amp Tab Debug Info","category":"Amp","enablement":"amp.activated && config.amp.tab.enabled"},{"command":"amp.mcp.restartServers","title":"Restart MCP Servers","category":"Amp"}],"menus":{"editor/context":[{"command":"amp.agent.addSelectionToPromptEditor","when":"editorHasSelection","group":"amp@1"}]},"keybindings":[{"command":"amp.agent.newThread","key":"ctrl+l","mac":"cmd+l","when":"amp.primaryShortcuts"},{"command":"amp.agent.newThread","key":"ctrl+alt+j","mac":"cmd+alt+j","when":"!amp.primaryShortcuts"},{"command":"amp.agent.newWindow","key":"ctrl+shift+l","mac":"cmd+shift+l"},{"command":"amp.agent.toggleVisibility","key":"ctrl+i","mac":"cmd+i","when":"amp.primaryShortcuts"},{"command":"amp.agent.toggleVisibility","key":"ctrl+alt+u","mac":"cmd+alt+u","when":"!amp.primaryShortcuts"},{"command":"amp.agent.findInThread","key":"ctrl+f","mac":"cmd+f","when":"amp.agent.active"},{"command":"amp.agent.toggleThreadSwitcher","key":"ctrl+k","mac":"cmd+k","when":"amp.agent.active"},{"command":"amp.agent.navigateThreadPrevious","key":"ctrl+shift+[","mac":"cmd+shift+[","when":"amp.agent.active && amp.agent.activeView == 'sidebar'"},{"command":"amp.agent.navigateThreadNext","key":"ctrl+shift+]","mac":"cmd+shift+]","when":"amp.agent.active && amp.agent.activeView == 'sidebar'"},{"command":"-extension.vim_tab","key":"tab","when":"editorTextFocus && vim.active && vim.mode != 'Insert' && !inlineEditIsVisible && !inDebugRepl"},{"command":"-vscode-neovim.send","key":"tab","when":"neovim.init && (editorTextFocus && neovim.mode != insert && editorLangId not in neovim.editorLangIdExclusions || neovim.recording)"},{"command":"amp.tab.accept","key":"tab","when":"editorTextFocus && amp.activated && amp.tab.active && !amp.nextCursorSuggested && !inlineSuggestionVisible"},{"command":"amp.tab.dismiss","key":"escape","when":"editorTextFocus && amp.activated && amp.tab.active && !amp.nextCursorSuggested && !suggestWidgetVisible"},{"command":"amp.tab.testExample","key":"ctrl+alt+enter","when":"editorTextFocus && amp.activated && config.amp.tab.enabled"},{"command":"amp.nextCursor.accept","key":"tab","when":"editorTextFocus && amp.activated && amp.nextCursorSuggested"},{"command":"amp.nextCursor.discard","key":"escape","when":"editorTextFocus && amp.activated && amp.nextCursorSuggested && !suggestWidgetVisible"},{"command":"amp.autoImport.accept","key":"tab","when":"editorTextFocus && amp.activated && config.amp.tab.enabled && amp.autoImportSuggested"},{"command":"amp.autoImport.discard","key":"escape","when":"editorTextFocus && amp.activated && config.amp.tab.enabled && amp.autoImportSuggested"}],"configuration":{"type":"object","title":"Amp","properties":{"amp.url":{"type":"string","examples":["https://ampcode.com/"],"description":"URL to the Amp server, usually https://ampcode.com/","scope":"application"},"amp.notifications.enabled":{"type":"boolean","default":true,"description":"Play notification sound when done or blocked","scope":"window"},"amp.mcpServers":{"type":"object","description":"Model Context Protocol servers that expose tools","additionalProperties":{"type":"object","oneOf":[{"properties":{"command":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"env":{"type":"object","additionalProperties":{"type":"string"}}},"required":["command"]},{"properties":{"url":{"type":"string"}},"required":["url"]}]}},"amp.tools.disable":{"type":"array","description":"Disable specific tools by name.","items":{"type":"string"},"default":[]},"amp.commands.allowlist":{"type":"array","description":"Run specific terminal commands without waiting for user confirmation. Each item in the array is a prefix. For example, \\"curl https://localhost:8080\\" means that command and any command that starts with that prefix can be run without user confirmation.\\n\\nIf any of the array items is \\"*\\", all commands will be run without user confirmation (DANGER: USE AT YOUR OWN RISK).","items":{"type":"string"},"default":[],"scope":"window"},"amp.commands.strict":{"type":"boolean","default":false,"description":"Enable strict command validation. When disabled, certain commands like Bazel get relaxed path validation.","scope":"application"},"amp.anthropic.thinking.enabled":{"type":"boolean","default":true,"description":"Enable Claude's extended thinking capabilities","scope":"application"},"amp.terminal.commands.hide":{"type":"boolean","default":true,"description":"Whether to hide the integrated VS Code terminal by default when starting commands","scope":"application"},"amp.terminal.commands.environment":{"type":"string","default":"vscode-terminal","enum":["vscode-terminal","node-spawn"],"description":"What environment to use when running terminal commands","scope":"application"},"amp.tools.stopTimeout":{"type":"number","default":300,"description":"How many seconds to wait before canceling a running tool.","scope":"application"},"amp.terminal.commands.vscodeTerminal.shellPath":{"type":"string","default":null,"description":"A path to a custom shell executable to be used in the terminal. When null, uses the default integrated terminal profile from the setting 'Terminal > Integrated > Default Profile'","scope":"application"},"amp.terminal.commands.vscodeTerminal.shellArgs":{"type":"array","items":{"type":"string"},"default":null,"description":"Args for the custom shell executable. Only used when 'amp.terminal.commands.vscodeTerminal.shellPath' is set.","scope":"application"},"amp.terminal.commands.vscodeTerminal.detachTimeout":{"type":"number","default":90,"description":"How many seconds to wait before detaching a running command to continue the conversation. The command continues to run in the background. This setting only has an effect when using the vscode-terminal environment.","scope":"application"},"amp.terminal.commands.nodeSpawn.loadProfile":{"type":"string","enum":["always","never","daily"],"default":"always","description":"Before running commands (including MCP servers), whether to load environment variables from the user's profile (.bashrc, .zshrc, .envrc) as visible from the workspace root directory.","scope":"application"},"amp.todos.enabled":{"type":"boolean","default":true,"description":"Enable TODOs tracking for managing tasks","scope":"application"},"amp.mode":{"type":"string","enum":["isolated","connected"],"deprecationMessage":"Isolated Mode is no longer supported. See https://ampcode.com/news/no-more-byok.","default":"connected","scope":"application"},"amp.hooks":{"type":"array","scope":"window","description":"[Experimental] Hooks are event handlers that can react to specific conditions.","items":{"type":"object","properties":{"compatibilityDate":{"type":"string","const":"2025-05-13","default":"2025-05-13","description":"The version of the hook schema that this value was written to conform to"},"id":{"type":"string","description":"A unique identifier for the hook","examples":["run-vitest-with-env-vars"]},"description":{"type":"string","description":"A description of the hook"},"on":{"type":"object","properties":{"event":{"type":"string","const":"tool:pre-execute","default":"tool:pre-execute","description":"Trigger when a tool is about to be executed"},"tool":{"oneOf":[{"type":"string","description":"Tool name to match (e.g., 'edit_file')"},{"type":"array","items":{"type":"string"},"description":"Tool names to match"}],"description":"Trigger for the given tool name(s)"},"input.contains":{"oneOf":[{"type":"string","description":"String pattern to match in the tool input"},{"type":"array","items":{"type":"string"},"description":"String patterns to match in the tool input"}],"description":"Trigger only when the tool input contains the given literal string or strings"}},"required":["event","tool","input.contains"]},"action":{"type":"object","properties":{"type":{"type":"string","const":"send-user-message","default":"send-user-message","description":"Send a user message to interrupt the agent and cancel the tool call in the \`tool:pre-execute\` trigger before it starts to run"},"message":{"type":"string","description":"The text of the message to send"}},"required":["type","message"]},"if":{"type":"boolean","description":"A condition that determines whether the hook should be executed","default":true}},"required":["compatibilityDate","id","on","action"]},"default":[]},"amp.tab.enabled":{"type":"boolean","default":false,"description":"Enable Amp Tab","scope":"application"},"amp.tab.verboseLogs":{"type":"boolean","default":false,"description":"Enable verbose logging for Amp Tab","scope":"application"},"amp.debugLogs":{"type":"boolean","default":false,"description":"Enable debug logging in the Amp output channel","scope":"application"},"amp.tab.disabledLanguages":{"type":"array","items":{"type":"string"},"default":[],"examples":["markdown","python"],"description":"List of language IDs for which Amp Tab is disabled","scope":"application"},"amp.tab.disableOnComment":{"type":"boolean","default":false,"description":"Disable Amp Tab completions on comment lines","scope":"application"},"amp.tab.autoImport.enabled":{"type":"boolean","default":false,"description":"Enable auto import in Amp Tab","scope":"application"},"amp.experimental.connections":{"type":"boolean","default":false,"description":"Enable external connections to provide additional tools to Amp","scope":"application"},"amp.ui.zoomLevel":{"type":"number","default":1,"description":"Zoom level for the Amp UI","scope":"application"},"amp.experimental.reviewTool":{"type":"boolean","default":false,"description":"Experimental: Enable the summarize_git_diff tool.","scope":"application"}}},"icons":{"amp-agent-file":{"description":"Amp agent file","default":{"fontPath":"resources/amp-icons.woff","fontCharacter":"\\\\0041"}}}}`), Zut = {
1797
+ const Qut = /* @__PURE__ */ JSON.parse(`{"viewsContainers":{"activitybar":[{"id":"sourcegraph-amp","title":"Amp","icon":"./resources/amp-mark.svg"}]},"views":{"sourcegraph-amp":[{"type":"webview","id":"amp.sidebarView","name":"Amp","icon":"./resources/amp-mark.svg","visibility":"visible"}]},"commands":[{"command":"amp.agent.newThread","title":"New Thread","category":"Amp","icon":"$(add)"},{"command":"amp.agent.newWindow","title":"New Agent Window","category":"Amp","icon":"$(browser)","enablement":"amp.activated"},{"command":"amp.agent.toggleVisibility","title":"Toggle Agent","category":"Amp"},{"command":"amp.agent.focusPromptEditor","title":"Focus Prompt Editor","category":"Amp"},{"command":"amp.agent.addSelectionToPromptEditor","title":"Add Selection to Prompt","category":"Amp","enablement":"editorHasSelection"},{"command":"amp.agent.findInThread","title":"Find in Thread","category":"Amp","enablement":"amp.agent.active"},{"command":"amp.agent.collapseAllInThread","title":"Collapse all blocks in thread","category":"Amp","enablement":"amp.agent.active"},{"command":"amp.agent.expandAllInThread","title":"Expand all blocks in thread","category":"Amp","enablement":"amp.agent.active"},{"command":"amp.agent.toggleThreadSwitcher","title":"Switch to Thread...","category":"Amp","enablement":"amp.agent.active"},{"command":"amp.agent.navigateThreadPrevious","title":"Navigate to Previous Thread","category":"Amp","enablement":"amp.agent.active && amp.agent.activeView == 'sidebar'"},{"command":"amp.agent.navigateThreadNext","title":"Navigate to Next Thread","category":"Amp","enablement":"amp.agent.active && amp.agent.activeView == 'sidebar'"},{"command":"amp.openThreadJSON","title":"Open Thread JSON","category":"Amp","enablement":"amp.isDevelopmentMode"},{"command":"amp.tab.showDebugPanel","title":"Show Amp Tab Debug Panel","category":"Amp","icon":"$(debug)","enablement":"amp.activated && config.amp.tab.enabled"},{"command":"amp.tab.manualTrigger","title":"Amp Tab Manual Trigger","category":"Amp","enablement":"amp.activated && config.amp.tab.enabled"},{"command":"amp.tab.toggleForCurrentDocument","title":"Toggle Amp Tab for Current Document","category":"Amp","enablement":"amp.activated && config.amp.tab.enabled"},{"command":"amp.tab.debugInfo","title":"Open Amp Tab Debug Info","category":"Amp","enablement":"amp.activated && config.amp.tab.enabled"},{"command":"amp.mcp.restartServers","title":"Restart MCP Servers","category":"Amp"}],"menus":{"editor/context":[{"command":"amp.agent.addSelectionToPromptEditor","when":"editorHasSelection","group":"amp@1"}]},"keybindings":[{"command":"amp.agent.newThread","key":"ctrl+l","mac":"cmd+l","when":"amp.primaryShortcuts"},{"command":"amp.agent.newThread","key":"ctrl+alt+j","mac":"cmd+alt+j","when":"!amp.primaryShortcuts"},{"command":"amp.agent.newWindow","key":"ctrl+shift+l","mac":"cmd+shift+l"},{"command":"amp.agent.toggleVisibility","key":"ctrl+i","mac":"cmd+i","when":"amp.primaryShortcuts"},{"command":"amp.agent.toggleVisibility","key":"ctrl+alt+u","mac":"cmd+alt+u","when":"!amp.primaryShortcuts"},{"command":"amp.agent.findInThread","key":"ctrl+f","mac":"cmd+f","when":"amp.agent.active"},{"command":"amp.agent.toggleThreadSwitcher","key":"ctrl+k","mac":"cmd+k","when":"amp.agent.active"},{"command":"amp.agent.navigateThreadPrevious","key":"ctrl+shift+[","mac":"cmd+shift+[","when":"amp.agent.active && amp.agent.activeView == 'sidebar'"},{"command":"amp.agent.navigateThreadNext","key":"ctrl+shift+]","mac":"cmd+shift+]","when":"amp.agent.active && amp.agent.activeView == 'sidebar'"},{"command":"-extension.vim_tab","key":"tab","when":"editorTextFocus && vim.active && vim.mode != 'Insert' && !inlineEditIsVisible && !inDebugRepl"},{"command":"-vscode-neovim.send","key":"tab","when":"neovim.init && (editorTextFocus && neovim.mode != insert && editorLangId not in neovim.editorLangIdExclusions || neovim.recording)"},{"command":"amp.tab.accept","key":"tab","when":"editorTextFocus && amp.activated && amp.tab.active && !amp.nextCursorSuggested && !inlineSuggestionVisible"},{"command":"amp.tab.dismiss","key":"escape","when":"editorTextFocus && amp.activated && amp.tab.active && !amp.nextCursorSuggested && !suggestWidgetVisible"},{"command":"amp.tab.testExample","key":"ctrl+alt+enter","when":"editorTextFocus && amp.activated && config.amp.tab.enabled"},{"command":"amp.nextCursor.accept","key":"tab","when":"editorTextFocus && amp.activated && amp.nextCursorSuggested"},{"command":"amp.nextCursor.discard","key":"escape","when":"editorTextFocus && amp.activated && amp.nextCursorSuggested && !suggestWidgetVisible"},{"command":"amp.autoImport.accept","key":"tab","when":"editorTextFocus && amp.activated && config.amp.tab.enabled && amp.autoImportSuggested"},{"command":"amp.autoImport.discard","key":"escape","when":"editorTextFocus && amp.activated && config.amp.tab.enabled && amp.autoImportSuggested"}],"configuration":{"type":"object","title":"Amp","properties":{"amp.url":{"type":"string","examples":["https://ampcode.com/"],"description":"URL to the Amp server, usually https://ampcode.com/","scope":"application"},"amp.notifications.enabled":{"type":"boolean","default":true,"description":"Play notification sound when done or blocked","scope":"window"},"amp.mcpServers":{"type":"object","description":"Model Context Protocol servers that expose tools","additionalProperties":{"type":"object","oneOf":[{"properties":{"command":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"env":{"type":"object","additionalProperties":{"type":"string"}}},"required":["command"]},{"properties":{"url":{"type":"string"}},"required":["url"]}]}},"amp.tools.disable":{"type":"array","description":"Disable specific tools by name.","items":{"type":"string"},"default":[]},"amp.commands.allowlist":{"type":"array","description":"Run specific terminal commands without waiting for user confirmation. Each item in the array is a prefix. For example, \\"curl https://localhost:8080\\" means that command and any command that starts with that prefix can be run without user confirmation.\\n\\nIf any of the array items is \\"*\\", all commands will be run without user confirmation (DANGER: USE AT YOUR OWN RISK).","items":{"type":"string"},"default":[],"scope":"window"},"amp.commands.strict":{"type":"boolean","default":false,"description":"Enable strict command validation. When disabled, certain commands like Bazel get relaxed path validation.","scope":"application"},"amp.anthropic.thinking.enabled":{"type":"boolean","default":true,"description":"Enable Claude's extended thinking capabilities","scope":"application"},"amp.terminal.commands.hide":{"type":"boolean","default":true,"description":"Whether to hide the integrated VS Code terminal by default when starting commands","scope":"application"},"amp.terminal.commands.environment":{"type":"string","default":"vscode-terminal","enum":["vscode-terminal","node-spawn"],"description":"What environment to use when running terminal commands","scope":"application"},"amp.tools.stopTimeout":{"type":"number","default":300,"description":"How many seconds to wait before canceling a running tool.","scope":"application"},"amp.terminal.commands.vscodeTerminal.shellPath":{"type":"string","default":null,"description":"A path to a custom shell executable to be used in the terminal. When null, uses the default integrated terminal profile from the setting 'Terminal > Integrated > Default Profile'","scope":"application"},"amp.terminal.commands.vscodeTerminal.shellArgs":{"type":"array","items":{"type":"string"},"default":null,"description":"Args for the custom shell executable. Only used when 'amp.terminal.commands.vscodeTerminal.shellPath' is set.","scope":"application"},"amp.terminal.commands.vscodeTerminal.detachTimeout":{"type":"number","default":90,"description":"How many seconds to wait before detaching a running command to continue the conversation. The command continues to run in the background. This setting only has an effect when using the vscode-terminal environment.","scope":"application"},"amp.terminal.commands.nodeSpawn.loadProfile":{"type":"string","enum":["always","never","daily"],"default":"always","description":"Before running commands (including MCP servers), whether to load environment variables from the user's profile (.bashrc, .zshrc, .envrc) as visible from the workspace root directory.","scope":"application"},"amp.todos.enabled":{"type":"boolean","default":true,"description":"Enable TODOs tracking for managing tasks","scope":"application"},"amp.mode":{"type":"string","enum":["isolated","connected"],"deprecationMessage":"Isolated Mode is no longer supported. See https://ampcode.com/news/no-more-byok.","default":"connected","scope":"application"},"amp.hooks":{"type":"array","scope":"window","description":"[Experimental] Hooks are event handlers that can react to specific conditions.","items":{"type":"object","properties":{"compatibilityDate":{"type":"string","const":"2025-05-13","default":"2025-05-13","description":"The version of the hook schema that this value was written to conform to"},"id":{"type":"string","description":"A unique identifier for the hook","examples":["run-vitest-with-env-vars"]},"description":{"type":"string","description":"A description of the hook"},"on":{"type":"object","properties":{"event":{"type":"string","const":"tool:pre-execute","default":"tool:pre-execute","description":"Trigger when a tool is about to be executed"},"tool":{"oneOf":[{"type":"string","description":"Tool name to match (e.g., 'edit_file')"},{"type":"array","items":{"type":"string"},"description":"Tool names to match"}],"description":"Trigger for the given tool name(s)"},"input.contains":{"oneOf":[{"type":"string","description":"String pattern to match in the tool input"},{"type":"array","items":{"type":"string"},"description":"String patterns to match in the tool input"}],"description":"Trigger only when the tool input contains the given literal string or strings"}},"required":["event","tool","input.contains"]},"action":{"type":"object","properties":{"type":{"type":"string","const":"send-user-message","default":"send-user-message","description":"Send a user message to interrupt the agent and cancel the tool call in the \`tool:pre-execute\` trigger before it starts to run"},"message":{"type":"string","description":"The text of the message to send"}},"required":["type","message"]},"if":{"type":"boolean","description":"A condition that determines whether the hook should be executed","default":true}},"required":["compatibilityDate","id","on","action"]},"default":[]},"amp.tab.enabled":{"type":"boolean","default":false,"description":"Enable Amp Tab","scope":"application"},"amp.tab.verboseLogs":{"type":"boolean","default":false,"description":"Enable verbose logging for Amp Tab","scope":"application"},"amp.debugLogs":{"type":"boolean","default":false,"description":"Enable debug logging in the Amp output channel","scope":"application"},"amp.tab.disabledLanguages":{"type":"array","items":{"type":"string"},"default":[],"examples":["markdown","python"],"description":"List of language IDs for which Amp Tab is disabled","scope":"application"},"amp.tab.disableOnComment":{"type":"boolean","default":false,"description":"Disable Amp Tab completions on comment lines","scope":"application"},"amp.tab.autoImport.enabled":{"type":"boolean","default":false,"description":"Enable auto import in Amp Tab","scope":"application"},"amp.experimental.connections":{"type":"boolean","default":false,"description":"Enable external connections to provide additional tools to Amp","scope":"application"},"amp.ui.zoomLevel":{"type":"number","default":1,"description":"Zoom level for the Amp UI","scope":"application"},"amp.experimental.reviewTool":{"type":"boolean","default":false,"description":"Experimental: Enable the summarize_git_diff tool.","scope":"application"}}},"icons":{"amp-agent-file":{"description":"Amp agent file","default":{"fontPath":"resources/amp-icons.woff","fontCharacter":"\\\\0041"}}}}`), Zut = {
1798
1798
  contributes: Qut
1799
1799
  }, Jut = Zut.contributes.configuration.properties;
1800
1800
  function edt() {
@@ -1920,7 +1920,7 @@ function iE(t) {
1920
1920
  return ["done", "error", "rejected-by-user", "cancelled"].includes(t.status);
1921
1921
  }
1922
1922
  function aE() {
1923
- const t = [], e = new Oa();
1923
+ const t = [], e = new La();
1924
1924
  function r(i, a) {
1925
1925
  const s = t.filter((o) => o.spec.name === i);
1926
1926
  for (const o of s)
@@ -1946,7 +1946,7 @@ function aE() {
1946
1946
  registerTool({ spec: i, fn: a, preprocessArgs: s }) {
1947
1947
  return a ? n(i, a, s) : odt;
1948
1948
  },
1949
- tools: Bl(Ga, e.pipe(td(void 0))).pipe(
1949
+ tools: Bl(Da, e.pipe(td(void 0))).pipe(
1950
1950
  kn(([i]) => t.map((a) => ({
1951
1951
  spec: a.spec,
1952
1952
  ...xR(a.spec, i)
@@ -9969,7 +9969,7 @@ function dpt(t, e, r) {
9969
9969
  (u) => {
9970
9970
  if (u === Tg || u instanceof Error || u === Ly)
9971
9971
  return rr.of(u);
9972
- const d = new Oa();
9972
+ const d = new La();
9973
9973
  return u.setNotificationHandler(uxe, () => {
9974
9974
  d.next();
9975
9975
  }), d.pipe(
@@ -10016,7 +10016,7 @@ async function hpt(t, e, r) {
10016
10016
  if ("url" in t)
10017
10017
  n = new Yft(new URL(t.url));
10018
10018
  else {
10019
- const { loadProfileEnvironmentVariables: i } = await Promise.resolve().then(() => QSr), a = r.loadProfile === "never" || !r.workingDirectory || !$3(r.workingDirectory) ? process.env : await Yn(
10019
+ const { loadProfileEnvironmentVariables: i } = await Promise.resolve().then(() => QSr), a = r.loadProfile === "never" || !r.workingDirectory || !$3(r.workingDirectory) ? process.env : await Vn(
10020
10020
  i(
10021
10021
  r.workingDirectory.fsPath,
10022
10022
  r.loadProfile
@@ -10069,7 +10069,7 @@ function fpt({
10069
10069
  configService: t,
10070
10070
  toolService: e
10071
10071
  }) {
10072
- const r = new gpt(), n = new Oa(), i = Ga.pipe(
10072
+ const r = new gpt(), n = new La(), i = Da.pipe(
10073
10073
  kn(
10074
10074
  ({
10075
10075
  settings: { mcpServers: p, "terminal.commands.nodeSpawn.loadProfile": f }
@@ -10129,7 +10129,7 @@ function fpt({
10129
10129
  }
10130
10130
  );
10131
10131
  return {
10132
- servers: Bl(Ga, o).pipe(
10132
+ servers: Bl(Da, o).pipe(
10133
10133
  Cc(
10134
10134
  ([p, f]) => f.length === 0 ? rr.of([]) : Bl(
10135
10135
  ...f.map(
@@ -10198,7 +10198,7 @@ function fpt({
10198
10198
  });
10199
10199
  },
10200
10200
  async addServer(p, f) {
10201
- const m = (await Yn(Ga)).settings.mcpServers;
10201
+ const m = (await Vn(Da)).settings.mcpServers;
10202
10202
  if (m && p in m)
10203
10203
  throw new Error(`MCP server already exists with name ${JSON.stringify(p)}`);
10204
10204
  if ("command" in f && typeof f.command != "string")
@@ -10212,14 +10212,14 @@ function fpt({
10212
10212
  await t.updateSettings("mcpServers", { ...m, [p]: f }, "global");
10213
10213
  },
10214
10214
  async removeServer(p) {
10215
- const f = (await Yn(Ga)).settings.mcpServers;
10215
+ const f = (await Vn(Da)).settings.mcpServers;
10216
10216
  if (!f || !(p in f))
10217
10217
  throw new Error(`MCP server does not exist with name ${JSON.stringify(p)}`);
10218
10218
  const m = { ...f };
10219
10219
  delete m[p], await t.updateSettings("mcpServers", m, "global");
10220
10220
  },
10221
10221
  async updateServer(p, f) {
10222
- const m = (await Yn(Ga)).settings.mcpServers;
10222
+ const m = (await Vn(Da)).settings.mcpServers;
10223
10223
  if (!m || !(p in m))
10224
10224
  throw new Error(`MCP server does not exist with name ${JSON.stringify(p)}`);
10225
10225
  await t.updateSettings("mcpServers", { ...m, [p]: f }, "global");
@@ -11589,7 +11589,7 @@ function kpt(t) {
11589
11589
  );
11590
11590
  }
11591
11591
  function Dpt(t) {
11592
- const e = {}, r = new Oa();
11592
+ const e = {}, r = new La();
11593
11593
  return {
11594
11594
  async get(n) {
11595
11595
  return Promise.resolve(e[n]);
@@ -12280,7 +12280,7 @@ function aQ(t) {
12280
12280
  const e = t.startsWith("^") ? 1 : 0, r = t.endsWith("$") ? t.length - 1 : t.length;
12281
12281
  return t.slice(e, r);
12282
12282
  }
12283
- function Na(t, e, r) {
12283
+ function Ia(t, e, r) {
12284
12284
  Object.defineProperty(t, e, {
12285
12285
  get() {
12286
12286
  {
@@ -13080,7 +13080,7 @@ const bmt = /* @__PURE__ */ $t("$ZodObject", (t, e) => {
13080
13080
  optionalKeys: new Set(p)
13081
13081
  };
13082
13082
  });
13083
- Na(t._zod, "disc", () => {
13083
+ Ia(t._zod, "disc", () => {
13084
13084
  const h = e.shape, p = /* @__PURE__ */ new Map();
13085
13085
  let f = !1;
13086
13086
  for (const m in h) {
@@ -13201,10 +13201,10 @@ function qce(t, e, r, n) {
13201
13201
  }), e;
13202
13202
  }
13203
13203
  const Emt = /* @__PURE__ */ $t("$ZodUnion", (t, e) => {
13204
- rs.init(t, e), Na(t._zod, "values", () => {
13204
+ rs.init(t, e), Ia(t._zod, "values", () => {
13205
13205
  if (e.options.every((r) => r._zod.values))
13206
13206
  return new Set(e.options.flatMap((r) => Array.from(r._zod.values)));
13207
- }), Na(t._zod, "pattern", () => {
13207
+ }), Ia(t._zod, "pattern", () => {
13208
13208
  if (e.options.every((r) => r._zod.pattern)) {
13209
13209
  const r = e.options.map((n) => n._zod.pattern);
13210
13210
  return new RegExp(`^(${r.map((n) => aQ(n.source)).join("|")})$`);
@@ -13298,17 +13298,17 @@ const Tmt = /* @__PURE__ */ $t("$ZodEnum", (t, e) => {
13298
13298
  return r.value = i, r;
13299
13299
  };
13300
13300
  }), Cmt = /* @__PURE__ */ $t("$ZodOptional", (t, e) => {
13301
- rs.init(t, e), t._zod.optin = "optional", t._zod.optout = "optional", Na(t._zod, "values", () => e.innerType._zod.values ? /* @__PURE__ */ new Set([...e.innerType._zod.values, void 0]) : void 0), Na(t._zod, "pattern", () => {
13301
+ rs.init(t, e), t._zod.optin = "optional", t._zod.optout = "optional", Ia(t._zod, "values", () => e.innerType._zod.values ? /* @__PURE__ */ new Set([...e.innerType._zod.values, void 0]) : void 0), Ia(t._zod, "pattern", () => {
13302
13302
  const r = e.innerType._zod.pattern;
13303
13303
  return r ? new RegExp(`^(${aQ(r.source)})?$`) : void 0;
13304
13304
  }), t._zod.parse = (r, n) => r.value === void 0 ? r : e.innerType._zod.run(r, n);
13305
13305
  }), xmt = /* @__PURE__ */ $t("$ZodNullable", (t, e) => {
13306
- rs.init(t, e), Na(t._zod, "optin", () => e.innerType._zod.optin), Na(t._zod, "optout", () => e.innerType._zod.optout), Na(t._zod, "pattern", () => {
13306
+ rs.init(t, e), Ia(t._zod, "optin", () => e.innerType._zod.optin), Ia(t._zod, "optout", () => e.innerType._zod.optout), Ia(t._zod, "pattern", () => {
13307
13307
  const r = e.innerType._zod.pattern;
13308
13308
  return r ? new RegExp(`^(${aQ(r.source)}|null)$`) : void 0;
13309
- }), Na(t._zod, "values", () => e.innerType._zod.values ? /* @__PURE__ */ new Set([...e.innerType._zod.values, null]) : void 0), t._zod.parse = (r, n) => r.value === null ? r : e.innerType._zod.run(r, n);
13309
+ }), Ia(t._zod, "values", () => e.innerType._zod.values ? /* @__PURE__ */ new Set([...e.innerType._zod.values, null]) : void 0), t._zod.parse = (r, n) => r.value === null ? r : e.innerType._zod.run(r, n);
13310
13310
  }), Amt = /* @__PURE__ */ $t("$ZodDefault", (t, e) => {
13311
- rs.init(t, e), t._zod.optin = "optional", Na(t._zod, "values", () => e.innerType._zod.values), t._zod.parse = (r, n) => {
13311
+ rs.init(t, e), t._zod.optin = "optional", Ia(t._zod, "values", () => e.innerType._zod.values), t._zod.parse = (r, n) => {
13312
13312
  if (r.value === void 0)
13313
13313
  return r.value = e.defaultValue, r;
13314
13314
  const i = e.innerType._zod.run(r, n);
@@ -13319,9 +13319,9 @@ function Hce(t, e) {
13319
13319
  return t.value === void 0 && (t.value = e.defaultValue), t;
13320
13320
  }
13321
13321
  const kmt = /* @__PURE__ */ $t("$ZodPrefault", (t, e) => {
13322
- rs.init(t, e), t._zod.optin = "optional", Na(t._zod, "values", () => e.innerType._zod.values), t._zod.parse = (r, n) => (r.value === void 0 && (r.value = e.defaultValue), e.innerType._zod.run(r, n));
13322
+ rs.init(t, e), t._zod.optin = "optional", Ia(t._zod, "values", () => e.innerType._zod.values), t._zod.parse = (r, n) => (r.value === void 0 && (r.value = e.defaultValue), e.innerType._zod.run(r, n));
13323
13323
  }), Dmt = /* @__PURE__ */ $t("$ZodNonOptional", (t, e) => {
13324
- rs.init(t, e), Na(t._zod, "values", () => {
13324
+ rs.init(t, e), Ia(t._zod, "values", () => {
13325
13325
  const r = e.innerType._zod.values;
13326
13326
  return r ? new Set([...r].filter((n) => n !== void 0)) : void 0;
13327
13327
  }), t._zod.parse = (r, n) => {
@@ -13338,7 +13338,7 @@ function Vce(t, e) {
13338
13338
  }), t;
13339
13339
  }
13340
13340
  const Rmt = /* @__PURE__ */ $t("$ZodCatch", (t, e) => {
13341
- rs.init(t, e), Na(t._zod, "optin", () => e.innerType._zod.optin), Na(t._zod, "optout", () => e.innerType._zod.optout), Na(t._zod, "values", () => e.innerType._zod.values), t._zod.parse = (r, n) => {
13341
+ rs.init(t, e), Ia(t._zod, "optin", () => e.innerType._zod.optin), Ia(t._zod, "optout", () => e.innerType._zod.optout), Ia(t._zod, "values", () => e.innerType._zod.values), t._zod.parse = (r, n) => {
13342
13342
  const i = e.innerType._zod.run(r, n);
13343
13343
  return i instanceof Promise ? i.then((a) => (r.value = a.value, a.issues.length && (r.value = e.catchValue({
13344
13344
  ...r,
@@ -13355,7 +13355,7 @@ const Rmt = /* @__PURE__ */ $t("$ZodCatch", (t, e) => {
13355
13355
  }), r.issues = []), r);
13356
13356
  };
13357
13357
  }), Nmt = /* @__PURE__ */ $t("$ZodPipe", (t, e) => {
13358
- rs.init(t, e), Na(t._zod, "values", () => e.in._zod.values), Na(t._zod, "optin", () => e.in._zod.optin), Na(t._zod, "optout", () => e.out._zod.optout), t._zod.parse = (r, n) => {
13358
+ rs.init(t, e), Ia(t._zod, "values", () => e.in._zod.values), Ia(t._zod, "optin", () => e.in._zod.optin), Ia(t._zod, "optout", () => e.out._zod.optout), t._zod.parse = (r, n) => {
13359
13359
  const i = e.in._zod.run(r, n);
13360
13360
  return i instanceof Promise ? i.then((a) => Wce(a, e, n)) : Wce(i, e, n);
13361
13361
  };
@@ -13364,7 +13364,7 @@ function Wce(t, e, r) {
13364
13364
  return CT(t) ? t : e.out._zod.run({ value: t.value, issues: t.issues }, r);
13365
13365
  }
13366
13366
  const Imt = /* @__PURE__ */ $t("$ZodReadonly", (t, e) => {
13367
- rs.init(t, e), Na(t._zod, "disc", () => e.innerType._zod.disc), Na(t._zod, "optin", () => e.innerType._zod.optin), Na(t._zod, "optout", () => e.innerType._zod.optout), t._zod.parse = (r, n) => {
13367
+ rs.init(t, e), Ia(t._zod, "disc", () => e.innerType._zod.disc), Ia(t._zod, "optin", () => e.innerType._zod.optin), Ia(t._zod, "optout", () => e.innerType._zod.optout), t._zod.parse = (r, n) => {
13368
13368
  const i = e.innerType._zod.run(r, n);
13369
13369
  return i instanceof Promise ? i.then(Yce) : Yce(i);
13370
13370
  };
@@ -14337,7 +14337,7 @@ function o1t(t, e) {
14337
14337
  return b0t(s1t, t, e);
14338
14338
  }
14339
14339
  const l1t = /* @__PURE__ */ $t("ZodObject", (t, e) => {
14340
- bmt.init(t, e), Ds.init(t, e), Na(t, "shape", () => Object.fromEntries(Object.entries(t._zod.def.shape))), t.keyof = () => p1t(Object.keys(t._zod.def.shape)), t.catchall = (r) => t.clone({ ...t._zod.def, catchall: r }), t.passthrough = () => t.clone({ ...t._zod.def, catchall: Zce() }), t.loose = () => t.clone({ ...t._zod.def, catchall: Zce() }), t.strict = () => t.clone({ ...t._zod.def, catchall: a1t() }), t.strip = () => t.clone({ ...t._zod.def, catchall: void 0 }), t.extend = (r) => Zpt(t, r), t.merge = (r) => Jpt(t, r), t.pick = (r) => Xpt(t, r), t.omit = (r) => Qpt(t, r), t.partial = (...r) => egt(Wxe, t, r[0]), t.required = (...r) => tgt(Yxe, t, r[0]);
14340
+ bmt.init(t, e), Ds.init(t, e), Ia(t, "shape", () => Object.fromEntries(Object.entries(t._zod.def.shape))), t.keyof = () => p1t(Object.keys(t._zod.def.shape)), t.catchall = (r) => t.clone({ ...t._zod.def, catchall: r }), t.passthrough = () => t.clone({ ...t._zod.def, catchall: Zce() }), t.loose = () => t.clone({ ...t._zod.def, catchall: Zce() }), t.strict = () => t.clone({ ...t._zod.def, catchall: a1t() }), t.strip = () => t.clone({ ...t._zod.def, catchall: void 0 }), t.extend = (r) => Zpt(t, r), t.merge = (r) => Jpt(t, r), t.pick = (r) => Xpt(t, r), t.omit = (r) => Qpt(t, r), t.partial = (...r) => egt(Wxe, t, r[0]), t.required = (...r) => tgt(Yxe, t, r[0]);
14341
14341
  });
14342
14342
  function c1t(t, e) {
14343
14343
  const r = {
@@ -16146,7 +16146,7 @@ class S_t {
16146
16146
  */
16147
16147
  exclusiveThreads = /* @__PURE__ */ new Map();
16148
16148
  /** Emits whenever the set of exclusive threads changes. */
16149
- exclusiveThreadsChanged = new Oa();
16149
+ exclusiveThreadsChanged = new La();
16150
16150
  /**
16151
16151
  * Observable that emits whenever the set of exclusive threads (the threads that are writable by
16152
16152
  * this process) changes. Observers should listen to the individual BehaviorSubjects for each
@@ -16158,7 +16158,7 @@ class S_t {
16158
16158
  td(void 0),
16159
16159
  kn(() => this.exclusiveThreads)
16160
16160
  );
16161
- flushRequests = new Oa();
16161
+ flushRequests = new La();
16162
16162
  /** Periodically flush threads to storage. */
16163
16163
  flusher = this.exclusiveThreadsChanged.pipe(
16164
16164
  kn(() => Array.from(this.exclusiveThreads.keys())),
@@ -16391,15 +16391,15 @@ function k_t() {
16391
16391
  }
16392
16392
  );
16393
16393
  }
16394
- const K3 = k_t(), D_t = Ga.pipe(
16394
+ const K3 = k_t(), D_t = Da.pipe(
16395
16395
  Cc(({ settings: t, secrets: e }) => zs(async () => await e.getToken("apiKey", t.url) !== void 0))
16396
16396
  );
16397
16397
  async function no(t, e) {
16398
- const r = await Yn(Ga, e?.signal ?? void 0);
16398
+ const r = await Vn(Da, e?.signal ?? void 0);
16399
16399
  return N_t(r, t, e);
16400
16400
  }
16401
16401
  async function R_t(t, e) {
16402
- const r = await Yn(t.observe(e));
16402
+ const r = await Vn(t.observe(e));
16403
16403
  if (!r)
16404
16404
  throw new Error(`Thread not found: ${e}`);
16405
16405
  try {
@@ -16454,9 +16454,9 @@ function I_t({
16454
16454
  }) {
16455
16455
  let n = !1;
16456
16456
  const i = [], a = Mut(), s = new wf(/* @__PURE__ */ new Map()), o = async () => {
16457
- if (n || !await Yn(D_t))
16457
+ if (n || !await Vn(D_t))
16458
16458
  return !1;
16459
- const _ = await Yn(Ga);
16459
+ const _ = await Vn(Da);
16460
16460
  return r && jut(_.settings.url) ? (Be.debug(
16461
16461
  `Skipping sync to ${Lg} in extension development mode to avoid polluting the production server`,
16462
16462
  { name: "ThreadSyncService" }
@@ -16464,7 +16464,7 @@ function I_t({
16464
16464
  }, l = async (_) => {
16465
16465
  if (!h(_))
16466
16466
  return;
16467
- const v = await Yn(t.observe(_));
16467
+ const v = await Vn(t.observe(_));
16468
16468
  if (v && !v.messages.length || !await o())
16469
16469
  return;
16470
16470
  const y = new AbortController();
@@ -16522,19 +16522,19 @@ function I_t({
16522
16522
  if (_)
16523
16523
  y = (await Promise.all(
16524
16524
  _.map(
16525
- (x) => Yn(
16525
+ (x) => Vn(
16526
16526
  t.observe(x).pipe(kn((A) => A ? { id: A.id, v: A.v } : null))
16527
16527
  )
16528
16528
  )
16529
16529
  )).filter((x) => x !== null);
16530
16530
  else {
16531
- const x = await Yn(
16531
+ const x = await Vn(
16532
16532
  e.observeHistory().pipe(
16533
16533
  kn(
16534
16534
  (D) => D.map((R) => ({ id: R.id, v: R.v }))
16535
16535
  )
16536
16536
  )
16537
- ), A = await Yn(
16537
+ ), A = await Vn(
16538
16538
  t.exclusiveThreadsChanges.pipe(
16539
16539
  kn(
16540
16540
  (D) => Object.values(D).map(
@@ -19781,7 +19781,7 @@ function Eyt(t) {
19781
19781
  }
19782
19782
  const o6 = "claude-sonnet-4-20250514", wQ = o6, XAe = 32e3, tN = 2e5 - XAe, Syt = 8e3, Tyt = 4e3;
19783
19783
  async function* wyt(t, e, r, n, i, a) {
19784
- const s = await Yn(Ga, i);
19784
+ const s = await Vn(Da, i);
19785
19785
  i?.throwIfAborted();
19786
19786
  const o = await c6(s, { threadID: n });
19787
19787
  i?.throwIfAborted();
@@ -19865,7 +19865,7 @@ function Cyt(t) {
19865
19865
  } : e);
19866
19866
  }
19867
19867
  async function l6(t, e, r, n, i) {
19868
- const a = await Yn(Ga, i);
19868
+ const a = await Vn(Da, i);
19869
19869
  i?.throwIfAborted();
19870
19870
  const s = await c6(a), o = QAe(t);
19871
19871
  r = [
@@ -20118,7 +20118,7 @@ class Iyt {
20118
20118
  * Fetches a thread by ID, throwing an error if not found.
20119
20119
  */
20120
20120
  async getThread(e) {
20121
- const r = await Yn(this.threadService.observe(e));
20121
+ const r = await Vn(this.threadService.observe(e));
20122
20122
  if (!r)
20123
20123
  throw new Error(`Thread ${e} not found`);
20124
20124
  return r;
@@ -20336,7 +20336,7 @@ async function tke(t, e) {
20336
20336
  const r = gQ(t.content);
20337
20337
  if (!r)
20338
20338
  return;
20339
- const n = await Yn(Ga, e), s = (await (await c6(n)).messages.create(
20339
+ const n = await Vn(Da, e), s = (await (await c6(n)).messages.create(
20340
20340
  {
20341
20341
  model: "claude-3-5-haiku-20241022",
20342
20342
  max_tokens: 60,
@@ -20387,7 +20387,7 @@ async function Pyt(t, e) {
20387
20387
  `).trim();
20388
20388
  if (!s)
20389
20389
  return;
20390
- const o = s.length > 2e3 ? s.substring(0, 2e3) + "..." : s, l = await Yn(Ga, e), h = (await (await c6(l)).messages.create(
20390
+ const o = s.length > 2e3 ? s.substring(0, 2e3) + "..." : s, l = await Vn(Da, e), h = (await (await c6(l)).messages.create(
20391
20391
  {
20392
20392
  model: "claude-3-5-haiku-20241022",
20393
20393
  max_tokens: 60,
@@ -30553,7 +30553,7 @@ var Cde = a6e, s6e = Object.prototype, JSt = s6e.hasOwnProperty, eTt = s6e.prope
30553
30553
  return arguments;
30554
30554
  }()) ? Cde : function(t) {
30555
30555
  return Su(t) && JSt.call(t, "callee") && !eTt.call(t, "callee");
30556
- }, Tb = tTt, rTt = Array.isArray, Vn = rTt, nTt = 9007199254740991;
30556
+ }, Tb = tTt, rTt = Array.isArray, Wn = rTt, nTt = 9007199254740991;
30557
30557
  function o6e(t) {
30558
30558
  return typeof t == "number" && t > -1 && t % 1 == 0 && t <= nTt;
30559
30559
  }
@@ -30642,7 +30642,7 @@ function E6e(t, e) {
30642
30642
  g(E6e, "isIndex");
30643
30643
  var q6 = E6e, YTt = Object.prototype, jTt = YTt.hasOwnProperty;
30644
30644
  function S6e(t, e) {
30645
- var r = Vn(t), n = !r && Tb(t), i = !r && !n && wb(t), a = !r && !n && !i && z6(t), s = r || n || i || a, o = s ? HTt(t.length, String) : [], l = o.length;
30645
+ var r = Wn(t), n = !r && Tb(t), i = !r && !n && wb(t), a = !r && !n && !i && z6(t), s = r || n || i || a, o = s ? HTt(t.length, String) : [], l = o.length;
30646
30646
  for (var u in t)
30647
30647
  (e || jTt.call(t, u)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
30648
30648
  (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
@@ -30690,8 +30690,8 @@ function k6e(t, e, r, n, i, a, s) {
30690
30690
  }
30691
30691
  var d = a ? a(o, l, r + "", t, e, s) : void 0, h = d === void 0;
30692
30692
  if (h) {
30693
- var p = Vn(l), f = !p && wb(l), m = !p && !f && z6(l);
30694
- d = l, p || f || m ? Vn(o) ? d = o : NN(o) ? d = ZOe(o) : f ? (h = !1, d = YOe(l, !0)) : m ? (h = !1, d = XOe(l, !0)) : d = [] : fTt(l) || Tb(l) ? (d = o, Tb(o) ? d = JTt(o) : (!Vl(o) || Eu(o)) && (d = n6e(l))) : h = !1;
30693
+ var p = Wn(l), f = !p && wb(l), m = !p && !f && z6(l);
30694
+ d = l, p || f || m ? Wn(o) ? d = o : NN(o) ? d = ZOe(o) : f ? (h = !1, d = YOe(l, !0)) : m ? (h = !1, d = XOe(l, !0)) : d = [] : fTt(l) || Tb(l) ? (d = o, Tb(o) ? d = JTt(o) : (!Vl(o) || Eu(o)) && (d = n6e(l))) : h = !1;
30695
30695
  }
30696
30696
  h && (s.set(l, d), i(d, l, n, a, s), s.delete(l)), vW(t, r, d);
30697
30697
  }
@@ -37499,7 +37499,7 @@ var A1 = u0, Ixt = "[object Map]", Oxt = "[object Set]", Lxt = Object.prototype,
37499
37499
  function Q9e(t) {
37500
37500
  if (t == null)
37501
37501
  return !0;
37502
- if (Cd(t) && (Vn(t) || typeof t == "string" || typeof t.splice == "function" || wb(t) || z6(t) || Tb(t)))
37502
+ if (Cd(t) && (Wn(t) || typeof t == "string" || typeof t.splice == "function" || wb(t) || z6(t) || Tb(t)))
37503
37503
  return !t.length;
37504
37504
  var e = A1(t);
37505
37505
  if (e == Ixt || e == Oxt)
@@ -48221,7 +48221,7 @@ const P6t = {
48221
48221
  }
48222
48222
  }, rY = "gemini-2.5-pro-preview-06-05", F6t = 1048576, B6t = 65535;
48223
48223
  async function* U6t(t, e, r, n, i) {
48224
- const a = await Yn(Ga, i);
48224
+ const a = await Vn(Da, i);
48225
48225
  i?.throwIfAborted();
48226
48226
  const s = await G6t(a, { threadID: n });
48227
48227
  i?.throwIfAborted();
@@ -54581,7 +54581,7 @@ async function y9t({
54581
54581
  configService: t,
54582
54582
  filesystem: e
54583
54583
  }, r) {
54584
- const n = await Yn(t.workspaceRoots);
54584
+ const n = await Vn(t.workspaceRoots);
54585
54585
  if (n.length === 0)
54586
54586
  return {
54587
54587
  role: "user",
@@ -54605,9 +54605,9 @@ async function y9t({
54605
54605
  userState: a
54606
54606
  };
54607
54607
  }
54608
- const Efe = $O(Ga);
54608
+ const Efe = $O(Da);
54609
54609
  async function v9t() {
54610
- return await Yn(Efe.observable), Efe.value.last;
54610
+ return await Vn(Efe.observable), Efe.value.last;
54611
54611
  }
54612
54612
  class rd {
54613
54613
  constructor(e, r) {
@@ -55150,7 +55150,7 @@ class rd {
55150
55150
  throw new Error(`(bug) tool invocation already in progress: ${e.id}`);
55151
55151
  if (e.inputPartialJSON)
55152
55152
  throw new Error(`(bug) tool use is incomplete: ${e.id}`);
55153
- const n = await Yn(Ga);
55153
+ const n = await Vn(Da);
55154
55154
  if (n.settings?.hooks) {
55155
55155
  const a = s9t(n.settings.hooks, {
55156
55156
  threadID: this.threadID,
@@ -55172,7 +55172,7 @@ class rd {
55172
55172
  data: { status: "in-progress" }
55173
55173
  });
55174
55174
  try {
55175
- const a = await Yn(
55175
+ const a = await Vn(
55176
55176
  this.deps.configService.workspaceRoots,
55177
55177
  i.signal
55178
55178
  ), s = m_t(this.thread), o = new rr((p) => {
@@ -55311,7 +55311,7 @@ class rd {
55311
55311
  })
55312
55312
  ]), e.signal.throwIfAborted(), l;
55313
55313
  }
55314
- if ((await Yn(Ga)).settings["gemini.enabled"] ?? !1) {
55314
+ if ((await Vn(Da)).settings["gemini.enabled"] ?? !1) {
55315
55315
  const o = await this.runGeminiInference(this.thread, e.signal), l = Y6t(o);
55316
55316
  for (; ; ) {
55317
55317
  const u = await l.next();
@@ -55380,9 +55380,9 @@ class rd {
55380
55380
  };
55381
55381
  }
55382
55382
  async runGeminiInference(e, r) {
55383
- const i = (await Yn(this.deps.toolService.tools, r)).filter(({ enabled: d }) => d).map(({ spec: d }) => d);
55383
+ const i = (await Vn(this.deps.toolService.tools, r)).filter(({ enabled: d }) => d).map(({ spec: d }) => d);
55384
55384
  r?.throwIfAborted();
55385
- const s = (await Yn(Ga, r))?.settings?.["todos.enabled"] ?? !0, o = await A9t(
55385
+ const s = (await Vn(Da, r))?.settings?.["todos.enabled"] ?? !0, o = await A9t(
55386
55386
  this.deps.systemPromptService,
55387
55387
  await this.deps.getThreadEnvironment(),
55388
55388
  s
@@ -55470,7 +55470,7 @@ class rd {
55470
55470
  });
55471
55471
  }
55472
55472
  async workspaceRoots() {
55473
- return Yn(this.deps.configService.workspaceRoots);
55473
+ return Vn(this.deps.configService.workspaceRoots);
55474
55474
  }
55475
55475
  /**
55476
55476
  * Reverts all file changes made by this thread by restoring the original content
@@ -56115,7 +56115,7 @@ ${n.rootDirectoryListing || ""}
56115
56115
  }), a;
56116
56116
  }
56117
56117
  async function ree(t, e, { enableTodos: r, enableTask: n }, i) {
56118
- const s = (await Yn(t.toolService.tools, i)).map(({ spec: o, enabled: l }) => l ? o : null).filter((o) => o !== null).filter(
56118
+ const s = (await Vn(t.toolService.tools, i)).map(({ spec: o, enabled: l }) => l ? o : null).filter((o) => o !== null).filter(
56119
56119
  (o) => r || o.name !== i1 && o.name !== Jo
56120
56120
  ).filter((o) => n || o.name !== ol);
56121
56121
  return r = s.some((o) => o.name === i1) && s.some((o) => o.name === Jo), n = s.some((o) => o.name === ol), {
@@ -56147,7 +56147,7 @@ async function A9t(t, e, r = !1) {
56147
56147
  return n.push(r ? LPe : MPe), n.join(`
56148
56148
  `);
56149
56149
  }
56150
- class k9t extends Oa {
56150
+ class k9t extends La {
56151
56151
  #e = new AbortController();
56152
56152
  #t = o6;
56153
56153
  #r = [];
@@ -102889,7 +102889,7 @@ const T7e = tr.join(oI || tr.join(dh(), ".local/share"), "amp"), xE = tr.join(
102889
102889
  "settings.json"
102890
102890
  ), EY = "secrets.json", SY = tr.join(T7e, EY);
102891
102891
  function w7e(t) {
102892
- const e = t?.settingsFile ?? xE, r = new Oa();
102892
+ const e = t?.settingsFile ?? xE, r = new La();
102893
102893
  let n;
102894
102894
  async function i() {
102895
102895
  try {
@@ -102959,7 +102959,7 @@ function w7e(t) {
102959
102959
  };
102960
102960
  }
102961
102961
  function m4(t) {
102962
- const e = T7e, r = new Oa();
102962
+ const e = T7e, r = new La();
102963
102963
  let n;
102964
102964
  async function i() {
102965
102965
  try {
@@ -104461,7 +104461,7 @@ function Mgr() {
104461
104461
  }(bz)), bz;
104462
104462
  }
104463
104463
  var i_e;
104464
- function La() {
104464
+ function Ma() {
104465
104465
  return i_e || (i_e = 1, function(t) {
104466
104466
  Object.defineProperty(t, "LEVEL", {
104467
104467
  value: Symbol.for("level")
@@ -104512,7 +104512,7 @@ function See() {
104512
104512
  }
104513
104513
  return String(p);
104514
104514
  }
104515
- var s = C7e(), o = La(), l = o.LEVEL, u = o.MESSAGE;
104515
+ var s = C7e(), o = Ma(), l = o.LEVEL, u = o.MESSAGE;
104516
104516
  s.enabled = !0;
104517
104517
  var d = /\s+/, h = /* @__PURE__ */ function() {
104518
104518
  function p() {
@@ -104650,7 +104650,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
104650
104650
  }
104651
104651
  return String(y);
104652
104652
  }
104653
- var p = La(), f = p.configs, m = p.LEVEL, _ = p.MESSAGE, v = /* @__PURE__ */ function() {
104653
+ var p = Ma(), f = p.configs, m = p.LEVEL, _ = p.MESSAGE, v = /* @__PURE__ */ function() {
104654
104654
  function y() {
104655
104655
  var b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
104656
104656
  levels: f.npm.levels
@@ -104756,7 +104756,7 @@ function Bgr() {
104756
104756
  }
104757
104757
  return String(m);
104758
104758
  }
104759
- var s = See(), o = s.Colorizer, l = x7e(), u = l.Padder, d = La(), h = d.configs, p = d.MESSAGE, f = /* @__PURE__ */ function() {
104759
+ var s = See(), o = s.Colorizer, l = x7e(), u = l.Padder, d = Ma(), h = d.configs, p = d.MESSAGE, f = /* @__PURE__ */ function() {
104760
104760
  function m() {
104761
104761
  var _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
104762
104762
  e(this, m), _.levels || (_.levels = h.cli.levels), this.colorizer = new o(_), this.padder = new u(_), this.options = _;
@@ -104828,7 +104828,7 @@ function $gr() {
104828
104828
  }
104829
104829
  return (u === "string" ? String : Number)(l);
104830
104830
  }
104831
- var i = Nc(), a = La(), s = a.LEVEL, o = a.MESSAGE;
104831
+ var i = Nc(), a = Ma(), s = a.LEVEL, o = a.MESSAGE;
104832
104832
  return Tz = i(function(l, u) {
104833
104833
  var d = u.stack, h = u.cause;
104834
104834
  if (l instanceof Error) {
@@ -105246,7 +105246,7 @@ var wz, f_e;
105246
105246
  function zgr() {
105247
105247
  if (f_e) return wz;
105248
105248
  f_e = 1;
105249
- var t = Nc(), e = La(), r = e.MESSAGE, n = Vx();
105249
+ var t = Nc(), e = Ma(), r = e.MESSAGE, n = Vx();
105250
105250
  function i(a, s) {
105251
105251
  return typeof s == "bigint" ? s.toString() : s;
105252
105252
  }
@@ -105268,7 +105268,7 @@ var xz, g_e;
105268
105268
  function Ggr() {
105269
105269
  if (g_e) return xz;
105270
105270
  g_e = 1;
105271
- var t = Nc(), e = La(), r = e.MESSAGE, n = Vx();
105271
+ var t = Nc(), e = Ma(), r = e.MESSAGE, n = Vx();
105272
105272
  return xz = t(function(i) {
105273
105273
  var a = {};
105274
105274
  return i.message && (a["@message"] = i.message, delete i.message), i.timestamp && (a["@timestamp"] = i.timestamp, delete i.timestamp), a["@fields"] = i, i[r] = n(a), i;
@@ -105420,7 +105420,7 @@ var Rz, v_e;
105420
105420
  function Ygr() {
105421
105421
  if (v_e) return Rz;
105422
105422
  v_e = 1;
105423
- var t = vd.inspect, e = Nc(), r = La(), n = r.LEVEL, i = r.MESSAGE, a = r.SPLAT;
105423
+ var t = vd.inspect, e = Nc(), r = Ma(), n = r.LEVEL, i = r.MESSAGE, a = r.SPLAT;
105424
105424
  return Rz = e(function(s) {
105425
105425
  var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, l = Object.assign({}, s);
105426
105426
  return delete l[n], delete l[i], delete l[a], s[i] = t(l, !1, o.depth || null, o.colorize), s;
@@ -105464,7 +105464,7 @@ function jgr() {
105464
105464
  }
105465
105465
  return String(u);
105466
105466
  }
105467
- var s = La(), o = s.MESSAGE, l = /* @__PURE__ */ function() {
105467
+ var s = Ma(), o = s.MESSAGE, l = /* @__PURE__ */ function() {
105468
105468
  function u(d) {
105469
105469
  e(this, u), this.template = d;
105470
105470
  }
@@ -105483,7 +105483,7 @@ var Nz, E_e;
105483
105483
  function Kgr() {
105484
105484
  if (E_e) return Nz;
105485
105485
  E_e = 1;
105486
- var t = Nc(), e = La(), r = e.MESSAGE, n = Vx();
105486
+ var t = Nc(), e = Ma(), r = e.MESSAGE, n = Vx();
105487
105487
  return Nz = t(function(i) {
105488
105488
  var a = n(Object.assign({}, i, {
105489
105489
  level: void 0,
@@ -105556,7 +105556,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
105556
105556
  }
105557
105557
  return String(b);
105558
105558
  }
105559
- var p = vd, f = La(), m = f.SPLAT, _ = /%[scdjifoO%]/g, v = /%%/g, y = /* @__PURE__ */ function() {
105559
+ var p = vd, f = Ma(), m = f.SPLAT, _ = /%[scdjifoO%]/g, v = /%%/g, y = /* @__PURE__ */ function() {
105560
105560
  function b(E) {
105561
105561
  o(this, b), this.options = E;
105562
105562
  }
@@ -105925,7 +105925,7 @@ var Lz, N_e;
105925
105925
  function omr() {
105926
105926
  if (N_e) return Lz;
105927
105927
  N_e = 1;
105928
- var t = C7e(), e = Nc(), r = La(), n = r.MESSAGE;
105928
+ var t = C7e(), e = Nc(), r = Ma(), n = r.MESSAGE;
105929
105929
  return Lz = e(function(i, a) {
105930
105930
  return a.level !== !1 && (i.level = t.strip(i.level)), a.message !== !1 && (i.message = t.strip(String(i.message))), a.raw !== !1 && i[n] && (i[n] = t.strip(String(i[n]))), i;
105931
105931
  }), Lz;
@@ -107345,7 +107345,7 @@ var X_e;
107345
107345
  function q7e() {
107346
107346
  if (X_e) return Fz.exports;
107347
107347
  X_e = 1;
107348
- var t = vd, e = wL(), r = La(), n = r.LEVEL, i = Fz.exports = function() {
107348
+ var t = vd, e = wL(), r = Ma(), n = r.LEVEL, i = Fz.exports = function() {
107349
107349
  var s = this, o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
107350
107350
  e.call(this, { objectMode: !0, highWaterMark: o.highWaterMark }), this.format = o.format, this.level = o.level, this.handleExceptions = o.handleExceptions, this.handleRejections = o.handleRejections, this.silent = o.silent, o.log && (this.log = o.log), o.logv && (this.logv = o.logv), o.close && (this.close = o.close), this.once("pipe", function(l) {
107351
107351
  s.levels = l.levels, s.parent = l;
@@ -107410,7 +107410,7 @@ var Qz = { exports: {} }, Q_e;
107410
107410
  function gmr() {
107411
107411
  if (Q_e) return Qz.exports;
107412
107412
  Q_e = 1;
107413
- var t = vd, e = La(), r = e.LEVEL, n = q7e(), i = Qz.exports = function() {
107413
+ var t = vd, e = Ma(), r = e.LEVEL, n = q7e(), i = Qz.exports = function() {
107414
107414
  var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
107415
107415
  if (n.call(this, s), !s.transport || typeof s.transport.log != "function")
107416
107416
  throw new Error("Invalid transport, must be an object with a log method.");
@@ -107513,7 +107513,7 @@ function mmr() {
107513
107513
  return S.__proto__ = T, S;
107514
107514
  }, p(b, E);
107515
107515
  }
107516
- var f = so, m = La(), _ = m.LEVEL, v = m.MESSAGE, y = Yx();
107516
+ var f = so, m = Ma(), _ = m.LEVEL, v = m.MESSAGE, y = Yx();
107517
107517
  return Zz = /* @__PURE__ */ function(b) {
107518
107518
  function E() {
107519
107519
  var S, T = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -109249,7 +109249,7 @@ function Wmr() {
109249
109249
  return I.__proto__ = F, I;
109250
109250
  }, p(D, R);
109251
109251
  }
109252
- var f = fd, m = tr, _ = xmr(), v = sct, y = La(), b = y.MESSAGE, E = DE(), S = E.Stream, T = E.PassThrough, w = Yx(), C = CL()("winston:file"), x = so, A = Vmr();
109252
+ var f = fd, m = tr, _ = xmr(), v = sct, y = Ma(), b = y.MESSAGE, E = DE(), S = E.Stream, T = E.PassThrough, w = Yx(), C = CL()("winston:file"), x = so, A = Vmr();
109253
109253
  return Sq = /* @__PURE__ */ function(D) {
109254
109254
  function R() {
109255
109255
  var I, F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -110001,7 +110001,7 @@ function jmr() {
110001
110001
  return S.__proto__ = T, S;
110002
110002
  }, p(b, E);
110003
110003
  }
110004
- var f = X7e(), m = La(), _ = m.MESSAGE, v = so, y = Yx();
110004
+ var f = X7e(), m = Ma(), _ = m.MESSAGE, v = so, y = Yx();
110005
110005
  return Cq = /* @__PURE__ */ function(b) {
110006
110006
  function E() {
110007
110007
  var S, T = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -110058,7 +110058,7 @@ var K_ = {}, Yye;
110058
110058
  function Aee() {
110059
110059
  if (Yye) return K_;
110060
110060
  Yye = 1;
110061
- var t = P7e(), e = La(), r = e.configs;
110061
+ var t = P7e(), e = Ma(), r = e.configs;
110062
110062
  return K_.cli = t.levels(r.cli), K_.npm = t.levels(r.npm), K_.syslog = t.levels(r.syslog), K_.addColors = t.levels, K_;
110063
110063
  }
110064
110064
  var s5 = { exports: {} }, o5 = { exports: {} }, jye;
@@ -110833,7 +110833,7 @@ var Oq = { exports: {} }, Lq = { exports: {} }, ive;
110833
110833
  function t0r() {
110834
110834
  if (ive) return Lq.exports;
110835
110835
  ive = 1;
110836
- const t = vd, e = wL(), { LEVEL: r } = La(), n = Lq.exports = function(a = {}) {
110836
+ const t = vd, e = wL(), { LEVEL: r } = Ma(), n = Lq.exports = function(a = {}) {
110837
110837
  e.call(this, { objectMode: !0, highWaterMark: a.highWaterMark }), this.format = a.format, this.level = a.level, this.handleExceptions = a.handleExceptions, this.handleRejections = a.handleRejections, this.silent = a.silent, a.log && (this.log = a.log), a.logv && (this.logv = a.logv), a.close && (this.close = a.close), this.once("pipe", (s) => {
110838
110838
  this.levels = s.levels, this.parent = s;
110839
110839
  }), this.once("unpipe", (s) => {
@@ -110900,7 +110900,7 @@ var ave;
110900
110900
  function r0r() {
110901
110901
  if (ave) return Oq.exports;
110902
110902
  ave = 1;
110903
- const t = vd, { LEVEL: e } = La(), r = t0r(), n = Oq.exports = function(a = {}) {
110903
+ const t = vd, { LEVEL: e } = Ma(), r = t0r(), n = Oq.exports = function(a = {}) {
110904
110904
  if (r.call(this, a), !a.transport || typeof a.transport.log != "function")
110905
110905
  throw new Error("Invalid transport, must be an object with a log method.");
110906
110906
  this.transport = a.transport, this.level = this.level || a.transport.level, this.handleExceptions = this.handleExceptions || a.transport.handleExceptions, this._deprecated();
@@ -111020,7 +111020,7 @@ var Fq, lve;
111020
111020
  function a0r() {
111021
111021
  if (lve) return Fq;
111022
111022
  lve = 1;
111023
- const t = i0r(), { MESSAGE: e } = La(), r = Vx();
111023
+ const t = i0r(), { MESSAGE: e } = Ma(), r = Vx();
111024
111024
  function n(i, a) {
111025
111025
  return typeof a == "bigint" ? a.toString() : a;
111026
111026
  }
@@ -111106,7 +111106,7 @@ function Dee() {
111106
111106
  return $.__proto__ = U, $;
111107
111107
  }, f(N, O);
111108
111108
  }
111109
- var m = DE(), _ = m.Stream, v = m.Transform, y = kee(), b = La(), E = b.LEVEL, S = b.SPLAT, T = X7e(), w = J7e(), C = eFe(), x = r0r(), A = n0r(), D = F7e(), R = D.warn, I = Aee(), F = /%[scdjifoO%]/g, L = /* @__PURE__ */ function(N) {
111109
+ var m = DE(), _ = m.Stream, v = m.Transform, y = kee(), b = Ma(), E = b.LEVEL, S = b.SPLAT, T = X7e(), w = J7e(), C = eFe(), x = r0r(), A = n0r(), D = F7e(), R = D.warn, I = Aee(), F = /%[scdjifoO%]/g, L = /* @__PURE__ */ function(N) {
111110
111110
  function O($) {
111111
111111
  var U;
111112
111112
  return r(this, O), U = o(this, O, [{
@@ -111515,7 +111515,7 @@ function tFe() {
111515
111515
  return b.__proto__ = E, b;
111516
111516
  }, u(v, y);
111517
111517
  }
111518
- var d = La(), h = d.LEVEL, p = Aee(), f = Dee(), m = CL()("winston:create-logger");
111518
+ var d = Ma(), h = d.LEVEL, p = Aee(), f = Dee(), m = CL()("winston:create-logger");
111519
111519
  function _(v) {
111520
111520
  return "is" + v.charAt(0).toUpperCase() + v.slice(1) + "Enabled";
111521
111521
  }
@@ -113987,7 +113987,7 @@ class l1r {
113987
113987
  }
113988
113988
  subthreads = /* @__PURE__ */ new Map();
113989
113989
  nextAgentNumber = 1;
113990
- events = new Oa();
113990
+ events = new La();
113991
113991
  get events$() {
113992
113992
  return this.events;
113993
113993
  }
@@ -114047,7 +114047,7 @@ class l1r {
114047
114047
  return;
114048
114048
  }
114049
114049
  try {
114050
- const u = await Yn(
114050
+ const u = await Vn(
114051
114051
  this.dependencies.threadService.observe(e).pipe(zf((d) => d !== void 0))
114052
114052
  );
114053
114053
  if (u) {
@@ -117665,7 +117665,7 @@ class Lb {
117665
117665
  configs = /* @__PURE__ */ new Map();
117666
117666
  pendingRequests = /* @__PURE__ */ new Map();
117667
117667
  loadingPromise;
117668
- statusSubject = new Oa();
117668
+ statusSubject = new La();
117669
117669
  currentLanguageStatus = /* @__PURE__ */ new Map();
117670
117670
  filetypeToExtensions = {
117671
117671
  "astro-markdown": ["astro"],
@@ -117870,7 +117870,7 @@ class Lb {
117870
117870
  */
117871
117871
  static async isLSPEnabled() {
117872
117872
  try {
117873
- return (await Yn(Ga)).settings["lsp.enabled"] ?? !1;
117873
+ return (await Vn(Da)).settings["lsp.enabled"] ?? !1;
117874
117874
  } catch (e) {
117875
117875
  return Be.debug("Failed to get LSP enabled setting, defaulting to true", {
117876
117876
  error: e,
@@ -118078,7 +118078,7 @@ class Lb {
118078
118078
  ready: d,
118079
118079
  messageId: 1,
118080
118080
  diagnostics: /* @__PURE__ */ new Map(),
118081
- diagnosticsSubject: new Oa(),
118081
+ diagnosticsSubject: new La(),
118082
118082
  openDocuments: /* @__PURE__ */ new Set(),
118083
118083
  documentVersions: /* @__PURE__ */ new Map()
118084
118084
  };
@@ -118356,7 +118356,7 @@ class Lb {
118356
118356
  filePath: e,
118357
118357
  name: "LSPServerManager"
118358
118358
  });
118359
- const r = await this.startServerForFile(e), n = Fk(e).href, i = Yn(
118359
+ const r = await this.startServerForFile(e), n = Fk(e).href, i = Vn(
118360
118360
  r.diagnosticsSubject.pipe(
118361
118361
  zf((l) => l.uri === n),
118362
118362
  kn((l) => l.diagnostics),
@@ -118790,7 +118790,7 @@ async function dSr({
118790
118790
  const v = xL(), y = /* @__PURE__ */ new Set(), b = $O(
118791
118791
  r.observe(f).pipe(zf((N) => N !== void 0))
118792
118792
  ), E = /* @__PURE__ */ new Set();
118793
- await Yn(b.observable);
118793
+ await Vn(b.observable);
118794
118794
  const S = await rd.getOrCreateForThread(
118795
118795
  {
118796
118796
  configService: e,
@@ -118812,7 +118812,7 @@ async function dSr({
118812
118812
  kn((N) => ({ type: "worker-state", status: N }))
118813
118813
  ), w = b.observable.pipe(
118814
118814
  kn((N) => ({ type: "thread-state", thread: N }))
118815
- ), C = new Oa(), x = new Oa(), A = _(rr.from(x)).pipe(
118815
+ ), C = new La(), x = new La(), A = _(rr.from(x)).pipe(
118816
118816
  kn((N) => ({ type: "ui-input", input: N }))
118817
118817
  ), D = p.events$.pipe(
118818
118818
  kn((N) => N)
@@ -118823,7 +118823,7 @@ async function dSr({
118823
118823
  w,
118824
118824
  // merge only takes 5 args so have to nest them
118825
118825
  gw(C, A, D, R)
118826
- ), F = new Oa();
118826
+ ), F = new La();
118827
118827
  async function L() {
118828
118828
  x.next({ type: "state", state: { type: "shutting-down" } }), await t?.sync().catch((N) => {
118829
118829
  Be.error("Thread sync error", N, { threadID: f });
@@ -119813,11 +119813,11 @@ async function dSr({
119813
119813
  messages: []
119814
119814
  })), hSr(C).catch((N) => {
119815
119815
  Be.debug("Update check startup failed", N);
119816
- }), await Yn(F);
119816
+ }), await Vn(F);
119817
119817
  }
119818
119818
  async function hSr(t) {
119819
119819
  try {
119820
- const e = await sSr("0.0.1750449684-g750467");
119820
+ const e = await sSr("0.0.1750464102-ge766e0");
119821
119821
  e.hasUpdate && e.latestVersion ? (t.next({ type: "update-start-updating" }), setTimeout(async () => {
119822
119822
  try {
119823
119823
  await uSr(e.latestVersion), t.next({
@@ -120140,7 +120140,7 @@ function gSr(t) {
120140
120140
  `);
120141
120141
  }
120142
120142
  return (a) => {
120143
- const s = new Oa();
120143
+ const s = new La();
120144
120144
  if (!n)
120145
120145
  throw new Error("JSONL UI requires piped input (non-interactive mode)");
120146
120146
  return Be.debug("setting up JSONL UI"), a.pipe(
@@ -121340,7 +121340,7 @@ function DSr(t, e, r, n, i, a) {
121340
121340
  }))
121341
121341
  ), d = x3(e, "resize").pipe(
121342
121342
  kn(() => ({ type: "resize" }))
121343
- ), h = new Oa(), p = new Oa();
121343
+ ), h = new La(), p = new La();
121344
121344
  function f(v) {
121345
121345
  l.state = v, p.next({ type: "line-editor-state", state: v });
121346
121346
  }
@@ -121811,7 +121811,7 @@ function LSr(t) {
121811
121811
  tmuxSession: p
121812
121812
  } = t;
121813
121813
  return (f) => {
121814
- const m = new Oa(), _ = new OSr(e);
121814
+ const m = new La(), _ = new OSr(e);
121815
121815
  s && (Vr.enable(), r.write(
121816
121816
  `${i.print("Type ", { foreground: "gray" })}${i.print("\\", { foreground: "gray", style: "bold" })}${i.print(" followed by ", { foreground: "gray" })}${i.print("Enter", { foreground: "gray", style: "bold" })}${i.print(" to insert newlines, or use ", { foreground: "gray" })}${i.print("Shift+Enter", { foreground: "gray", style: "bold" })}${i.print(` in supported terminals.
121817
121817
  Interrupt the agent with `, { foreground: "gray" })}${i.print("Ctrl+C", { foreground: "gray", style: "bold" })}${i.print(", exit with ", { foreground: "gray" })}${i.print("Ctrl+D", { foreground: "gray", style: "bold" })}${i.print(".", { foreground: "gray" })}
@@ -122384,7 +122384,7 @@ async function og(t, e) {
122384
122384
  uI({
122385
122385
  logLevel: e.logLevel || process.env.AMP_LOG_LEVEL,
122386
122386
  logFile: e.logFile || process.env.AMP_LOG_FILE
122387
- }), A_t("0.0.1750449684-g750467");
122387
+ }), A_t("0.0.1750464102-ge766e0");
122388
122388
  const r = e.settingsFile ?? process.env.AMP_SETTINGS_FILE;
122389
122389
  Be.info("Using settings file", { settingsFile: r });
122390
122390
  const n = m4(), i = w7e({ settingsFile: r }), a = process.env.AMP_API_KEY;
@@ -122394,19 +122394,19 @@ async function og(t, e) {
122394
122394
  secretStorage: n,
122395
122395
  workspaceRoots: rr.of([oo.file(process.cwd())]),
122396
122396
  defaultAmpURL: t.ampURL
122397
- }), o = new USr(), l = aE(), u = fpt({ configService: s, toolService: l });
122398
- BPe(l);
122399
- let d, h;
122397
+ }), o = new USr(), l = aE(), u = fpt({ configService: s, toolService: l }), h = (await Vn(Da)).settings["experimental.reviewTool"] ?? !1;
122398
+ BPe(l, !1, !1, h);
122399
+ let p, f;
122400
122400
  if (t.isInteractiveMode) {
122401
- d = new pve(), await d.start();
122401
+ p = new pve(), await p.start();
122402
122402
  try {
122403
- await d0r(d, process.cwd());
122404
- } catch (b) {
122405
- Be.error("Failed to index files for fuzzy completion", b);
122403
+ await d0r(p, process.cwd());
122404
+ } catch (S) {
122405
+ Be.error("Failed to index files for fuzzy completion", S);
122406
122406
  }
122407
- h = h0r(d, process.cwd());
122407
+ f = h0r(p, process.cwd());
122408
122408
  } else
122409
- d = new class extends pve {
122409
+ p = new class extends pve {
122410
122410
  async start() {
122411
122411
  }
122412
122412
  async query() {
@@ -122414,39 +122414,39 @@ async function og(t, e) {
122414
122414
  }
122415
122415
  dispose() {
122416
122416
  }
122417
- }(), h = { [Symbol.dispose]: () => {
122417
+ }(), f = { [Symbol.dispose]: () => {
122418
122418
  } };
122419
122419
  await n.get("apiKey", t.ampURL) || (xi.write(`No API key found. Starting login flow...
122420
122420
  `), await $Sr(t, n) || process.exit(1));
122421
- const p = Dpt(), f = new S_t(p), m = new v_t(p), _ = new Iyt(f), v = new l1r({
122421
+ const m = Dpt(), _ = new S_t(m), v = new v_t(m), y = new Iyt(_), b = new l1r({
122422
122422
  configService: s,
122423
- threadService: f,
122423
+ threadService: _,
122424
122424
  toolService: l,
122425
122425
  systemPromptService: o,
122426
- threadSummaryService: _,
122427
- threadHistoryService: m,
122426
+ threadSummaryService: y,
122427
+ threadHistoryService: v,
122428
122428
  mcpService: u
122429
122429
  });
122430
- let y;
122431
- return Be.info("Starting Amp background services"), y = I_t({
122432
- threadService: f,
122433
- threadHistoryService: m,
122430
+ let E;
122431
+ return Be.info("Starting Amp background services"), E = I_t({
122432
+ threadService: _,
122433
+ threadHistoryService: v,
122434
122434
  isExtensionDevelopment: !1
122435
122435
  }), {
122436
122436
  configService: s,
122437
122437
  systemPromptService: o,
122438
122438
  toolService: l,
122439
122439
  mcpService: u,
122440
- threadService: f,
122441
- threadHistoryService: m,
122442
- summaryService: _,
122443
- threadSyncService: y,
122444
- threadStorage: p,
122440
+ threadService: _,
122441
+ threadHistoryService: v,
122442
+ summaryService: y,
122443
+ threadSyncService: E,
122444
+ threadStorage: m,
122445
122445
  secretStorage: n,
122446
122446
  settingsStorage: i,
122447
- fileWatcher: h,
122448
- fuzzyServer: d,
122449
- subthreadTracker: v
122447
+ fileWatcher: f,
122448
+ fuzzyServer: p,
122449
+ subthreadTracker: b
122450
122450
  };
122451
122451
  }
122452
122452
  async function $Sr(t, e) {
@@ -122497,11 +122497,11 @@ function qSr(t) {
122497
122497
  const o = s.originalError ?? s;
122498
122498
  Jd(t, o);
122499
122499
  }), e.option("-V, --version", "output the version number", () => {
122500
- const o = "(released 2025-06-20T20:09:47.929Z)";
122500
+ const o = "(released 2025-06-21T00:10:04.210Z)";
122501
122501
  t.isTTY ? xi.write(
122502
- `0.0.1750449684-g750467 ${t.printer.print(o, { foreground: "gray" })}
122502
+ `0.0.1750464102-ge766e0 ${t.printer.print(o, { foreground: "gray" })}
122503
122503
  `
122504
- ) : xi.write(`0.0.1750449684-g750467 ${o}
122504
+ ) : xi.write(`0.0.1750464102-ge766e0 ${o}
122505
122505
  `), process.exit(0);
122506
122506
  }), e.addHelpText(
122507
122507
  "after",
@@ -122933,7 +122933,7 @@ Summary: ${y}
122933
122933
  });
122934
122934
  const p = aE();
122935
122935
  BPe(p);
122936
- const f = await Yn(p.tools);
122936
+ const f = await Vn(p.tools);
122937
122937
  Ur.write(`# ${f.length} tools
122938
122938
  `), Ur.write(`
122939
122939
  `);
@@ -136068,7 +136068,7 @@ g(HBe, "copySymbolsIn");
136068
136068
  var LCr = HBe;
136069
136069
  function VBe(t, e, r) {
136070
136070
  var n = e(t);
136071
- return Vn(t) ? n : nte(n, r(t));
136071
+ return Wn(t) ? n : nte(n, r(t));
136072
136072
  }
136073
136073
  g(VBe, "baseGetAllKeys");
136074
136074
  var WBe = VBe;
@@ -136158,7 +136158,7 @@ function KT(t, e, r, n, i, a) {
136158
136158
  return s;
136159
136159
  if (!Vl(t))
136160
136160
  return t;
136161
- var d = Vn(t);
136161
+ var d = Wn(t);
136162
136162
  if (d) {
136163
136163
  if (s = FCr(t), !o)
136164
136164
  return ZOe(t, s);
@@ -136235,7 +136235,7 @@ function hUe(t) {
136235
136235
  g(hUe, "castFunction");
136236
136236
  var ate = hUe;
136237
136237
  function fUe(t, e) {
136238
- var r = Vn(t) ? MBe : o_;
136238
+ var r = Wn(t) ? MBe : o_;
136239
136239
  return r(t, ate(e));
136240
136240
  }
136241
136241
  g(fUe, "forEach");
@@ -136402,7 +136402,7 @@ function xUe(t, e, r, n, i, a) {
136402
136402
  g(xUe, "equalObjects");
136403
136403
  var mAr = xUe, _Ar = 1, zbe = "[object Arguments]", qbe = "[object Array]", U5 = "[object Object]", yAr = Object.prototype, Gbe = yAr.hasOwnProperty;
136404
136404
  function AUe(t, e, r, n, i, a) {
136405
- var s = Vn(t), o = Vn(e), l = s ? qbe : A1(t), u = o ? qbe : A1(e);
136405
+ var s = Wn(t), o = Wn(e), l = s ? qbe : A1(t), u = o ? qbe : A1(e);
136406
136406
  l = l == zbe ? U5 : l, u = u == zbe ? U5 : u;
136407
136407
  var d = l == U5, h = u == U5, p = l == u;
136408
136408
  if (p && wb(t)) {
@@ -136490,7 +136490,7 @@ function PUe(t) {
136490
136490
  g(PUe, "isSymbol");
136491
136491
  var O1 = PUe, xAr = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, AAr = /^\w*$/;
136492
136492
  function FUe(t, e) {
136493
- if (Vn(t))
136493
+ if (Wn(t))
136494
136494
  return !1;
136495
136495
  var r = typeof t;
136496
136496
  return r == "number" || r == "symbol" || r == "boolean" || t == null || O1(t) ? !0 : AAr.test(t) || !xAr.test(t) || e != null && t in Object(e);
@@ -136520,7 +136520,7 @@ var Dg = UUe, Hbe = bu ? bu.prototype : void 0, Vbe = Hbe ? Hbe.toString : void
136520
136520
  function dte(t) {
136521
136521
  if (typeof t == "string")
136522
136522
  return t;
136523
- if (Vn(t))
136523
+ if (Wn(t))
136524
136524
  return Dg(t, dte) + "";
136525
136525
  if (O1(t))
136526
136526
  return Vbe ? Vbe.call(t) : "";
@@ -136535,7 +136535,7 @@ function $Ue(t) {
136535
136535
  g($Ue, "toString");
136536
136536
  var zUe = $Ue;
136537
136537
  function qUe(t, e) {
136538
- return Vn(t) ? t : ute(t, e) ? [t] : OAr(zUe(t));
136538
+ return Wn(t) ? t : ute(t, e) ? [t] : OAr(zUe(t));
136539
136539
  }
136540
136540
  g(qUe, "castPath");
136541
136541
  var BL = qUe;
@@ -136574,7 +136574,7 @@ function YUe(t, e, r) {
136574
136574
  break;
136575
136575
  t = t[s];
136576
136576
  }
136577
- return a || ++n != i ? a : (i = t == null ? 0 : t.length, !!i && tJ(i) && q6(s, i) && (Vn(t) || Tb(t)));
136577
+ return a || ++n != i ? a : (i = t == null ? 0 : t.length, !!i && tJ(i) && q6(s, i) && (Wn(t) || Tb(t)));
136578
136578
  }
136579
136579
  g(YUe, "hasPath");
136580
136580
  var jUe = YUe;
@@ -136611,16 +136611,16 @@ function t$e(t) {
136611
136611
  g(t$e, "property");
136612
136612
  var zAr = t$e;
136613
136613
  function r$e(t) {
136614
- return typeof t == "function" ? t : t == null ? Wf : typeof t == "object" ? Vn(t) ? UAr(t[0], t[1]) : wAr(t) : zAr(t);
136614
+ return typeof t == "function" ? t : t == null ? Wf : typeof t == "object" ? Wn(t) ? UAr(t[0], t[1]) : wAr(t) : zAr(t);
136615
136615
  }
136616
136616
  g(r$e, "baseIteratee");
136617
136617
  var Jl = r$e;
136618
136618
  function n$e(t, e) {
136619
- var r = Vn(t) ? tte : gUe;
136619
+ var r = Wn(t) ? tte : gUe;
136620
136620
  return r(t, Jl(e));
136621
136621
  }
136622
136622
  g(n$e, "filter");
136623
- var Ia = n$e;
136623
+ var Oa = n$e;
136624
136624
  function i$e(t, e) {
136625
136625
  var r = -1, n = Cd(t) ? Array(t.length) : [];
136626
136626
  return o_(t, function(i, a, s) {
@@ -136630,7 +136630,7 @@ function i$e(t, e) {
136630
136630
  g(i$e, "baseMap");
136631
136631
  var a$e = i$e;
136632
136632
  function s$e(t, e) {
136633
- var r = Vn(t) ? Dg : a$e;
136633
+ var r = Wn(t) ? Dg : a$e;
136634
136634
  return r(t, Jl(e));
136635
136635
  }
136636
136636
  g(s$e, "map");
@@ -136715,7 +136715,7 @@ function _$e(t, e) {
136715
136715
  g(_$e, "basePick");
136716
136716
  var VAr = _$e, Wbe = bu ? bu.isConcatSpreadable : void 0;
136717
136717
  function y$e(t) {
136718
- return Vn(t) || Tb(t) || !!(Wbe && t && t[Wbe]);
136718
+ return Wn(t) || Tb(t) || !!(Wbe && t && t[Wbe]);
136719
136719
  }
136720
136720
  g(y$e, "isFlattenable");
136721
136721
  var WAr = y$e;
@@ -136758,7 +136758,7 @@ function S$e(t, e, r, n, i) {
136758
136758
  g(S$e, "baseReduce");
136759
136759
  var XAr = S$e;
136760
136760
  function T$e(t, e, r) {
136761
- var n = Vn(t) ? KAr : XAr, i = arguments.length < 3;
136761
+ var n = Wn(t) ? KAr : XAr, i = arguments.length < 3;
136762
136762
  return n(t, Jl(e), r, i, o_);
136763
136763
  }
136764
136764
  g(T$e, "reduce");
@@ -136935,7 +136935,7 @@ g(W$e, "baseAggregator");
136935
136935
  var Ikr = W$e;
136936
136936
  function Y$e(t, e) {
136937
136937
  return function(r, n) {
136938
- var i = Vn(r) ? Nkr : Ikr, a = e ? e() : {};
136938
+ var i = Wn(r) ? Nkr : Ikr, a = e ? e() : {};
136939
136939
  return i(r, t, Jl(n), a);
136940
136940
  };
136941
136941
  }
@@ -136993,7 +136993,7 @@ function Z$e(t, e) {
136993
136993
  g(Z$e, "baseEvery");
136994
136994
  var Ukr = Z$e;
136995
136995
  function J$e(t, e, r) {
136996
- var n = Vn(t) ? Bkr : Ukr;
136996
+ var n = Wn(t) ? Bkr : Ukr;
136997
136997
  return r && C1(t, e, r) && (e = void 0), n(t, Jl(e));
136998
136998
  }
136999
136999
  g(J$e, "every");
@@ -137055,7 +137055,7 @@ function oze(t, e) {
137055
137055
  g(oze, "has");
137056
137056
  var Yr = oze, Jkr = "[object String]";
137057
137057
  function lze(t) {
137058
- return typeof t == "string" || !Vn(t) && Su(t) && mp(t) == Jkr;
137058
+ return typeof t == "string" || !Wn(t) && Su(t) && mp(t) == Jkr;
137059
137059
  }
137060
137060
  g(lze, "isString");
137061
137061
  var ml = lze, eDr = Math.max;
@@ -137163,7 +137163,7 @@ g(bze, "compareMultiple");
137163
137163
  var cDr = bze;
137164
137164
  function Eze(t, e, r) {
137165
137165
  e.length ? e = Dg(e, function(a) {
137166
- return Vn(a) ? function(s) {
137166
+ return Wn(a) ? function(s) {
137167
137167
  return UL(s, a.length === 1 ? a[0] : a);
137168
137168
  } : a;
137169
137169
  }) : e = [Wf];
@@ -137208,7 +137208,7 @@ function Nze(t) {
137208
137208
  g(Nze, "createRange");
137209
137209
  var DDr = Nze, RDr = DDr(), Bb = RDr;
137210
137210
  function Ize(t, e) {
137211
- var r = Vn(t) ? tte : gUe;
137211
+ var r = Wn(t) ? tte : gUe;
137212
137212
  return r(t, sDr(Jl(e)));
137213
137213
  }
137214
137214
  g(Ize, "reject");
@@ -137232,7 +137232,7 @@ function Lze(t, e) {
137232
137232
  g(Lze, "baseSome");
137233
137233
  var LDr = Lze;
137234
137234
  function Mze(t, e, r) {
137235
- var n = Vn(t) ? vUe : LDr;
137235
+ var n = Wn(t) ? vUe : LDr;
137236
137236
  return r && C1(t, e, r) && (e = void 0), n(t, Jl(e));
137237
137237
  }
137238
137238
  g(Mze, "some");
@@ -137320,13 +137320,13 @@ var $Dr = "\0", jm = "\0", Zbe = "", ec = class {
137320
137320
  }
137321
137321
  sources() {
137322
137322
  var t = this;
137323
- return Ia(this.nodes(), function(e) {
137323
+ return Oa(this.nodes(), function(e) {
137324
137324
  return gi(t._in[e]);
137325
137325
  });
137326
137326
  }
137327
137327
  sinks() {
137328
137328
  var t = this;
137329
- return Ia(this.nodes(), function(e) {
137329
+ return Oa(this.nodes(), function(e) {
137330
137330
  return gi(t._out[e]);
137331
137331
  });
137332
137332
  }
@@ -137479,7 +137479,7 @@ var $Dr = "\0", jm = "\0", Zbe = "", ec = class {
137479
137479
  var r = this._in[t];
137480
137480
  if (r) {
137481
137481
  var n = Oi(r);
137482
- return e ? Ia(n, function(i) {
137482
+ return e ? Oa(n, function(i) {
137483
137483
  return i.v === e;
137484
137484
  }) : n;
137485
137485
  }
@@ -137488,7 +137488,7 @@ var $Dr = "\0", jm = "\0", Zbe = "", ec = class {
137488
137488
  var r = this._out[t];
137489
137489
  if (r) {
137490
137490
  var n = Oi(r);
137491
- return e ? Ia(n, function(i) {
137491
+ return e ? Oa(n, function(i) {
137492
137492
  return i.w === e;
137493
137493
  }) : n;
137494
137494
  }
@@ -137945,7 +137945,7 @@ function yC() {
137945
137945
  g(yC, "CycleException");
137946
137946
  yC.prototype = new Error();
137947
137947
  function Tte(t, e, r) {
137948
- Vn(e) || (e = [e]);
137948
+ Wn(e) || (e = [e]);
137949
137949
  var n = (t.isDirected() ? t.successors : t.neighbors).bind(t), i = [], a = {};
137950
137950
  return gt(e, function(s) {
137951
137951
  if (!t.hasNode(s))
@@ -138030,7 +138030,7 @@ function kte(t, e, r) {
138030
138030
  e.hasEdge(n, i) || (n = r.w, i = r.v);
138031
138031
  var a = t.node(n), s = t.node(i), o = a, l = !1;
138032
138032
  a.lim > s.lim && (o = s, l = !0);
138033
- var u = Ia(e.edges(), function(d) {
138033
+ var u = Oa(e.edges(), function(d) {
138034
138034
  return l === rj(t, t.node(d.v), o) && l !== rj(t, t.node(d.w), o);
138035
138035
  });
138036
138036
  return mte(u, function(d) {
@@ -138224,7 +138224,7 @@ function Dqe(t, e, r) {
138224
138224
  }
138225
138225
  g(Dqe, "twoLayerCrossCount");
138226
138226
  function Rqe(t) {
138227
- var e = {}, r = Ia(t.nodes(), function(o) {
138227
+ var e = {}, r = Oa(t.nodes(), function(o) {
138228
138228
  return !t.children(o).length;
138229
138229
  }), n = L1(
138230
138230
  Jt(r, function(o) {
@@ -138287,7 +138287,7 @@ function Iqe(t, e) {
138287
138287
  var a = r[i.v], s = r[i.w];
138288
138288
  !Ei(a) && !Ei(s) && (s.indegree++, a.out.push(r[i.w]));
138289
138289
  });
138290
- var n = Ia(r, function(i) {
138290
+ var n = Oa(r, function(i) {
138291
138291
  return !i.indegree;
138292
138292
  });
138293
138293
  return Oqe(n);
@@ -138311,7 +138311,7 @@ function Oqe(t) {
138311
138311
  e.push(i), gt(i.in.reverse(), r(i)), gt(i.out, n(i));
138312
138312
  }
138313
138313
  return Jt(
138314
- Ia(e, function(a) {
138314
+ Oa(e, function(a) {
138315
138315
  return !a.merged;
138316
138316
  }),
138317
138317
  function(a) {
@@ -138352,7 +138352,7 @@ function Pqe(t) {
138352
138352
  g(Pqe, "compareWithBias");
138353
138353
  function Nte(t, e, r, n) {
138354
138354
  var i = t.children(e), a = t.node(e), s = a ? a.borderLeft : void 0, o = a ? a.borderRight : void 0, l = {};
138355
- s && (i = Ia(i, function(m) {
138355
+ s && (i = Oa(i, function(m) {
138356
138356
  return m !== s && m !== o;
138357
138357
  }));
138358
138358
  var u = Nqe(t, i);
@@ -146830,7 +146830,7 @@ var Mh = class {
146830
146830
  constructor(t) {
146831
146831
  super(t.definition), this.idx = 1, kc(this, kd(t, (e) => e !== void 0));
146832
146832
  }
146833
- }, Da = class extends Mh {
146833
+ }, Ra = class extends Mh {
146834
146834
  static {
146835
146835
  g(this, "Repetition");
146836
146836
  }
@@ -146915,7 +146915,7 @@ function rw(t) {
146915
146915
  separator: rw(new ta({ terminalType: t.separator })),
146916
146916
  definition: e(t.definition)
146917
146917
  };
146918
- if (t instanceof Da)
146918
+ if (t instanceof Ra)
146919
146919
  return {
146920
146920
  type: "Repetition",
146921
146921
  idx: t.idx,
@@ -146969,7 +146969,7 @@ var BE = class {
146969
146969
  return this.visitRepetitionMandatoryWithSeparator(e);
146970
146970
  case tc:
146971
146971
  return this.visitRepetitionWithSeparator(e);
146972
- case Da:
146972
+ case Ra:
146973
146973
  return this.visitRepetition(e);
146974
146974
  case rc:
146975
146975
  return this.visitAlternation(e);
@@ -147014,11 +147014,11 @@ var BE = class {
147014
147014
  }
147015
147015
  };
147016
147016
  function MHe(t) {
147017
- return t instanceof Yl || t instanceof lo || t instanceof Da || t instanceof Oc || t instanceof Lc || t instanceof tc || t instanceof ta || t instanceof FE;
147017
+ return t instanceof Yl || t instanceof lo || t instanceof Ra || t instanceof Oc || t instanceof Lc || t instanceof tc || t instanceof ta || t instanceof FE;
147018
147018
  }
147019
147019
  g(MHe, "isSequenceProd");
147020
147020
  function xC(t, e = []) {
147021
- return t instanceof lo || t instanceof Da || t instanceof tc ? !0 : t instanceof rc ? Pze(t.definition, (n) => xC(n, e)) : t instanceof _l && bl(e, t) ? !1 : t instanceof Mh ? (t instanceof _l && e.push(t), ld(t.definition, (n) => xC(n, e))) : !1;
147021
+ return t instanceof lo || t instanceof Ra || t instanceof tc ? !0 : t instanceof rc ? Pze(t.definition, (n) => xC(n, e)) : t instanceof _l && bl(e, t) ? !1 : t instanceof Mh ? (t instanceof _l && e.push(t), ld(t.definition, (n) => xC(n, e))) : !1;
147022
147022
  }
147023
147023
  g(xC, "isOptionalProd");
147024
147024
  function PHe(t) {
@@ -147038,7 +147038,7 @@ function Ju(t) {
147038
147038
  return "AT_LEAST_ONE_SEP";
147039
147039
  if (t instanceof tc)
147040
147040
  return "MANY_SEP";
147041
- if (t instanceof Da)
147041
+ if (t instanceof Ra)
147042
147042
  return "MANY";
147043
147043
  if (t instanceof ta)
147044
147044
  return "CONSUME";
@@ -147066,7 +147066,7 @@ var d9 = class {
147066
147066
  this.walkAtLeastOneSep(r, i, e);
147067
147067
  else if (r instanceof tc)
147068
147068
  this.walkManySep(r, i, e);
147069
- else if (r instanceof Da)
147069
+ else if (r instanceof Ra)
147070
147070
  this.walkMany(r, i, e);
147071
147071
  else if (r instanceof rc)
147072
147072
  this.walkOr(r, i, e);
@@ -147331,7 +147331,7 @@ function gj(t, e) {
147331
147331
  g(gj, "findCode");
147332
147332
  function $I(t) {
147333
147333
  const e = t.quantifier;
147334
- return e && e.atLeast === 0 ? !0 : t.value ? Vn(t.value) ? ld(t.value, $I) : $I(t.value) : !1;
147334
+ return e && e.atLeast === 0 ? !0 : t.value ? Wn(t.value) ? ld(t.value, $I) : $I(t.value) : !1;
147335
147335
  }
147336
147336
  g($I, "isWholeOptional");
147337
147337
  var IRr = class extends a9 {
@@ -147445,7 +147445,7 @@ function jHe(t, e) {
147445
147445
  }), l = Jt(n, (b) => {
147446
147446
  const E = b.LONGER_ALT;
147447
147447
  if (E)
147448
- return Vn(E) ? Jt(E, (T) => Kbe(n, T)) : [Kbe(n, E)];
147448
+ return Wn(E) ? Jt(E, (T) => Kbe(n, T)) : [Kbe(n, E)];
147449
147449
  }), u = Jt(n, (b) => b.PUSH_MODE), d = Jt(n, (b) => Yr(b, "POP_MODE"));
147450
147450
  });
147451
147451
  let h;
@@ -147477,7 +147477,7 @@ function jHe(t, e) {
147477
147477
  if (typeof E.PATTERN == "string") {
147478
147478
  const T = E.PATTERN.charCodeAt(0), w = ap(T);
147479
147479
  I4(b, w, _[S]);
147480
- } else if (Vn(E.START_CHARS_HINT)) {
147480
+ } else if (Wn(E.START_CHARS_HINT)) {
147481
147481
  let T;
147482
147482
  gt(E.START_CHARS_HINT, (w) => {
147483
147483
  const C = typeof w == "string" ? w.charCodeAt(0) : w, x = ap(C);
@@ -147520,26 +147520,26 @@ function KHe(t, e) {
147520
147520
  g(KHe, "validatePatterns");
147521
147521
  function XHe(t) {
147522
147522
  let e = [];
147523
- const r = Ia(t, (n) => ep(n[M1]));
147523
+ const r = Oa(t, (n) => ep(n[M1]));
147524
147524
  return e = e.concat(JHe(r)), e = e.concat(tVe(r)), e = e.concat(rVe(r)), e = e.concat(nVe(r)), e = e.concat(eVe(r)), e;
147525
147525
  }
147526
147526
  g(XHe, "validateRegExpPattern");
147527
147527
  function QHe(t) {
147528
- const e = Ia(t, (i) => !Yr(i, M1)), r = Jt(e, (i) => ({
147528
+ const e = Oa(t, (i) => !Yr(i, M1)), r = Jt(e, (i) => ({
147529
147529
  message: "Token Type: ->" + i.name + "<- missing static 'PATTERN' property",
147530
- type: Ra.MISSING_PATTERN,
147530
+ type: Na.MISSING_PATTERN,
147531
147531
  tokenTypes: [i]
147532
147532
  })), n = zL(t, e);
147533
147533
  return { errors: r, valid: n };
147534
147534
  }
147535
147535
  g(QHe, "findMissingPatterns");
147536
147536
  function ZHe(t) {
147537
- const e = Ia(t, (i) => {
147537
+ const e = Oa(t, (i) => {
147538
147538
  const a = i[M1];
147539
147539
  return !ep(a) && !Eu(a) && !Yr(a, "exec") && !ml(a);
147540
147540
  }), r = Jt(e, (i) => ({
147541
147541
  message: "Token Type: ->" + i.name + "<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",
147542
- type: Ra.INVALID_PATTERN,
147542
+ type: Na.INVALID_PATTERN,
147543
147543
  tokenTypes: [i]
147544
147544
  })), n = zL(t, e);
147545
147545
  return { errors: r, valid: n };
@@ -147558,7 +147558,7 @@ function JHe(t) {
147558
147558
  this.found = !0;
147559
147559
  }
147560
147560
  }
147561
- const r = Ia(t, (i) => {
147561
+ const r = Oa(t, (i) => {
147562
147562
  const a = i.PATTERN;
147563
147563
  try {
147564
147564
  const s = gA(a), o = new e();
@@ -147571,16 +147571,16 @@ function JHe(t) {
147571
147571
  message: `Unexpected RegExp Anchor Error:
147572
147572
  Token Type: ->` + i.name + `<- static 'PATTERN' cannot contain end of input anchor '$'
147573
147573
  See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,
147574
- type: Ra.EOI_ANCHOR_FOUND,
147574
+ type: Na.EOI_ANCHOR_FOUND,
147575
147575
  tokenTypes: [i]
147576
147576
  }));
147577
147577
  }
147578
147578
  g(JHe, "findEndOfInputAnchor");
147579
147579
  function eVe(t) {
147580
- const e = Ia(t, (n) => n.PATTERN.test(""));
147580
+ const e = Oa(t, (n) => n.PATTERN.test(""));
147581
147581
  return Jt(e, (n) => ({
147582
147582
  message: "Token Type: ->" + n.name + "<- static 'PATTERN' must not match an empty string",
147583
- type: Ra.EMPTY_MATCH_PATTERN,
147583
+ type: Na.EMPTY_MATCH_PATTERN,
147584
147584
  tokenTypes: [n]
147585
147585
  }));
147586
147586
  }
@@ -147598,7 +147598,7 @@ function tVe(t) {
147598
147598
  this.found = !0;
147599
147599
  }
147600
147600
  }
147601
- const r = Ia(t, (i) => {
147601
+ const r = Oa(t, (i) => {
147602
147602
  const a = i.PATTERN;
147603
147603
  try {
147604
147604
  const s = gA(a), o = new e();
@@ -147611,19 +147611,19 @@ function tVe(t) {
147611
147611
  message: `Unexpected RegExp Anchor Error:
147612
147612
  Token Type: ->` + i.name + `<- static 'PATTERN' cannot contain start of input anchor '^'
147613
147613
  See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,
147614
- type: Ra.SOI_ANCHOR_FOUND,
147614
+ type: Na.SOI_ANCHOR_FOUND,
147615
147615
  tokenTypes: [i]
147616
147616
  }));
147617
147617
  }
147618
147618
  g(tVe, "findStartOfInputAnchor");
147619
147619
  function rVe(t) {
147620
- const e = Ia(t, (n) => {
147620
+ const e = Oa(t, (n) => {
147621
147621
  const i = n[M1];
147622
147622
  return i instanceof RegExp && (i.multiline || i.global);
147623
147623
  });
147624
147624
  return Jt(e, (n) => ({
147625
147625
  message: "Token Type: ->" + n.name + "<- static 'PATTERN' may NOT contain global('g') or multiline('m')",
147626
- type: Ra.UNSUPPORTED_FLAGS_FOUND,
147626
+ type: Na.UNSUPPORTED_FLAGS_FOUND,
147627
147627
  tokenTypes: [n]
147628
147628
  }));
147629
147629
  }
@@ -147632,19 +147632,19 @@ function nVe(t) {
147632
147632
  const e = [];
147633
147633
  let r = Jt(t, (a) => Ja(t, (s, o) => (a.PATTERN.source === o.PATTERN.source && !bl(e, o) && o.PATTERN !== fl.NA && (e.push(o), s.push(o)), s), []));
147634
147634
  r = nA(r);
147635
- const n = Ia(r, (a) => a.length > 1);
147635
+ const n = Oa(r, (a) => a.length > 1);
147636
147636
  return Jt(n, (a) => {
147637
147637
  const s = Jt(a, (l) => l.name);
147638
147638
  return {
147639
147639
  message: `The same RegExp pattern ->${md(a).PATTERN}<-has been used in all of the following Token Types: ${s.join(", ")} <-`,
147640
- type: Ra.DUPLICATE_PATTERNS_FOUND,
147640
+ type: Na.DUPLICATE_PATTERNS_FOUND,
147641
147641
  tokenTypes: a
147642
147642
  };
147643
147643
  });
147644
147644
  }
147645
147645
  g(nVe, "findDuplicatePatterns");
147646
147646
  function iVe(t) {
147647
- const e = Ia(t, (n) => {
147647
+ const e = Oa(t, (n) => {
147648
147648
  if (!Yr(n, "GROUP"))
147649
147649
  return !1;
147650
147650
  const i = n.GROUP;
@@ -147652,16 +147652,16 @@ function iVe(t) {
147652
147652
  });
147653
147653
  return Jt(e, (n) => ({
147654
147654
  message: "Token Type: ->" + n.name + "<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",
147655
- type: Ra.INVALID_GROUP_TYPE_FOUND,
147655
+ type: Na.INVALID_GROUP_TYPE_FOUND,
147656
147656
  tokenTypes: [n]
147657
147657
  }));
147658
147658
  }
147659
147659
  g(iVe, "findInvalidGroupType");
147660
147660
  function aVe(t, e) {
147661
- const r = Ia(t, (i) => i.PUSH_MODE !== void 0 && !bl(e, i.PUSH_MODE));
147661
+ const r = Oa(t, (i) => i.PUSH_MODE !== void 0 && !bl(e, i.PUSH_MODE));
147662
147662
  return Jt(r, (i) => ({
147663
147663
  message: `Token Type: ->${i.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${i.PUSH_MODE}<-which does not exist`,
147664
- type: Ra.PUSH_MODE_DOES_NOT_EXIST,
147664
+ type: Na.PUSH_MODE_DOES_NOT_EXIST,
147665
147665
  tokenTypes: [i]
147666
147666
  }));
147667
147667
  }
@@ -147679,7 +147679,7 @@ Because it appears AFTER the Token Type ->${n.name}<-in the lexer's definition.
147679
147679
  See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;
147680
147680
  e.push({
147681
147681
  message: l,
147682
- type: Ra.UNREACHABLE_PATTERN,
147682
+ type: Na.UNREACHABLE_PATTERN,
147683
147683
  tokenTypes: [n, o]
147684
147684
  });
147685
147685
  }
@@ -147735,30 +147735,30 @@ function cVe(t, e, r) {
147735
147735
  return Yr(t, qS) || n.push({
147736
147736
  message: "A MultiMode Lexer cannot be initialized without a <" + qS + `> property in its definition
147737
147737
  `,
147738
- type: Ra.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE
147738
+ type: Na.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE
147739
147739
  }), Yr(t, z5) || n.push({
147740
147740
  message: "A MultiMode Lexer cannot be initialized without a <" + z5 + `> property in its definition
147741
147741
  `,
147742
- type: Ra.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY
147742
+ type: Na.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY
147743
147743
  }), Yr(t, z5) && Yr(t, qS) && !Yr(t.modes, t.defaultMode) && n.push({
147744
147744
  message: `A MultiMode Lexer cannot be initialized with a ${qS}: <${t.defaultMode}>which does not exist
147745
147745
  `,
147746
- type: Ra.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST
147746
+ type: Na.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST
147747
147747
  }), Yr(t, z5) && gt(t.modes, (i, a) => {
147748
147748
  gt(i, (s, o) => {
147749
147749
  if (Ei(s))
147750
147750
  n.push({
147751
147751
  message: `A Lexer cannot be initialized using an undefined Token Type. Mode:<${a}> at index: <${o}>
147752
147752
  `,
147753
- type: Ra.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED
147753
+ type: Na.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED
147754
147754
  });
147755
147755
  else if (Yr(s, "LONGER_ALT")) {
147756
- const l = Vn(s.LONGER_ALT) ? s.LONGER_ALT : [s.LONGER_ALT];
147756
+ const l = Wn(s.LONGER_ALT) ? s.LONGER_ALT : [s.LONGER_ALT];
147757
147757
  gt(l, (u) => {
147758
147758
  !Ei(u) && !bl(i, u) && n.push({
147759
147759
  message: `A MultiMode Lexer cannot be initialized with a longer_alt <${u.name}> on token <${s.name}> outside of mode <${a}>
147760
147760
  `,
147761
- type: Ra.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE
147761
+ type: Na.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE
147762
147762
  });
147763
147763
  });
147764
147764
  }
@@ -147787,7 +147787,7 @@ function uVe(t, e, r) {
147787
147787
  But none of the Token Types can be identified as matching a line terminator.
147788
147788
  See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS
147789
147789
  for details.`,
147790
- type: Ra.NO_LINE_BREAKS_FLAGS
147790
+ type: Na.NO_LINE_BREAKS_FLAGS
147791
147791
  }), n;
147792
147792
  }
147793
147793
  g(uVe, "performWarningRuntimeChecks");
@@ -147795,7 +147795,7 @@ function dVe(t) {
147795
147795
  const e = {}, r = vs(t);
147796
147796
  return gt(r, (n) => {
147797
147797
  const i = t[n];
147798
- if (Vn(i))
147798
+ if (Wn(i))
147799
147799
  e[n] = [];
147800
147800
  else
147801
147801
  throw Error("non exhaustive match");
@@ -147842,7 +147842,7 @@ function Vre(t, e) {
147842
147842
  h9(e, t.PATTERN);
147843
147843
  } catch (r) {
147844
147844
  return {
147845
- issue: Ra.IDENTIFY_TERMINATOR,
147845
+ issue: Na.IDENTIFY_TERMINATOR,
147846
147846
  errMsg: r.message
147847
147847
  };
147848
147848
  }
@@ -147851,18 +147851,18 @@ function Vre(t, e) {
147851
147851
  if (ml(t.PATTERN))
147852
147852
  return !1;
147853
147853
  if (Hre(t))
147854
- return { issue: Ra.CUSTOM_LINE_BREAK };
147854
+ return { issue: Na.CUSTOM_LINE_BREAK };
147855
147855
  throw Error("non exhaustive match");
147856
147856
  }
147857
147857
  }
147858
147858
  g(Vre, "checkLineBreaksIssues");
147859
147859
  function fVe(t, e) {
147860
- if (e.issue === Ra.IDENTIFY_TERMINATOR)
147860
+ if (e.issue === Na.IDENTIFY_TERMINATOR)
147861
147861
  return `Warning: unable to identify line terminator usage in pattern.
147862
147862
  The problem is in the <${t.name}> Token Type
147863
147863
  Root cause: ${e.errMsg}.
147864
147864
  For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;
147865
- if (e.issue === Ra.CUSTOM_LINE_BREAK)
147865
+ if (e.issue === Na.CUSTOM_LINE_BREAK)
147866
147866
  return `Warning: A Custom Token Pattern should specify the <line_breaks> option.
147867
147867
  The problem is in the <${t.name}> Token Type
147868
147868
  For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;
@@ -147919,7 +147919,7 @@ function mVe(t) {
147919
147919
  g(mVe, "expandCategories");
147920
147920
  function _Ve(t) {
147921
147921
  gt(t, (e) => {
147922
- jre(e) || (gVe[nEe] = e, e.tokenTypeIdx = nEe++), yj(e) && !Vn(e.CATEGORIES) && (e.CATEGORIES = [e.CATEGORIES]), yj(e) || (e.CATEGORIES = []), bVe(e) || (e.categoryMatches = []), EVe(e) || (e.categoryMatchesMap = {});
147922
+ jre(e) || (gVe[nEe] = e, e.tokenTypeIdx = nEe++), yj(e) && !Wn(e.CATEGORIES) && (e.CATEGORIES = [e.CATEGORIES]), yj(e) || (e.CATEGORIES = []), bVe(e) || (e.categoryMatches = []), EVe(e) || (e.categoryMatchesMap = {});
147923
147923
  });
147924
147924
  }
147925
147925
  g(_Ve, "assignTokenDefaultProps");
@@ -147973,10 +147973,10 @@ var vj = {
147973
147973
  buildUnexpectedCharactersMessage(t, e, r, n, i) {
147974
147974
  return `unexpected character: ->${t.charAt(e)}<- at offset: ${e}, skipped ${r} characters.`;
147975
147975
  }
147976
- }, Ra;
147976
+ }, Na;
147977
147977
  (function(t) {
147978
147978
  t[t.MISSING_PATTERN = 0] = "MISSING_PATTERN", t[t.INVALID_PATTERN = 1] = "INVALID_PATTERN", t[t.EOI_ANCHOR_FOUND = 2] = "EOI_ANCHOR_FOUND", t[t.UNSUPPORTED_FLAGS_FOUND = 3] = "UNSUPPORTED_FLAGS_FOUND", t[t.DUPLICATE_PATTERNS_FOUND = 4] = "DUPLICATE_PATTERNS_FOUND", t[t.INVALID_GROUP_TYPE_FOUND = 5] = "INVALID_GROUP_TYPE_FOUND", t[t.PUSH_MODE_DOES_NOT_EXIST = 6] = "PUSH_MODE_DOES_NOT_EXIST", t[t.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE = 7] = "MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE", t[t.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY = 8] = "MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY", t[t.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST = 9] = "MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST", t[t.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED = 10] = "LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED", t[t.SOI_ANCHOR_FOUND = 11] = "SOI_ANCHOR_FOUND", t[t.EMPTY_MATCH_PATTERN = 12] = "EMPTY_MATCH_PATTERN", t[t.NO_LINE_BREAKS_FLAGS = 13] = "NO_LINE_BREAKS_FLAGS", t[t.UNREACHABLE_PATTERN = 14] = "UNREACHABLE_PATTERN", t[t.IDENTIFY_TERMINATOR = 15] = "IDENTIFY_TERMINATOR", t[t.CUSTOM_LINE_BREAK = 16] = "CUSTOM_LINE_BREAK", t[t.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE = 17] = "MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE";
147979
- })(Ra || (Ra = {}));
147979
+ })(Na || (Na = {}));
147980
147980
  var HS = {
147981
147981
  deferDefinitionErrorsHandling: !1,
147982
147982
  positionTracking: "full",
@@ -148020,7 +148020,7 @@ a boolean 2nd argument is no longer supported`);
148020
148020
  For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);
148021
148021
  if (e.safeMode && e.ensureOptimizations)
148022
148022
  throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');
148023
- this.trackStartLines = /full|onlyStart/i.test(this.config.positionTracking), this.trackEndLines = /full/i.test(this.config.positionTracking), Vn(t) ? n = {
148023
+ this.trackStartLines = /full|onlyStart/i.test(this.config.positionTracking), this.trackEndLines = /full/i.test(this.config.positionTracking), Wn(t) ? n = {
148024
148024
  modes: { defaultMode: ks(t) },
148025
148025
  defaultMode: qS
148026
148026
  } : (i = !1, n = ks(t));
@@ -148572,7 +148572,7 @@ function zI(t, e, r = []) {
148572
148572
  n = s(o.definition);
148573
148573
  else if (o instanceof Oc) {
148574
148574
  const l = o.definition.concat([
148575
- new Da({
148575
+ new Ra({
148576
148576
  definition: o.definition
148577
148577
  })
148578
148578
  ]);
@@ -148580,21 +148580,21 @@ function zI(t, e, r = []) {
148580
148580
  } else if (o instanceof Lc) {
148581
148581
  const l = [
148582
148582
  new Yl({ definition: o.definition }),
148583
- new Da({
148583
+ new Ra({
148584
148584
  definition: [new ta({ terminalType: o.separator })].concat(o.definition)
148585
148585
  })
148586
148586
  ];
148587
148587
  return s(l);
148588
148588
  } else if (o instanceof tc) {
148589
148589
  const l = o.definition.concat([
148590
- new Da({
148590
+ new Ra({
148591
148591
  definition: [new ta({ terminalType: o.separator })].concat(o.definition)
148592
148592
  })
148593
148593
  ]);
148594
148594
  n = s(l);
148595
- } else if (o instanceof Da) {
148595
+ } else if (o instanceof Ra) {
148596
148596
  const l = o.definition.concat([
148597
- new Da({
148597
+ new Ra({
148598
148598
  definition: o.definition
148599
148599
  })
148600
148600
  ]);
@@ -148693,7 +148693,7 @@ function Qre(t, e, r, n) {
148693
148693
  };
148694
148694
  h.push(E);
148695
148695
  } else if (y instanceof Oc) {
148696
- const b = new Da({
148696
+ const b = new Ra({
148697
148697
  definition: y.definition,
148698
148698
  idx: y.idx
148699
148699
  }), E = y.definition.concat([b], Js(f)), S = {
@@ -148706,7 +148706,7 @@ function Qre(t, e, r, n) {
148706
148706
  } else if (y instanceof Lc) {
148707
148707
  const b = new ta({
148708
148708
  terminalType: y.separator
148709
- }), E = new Da({
148709
+ }), E = new Ra({
148710
148710
  definition: [b].concat(y.definition),
148711
148711
  idx: y.idx
148712
148712
  }), S = y.definition.concat([E], Js(f)), T = {
@@ -148726,7 +148726,7 @@ function Qre(t, e, r, n) {
148726
148726
  h.push(b), h.push(s);
148727
148727
  const E = new ta({
148728
148728
  terminalType: y.separator
148729
- }), S = new Da({
148729
+ }), S = new Ra({
148730
148730
  definition: [E].concat(y.definition),
148731
148731
  idx: y.idx
148732
148732
  }), T = y.definition.concat([S], Js(f)), w = {
@@ -148736,7 +148736,7 @@ function Qre(t, e, r, n) {
148736
148736
  occurrenceStack: v
148737
148737
  };
148738
148738
  h.push(w);
148739
- } else if (y instanceof Da) {
148739
+ } else if (y instanceof Ra) {
148740
148740
  const b = {
148741
148741
  idx: m,
148742
148742
  def: Js(f),
@@ -148744,7 +148744,7 @@ function Qre(t, e, r, n) {
148744
148744
  occurrenceStack: v
148745
148745
  };
148746
148746
  h.push(b), h.push(s);
148747
- const E = new Da({
148747
+ const E = new Ra({
148748
148748
  definition: y.definition,
148749
148749
  idx: y.idx
148750
148750
  }), S = y.definition.concat([E], Js(f)), T = {
@@ -148798,7 +148798,7 @@ var ma;
148798
148798
  function p9(t) {
148799
148799
  if (t instanceof lo || t === "Option")
148800
148800
  return ma.OPTION;
148801
- if (t instanceof Da || t === "Repetition")
148801
+ if (t instanceof Ra || t === "Repetition")
148802
148802
  return ma.REPETITION;
148803
148803
  if (t instanceof Oc || t === "RepetitionMandatory")
148804
148804
  return ma.REPETITION_MANDATORY;
@@ -149205,7 +149205,7 @@ function nw(t) {
149205
149205
  const r = md(t);
149206
149206
  if (r instanceof _l)
149207
149207
  e.push(r.referencedRule);
149208
- else if (r instanceof Yl || r instanceof lo || r instanceof Oc || r instanceof Lc || r instanceof tc || r instanceof Da)
149208
+ else if (r instanceof Yl || r instanceof lo || r instanceof Oc || r instanceof Lc || r instanceof tc || r instanceof Ra)
149209
149209
  e = e.concat(nw(r.definition));
149210
149210
  else if (r instanceof rc)
149211
149211
  e = $s(Jt(r.definition, (a) => nw(a.definition)));
@@ -149360,7 +149360,7 @@ function HVe(t, e, r, n) {
149360
149360
  return nA(Tc(i, (s) => {
149361
149361
  if (e.definition[s.idx].ignoreAmbiguities === !0)
149362
149362
  return [];
149363
- const l = s.idx, u = s.path, d = Ia(i, (p) => (
149363
+ const l = s.idx, u = s.path, d = Oa(i, (p) => (
149364
149364
  // ignore (skip) ambiguities with this "other" alternative
149365
149365
  e.definition[p.idx].ignoreAmbiguities !== !0 && p.idx < l && // checking for strict prefix because identical lookaheads
149366
149366
  // will be be detected using a different validation.
@@ -149815,7 +149815,7 @@ function lWe(t, e) {
149815
149815
  ine(r, t + "BaseSemantics");
149816
149816
  const n = {
149817
149817
  visit: /* @__PURE__ */ g(function(i, a) {
149818
- if (Vn(i) && (i = i[0]), !Ei(i))
149818
+ if (Wn(i) && (i = i[0]), !Ei(i))
149819
149819
  return this[i.name](i.children, a);
149820
149820
  }, "visit"),
149821
149821
  validateVisitor: /* @__PURE__ */ g(function() {
@@ -149852,7 +149852,7 @@ function uWe(t, e) {
149852
149852
  }
149853
149853
  g(uWe, "validateVisitor");
149854
149854
  function dWe(t, e) {
149855
- const r = Ia(e, (i) => Eu(t[i]) === !1), n = Jt(r, (i) => ({
149855
+ const r = Oa(e, (i) => Eu(t[i]) === !1), n = Jt(r, (i) => ({
149856
149856
  msg: `Missing visitor method: <${i}> on ${t.constructor.name} CST Visitor.`,
149857
149857
  type: Aj.MISSING_METHOD,
149858
149858
  methodName: i
@@ -150331,7 +150331,7 @@ var t4r = class {
150331
150331
  throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
150332
150332
  See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0
150333
150333
  For Further details.`);
150334
- if (Vn(t)) {
150334
+ if (Wn(t)) {
150335
150335
  if (gi(t))
150336
150336
  throw Error(`A Token Vocabulary cannot be empty.
150337
150337
  Note that the first argument for the parser constructor
@@ -150341,7 +150341,7 @@ var t4r = class {
150341
150341
  See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0
150342
150342
  For Further details.`);
150343
150343
  }
150344
- if (Vn(t))
150344
+ if (Wn(t))
150345
150345
  this.tokensMap = Ja(t, (i, a) => (i[a.name] = a, i), {});
150346
150346
  else if (Yr(t, "modes") && ld($s(Oi(t.modes)), SVe)) {
150347
150347
  const i = $s(Oi(t.modes)), a = _te(i);
@@ -150540,7 +150540,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
150540
150540
  return t.call(this), this.getLexerPosition() > e;
150541
150541
  }
150542
150542
  orInternal(t, e) {
150543
- const r = this.getKeyForAutomaticLookahead(rWe, e), n = Vn(t) ? t : t.DEF, a = this.getLaFuncFromCache(r).call(this, n);
150543
+ const r = this.getKeyForAutomaticLookahead(rWe, e), n = Wn(t) ? t : t.DEF, a = this.getLaFuncFromCache(r).call(this, n);
150544
150544
  if (a !== void 0)
150545
150545
  return n[a].ALT.call(this);
150546
150546
  this.raiseNoAltException(e, t.ERR_MSG);
@@ -150815,7 +150815,7 @@ var o4r = {
150815
150815
  wy.call(this, Lc, e, t, pEe);
150816
150816
  }
150817
150817
  manyInternalRecord(t, e) {
150818
- wy.call(this, Da, e, t);
150818
+ wy.call(this, Ra, e, t);
150819
150819
  }
150820
150820
  manySepFirstInternalRecord(t, e) {
150821
150821
  wy.call(this, tc, e, t, pEe);
@@ -150860,7 +150860,7 @@ function wy(t, e, r, n = !1) {
150860
150860
  g(wy, "recordProd");
150861
150861
  function pWe(t, e) {
150862
150862
  DC(e);
150863
- const r = wh(this.recordingProdStack), n = Vn(t) === !1, i = n === !1 ? t : t.DEF, a = new rc({
150863
+ const r = wh(this.recordingProdStack), n = Wn(t) === !1, i = n === !1 ? t : t.DEF, a = new rc({
150864
150864
  definition: [],
150865
150865
  idx: e,
150866
150866
  ignoreAmbiguities: n && t.IGNORE_AMBIGUITIES === !0
@@ -151118,7 +151118,7 @@ function SWe(t, e) {
151118
151118
  }
151119
151119
  g(SWe, "createRuleStartAndStopATNStates");
151120
151120
  function cne(t, e, r) {
151121
- return r instanceof ta ? _9(t, e, r.terminalType, r) : r instanceof _l ? IWe(t, e, r) : r instanceof rc ? AWe(t, e, r) : r instanceof lo ? kWe(t, e, r) : r instanceof Da ? TWe(t, e, r) : r instanceof tc ? wWe(t, e, r) : r instanceof Oc ? CWe(t, e, r) : r instanceof Lc ? xWe(t, e, r) : Cm(t, e, r);
151121
+ return r instanceof ta ? _9(t, e, r.terminalType, r) : r instanceof _l ? IWe(t, e, r) : r instanceof rc ? AWe(t, e, r) : r instanceof lo ? kWe(t, e, r) : r instanceof Ra ? TWe(t, e, r) : r instanceof tc ? wWe(t, e, r) : r instanceof Oc ? CWe(t, e, r) : r instanceof Lc ? xWe(t, e, r) : Cm(t, e, r);
151122
151122
  }
151123
151123
  g(cne, "atom");
151124
151124
  function TWe(t, e, r) {
@@ -151176,7 +151176,7 @@ function kWe(t, e, r) {
151176
151176
  }
151177
151177
  g(kWe, "option");
151178
151178
  function Cm(t, e, r) {
151179
- const n = Ia(Jt(r.definition, (i) => cne(t, e, i)), (i) => i !== void 0);
151179
+ const n = Oa(Jt(r.definition, (i) => cne(t, e, i)), (i) => i !== void 0);
151180
151180
  return n.length === 1 ? n[0] : n.length === 0 ? void 0 : NWe(t, n);
151181
151181
  }
151182
151182
  g(Cm, "block");
@@ -151188,7 +151188,7 @@ function une(t, e, r, n, i) {
151188
151188
  const l = Cs(t, e, r, {
151189
151189
  type: vWe
151190
151190
  });
151191
- return a.loopback = o, l.loopback = o, t.decisionMap[P1(e, i ? "RepetitionMandatoryWithSeparator" : "RepetitionMandatory", r.idx)] = o, qa(s, o), i === void 0 ? (qa(o, a), qa(o, l)) : (qa(o, l), qa(o, i.left), qa(i.right, a)), {
151191
+ return a.loopback = o, l.loopback = o, t.decisionMap[P1(e, i ? "RepetitionMandatoryWithSeparator" : "RepetitionMandatory", r.idx)] = o, Ga(s, o), i === void 0 ? (Ga(o, a), Ga(o, l)) : (Ga(o, l), Ga(o, i.left), Ga(i.right, a)), {
151192
151192
  left: a,
151193
151193
  right: l
151194
151194
  };
@@ -151204,7 +151204,7 @@ function dne(t, e, r, n, i) {
151204
151204
  }), u = Cs(t, e, r, {
151205
151205
  type: f4r
151206
151206
  });
151207
- return o.loopback = u, l.loopback = u, qa(o, a), qa(o, l), qa(s, u), i !== void 0 ? (qa(u, l), qa(u, i.left), qa(i.right, a)) : qa(u, o), t.decisionMap[P1(e, i ? "RepetitionWithSeparator" : "Repetition", r.idx)] = o, {
151207
+ return o.loopback = u, l.loopback = u, Ga(o, a), Ga(o, l), Ga(s, u), i !== void 0 ? (Ga(u, l), Ga(u, i.left), Ga(i.right, a)) : Ga(u, o), t.decisionMap[P1(e, i ? "RepetitionWithSeparator" : "Repetition", r.idx)] = o, {
151208
151208
  left: o,
151209
151209
  right: l
151210
151210
  };
@@ -151212,7 +151212,7 @@ function dne(t, e, r, n, i) {
151212
151212
  g(dne, "star");
151213
151213
  function DWe(t, e, r, n) {
151214
151214
  const i = n.left, a = n.right;
151215
- return qa(i, a), t.decisionMap[P1(e, "Option", r.idx)] = i, n;
151215
+ return Ga(i, a), t.decisionMap[P1(e, "Option", r.idx)] = i, n;
151216
151216
  }
151217
151217
  g(DWe, "optional");
151218
151218
  function Sp(t, e) {
@@ -151226,7 +151226,7 @@ function f_(t, e, r, n, ...i) {
151226
151226
  });
151227
151227
  r.end = a;
151228
151228
  for (const o of i)
151229
- o !== void 0 ? (qa(r, o.left), qa(o.right, a)) : qa(r, a);
151229
+ o !== void 0 ? (Ga(r, o.left), Ga(o.right, a)) : Ga(r, a);
151230
151230
  const s = {
151231
151231
  left: r,
151232
151232
  right: a
@@ -151239,7 +151239,7 @@ function RWe(t) {
151239
151239
  return "Alternation";
151240
151240
  if (t instanceof lo)
151241
151241
  return "Option";
151242
- if (t instanceof Da)
151242
+ if (t instanceof Ra)
151243
151243
  return "Repetition";
151244
151244
  if (t instanceof tc)
151245
151245
  return "RepetitionWithSeparator";
@@ -151257,7 +151257,7 @@ function NWe(t, e) {
151257
151257
  let o;
151258
151258
  s.left.transitions.length === 1 && (o = s.left.transitions[0]);
151259
151259
  const l = o instanceof lne, u = o, d = e[a + 1].left;
151260
- s.left.type === Jg && s.right.type === Jg && o !== void 0 && (l && u.followState === s.right || o.target === s.right) ? (l ? u.followState = d : o.target = d, LWe(t, s.right)) : qa(s.right, d);
151260
+ s.left.type === Jg && s.right.type === Jg && o !== void 0 && (l && u.followState === s.right || o.target === s.right) ? (l ? u.followState = d : o.target = d, LWe(t, s.right)) : Ga(s.right, d);
151261
151261
  }
151262
151262
  const n = e[0], i = e[r - 1];
151263
151263
  return {
@@ -151292,19 +151292,19 @@ function IWe(t, e, r) {
151292
151292
  g(IWe, "ruleRef");
151293
151293
  function OWe(t, e, r) {
151294
151294
  const n = t.ruleToStartState.get(e);
151295
- qa(n, r.left);
151295
+ Ga(n, r.left);
151296
151296
  const i = t.ruleToStopState.get(e);
151297
- return qa(r.right, i), {
151297
+ return Ga(r.right, i), {
151298
151298
  left: n,
151299
151299
  right: i
151300
151300
  };
151301
151301
  }
151302
151302
  g(OWe, "buildRuleHandle");
151303
- function qa(t, e) {
151303
+ function Ga(t, e) {
151304
151304
  const r = new bWe(e);
151305
151305
  y9(t, r);
151306
151306
  }
151307
- g(qa, "epsilon");
151307
+ g(Ga, "epsilon");
151308
151308
  function Cs(t, e, r, n) {
151309
151309
  const i = Object.assign({
151310
151310
  atn: t,
@@ -151582,7 +151582,7 @@ function qWe(t) {
151582
151582
  return "AT_LEAST_ONE_SEP";
151583
151583
  if (t instanceof tc)
151584
151584
  return "MANY_SEP";
151585
- if (t instanceof Da)
151585
+ if (t instanceof Ra)
151586
151586
  return "MANY";
151587
151587
  if (t instanceof ta)
151588
151588
  return "CONSUME";
@@ -164912,7 +164912,7 @@ var iOr = fK, aOr = {
164912
164912
  return g(n, "_setTextAttrs"), function(i) {
164913
164913
  return i.textPlacement === "fo" ? r : i.textPlacement === "old" ? t : e;
164914
164914
  };
164915
- }(), Ua = {
164915
+ }(), $a = {
164916
164916
  drawRect: bie,
164917
164917
  drawText: jb,
164918
164918
  drawLabel: EKe,
@@ -165022,7 +165022,7 @@ var iOr = fK, aOr = {
165022
165022
  stopx: a + dt.activationWidth,
165023
165023
  stopy: void 0,
165024
165024
  actor: t.from,
165025
- anchored: Ua.anchorElement(e)
165025
+ anchored: $a.anchorElement(e)
165026
165026
  });
165027
165027
  }, "newActivation"),
165028
165028
  endActivation: /* @__PURE__ */ g(function(t) {
@@ -165076,7 +165076,7 @@ var iOr = fK, aOr = {
165076
165076
  Ut.bumpVerticalPos(dt.boxMargin), e.height = dt.boxMargin, e.starty = Ut.getVerticalPos();
165077
165077
  const r = c_();
165078
165078
  r.x = e.startx, r.y = e.starty, r.width = e.width || dt.width, r.class = "note";
165079
- const n = t.append("g"), i = Ua.drawRect(n, r), a = Lte();
165079
+ const n = t.append("g"), i = $a.drawRect(n, r), a = Lte();
165080
165080
  a.x = e.startx, a.y = e.starty, a.width = r.width, a.dy = "1em", a.text = e.message, a.class = "noteText", a.fontFamily = dt.noteFontFamily, a.fontSize = dt.noteFontSize, a.fontWeight = dt.noteFontWeight, a.anchor = dt.noteAlign, a.textMargin = dt.noteMargin, a.valign = "center";
165081
165081
  const s = Lo(a.text) ? await uO(n, a) : jb(n, a), o = Math.round(
165082
165082
  s.map((l) => (l._groups || l)[0][0].getBBox().height).reduce((l, u) => l + u)
@@ -165146,19 +165146,19 @@ var NOr = /* @__PURE__ */ g(async function(t, e, r, n) {
165146
165146
  for (const a of r) {
165147
165147
  const s = e.get(a);
165148
165148
  s.stopy || (s.stopy = Ut.getVerticalPos());
165149
- const o = await Ua.drawActor(t, s, dt, !0);
165149
+ const o = await $a.drawActor(t, s, dt, !0);
165150
165150
  i = Kt.getMax(i, o);
165151
165151
  }
165152
165152
  Ut.bumpVerticalPos(i + dt.boxMargin);
165153
165153
  } else
165154
165154
  for (const i of r) {
165155
165155
  const a = e.get(i);
165156
- await Ua.drawActor(t, a, dt, !1);
165156
+ await $a.drawActor(t, a, dt, !1);
165157
165157
  }
165158
165158
  }, "drawActors"), xKe = /* @__PURE__ */ g(function(t, e, r, n) {
165159
165159
  let i = 0, a = 0;
165160
165160
  for (const s of r) {
165161
- const o = e.get(s), l = LOr(o), u = Ua.drawPopup(
165161
+ const o = e.get(s), l = LOr(o), u = $a.drawPopup(
165162
165162
  t,
165163
165163
  o,
165164
165164
  l,
@@ -165259,7 +165259,7 @@ var OOr = /* @__PURE__ */ g(async function(t, e, r, n) {
165259
165259
  const u = i === "sandbox" ? o.select(`[id="${e}"]`) : qt(`[id="${e}"]`), d = n.db.getActors(), h = n.db.getCreatedActors(), p = n.db.getDestroyedActors(), f = n.db.getBoxes();
165260
165260
  let m = n.db.getActorKeys();
165261
165261
  const _ = n.db.getMessages(), v = n.db.getDiagramTitle(), y = n.db.hasAtLeastOneBox(), b = n.db.hasAtLeastOneBoxWithTitle(), E = await DKe(d, _, n);
165262
- if (dt.height = await RKe(d, E, f), Ua.insertComputerIcon(u), Ua.insertDatabaseIcon(u), Ua.insertClockIcon(u), y && (Ut.bumpVerticalPos(dt.boxMargin), b && Ut.bumpVerticalPos(f[0].textMaxHeight)), dt.hideUnusedParticipants === !0) {
165262
+ if (dt.height = await RKe(d, E, f), $a.insertComputerIcon(u), $a.insertDatabaseIcon(u), $a.insertClockIcon(u), y && (Ut.bumpVerticalPos(dt.boxMargin), b && Ut.bumpVerticalPos(f[0].textMaxHeight)), dt.hideUnusedParticipants === !0) {
165263
165263
  const $ = /* @__PURE__ */ new Set();
165264
165264
  _.forEach((U) => {
165265
165265
  $.add(U.from), $.add(U.to);
@@ -165267,10 +165267,10 @@ var OOr = /* @__PURE__ */ g(async function(t, e, r, n) {
165267
165267
  }
165268
165268
  IOr(u, d, h, m, 0, _, !1);
165269
165269
  const S = await FOr(_, d, E, n);
165270
- Ua.insertArrowHead(u), Ua.insertArrowCrossHead(u), Ua.insertArrowFilledHead(u), Ua.insertSequenceNumber(u);
165270
+ $a.insertArrowHead(u), $a.insertArrowCrossHead(u), $a.insertArrowFilledHead(u), $a.insertSequenceNumber(u);
165271
165271
  function T($, U) {
165272
165272
  const P = Ut.endActivation($);
165273
- P.starty + 18 > U && (P.starty = U - 6, U += 12), Ua.drawActivation(
165273
+ P.starty + 18 > U && (P.starty = U - 6, U += 12), $a.drawActivation(
165274
165274
  u,
165275
165275
  P,
165276
165276
  U,
@@ -165304,7 +165304,7 @@ var OOr = /* @__PURE__ */ g(async function(t, e, r, n) {
165304
165304
  );
165305
165305
  break;
165306
165306
  case n.db.LINETYPE.LOOP_END:
165307
- U = Ut.endLoop(), await Ua.drawLoop(u, U, "loop", dt), Ut.bumpVerticalPos(U.stopy - Ut.getVerticalPos()), Ut.models.addLoop(U);
165307
+ U = Ut.endLoop(), await $a.drawLoop(u, U, "loop", dt), Ut.bumpVerticalPos(U.stopy - Ut.getVerticalPos()), Ut.models.addLoop(U);
165308
165308
  break;
165309
165309
  case n.db.LINETYPE.RECT_START:
165310
165310
  zu(
@@ -165328,7 +165328,7 @@ var OOr = /* @__PURE__ */ g(async function(t, e, r, n) {
165328
165328
  );
165329
165329
  break;
165330
165330
  case n.db.LINETYPE.OPT_END:
165331
- U = Ut.endLoop(), await Ua.drawLoop(u, U, "opt", dt), Ut.bumpVerticalPos(U.stopy - Ut.getVerticalPos()), Ut.models.addLoop(U);
165331
+ U = Ut.endLoop(), await $a.drawLoop(u, U, "opt", dt), Ut.bumpVerticalPos(U.stopy - Ut.getVerticalPos()), Ut.models.addLoop(U);
165332
165332
  break;
165333
165333
  case n.db.LINETYPE.ALT_START:
165334
165334
  zu(
@@ -165349,7 +165349,7 @@ var OOr = /* @__PURE__ */ g(async function(t, e, r, n) {
165349
165349
  );
165350
165350
  break;
165351
165351
  case n.db.LINETYPE.ALT_END:
165352
- U = Ut.endLoop(), await Ua.drawLoop(u, U, "alt", dt), Ut.bumpVerticalPos(U.stopy - Ut.getVerticalPos()), Ut.models.addLoop(U);
165352
+ U = Ut.endLoop(), await $a.drawLoop(u, U, "alt", dt), Ut.bumpVerticalPos(U.stopy - Ut.getVerticalPos()), Ut.models.addLoop(U);
165353
165353
  break;
165354
165354
  case n.db.LINETYPE.PAR_START:
165355
165355
  case n.db.LINETYPE.PAR_OVER_START:
@@ -165371,7 +165371,7 @@ var OOr = /* @__PURE__ */ g(async function(t, e, r, n) {
165371
165371
  );
165372
165372
  break;
165373
165373
  case n.db.LINETYPE.PAR_END:
165374
- U = Ut.endLoop(), await Ua.drawLoop(u, U, "par", dt), Ut.bumpVerticalPos(U.stopy - Ut.getVerticalPos()), Ut.models.addLoop(U);
165374
+ U = Ut.endLoop(), await $a.drawLoop(u, U, "par", dt), Ut.bumpVerticalPos(U.stopy - Ut.getVerticalPos()), Ut.models.addLoop(U);
165375
165375
  break;
165376
165376
  case n.db.LINETYPE.AUTONUMBER:
165377
165377
  w = $.message.start || w, C = $.message.step || C, $.message.visible ? n.db.enableSequenceNumbers() : n.db.disableSequenceNumbers();
@@ -165395,7 +165395,7 @@ var OOr = /* @__PURE__ */ g(async function(t, e, r, n) {
165395
165395
  );
165396
165396
  break;
165397
165397
  case n.db.LINETYPE.CRITICAL_END:
165398
- U = Ut.endLoop(), await Ua.drawLoop(u, U, "critical", dt), Ut.bumpVerticalPos(U.stopy - Ut.getVerticalPos()), Ut.models.addLoop(U);
165398
+ U = Ut.endLoop(), await $a.drawLoop(u, U, "critical", dt), Ut.bumpVerticalPos(U.stopy - Ut.getVerticalPos()), Ut.models.addLoop(U);
165399
165399
  break;
165400
165400
  case n.db.LINETYPE.BREAK_START:
165401
165401
  zu(
@@ -165407,7 +165407,7 @@ var OOr = /* @__PURE__ */ g(async function(t, e, r, n) {
165407
165407
  );
165408
165408
  break;
165409
165409
  case n.db.LINETYPE.BREAK_END:
165410
- U = Ut.endLoop(), await Ua.drawLoop(u, U, "break", dt), Ut.bumpVerticalPos(U.stopy - Ut.getVerticalPos()), Ut.models.addLoop(U);
165410
+ U = Ut.endLoop(), await $a.drawLoop(u, U, "break", dt), Ut.bumpVerticalPos(U.stopy - Ut.getVerticalPos()), Ut.models.addLoop(U);
165411
165411
  break;
165412
165412
  default:
165413
165413
  try {
@@ -165442,9 +165442,9 @@ var OOr = /* @__PURE__ */ g(async function(t, e, r, n) {
165442
165442
  Ce.debug("createdActors", h), Ce.debug("destroyedActors", p), await gK(u, d, m, !1);
165443
165443
  for (const $ of x)
165444
165444
  await NOr(u, $.messageModel, $.lineStartY, n);
165445
- dt.mirrorActors && await gK(u, d, m, !0), A.forEach(($) => Ua.drawBackgroundRect(u, $)), SKe(u, d, m, dt);
165445
+ dt.mirrorActors && await gK(u, d, m, !0), A.forEach(($) => $a.drawBackgroundRect(u, $)), SKe(u, d, m, dt);
165446
165446
  for (const $ of Ut.models.boxes)
165447
- $.height = Ut.getVerticalPos() - $.y, Ut.insert($.x, $.y, $.x + $.width, $.height), $.startx = $.x, $.starty = $.y, $.stopx = $.startx + $.width, $.stopy = $.starty + $.height, $.stroke = "rgb(0,0,0, 0.5)", Ua.drawBox(u, $, dt);
165447
+ $.height = Ut.getVerticalPos() - $.y, Ut.insert($.x, $.y, $.x + $.width, $.height), $.startx = $.x, $.starty = $.y, $.stopx = $.startx + $.width, $.stopy = $.starty + $.height, $.stroke = "rgb(0,0,0, 0.5)", $a.drawBox(u, $, dt);
165448
165448
  y && Ut.bumpVerticalPos(dt.boxMargin);
165449
165449
  const R = xKe(u, d, m, l), { bounds: I } = Ut.getBounds();
165450
165450
  I.startx === void 0 && (I.startx = 0), I.starty === void 0 && (I.starty = 0), I.stopx === void 0 && (I.stopx = 0), I.stopy === void 0 && (I.stopy = 0);
@@ -170437,10 +170437,10 @@ function Die(t, e, r) {
170437
170437
  }) : t[e] = r, t;
170438
170438
  }
170439
170439
  g(Die, "_defineProperty$1");
170440
- function za(t, e) {
170440
+ function qa(t, e) {
170441
170441
  return gXe(t) || _Xe(t, e) || B9(t, e) || vXe();
170442
170442
  }
170443
- g(za, "_slicedToArray");
170443
+ g(qa, "_slicedToArray");
170444
170444
  function Rie(t) {
170445
170445
  return pXe(t) || mXe(t) || B9(t) || yXe();
170446
170446
  }
@@ -171995,7 +171995,7 @@ var H9r = DXe(function(t, e) {
171995
171995
  else if (r.length === 2)
171996
171996
  n = a = r[0], s = i = r[1];
171997
171997
  else if (r.length === 4) {
171998
- var o = za(r, 4);
171998
+ var o = qa(r, 4);
171999
171999
  n = o[0], i = o[1], a = o[2], s = o[3];
172000
172000
  }
172001
172001
  return e.x1 -= s, e.x2 += i, e.y1 -= n, e.y2 += a, e.w = e.x2 - e.x1, e.h = e.y2 - e.y1, e;
@@ -174336,7 +174336,7 @@ var Ii = /* @__PURE__ */ g(function() {
174336
174336
  query: !0,
174337
174337
  regex: "(" + ai.group + ")",
174338
174338
  populate: /* @__PURE__ */ g(function(e, r, n) {
174339
- var i = za(n, 1), a = i[0];
174339
+ var i = qa(n, 1), a = i[0];
174340
174340
  r.checks.push({
174341
174341
  type: vr.GROUP,
174342
174342
  value: a === "*" ? a : a + "s"
@@ -174347,7 +174347,7 @@ var Ii = /* @__PURE__ */ g(function() {
174347
174347
  query: !0,
174348
174348
  regex: GPr,
174349
174349
  populate: /* @__PURE__ */ g(function(e, r, n) {
174350
- var i = za(n, 1), a = i[0];
174350
+ var i = qa(n, 1), a = i[0];
174351
174351
  r.checks.push({
174352
174352
  type: vr.STATE,
174353
174353
  value: a
@@ -174358,7 +174358,7 @@ var Ii = /* @__PURE__ */ g(function() {
174358
174358
  query: !0,
174359
174359
  regex: "\\#(" + ai.id + ")",
174360
174360
  populate: /* @__PURE__ */ g(function(e, r, n) {
174361
- var i = za(n, 1), a = i[0];
174361
+ var i = qa(n, 1), a = i[0];
174362
174362
  r.checks.push({
174363
174363
  type: vr.ID,
174364
174364
  value: J_(a)
@@ -174369,7 +174369,7 @@ var Ii = /* @__PURE__ */ g(function() {
174369
174369
  query: !0,
174370
174370
  regex: "\\.(" + ai.className + ")",
174371
174371
  populate: /* @__PURE__ */ g(function(e, r, n) {
174372
- var i = za(n, 1), a = i[0];
174372
+ var i = qa(n, 1), a = i[0];
174373
174373
  r.checks.push({
174374
174374
  type: vr.CLASS,
174375
174375
  value: J_(a)
@@ -174380,7 +174380,7 @@ var Ii = /* @__PURE__ */ g(function() {
174380
174380
  query: !0,
174381
174381
  regex: "\\[\\s*(" + ai.variable + ")\\s*\\]",
174382
174382
  populate: /* @__PURE__ */ g(function(e, r, n) {
174383
- var i = za(n, 1), a = i[0];
174383
+ var i = qa(n, 1), a = i[0];
174384
174384
  r.checks.push({
174385
174385
  type: vr.DATA_EXIST,
174386
174386
  field: J_(a)
@@ -174391,7 +174391,7 @@ var Ii = /* @__PURE__ */ g(function() {
174391
174391
  query: !0,
174392
174392
  regex: "\\[\\s*(" + ai.variable + ")\\s*(" + ai.comparatorOp + ")\\s*(" + ai.value + ")\\s*\\]",
174393
174393
  populate: /* @__PURE__ */ g(function(e, r, n) {
174394
- var i = za(n, 3), a = i[0], s = i[1], o = i[2], l = new RegExp("^" + ai.string + "$").exec(o) != null;
174394
+ var i = qa(n, 3), a = i[0], s = i[1], o = i[2], l = new RegExp("^" + ai.string + "$").exec(o) != null;
174395
174395
  l ? o = o.substring(1, o.length - 1) : o = parseFloat(o), r.checks.push({
174396
174396
  type: vr.DATA_COMPARE,
174397
174397
  field: J_(a),
@@ -174404,7 +174404,7 @@ var Ii = /* @__PURE__ */ g(function() {
174404
174404
  query: !0,
174405
174405
  regex: "\\[\\s*(" + ai.boolOp + ")\\s*(" + ai.variable + ")\\s*\\]",
174406
174406
  populate: /* @__PURE__ */ g(function(e, r, n) {
174407
- var i = za(n, 2), a = i[0], s = i[1];
174407
+ var i = qa(n, 2), a = i[0], s = i[1];
174408
174408
  r.checks.push({
174409
174409
  type: vr.DATA_BOOL,
174410
174410
  field: J_(s),
@@ -174416,7 +174416,7 @@ var Ii = /* @__PURE__ */ g(function() {
174416
174416
  query: !0,
174417
174417
  regex: "\\[\\[\\s*(" + ai.meta + ")\\s*(" + ai.comparatorOp + ")\\s*(" + ai.number + ")\\s*\\]\\]",
174418
174418
  populate: /* @__PURE__ */ g(function(e, r, n) {
174419
- var i = za(n, 3), a = i[0], s = i[1], o = i[2];
174419
+ var i = qa(n, 3), a = i[0], s = i[1], o = i[2];
174420
174420
  r.checks.push({
174421
174421
  type: vr.META_COMPARE,
174422
174422
  field: J_(a),
@@ -174724,94 +174724,94 @@ var HPr = /* @__PURE__ */ g(function(e) {
174724
174724
  return e.data(r);
174725
174725
  }, "data"), QPr = /* @__PURE__ */ g(function(e, r) {
174726
174726
  return e[r]();
174727
- }, "meta"), Ma = [], ea = /* @__PURE__ */ g(function(e, r) {
174727
+ }, "meta"), Pa = [], ea = /* @__PURE__ */ g(function(e, r) {
174728
174728
  return e.checks.every(function(n) {
174729
- return Ma[n.type](n, r);
174729
+ return Pa[n.type](n, r);
174730
174730
  });
174731
174731
  }, "matches");
174732
- Ma[vr.GROUP] = function(t, e) {
174732
+ Pa[vr.GROUP] = function(t, e) {
174733
174733
  var r = t.value;
174734
174734
  return r === "*" || r === e.group();
174735
174735
  };
174736
- Ma[vr.STATE] = function(t, e) {
174736
+ Pa[vr.STATE] = function(t, e) {
174737
174737
  var r = t.value;
174738
174738
  return qPr(r, e);
174739
174739
  };
174740
- Ma[vr.ID] = function(t, e) {
174740
+ Pa[vr.ID] = function(t, e) {
174741
174741
  var r = t.value;
174742
174742
  return e.id() === r;
174743
174743
  };
174744
- Ma[vr.CLASS] = function(t, e) {
174744
+ Pa[vr.CLASS] = function(t, e) {
174745
174745
  var r = t.value;
174746
174746
  return e.hasClass(r);
174747
174747
  };
174748
- Ma[vr.META_COMPARE] = function(t, e) {
174748
+ Pa[vr.META_COMPARE] = function(t, e) {
174749
174749
  var r = t.field, n = t.operator, i = t.value;
174750
174750
  return nZe(QPr(e, r), n, i);
174751
174751
  };
174752
- Ma[vr.DATA_COMPARE] = function(t, e) {
174752
+ Pa[vr.DATA_COMPARE] = function(t, e) {
174753
174753
  var r = t.field, n = t.operator, i = t.value;
174754
174754
  return nZe(Gie(e, r), n, i);
174755
174755
  };
174756
- Ma[vr.DATA_BOOL] = function(t, e) {
174756
+ Pa[vr.DATA_BOOL] = function(t, e) {
174757
174757
  var r = t.field, n = t.operator;
174758
174758
  return KPr(Gie(e, r), n);
174759
174759
  };
174760
- Ma[vr.DATA_EXIST] = function(t, e) {
174760
+ Pa[vr.DATA_EXIST] = function(t, e) {
174761
174761
  var r = t.field;
174762
174762
  return t.operator, XPr(Gie(e, r));
174763
174763
  };
174764
- Ma[vr.UNDIRECTED_EDGE] = function(t, e) {
174764
+ Pa[vr.UNDIRECTED_EDGE] = function(t, e) {
174765
174765
  var r = t.nodes[0], n = t.nodes[1], i = e.source(), a = e.target();
174766
174766
  return ea(r, i) && ea(n, a) || ea(n, i) && ea(r, a);
174767
174767
  };
174768
- Ma[vr.NODE_NEIGHBOR] = function(t, e) {
174768
+ Pa[vr.NODE_NEIGHBOR] = function(t, e) {
174769
174769
  return ea(t.node, e) && e.neighborhood().some(function(r) {
174770
174770
  return r.isNode() && ea(t.neighbor, r);
174771
174771
  });
174772
174772
  };
174773
- Ma[vr.DIRECTED_EDGE] = function(t, e) {
174773
+ Pa[vr.DIRECTED_EDGE] = function(t, e) {
174774
174774
  return ea(t.source, e.source()) && ea(t.target, e.target());
174775
174775
  };
174776
- Ma[vr.NODE_SOURCE] = function(t, e) {
174776
+ Pa[vr.NODE_SOURCE] = function(t, e) {
174777
174777
  return ea(t.source, e) && e.outgoers().some(function(r) {
174778
174778
  return r.isNode() && ea(t.target, r);
174779
174779
  });
174780
174780
  };
174781
- Ma[vr.NODE_TARGET] = function(t, e) {
174781
+ Pa[vr.NODE_TARGET] = function(t, e) {
174782
174782
  return ea(t.target, e) && e.incomers().some(function(r) {
174783
174783
  return r.isNode() && ea(t.source, r);
174784
174784
  });
174785
174785
  };
174786
- Ma[vr.CHILD] = function(t, e) {
174786
+ Pa[vr.CHILD] = function(t, e) {
174787
174787
  return ea(t.child, e) && ea(t.parent, e.parent());
174788
174788
  };
174789
- Ma[vr.PARENT] = function(t, e) {
174789
+ Pa[vr.PARENT] = function(t, e) {
174790
174790
  return ea(t.parent, e) && e.children().some(function(r) {
174791
174791
  return ea(t.child, r);
174792
174792
  });
174793
174793
  };
174794
- Ma[vr.DESCENDANT] = function(t, e) {
174794
+ Pa[vr.DESCENDANT] = function(t, e) {
174795
174795
  return ea(t.descendant, e) && e.ancestors().some(function(r) {
174796
174796
  return ea(t.ancestor, r);
174797
174797
  });
174798
174798
  };
174799
- Ma[vr.ANCESTOR] = function(t, e) {
174799
+ Pa[vr.ANCESTOR] = function(t, e) {
174800
174800
  return ea(t.ancestor, e) && e.descendants().some(function(r) {
174801
174801
  return ea(t.descendant, r);
174802
174802
  });
174803
174803
  };
174804
- Ma[vr.COMPOUND_SPLIT] = function(t, e) {
174804
+ Pa[vr.COMPOUND_SPLIT] = function(t, e) {
174805
174805
  return ea(t.subject, e) && ea(t.left, e) && ea(t.right, e);
174806
174806
  };
174807
- Ma[vr.TRUE] = function() {
174807
+ Pa[vr.TRUE] = function() {
174808
174808
  return !0;
174809
174809
  };
174810
- Ma[vr.COLLECTION] = function(t, e) {
174810
+ Pa[vr.COLLECTION] = function(t, e) {
174811
174811
  var r = t.value;
174812
174812
  return r.has(e);
174813
174813
  };
174814
- Ma[vr.FILTER] = function(t, e) {
174814
+ Pa[vr.FILTER] = function(t, e) {
174815
174815
  var r = t.value;
174816
174816
  return r(e);
174817
174817
  };
@@ -182389,7 +182389,7 @@ zo.findMidptPtsEtc = function(t, e) {
182389
182389
  break;
182390
182390
  case "endpoints": {
182391
182391
  if (l) {
182392
- var h = this.manualEndptToPx(t.source()[0], s), p = za(h, 2), f = p[0], m = p[1], _ = this.manualEndptToPx(t.target()[0], o), v = za(_, 2), y = v[0], b = v[1], E = {
182392
+ var h = this.manualEndptToPx(t.source()[0], s), p = qa(h, 2), f = p[0], m = p[1], _ = this.manualEndptToPx(t.target()[0], o), v = qa(_, 2), y = v[0], b = v[1], E = {
182393
182393
  x1: f,
182394
182394
  y1: m,
182395
182395
  x2: y,
@@ -186290,12 +186290,12 @@ function WZe(t, e, r, n, i, a) {
186290
186290
  }
186291
186291
  g(WZe, "createTypedArrayView");
186292
186292
  function YZe(t, e, r, n) {
186293
- var i = oae(t, e), a = za(i, 2), s = a[0], o = a[1], l = lae(t, o, n), u = t.createBuffer();
186293
+ var i = oae(t, e), a = qa(i, 2), s = a[0], o = a[1], l = lae(t, o, n), u = t.createBuffer();
186294
186294
  return t.bindBuffer(t.ARRAY_BUFFER, u), t.bufferData(t.ARRAY_BUFFER, l, t.STATIC_DRAW), o === t.FLOAT ? t.vertexAttribPointer(r, s, o, !1, 0, 0) : o === t.INT && t.vertexAttribIPointer(r, s, o, 0, 0), t.enableVertexAttribArray(r), t.bindBuffer(t.ARRAY_BUFFER, null), u;
186295
186295
  }
186296
186296
  g(YZe, "createBufferStaticDraw");
186297
186297
  function Nl(t, e, r, n) {
186298
- var i = oae(t, r), a = za(i, 3), s = a[0], o = a[1], l = a[2], u = lae(t, o, e * s), d = s * l, h = t.createBuffer();
186298
+ var i = oae(t, r), a = qa(i, 3), s = a[0], o = a[1], l = a[2], u = lae(t, o, e * s), d = s * l, h = t.createBuffer();
186299
186299
  t.bindBuffer(t.ARRAY_BUFFER, h), t.bufferData(t.ARRAY_BUFFER, e * d, t.DYNAMIC_DRAW), t.enableVertexAttribArray(n), o === t.FLOAT ? t.vertexAttribPointer(n, s, o, !1, d, 0) : o === t.INT && t.vertexAttribIPointer(n, s, o, d, 0), t.vertexAttribDivisor(n, 1), t.bindBuffer(t.ARRAY_BUFFER, null);
186300
186300
  for (var p = new Array(e), f = 0; f < e; f++)
186301
186301
  p[f] = WZe(t, o, u, d, s, f);
@@ -186589,7 +186589,7 @@ var lw = {
186589
186589
  for (v.s(); !(y = v.n()).done; ) {
186590
186590
  var b = y.value;
186591
186591
  if (!_.has(b)) {
186592
- var E = f.getOffsets(b), S = za(E, 2), T = S[0], w = S[1];
186592
+ var E = f.getOffsets(b), S = qa(E, 2), T = S[0], w = S[1];
186593
186593
  o.canFit({
186594
186594
  w: T.w + w.w,
186595
186595
  h: T.h
@@ -186614,7 +186614,7 @@ var lw = {
186614
186614
  }, {
186615
186615
  key: "_copyTextureToNewAtlas",
186616
186616
  value: /* @__PURE__ */ g(function(r, n, i) {
186617
- var a = n.getOffsets(r), s = za(a, 2), o = s[0], l = s[1];
186617
+ var a = n.getOffsets(r), s = qa(a, 2), o = s[0], l = s[1];
186618
186618
  if (l.w === 0)
186619
186619
  i.draw(r, o, function(p) {
186620
186620
  p.drawImage(n.canvas, o.x, o.y, o.w, o.h, 0, 0, o.w, o.h);
@@ -186797,7 +186797,7 @@ var KFr = /* @__PURE__ */ function() {
186797
186797
  value: /* @__PURE__ */ g(function(r, n) {
186798
186798
  var i = this.renderTypes.get(n), a = i.getBoundingBox(r), s = this.getOrCreateAtlas(r, a, n), o = this.getAtlasIndexForBatch(s);
186799
186799
  if (o !== void 0) {
186800
- var l = i.getKey(r), u = s.getOffsets(l), d = za(u, 2), h = d[0], p = d[1];
186800
+ var l = i.getKey(r), u = s.getOffsets(l), d = qa(u, 2), h = d[0], p = d[1];
186801
186801
  return {
186802
186802
  atlasID: o,
186803
186803
  tex: h,
@@ -186872,7 +186872,7 @@ var KFr = /* @__PURE__ */ function() {
186872
186872
  var r = [], n = ql(this.renderTypes), i;
186873
186873
  try {
186874
186874
  for (n.s(); !(i = n.n()).done; ) {
186875
- var a = za(i.value, 2), s = a[0], o = a[1], l = o.atlasCollection.getCounts(), u = l.keyCount, d = l.atlasCount;
186875
+ var a = qa(i.value, 2), s = a[0], o = a[1], l = o.atlasCollection.getCounts(), u = l.keyCount, d = l.atlasCount;
186876
186876
  r.push({
186877
186877
  type: s,
186878
186878
  keyCount: u,
@@ -187541,10 +187541,10 @@ g(sJe, "drawAtlases");
187541
187541
  function oJe(t, e, r, n, i) {
187542
187542
  var a, s, o, l, u = rM(t), d = u.pan, h = u.zoom;
187543
187543
  if (n === void 0 || i === void 0) {
187544
- var p = d3(t, d, h, e, r), f = za(p, 2), m = f[0], _ = f[1], v = 6;
187544
+ var p = d3(t, d, h, e, r), f = qa(p, 2), m = f[0], _ = f[1], v = 6;
187545
187545
  a = m - v / 2, s = _ - v / 2, o = v, l = v;
187546
187546
  } else {
187547
- var y = d3(t, d, h, e, r), b = za(y, 2), E = b[0], S = b[1], T = d3(t, d, h, n, i), w = za(T, 2), C = w[0], x = w[1];
187547
+ var y = d3(t, d, h, e, r), b = qa(y, 2), E = b[0], S = b[1], T = d3(t, d, h, n, i), w = qa(T, 2), C = w[0], x = w[1];
187548
187548
  a = E, s = x, o = Math.abs(C - E), l = Math.abs(x - S);
187549
187549
  }
187550
187550
  if (o === 0 || l === 0)
@@ -194274,7 +194274,7 @@ var bTe = 0, f$r = /* @__PURE__ */ g(() => (bTe++, "id-" + Math.random().toStrin
194274
194274
  circle: L$r,
194275
194275
  cross: M$r,
194276
194276
  barb: P$r
194277
- }, B$r = A$r, $a = et()?.block?.padding ?? 8;
194277
+ }, B$r = A$r, za = et()?.block?.padding ?? 8;
194278
194278
  function JJe(t, e) {
194279
194279
  if (t === 0 || !Number.isInteger(t))
194280
194280
  throw new Error("Columns must be an integer !== 0.");
@@ -194332,7 +194332,7 @@ function kO(t, e, r = 0, n = 0) {
194332
194332
  for (const f of t.children)
194333
194333
  f.size && (Ce.debug(
194334
194334
  `abc95 Setting size of children of ${t.id} id=${f.id} ${i} ${a} ${JSON.stringify(f.size)}`
194335
- ), f.size.width = i * (f.widthInColumns ?? 1) + $a * ((f.widthInColumns ?? 1) - 1), f.size.height = a, f.size.x = 0, f.size.y = 0, Ce.debug(
194335
+ ), f.size.width = i * (f.widthInColumns ?? 1) + za * ((f.widthInColumns ?? 1) - 1), f.size.height = a, f.size.x = 0, f.size.y = 0, Ce.debug(
194336
194336
  `abc95 updating size of ${t.id} children child:${f.id} maxWidth:${i} maxHeight:${a}`
194337
194337
  ));
194338
194338
  for (const f of t.children)
@@ -194344,13 +194344,13 @@ function kO(t, e, r = 0, n = 0) {
194344
194344
  let u = t.children.length;
194345
194345
  o > 0 && o < l && (u = o);
194346
194346
  const d = Math.ceil(l / u);
194347
- let h = u * (i + $a) + $a, p = d * (a + $a) + $a;
194347
+ let h = u * (i + za) + za, p = d * (a + za) + za;
194348
194348
  if (h < r) {
194349
194349
  Ce.debug(
194350
194350
  `Detected to small siebling: abc95 ${t.id} sieblingWidth ${r} sieblingHeight ${n} width ${h}`
194351
194351
  ), h = r, p = n;
194352
- const f = (r - u * $a - $a) / u, m = (n - d * $a - $a) / d;
194353
- Ce.debug("Size indata abc88", t.id, "childWidth", f, "maxWidth", i), Ce.debug("Size indata abc88", t.id, "childHeight", m, "maxHeight", a), Ce.debug("Size indata abc88 xSize", u, "padding", $a);
194352
+ const f = (r - u * za - za) / u, m = (n - d * za - za) / d;
194353
+ Ce.debug("Size indata abc88", t.id, "childWidth", f, "maxWidth", i), Ce.debug("Size indata abc88", t.id, "childHeight", m, "maxHeight", a), Ce.debug("Size indata abc88 xSize", u, "padding", za);
194354
194354
  for (const _ of t.children)
194355
194355
  _.size && (_.size.width = f, _.size.height = m, _.size.x = 0, _.size.y = 0);
194356
194356
  }
@@ -194360,7 +194360,7 @@ function kO(t, e, r = 0, n = 0) {
194360
194360
  h = t?.size?.width || 0;
194361
194361
  const f = o > 0 ? Math.min(t.children.length, o) : t.children.length;
194362
194362
  if (f > 0) {
194363
- const m = (h - f * $a - $a) / f;
194363
+ const m = (h - f * za - za) / f;
194364
194364
  Ce.debug("abc95 (growing to fit) width", t.id, h, t.size?.width, m);
194365
194365
  for (const _ of t.children)
194366
194366
  _.size && (_.size.width = m);
@@ -194390,24 +194390,24 @@ function kae(t, e) {
194390
194390
  const r = t.columns ?? -1;
194391
194391
  if (Ce.debug("layoutBlocks columns abc95", t.id, "=>", r, t), t.children && // find max width of children
194392
194392
  t.children.length > 0) {
194393
- const n = t?.children[0]?.size?.width ?? 0, i = t.children.length * n + (t.children.length - 1) * $a;
194393
+ const n = t?.children[0]?.size?.width ?? 0, i = t.children.length * n + (t.children.length - 1) * za;
194394
194394
  Ce.debug("widthOfChildren 88", i, "posX");
194395
194395
  let a = 0;
194396
194396
  Ce.debug("abc91 block?.size?.x", t.id, t?.size?.x);
194397
- let s = t?.size?.x ? t?.size?.x + (-t?.size?.width / 2 || 0) : -$a, o = 0;
194397
+ let s = t?.size?.x ? t?.size?.x + (-t?.size?.width / 2 || 0) : -za, o = 0;
194398
194398
  for (const l of t.children) {
194399
194399
  const u = t;
194400
194400
  if (!l.size)
194401
194401
  continue;
194402
194402
  const { width: d, height: h } = l.size, { px: p, py: f } = JJe(r, a);
194403
- if (f != o && (o = f, s = t?.size?.x ? t?.size?.x + (-t?.size?.width / 2 || 0) : -$a, Ce.debug("New row in layout for block", t.id, " and child ", l.id, o)), Ce.debug(
194404
- `abc89 layout blocks (child) id: ${l.id} Pos: ${a} (px, py) ${p},${f} (${u?.size?.x},${u?.size?.y}) parent: ${u.id} width: ${d}${$a}`
194403
+ if (f != o && (o = f, s = t?.size?.x ? t?.size?.x + (-t?.size?.width / 2 || 0) : -za, Ce.debug("New row in layout for block", t.id, " and child ", l.id, o)), Ce.debug(
194404
+ `abc89 layout blocks (child) id: ${l.id} Pos: ${a} (px, py) ${p},${f} (${u?.size?.x},${u?.size?.y}) parent: ${u.id} width: ${d}${za}`
194405
194405
  ), u.size) {
194406
194406
  const m = d / 2;
194407
- l.size.x = s + $a + m, Ce.debug(
194408
- `abc91 layout blocks (calc) px, pyid:${l.id} startingPos=X${s} new startingPosX${l.size.x} ${m} padding=${$a} width=${d} halfWidth=${m} => x:${l.size.x} y:${l.size.y} ${l.widthInColumns} (width * (child?.w || 1)) / 2 ${d * (l?.widthInColumns ?? 1) / 2}`
194409
- ), s = l.size.x + m, l.size.y = u.size.y - u.size.height / 2 + f * (h + $a) + h / 2 + $a, Ce.debug(
194410
- `abc88 layout blocks (calc) px, pyid:${l.id}startingPosX${s}${$a}${m}=>x:${l.size.x}y:${l.size.y}${l.widthInColumns}(width * (child?.w || 1)) / 2${d * (l?.widthInColumns ?? 1) / 2}`
194407
+ l.size.x = s + za + m, Ce.debug(
194408
+ `abc91 layout blocks (calc) px, pyid:${l.id} startingPos=X${s} new startingPosX${l.size.x} ${m} padding=${za} width=${d} halfWidth=${m} => x:${l.size.x} y:${l.size.y} ${l.widthInColumns} (width * (child?.w || 1)) / 2 ${d * (l?.widthInColumns ?? 1) / 2}`
194409
+ ), s = l.size.x + m, l.size.y = u.size.y - u.size.height / 2 + f * (h + za) + h / 2 + za, Ce.debug(
194410
+ `abc88 layout blocks (calc) px, pyid:${l.id}startingPosX${s}${za}${m}=>x:${l.size.x}y:${l.size.y}${l.widthInColumns}(width * (child?.w || 1)) / 2${d * (l?.widthInColumns ?? 1) / 2}`
194411
194411
  );
194412
194412
  }
194413
194413
  l.children && kae(l), a += l?.widthInColumns ?? 1, Ce.debug("abc88 columnsPos", l, a);
@@ -194933,7 +194933,7 @@ var ezr = /* @__PURE__ */ g((t, e) => {
194933
194933
  p = m.getBoundingClientRect(), _.attr("width", p.width), _.attr("height", p.height);
194934
194934
  }
194935
194935
  return s ? l.attr("transform", "translate(" + -p.width / 2 + ", " + -p.height / 2 + ")") : l.attr("transform", "translate(0, " + -p.height / 2 + ")"), e.centerLabel && l.attr("transform", "translate(" + -p.width / 2 + ", " + -p.height / 2 + ")"), l.insert("rect", ":first-child"), { shapeSvg: o, bbox: p, halfPadding: f, label: l };
194936
- }, "labelHelper"), Pa = /* @__PURE__ */ g((t, e) => {
194936
+ }, "labelHelper"), Fa = /* @__PURE__ */ g((t, e) => {
194937
194937
  const r = e.node().getBBox();
194938
194938
  t.width = r.width, t.height = r.height;
194939
194939
  }, "updateNodeBounds");
@@ -194956,7 +194956,7 @@ var rzr = /* @__PURE__ */ g(async (t, e) => {
194956
194956
  );
194957
194957
  Ce.info("Classes = ", e.classes);
194958
194958
  const s = n.insert("rect", ":first-child");
194959
- return s.attr("rx", e.rx).attr("ry", e.ry).attr("x", -i.width / 2 - a).attr("y", -i.height / 2 - a).attr("width", i.width + e.padding).attr("height", i.height + e.padding), Pa(e, s), e.intersect = function(o) {
194959
+ return s.attr("rx", e.rx).attr("ry", e.ry).attr("x", -i.width / 2 - a).attr("y", -i.height / 2 - a).attr("width", i.width + e.padding).attr("height", i.height + e.padding), Fa(e, s), e.intersect = function(o) {
194960
194960
  return da.rect(e, o);
194961
194961
  }, n;
194962
194962
  }, "note"), nzr = rzr, TTe = /* @__PURE__ */ g((t) => t ? " " + t : "", "formatClass"), Mc = /* @__PURE__ */ g((t, e) => `${e || "node default"}${TTe(t.classes)} ${TTe(
@@ -194975,7 +194975,7 @@ var rzr = /* @__PURE__ */ g(async (t, e) => {
194975
194975
  ];
194976
194976
  Ce.info("Question main (Circle)");
194977
194977
  const l = Rd(r, s, s, o);
194978
- return l.attr("style", e.style), Pa(e, l), e.intersect = function(u) {
194978
+ return l.attr("style", e.style), Fa(e, l), e.intersect = function(u) {
194979
194979
  return Ce.warn("Intersect called"), da.polygon(e, o, u);
194980
194980
  }, r;
194981
194981
  }, "question"), izr = /* @__PURE__ */ g((t, e) => {
@@ -195007,12 +195007,12 @@ var rzr = /* @__PURE__ */ g(async (t, e) => {
195007
195007
  { x: s, y: -a },
195008
195008
  { x: 0, y: -a / 2 }
195009
195009
  ], u = Rd(r, o, a, l);
195010
- return u.attr("style", e.style), Pa(e, u), e.intersect = function(d) {
195010
+ return u.attr("style", e.style), Fa(e, u), e.intersect = function(d) {
195011
195011
  return da.polygon(e, l, d);
195012
195012
  }, r;
195013
195013
  }, "hexagon"), szr = /* @__PURE__ */ g(async (t, e) => {
195014
195014
  const { shapeSvg: r, bbox: n } = await Ys(t, e, void 0, !0), i = 2, a = n.height + 2 * e.padding, s = a / i, o = n.width + 2 * s + e.padding, l = K$r(e.directions, n, e), u = Rd(r, o, a, l);
195015
- return u.attr("style", e.style), Pa(e, u), e.intersect = function(d) {
195015
+ return u.attr("style", e.style), Fa(e, u), e.intersect = function(d) {
195016
195016
  return da.polygon(e, l, d);
195017
195017
  }, r;
195018
195018
  }, "block_arrow"), ozr = /* @__PURE__ */ g(async (t, e) => {
@@ -195038,7 +195038,7 @@ var rzr = /* @__PURE__ */ g(async (t, e) => {
195038
195038
  { x: i + 2 * a / 6, y: -a },
195039
195039
  { x: a / 6, y: -a }
195040
195040
  ], o = Rd(r, i, a, s);
195041
- return o.attr("style", e.style), Pa(e, o), e.intersect = function(l) {
195041
+ return o.attr("style", e.style), Fa(e, o), e.intersect = function(l) {
195042
195042
  return da.polygon(e, s, l);
195043
195043
  }, r;
195044
195044
  }, "lean_right"), czr = /* @__PURE__ */ g(async (t, e) => {
@@ -195053,7 +195053,7 @@ var rzr = /* @__PURE__ */ g(async (t, e) => {
195053
195053
  { x: i - 2 * a / 6, y: -a },
195054
195054
  { x: -a / 6, y: -a }
195055
195055
  ], o = Rd(r, i, a, s);
195056
- return o.attr("style", e.style), Pa(e, o), e.intersect = function(l) {
195056
+ return o.attr("style", e.style), Fa(e, o), e.intersect = function(l) {
195057
195057
  return da.polygon(e, s, l);
195058
195058
  }, r;
195059
195059
  }, "lean_left"), uzr = /* @__PURE__ */ g(async (t, e) => {
@@ -195068,7 +195068,7 @@ var rzr = /* @__PURE__ */ g(async (t, e) => {
195068
195068
  { x: i - a / 6, y: -a },
195069
195069
  { x: a / 6, y: -a }
195070
195070
  ], o = Rd(r, i, a, s);
195071
- return o.attr("style", e.style), Pa(e, o), e.intersect = function(l) {
195071
+ return o.attr("style", e.style), Fa(e, o), e.intersect = function(l) {
195072
195072
  return da.polygon(e, s, l);
195073
195073
  }, r;
195074
195074
  }, "trapezoid"), dzr = /* @__PURE__ */ g(async (t, e) => {
@@ -195083,7 +195083,7 @@ var rzr = /* @__PURE__ */ g(async (t, e) => {
195083
195083
  { x: i + 2 * a / 6, y: -a },
195084
195084
  { x: -2 * a / 6, y: -a }
195085
195085
  ], o = Rd(r, i, a, s);
195086
- return o.attr("style", e.style), Pa(e, o), e.intersect = function(l) {
195086
+ return o.attr("style", e.style), Fa(e, o), e.intersect = function(l) {
195087
195087
  return da.polygon(e, s, l);
195088
195088
  }, r;
195089
195089
  }, "inv_trapezoid"), hzr = /* @__PURE__ */ g(async (t, e) => {
@@ -195099,7 +195099,7 @@ var rzr = /* @__PURE__ */ g(async (t, e) => {
195099
195099
  { x: i + a / 2, y: -a },
195100
195100
  { x: 0, y: -a }
195101
195101
  ], o = Rd(r, i, a, s);
195102
- return o.attr("style", e.style), Pa(e, o), e.intersect = function(l) {
195102
+ return o.attr("style", e.style), Fa(e, o), e.intersect = function(l) {
195103
195103
  return da.polygon(e, s, l);
195104
195104
  }, r;
195105
195105
  }, "rect_right_inv_arrow"), fzr = /* @__PURE__ */ g(async (t, e) => {
@@ -195109,7 +195109,7 @@ var rzr = /* @__PURE__ */ g(async (t, e) => {
195109
195109
  Mc(e, void 0),
195110
195110
  !0
195111
195111
  ), i = n.width + e.padding, a = i / 2, s = a / (2.5 + i / 50), o = n.height + s + e.padding, l = "M 0," + s + " a " + a + "," + s + " 0,0,0 " + i + " 0 a " + a + "," + s + " 0,0,0 " + -i + " 0 l 0," + o + " a " + a + "," + s + " 0,0,0 " + i + " 0 l 0," + -o, u = r.attr("label-offset-y", s).insert("path", ":first-child").attr("style", e.style).attr("d", l).attr("transform", "translate(" + -i / 2 + "," + -(o / 2 + s) + ")");
195112
- return Pa(e, u), e.intersect = function(d) {
195112
+ return Fa(e, u), e.intersect = function(d) {
195113
195113
  const h = da.rect(e, d), p = h.x - e.x;
195114
195114
  if (a != 0 && (Math.abs(p) < e.width / 2 || Math.abs(p) == e.width / 2 && Math.abs(h.y - e.y) > e.height / 2 - s)) {
195115
195115
  let f = s * s * (1 - p * p / (a * a));
@@ -195130,7 +195130,7 @@ var rzr = /* @__PURE__ */ g(async (t, e) => {
195130
195130
  Ce.warn(`Unknown node property ${h}`);
195131
195131
  });
195132
195132
  }
195133
- return Pa(e, a), e.intersect = function(d) {
195133
+ return Fa(e, a), e.intersect = function(d) {
195134
195134
  return da.rect(e, d);
195135
195135
  }, r;
195136
195136
  }, "rect"), gzr = /* @__PURE__ */ g(async (t, e) => {
@@ -195146,7 +195146,7 @@ var rzr = /* @__PURE__ */ g(async (t, e) => {
195146
195146
  Ce.warn(`Unknown node property ${h}`);
195147
195147
  });
195148
195148
  }
195149
- return Pa(e, a), e.intersect = function(d) {
195149
+ return Fa(e, a), e.intersect = function(d) {
195150
195150
  return da.rect(e, d);
195151
195151
  }, r;
195152
195152
  }, "composite"), mzr = /* @__PURE__ */ g(async (t, e) => {
@@ -195159,7 +195159,7 @@ var rzr = /* @__PURE__ */ g(async (t, e) => {
195159
195159
  Ce.warn(`Unknown node property ${o}`);
195160
195160
  });
195161
195161
  }
195162
- return Pa(e, n), e.intersect = function(s) {
195162
+ return Fa(e, n), e.intersect = function(s) {
195163
195163
  return da.rect(e, s);
195164
195164
  }, r;
195165
195165
  }, "labelRect");
@@ -195206,7 +195206,7 @@ var _zr = /* @__PURE__ */ g((t, e) => {
195206
195206
  ), d = s.node().getBBox(), s.attr(
195207
195207
  "transform",
195208
195208
  "translate(" + -d.width / 2 + ", " + (-d.height / 2 - m + 3) + ")"
195209
- ), i.attr("class", "outer title-state").attr("x", -d.width / 2 - m).attr("y", -d.height / 2 - m).attr("width", d.width + e.padding).attr("height", d.height + e.padding), a.attr("class", "divider").attr("x1", -d.width / 2 - m).attr("x2", d.width / 2 + m).attr("y1", -d.height / 2 - m + p.height + m).attr("y2", -d.height / 2 - m + p.height + m), Pa(e, i), e.intersect = function(_) {
195209
+ ), i.attr("class", "outer title-state").attr("x", -d.width / 2 - m).attr("y", -d.height / 2 - m).attr("width", d.width + e.padding).attr("height", d.height + e.padding), a.attr("class", "divider").attr("x1", -d.width / 2 - m).attr("x2", d.width / 2 + m).attr("y1", -d.height / 2 - m + p.height + m).attr("y2", -d.height / 2 - m + p.height + m), Fa(e, i), e.intersect = function(_) {
195210
195210
  return da.rect(e, _);
195211
195211
  }, n;
195212
195212
  }, "rectWithTitle"), yzr = /* @__PURE__ */ g(async (t, e) => {
@@ -195216,7 +195216,7 @@ var _zr = /* @__PURE__ */ g((t, e) => {
195216
195216
  Mc(e, void 0),
195217
195217
  !0
195218
195218
  ), i = n.height + e.padding, a = n.width + i / 4 + e.padding, s = r.insert("rect", ":first-child").attr("style", e.style).attr("rx", i / 2).attr("ry", i / 2).attr("x", -a / 2).attr("y", -i / 2).attr("width", a).attr("height", i);
195219
- return Pa(e, s), e.intersect = function(o) {
195219
+ return Fa(e, s), e.intersect = function(o) {
195220
195220
  return da.rect(e, o);
195221
195221
  }, r;
195222
195222
  }, "stadium"), vzr = /* @__PURE__ */ g(async (t, e) => {
@@ -195226,7 +195226,7 @@ var _zr = /* @__PURE__ */ g((t, e) => {
195226
195226
  Mc(e, void 0),
195227
195227
  !0
195228
195228
  ), a = r.insert("circle", ":first-child");
195229
- return a.attr("style", e.style).attr("rx", e.rx).attr("ry", e.ry).attr("r", n.width / 2 + i).attr("width", n.width + e.padding).attr("height", n.height + e.padding), Ce.info("Circle main"), Pa(e, a), e.intersect = function(s) {
195229
+ return a.attr("style", e.style).attr("rx", e.rx).attr("ry", e.ry).attr("r", n.width / 2 + i).attr("width", n.width + e.padding).attr("height", n.height + e.padding), Ce.info("Circle main"), Fa(e, a), e.intersect = function(s) {
195230
195230
  return Ce.info("Circle intersect", e, n.width / 2 + i, s), da.circle(e, n.width / 2 + i, s);
195231
195231
  }, r;
195232
195232
  }, "circle"), bzr = /* @__PURE__ */ g(async (t, e) => {
@@ -195236,7 +195236,7 @@ var _zr = /* @__PURE__ */ g((t, e) => {
195236
195236
  Mc(e, void 0),
195237
195237
  !0
195238
195238
  ), a = 5, s = r.insert("g", ":first-child"), o = s.insert("circle"), l = s.insert("circle");
195239
- return s.attr("class", e.class), o.attr("style", e.style).attr("rx", e.rx).attr("ry", e.ry).attr("r", n.width / 2 + i + a).attr("width", n.width + e.padding + a * 2).attr("height", n.height + e.padding + a * 2), l.attr("style", e.style).attr("rx", e.rx).attr("ry", e.ry).attr("r", n.width / 2 + i).attr("width", n.width + e.padding).attr("height", n.height + e.padding), Ce.info("DoubleCircle main"), Pa(e, o), e.intersect = function(u) {
195239
+ return s.attr("class", e.class), o.attr("style", e.style).attr("rx", e.rx).attr("ry", e.ry).attr("r", n.width / 2 + i + a).attr("width", n.width + e.padding + a * 2).attr("height", n.height + e.padding + a * 2), l.attr("style", e.style).attr("rx", e.rx).attr("ry", e.ry).attr("r", n.width / 2 + i).attr("width", n.width + e.padding).attr("height", n.height + e.padding), Ce.info("DoubleCircle main"), Fa(e, o), e.intersect = function(u) {
195240
195240
  return Ce.info("DoubleCircle intersect", e, n.width / 2 + i + a, u), da.circle(e, n.width / 2 + i + a, u);
195241
195241
  }, r;
195242
195242
  }, "doublecircle"), Ezr = /* @__PURE__ */ g(async (t, e) => {
@@ -195257,12 +195257,12 @@ var _zr = /* @__PURE__ */ g((t, e) => {
195257
195257
  { x: -8, y: -a },
195258
195258
  { x: -8, y: 0 }
195259
195259
  ], o = Rd(r, i, a, s);
195260
- return o.attr("style", e.style), Pa(e, o), e.intersect = function(l) {
195260
+ return o.attr("style", e.style), Fa(e, o), e.intersect = function(l) {
195261
195261
  return da.polygon(e, s, l);
195262
195262
  }, r;
195263
195263
  }, "subroutine"), Szr = /* @__PURE__ */ g((t, e) => {
195264
195264
  const r = t.insert("g").attr("class", "node default").attr("id", e.domId || e.id), n = r.insert("circle", ":first-child");
195265
- return n.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), Pa(e, n), e.intersect = function(i) {
195265
+ return n.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), Fa(e, n), e.intersect = function(i) {
195266
195266
  return da.circle(e, 7, i);
195267
195267
  }, r;
195268
195268
  }, "start"), CTe = /* @__PURE__ */ g((t, e, r) => {
@@ -195270,12 +195270,12 @@ var _zr = /* @__PURE__ */ g((t, e) => {
195270
195270
  let i = 70, a = 10;
195271
195271
  r === "LR" && (i = 10, a = 70);
195272
195272
  const s = n.append("rect").attr("x", -1 * i / 2).attr("y", -1 * a / 2).attr("width", i).attr("height", a).attr("class", "fork-join");
195273
- return Pa(e, s), e.height = e.height + e.padding / 2, e.width = e.width + e.padding / 2, e.intersect = function(o) {
195273
+ return Fa(e, s), e.height = e.height + e.padding / 2, e.width = e.width + e.padding / 2, e.intersect = function(o) {
195274
195274
  return da.rect(e, o);
195275
195275
  }, n;
195276
195276
  }, "forkJoin"), Tzr = /* @__PURE__ */ g((t, e) => {
195277
195277
  const r = t.insert("g").attr("class", "node default").attr("id", e.domId || e.id), n = r.insert("circle", ":first-child"), i = r.insert("circle", ":first-child");
195278
- return i.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), n.attr("class", "state-end").attr("r", 5).attr("width", 10).attr("height", 10), Pa(e, i), e.intersect = function(a) {
195278
+ return i.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), n.attr("class", "state-end").attr("r", 5).attr("width", 10).attr("height", 10), Fa(e, i), e.intersect = function(a) {
195279
195279
  return da.circle(e, 7, a);
195280
195280
  }, r;
195281
195281
  }, "end"), wzr = /* @__PURE__ */ g((t, e) => {
@@ -195367,7 +195367,7 @@ var _zr = /* @__PURE__ */ g((t, e) => {
195367
195367
  );
195368
195368
  const A = x?.getBBox();
195369
195369
  f += (A?.height ?? 0) + n;
195370
- }), o.attr("style", e.style).attr("class", "outer title-state").attr("x", -d / 2 - r).attr("y", -(h / 2) - r).attr("width", d + e.padding).attr("height", h + e.padding), Pa(e, o), e.intersect = function(x) {
195370
+ }), o.attr("style", e.style).attr("class", "outer title-state").attr("x", -d / 2 - r).attr("y", -(h / 2) - r).attr("width", d + e.padding).attr("height", h + e.padding), Fa(e, o), e.intersect = function(x) {
195371
195371
  return da.rect(e, x);
195372
195372
  }, s;
195373
195373
  }, "class_box"), xTe = {
@@ -201146,7 +201146,7 @@ function bqr() {
201146
201146
  }
201147
201147
  }(), $rt = Lt.clearTimeout !== os.clearTimeout && Lt.clearTimeout, zrt = yr && yr.now !== os.Date.now && yr.now, qrt = Lt.setTimeout !== os.setTimeout && Lt.setTimeout, uk = ls.ceil, dk = ls.floor, UM = Fi.getOwnPropertySymbols, Grt = ak ? ak.isBuffer : r, yse = Lt.isFinite, Hrt = tk.join, Vrt = dse(Fi.keys, Fi), cs = ls.max, mo = ls.min, Wrt = yr.now, Yrt = Lt.parseInt, vse = ls.random, jrt = tk.reverse, $M = Pm(Lt, "DataView"), i2 = Pm(Lt, "Map"), zM = Pm(Lt, "Promise"), N_ = Pm(Lt, "Set"), a2 = Pm(Lt, "WeakMap"), s2 = Pm(Fi, "create"), hk = a2 && new a2(), I_ = {}, Krt = Fm($M), Xrt = Fm(i2), Qrt = Fm(zM), Zrt = Fm(N_), Jrt = Fm(a2), fk = Lp ? Lp.prototype : r, o2 = fk ? fk.valueOf : r, bse = fk ? fk.toString : r;
201148
201148
  function Ae(k) {
201149
- if (xa(k) && !xn(k) && !(k instanceof Wn)) {
201149
+ if (xa(k) && !xn(k) && !(k instanceof Yn)) {
201150
201150
  if (k instanceof Uc)
201151
201151
  return k;
201152
201152
  if (wi.call(k, "__wrapped__"))
@@ -201217,16 +201217,16 @@ function bqr() {
201217
201217
  _: Ae
201218
201218
  }
201219
201219
  }, Ae.prototype = pk.prototype, Ae.prototype.constructor = Ae, Uc.prototype = O_(pk.prototype), Uc.prototype.constructor = Uc;
201220
- function Wn(k) {
201220
+ function Yn(k) {
201221
201221
  this.__wrapped__ = k, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = G, this.__views__ = [];
201222
201222
  }
201223
201223
  function ent() {
201224
- var k = new Wn(this.__wrapped__);
201224
+ var k = new Yn(this.__wrapped__);
201225
201225
  return k.__actions__ = Tl(this.__actions__), k.__dir__ = this.__dir__, k.__filtered__ = this.__filtered__, k.__iteratees__ = Tl(this.__iteratees__), k.__takeCount__ = this.__takeCount__, k.__views__ = Tl(this.__views__), k;
201226
201226
  }
201227
201227
  function tnt() {
201228
201228
  if (this.__filtered__) {
201229
- var k = new Wn(this);
201229
+ var k = new Yn(this);
201230
201230
  k.__dir__ = -1, k.__filtered__ = !0;
201231
201231
  } else
201232
201232
  k = this.clone(), k.__dir__ *= -1;
@@ -201254,7 +201254,7 @@ function bqr() {
201254
201254
  }
201255
201255
  return rn;
201256
201256
  }
201257
- Wn.prototype = O_(pk.prototype), Wn.prototype.constructor = Wn;
201257
+ Yn.prototype = O_(pk.prototype), Yn.prototype.constructor = Yn;
201258
201258
  function Im(k) {
201259
201259
  var M = -1, V = k == null ? 0 : k.length;
201260
201260
  for (this.clear(); ++M < V; ) {
@@ -201759,7 +201759,7 @@ function bqr() {
201759
201759
  var Ft = Oe ? Oe(it, pt, V + "", k, M, Ke) : r, zt = Ft === r;
201760
201760
  if (zt) {
201761
201761
  var lr = xn(pt), Nr = !lr && Up(pt), rn = !lr && !Nr && F_(pt);
201762
- Ft = pt, lr || Nr || rn ? xn(it) ? Ft = it : Fa(it) ? Ft = Tl(it) : Nr ? (zt = !1, Ft = Yse(pt, !0)) : rn ? (zt = !1, Ft = jse(pt, !0)) : Ft = [] : m2(pt) || Bm(pt) ? (Ft = it, Bm(it) ? Ft = Hoe(it) : (!ha(it) || jh(it)) && (Ft = hoe(pt))) : zt = !1;
201762
+ Ft = pt, lr || Nr || rn ? xn(it) ? Ft = it : Ba(it) ? Ft = Tl(it) : Nr ? (zt = !1, Ft = Yse(pt, !0)) : rn ? (zt = !1, Ft = jse(pt, !0)) : Ft = [] : m2(pt) || Bm(pt) ? (Ft = it, Bm(it) ? Ft = Hoe(it) : (!ha(it) || jh(it)) && (Ft = hoe(pt))) : zt = !1;
201763
201763
  }
201764
201764
  zt && (Ke.set(pt, Ft), Se(Ft, pt, oe, Oe, Ke), Ke.delete(pt)), qM(k, V, Ft);
201765
201765
  }
@@ -201973,7 +201973,7 @@ function bqr() {
201973
201973
  }
201974
201974
  function Hse(k, M) {
201975
201975
  var V = k;
201976
- return V instanceof Wn && (V = V.value()), RM(M, function(oe, Se) {
201976
+ return V instanceof Yn && (V = V.value()), RM(M, function(oe, Se) {
201977
201977
  return Se.func.apply(Se.thisArg, Ip([oe], Se.args));
201978
201978
  }, V);
201979
201979
  }
@@ -201994,7 +201994,7 @@ function bqr() {
201994
201994
  return Ke;
201995
201995
  }
201996
201996
  function n8(k) {
201997
- return Fa(k) ? k : [];
201997
+ return Ba(k) ? k : [];
201998
201998
  }
201999
201999
  function i8(k) {
202000
202000
  return typeof k == "function" ? k : xl;
@@ -202248,7 +202248,7 @@ function bqr() {
202248
202248
  if (Nr)
202249
202249
  var Vo = P_(nn), oc = vrt(Kn, Vo);
202250
202250
  if (oe && (Kn = Xse(Kn, oe, Se, Nr)), Oe && (Kn = Qse(Kn, Oe, Ke, Nr)), Gn -= oc, Nr && Gn < Pt) {
202251
- var Ba = Op(Kn, Vo);
202251
+ var Ua = Op(Kn, Vo);
202252
202252
  return aoe(
202253
202253
  k,
202254
202254
  M,
@@ -202256,7 +202256,7 @@ function bqr() {
202256
202256
  nn.placeholder,
202257
202257
  V,
202258
202258
  Kn,
202259
- Ba,
202259
+ Ua,
202260
202260
  it,
202261
202261
  pt,
202262
202262
  Pt - Gn
@@ -202682,7 +202682,7 @@ function bqr() {
202682
202682
  }
202683
202683
  function p8(k) {
202684
202684
  var M = xk(k), V = Ae[M];
202685
- if (typeof V != "function" || !(M in Wn.prototype))
202685
+ if (typeof V != "function" || !(M in Yn.prototype))
202686
202686
  return !1;
202687
202687
  if (k === V)
202688
202688
  return !0;
@@ -202816,7 +202816,7 @@ function bqr() {
202816
202816
  }), k.sort();
202817
202817
  }
202818
202818
  function Eoe(k) {
202819
- if (k instanceof Wn)
202819
+ if (k instanceof Yn)
202820
202820
  return k.clone();
202821
202821
  var M = new Uc(k.__wrapped__, k.__chain__);
202822
202822
  return M.__actions__ = Tl(k.__actions__), M.__index__ = k.__index__, M.__values__ = k.__values__, M;
@@ -202846,13 +202846,13 @@ function bqr() {
202846
202846
  return Ip(xn(V) ? Tl(V) : [V], Xs(M, 1));
202847
202847
  }
202848
202848
  var Iit = Bn(function(k, M) {
202849
- return Fa(k) ? c2(k, Xs(M, 1, Fa, !0)) : [];
202849
+ return Ba(k) ? c2(k, Xs(M, 1, Ba, !0)) : [];
202850
202850
  }), Oit = Bn(function(k, M) {
202851
202851
  var V = qc(M);
202852
- return Fa(V) && (V = r), Fa(k) ? c2(k, Xs(M, 1, Fa, !0), tn(V, 2)) : [];
202852
+ return Ba(V) && (V = r), Ba(k) ? c2(k, Xs(M, 1, Ba, !0), tn(V, 2)) : [];
202853
202853
  }), Lit = Bn(function(k, M) {
202854
202854
  var V = qc(M);
202855
- return Fa(V) && (V = r), Fa(k) ? c2(k, Xs(M, 1, Fa, !0), r, V) : [];
202855
+ return Ba(V) && (V = r), Ba(k) ? c2(k, Xs(M, 1, Ba, !0), r, V) : [];
202856
202856
  });
202857
202857
  function Mit(k, M, V) {
202858
202858
  var oe = k == null ? 0 : k.length;
@@ -203034,13 +203034,13 @@ function bqr() {
203034
203034
  return k && k.length ? bk(k, tn(M, 3)) : [];
203035
203035
  }
203036
203036
  var mat = Bn(function(k) {
203037
- return Pp(Xs(k, 1, Fa, !0));
203037
+ return Pp(Xs(k, 1, Ba, !0));
203038
203038
  }), _at = Bn(function(k) {
203039
203039
  var M = qc(k);
203040
- return Fa(M) && (M = r), Pp(Xs(k, 1, Fa, !0), tn(M, 2));
203040
+ return Ba(M) && (M = r), Pp(Xs(k, 1, Ba, !0), tn(M, 2));
203041
203041
  }), yat = Bn(function(k) {
203042
203042
  var M = qc(k);
203043
- return M = typeof M == "function" ? M : r, Pp(Xs(k, 1, Fa, !0), r, M);
203043
+ return M = typeof M == "function" ? M : r, Pp(Xs(k, 1, Ba, !0), r, M);
203044
203044
  });
203045
203045
  function vat(k) {
203046
203046
  return k && k.length ? Pp(k) : [];
@@ -203056,7 +203056,7 @@ function bqr() {
203056
203056
  return [];
203057
203057
  var M = 0;
203058
203058
  return k = Ru(k, function(V) {
203059
- if (Fa(V))
203059
+ if (Ba(V))
203060
203060
  return M = cs(V.length, M), !0;
203061
203061
  }), MM(M, function(V) {
203062
203062
  return ra(k, IM(V));
@@ -203071,15 +203071,15 @@ function bqr() {
203071
203071
  });
203072
203072
  }
203073
203073
  var Sat = Bn(function(k, M) {
203074
- return Fa(k) ? c2(k, M) : [];
203074
+ return Ba(k) ? c2(k, M) : [];
203075
203075
  }), Tat = Bn(function(k) {
203076
- return r8(Ru(k, Fa));
203076
+ return r8(Ru(k, Ba));
203077
203077
  }), wat = Bn(function(k) {
203078
203078
  var M = qc(k);
203079
- return Fa(M) && (M = r), r8(Ru(k, Fa), tn(M, 2));
203079
+ return Ba(M) && (M = r), r8(Ru(k, Ba), tn(M, 2));
203080
203080
  }), Cat = Bn(function(k) {
203081
203081
  var M = qc(k);
203082
- return M = typeof M == "function" ? M : r, r8(Ru(k, Fa), r, M);
203082
+ return M = typeof M == "function" ? M : r, r8(Ru(k, Ba), r, M);
203083
203083
  }), xat = Bn(y8);
203084
203084
  function Aat(k, M) {
203085
203085
  return Vse(k || [], M || [], l2);
@@ -203105,7 +203105,7 @@ function bqr() {
203105
203105
  var M = k.length, V = M ? k[0] : 0, oe = this.__wrapped__, Se = function(Oe) {
203106
203106
  return GM(Oe, k);
203107
203107
  };
203108
- return M > 1 || this.__actions__.length || !(oe instanceof Wn) || !Yh(V) ? this.thru(Se) : (oe = oe.slice(V, +V + (M ? 1 : 0)), oe.__actions__.push({
203108
+ return M > 1 || this.__actions__.length || !(oe instanceof Yn) || !Yh(V) ? this.thru(Se) : (oe = oe.slice(V, +V + (M ? 1 : 0)), oe.__actions__.push({
203109
203109
  func: Dk,
203110
203110
  args: [Se],
203111
203111
  thisArg: r
@@ -203138,9 +203138,9 @@ function bqr() {
203138
203138
  }
203139
203139
  function Fat() {
203140
203140
  var k = this.__wrapped__;
203141
- if (k instanceof Wn) {
203141
+ if (k instanceof Yn) {
203142
203142
  var M = k;
203143
- return this.__actions__.length && (M = new Wn(this)), M = M.reverse(), M.__actions__.push({
203143
+ return this.__actions__.length && (M = new Yn(this)), M = M.reverse(), M.__actions__.push({
203144
203144
  func: Dk,
203145
203145
  args: [_8],
203146
203146
  thisArg: r
@@ -203302,29 +203302,29 @@ function bqr() {
203302
203302
  if (typeof k != "function")
203303
203303
  throw new Bc(s);
203304
203304
  M = Gc(M) || 0, ha(V) && (Ft = !!V.leading, zt = "maxWait" in V, Oe = zt ? cs(Gc(V.maxWait) || 0, M) : Oe, lr = "trailing" in V ? !!V.trailing : lr);
203305
- function Nr(Ba) {
203305
+ function Nr(Ua) {
203306
203306
  var Lu = oe, Xh = Se;
203307
- return oe = Se = r, Pt = Ba, Ke = k.apply(Xh, Lu), Ke;
203307
+ return oe = Se = r, Pt = Ua, Ke = k.apply(Xh, Lu), Ke;
203308
203308
  }
203309
- function rn(Ba) {
203310
- return Pt = Ba, it = g2(Gn, M), Ft ? Nr(Ba) : Ke;
203309
+ function rn(Ua) {
203310
+ return Pt = Ua, it = g2(Gn, M), Ft ? Nr(Ua) : Ke;
203311
203311
  }
203312
- function Fn(Ba) {
203313
- var Lu = Ba - pt, Xh = Ba - Pt, tle = M - Lu;
203312
+ function Fn(Ua) {
203313
+ var Lu = Ua - pt, Xh = Ua - Pt, tle = M - Lu;
203314
203314
  return zt ? mo(tle, Oe - Xh) : tle;
203315
203315
  }
203316
- function nn(Ba) {
203317
- var Lu = Ba - pt, Xh = Ba - Pt;
203316
+ function nn(Ua) {
203317
+ var Lu = Ua - pt, Xh = Ua - Pt;
203318
203318
  return pt === r || Lu >= M || Lu < 0 || zt && Xh >= Oe;
203319
203319
  }
203320
203320
  function Gn() {
203321
- var Ba = Nk();
203322
- if (nn(Ba))
203323
- return Kn(Ba);
203324
- it = g2(Gn, Fn(Ba));
203321
+ var Ua = Nk();
203322
+ if (nn(Ua))
203323
+ return Kn(Ua);
203324
+ it = g2(Gn, Fn(Ua));
203325
203325
  }
203326
- function Kn(Ba) {
203327
- return it = r, lr && oe ? Nr(Ba) : (oe = Se = r, Ke);
203326
+ function Kn(Ua) {
203327
+ return it = r, lr && oe ? Nr(Ua) : (oe = Se = r, Ke);
203328
203328
  }
203329
203329
  function sc() {
203330
203330
  it !== r && Wse(it), Pt = 0, oe = pt = Se = it = r;
@@ -203333,8 +203333,8 @@ function bqr() {
203333
203333
  return it === r ? Ke : Kn(Nk());
203334
203334
  }
203335
203335
  function oc() {
203336
- var Ba = Nk(), Lu = nn(Ba);
203337
- if (oe = arguments, Se = this, pt = Ba, Lu) {
203336
+ var Ua = Nk(), Lu = nn(Ua);
203337
+ if (oe = arguments, Se = this, pt = Ua, Lu) {
203338
203338
  if (it === r)
203339
203339
  return rn(pt);
203340
203340
  if (zt)
@@ -203466,7 +203466,7 @@ function bqr() {
203466
203466
  function wl(k) {
203467
203467
  return k != null && Lk(k.length) && !jh(k);
203468
203468
  }
203469
- function Fa(k) {
203469
+ function Ba(k) {
203470
203470
  return xa(k) && wl(k);
203471
203471
  }
203472
203472
  function Dst(k) {
@@ -204149,7 +204149,7 @@ function print() { __p += __j.call(arguments, '') }
204149
204149
  function $lt(k, M) {
204150
204150
  return k && k.length ? LM(k, tn(M, 2)) : 0;
204151
204151
  }
204152
- return Ae.after = lst, Ae.ary = Noe, Ae.assign = Kst, Ae.assignIn = Voe, Ae.assignInWith = Pk, Ae.assignWith = Xst, Ae.at = Qst, Ae.before = Ioe, Ae.bind = v8, Ae.bindAll = rlt, Ae.bindKey = Ooe, Ae.castArray = bst, Ae.chain = koe, Ae.chunk = Dit, Ae.compact = Rit, Ae.concat = Nit, Ae.cond = nlt, Ae.conforms = ilt, Ae.constant = x8, Ae.countBy = Uat, Ae.create = Zst, Ae.curry = Loe, Ae.curryRight = Moe, Ae.debounce = Poe, Ae.defaults = Jst, Ae.defaultsDeep = eot, Ae.defer = cst, Ae.delay = ust, Ae.difference = Iit, Ae.differenceBy = Oit, Ae.differenceWith = Lit, Ae.drop = Mit, Ae.dropRight = Pit, Ae.dropRightWhile = Fit, Ae.dropWhile = Bit, Ae.fill = Uit, Ae.filter = zat, Ae.flatMap = Hat, Ae.flatMapDeep = Vat, Ae.flatMapDepth = Wat, Ae.flatten = woe, Ae.flattenDeep = $it, Ae.flattenDepth = zit, Ae.flip = dst, Ae.flow = slt, Ae.flowRight = olt, Ae.fromPairs = qit, Ae.functions = oot, Ae.functionsIn = lot, Ae.groupBy = Yat, Ae.initial = Hit, Ae.intersection = Vit, Ae.intersectionBy = Wit, Ae.intersectionWith = Yit, Ae.invert = uot, Ae.invertBy = dot, Ae.invokeMap = Kat, Ae.iteratee = A8, Ae.keyBy = Xat, Ae.keys = Fs, Ae.keysIn = Cl, Ae.map = Rk, Ae.mapKeys = fot, Ae.mapValues = pot, Ae.matches = llt, Ae.matchesProperty = clt, Ae.memoize = Ik, Ae.merge = got, Ae.mergeWith = Woe, Ae.method = ult, Ae.methodOf = dlt, Ae.mixin = k8, Ae.negate = Ok, Ae.nthArg = flt, Ae.omit = mot, Ae.omitBy = _ot, Ae.once = hst, Ae.orderBy = Qat, Ae.over = plt, Ae.overArgs = fst, Ae.overEvery = glt, Ae.overSome = mlt, Ae.partial = b8, Ae.partialRight = Foe, Ae.partition = Zat, Ae.pick = yot, Ae.pickBy = Yoe, Ae.property = ele, Ae.propertyOf = _lt, Ae.pull = Qit, Ae.pullAll = xoe, Ae.pullAllBy = Zit, Ae.pullAllWith = Jit, Ae.pullAt = eat, Ae.range = ylt, Ae.rangeRight = vlt, Ae.rearg = pst, Ae.reject = tst, Ae.remove = tat, Ae.rest = gst, Ae.reverse = _8, Ae.sampleSize = nst, Ae.set = bot, Ae.setWith = Eot, Ae.shuffle = ist, Ae.slice = rat, Ae.sortBy = ost, Ae.sortedUniq = cat, Ae.sortedUniqBy = uat, Ae.split = Hot, Ae.spread = mst, Ae.tail = dat, Ae.take = hat, Ae.takeRight = fat, Ae.takeRightWhile = pat, Ae.takeWhile = gat, Ae.tap = Rat, Ae.throttle = _st, Ae.thru = Dk, Ae.toArray = qoe, Ae.toPairs = joe, Ae.toPairsIn = Koe, Ae.toPath = wlt, Ae.toPlainObject = Hoe, Ae.transform = Sot, Ae.unary = yst, Ae.union = mat, Ae.unionBy = _at, Ae.unionWith = yat, Ae.uniq = vat, Ae.uniqBy = bat, Ae.uniqWith = Eat, Ae.unset = Tot, Ae.unzip = y8, Ae.unzipWith = Aoe, Ae.update = wot, Ae.updateWith = Cot, Ae.values = B_, Ae.valuesIn = xot, Ae.without = Sat, Ae.words = Zoe, Ae.wrap = vst, Ae.xor = Tat, Ae.xorBy = wat, Ae.xorWith = Cat, Ae.zip = xat, Ae.zipObject = Aat, Ae.zipObjectDeep = kat, Ae.zipWith = Dat, Ae.entries = joe, Ae.entriesIn = Koe, Ae.extend = Voe, Ae.extendWith = Pk, k8(Ae, Ae), Ae.add = xlt, Ae.attempt = Joe, Ae.camelCase = Rot, Ae.capitalize = Xoe, Ae.ceil = Alt, Ae.clamp = Aot, Ae.clone = Est, Ae.cloneDeep = Tst, Ae.cloneDeepWith = wst, Ae.cloneWith = Sst, Ae.conformsTo = Cst, Ae.deburr = Qoe, Ae.defaultTo = alt, Ae.divide = klt, Ae.endsWith = Not, Ae.eq = Ou, Ae.escape = Iot, Ae.escapeRegExp = Oot, Ae.every = $at, Ae.find = qat, Ae.findIndex = Soe, Ae.findKey = tot, Ae.findLast = Gat, Ae.findLastIndex = Toe, Ae.findLastKey = rot, Ae.floor = Dlt, Ae.forEach = Doe, Ae.forEachRight = Roe, Ae.forIn = not, Ae.forInRight = iot, Ae.forOwn = aot, Ae.forOwnRight = sot, Ae.get = T8, Ae.gt = xst, Ae.gte = Ast, Ae.has = cot, Ae.hasIn = w8, Ae.head = Coe, Ae.identity = xl, Ae.includes = jat, Ae.indexOf = Git, Ae.inRange = kot, Ae.invoke = hot, Ae.isArguments = Bm, Ae.isArray = xn, Ae.isArrayBuffer = kst, Ae.isArrayLike = wl, Ae.isArrayLikeObject = Fa, Ae.isBoolean = Dst, Ae.isBuffer = Up, Ae.isDate = Rst, Ae.isElement = Nst, Ae.isEmpty = Ist, Ae.isEqual = Ost, Ae.isEqualWith = Lst, Ae.isError = E8, Ae.isFinite = Mst, Ae.isFunction = jh, Ae.isInteger = Boe, Ae.isLength = Lk, Ae.isMap = Uoe, Ae.isMatch = Pst, Ae.isMatchWith = Fst, Ae.isNaN = Bst, Ae.isNative = Ust, Ae.isNil = zst, Ae.isNull = $st, Ae.isNumber = $oe, Ae.isObject = ha, Ae.isObjectLike = xa, Ae.isPlainObject = m2, Ae.isRegExp = S8, Ae.isSafeInteger = qst, Ae.isSet = zoe, Ae.isString = Mk, Ae.isSymbol = ac, Ae.isTypedArray = F_, Ae.isUndefined = Gst, Ae.isWeakMap = Hst, Ae.isWeakSet = Vst, Ae.join = jit, Ae.kebabCase = Lot, Ae.last = qc, Ae.lastIndexOf = Kit, Ae.lowerCase = Mot, Ae.lowerFirst = Pot, Ae.lt = Wst, Ae.lte = Yst, Ae.max = Rlt, Ae.maxBy = Nlt, Ae.mean = Ilt, Ae.meanBy = Olt, Ae.min = Llt, Ae.minBy = Mlt, Ae.stubArray = R8, Ae.stubFalse = N8, Ae.stubObject = blt, Ae.stubString = Elt, Ae.stubTrue = Slt, Ae.multiply = Plt, Ae.nth = Xit, Ae.noConflict = hlt, Ae.noop = D8, Ae.now = Nk, Ae.pad = Fot, Ae.padEnd = Bot, Ae.padStart = Uot, Ae.parseInt = $ot, Ae.random = Dot, Ae.reduce = Jat, Ae.reduceRight = est, Ae.repeat = zot, Ae.replace = qot, Ae.result = vot, Ae.round = Flt, Ae.runInContext = ht, Ae.sample = rst, Ae.size = ast, Ae.snakeCase = Got, Ae.some = sst, Ae.sortedIndex = nat, Ae.sortedIndexBy = iat, Ae.sortedIndexOf = aat, Ae.sortedLastIndex = sat, Ae.sortedLastIndexBy = oat, Ae.sortedLastIndexOf = lat, Ae.startCase = Vot, Ae.startsWith = Wot, Ae.subtract = Blt, Ae.sum = Ult, Ae.sumBy = $lt, Ae.template = Yot, Ae.times = Tlt, Ae.toFinite = Kh, Ae.toInteger = On, Ae.toLength = Goe, Ae.toLower = jot, Ae.toNumber = Gc, Ae.toSafeInteger = jst, Ae.toString = _i, Ae.toUpper = Kot, Ae.trim = Xot, Ae.trimEnd = Qot, Ae.trimStart = Zot, Ae.truncate = Jot, Ae.unescape = elt, Ae.uniqueId = Clt, Ae.upperCase = tlt, Ae.upperFirst = C8, Ae.each = Doe, Ae.eachRight = Roe, Ae.first = Coe, k8(Ae, function() {
204152
+ return Ae.after = lst, Ae.ary = Noe, Ae.assign = Kst, Ae.assignIn = Voe, Ae.assignInWith = Pk, Ae.assignWith = Xst, Ae.at = Qst, Ae.before = Ioe, Ae.bind = v8, Ae.bindAll = rlt, Ae.bindKey = Ooe, Ae.castArray = bst, Ae.chain = koe, Ae.chunk = Dit, Ae.compact = Rit, Ae.concat = Nit, Ae.cond = nlt, Ae.conforms = ilt, Ae.constant = x8, Ae.countBy = Uat, Ae.create = Zst, Ae.curry = Loe, Ae.curryRight = Moe, Ae.debounce = Poe, Ae.defaults = Jst, Ae.defaultsDeep = eot, Ae.defer = cst, Ae.delay = ust, Ae.difference = Iit, Ae.differenceBy = Oit, Ae.differenceWith = Lit, Ae.drop = Mit, Ae.dropRight = Pit, Ae.dropRightWhile = Fit, Ae.dropWhile = Bit, Ae.fill = Uit, Ae.filter = zat, Ae.flatMap = Hat, Ae.flatMapDeep = Vat, Ae.flatMapDepth = Wat, Ae.flatten = woe, Ae.flattenDeep = $it, Ae.flattenDepth = zit, Ae.flip = dst, Ae.flow = slt, Ae.flowRight = olt, Ae.fromPairs = qit, Ae.functions = oot, Ae.functionsIn = lot, Ae.groupBy = Yat, Ae.initial = Hit, Ae.intersection = Vit, Ae.intersectionBy = Wit, Ae.intersectionWith = Yit, Ae.invert = uot, Ae.invertBy = dot, Ae.invokeMap = Kat, Ae.iteratee = A8, Ae.keyBy = Xat, Ae.keys = Fs, Ae.keysIn = Cl, Ae.map = Rk, Ae.mapKeys = fot, Ae.mapValues = pot, Ae.matches = llt, Ae.matchesProperty = clt, Ae.memoize = Ik, Ae.merge = got, Ae.mergeWith = Woe, Ae.method = ult, Ae.methodOf = dlt, Ae.mixin = k8, Ae.negate = Ok, Ae.nthArg = flt, Ae.omit = mot, Ae.omitBy = _ot, Ae.once = hst, Ae.orderBy = Qat, Ae.over = plt, Ae.overArgs = fst, Ae.overEvery = glt, Ae.overSome = mlt, Ae.partial = b8, Ae.partialRight = Foe, Ae.partition = Zat, Ae.pick = yot, Ae.pickBy = Yoe, Ae.property = ele, Ae.propertyOf = _lt, Ae.pull = Qit, Ae.pullAll = xoe, Ae.pullAllBy = Zit, Ae.pullAllWith = Jit, Ae.pullAt = eat, Ae.range = ylt, Ae.rangeRight = vlt, Ae.rearg = pst, Ae.reject = tst, Ae.remove = tat, Ae.rest = gst, Ae.reverse = _8, Ae.sampleSize = nst, Ae.set = bot, Ae.setWith = Eot, Ae.shuffle = ist, Ae.slice = rat, Ae.sortBy = ost, Ae.sortedUniq = cat, Ae.sortedUniqBy = uat, Ae.split = Hot, Ae.spread = mst, Ae.tail = dat, Ae.take = hat, Ae.takeRight = fat, Ae.takeRightWhile = pat, Ae.takeWhile = gat, Ae.tap = Rat, Ae.throttle = _st, Ae.thru = Dk, Ae.toArray = qoe, Ae.toPairs = joe, Ae.toPairsIn = Koe, Ae.toPath = wlt, Ae.toPlainObject = Hoe, Ae.transform = Sot, Ae.unary = yst, Ae.union = mat, Ae.unionBy = _at, Ae.unionWith = yat, Ae.uniq = vat, Ae.uniqBy = bat, Ae.uniqWith = Eat, Ae.unset = Tot, Ae.unzip = y8, Ae.unzipWith = Aoe, Ae.update = wot, Ae.updateWith = Cot, Ae.values = B_, Ae.valuesIn = xot, Ae.without = Sat, Ae.words = Zoe, Ae.wrap = vst, Ae.xor = Tat, Ae.xorBy = wat, Ae.xorWith = Cat, Ae.zip = xat, Ae.zipObject = Aat, Ae.zipObjectDeep = kat, Ae.zipWith = Dat, Ae.entries = joe, Ae.entriesIn = Koe, Ae.extend = Voe, Ae.extendWith = Pk, k8(Ae, Ae), Ae.add = xlt, Ae.attempt = Joe, Ae.camelCase = Rot, Ae.capitalize = Xoe, Ae.ceil = Alt, Ae.clamp = Aot, Ae.clone = Est, Ae.cloneDeep = Tst, Ae.cloneDeepWith = wst, Ae.cloneWith = Sst, Ae.conformsTo = Cst, Ae.deburr = Qoe, Ae.defaultTo = alt, Ae.divide = klt, Ae.endsWith = Not, Ae.eq = Ou, Ae.escape = Iot, Ae.escapeRegExp = Oot, Ae.every = $at, Ae.find = qat, Ae.findIndex = Soe, Ae.findKey = tot, Ae.findLast = Gat, Ae.findLastIndex = Toe, Ae.findLastKey = rot, Ae.floor = Dlt, Ae.forEach = Doe, Ae.forEachRight = Roe, Ae.forIn = not, Ae.forInRight = iot, Ae.forOwn = aot, Ae.forOwnRight = sot, Ae.get = T8, Ae.gt = xst, Ae.gte = Ast, Ae.has = cot, Ae.hasIn = w8, Ae.head = Coe, Ae.identity = xl, Ae.includes = jat, Ae.indexOf = Git, Ae.inRange = kot, Ae.invoke = hot, Ae.isArguments = Bm, Ae.isArray = xn, Ae.isArrayBuffer = kst, Ae.isArrayLike = wl, Ae.isArrayLikeObject = Ba, Ae.isBoolean = Dst, Ae.isBuffer = Up, Ae.isDate = Rst, Ae.isElement = Nst, Ae.isEmpty = Ist, Ae.isEqual = Ost, Ae.isEqualWith = Lst, Ae.isError = E8, Ae.isFinite = Mst, Ae.isFunction = jh, Ae.isInteger = Boe, Ae.isLength = Lk, Ae.isMap = Uoe, Ae.isMatch = Pst, Ae.isMatchWith = Fst, Ae.isNaN = Bst, Ae.isNative = Ust, Ae.isNil = zst, Ae.isNull = $st, Ae.isNumber = $oe, Ae.isObject = ha, Ae.isObjectLike = xa, Ae.isPlainObject = m2, Ae.isRegExp = S8, Ae.isSafeInteger = qst, Ae.isSet = zoe, Ae.isString = Mk, Ae.isSymbol = ac, Ae.isTypedArray = F_, Ae.isUndefined = Gst, Ae.isWeakMap = Hst, Ae.isWeakSet = Vst, Ae.join = jit, Ae.kebabCase = Lot, Ae.last = qc, Ae.lastIndexOf = Kit, Ae.lowerCase = Mot, Ae.lowerFirst = Pot, Ae.lt = Wst, Ae.lte = Yst, Ae.max = Rlt, Ae.maxBy = Nlt, Ae.mean = Ilt, Ae.meanBy = Olt, Ae.min = Llt, Ae.minBy = Mlt, Ae.stubArray = R8, Ae.stubFalse = N8, Ae.stubObject = blt, Ae.stubString = Elt, Ae.stubTrue = Slt, Ae.multiply = Plt, Ae.nth = Xit, Ae.noConflict = hlt, Ae.noop = D8, Ae.now = Nk, Ae.pad = Fot, Ae.padEnd = Bot, Ae.padStart = Uot, Ae.parseInt = $ot, Ae.random = Dot, Ae.reduce = Jat, Ae.reduceRight = est, Ae.repeat = zot, Ae.replace = qot, Ae.result = vot, Ae.round = Flt, Ae.runInContext = ht, Ae.sample = rst, Ae.size = ast, Ae.snakeCase = Got, Ae.some = sst, Ae.sortedIndex = nat, Ae.sortedIndexBy = iat, Ae.sortedIndexOf = aat, Ae.sortedLastIndex = sat, Ae.sortedLastIndexBy = oat, Ae.sortedLastIndexOf = lat, Ae.startCase = Vot, Ae.startsWith = Wot, Ae.subtract = Blt, Ae.sum = Ult, Ae.sumBy = $lt, Ae.template = Yot, Ae.times = Tlt, Ae.toFinite = Kh, Ae.toInteger = On, Ae.toLength = Goe, Ae.toLower = jot, Ae.toNumber = Gc, Ae.toSafeInteger = jst, Ae.toString = _i, Ae.toUpper = Kot, Ae.trim = Xot, Ae.trimEnd = Qot, Ae.trimStart = Zot, Ae.truncate = Jot, Ae.unescape = elt, Ae.uniqueId = Clt, Ae.upperCase = tlt, Ae.upperFirst = C8, Ae.each = Doe, Ae.eachRight = Roe, Ae.first = Coe, k8(Ae, function() {
204153
204153
  var k = {};
204154
204154
  return Nd(Ae, function(M, V) {
204155
204155
  wi.call(Ae.prototype, V) || (k[V] = M);
@@ -204157,19 +204157,19 @@ function print() { __p += __j.call(arguments, '') }
204157
204157
  }(), { chain: !1 }), Ae.VERSION = n, Rn(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(k) {
204158
204158
  Ae[k].placeholder = Ae;
204159
204159
  }), Rn(["drop", "take"], function(k, M) {
204160
- Wn.prototype[k] = function(V) {
204160
+ Yn.prototype[k] = function(V) {
204161
204161
  V = V === r ? 1 : cs(On(V), 0);
204162
- var oe = this.__filtered__ && !M ? new Wn(this) : this.clone();
204162
+ var oe = this.__filtered__ && !M ? new Yn(this) : this.clone();
204163
204163
  return oe.__filtered__ ? oe.__takeCount__ = mo(V, oe.__takeCount__) : oe.__views__.push({
204164
204164
  size: mo(V, G),
204165
204165
  type: k + (oe.__dir__ < 0 ? "Right" : "")
204166
204166
  }), oe;
204167
- }, Wn.prototype[k + "Right"] = function(V) {
204167
+ }, Yn.prototype[k + "Right"] = function(V) {
204168
204168
  return this.reverse()[k](V).reverse();
204169
204169
  };
204170
204170
  }), Rn(["filter", "map", "takeWhile"], function(k, M) {
204171
204171
  var V = M + 1, oe = V == L || V == N;
204172
- Wn.prototype[k] = function(Se) {
204172
+ Yn.prototype[k] = function(Se) {
204173
204173
  var Oe = this.clone();
204174
204174
  return Oe.__iteratees__.push({
204175
204175
  iteratee: tn(Se, 3),
@@ -204178,45 +204178,45 @@ function print() { __p += __j.call(arguments, '') }
204178
204178
  };
204179
204179
  }), Rn(["head", "last"], function(k, M) {
204180
204180
  var V = "take" + (M ? "Right" : "");
204181
- Wn.prototype[k] = function() {
204181
+ Yn.prototype[k] = function() {
204182
204182
  return this[V](1).value()[0];
204183
204183
  };
204184
204184
  }), Rn(["initial", "tail"], function(k, M) {
204185
204185
  var V = "drop" + (M ? "" : "Right");
204186
- Wn.prototype[k] = function() {
204187
- return this.__filtered__ ? new Wn(this) : this[V](1);
204186
+ Yn.prototype[k] = function() {
204187
+ return this.__filtered__ ? new Yn(this) : this[V](1);
204188
204188
  };
204189
- }), Wn.prototype.compact = function() {
204189
+ }), Yn.prototype.compact = function() {
204190
204190
  return this.filter(xl);
204191
- }, Wn.prototype.find = function(k) {
204191
+ }, Yn.prototype.find = function(k) {
204192
204192
  return this.filter(k).head();
204193
- }, Wn.prototype.findLast = function(k) {
204193
+ }, Yn.prototype.findLast = function(k) {
204194
204194
  return this.reverse().find(k);
204195
- }, Wn.prototype.invokeMap = Bn(function(k, M) {
204196
- return typeof k == "function" ? new Wn(this) : this.map(function(V) {
204195
+ }, Yn.prototype.invokeMap = Bn(function(k, M) {
204196
+ return typeof k == "function" ? new Yn(this) : this.map(function(V) {
204197
204197
  return u2(V, k, M);
204198
204198
  });
204199
- }), Wn.prototype.reject = function(k) {
204199
+ }), Yn.prototype.reject = function(k) {
204200
204200
  return this.filter(Ok(tn(k)));
204201
- }, Wn.prototype.slice = function(k, M) {
204201
+ }, Yn.prototype.slice = function(k, M) {
204202
204202
  k = On(k);
204203
204203
  var V = this;
204204
- return V.__filtered__ && (k > 0 || M < 0) ? new Wn(V) : (k < 0 ? V = V.takeRight(-k) : k && (V = V.drop(k)), M !== r && (M = On(M), V = M < 0 ? V.dropRight(-M) : V.take(M - k)), V);
204205
- }, Wn.prototype.takeRightWhile = function(k) {
204204
+ return V.__filtered__ && (k > 0 || M < 0) ? new Yn(V) : (k < 0 ? V = V.takeRight(-k) : k && (V = V.drop(k)), M !== r && (M = On(M), V = M < 0 ? V.dropRight(-M) : V.take(M - k)), V);
204205
+ }, Yn.prototype.takeRightWhile = function(k) {
204206
204206
  return this.reverse().takeWhile(k).reverse();
204207
- }, Wn.prototype.toArray = function() {
204207
+ }, Yn.prototype.toArray = function() {
204208
204208
  return this.take(G);
204209
- }, Nd(Wn.prototype, function(k, M) {
204209
+ }, Nd(Yn.prototype, function(k, M) {
204210
204210
  var V = /^(?:filter|find|map|reject)|While$/.test(M), oe = /^(?:head|last)$/.test(M), Se = Ae[oe ? "take" + (M == "last" ? "Right" : "") : M], Oe = oe || /^find/.test(M);
204211
204211
  Se && (Ae.prototype[M] = function() {
204212
- var Ke = this.__wrapped__, it = oe ? [1] : arguments, pt = Ke instanceof Wn, Pt = it[0], Ft = pt || xn(Ke), zt = function(Gn) {
204212
+ var Ke = this.__wrapped__, it = oe ? [1] : arguments, pt = Ke instanceof Yn, Pt = it[0], Ft = pt || xn(Ke), zt = function(Gn) {
204213
204213
  var Kn = Se.apply(Ae, Ip([Gn], it));
204214
204214
  return oe && lr ? Kn[0] : Kn;
204215
204215
  };
204216
204216
  Ft && V && typeof Pt == "function" && Pt.length != 1 && (pt = Ft = !1);
204217
204217
  var lr = this.__chain__, Nr = !!this.__actions__.length, rn = Oe && !lr, Fn = pt && !Nr;
204218
204218
  if (!Oe && Ft) {
204219
- Ke = Fn ? Ke : new Wn(this);
204219
+ Ke = Fn ? Ke : new Yn(this);
204220
204220
  var nn = k.apply(Ke, it);
204221
204221
  return nn.__actions__.push({ func: Dk, args: [zt], thisArg: r }), new Uc(nn, lr);
204222
204222
  }
@@ -204234,7 +204234,7 @@ function print() { __p += __j.call(arguments, '') }
204234
204234
  return M.apply(xn(Ke) ? Ke : [], Se);
204235
204235
  });
204236
204236
  };
204237
- }), Nd(Wn.prototype, function(k, M) {
204237
+ }), Nd(Yn.prototype, function(k, M) {
204238
204238
  var V = Ae[M];
204239
204239
  if (V) {
204240
204240
  var oe = V.name + "";
@@ -204243,7 +204243,7 @@ function print() { __p += __j.call(arguments, '') }
204243
204243
  }), I_[Sk(r, y).name] = [{
204244
204244
  name: "wrapper",
204245
204245
  func: r
204246
- }], Wn.prototype.clone = ent, Wn.prototype.reverse = tnt, Wn.prototype.value = rnt, Ae.prototype.at = Nat, Ae.prototype.chain = Iat, Ae.prototype.commit = Oat, Ae.prototype.next = Lat, Ae.prototype.plant = Pat, Ae.prototype.reverse = Fat, Ae.prototype.toJSON = Ae.prototype.valueOf = Ae.prototype.value = Bat, Ae.prototype.first = Ae.prototype.head, n2 && (Ae.prototype[n2] = Mat), Ae;
204246
+ }], Yn.prototype.clone = ent, Yn.prototype.reverse = tnt, Yn.prototype.value = rnt, Ae.prototype.at = Nat, Ae.prototype.chain = Iat, Ae.prototype.commit = Oat, Ae.prototype.next = Lat, Ae.prototype.plant = Pat, Ae.prototype.reverse = Fat, Ae.prototype.toJSON = Ae.prototype.valueOf = Ae.prototype.value = Bat, Ae.prototype.first = Ae.prototype.head, n2 && (Ae.prototype[n2] = Mat), Ae;
204247
204247
  }, D_ = Ort();
204248
204248
  zh ? ((zh.exports = D_)._ = D_, JE._ = D_) : os._ = D_;
204249
204249
  }).call(vqr);
@@ -212831,7 +212831,7 @@ const LGr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
212831
212831
  let Og = null, Hwe = 0;
212832
212832
  const MGr = 1e4;
212833
212833
  let g3 = null;
212834
- const zet = new Oa();
212834
+ const zet = new La();
212835
212835
  rr.from(zet);
212836
212836
  async function cH(t) {
212837
212837
  const e = `${t}/mcp/list_tools`;
@@ -212938,7 +212938,7 @@ async function hM(t, e) {
212938
212938
  return n;
212939
212939
  }
212940
212940
  async function qGr() {
212941
- if (!(await Yn(Ga)).settings["jetbrains.enabled"])
212941
+ if (!(await Vn(Da)).settings["jetbrains.enabled"])
212942
212942
  return;
212943
212943
  const e = await $Gr();
212944
212944
  if (e && tr.resolve(e) === tr.resolve(process.cwd()))
@@ -217685,7 +217685,7 @@ function iVr(t) {
217685
217685
  return nVr[t];
217686
217686
  }
217687
217687
  async function aVr(t, e, r, n, i) {
217688
- const a = await Yn(Ga, i), s = await oVr(a), o = [
217688
+ const a = await Vn(Da, i), s = await oVr(a), o = [
217689
217689
  {
217690
217690
  role: "system",
217691
217691
  content: r